Audacity 3.2.0
Namespaces | Enumerations | Functions | Variables
CutCopyPasteToolBar.cpp File Reference
#include "CutCopyPasteToolBar.h"
#include <wx/wxprec.h>
#include <wx/setup.h>
#include <wx/app.h>
#include <wx/event.h>
#include <wx/image.h>
#include <wx/intl.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 CutCopyPasteToolBar.cpp:

Go to the source code of this file.

Namespaces

namespace  anonymous_namespace{CutCopyPasteToolBar.cpp}
 

Enumerations

enum  {
  TBCutID , TBCopyID , TBPasteID , TBDeleteID ,
  TBNumButtons
}
 

Functions

 IMPLEMENT_CLASS (CutCopyPasteToolBar, ToolBar)
 
 EVT_COMMAND_RANGE (TBCutID+first_TB_ID, TBCutID+first_TB_ID+TBNumButtons - 1, wxEVT_COMMAND_BUTTON_CLICKED, CutCopyPasteToolBar::OnButton) Identifier CutCopyPasteToolBar
 Methods for CutCopyPasteToolBar. More...
 

Variables

constexpr int first_TB_ID = 21300
 
static const ToolBarButtons::ButtonList CutCopyPasteToolbarButtonList
 
static RegisteredToolbarFactory factory
 
AttachedToolBarMenuItem anonymous_namespace{CutCopyPasteToolBar.cpp}::sAttachment
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
TBCutID 
TBCopyID 
TBPasteID 
TBDeleteID 
TBNumButtons 

Definition at line 61 of file CutCopyPasteToolBar.cpp.

61 {
62 TBCutID,
67};
@ TBDeleteID
@ TBNumButtons

Function Documentation

◆ EVT_COMMAND_RANGE()

Methods for CutCopyPasteToolBar.

Definition at line 85 of file CutCopyPasteToolBar.cpp.

92{
93 return wxT("CutCopyPaste");
94}
wxT("CloseDown"))

References wxT().

Here is the call graph for this function:

◆ IMPLEMENT_CLASS()

IMPLEMENT_CLASS ( CutCopyPasteToolBar  ,
ToolBar   
)

Variable Documentation

◆ CutCopyPasteToolbarButtonList

const ToolBarButtons::ButtonList CutCopyPasteToolbarButtonList
static
Initial value:
= {
{ TBCutID, wxT("Cut"), XO("Cut") },
{ TBCopyID, wxT("Copy"), XO("Copy") },
{ TBPasteID, wxT("Paste"), XO("Paste") },
{ TBDeleteID, wxT("Delete"), XO("Delete")}
}
XO("Cut/Copy/Paste")

Definition at line 71 of file CutCopyPasteToolBar.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 cut, copy and paste buttons on it.
wxWindowPtr< ToolBar > Holder
Definition: ToolBar.h:78

Definition at line 181 of file CutCopyPasteToolBar.cpp.

◆ first_TB_ID

constexpr int first_TB_ID = 21300
constexpr

Definition at line 69 of file CutCopyPasteToolBar.cpp.