14#include <wx/stattext.h>
19#include <wx/tooltip.h>
40 return wxT(
"Share Audio");
44 :
ToolBar(project,
XO(
"Share Audio"), ID())
56 toolManager.GetToolBar(
ID()));
69 wxSizeEvent event(GetSize(), GetId());
70 event.SetEventObject(
this);
71 GetEventHandler()->ProcessEvent(event);
79 auto pCtrl =
static_cast<AButton*
>(this->FindWindow(iWinID));
88 std::vector<ComponentInterfaceSymbol> commands(
105 wxToolTip::Enable(
true);
106 wxToolTip::SetDelay(1000);
115#ifndef USE_AQUA_THEME
116 const auto s =
mSizer->GetSize();
117 const auto p =
mSizer->GetPosition();
119 wxRect bevelRect(p.x, p.y, s.GetWidth() - 1, s.GetHeight() - 1);
128 const bool audioStreamActive = gAudioIO &&
129 gAudioIO->IsStreamActive() && !gAudioIO->IsMonitoring();
131 bool hasAudio =
false;
135 if (track->GetStartTime() != track->GetEndTime())
200 SetMinSize({ std::max(76,
GetSizer()->GetMinSize().GetWidth()), height });
201 SetMaxSize({ -1, height });
211 std::unique_ptr<wxSizer> {
mSizer };
const TranslatableString name
XXO("&Cut/Copy/Paste Toolbar")
declares abstract base class Track, TrackList, and iterators over TrackList
TranslatableString Verbatim(wxString str)
Require calls to the one-argument constructor to go through this distinct global function name.
static void Bevel(wxDC &dc, bool up, const wxRect &r)
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
static AudioIOBase * Get()
size_t size() const
How many attachment pointers are in the Site.
An explicitly nonlocalized string, not meant for the user to see.
static ProjectWindow & Get(AudacityProject &project)
wxColour & Colour(int iIndex)
wxImage & Image(int iIndex)
static TrackList & Get(AudacityProject &project)
static RegisteredToolbarFactory factory