Audacity 3.2.0
Namespaces | Enumerations | Functions | Variables
EditToolBar.cpp File Reference
#include "EditToolBar.h"
#include <wx/wxprec.h>
#include <wx/setup.h>
#include <wx/app.h>
#include <wx/sizer.h>
#include <wx/tooltip.h>
#include "AllThemeResources.h"
#include "ImageManipulation.h"
#include "Prefs.h"
#include "Project.h"
#include "UndoManager.h"
#include "../widgets/AButton.h"
#include "CommandContext.h"
#include "CommandManager.h"
#include "../commands/CommandDispatch.h"
#include "ToolManager.h"
Include dependency graph for EditToolBar.cpp:

Go to the source code of this file.

Namespaces

namespace  anonymous_namespace{EditToolBar.cpp}
 

Enumerations

enum  {
  ETBZoomInID , ETBZoomOutID , ETBZoomToggleID , ETBZoomSelID ,
  ETBZoomFitID , ETBTrimID , ETBSilenceID , ETBUndoID ,
  ETBRedoID , ETBNumButtons
}
 

Functions

 IMPLEMENT_CLASS (EditToolBar, ToolBar)
 
 EVT_COMMAND_RANGE (ETBZoomInID+first_ETB_ID, ETBZoomInID+first_ETB_ID+ETBNumButtons - 1, wxEVT_COMMAND_BUTTON_CLICKED, EditToolBar::OnButton) Identifier EditToolBar
 Methods for EditToolBar. More...
 

Variables

constexpr int first_ETB_ID = 11300
 
static const ToolBarButtons::ButtonList EditToolbarButtonList
 
static RegisteredToolbarFactory factory
 
AttachedToolBarMenuItem anonymous_namespace{EditToolBar.cpp}::sAttachment
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
ETBZoomInID 
ETBZoomOutID 
ETBZoomToggleID 
ETBZoomSelID 
ETBZoomFitID 
ETBTrimID 
ETBSilenceID 
ETBUndoID 
ETBRedoID 
ETBNumButtons 

Definition at line 58 of file EditToolBar.cpp.

58 {
62
65
68
69 // no sync-lock on/off button.
70 // #define OPTION_SYNC_LOCK_BUTTON
71
72#ifdef OPTION_SYNC_LOCK_BUTTON
73 ETBSyncLockID,
74#endif
75
78
80};
@ ETBZoomInID
Definition: EditToolBar.cpp:59
@ ETBRedoID
Definition: EditToolBar.cpp:77
@ ETBNumButtons
Definition: EditToolBar.cpp:79
@ ETBZoomSelID
Definition: EditToolBar.cpp:63
@ ETBUndoID
Definition: EditToolBar.cpp:76
@ ETBZoomOutID
Definition: EditToolBar.cpp:60
@ ETBTrimID
Definition: EditToolBar.cpp:66
@ ETBZoomToggleID
Definition: EditToolBar.cpp:61
@ ETBSilenceID
Definition: EditToolBar.cpp:67
@ ETBZoomFitID
Definition: EditToolBar.cpp:64

Function Documentation

◆ EVT_COMMAND_RANGE()

Methods for EditToolBar.

Definition at line 111 of file EditToolBar.cpp.

118{
119 return wxT("Edit");
120}
wxT("CloseDown"))

References wxT().

Here is the call graph for this function:

◆ IMPLEMENT_CLASS()

IMPLEMENT_CLASS ( EditToolBar  ,
ToolBar   
)

Variable Documentation

◆ EditToolbarButtonList

const ToolBarButtons::ButtonList EditToolbarButtonList
static
Initial value:
= {
{ ETBZoomInID, wxT("ZoomIn"), XO("Zoom In") },
{ ETBZoomOutID, wxT("ZoomOut"), XO("Zoom Out") },
{ ETBZoomToggleID, wxT("ZoomToggle"), XO("Zoom Toggle") },
{ ETBZoomSelID, wxT("ZoomSel"), XO("Fit selection to width") },
{ ETBZoomFitID, wxT("FitInWindow"), XO("Fit project to width") },
{ ETBTrimID, wxT("Trim"), XO("Trim audio outside selection") },
{ ETBSilenceID, wxT("Silence"), XO("Silence audio selection") },
{ ETBUndoID, wxT("Undo"), XO("Undo") },
{ ETBRedoID, wxT("Redo"), XO("Redo") },
}
XO("Cut/Copy/Paste")

Definition at line 88 of file EditToolBar.cpp.

◆ factory

RegisteredToolbarFactory factory
static
Initial value:
{
}
#define safenew
Definition: MemoryX.h:10
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 edit buttons on it.
Definition: EditToolBar.h:30
wxWindowPtr< ToolBar > Holder
Definition: ToolBar.h:77

Definition at line 244 of file EditToolBar.cpp.

◆ first_ETB_ID

constexpr int first_ETB_ID = 11300
constexpr

Definition at line 86 of file EditToolBar.cpp.