Audacity 3.2.0
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
FileDialogBase Class Reference

#include <FileDialog.h>

Inheritance diagram for FileDialogBase:
[legend]
Collaboration diagram for FileDialogBase:
[legend]

Public Types

typedef void(* UserPaneCreatorFunction) (wxWindow *parent, wxUIntPtr userdata)
 

Public Member Functions

 FileDialogBase ()
 
virtual ~FileDialogBase ()
 
virtual bool HasUserPaneCreator () const
 
virtual void SetUserPaneCreator (UserPaneCreatorFunction creator, wxUIntPtr userdata)
 
virtual void SetFileExtension (const wxString &extension)
 

Protected Member Functions

void CreateUserPane (wxWindow *parent)
 

Protected Attributes

UserPaneCreatorFunction m_creator
 
wxUIntPtr m_userdata
 

Detailed Description

Definition at line 22 of file FileDialog.h.

Member Typedef Documentation

◆ UserPaneCreatorFunction

typedef void(* FileDialogBase::UserPaneCreatorFunction) (wxWindow *parent, wxUIntPtr userdata)

Definition at line 30 of file FileDialog.h.

Constructor & Destructor Documentation

◆ FileDialogBase()

FileDialogBase::FileDialogBase ( )

Definition at line 19 of file FileDialog.cpp.

20{
21 m_creator = NULL;
22 m_userdata = 0;
23}
wxUIntPtr m_userdata
Definition: FileDialog.h:41
UserPaneCreatorFunction m_creator
Definition: FileDialog.h:40

References m_creator, and m_userdata.

◆ ~FileDialogBase()

virtual FileDialogBase::~FileDialogBase ( )
inlinevirtual

Definition at line 26 of file FileDialog.h.

26{};

Member Function Documentation

◆ CreateUserPane()

void FileDialogBase::CreateUserPane ( wxWindow *  parent)
protected

Definition at line 36 of file FileDialog.cpp.

37{
38 if (m_creator)
39 {
40 (*m_creator)(parent, m_userdata);
41 }
42}

References m_creator, and m_userdata.

Referenced by FileDialog::MSWOnInitDialog(), and FileDialog::ShowModal().

Here is the caller graph for this function:

◆ HasUserPaneCreator()

bool FileDialogBase::HasUserPaneCreator ( ) const
virtual

Definition at line 25 of file FileDialog.cpp.

26{
27 return m_creator != NULL;
28}

References m_creator.

Referenced by FileDialog::MSWOnInitDialog(), and FileDialog::ShowModal().

Here is the caller graph for this function:

◆ SetFileExtension()

virtual void FileDialogBase::SetFileExtension ( const wxString &  extension)
inlinevirtual

Reimplemented in FileDialog, FileDialog, and FileDialog.

Definition at line 35 of file FileDialog.h.

35{};

◆ SetUserPaneCreator()

void FileDialogBase::SetUserPaneCreator ( UserPaneCreatorFunction  creator,
wxUIntPtr  userdata 
)
virtual

Definition at line 30 of file FileDialog.cpp.

31{
32 m_creator = creator;
33 m_userdata = userdata;
34}

References m_creator, and m_userdata.

Member Data Documentation

◆ m_creator

UserPaneCreatorFunction FileDialogBase::m_creator
protected

◆ m_userdata

wxUIntPtr FileDialogBase::m_userdata
protected

Definition at line 41 of file FileDialog.h.

Referenced by CreateUserPane(), FileDialogBase(), and SetUserPaneCreator().


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