Added support for portable mode [Thanks Chris]

Portable mode is enabled by passing the "--portable" command line option
More i8n cleanups



FossilOrigin-Name: 9cb380713c661f2ac8250800ef8e8b01fa9dafdc
This commit is contained in:
kostas
2012-04-22 13:48:41 +00:00
parent 0cb9a9c036
commit 480bc28712
5 changed files with 106 additions and 85 deletions

View File

@ -116,7 +116,7 @@ class MainWindow : public QMainWindow
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0, QString *workspacePath = 0);
explicit MainWindow(QWidget *parent = 0, QString *workspacePath = 0, bool portableMode = false);
~MainWindow();
bool diffFile(QString repoFile);
@ -252,6 +252,8 @@ private:
ViewMode viewMode;
stringset_t selectedDirs; // The directory selected in the tree
class QSettings *qsettings;
// Repo State
typedef QList<RepoFile*> filelist_t;
typedef QMap<QString, RepoFile*> filemap_t;