Audacity  2.2.0
ThemePrefs Class Referencefinal

A PrefsPanel that configures dynamic loading of Theme icons and colours. More...

#include <ThemePrefs.h>

Inheritance diagram for ThemePrefs:
PrefsPanel wxTabTraversalWrapper< Base >

Public Member Functions

 ThemePrefs (wxWindow *parent)
 
 ~ThemePrefs (void)
 
bool Commit () override
 Update the preferences stored on disk. More...
 
- Public Member Functions inherited from PrefsPanel
 PrefsPanel (wxWindow *parent, const wxString &title)
 
virtual ~PrefsPanel ()
 
virtual void Preview ()
 
virtual bool ShowsPreviewButton ()
 
virtual wxString HelpPageName ()
 
virtual void Cancel ()
 
- Public Member Functions inherited from wxTabTraversalWrapper< Base >
template<typename... Args>
 wxTabTraversalWrapper (Args &&...args)
 
 ~wxTabTraversalWrapper ()
 

Private Member Functions

void Populate ()
 Creates the dialog and its contents. More...
 
void PopulateOrExchange (ShuttleGui &S)
 Create the dialog contents, or exchange data with it. More...
 
void OnLoadThemeComponents (wxCommandEvent &e)
 Load Theme from multiple png files. More...
 
void OnSaveThemeComponents (wxCommandEvent &e)
 Save Theme to multiple png files. More...
 
void OnLoadThemeCache (wxCommandEvent &e)
 Load Theme from single png file. More...
 
void OnSaveThemeCache (wxCommandEvent &e)
 Save Theme to single png file. More...
 
void OnReadThemeInternal (wxCommandEvent &e)
 Read Theme from internal storage. More...
 
void OnSaveThemeAsCode (wxCommandEvent &e)
 Save Theme as C source code. More...
 

Detailed Description

A PrefsPanel that configures dynamic loading of Theme icons and colours.

Provides:

  • Button to save current theme as a single png image.
  • Button to load theme from a single png image.
  • Button to save current theme to multiple png images.
  • Button to load theme from multiple png images.
  • (Optional) Button to save theme as Cee data.
  • Button to read theme from default values in program.
  • CheckBox for loading custom themes at startup.
See Also
Themability of Audacity

Constructor & Destructor Documentation

ThemePrefs::ThemePrefs ( wxWindow *  parent)
ThemePrefs::~ThemePrefs ( void  )

Member Function Documentation

bool ThemePrefs::Commit ( )
overridevirtual

Update the preferences stored on disk.

Implements PrefsPanel.

References eIsSavingToPrefs, and PopulateOrExchange().

void ThemePrefs::OnLoadThemeCache ( wxCommandEvent &  e)
private

Load Theme from single png file.

References Theme::ApplyUpdatedImages(), ThemeBase::ReadImageCache(), and theTheme.

void ThemePrefs::OnLoadThemeComponents ( wxCommandEvent &  e)
private

Load Theme from multiple png files.

References Theme::ApplyUpdatedImages(), ThemeBase::LoadComponents(), and theTheme.

void ThemePrefs::OnReadThemeInternal ( wxCommandEvent &  e)
private
void ThemePrefs::OnSaveThemeAsCode ( wxCommandEvent &  e)
private

Save Theme as C source code.

References ThemeBase::SaveThemeAsCode(), theTheme, and ThemeBase::WriteImageDefs().

void ThemePrefs::OnSaveThemeCache ( wxCommandEvent &  e)
private

Save Theme to single png file.

References ThemeBase::CreateImageCache(), theTheme, and ThemeBase::WriteImageMap().

void ThemePrefs::OnSaveThemeComponents ( wxCommandEvent &  e)
private

Save Theme to multiple png files.

References ThemeBase::SaveComponents(), and theTheme.

void ThemePrefs::Populate ( )
private

Creates the dialog and its contents.

References eIsCreatingFromPrefs, and PopulateOrExchange().


The documentation for this class was generated from the following files: