-#ifdef DCPOMATIC_OSX
- wxBitmap GetLargeIcon () const
- {
- return wxBitmap ("colour_conversions", wxBITMAP_TYPE_PNG_RESOURCE);
- }
-#endif
-
-private:
- void setup ()
- {
- vector<string> columns;
- columns.push_back (wx_to_std (_("Name")));
- _list = new EditableList<PresetColourConversion, PresetColourConversionDialog> (
- _panel,
- columns,
- boost::bind (&Config::colour_conversions, Config::instance()),
- boost::bind (&Config::set_colour_conversions, Config::instance(), _1),
- boost::bind (&ColourConversionsPage::colour_conversion_column, this, _1),
- 300
- );
-
- _panel->GetSizer()->Add (_list, 1, wxEXPAND | wxALL, _border);
- }
-
- void config_changed ()
- {
- _list->refresh ();
- }
-
- string colour_conversion_column (PresetColourConversion c)
- {
- return c.name;
- }
-
- EditableList<PresetColourConversion, PresetColourConversionDialog>* _list;
-};
-
-class KeysPage : public StandardPage
-{
-public:
- KeysPage (wxSize panel_size, int border)
- : StandardPage (panel_size, border)
- {}
-
- wxString GetName () const
- {
- return _("Keys");
- }
-
-#ifdef DCPOMATIC_OSX
- wxBitmap GetLargeIcon () const
- {
- return wxBitmap ("keys", wxBITMAP_TYPE_PNG_RESOURCE);
- }
-#endif
+ {
+ wxStaticText* m = new wxStaticText (this, wxID_ANY, title);
+ m->SetFont (subheading_font);
+ _sizer->Add (m, 0, wxALL, border);
+ }