Audacity 3.2.0
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 1578 of file ProjectFileManager.cpp.

Constructor & Destructor Documentation

◆ CompactDialog()

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

Definition at line 1581 of file ProjectFileManager.cpp.

1582 : wxDialogWrapper(nullptr, wxID_ANY, XO("Compact Project"))
1583 {
1584 ShuttleGui S(this, eIsCreating);
1585
1586 S.StartVerticalLay(true);
1587 {
1588 S.AddFixedText(text, false, 500);
1589
1590 S.AddStandardButtons(eYesButton | eNoButton | eHelpButton);
1591 }
1592 S.EndVerticalLay();
1593
1594 FindWindowById(wxID_YES, this)->Bind(wxEVT_BUTTON, &CompactDialog::OnYes, this);
1595 FindWindowById(wxID_NO, this)->Bind(wxEVT_BUTTON, &CompactDialog::OnNo, this);
1596 FindWindowById(wxID_HELP, this)->Bind(wxEVT_BUTTON, &CompactDialog::OnGetURL, this);
1597
1598 Layout();
1599 Fit();
1600 Center();
1601 }
XO("Cut/Copy/Paste")
@ eIsCreating
Definition: ShuttleGui.h:37
@ eYesButton
Definition: ShuttleGui.h:611
@ eHelpButton
Definition: ShuttleGui.h:613
@ eNoButton
Definition: ShuttleGui.h:612
#define S(N)
Definition: ToChars.cpp:64
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
Definition: ShuttleGui.h:640

References eHelpButton, eIsCreating, eNoButton, eYesButton, and S.

Member Function Documentation

◆ OnGetURL()

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

Definition at line 1613 of file ProjectFileManager.cpp.

1614 {
1615 HelpSystem::ShowHelp(this, L"File_Menu:_Compact_Project", true);
1616 }
static void ShowHelp(wxWindow *parent, const FilePath &localFileName, const URLString &remoteURL, bool bModal=false, bool alwaysDefaultBrowser=false)
Definition: HelpSystem.cpp:231

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 1608 of file ProjectFileManager.cpp.

1609 {
1610 EndModal(wxNO);
1611 }

◆ OnYes()

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

Definition at line 1603 of file ProjectFileManager.cpp.

1604 {
1605 EndModal(wxYES);
1606 }

The documentation for this class was generated from the following file: