]> git.cworth.org Git - vogl/blob - src/vogleditor/vogleditor_output.cpp
c96a06dc8420cab88ca414f3518409863d5b35f0
[vogl] / src / vogleditor / vogleditor_output.cpp
1 #include "vogleditor_output.h"
2 #include <QTextEdit>
3
4 vogleditor_output::vogleditor_output()
5 {
6 }
7
8 vogleditor_output::~vogleditor_output()
9 {
10 }
11
12 void vogleditor_output::message(const char* pMessage)
13 {
14     if (m_pTextEdit != NULL)
15     {
16         m_pTextEdit->append(pMessage);
17     }
18 }
19
20 void vogleditor_output::warning(const char* pWarning)
21 {
22     if (m_pTextEdit != NULL)
23     {
24         m_pTextEdit->append("Warning: ");
25         m_pTextEdit->append(pWarning);
26     }
27 }
28
29
30 void vogleditor_output::error(const char* pError)
31 {
32     if (m_pTextEdit != NULL)
33     {
34         m_pTextEdit->append("ERROR: ");
35         m_pTextEdit->append(pError);
36     }
37 }