![]() |
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 |
![]() | |
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 () |
![]() | |
wxTabTraversalWrapper (Args &&... args) | |
wxTabTraversalWrapper (const wxTabTraversalWrapper &)=delete | |
wxTabTraversalWrapper (wxTabTraversalWrapper &&)=delete | |
wxTabTraversalWrapper & | operator= (const wxTabTraversalWrapper &)=delete |
wxTabTraversalWrapper & | operator= (wxTabTraversalWrapper &&)=delete |
![]() | |
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 void | Broadcast (int id=0) |
Call this static function to notify all PrefsListener objects. More... | |
![]() | |
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 133 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 281 of file HistoryWindow.cpp.
References 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 268 of file HistoryWindow.cpp.
References DoUpdate().
Referenced by UpdateDisplay(), and UpdateDisplayForClipboard().
|
private |
Definition at line 236 of file HistoryWindow.cpp.
References mAudioIOBusy, mCompact, mDiscard, AudioIOEvent::MONITOR, AudioIOEvent::on, and AudioIOEvent::type.
Referenced by HistoryDialog().
|
private |
Definition at line 446 of file HistoryWindow.cpp.
References Show().
|
private |
Definition at line 373 of file HistoryWindow.cpp.
References AudacityMessageBox(), Internat::FormatSize(), ProjectFileIO::Get(), mProject, wxT(), and XO().
|
private |
Definition at line 354 of file HistoryWindow.cpp.
References DoUpdate(), ProjectHistory::Get(), mLevels, mList, mManager, mSelected, UndoManager::RemoveStates(), and ProjectHistory::SetStateTo().
|
private |
Definition at line 368 of file HistoryWindow.cpp.
References Clipboard::Clear(), and Clipboard::Get().
|
private |
Definition at line 393 of file HistoryWindow.cpp.
References HelpSystem::ShowHelp().
|
private |
Definition at line 398 of file HistoryWindow.cpp.
References ProjectHistory::Get(), mAudioIOBusy, mList, mSelected, ProjectHistory::SetStateTo(), and UpdateLevels().
|
private |
Definition at line 430 of file HistoryWindow.cpp.
Referenced by Populate().
|
private |
Definition at line 451 of file HistoryWindow.cpp.
References mList.
|
private |
|
private |
Definition at line 160 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 274 of file HistoryWindow.cpp.
References DoUpdate().
Referenced by OnCloseWindow(), and UpdatePrefs().
void HistoryDialog::UpdateDisplay | ( | struct UndoRedoMessage | message | ) |
Definition at line 253 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 248 of file HistoryWindow.cpp.
References DoUpdateDisplay().
Referenced by HistoryDialog().
|
private |
Definition at line 325 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 468 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().