mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-19 17:11:12 +02:00
History window listens for events
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
#include "../AdornedRulerPanel.h"
|
||||
#include "../AudacityApp.h" // for EVT_CLIPBOARD_CHANGE
|
||||
#include "../HistoryWindow.h"
|
||||
#include "../LabelTrack.h"
|
||||
#include "../Menus.h"
|
||||
#include "../MixerBoard.h"
|
||||
@@ -240,9 +239,6 @@ void DoUndo(AudacityProject &project)
|
||||
|
||||
project.RedrawProject();
|
||||
|
||||
if (historyWindow)
|
||||
historyWindow->UpdateDisplay();
|
||||
|
||||
if (mixerBoard)
|
||||
// Mixer board may need to change for selection state and pan/gain
|
||||
mixerBoard->Refresh();
|
||||
@@ -283,9 +279,6 @@ void OnRedo(const CommandContext &context)
|
||||
|
||||
project.RedrawProject();
|
||||
|
||||
if (historyWindow)
|
||||
historyWindow->UpdateDisplay();
|
||||
|
||||
if (mixerBoard)
|
||||
// Mixer board may need to change for selection state and pan/gain
|
||||
mixerBoard->Refresh();
|
||||
@@ -377,9 +370,6 @@ void OnCut(const CommandContext &context)
|
||||
ruler->DrawOverlays( true );
|
||||
|
||||
project.RedrawProject();
|
||||
|
||||
if (historyWindow)
|
||||
historyWindow->UpdateDisplay();
|
||||
}
|
||||
|
||||
void OnDelete(const CommandContext &context)
|
||||
@@ -424,9 +414,6 @@ void OnCopy(const CommandContext &context)
|
||||
|
||||
//Make sure the menus/toolbar states get updated
|
||||
trackPanel->Refresh(false);
|
||||
|
||||
if (historyWindow)
|
||||
historyWindow->UpdateDisplay();
|
||||
}
|
||||
|
||||
void OnPaste(const CommandContext &context)
|
||||
@@ -766,9 +753,6 @@ void OnSplitCut(const CommandContext &context)
|
||||
project.PushState(_("Split-cut to the clipboard"), _("Split Cut"));
|
||||
|
||||
project.RedrawProject();
|
||||
|
||||
if (historyWindow)
|
||||
historyWindow->UpdateDisplay();
|
||||
}
|
||||
|
||||
void OnSplitDelete(const CommandContext &context)
|
||||
|
@@ -191,7 +191,6 @@ void OnHistory(const CommandContext &context)
|
||||
auto historyWindow = project.GetHistoryWindow(true);
|
||||
historyWindow->Show();
|
||||
historyWindow->Raise();
|
||||
historyWindow->UpdateDisplay();
|
||||
}
|
||||
|
||||
void OnKaraoke(const CommandContext &context)
|
||||
|
Reference in New Issue
Block a user