summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-03-01 22:58:54 +0100
committerCarl Hetherington <cth@carlh.net>2025-03-01 22:58:54 +0100
commita1cc8eb29a1e85071bfdb5c7ee3180149be09a69 (patch)
tree4da4e87e1c6416b59d2545061e486e103ea4856e /src
parent20245a48271c04a9c0f90585281b082eb9199237 (diff)
Put some preferences stuff into a namespace.
Diffstat (limited to 'src')
-rw-r--r--src/wx/config_dialog.cc1
-rw-r--r--src/wx/config_dialog.h8
-rw-r--r--src/wx/full_config_dialog.cc27
-rw-r--r--src/wx/player_config_dialog.cc11
-rw-r--r--src/wx/playlist_editor_config_dialog.cc12
5 files changed, 37 insertions, 22 deletions
diff --git a/src/wx/config_dialog.cc b/src/wx/config_dialog.cc
index 86cc214f8..95c168e8e 100644
--- a/src/wx/config_dialog.cc
+++ b/src/wx/config_dialog.cc
@@ -48,6 +48,7 @@ using boost::optional;
#if BOOST_VERSION >= 106100
using namespace boost::placeholders;
#endif
+using namespace dcpomatic::preferences;
static
diff --git a/src/wx/config_dialog.h b/src/wx/config_dialog.h
index 0a6ac1d08..736562384 100644
--- a/src/wx/config_dialog.h
+++ b/src/wx/config_dialog.h
@@ -51,6 +51,10 @@ class AudioMappingView;
class CheckBox;
+namespace dcpomatic {
+namespace preferences {
+
+
class Page : public wxPreferencesPage
{
public:
@@ -200,4 +204,8 @@ private:
wxDirPickerCtrl* _kdm_directory;
};
+
+}
+}
+
#endif
diff --git a/src/wx/full_config_dialog.cc b/src/wx/full_config_dialog.cc
index da2325e69..fafec106b 100644
--- a/src/wx/full_config_dialog.cc
+++ b/src/wx/full_config_dialog.cc
@@ -89,9 +89,10 @@ using boost::optional;
using namespace boost::placeholders;
#endif
using dcp::locale_convert;
+using namespace dcpomatic;
-class FullGeneralPage : public GeneralPage
+class FullGeneralPage : public preferences::GeneralPage
{
public:
FullGeneralPage(wxSize panel_size, int border)
@@ -279,7 +280,7 @@ private:
};
-class DefaultsPage : public Page
+class DefaultsPage : public preferences::Page
{
public:
DefaultsPage(wxSize panel_size, int border)
@@ -507,7 +508,7 @@ private:
};
-class EncodingServersPage : public Page
+class EncodingServersPage : public preferences::Page
{
public:
EncodingServersPage(wxSize panel_size, int border)
@@ -570,7 +571,7 @@ private:
};
-class TMSPage : public Page
+class TMSPage : public preferences::Page
{
public:
TMSPage(wxSize panel_size, int border)
@@ -696,7 +697,7 @@ private:
};
-class EmailPage : public Page
+class EmailPage : public preferences::Page
{
public:
EmailPage(wxSize panel_size, int border)
@@ -862,7 +863,7 @@ private:
};
-class KDMEmailPage : public Page
+class KDMEmailPage : public preferences::Page
{
public:
@@ -988,7 +989,7 @@ private:
};
-class NotificationsPage : public Page
+class NotificationsPage : public preferences::Page
{
public:
NotificationsPage(wxSize panel_size, int border)
@@ -1163,7 +1164,7 @@ private:
};
-class CoverSheetPage : public Page
+class CoverSheetPage : public preferences::Page
{
public:
@@ -1228,7 +1229,7 @@ private:
};
-class IdentifiersPage : public Page
+class IdentifiersPage : public preferences::Page
{
public:
IdentifiersPage(wxSize panel_size, int border)
@@ -1361,7 +1362,7 @@ private:
};
-class NonStandardPage : public Page
+class NonStandardPage : public preferences::Page
{
public:
NonStandardPage(wxSize panel_size, int border)
@@ -1511,7 +1512,7 @@ private:
/** @class AdvancedPage
* @brief Advanced page of the preferences dialog.
*/
-class AdvancedPage : public Page
+class AdvancedPage : public preferences::Page
{
public:
AdvancedPage(wxSize panel_size, int border)
@@ -1836,13 +1837,13 @@ create_full_config_dialog()
#endif
e->AddPage(new FullGeneralPage(ps, border));
- e->AddPage(new SoundPage(ps, border));
+ e->AddPage(new preferences::SoundPage(ps, border));
e->AddPage(new DefaultsPage(ps, border));
e->AddPage(new EncodingServersPage(ps, border));
#ifdef DCPOMATIC_GROK
e->AddPage(new GPUPage(ps, border));
#endif
- e->AddPage(new KeysPage(ps, border));
+ e->AddPage(new preferences::KeysPage(ps, border));
e->AddPage(new TMSPage(ps, border));
e->AddPage(new EmailPage(ps, border));
e->AddPage(new KDMEmailPage(ps, border));
diff --git a/src/wx/player_config_dialog.cc b/src/wx/player_config_dialog.cc
index d0415aa94..6307ddc8f 100644
--- a/src/wx/player_config_dialog.cc
+++ b/src/wx/player_config_dialog.cc
@@ -74,9 +74,10 @@ using boost::optional;
using namespace boost::placeholders;
#endif
using dcp::locale_convert;
+using namespace dcpomatic;
-class PlayerGeneralPage : public GeneralPage
+class PlayerGeneralPage : public preferences::GeneralPage
{
public:
PlayerGeneralPage(wxSize panel_size, int border)
@@ -258,7 +259,7 @@ private:
/** @class PlayerAdvancedPage
* @brief Advanced page of the preferences dialog for the player.
*/
-class PlayerAdvancedPage : public Page
+class PlayerAdvancedPage : public preferences::Page
{
public:
PlayerAdvancedPage(wxSize panel_size, int border)
@@ -407,9 +408,9 @@ create_player_config_dialog()
#endif
e->AddPage(new PlayerGeneralPage(wxSize(-1, 500), border));
- e->AddPage(new SoundPage(ps, border));
- e->AddPage(new LocationsPage(ps, border));
- e->AddPage(new KeysPage(ps, border));
+ e->AddPage(new preferences::SoundPage(ps, border));
+ e->AddPage(new preferences::LocationsPage(ps, border));
+ e->AddPage(new preferences::KeysPage(ps, border));
e->AddPage(new PlayerAdvancedPage(ps, border));
return e;
}
diff --git a/src/wx/playlist_editor_config_dialog.cc b/src/wx/playlist_editor_config_dialog.cc
index 67bedc05e..84e7f537f 100644
--- a/src/wx/playlist_editor_config_dialog.cc
+++ b/src/wx/playlist_editor_config_dialog.cc
@@ -19,14 +19,18 @@
*/
+/** @file src/playlist_editor_config_dialog.cc
+ * @brief A dialogue to edit DCP-o-matic Playlist Editor configuration.
+ */
+
+
#include "config_dialog.h"
#include "playlist_editor_config_dialog.h"
#include "wx_variant.h"
-/** @file src/playlist_editor_config_dialog.cc
- * @brief A dialogue to edit DCP-o-matic Playlist Editor configuration.
- */
+using namespace dcpomatic;
+
wxPreferencesEditor*
create_playlist_editor_config_dialog ()
@@ -45,6 +49,6 @@ create_playlist_editor_config_dialog ()
int const border = 8;
#endif
- e->AddPage (new LocationsPage(ps, border));
+ e->AddPage(new preferences::LocationsPage(ps, border));
return e;
}