Debian Codegraph @

wxcrafter/aui/aui_pane_info.h

raw
1 #ifndef AUIPANEINFO_H
2 #define AUIPANEINFO_H
3
4 #include "wxcLib/json_node.h"
5 #include <wx/aui/framemanager.h>
6 #include <wx/propgrid/propgrid.h>
7
8 class wxPropertyGrid;
9 class AuiPaneInfo
10 {
11 wxString m_name;
12 wxString m_caption;
13 wxString m_dockDirection;
14 int m_layer;
15 int m_row;
16 int m_position;
17 wxSize m_bestSize;
18 wxSize m_minSize;
19 wxSize m_maxSize;
20 bool m_resizable;
21 bool m_captionVisible;
22 bool m_closeButton;
23 bool m_minButton;
24 bool m_maxButton;
25 bool m_pinButton;
26 bool m_toolbarPane;
27
28 public:
29 AuiPaneInfo();
30 virtual ~AuiPaneInfo();
31
32 void Reset();
33
34 wxString ToCppCode() const;
35 wxString ToXRC(const wxString& objXRC) const;
36 void Construct(wxPropertyGrid* pg) const;
37 void OnChanged(wxPropertyGridEvent& e);
38
39 void FromJSON(const JSONElement& json);
40 JSONElement ToJSON() const;
41 };
42
43 #endif // AUIPANEINFO_H