1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-03-02 01:44:25 +01:00

ControlToolBar uses idle events to update status message for itself

This commit is contained in:
Paul Licameli
2019-06-28 11:57:49 -04:00
parent ce7773b7ab
commit 7d504ba015
4 changed files with 10 additions and 20 deletions

View File

@@ -84,6 +84,7 @@ class ControlToolBar final : public ToolBar {
const AudioIOStartStreamOptions &options);
void OnFF(wxCommandEvent & evt);
void OnPause(wxCommandEvent & evt);
void OnIdle(wxIdleEvent & event);
// Choice among the appearances of the play button:
enum class PlayAppearance {
@@ -128,7 +129,6 @@ class ControlToolBar final : public ToolBar {
void RegenerateTooltips() override;
int WidthForStatusBar(wxStatusBar* const);
void UpdateStatusBar(AudacityProject *pProject);
// Starting and stopping of scrolling display
void StartScrollingIfPreferred();
@@ -141,6 +141,7 @@ class ControlToolBar final : public ToolBar {
PlayMode GetLastPlayMode() const { return mLastPlayMode; }
private:
void UpdateStatusBar();
static AButton *MakeButton(
ControlToolBar *pBar,