mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-23 17:30:17 +01:00
Scrubber holds preference, AdornedRulerPanel updates in idle time...
... removing two uses of AdornedRulerPanel in Scrubbing
This commit is contained in:
@@ -44,7 +44,7 @@ public:
|
||||
void SetFocusFromKbd() override;
|
||||
|
||||
public:
|
||||
int GetRulerHeight() { return GetRulerHeight(mShowScrubbing); }
|
||||
int GetRulerHeight() { return GetRulerHeight( ShowingScrubRuler() ); }
|
||||
static int GetRulerHeight(bool showScrubBar);
|
||||
wxRect GetInnerRect() const { return mInner; }
|
||||
|
||||
@@ -67,8 +67,7 @@ public:
|
||||
|
||||
void UpdateQuickPlayPos(wxCoord &mousePosX, bool shiftDown);
|
||||
|
||||
bool ShowingScrubRuler() const { return mShowScrubbing; }
|
||||
void OnToggleScrubRuler(/*wxCommandEvent& */);
|
||||
bool ShowingScrubRuler() const;
|
||||
void OnToggleScrubRulerFromMenu(wxCommandEvent& );
|
||||
void SetPanelSize();
|
||||
|
||||
@@ -170,8 +169,6 @@ private:
|
||||
double mLeftDownClick; // click position in seconds
|
||||
bool mIsDragging;
|
||||
|
||||
bool mShowScrubbing { false };
|
||||
|
||||
DECLARE_EVENT_TABLE()
|
||||
|
||||
wxWindow *mButtons[3];
|
||||
|
||||
Reference in New Issue
Block a user