MCPcopy Create free account
hub / github.com/audacity/audacity / HistoryDialog

Method HistoryDialog

src/HistoryWindow.cpp:136–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134#define HistoryTitle XO("History")
135
136HistoryDialog::HistoryDialog(AudacityProject *parent, UndoManager *manager):
137 wxDialogWrapper(FindProjectFrame( parent ), wxID_ANY, HistoryTitle,
138 wxDefaultPosition, wxDefaultSize,
139 wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER )
140{
141 SetName();
142
143 mManager = manager;
144 mProject = parent;
145 mSelected = 0;
146 mAudioIOBusy = false;
147
148 //------------------------- Main section --------------------
149 // Construct the GUI.
150 ShuttleGui S(this, eIsCreating);
151 Populate(S);
152
153 mAudioIOSubscription = AudioIO::Get()->Subscribe(*this, &HistoryDialog::OnAudioIO);
154
155 mClipboardSubscription = Clipboard::Get()
156 .Subscribe(*this, &HistoryDialog::UpdateDisplayForClipboard);
157
158 if (parent)
159 mUndoSubscription = UndoManager::Get(*parent)
160 .Subscribe(*this, &HistoryDialog::UpdateDisplay);
161}
162
163void HistoryDialog::Populate(ShuttleGui & S)
164{

Callers

nothing calls this directly

Calls 3

FindProjectFrameFunction · 0.85
GetFunction · 0.85
SubscribeMethod · 0.45

Tested by

no test coverage detected