diff options
| author | Star Rauchenberger <fefferburbia@gmail.com> | 2025-03-13 12:47:54 -0400 |
|---|---|---|
| committer | Star Rauchenberger <fefferburbia@gmail.com> | 2025-03-13 12:47:54 -0400 |
| commit | dfddd07b8b5cbff7c09103a694aed40bda254a2d (patch) | |
| tree | 220364fa26eff54d9a3fd49f1b52a8afce2bf907 /src/settings_dialog.h | |
| parent | dacbe8e3fbda85f7c2e7e7b660795f2a080a9d25 (diff) | |
| download | lingo-ap-tracker-dfddd07b8b5cbff7c09103a694aed40bda254a2d.tar.gz lingo-ap-tracker-dfddd07b8b5cbff7c09103a694aed40bda254a2d.tar.bz2 lingo-ap-tracker-dfddd07b8b5cbff7c09103a694aed40bda254a2d.zip | |
Obsolete savefile reader + IPC solves
Now, panel solve state is all read from the sync fields in datastorage. The "show hunt panels" field in settings is now a radio box, and you can choose to show all panels.
Diffstat (limited to 'src/settings_dialog.h')
| -rw-r--r-- | src/settings_dialog.h | 11 |
1 files changed, 9 insertions, 2 deletions
| diff --git a/src/settings_dialog.h b/src/settings_dialog.h index 12f2439..c4dacfa 100644 --- a/src/settings_dialog.h +++ b/src/settings_dialog.h | |||
| @@ -7,6 +7,10 @@ | |||
| 7 | #include <wx/wx.h> | 7 | #include <wx/wx.h> |
| 8 | #endif | 8 | #endif |
| 9 | 9 | ||
| 10 | #include <wx/radiobox.h> | ||
| 11 | |||
| 12 | #include "tracker_config.h" | ||
| 13 | |||
| 10 | class SettingsDialog : public wxDialog { | 14 | class SettingsDialog : public wxDialog { |
| 11 | public: | 15 | public: |
| 12 | SettingsDialog(); | 16 | SettingsDialog(); |
| @@ -15,13 +19,16 @@ class SettingsDialog : public wxDialog { | |||
| 15 | return should_check_for_updates_box_->GetValue(); | 19 | return should_check_for_updates_box_->GetValue(); |
| 16 | } | 20 | } |
| 17 | bool GetHybridAreas() const { return hybrid_areas_box_->GetValue(); } | 21 | bool GetHybridAreas() const { return hybrid_areas_box_->GetValue(); } |
| 18 | bool GetShowHuntPanels() const { return show_hunt_panels_box_->GetValue(); } | 22 | TrackerConfig::VisiblePanels GetVisiblePanels() const { |
| 23 | return static_cast<TrackerConfig::VisiblePanels>( | ||
| 24 | visible_panels_box_->GetSelection()); | ||
| 25 | } | ||
| 19 | bool GetTrackPosition() const { return track_position_box_->GetValue(); } | 26 | bool GetTrackPosition() const { return track_position_box_->GetValue(); } |
| 20 | 27 | ||
| 21 | private: | 28 | private: |
| 22 | wxCheckBox* should_check_for_updates_box_; | 29 | wxCheckBox* should_check_for_updates_box_; |
| 23 | wxCheckBox* hybrid_areas_box_; | 30 | wxCheckBox* hybrid_areas_box_; |
| 24 | wxCheckBox* show_hunt_panels_box_; | 31 | wxRadioBox* visible_panels_box_; |
| 25 | wxCheckBox* track_position_box_; | 32 | wxCheckBox* track_position_box_; |
| 26 | }; | 33 | }; |
| 27 | 34 | ||
