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

Class DependencyDialog

src/Dependencies.cpp:242–638  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240//
241
242class DependencyDialog final : public wxDialogWrapper
243{
244public:
245 DependencyDialog(wxWindow *parent,
246 wxWindowID id,
247 AudacityProject *project,
248 AliasedFileArray &aliasedFiles,
249 bool isSaving);
250
251private:
252 void PopulateList();
253 void PopulateOrExchange(ShuttleGui & S);
254
255 // event handlers
256 void OnCancel(wxCommandEvent& evt);
257 void OnCopySelectedFiles(wxCommandEvent &evt);
258 void OnList(wxListEvent &evt);
259 void OnSize(wxSizeEvent &evt);
260 void OnNo(wxCommandEvent &evt);
261 void OnYes(wxCommandEvent &evt);
262 void OnRightClick(wxListEvent& evt);
263 void OnCopyToClipboard( wxCommandEvent& evt );
264
265
266 void SaveFutureActionChoice();
267
268
269 AudacityProject *mProject;
270 AliasedFileArray &mAliasedFiles;
271 bool mIsSaving;
272 bool mHasMissingFiles;
273 bool mHasNonMissingFiles;
274
275 wxStaticText *mMessageStaticText;
276 wxListCtrl *mFileListCtrl;
277 wxButton *mCopySelectedFilesButton;
278 wxButton *mCopyAllFilesButton;
279 wxChoice *mFutureActionChoice;
280
281public:
282 DECLARE_EVENT_TABLE()
283};
284
285enum {
286 FileListID = 6000,
287 CopySelectedFilesButtonID,
288 CopyNamesToClipboardID,
289 FutureActionChoiceID
290};
291
292BEGIN_EVENT_TABLE(DependencyDialog, wxDialogWrapper)
293 EVT_LIST_ITEM_SELECTED(FileListID, DependencyDialog::OnList)
294 EVT_LIST_ITEM_DESELECTED(FileListID, DependencyDialog::OnList)
295 EVT_LIST_ITEM_RIGHT_CLICK(FileListID, DependencyDialog::OnRightClick )
296 EVT_BUTTON(CopySelectedFilesButtonID, DependencyDialog::OnCopySelectedFiles)
297 EVT_SIZE(DependencyDialog::OnSize)
298 EVT_BUTTON(wxID_NO, DependencyDialog::OnNo) // mIsSaving ? "Cancel Save" : "Save Without Copying"
299 EVT_BUTTON(wxID_YES, DependencyDialog::OnYes) // "Copy All Files (Safer)"

Callers

nothing calls this directly

Calls 15

OnSizeFunction · 0.85
RemoveDependenciesFunction · 0.85
AudacityMessageBoxFunction · 0.85
FindProjectFrameFunction · 0.85
AddVariableTextMethod · 0.80
StartStaticMethod · 0.80
DisableMethod · 0.80
EndStaticMethod · 0.80
AddChoiceMethod · 0.80
TranslationMethod · 0.80
GetIndexMethod · 0.80

Tested by

no test coverage detected