From 97f02b39ba00ebefdb309750826dd13e0c8c1ccf Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sat, 8 Mar 2025 14:46:22 -0500 Subject: Added items pane --- src/items_pane.h | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 src/items_pane.h (limited to 'src/items_pane.h') 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 @@ +#ifndef ITEMS_PANE_H_EB637EE3 +#define ITEMS_PANE_H_EB637EE3 + +#include + +#ifndef WX_PRECOMP +#include +#endif + +#include + +#include +#include + +#include "ap_state.h" + +class ItemsPane : public wxListView { + public: + explicit ItemsPane(wxWindow* parent); + + void ResetIndicators(); + void UpdateIndicators(const std::vector& items); + + private: + void OnColClick(wxListEvent& event); + void OnDPIChanged(wxDPIChangedEvent& event); + + void DoSort(int col, bool ascending); + + std::vector> items_; +}; + +#endif /* end of include guard: ITEMS_PANE_H_EB637EE3 */ -- cgit 1.4.1