Audacity 3.2.0
CutCopyPasteToolBar.h
Go to the documentation of this file.
1/**********************************************************************
2
3 Audacity: A Digital Audio Editor
4
5
6 CutCopyPaste.h
7
8 ksoze95
9
10**********************************************************************/
11
12#ifndef __AUDACITY_CUT_COPY_PASTE_TOOLBAR__
13#define __AUDACITY_CUT_COPY_PASTE_TOOLBAR__
14
15#include <wx/defs.h>
16
17#include "ToolBar.h"
18#include "ToolBarButtons.h"
19
20class wxCommandEvent;
21class wxDC;
22class wxGridSizer;
23class wxImage;
24class wxWindow;
25
26class CutCopyPasteToolBar final : public ToolBar {
27
28 public:
29
31 virtual ~CutCopyPasteToolBar();
32
33 bool ShownByDefault() const override;
34 bool HideAfterReset() const override;
35
36 static Identifier ID();
37
38 void Create(wxWindow *parent) override;
39
40 void OnButton(wxCommandEvent & event);
41
42 void Populate() override;
43 void Repaint(wxDC * WXUNUSED(dc)) override {};
44 void EnableDisableButtons() override;
45 void UpdatePrefs() override;
46
47 private:
48
49 void AddButton(
50 teBmps eEnabledUp, teBmps eEnabledDown, teBmps eDisabled,
51 int id, const TranslatableString &label, bool toggle = false);
52
53 void RegenerateTooltips() override;
54
56 wxGridSizer* mToolSizer;
57
58 public:
59
60 DECLARE_CLASS(CutCopyPaste)
61 DECLARE_EVENT_TABLE()
62};
63
64#endif
65
wxImage(22, 22)
int teBmps
TranslatableString label
Definition: TagsEditor.cpp:165
const auto project
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 cut, copy and paste buttons on it.
bool ShownByDefault() const override
Whether the toolbar should be shown by default. Default implementation returns true.
void EnableDisableButtons() override
bool HideAfterReset() const override
Default implementation returns false.
static Identifier ID()
void Repaint(wxDC *WXUNUSED(dc)) override
void OnButton(wxCommandEvent &event)
void AddButton(teBmps eEnabledUp, teBmps eEnabledDown, teBmps eDisabled, int id, const TranslatableString &label, bool toggle=false)
CutCopyPasteToolBar(AudacityProject &project)
void Create(wxWindow *parent) override
void RegenerateTooltips() override
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.