Audacity 3.2.0
|
Works with UndoManager to allow user to see descriptions of and undo previous commands. Also allows you to selectively clear the undo memory so as to free up space. More...
#include <HistoryWindow.h>
Public Member Functions | |
HistoryDialog (AudacityProject *parent, UndoManager *manager) | |
void | UpdateDisplayForClipboard (struct ClipboardChangeMessage) |
void | UpdateDisplay (struct UndoRedoMessage) |
void | DoUpdateDisplay () |
bool | Show (bool show=true) override |
Public Member Functions inherited from wxDialogWrapper | |
wxDialogWrapper () | |
wxDialogWrapper (wxWindow *parent, wxWindowID id, const TranslatableString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE, const TranslatableString &name=XO("Dialog")) | |
bool | Create (wxWindow *parent, wxWindowID id, const TranslatableString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE, const TranslatableString &name=XO("Dialog")) |
void | SetTitle (const TranslatableString &title) |
void | SetLabel (const TranslatableString &title) |
void | SetName (const TranslatableString &title) |
void | SetName () |
Public Member Functions inherited from wxTabTraversalWrapper< wxDialog > | |
wxTabTraversalWrapper (Args &&... args) | |
wxTabTraversalWrapper (const wxTabTraversalWrapper &)=delete | |
wxTabTraversalWrapper (wxTabTraversalWrapper &&)=delete | |
wxTabTraversalWrapper & | operator= (const wxTabTraversalWrapper &)=delete |
wxTabTraversalWrapper & | operator= (wxTabTraversalWrapper &&)=delete |
Public Member Functions inherited from PrefsListener | |
PrefsListener () | |
virtual | ~PrefsListener () |
virtual void | UpdatePrefs ()=0 |
Private Member Functions | |
void | Populate (ShuttleGui &S) |
void | OnAudioIO (AudioIOEvent) |
void | DoUpdate () |
void | UpdateLevels () |
void | OnShow (wxShowEvent &event) |
void | OnSize (wxSizeEvent &event) |
void | OnCloseWindow (wxCloseEvent &event) |
void | OnListKeyDown (wxKeyEvent &event) |
void | OnItemSelected (wxListEvent &event) |
void | OnDiscard (wxCommandEvent &event) |
void | OnDiscardClipboard (wxCommandEvent &event) |
void | OnCompact (wxCommandEvent &event) |
void | OnGetURL (wxCommandEvent &event) |
void | UpdatePrefs () override |
Private Attributes | |
Observer::Subscription | mAudioIOSubscription |
Observer::Subscription | mUndoSubscription |
Observer::Subscription | mClipboardSubscription |
AudacityProject * | mProject |
UndoManager * | mManager |
wxListCtrl * | mList |
wxTextCtrl * | mTotal |
wxTextCtrl * | mClipboard |
wxTextCtrl * | mAvail |
wxSpinCtrl * | mLevels |
wxButton * | mDiscard |
wxButton * | mCompact |
int | mSelected |
bool | mAudioIOBusy |
Additional Inherited Members | |
Static Public Member Functions inherited from PrefsListener | |
static void | Broadcast (int id=0) |
Call this static function to notify all PrefsListener objects. More... | |
Protected Member Functions inherited from PrefsListener | |
virtual void | UpdateSelectedPrefs (int id) |
Works with UndoManager to allow user to see descriptions of and undo previous commands. Also allows you to selectively clear the undo memory so as to free up space.
Definition at line 28 of file HistoryWindow.h.
HistoryDialog::HistoryDialog | ( | AudacityProject * | parent, |
UndoManager * | manager | ||
) |
Definition at line 136 of file HistoryWindow.cpp.
References eIsCreating, AudioIO::Get(), Clipboard::Get(), UndoManager::Get(), manager, mAudioIOBusy, mAudioIOSubscription, mClipboardSubscription, mManager, mProject, mSelected, mUndoSubscription, OnAudioIO(), Populate(), S, wxDialogWrapper::SetName(), Observer::Publisher< Message, NotifyAll >::Subscribe(), UpdateDisplay(), and UpdateDisplayForClipboard().
|
private |
Definition at line 284 of file HistoryWindow.cpp.
References anonymous_namespace{ExportPCM.cpp}::desc, UndoStackElem::description, Internat::FormatSize(), UndoManager::GetCurrentState(), ID_DISCARD_CLIPBOARD, mClipboard, mList, mManager, mSelected, mTotal, size, TranslatableString::Translation(), UpdateLevels(), and UndoManager::VisitStates().
Referenced by DoUpdateDisplay(), OnDiscard(), and Show().
void HistoryDialog::DoUpdateDisplay | ( | ) |
Definition at line 271 of file HistoryWindow.cpp.
References DoUpdate().
Referenced by UpdateDisplay(), and UpdateDisplayForClipboard().
|
private |
Definition at line 239 of file HistoryWindow.cpp.
References mAudioIOBusy, mCompact, mDiscard, AudioIOEvent::MONITOR, AudioIOEvent::on, AudioIOEvent::PAUSE, and AudioIOEvent::type.
Referenced by HistoryDialog().
|
private |
Definition at line 449 of file HistoryWindow.cpp.
References Show().
|
private |
Definition at line 376 of file HistoryWindow.cpp.
References AudacityMessageBox(), Internat::FormatSize(), ProjectFileIO::Get(), mProject, wxT(), and XO().
|
private |
Definition at line 357 of file HistoryWindow.cpp.
References DoUpdate(), ProjectHistory::Get(), mLevels, mList, mManager, mSelected, UndoManager::RemoveStates(), and ProjectHistory::SetStateTo().
|
private |
Definition at line 371 of file HistoryWindow.cpp.
References Clipboard::Clear(), and Clipboard::Get().
|
private |
Definition at line 396 of file HistoryWindow.cpp.
References HelpSystem::ShowHelp().
|
private |
Definition at line 401 of file HistoryWindow.cpp.
References ProjectHistory::Get(), mAudioIOBusy, mList, mSelected, ProjectHistory::SetStateTo(), and UpdateLevels().
|
private |
Definition at line 433 of file HistoryWindow.cpp.
Referenced by Populate().
|
private |
Definition at line 454 of file HistoryWindow.cpp.
References mList.
|
private |
|
private |
Definition at line 163 of file HistoryWindow.cpp.
References _, eHelpButton, eOkButton, UndoManager::GetCurrentState(), ID_AVAIL, ID_COMPACT, ID_DISCARD, ID_DISCARD_CLIPBOARD, ID_LEVELS, ID_TOTAL, mAvail, mClipboard, mCompact, mDiscard, mLevels, mList, mManager, mTotal, OnListKeyDown(), S, safenew, wxT(), XO(), and XXO().
Referenced by HistoryDialog(), and UpdatePrefs().
|
override |
Definition at line 277 of file HistoryWindow.cpp.
References DoUpdate(), and ExportProgressUI::Show().
Referenced by OnCloseWindow(), and UpdatePrefs().
void HistoryDialog::UpdateDisplay | ( | struct UndoRedoMessage | message | ) |
Definition at line 256 of file HistoryWindow.cpp.
References DoUpdateDisplay(), UndoRedoMessage::Modified, UndoRedoMessage::Purge, UndoRedoMessage::Pushed, UndoRedoMessage::Reset, UndoRedoMessage::type, and UndoRedoMessage::UndoOrRedo.
Referenced by HistoryDialog().
void HistoryDialog::UpdateDisplayForClipboard | ( | struct ClipboardChangeMessage | ) |
Definition at line 251 of file HistoryWindow.cpp.
References DoUpdateDisplay().
Referenced by HistoryDialog().
|
private |
Definition at line 328 of file HistoryWindow.cpp.
References BasicUI::FindFocus(), mAudioIOBusy, mAvail, mDiscard, mLevels, mList, mSelected, and wxT().
Referenced by DoUpdate(), and OnItemSelected().
|
overrideprivatevirtual |
Implements PrefsListener.
Definition at line 471 of file HistoryWindow.cpp.
References eIsCreating, HistoryTitle, Populate(), S, wxDialogWrapper::SetTitle(), and Show().
|
private |
Definition at line 77 of file HistoryWindow.h.
Referenced by HistoryDialog(), OnAudioIO(), OnItemSelected(), and UpdateLevels().
|
private |
Definition at line 61 of file HistoryWindow.h.
Referenced by HistoryDialog().
|
private |
Definition at line 71 of file HistoryWindow.h.
Referenced by Populate(), and UpdateLevels().
|
private |
Definition at line 70 of file HistoryWindow.h.
Referenced by DoUpdate(), and Populate().
|
private |
Definition at line 63 of file HistoryWindow.h.
Referenced by HistoryDialog().
|
private |
Definition at line 74 of file HistoryWindow.h.
Referenced by OnAudioIO(), and Populate().
|
private |
Definition at line 73 of file HistoryWindow.h.
Referenced by OnAudioIO(), Populate(), and UpdateLevels().
|
private |
Definition at line 72 of file HistoryWindow.h.
Referenced by OnDiscard(), Populate(), and UpdateLevels().
|
private |
Definition at line 68 of file HistoryWindow.h.
Referenced by DoUpdate(), OnDiscard(), OnItemSelected(), OnShow(), OnSize(), Populate(), and UpdateLevels().
|
private |
Definition at line 67 of file HistoryWindow.h.
Referenced by DoUpdate(), HistoryDialog(), OnDiscard(), and Populate().
|
private |
Definition at line 66 of file HistoryWindow.h.
Referenced by HistoryDialog(), and OnCompact().
|
private |
Definition at line 76 of file HistoryWindow.h.
Referenced by DoUpdate(), HistoryDialog(), OnDiscard(), OnItemSelected(), OnSize(), and UpdateLevels().
|
private |
Definition at line 69 of file HistoryWindow.h.
Referenced by DoUpdate(), and Populate().
|
private |
Definition at line 62 of file HistoryWindow.h.
Referenced by HistoryDialog().