diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2022-08-05 10:54:12 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2022-08-05 11:10:14 +0900 |
| commit | 430373ae38565e0d7f62b8fca0cbad73de73ec7f (patch) | |
| tree | 670a7322ddd2732c8824b1fb73090b937e2a1f82 /src/debugging/TSLogger.h | |
| parent | d833de5bbe40d780fe02dc95d1c981a4b1007108 (diff) | |
| download | universal-indent-gui-tqt-430373ae38565e0d7f62b8fca0cbad73de73ec7f.tar.gz universal-indent-gui-tqt-430373ae38565e0d7f62b8fca0cbad73de73ec7f.zip | |
Format code using uncrustify
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/debugging/TSLogger.h')
| -rw-r--r--[-rwxr-xr-x] | src/debugging/TSLogger.h | 59 |
1 files changed, 34 insertions, 25 deletions
diff --git a/src/debugging/TSLogger.h b/src/debugging/TSLogger.h index 39abcaa..5cbe4c9 100755..100644 --- a/src/debugging/TSLogger.h +++ b/src/debugging/TSLogger.h @@ -23,41 +23,50 @@ #include <tntqdialog.h> #include <tntqfile.h> -namespace Ui { +namespace Ui +{ class TSLoggerDialog; } -namespace tschweitzer { namespace debugging { - +namespace tschweitzer +{ + namespace debugging + { #define TSLoggerInfoMsg TQtMsgType(4) -class TSLogger : public TQDialog -{ - Q_OBJECT + class TSLogger : public TQDialog + { + Q_OBJECT -public: - static TSLogger* getInstance(int verboseLevel); - static TSLogger* getInstance(); - static void messageHandler(TQtMsgType type, const char *msg); - static void deleteInstance(); - void setVerboseLevel(int level); + public: + static TSLogger* getInstance(int verboseLevel); + static TSLogger* getInstance(); + static void messageHandler(TQtMsgType type, const char *msg); + static void deleteInstance(); + void setVerboseLevel(int level); -private slots: - void openLogFileFolder(); + private slots: + void openLogFileFolder(); -private: - Ui::TSLoggerDialog *_TSLoggerDialogForm; + private: + Ui::TSLoggerDialog *_TSLoggerDialogForm; - enum LogFileInitState { NOTINITIALZED, INITIALIZING, INITIALZED } _logFileInitState; - TSLogger(int verboseLevel); - void writeToLogFile(const TQString &message); + enum LogFileInitState + { + NOTINITIALZED, + INITIALIZING, + INITIALZED + } _logFileInitState; + TSLogger(int verboseLevel); - static TSLogger* _instance; - TQtMsgType _verboseLevel; - TQFile _logFile; - TQStringList _messageQueue; -}; + void writeToLogFile(const TQString &message); -}} // namespace tschweitzer::debugging + static TSLogger *_instance; + TQtMsgType _verboseLevel; + TQFile _logFile; + TQStringList _messageQueue; + }; + } +} // namespace tschweitzer::debugging #endif // TSLogger_H |
