X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Ffonts_dialog.h;h=c741131c41c4cd707a7aea7e3e1aa2eab0049dfc;hb=4f0be04b28c3a4cfec9513db23f92a175d207dfb;hp=6c6873ea34f5629b2a448633026ca80041795bad;hpb=cbd4450197a083bf58bda510e626f73ba583cb66;p=dcpomatic.git diff --git a/src/wx/fonts_dialog.h b/src/wx/fonts_dialog.h index 6c6873ea3..c741131c4 100644 --- a/src/wx/fonts_dialog.h +++ b/src/wx/fonts_dialog.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2014-2018 Carl Hetherington + Copyright (C) 2014-2021 Carl Hetherington This file is part of DCP-o-matic. @@ -18,28 +18,39 @@ */ + +#include +LIBDCP_DISABLE_WARNINGS #include #include -#include -#include +LIBDCP_ENABLE_WARNINGS #include +#include + class Content; -class CaptionContent; +class TextContent; +namespace dcpomatic { + class Font; +} + class FontsDialog : public wxDialog { public: - FontsDialog (wxWindow* parent, boost::shared_ptr, boost::shared_ptr caption); + FontsDialog (wxWindow* parent, std::shared_ptr, std::shared_ptr caption); private: void setup (); void setup_sensitivity (); void selection_changed (); - void edit_clicked (); + void set_from_file_clicked (); + void set_from_system_font_clicked (); + std::shared_ptr get_selection (); - boost::weak_ptr _content; - boost::weak_ptr _caption; + std::weak_ptr _content; + std::weak_ptr _caption; wxListCtrl* _fonts; - wxButton* _edit; + wxButton* _set_from_file; + wxButton* _set_from_system_font = nullptr; };