diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-08-18 23:30:42 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-08-18 23:30:42 +0100 |
| commit | fe6921ea758a84d3982180cb2a8e6d95be9cf732 (patch) | |
| tree | 6a8aefb6bdbaf3b4f7100ac24e004837dfffb536 /src/wx/fonts_dialog.h | |
| parent | 8aeb1ed834bf6d61896b5478ba2c4529cb3fb706 (diff) | |
Add custom dialog to select system fonts on Windows (#491).
Diffstat (limited to 'src/wx/fonts_dialog.h')
| -rw-r--r-- | src/wx/fonts_dialog.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/wx/fonts_dialog.h b/src/wx/fonts_dialog.h index 0d4bcfd7e..c29a982c9 100644 --- a/src/wx/fonts_dialog.h +++ b/src/wx/fonts_dialog.h @@ -20,6 +20,8 @@ #include <wx/listctrl.h> #include <wx/wx.h> #include <boost/shared_ptr.hpp> +#include <boost/weak_ptr.hpp> +#include <boost/filesystem.hpp> class SubtitleContent; @@ -30,11 +32,14 @@ public: private: void setup (); - void set_file_clicked (); + void set_from_file_clicked (); + void set_from_system_clicked (); void update_sensitivity (); void selection_changed (); + void set_selected_font_file (boost::filesystem::path file); boost::weak_ptr<SubtitleContent> _content; wxListCtrl* _fonts; - wxButton* _set_file; + wxButton* _set_from_file; + wxButton* _set_from_system; }; |
