Debian Codegraph @

wxcrafter/src/aui_pane_info_list_view.cpp

raw
1 #include "aui_pane_info_list_view.h"
2 #include "wxc_project_metadata.h"
3 #include "wxgui_defs.h"
4 #include "wxguicraft_main_view.h"
5 #include <event_notifier.h>
6
7 AuiPaneInfoListView::AuiPaneInfoListView()
8 : m_wxcWidget(NULL)
9 {
10 }
11
12 AuiPaneInfoListView::~AuiPaneInfoListView() {}
13
14 void AuiPaneInfoListView::Construct(wxPropertyGrid* pg, wxcWidget* wb)
15 {
16 pg->Clear();
17 m_wxcWidget = wb;
18 CHECK_POINTER(m_wxcWidget);
19
20 if(m_wxcWidget->IsAuiPane() == false) return;
21
22 m_wxcWidget->GetAuiPaneInfo().Construct(pg);
23 }
24
25 void AuiPaneInfoListView::Changed(wxPropertyGrid* pg, wxPropertyGridEvent& e)
26 {
27 wxUnusedVar(pg);
28 CHECK_POINTER(m_wxcWidget);
29 m_wxcWidget->GetAuiPaneInfo().OnChanged(e);
30
31 // Notify about modifications
32 wxCommandEvent evt(wxEVT_PROPERTIES_MODIFIED);
33 EventNotifier::Get()->AddPendingEvent(evt);
34 }