1 #ifndef VOGLEDITOR_OUTPUT_H
2 #define VOGLEDITOR_OUTPUT_H
6 class vogleditor_output
12 void init(QTextEdit* pTextEdit) { m_pTextEdit = pTextEdit; }
14 void message(const char* pMessage);
15 void warning(const char* pWarning);
16 void error(const char* pError);
19 QTextEdit* m_pTextEdit;
22 static vogleditor_output gs_OUTPUT;
24 static void vogleditor_output_init(QTextEdit* pTextEdit) { gs_OUTPUT.init(pTextEdit); }
25 static void vogleditor_output_message(const char* pMessage) { gs_OUTPUT.message(pMessage); }
26 static void vogleditor_output_warning(const char* pWarning) { gs_OUTPUT.warning(pWarning); }
27 static void vogleditor_output_error(const char* pError) { gs_OUTPUT.error(pError); }
28 static void vogleditor_output_deinit() { gs_OUTPUT.init(0); }
30 #endif // VOGLEDITOR_OUTPUT_H