forked from tenacityteam/tenacity-legacy
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathThemePrefs.h
56 lines (39 loc) · 1.46 KB
/
ThemePrefs.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/**********************************************************************
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 <wx/event.h> // to declare a custom event type
#include "PrefsPanel.h"
class ShuttleGui;
// An event sent to the application when the user changes choice of theme
wxDECLARE_EXPORTED_EVENT(AUDACITY_DLL_API,
EVT_THEME_CHANGE, wxCommandEvent);
#define THEME_PREFS_PLUGIN_SYMBOL ComponentInterfaceSymbol{ XO("Theme") }
class ThemePrefs final : public PrefsPanel
{
public:
ThemePrefs(wxWindow * parent, wxWindowID winid);
~ThemePrefs(void);
ComponentInterfaceSymbol GetSymbol() override;
TranslatableString GetDescription() override;
bool Commit() override;
ManualPageID HelpPageName() override;
static void ApplyUpdatedImages();
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()
};
#endif