Audacity  3.0.3
Classes | Typedefs | Enumerations | Variables
Theme.h File Reference
#include <vector>
#include <wx/defs.h>
#include <wx/window.h>
Include dependency graph for Theme.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  FlowPacker
 Packs rectangular boxes into a rectangle, using simple first fit. More...
 
class  ThemeBase
 Theme management - Image loading and saving. More...
 
class  Theme
 Based on ThemeBase, Theme manages image and icon resources. More...
 
class  auStaticText
 is like wxStaticText, except it can be themed. wxStaticText can't be. More...
 

Typedefs

using teBmps = int
 

Enumerations

enum  teResourceType {
  resTypeColour, resTypeBitmap, resTypeImage = resTypeBitmap, resTypeCursor,
  resTypeFont
}
 The index of a bitmap resource in Theme Resources. More...
 
enum  teResourceFlags {
  resFlagNone =0x00, resFlagPaired =0x01, resFlagCursor =0x02, resFlagNewLine = 0x04,
  resFlagInternal = 0x08, resFlagSkip = 0x10
}
 
enum  teThemeType {
  themeClassic, themeDark, themeLight, themeHiContrast,
  themeFromFile
}
 

Variables

AUDACITY_DLL_API Theme theTheme
 
AUDACITY_DLL_API ChoiceSetting GUITheme
 

Typedef Documentation

◆ teBmps

using teBmps = int

Definition at line 33 of file Theme.h.

Enumeration Type Documentation

◆ teResourceFlags

Enumerator
resFlagNone 
resFlagPaired 
resFlagCursor 
resFlagNewLine 
resFlagInternal 
resFlagSkip 

Definition at line 44 of file Theme.h.

45 {
46  resFlagNone =0x00,
47  resFlagPaired =0x01,
48  resFlagCursor =0x02,
49  resFlagNewLine = 0x04,
50  resFlagInternal = 0x08, // For image manipulation. Don't save or load.
51  resFlagSkip = 0x10
52 };

◆ teResourceType

The index of a bitmap resource in Theme Resources.

Enumerator
resTypeColour 
resTypeBitmap 
resTypeImage 
resTypeCursor 
resTypeFont 

Definition at line 35 of file Theme.h.

36 {
42 };

◆ teThemeType

Enumerator
themeClassic 
themeDark 
themeLight 
themeHiContrast 
themeFromFile 

Definition at line 54 of file Theme.h.

55 {
57  themeDark,
58  themeLight,
61 };

Variable Documentation

◆ GUITheme

AUDACITY_DLL_API ChoiceSetting GUITheme
extern

Definition at line 1314 of file Theme.cpp.

Referenced by ThemeBase::LoadPreferredTheme(), and GUIPrefs::PopulateOrExchange().

◆ theTheme

AUDACITY_DLL_API Theme theTheme
extern

Definition at line 203 of file Theme.cpp.

Referenced by EditToolBar::AddButton(), ScrubbingToolBar::AddButton(), TranscriptionToolBar::AddButton(), anonymous_namespace{HelpMenus.cpp}::QuickFixDialog::AddStuck(), SelectionBar::AddTitle(), ProjectWindow::ApplyUpdatedTheme(), ASlider::ASlider(), auStaticText::auStaticText(), AColor::Bevel2(), AColor::BevelTrackInfo(), TrackInfo::CloseTitleDrawFunction(), GUIPrefs::Commit(), CreateStdButtonSizer(), Exporter::CreateUserPane(), CursorColour(), WaveTrackVRulerControls::DoDraw(), AdornedRulerPanel::DoDrawMarks(), AdornedRulerPanel::DoDrawSelection(), LabelTrackView::Draw(), NoteTrackAffordanceControls::Draw(), WaveTrackAffordanceControls::Draw(), TimeTrackVRulerControls::Draw(), Ruler::Label::Draw(), TrackInfo::DrawCloseButton(), anonymous_namespace{TimeTrackView.cpp}::DrawHorzRulerAndCurve(), TrackInfo::DrawItems(), NoteTrack::DrawLabelControls(), anonymous_namespace{NoteTrackView.cpp}::DrawNoteTrack(), FrequencyPlotDialog::DrawPlot(), TrackArt::DrawSyncLockTiles(), LWSlider::DrawToBitmap(), anonymous_namespace{TrackPanel.cpp}::DrawTrackName(), ErrorReportDialog::ErrorReportDialog(), LabelTrackView::GetGlyph(), AdornedRulerPanel::GetIndicatorBitmap(), Grabber::Grabber(), HtmlColourOfIndex(), AColor::Init(), InitProjectWindow(), NumericTextCtrl::Layout(), ThemeBase::LoadPreferredTheme(), ThemeBase::LoadTheme(), ControlToolBar::MakeAlternateImages(), ToolBar::MakeAlternateImages(), TranscriptionToolBar::MakeAlternateImages(), ControlToolBar::MakeButton(), ToolBar::MakeButton(), MixerBoard::MakeButtonBitmap(), ToolBar::MakeMacRecoloredImage(), WaveTrackAffordanceControls::MakeTextEditHelper(), ToolsToolBar::MakeTool(), TrackInfo::MinimizeSyncLockDrawFunction(), MixerBoard::MixerBoard(), MultiDialog::MultiDialog(), ToolManager::OnIndicatorPaint(), AudacityApp::OnInit(), ThemePrefs::OnLoadThemeCache(), ThemePrefs::OnLoadThemeComponents(), EqualizationPanel::OnPaint(), ToolBarResizer::OnPaint(), ToolBar::OnPaint(), ToolDock::OnPaint(), NumericTextCtrl::OnPaint(), EffectAutoDuckPanel::OnPaint(), EffectCompressorPanel::OnPaint(), EffectScienFilterPanel::OnPaint(), MixerTrackCluster::OnPaint(), MeterPanel::OnPaint(), ToolFrame::OnPaint(), ThemePrefs::OnReadThemeInternal(), ThemePrefs::OnSaveThemeAsCode(), ThemePrefs::OnSaveThemeCache(), ThemePrefs::OnSaveThemeComponents(), OverlayImage(), FrequencyPlotDialog::Populate(), ControlToolBar::Populate(), DeviceToolBar::Populate(), EditToolBar::Populate(), MeterToolBar::Populate(), MixerToolBar::Populate(), ScrubbingToolBar::Populate(), SelectionBar::Populate(), ToolsToolBar::Populate(), TranscriptionToolBar::Populate(), AColor::PreComputeGradient(), AdornedRulerPanel::ReCreateButtons(), ThemeBase::RotateImageInto(), Ruler::Ruler(), TrackArtist::SetColours(), LogWindow::Show(), HelpSystem::ShowHtmlText(), ToolBarGrabber::ToolBarGrabber(), ToolDock::ToolDock(), MixerBoard::UpdatePrefs(), and AColor::UseThemeColour().

resFlagPaired
@ resFlagPaired
Definition: Theme.h:47
resTypeFont
@ resTypeFont
Definition: Theme.h:41
resFlagSkip
@ resFlagSkip
Definition: Theme.h:51
resTypeBitmap
@ resTypeBitmap
Definition: Theme.h:38
resTypeCursor
@ resTypeCursor
Definition: Theme.h:40
themeHiContrast
@ themeHiContrast
Definition: Theme.h:59
resFlagInternal
@ resFlagInternal
Definition: Theme.h:50
resFlagNone
@ resFlagNone
Definition: Theme.h:46
themeFromFile
@ themeFromFile
Definition: Theme.h:60
resTypeColour
@ resTypeColour
Definition: Theme.h:37
themeDark
@ themeDark
Definition: Theme.h:57
themeClassic
@ themeClassic
Definition: Theme.h:56
resTypeImage
@ resTypeImage
Definition: Theme.h:39
themeLight
@ themeLight
Definition: Theme.h:58
resFlagCursor
@ resFlagCursor
Definition: Theme.h:48
resFlagNewLine
@ resFlagNewLine
Definition: Theme.h:49