| 134 | #define HistoryTitle XO("History") |
| 135 | |
| 136 | HistoryDialog::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 | |
| 163 | void HistoryDialog::Populate(ShuttleGui & S) |
| 164 | { |
nothing calls this directly
no test coverage detected