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 , 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 
ETBZoomSelID 
ETBZoomFitID 
ETBTrimID 
ETBSilenceID 
ETBUndoID 
ETBRedoID 
ETBNumButtons 

Definition at line 58 of file EditToolBar.cpp.

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

Function Documentation

◆ EVT_COMMAND_RANGE()

Methods for EditToolBar.

Definition at line 115 of file EditToolBar.cpp.

122{
123 return wxT("Edit");
124}
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") },
{ 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 90 of file EditToolBar.cpp.

◆ factory

RegisteredToolbarFactory factory
static
Initial value:
{
}
#define safenew
Definition: MemoryX.h:9
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:78

Definition at line 252 of file EditToolBar.cpp.

◆ first_ETB_ID

constexpr int first_ETB_ID = 11300
constexpr

Definition at line 88 of file EditToolBar.cpp.