diff options
Diffstat (limited to 'src/items_pane.h')
-rw-r--r-- | src/items_pane.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/items_pane.h b/src/items_pane.h new file mode 100644 index 0000000..aa09c49 --- /dev/null +++ b/src/items_pane.h | |||
@@ -0,0 +1,33 @@ | |||
1 | #ifndef ITEMS_PANE_H_EB637EE3 | ||
2 | #define ITEMS_PANE_H_EB637EE3 | ||
3 | |||
4 | #include <wx/wxprec.h> | ||
5 | |||
6 | #ifndef WX_PRECOMP | ||
7 | #include <wx/wx.h> | ||
8 | #endif | ||
9 | |||
10 | #include <wx/listctrl.h> | ||
11 | |||
12 | #include <memory> | ||
13 | #include <vector> | ||
14 | |||
15 | #include "ap_state.h" | ||
16 | |||
17 | class ItemsPane : public wxListView { | ||
18 | public: | ||
19 | explicit ItemsPane(wxWindow* parent); | ||
20 | |||
21 | void ResetIndicators(); | ||
22 | void UpdateIndicators(const std::vector<ItemState>& items); | ||
23 | |||
24 | private: | ||
25 | void OnColClick(wxListEvent& event); | ||
26 | void OnDPIChanged(wxDPIChangedEvent& event); | ||
27 | |||
28 | void DoSort(int col, bool ascending); | ||
29 | |||
30 | std::vector<std::unique_ptr<ItemState>> items_; | ||
31 | }; | ||
32 | |||
33 | #endif /* end of include guard: ITEMS_PANE_H_EB637EE3 */ | ||