26#include <wx/tooltip.h>
29#include "../AdornedRulerPanel.h"
34#include "../widgets/AButton.h"
35#include "../tracks/ui/Scrubbing.h"
102 bmpRecoloredUpSmall, bmpRecoloredDownSmall, bmpRecoloredUpHiliteSmall, bmpRecoloredHiliteSmall,
103 eEnabledUp, eEnabledDown, eDisabled,
113 pBar->
Add( r, 0, wxALIGN_CENTER );
128 AddButton(
this, bmpToggleScrubRuler, bmpToggleScrubRuler, bmpToggleScrubRuler,
130 XO(
"Scrub Ruler"),
true);
170 bool scrubs = scrubber.Scrubs();
178 ?
XO(
"Stop Scrubbing")
183 :
XO(
"Start Scrubbing")
189 bool seeks = scrubber.Seeks();
202 :
XO(
"Start Seeking")
212 ?
XO(
"Hide Scrub Ruler")
213 :
XO(
"Show Scrub Ruler")
228 int id =
event.GetId();
232 scrubber.OnScrub(*p);
238 scrubber.OnToggleScrubRuler(*p);
255 const auto canScrub = scrubber.CanScrub();
257 if (scrubber.Scrubs()) {
258 scrubButton->PushDown();
259 scrubButton->Enable();
262 scrubButton->PopUp();
264 scrubButton->Enable();
266 scrubButton->Disable();
269 if (scrubber.Seeks()) {
270 seekButton->PushDown();
271 seekButton->Enable();
276 seekButton->Enable();
278 seekButton->Disable();
284 barButton->PushDown();
288 scrubber.CheckMenuItems();
wxEVT_COMMAND_BUTTON_CLICKED
XXO("&Cut/Copy/Paste Toolbar")
bool ShowingScrubRuler() const
static AdornedRulerPanel & Get(AudacityProject &project)
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
ComponentInterfaceSymbol pairs a persistent string identifier used internally with an optional,...
An explicitly nonlocalized string, not meant for the user to see.
static Scrubber & Get(AudacityProject &project)
wxColour & Colour(int iIndex)
wxSize ImageSize(int iIndex)
Holds a msgid for the translation catalog; may also bind format arguments.