summaryrefslogtreecommitdiff
path: root/src/wx/config_dialog.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-12-17 22:51:23 +0100
committerCarl Hetherington <cth@carlh.net>2019-12-19 21:32:16 +0100
commit30c9ecad729397574754163d13253c54a2285a6a (patch)
tree4c45b456ac59870fba5c3e7eef42fe88b4f96821 /src/wx/config_dialog.h
parent0d786493ef12f2d9a6d8a27d2c47b67f2e00c333 (diff)
Move sound output driver selection into new preferences tab.
Diffstat (limited to 'src/wx/config_dialog.h')
-rw-r--r--src/wx/config_dialog.h37
1 files changed, 30 insertions, 7 deletions
diff --git a/src/wx/config_dialog.h b/src/wx/config_dialog.h
index ac90cd42d..1a9d97a43 100644
--- a/src/wx/config_dialog.h
+++ b/src/wx/config_dialog.h
@@ -89,25 +89,18 @@ public:
protected:
void add_language_controls (wxGridBagSizer* table, int& r);
- void add_play_sound_controls (wxGridBagSizer* table, int& r);
void add_update_controls (wxGridBagSizer* table, int& r);
virtual void config_changed ();
private:
void setup_sensitivity ();
- boost::optional<std::string> get_sound_output ();
void set_language_changed ();
void language_changed ();
void check_for_updates_changed ();
void check_for_test_updates_changed ();
- void sound_changed ();
- void sound_output_changed ();
wxCheckBox* _set_language;
wxChoice* _language;
- wxCheckBox* _sound;
- wxChoice* _sound_output;
- wxStaticText* _sound_output_details;
wxCheckBox* _check_for_updates;
wxCheckBox* _check_for_test_updates;
};
@@ -185,4 +178,34 @@ private:
};
+class SoundPage : public StandardPage
+{
+public:
+ SoundPage (wxSize panel_size, int border)
+ : StandardPage (panel_size, border)
+ {}
+
+ wxString GetName() const;
+
+#ifdef DCPOMATIC_OSX
+ wxBitmap GetLargeIcon () const
+ {
+ return wxBitmap ("sound", wxBITMAP_TYPE_PNG_RESOURCE);
+ }
+#endif
+
+private:
+
+ void setup ();
+ void config_changed ();
+ boost::optional<std::string> get_sound_output ();
+ void sound_changed ();
+ void sound_output_changed ();
+ void setup_sensitivity ();
+
+ wxCheckBox* _sound;
+ wxChoice* _sound_output;
+ wxStaticText* _sound_output_details;
+};
+
#endif