18#include <wx/spinctrl.h>
19#include <wx/combobox.h>
42#if wxUSE_ACCESSIBILITY
54 return wxT(
"TimeSignature");
71 wxString::Format(
"%d",
settings.newLowerTimeSignature));
109 const auto tempoSigSize = wxSize(60, -1);
110 auto timeSigSize = wxSize(50, -1);
112 const auto tempoSigSize = wxSize(60, -1);
113 auto timeSigSize = wxSize(60, -1);
120 auto sizer =
safenew wxFlexGridSizer(2, 5, 1);
121 Add(sizer, 0, wxALIGN_CENTER_VERTICAL | wxLEFT, 5);
127 this, wxID_ANY, projectTimeSignature.GetTempo(), 1.0, 999.0, 1.0,
true,
128 wxDefaultPosition, tempoSigSize);
134 auto tempoSizer =
safenew wxBoxSizer(wxHORIZONTAL);
135 sizer->Add(tempoSizer, 0, wxEXPAND | wxRIGHT, 5);
138 this, wxID_ANY, projectTimeSignature.GetUpperTimeSignature(), 1.0, 128.0, 1.0,
false,
139 wxDefaultPosition, timeSigSize);
146 Verbatim(L
"/"), tempoSizer, wxALIGN_CENTER_VERTICAL | wxRIGHT, 5, 1.5);
154 wxDefaultPosition, timeSigSize,
183 XO(
"Upper Time Signature Changed"),
199 XO(
"Lower Time Signature Changed"),
203#if wxUSE_ACCESSIBILITY
254 double fontMultiplier)
256 const auto translated = Title.Translation();
264 pSizer->Add(pTitle, 0, flags, border);
294 timeSignature.SetTempo(mTempo);
295 timeSignature.SetUpperTimeSignature(mUpper);
296 timeSignature.SetLowerTimeSignature(mLower);
306 {
return std::make_shared<TimeSignatureRestorer>(
project); }
XXO("&Cut/Copy/Paste Toolbar")
static Settings & settings()
TranslatableString Verbatim(wxString str)
Require calls to the one-argument constructor to go through this distinct global function name.
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
An explicitly nonlocalized string, not meant for the user to see.
void PushState(const TranslatableString &desc, const TranslatableString &shortDesc)
static ProjectHistory & Get(AudacityProject &project)
void SetUpperTimeSignature(int upperTimeSignature)
void SetLowerTimeSignature(int lowerTimeSignature)
void SetTempo(double tempo)
static ProjectTimeSignature & Get(AudacityProject &project)
wxColour & Colour(int iIndex)
Holds a msgid for the translation catalog; may also bind format arguments.
Base class for extra information attached to undo/redo states.
An alternative to using wxWindowAccessible, which in wxWidgets 3.1.1 contained GetParent() which was ...
is like wxStaticText, except it can be themed. wxStaticText can't be.
void ScaleFont(double scale)
Extend wxArrayString with move operations and construction and insertion fromstd::initializer_list.
Services * Get()
Fetch the global instance, or nullptr if none is yet installed.
enum AudioIOEvent::Type type
Typically statically constructed.