Audacity  2.2.2
Classes | Functions | Variables
EditToolBar.cpp File Reference
#include "../Audacity.h"
#include "EditToolBar.h"
#include <wx/wxprec.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 "../AudioIO.h"
#include "../ImageManipulation.h"
#include "../Internat.h"
#include "../Prefs.h"
#include "../Project.h"
#include "../Theme.h"
#include "../Track.h"
#include "../UndoManager.h"
#include "../widgets/AButton.h"
#include "../Experimental.h"
#include "../commands/CommandContext.h"

Go to the source code of this file.

Classes

struct  Entry
 

Functions

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

Variables

const int BUTTON_WIDTH = 27
 
const int SEPARATOR_WIDTH = 14
 
static const struct Entry EditToolbarButtonList []
 

Function Documentation

EVT_COMMAND_RANGE ( ETBCutID first_ETB_ID,
ETBCutID+first_ETB_ID+ETBNumButtons 1,
wxEVT_COMMAND_BUTTON_CLICKED  ,
EditToolBar::OnButton   
)

Methods for EditToolBar.

Definition at line 72 of file EditToolBar.cpp.

80 : ToolBar(EditBarID, _("Edit"), wxT("Edit"))
81 {
82 }
_("Move Track &Down")+wxT("\t")+(GetActiveProject() -> GetCommandManager() ->GetKeyFromName(wxT("TrackMoveDown")).Raw()), OnMoveTrack) POPUP_MENU_ITEM(OnMoveTopID, _("Move Track to &Top")+wxT("\t")+(GetActiveProject() ->GetCommandManager() ->GetKeyFromName(wxT("TrackMoveTop")).Raw()), OnMoveTrack) POPUP_MENU_ITEM(OnMoveBottomID, _("Move Track to &Bottom")+wxT("\t")+(GetActiveProject() ->GetCommandManager() ->GetKeyFromName(wxT("TrackMoveBottom")).Raw()), OnMoveTrack)#define SET_TRACK_NAME_PLUGIN_SYMBOLclass SetTrackNameCommand:public AudacityCommand
Works with ToolManager and ToolDock to provide a dockable window in which buttons can be placed...
Definition: ToolBar.h:87
IMPLEMENT_CLASS ( EditToolBar  ,
ToolBar   
)

Variable Documentation

const int BUTTON_WIDTH = 27

Definition at line 64 of file EditToolBar.cpp.

const struct Entry EditToolbarButtonList[]
static
Initial value:
= {
{ ETBCutID, wxT("Cut"), XO("Cut") },
{ ETBCopyID, wxT("Copy"), XO("Copy") },
{ ETBPasteID, wxT("Paste"), XO("Paste") },
{ 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") },
{ 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") },
}
#define XO(s)
Definition: Internat.h:33

Referenced by EditToolBar::ForAllButtons(), and EditToolBar::OnButton().

const int SEPARATOR_WIDTH = 14

Definition at line 65 of file EditToolBar.cpp.