46#include <wx/tooltip.h>
52#include "../ProjectSettings.h"
53#include "../tracks/ui/Scrubbing.h"
56#include "../widgets/AButton.h"
75AButton* MakeToolsToolBarButton(wxWindow* parent,
82 button->SetButtonToggles(
true);
89 button->SetIcon(toolIcon);
90 button->SetFrameMid(3);
91 button->SetLabel(
label);
92 button->SetMinSize(wxSize { 25, 25 });
93 button->SetMaxSize(wxSize { 25, 25 });
115 bool multiToolActive =
false;
116 gPrefs->
Read(
wxT(
"/GUI/ToolBars/Tools/MultiToolActive"), &multiToolActive);
131 "mismatch in number of tools" );
173 static const struct Entry {
184 for (
const auto &
entry : table) {
238 auto pButton =
mTool[iTool];
239 if (pButton->IsDown())
291#include "../TrackPanel.h"
343 trackPanel.Refresh(
false);
353 trackPanel.Refresh(
false);
359 static auto menu = std::shared_ptr{
378 wxT(
"Optional/Extra/Part1")
wxEVT_COMMAND_BUTTON_CLICKED
AttachedItem sAttachment2
constexpr CommandFlag AlwaysEnabledFlag
XXO("&Cut/Copy/Paste Toolbar")
static ProjectFileIORegistry::AttributeWriterEntry entry
audacity::BasicSettings * gPrefs
static Settings & settings()
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
CommandContext provides additional information to an 'Apply()' command. It provides the project,...
AudacityProject & project
ComponentInterfaceSymbol pairs a persistent string identifier used internally with an optional,...
An explicitly nonlocalized string, not meant for the user to see.
Subscription Subscribe(Callback callback)
Connect a callback to the Publisher; later-connected are called earlier.
static ProjectSettings & Get(AudacityProject &project)
Generates classes whose instances register items at construction.
wxColour & Colour(int iIndex)
wxImage & Image(int iIndex)
void Refresh(bool eraseBackground=true, const wxRect *rect=(const wxRect *) NULL) override
static TrackPanel & Get(AudacityProject &project)
Holds a msgid for the translation catalog; may also bind format arguments.
static Viewport & Get(AudacityProject &project)
virtual bool Flush() noexcept=0
virtual bool Write(const wxString &key, bool value)=0
virtual bool Read(const wxString &key, bool *value) const =0
std::unique_ptr< detail::IndirectItem< Item > > Indirect(const std::shared_ptr< Item > &ptr)
A convenience function.
enum ProjectSettingsEvent::Type type