Audacity  3.0.3
Public Member Functions | List of all members
anonymous_namespace{ProjectFileManager.cpp}::CompactDialog Class Reference
Inheritance diagram for anonymous_namespace{ProjectFileManager.cpp}::CompactDialog:
[legend]
Collaboration diagram for anonymous_namespace{ProjectFileManager.cpp}::CompactDialog:
[legend]

Public Member Functions

 CompactDialog (TranslatableString text)
 
void OnYes (wxCommandEvent &WXUNUSED(evt))
 
void OnNo (wxCommandEvent &WXUNUSED(evt))
 
void OnGetURL (wxCommandEvent &WXUNUSED(evt))
 
- 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
 
wxTabTraversalWrapperoperator= (const wxTabTraversalWrapper &)=delete
 
wxTabTraversalWrapperoperator= (wxTabTraversalWrapper &&)=delete
 

Detailed Description

Definition at line 1338 of file ProjectFileManager.cpp.

Constructor & Destructor Documentation

◆ CompactDialog()

anonymous_namespace{ProjectFileManager.cpp}::CompactDialog::CompactDialog ( TranslatableString  text)
inline

Definition at line 1341 of file ProjectFileManager.cpp.

1342  : wxDialogWrapper(nullptr, wxID_ANY, XO("Compact Project"))
1343  {
1344  ShuttleGui S(this, eIsCreating);
1345 
1346  S.StartVerticalLay(true);
1347  {
1348  S.AddFixedText(text, false, 500);
1349 
1350  S.AddStandardButtons(eYesButton | eNoButton | eHelpButton);
1351  }
1352  S.EndVerticalLay();
1353 
1354  FindWindowById(wxID_YES, this)->Bind(wxEVT_BUTTON, &CompactDialog::OnYes, this);
1355  FindWindowById(wxID_NO, this)->Bind(wxEVT_BUTTON, &CompactDialog::OnNo, this);
1356  FindWindowById(wxID_HELP, this)->Bind(wxEVT_BUTTON, &CompactDialog::OnGetURL, this);
1357 
1358  Layout();
1359  Fit();
1360  Center();
1361  }

References ShuttleGuiBase::AddFixedText(), ShuttleGui::AddStandardButtons(), eHelpButton, eIsCreating, ShuttleGuiBase::EndVerticalLay(), eNoButton, eYesButton, and ShuttleGuiBase::StartVerticalLay().

Here is the call graph for this function:

Member Function Documentation

◆ OnGetURL()

void anonymous_namespace{ProjectFileManager.cpp}::CompactDialog::OnGetURL ( wxCommandEvent &  WXUNUSEDevt)
inline

Definition at line 1373 of file ProjectFileManager.cpp.

1374  {
1375  HelpSystem::ShowHelp(this, L"File_Menu:_Compact_Project", true);
1376  }

References HelpSystem::ShowHelp().

Here is the call graph for this function:

◆ OnNo()

void anonymous_namespace{ProjectFileManager.cpp}::CompactDialog::OnNo ( wxCommandEvent &  WXUNUSEDevt)
inline

Definition at line 1368 of file ProjectFileManager.cpp.

1369  {
1370  EndModal(wxNO);
1371  }

◆ OnYes()

void anonymous_namespace{ProjectFileManager.cpp}::CompactDialog::OnYes ( wxCommandEvent &  WXUNUSEDevt)
inline

Definition at line 1363 of file ProjectFileManager.cpp.

1364  {
1365  EndModal(wxYES);
1366  }

The documentation for this class was generated from the following file:
eIsCreating
@ eIsCreating
Definition: ShuttleGui.h:38
eHelpButton
@ eHelpButton
Definition: ShuttleGui.h:604
XO
#define XO(s)
Definition: Internat.h:31
anonymous_namespace{ProjectFileManager.cpp}::CompactDialog::OnGetURL
void OnGetURL(wxCommandEvent &WXUNUSED(evt))
Definition: ProjectFileManager.cpp:1373
anonymous_namespace{ProjectFileManager.cpp}::CompactDialog::OnYes
void OnYes(wxCommandEvent &WXUNUSED(evt))
Definition: ProjectFileManager.cpp:1363
HelpSystem::ShowHelp
static void ShowHelp(wxWindow *parent, const FilePath &localFileName, const URLString &remoteURL, bool bModal=false, bool alwaysDefaultBrowser=false)
Definition: HelpSystem.cpp:237
eYesButton
@ eYesButton
Definition: ShuttleGui.h:602
wxDialogWrapper::wxDialogWrapper
wxDialogWrapper()
Definition: wxPanelWrapper.h:84
anonymous_namespace{ProjectFileManager.cpp}::CompactDialog::OnNo
void OnNo(wxCommandEvent &WXUNUSED(evt))
Definition: ProjectFileManager.cpp:1368
eNoButton
@ eNoButton
Definition: ShuttleGui.h:603
ShuttleGui
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
Definition: ShuttleGui.h:631