diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2024-01-19 18:16:41 -0500 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2024-01-19 18:16:41 -0500 |
commit | 0a3c0c6882db2976c2b6fdbebbc127747ed63703 (patch) | |
tree | 53d568418f3eb15c149bf7d60d93433e572fa7db /src/area_popup.h | |
parent | 402d559af2a727f106fa7fa59132b6710a5ae84e (diff) | |
download | lingo-ap-tracker-0a3c0c6882db2976c2b6fdbebbc127747ed63703.tar.gz lingo-ap-tracker-0a3c0c6882db2976c2b6fdbebbc127747ed63703.tar.bz2 lingo-ap-tracker-0a3c0c6882db2976c2b6fdbebbc127747ed63703.zip |
Area popups are now painted
Instead of being a bunch of controls. This fixes the problem with the window being slow to drag around, and with items in lists disappearing. Overall W for me.
Diffstat (limited to 'src/area_popup.h')
-rw-r--r-- | src/area_popup.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/area_popup.h b/src/area_popup.h index d5f6a50..00c644d 100644 --- a/src/area_popup.h +++ b/src/area_popup.h | |||
@@ -7,19 +7,20 @@ | |||
7 | #include <wx/wx.h> | 7 | #include <wx/wx.h> |
8 | #endif | 8 | #endif |
9 | 9 | ||
10 | #include "eye_indicator.h" | 10 | class AreaPopup : public wxScrolledCanvas { |
11 | |||
12 | class AreaPopup : public wxScrolledWindow { | ||
13 | public: | 11 | public: |
14 | AreaPopup(wxWindow* parent, int area_id); | 12 | AreaPopup(wxWindow* parent, int area_id); |
15 | 13 | ||
16 | void UpdateIndicators(); | 14 | void UpdateIndicators(); |
17 | 15 | ||
18 | private: | 16 | private: |
17 | void OnPaint(wxPaintEvent& event); | ||
18 | |||
19 | int area_id_; | 19 | int area_id_; |
20 | 20 | ||
21 | std::vector<wxStaticText*> section_labels_; | 21 | wxBitmap unchecked_eye_; |
22 | std::vector<EyeIndicator*> eye_indicators_; | 22 | wxBitmap checked_eye_; |
23 | wxBitmap rendered_; | ||
23 | }; | 24 | }; |
24 | 25 | ||
25 | #endif /* end of include guard: AREA_POPUP_H_03FAC988 */ | 26 | #endif /* end of include guard: AREA_POPUP_H_03FAC988 */ |