diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-05-08 23:56:32 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-05-10 23:43:55 +0100 |
| commit | f41818f14369f170475b7f2bde1a2dd856517b14 (patch) | |
| tree | 2fd7d07fb63e46e8ad2964917cff5704d1893f85 /src/wx | |
| parent | c4403784febdbdd42e9c32e67fadb147f11fe566 (diff) | |
Put Font and Screen into dcpomatic namespace.
Diffstat (limited to 'src/wx')
| -rw-r--r-- | src/wx/fonts_dialog.cc | 1 | ||||
| -rw-r--r-- | src/wx/kdm_dialog.h | 5 | ||||
| -rw-r--r-- | src/wx/screens_panel.cc | 1 | ||||
| -rw-r--r-- | src/wx/screens_panel.h | 11 |
4 files changed, 13 insertions, 5 deletions
diff --git a/src/wx/fonts_dialog.cc b/src/wx/fonts_dialog.cc index 88fcb2dce..66f8ab0e4 100644 --- a/src/wx/fonts_dialog.cc +++ b/src/wx/fonts_dialog.cc @@ -33,6 +33,7 @@ using std::list; using std::string; using std::cout; using boost::shared_ptr; +using namespace dcpomatic; FontsDialog::FontsDialog (wxWindow* parent, shared_ptr<Content> content, shared_ptr<TextContent> caption) : wxDialog (parent, wxID_ANY, _("Fonts")) diff --git a/src/wx/kdm_dialog.h b/src/wx/kdm_dialog.h index 099db951b..a240ec1b6 100644 --- a/src/wx/kdm_dialog.h +++ b/src/wx/kdm_dialog.h @@ -25,8 +25,11 @@ #include <boost/date_time/posix_time/posix_time.hpp> #include <map> +namespace dcpomatic { + class Screen; +} + class Cinema; -class Screen; class Film; class ScreensPanel; class KDMTimingPanel; diff --git a/src/wx/screens_panel.cc b/src/wx/screens_panel.cc index e89173eb2..7e012b522 100644 --- a/src/wx/screens_panel.cc +++ b/src/wx/screens_panel.cc @@ -36,6 +36,7 @@ using std::string; using std::make_pair; using boost::shared_ptr; using boost::optional; +using namespace dcpomatic; ScreensPanel::ScreensPanel (wxWindow* parent) : wxPanel (parent, wxID_ANY) diff --git a/src/wx/screens_panel.h b/src/wx/screens_panel.h index 3e9accde5..510297efb 100644 --- a/src/wx/screens_panel.h +++ b/src/wx/screens_panel.h @@ -26,8 +26,11 @@ #include <list> #include <map> +namespace dcpomatic { + class Screen; +} + class Cinema; -class Screen; class ScreensPanel : public wxPanel { @@ -35,7 +38,7 @@ public: explicit ScreensPanel (wxWindow* parent); ~ScreensPanel (); - std::list<boost::shared_ptr<Screen> > screens () const; + std::list<boost::shared_ptr<dcpomatic::Screen> > screens () const; void setup_sensitivity (); boost::signals2::signal<void ()> ScreensChanged; @@ -43,7 +46,7 @@ public: private: void add_cinemas (); void add_cinema (boost::shared_ptr<Cinema>); - boost::optional<wxTreeItemId> add_screen (boost::shared_ptr<Cinema>, boost::shared_ptr<Screen>); + boost::optional<wxTreeItemId> add_screen (boost::shared_ptr<Cinema>, boost::shared_ptr<dcpomatic::Screen>); void add_cinema_clicked (); void edit_cinema_clicked (); void remove_cinema_clicked (); @@ -65,7 +68,7 @@ private: wxTreeItemId _root; typedef std::map<wxTreeItemId, boost::shared_ptr<Cinema> > CinemaMap; - typedef std::map<wxTreeItemId, boost::shared_ptr<Screen> > ScreenMap; + typedef std::map<wxTreeItemId, boost::shared_ptr<dcpomatic::Screen> > ScreenMap; CinemaMap _cinemas; ScreenMap _screens; |
