1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-17 08:30:06 +02:00
audacity/src/prefs/ThemePrefs.h
Paul Licameli bf005c0dec PrefsPanel::Factory is a specialization of std::function...
... We don't need to define a class for it
2019-05-16 12:14:51 -04:00

52 lines
1.3 KiB
C++

/**********************************************************************
Audacity: A Digital Audio Editor
ThemePrefs.h
James Crook
Audacity is free software.
This file is licensed under the wxWidgets license, see License.txt
**********************************************************************/
#ifndef __AUDACITY_THEME_PREFS__
#define __AUDACITY_THEME_PREFS__
#include <wx/defs.h>
#include "PrefsPanel.h"
class ShuttleGui;
#define THEME_PREFS_PLUGIN_SYMBOL ComponentInterfaceSymbol{ XO("Theme") }
class ThemePrefs final : public PrefsPanel
{
public:
ThemePrefs(wxWindow * parent, wxWindowID winid);
~ThemePrefs(void);
ComponentInterfaceSymbol GetSymbol() override;
wxString GetDescription() override;
bool Commit() override;
wxString HelpPageName() override;
private:
void Populate();
void PopulateOrExchange(ShuttleGui & S) override;
void OnLoadThemeComponents(wxCommandEvent & e);
void OnSaveThemeComponents(wxCommandEvent & e);
void OnLoadThemeCache(wxCommandEvent & e);
void OnSaveThemeCache(wxCommandEvent & e);
void OnReadThemeInternal(wxCommandEvent & e);
void OnSaveThemeAsCode(wxCommandEvent & e);
DECLARE_EVENT_TABLE()
};
/// A PrefsPanel::Factory that creates one ThemePrefs panel.
extern PrefsPanel::Factory ThemePrefsFactory;
#endif