Audacity  2.2.0
MixerToolBar.h
Go to the documentation of this file.
1 /**********************************************************************
2 
3  Audacity: A Digital Audio Editor
4 
5  MixerToolbar.h
6 
7  Dominic Mazzoni
8 
9 **********************************************************************/
10 
11 #ifndef __AUDACITY_MIXER_TOOLBAR__
12 #define __AUDACITY_MIXER_TOOLBAR__
13 
14 #include "../MemoryX.h"
15 #include "ToolBar.h"
16 
17 class wxImage;
18 class wxSize;
19 class wxPoint;
20 class wxChoice;
21 class wxStaticBitmap;
22 
23 class ASlider;
24 
25 class MixerToolBar final : public ToolBar {
26 
27  public:
28 
29  MixerToolBar();
30  virtual ~MixerToolBar();
31 
32  void Create(wxWindow * parent);
33 
34  void UpdatePrefs();
35  void UpdateControls();
36  void SetMixer(wxCommandEvent &event);
37 
38  void Populate() override;
39  void Repaint(wxDC * WXUNUSED(dc)) override {};
40  void EnableDisableButtons() override {};
41 
42  void OnFocus(wxFocusEvent &event);
43  void OnCaptureKey(wxCommandEvent &event);
44 
45  void OnSlider(wxCommandEvent & event);
46 
47  void ShowOutputGainDialog();
48  void ShowInputGainDialog();
49 
50  void AdjustOutputGain(int adj);
51  void AdjustInputGain(int adj);
52 
53  void RegenerateTooltips() override {};
54 
55  protected:
56  float mInputSliderVolume;
58 
59  private:
60 
62  void SetToolTips();
63 
66 
67  public:
68 
69  DECLARE_CLASS(MixerToolBar)
70  DECLARE_EVENT_TABLE()
71 };
72 
73 #endif
74 
void Populate() override
Definition: MixerToolBar.cpp:73
void AdjustInputGain(int adj)
Definition: MixerToolBar.cpp:266
void InitializeMixerToolBar()
ASlider * mInputSlider
Definition: MixerToolBar.h:64
float mInputSliderVolume
Definition: MixerToolBar.h:53
void OnCaptureKey(wxCommandEvent &event)
Definition: MixerToolBar.cpp:137
float mOutputSliderVolume
Definition: MixerToolBar.h:57
void Repaint(wxDC *WXUNUSED(dc)) override
Definition: MixerToolBar.h:39
MixerToolBar()
Methods for MixerToolBar.
Definition: MixerToolBar.cpp:57
void EnableDisableButtons() override
Definition: MixerToolBar.h:40
ASlider * mOutputSlider
Definition: MixerToolBar.h:65
void UpdatePrefs()
Definition: MixerToolBar.cpp:159
void AdjustOutputGain(int adj)
Definition: MixerToolBar.cpp:253
void OnSlider(wxCommandEvent &event)
void ShowOutputGainDialog()
Definition: MixerToolBar.cpp:237
void RegenerateTooltips() override
Definition: MixerToolBar.h:53
virtual ~MixerToolBar()
Definition: MixerToolBar.cpp:64
void ShowInputGainDialog()
Definition: MixerToolBar.cpp:245
void Create(wxWindow *parent)
Definition: MixerToolBar.cpp:68
void SetMixer(wxCommandEvent &event)
Definition: MixerToolBar.cpp:221
void UpdateControls()
Definition: MixerToolBar.cpp:195
ASlider is a custom slider, allowing for a slicker look and feel.
Definition: ASlider.h:242
A ToolBar that provides the record and playback volume settings.
Definition: MixerToolBar.h:25
Works with ToolManager and ToolDock to provide a dockable window in which buttons can be placed...
Definition: ToolBar.h:87
void SetToolTips()
Definition: MixerToolBar.cpp:279
void OnFocus(wxFocusEvent &event)
Definition: MixerToolBar.cpp:123