Refactored logging

FossilOrigin-Name: 9c198b023e2df1b5cfe64dd745d070732b5ab843
This commit is contained in:
kostas
2015-04-26 10:58:36 +00:00
parent f261fbaa66
commit 39745ab55a
5 changed files with 38 additions and 26 deletions

View File

@ -12,6 +12,8 @@
#include "SettingsDialog.h"
#include "Bridge.h"
#define BRIDGE_ENABLED
namespace Ui {
class MainWindow;
}
@ -143,6 +145,7 @@ private:
void updateSettings();
const QString &getCurrentWorkspace();
void setCurrentWorkspace(const QString &workspace);
static void log(QTextBrowser *textBrowser, const QString &text, bool isHTML);
void log(const QString &text, bool isHTML=false);
void setStatus(const QString &text);
bool uiRunning() const;
@ -262,7 +265,9 @@ private:
ViewMode viewMode;
stringset_t selectedDirs; // The directory selected in the tree
#ifdef BRIDGE_ENABLED
Bridge bridge;
#endif
// Repository State
typedef QList<RepoFile*> filelist_t;