Audacity 3.2.0
EditToolBar.h
Go to the documentation of this file.
1/**********************************************************************
2
3 Audacity: A Digital Audio Editor
4
5
6 EditToolbar.h
7
8 Dominic Mazzoni
9 Shane T. Mueller
10 Leland Lucius
11
12**********************************************************************/
13
14#ifndef __AUDACITY_EDIT_TOOLBAR__
15#define __AUDACITY_EDIT_TOOLBAR__
16
17#include <wx/defs.h>
18
19#include "ToolBar.h"
20#include "ToolBarButtons.h"
21
22class wxCommandEvent;
23class wxDC;
24class wxGridSizer;
25class wxImage;
26class wxWindow;
27
28class AButton;
29
30class EditToolBar final : public ToolBar {
31
32 public:
33
34 static Identifier ID();
35
37 virtual ~EditToolBar();
38
39 void Create(wxWindow *parent) override;
40
41 void OnButton(wxCommandEvent & event);
42
43 void Populate() override;
44 void Repaint(wxDC * WXUNUSED(dc)) override {};
45 void EnableDisableButtons() override;
46 void UpdatePrefs() override;
47
48 private:
49
50 void AddButton(
51 teBmps eEnabledUp, teBmps eEnabledDown, teBmps eDisabled,
52 int id, const TranslatableString &label, bool toggle = false);
53
54 void AddSeparator();
55
56 void RegenerateTooltips() override;
57
59 wxGridSizer* mToolSizer;
60
61 public:
62
63 DECLARE_CLASS(EditToolBar)
64 DECLARE_EVENT_TABLE()
65};
66
67#endif
68
wxImage(22, 22)
int teBmps
TranslatableString label
Definition: TagsEditor.cpp:165
const auto project
A wxButton with mouse-over behaviour.
Definition: AButton.h:104
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
Definition: Project.h:90
A ToolBar that has the edit buttons on it.
Definition: EditToolBar.h:30
void EnableDisableButtons() override
EditToolBar(AudacityProject &project)
void UpdatePrefs() override
void Create(wxWindow *parent) override
ToolBarButtons mButtons
Definition: EditToolBar.h:58
wxGridSizer * mToolSizer
Definition: EditToolBar.h:59
void RegenerateTooltips() override
void Populate() override
void AddButton(teBmps eEnabledUp, teBmps eEnabledDown, teBmps eDisabled, int id, const TranslatableString &label, bool toggle=false)
void AddSeparator()
void OnButton(wxCommandEvent &event)
static Identifier ID()
void Repaint(wxDC *WXUNUSED(dc)) override
Definition: EditToolBar.h:44
virtual ~EditToolBar()
An explicitly nonlocalized string, not meant for the user to see.
Definition: Identifier.h:22
Works with ToolManager and ToolDock to provide a dockable window in which buttons can be placed.
Definition: ToolBar.h:73
Holds a msgid for the translation catalog; may also bind format arguments.