Mercurial > hg > forks > UniversalIndentGUI
comparison src/SettingsPaths.h @ 751:ac165b6ae67e
Done some refactoring:
- Moved includes into the cpp files where possible and using class pre-declarations if possible
- Made class member variable names begin with an underscore
- Made by uic created header files be used as class members instead of inherting them
- Renamed some variables to reflect their purpose better
- Added some NULL initializations and added some comments
- Rearranged some include and declaration code parts to be consistent and better readable
- Updated for QScintilla 2.4.5
- Made UiGuiSettings be accessed via a shared pointer only
git-svn-id: svn://svn.code.sf.net/p/universalindent/code/trunk@1028 59b1889a-e5ac-428c-b0c7-476e01d41282
author | thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282> |
---|---|
date | Thu, 14 Oct 2010 19:52:47 +0000 |
parents | aae5a8d04f70 |
children | f3631db17328 |
comparison
equal
deleted
inserted
replaced
750:a884b5861e93 | 751:ac165b6ae67e |
---|---|
18 ***************************************************************************/ | 18 ***************************************************************************/ |
19 | 19 |
20 #ifndef SETTINGSPATHS_H | 20 #ifndef SETTINGSPATHS_H |
21 #define SETTINGSPATHS_H | 21 #define SETTINGSPATHS_H |
22 | 22 |
23 #include <QString> | 23 class QString; |
24 #include <QCoreApplication> | 24 |
25 #include <QFile> | |
26 #include <QDir> | |
27 | 25 |
28 class SettingsPaths | 26 class SettingsPaths |
29 { | 27 { |
30 public: | 28 public: |
31 static void init(); | 29 static void init(); |
38 static void cleanAndRemoveTempDir(); | 36 static void cleanAndRemoveTempDir(); |
39 | 37 |
40 private: | 38 private: |
41 SettingsPaths(); | 39 SettingsPaths(); |
42 | 40 |
43 static bool alreadyInitialized; | 41 static bool _alreadyInitialized; |
44 static QString applicationBinaryPath; | 42 static QString _applicationBinaryPath; |
45 static QString settingsPath; | 43 static QString _settingsPath; |
46 static QString globalFilesPath; | 44 static QString _globalFilesPath; |
47 static QString indenterPath; | 45 static QString _indenterPath; |
48 static QString tempPath; | 46 static QString _tempPath; |
49 static bool portableMode; | 47 static bool _portableMode; |
50 }; | 48 }; |
51 | 49 |
52 #endif // SETTINGSPATHS_H | 50 #endif // SETTINGSPATHS_H |