Debian Codegraph @

DatabaseExplorer/LogDialog.h

raw
1 //////////////////////////////////////////////////////////////////////////////
2 //////////////////////////////////////////////////////////////////////////////
3 //
4 // copyright : (C) 2014 Eran Ifrah
5 // file name : LogDialog.h
6 //
7 // -------------------------------------------------------------------------
8 // A
9 // _____ _ _ _ _
10 // / __ \ | | | | (_) |
11 // | / \/ ___ __| | ___| | _| |_ ___
12 // | | / _ \ / _ |/ _ \ | | | __/ _ )
13 // | \__/\ (_) | (_| | __/ |___| | || __/
14 // \____/\___/ \__,_|\___\_____/_|\__\___|
15 //
16 // F i l e
17 //
18 // This program is free software; you can redistribute it and/or modify
19 // it under the terms of the GNU General Public License as published by
20 // the Free Software Foundation; either version 2 of the License, or
21 // (at your option) any later version.
22 //
23 //////////////////////////////////////////////////////////////////////////////
24 //////////////////////////////////////////////////////////////////////////////
25
26 #ifndef LOGDIALOG_H
27 #define LOGDIALOG_H
28
29 #include "GUI.h" // Base class: _LogDialog
30 #include <wx/utils.h>
31
32 class LogDialog : public _LogDialog {
33
34 public:
35 LogDialog(wxWindow* parent);
36 virtual ~LogDialog();
37
38 virtual void OnCloseClick(wxCommandEvent& event);
39 virtual void OnCloseUI(wxUpdateUIEvent& event);
40
41 /*! \brief Enable close button. */
42 void EnableClose(bool enable){ m_canClose = enable; }
43 /*! \brief Clear text field */
44 void Clear();
45 /*! \brief Add text line */
46 void AppendText(const wxString& txt);
47 /*! \brief Add comment line */
48 void AppendComment(const wxString& txt);
49 /*! \brief Add separator. */
50 void AppendSeparator();
51
52 protected:
53 bool m_canClose;
54 wxString m_text;
55 };
56
57 #endif // LOGDIALOG_H