Audacity 3.2.0
|
Dialog used to present platform specific "Save As" dialog with custom controls. More...
#include <FileDialogPrivate.h>
Classes | |
class | Disabler |
Public Member Functions | |
FileDialog () | |
FileDialog (wxWindow *parent, const wxString &message=wxFileSelectorPromptStr, const wxString &defaultDir=wxEmptyString, const wxString &defaultFile=wxEmptyString, const wxString &wildCard=wxFileSelectorDefaultWildcardStr, long style=wxFD_DEFAULT_STYLE, const wxPoint &pos=wxDefaultPosition, const wxSize &sz=wxDefaultSize, const wxString &name=wxFileDialogNameStr) | |
bool | Create (wxWindow *parent, const wxString &message=wxFileSelectorPromptStr, const wxString &defaultDir=wxEmptyString, const wxString &defaultFile=wxEmptyString, const wxString &wildCard=wxFileSelectorDefaultWildcardStr, long style=wxFD_DEFAULT_STYLE, const wxPoint &pos=wxDefaultPosition, const wxSize &sz=wxDefaultSize, const wxString &name=wxFileDialogNameStr) |
virtual | ~FileDialog () |
virtual wxString | GetPath () const |
virtual void | GetPaths (wxArrayString &paths) const |
virtual wxString | GetFilename () const |
virtual void | GetFilenames (wxArrayString &files) const |
virtual int | GetFilterIndex () const |
virtual void | SetMessage (const wxString &message) |
virtual void | SetPath (const wxString &path) |
virtual void | SetDirectory (const wxString &dir) |
virtual void | SetFilename (const wxString &name) |
virtual void | SetWildcard (const wxString &wildCard) |
virtual void | SetFilterIndex (int filterIndex) |
virtual int | ShowModal () |
virtual bool | SupportsExtraControl () const |
virtual void | SetFileExtension (const wxString &extension) |
void | GTKSelectionChanged (const wxString &filename) |
void | GTKFolderChanged () |
void | GTKFilterChanged () |
FileDialog () | |
FileDialog (wxWindow *parent, const wxString &message=wxFileSelectorPromptStr, const wxString &defaultDir=wxEmptyString, const wxString &defaultFile=wxEmptyString, const wxString &wildCard=wxFileSelectorDefaultWildcardStr, long style=wxFD_DEFAULT_STYLE, const wxPoint &pos=wxDefaultPosition, const wxSize &sz=wxDefaultSize, const wxString &name=wxFileDialogNameStr) | |
void | Create (wxWindow *parent, const wxString &message=wxFileSelectorPromptStr, const wxString &defaultDir=wxEmptyString, const wxString &defaultFile=wxEmptyString, const wxString &wildCard=wxFileSelectorDefaultWildcardStr, long style=wxFD_DEFAULT_STYLE, const wxPoint &pos=wxDefaultPosition, const wxSize &sz=wxDefaultSize, const wxString &name=wxFileDialogNameStr) |
virtual void | GetPaths (wxArrayString &paths) const |
virtual void | GetFilenames (wxArrayString &files) const |
virtual int | ShowModal () |
virtual bool | SupportsExtraControl () const |
virtual void | SetFileExtension (const wxString &extension) |
FileDialog () | |
FileDialog (wxWindow *parent, const wxString &message=wxFileSelectorPromptStr, const wxString &defaultDir=wxEmptyString, const wxString &defaultFile=wxEmptyString, const wxString &wildCard=wxFileSelectorDefaultWildcardStr, long style=wxFD_DEFAULT_STYLE, const wxPoint &pos=wxDefaultPosition, const wxSize &sz=wxDefaultSize, const wxString &name=wxFileDialogNameStr) | |
virtual void | GetPaths (wxArrayString &paths) const |
virtual void | GetFilenames (wxArrayString &files) const |
virtual int | ShowModal () |
virtual void | SetFileExtension (const wxString &extension) |
Public Member Functions inherited from FileDialogBase | |
FileDialogBase () | |
virtual | ~FileDialogBase () |
virtual bool | HasUserPaneCreator () const |
virtual void | SetUserPaneCreator (UserPaneCreatorFunction creator, wxUIntPtr userdata) |
virtual void | SetFileExtension (const wxString &extension) |
Protected Member Functions | |
virtual void | DoSetSize (int x, int y, int width, int height, int sizeFlags=wxSIZE_AUTO) |
virtual void | DoSetSize (int WXUNUSED(x), int WXUNUSED(y), int WXUNUSED(width), int WXUNUSED(height), int WXUNUSED(sizeFlags)=wxSIZE_AUTO) |
void | SetupExtraControls (WXWindow nativeWindow) |
virtual void | DoMoveWindow (int x, int y, int width, int height) |
virtual void | DoCentre (int dir) |
virtual void | DoGetSize (int *width, int *height) const |
virtual void | DoGetPosition (int *x, int *y) const |
Protected Member Functions inherited from FileDialogBase | |
void | CreateUserPane (wxWindow *parent) |
Protected Attributes | |
wxArrayString | m_fileNames |
wxArrayString | m_paths |
Protected Attributes inherited from FileDialogBase | |
UserPaneCreatorFunction | m_creator |
wxUIntPtr | m_userdata |
Private Member Functions | |
void | OnFakeOk (wxCommandEvent &event) |
void | OnSize (wxSizeEvent &) |
virtual void | AddChildGTK (wxWindowGTK *child) |
void | Init () |
void | Init () |
wxString | GetFullPath (HWND hwnd, int itm) |
void | FilterFiles (HWND hwnd, bool refresh) |
void | ParseFilter (int index) |
virtual UINT_PTR | MSWParentHook (HWND hwnd, UINT iMsg, WPARAM wParam, LPARAM lParam, OPENFILENAME *pOfn) |
virtual void | MSWOnSize (HWND hwnd, LPOPENFILENAME pOfn) |
virtual void | MSWOnGetMinMaxInfo (HWND hwnd, LPOPENFILENAME pOfn, LPMINMAXINFO pMmi) |
virtual UINT_PTR | MSWDialogHook (HWND hwnd, UINT iMsg, WPARAM wParam, LPARAM lParam, OPENFILENAME *pOfn) |
virtual void | MSWOnInitDialog (HWND hwnd, LPOPENFILENAME pOfn) |
virtual void | MSWOnDestroy (HWND hwnd, LPOPENFILENAME pOfn) |
virtual void | MSWOnInitDone (HWND hwnd, LPOPENFILENAME pOfn) |
virtual void | MSWOnFolderChange (HWND hwnd, LPOPENFILENAME pOfn) |
virtual void | MSWOnSelChange (HWND hwnd, LPOPENFILENAME pOfn) |
virtual void | MSWOnTypeChange (HWND hwnd, LPOPENFILENAME pOfn) |
Static Private Member Functions | |
static UINT_PTR APIENTRY | ParentHook (HWND hDlg, UINT iMsg, WPARAM wParam, LPARAM lParam) |
static UINT_PTR APIENTRY | DialogHook (HWND hDlg, UINT iMsg, WPARAM wParam, LPARAM lParam) |
Private Attributes | |
wxGtkFileChooser | m_fc |
bool | m_bMovedWindow |
int | m_centreDir |
wxArrayString | m_FilterGroups |
wxArrayString | m_Filters |
HWND | mParentDlg |
HWND | mChildDlg |
WNDPROC | mParentProc |
POINT | mMinSize |
wxPanel * | mRoot |
FileDialog::Disabler | mDisabler |
Additional Inherited Members | |
Public Types inherited from FileDialogBase | |
typedef void(* | UserPaneCreatorFunction) (wxWindow *parent, wxUIntPtr userdata) |
Dialog used to present platform specific "Save As" dialog with custom controls.
Definition at line 22 of file gtk/FileDialogPrivate.h.
|
inline |
Definition at line 25 of file gtk/FileDialogPrivate.h.
FileDialog::FileDialog | ( | wxWindow * | parent, |
const wxString & | message = wxFileSelectorPromptStr , |
||
const wxString & | defaultDir = wxEmptyString , |
||
const wxString & | defaultFile = wxEmptyString , |
||
const wxString & | wildCard = wxFileSelectorDefaultWildcardStr , |
||
long | style = wxFD_DEFAULT_STYLE , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | sz = wxDefaultSize , |
||
const wxString & | name = wxFileDialogNameStr |
||
) |
Definition at line 257 of file gtk/FileDialogPrivate.cpp.
References name, and anonymous_namespace{AudacityDontAskAgainMessageDialog.cpp}::style.
|
virtual |
Definition at line 429 of file gtk/FileDialogPrivate.cpp.
FileDialog::FileDialog | ( | ) |
FileDialog::FileDialog | ( | wxWindow * | parent, |
const wxString & | message = wxFileSelectorPromptStr , |
||
const wxString & | defaultDir = wxEmptyString , |
||
const wxString & | defaultFile = wxEmptyString , |
||
const wxString & | wildCard = wxFileSelectorDefaultWildcardStr , |
||
long | style = wxFD_DEFAULT_STYLE , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | sz = wxDefaultSize , |
||
const wxString & | name = wxFileDialogNameStr |
||
) |
FileDialog::FileDialog | ( | ) |
FileDialog::FileDialog | ( | wxWindow * | parent, |
const wxString & | message = wxFileSelectorPromptStr , |
||
const wxString & | defaultDir = wxEmptyString , |
||
const wxString & | defaultFile = wxEmptyString , |
||
const wxString & | wildCard = wxFileSelectorDefaultWildcardStr , |
||
long | style = wxFD_DEFAULT_STYLE , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | sz = wxDefaultSize , |
||
const wxString & | name = wxFileDialogNameStr |
||
) |
|
privatevirtual |
Definition at line 216 of file gtk/FileDialogPrivate.cpp.
References find_widget().
bool FileDialog::Create | ( | wxWindow * | parent, |
const wxString & | message = wxFileSelectorPromptStr , |
||
const wxString & | defaultDir = wxEmptyString , |
||
const wxString & | defaultFile = wxEmptyString , |
||
const wxString & | wildCard = wxFileSelectorDefaultWildcardStr , |
||
long | style = wxFD_DEFAULT_STYLE , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | sz = wxDefaultSize , |
||
const wxString & | name = wxFileDialogNameStr |
||
) |
Definition at line 269 of file gtk/FileDialogPrivate.cpp.
References fn, gtk_filedialog_filterchanged_callback(), gtk_filedialog_folderchanged_callback(), gtk_filedialog_response_callback(), gtk_filedialog_selchanged_callback(), gtk_filedialog_update_preview_callback(), m_fc, name, Tuple::detail::npos(), SetWildcard(), anonymous_namespace{AudacityDontAskAgainMessageDialog.cpp}::style, wxGTK_CONV, wxGTK_CONV_FN, and wxT().
void FileDialog::Create | ( | wxWindow * | parent, |
const wxString & | message = wxFileSelectorPromptStr , |
||
const wxString & | defaultDir = wxEmptyString , |
||
const wxString & | defaultFile = wxEmptyString , |
||
const wxString & | wildCard = wxFileSelectorDefaultWildcardStr , |
||
long | style = wxFD_DEFAULT_STYLE , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | sz = wxDefaultSize , |
||
const wxString & | name = wxFileDialogNameStr |
||
) |
|
staticprivate |
Definition at line 225 of file win/FileDialogPrivate.cpp.
References MSWDialogHook().
|
protectedvirtual |
Definition at line 788 of file win/FileDialogPrivate.cpp.
References m_bMovedWindow, and m_centreDir.
|
protectedvirtual |
Definition at line 746 of file win/FileDialogPrivate.cpp.
References gs_rectDialog().
|
protectedvirtual |
Definition at line 754 of file win/FileDialogPrivate.cpp.
References gs_rectDialog().
|
protectedvirtual |
Definition at line 762 of file win/FileDialogPrivate.cpp.
References gs_rectDialog(), m_bMovedWindow, and m_centreDir.
|
inlineprotectedvirtual |
Definition at line 81 of file mac/FileDialogPrivate.h.
|
protectedvirtual |
|
private |
Definition at line 457 of file win/FileDialogPrivate.cpp.
References m_Filters, str, and WM_GETISHELLBROWSER.
Referenced by MSWOnFolderChange(), and MSWOnTypeChange().
|
virtual |
Definition at line 587 of file gtk/FileDialogPrivate.cpp.
References m_fc.
|
virtual |
Definition at line 525 of file gtk/FileDialogPrivate.cpp.
References m_fc.
Referenced by GTKSelectionChanged().
|
inlinevirtual |
Definition at line 59 of file mac/FileDialogPrivate.h.
References m_fileNames.
|
virtual |
|
virtual |
Definition at line 610 of file gtk/FileDialogPrivate.cpp.
References m_fc.
Referenced by FileSelectorEx(), GTKFilterChanged(), and ProjectFileManager::ShowOpenDialog().
|
private |
|
virtual |
Definition at line 520 of file gtk/FileDialogPrivate.cpp.
References m_fc.
Referenced by FileSelector(), FileSelectorEx(), EqualizationCurvesDialog::OnExport(), ExportFFmpegOptions::OnExportPresets(), NyquistEffect::OnFileButton(), EqualizationCurvesDialog::OnImport(), ExportFFmpegOptions::OnImportPresets(), NyquistEffect::OnLoad(), NyquistEffect::OnSave(), and ProjectFileManager::ShowOpenDialog().
|
virtual |
Definition at line 530 of file gtk/FileDialogPrivate.cpp.
References m_fc.
Referenced by ApplyMacroDialog::OnApplyToFiles(), NyquistEffect::OnFileButton(), and ProjectFileManager::ShowOpenDialog().
|
inlinevirtual |
|
virtual |
void FileDialog::GTKFilterChanged | ( | ) |
Definition at line 639 of file gtk/FileDialogPrivate.cpp.
References entry, find_widget(), GetFilterIndex(), m_fc, SetFileExtension(), and wxT().
Referenced by gtk_filedialog_filterchanged_callback(), and ShowModal().
void FileDialog::GTKFolderChanged | ( | ) |
Definition at line 630 of file gtk/FileDialogPrivate.cpp.
Referenced by gtk_filedialog_folderchanged_callback().
void FileDialog::GTKSelectionChanged | ( | const wxString & | filename | ) |
Definition at line 615 of file gtk/FileDialogPrivate.cpp.
References GetFilenames().
Referenced by gtk_filedialog_selchanged_callback().
|
private |
Definition at line 684 of file win/FileDialogPrivate.cpp.
References gs_rectDialog(), m_bMovedWindow, m_centreDir, mMinSize, and mRoot.
|
private |
|
privatevirtual |
Definition at line 241 of file win/FileDialogPrivate.cpp.
References MSWOnDestroy(), MSWOnFolderChange(), MSWOnInitDialog(), MSWOnInitDone(), MSWOnSelChange(), and MSWOnTypeChange().
Referenced by DialogHook().
|
privatevirtual |
Definition at line 339 of file win/FileDialogPrivate.cpp.
References gs_rectDialog(), mParentDlg, and mRoot.
Referenced by MSWDialogHook().
|
privatevirtual |
Definition at line 384 of file win/FileDialogPrivate.cpp.
References FilterFiles(), mParentDlg, and wxMAXPATH.
Referenced by MSWDialogHook().
|
privatevirtual |
Definition at line 217 of file win/FileDialogPrivate.cpp.
References mMinSize.
Referenced by MSWParentHook().
|
privatevirtual |
Definition at line 286 of file win/FileDialogPrivate.cpp.
References FileDialogBase::CreateUserPane(), FileDialogBase::HasUserPaneCreator(), FileDialog::Disabler::Init(), mChildDlg, mDisabler, mParentDlg, mParentProc, mRoot, and ParentHook().
Referenced by MSWDialogHook().
|
privatevirtual |
Definition at line 351 of file win/FileDialogPrivate.cpp.
References gs_rectDialog(), m_centreDir, mChildDlg, mMinSize, mParentDlg, and MSWOnTypeChange().
Referenced by MSWDialogHook().
|
privatevirtual |
Definition at line 402 of file win/FileDialogPrivate.cpp.
References m_fileNames, mChildDlg, mParentDlg, and wxMAXPATH.
Referenced by MSWDialogHook().
|
privatevirtual |
Definition at line 183 of file win/FileDialogPrivate.cpp.
References mChildDlg, and mRoot.
Referenced by MSWParentHook().
|
privatevirtual |
Definition at line 437 of file win/FileDialogPrivate.cpp.
References FilterFiles(), mChildDlg, mParentDlg, and ParseFilter().
Referenced by MSWDialogHook(), and MSWOnInitDone().
|
privatevirtual |
Definition at line 165 of file win/FileDialogPrivate.cpp.
References mParentDlg, mParentProc, MSWOnGetMinMaxInfo(), and MSWOnSize().
Referenced by ParentHook().
|
private |
Definition at line 440 of file gtk/FileDialogPrivate.cpp.
References str.
|
private |
Definition at line 514 of file gtk/FileDialogPrivate.cpp.
|
staticprivate |
Definition at line 159 of file win/FileDialogPrivate.cpp.
References MSWParentHook().
Referenced by MSWOnInitDialog().
|
private |
Definition at line 642 of file win/FileDialogPrivate.cpp.
References m_FilterGroups, m_Filters, and wxT().
Referenced by MSWOnTypeChange().
|
virtual |
Definition at line 559 of file gtk/FileDialogPrivate.cpp.
References m_fc.
|
virtual |
Reimplemented from FileDialogBase.
Definition at line 480 of file gtk/FileDialogPrivate.cpp.
References entry, anonymous_namespace{CloudProjectFileIOExtensions.cpp}::extension, find_widget(), fn, and m_fc.
Referenced by GTKFilterChanged().
|
virtual |
Reimplemented from FileDialogBase.
|
virtual |
Reimplemented from FileDialogBase.
|
virtual |
Definition at line 566 of file gtk/FileDialogPrivate.cpp.
References GetFullPath(), name, SetPath(), and wxGTK_CONV.
|
virtual |
Definition at line 605 of file gtk/FileDialogPrivate.cpp.
References m_fc.
Referenced by FileSelector(), ApplyMacroDialog::OnApplyToFiles(), and ProjectFileManager::ShowOpenDialog().
|
virtual |
Definition at line 535 of file gtk/FileDialogPrivate.cpp.
|
virtual |
Definition at line 541 of file gtk/FileDialogPrivate.cpp.
Referenced by SetFilename().
|
protected |
|
virtual |
Definition at line 599 of file gtk/FileDialogPrivate.cpp.
References m_fc.
Referenced by Create().
|
virtual |
Definition at line 451 of file gtk/FileDialogPrivate.cpp.
References FileDialogBase::CreateUserPane(), GTKFilterChanged(), and FileDialogBase::HasUserPaneCreator().
Referenced by FileSelector(), FileSelectorEx(), ApplyMacroDialog::OnApplyToFiles(), EqualizationCurvesDialog::OnExport(), ExportFFmpegOptions::OnExportPresets(), NyquistEffect::OnFileButton(), EqualizationCurvesDialog::OnImport(), ExportFFmpegOptions::OnImportPresets(), NyquistEffect::OnLoad(), NyquistEffect::OnSave(), and ProjectFileManager::ShowOpenDialog().
|
virtual |
|
virtual |
|
inlinevirtual |
Definition at line 62 of file gtk/FileDialogPrivate.h.
|
virtual |
|
private |
Definition at line 89 of file win/FileDialogPrivate.h.
Referenced by DoCentre(), DoMoveWindow(), and Init().
|
private |
Definition at line 90 of file win/FileDialogPrivate.h.
Referenced by DoCentre(), DoMoveWindow(), Init(), and MSWOnInitDone().
|
private |
Definition at line 85 of file gtk/FileDialogPrivate.h.
Referenced by Create(), GetFilename(), GetFilenames(), GetFilterIndex(), GetPath(), GetPaths(), GTKFilterChanged(), SetDirectory(), SetFileExtension(), SetFilterIndex(), SetPath(), and SetWildcard().
|
protected |
Definition at line 29 of file mac/FileDialogPrivate.h.
Referenced by GetFilenames(), and MSWOnSelChange().
|
private |
Definition at line 92 of file win/FileDialogPrivate.h.
Referenced by ParseFilter().
|
private |
Definition at line 93 of file win/FileDialogPrivate.h.
Referenced by FilterFiles(), and ParseFilter().
|
protected |
Definition at line 30 of file mac/FileDialogPrivate.h.
Referenced by GetPaths().
|
private |
Definition at line 96 of file win/FileDialogPrivate.h.
Referenced by MSWOnInitDialog(), MSWOnInitDone(), MSWOnSelChange(), MSWOnSize(), and MSWOnTypeChange().
|
private |
Referenced by MSWOnInitDialog().
|
private |
Definition at line 98 of file win/FileDialogPrivate.h.
Referenced by Init(), MSWOnGetMinMaxInfo(), and MSWOnInitDone().
|
private |
Definition at line 95 of file win/FileDialogPrivate.h.
Referenced by MSWOnDestroy(), MSWOnFolderChange(), MSWOnInitDialog(), MSWOnInitDone(), MSWOnSelChange(), MSWOnTypeChange(), and MSWParentHook().
|
private |
Definition at line 97 of file win/FileDialogPrivate.h.
Referenced by MSWOnInitDialog(), and MSWParentHook().
|
private |
Definition at line 100 of file win/FileDialogPrivate.h.
Referenced by Init(), FileDialog::Disabler::Init(), FileDialog::Disabler::IsChild(), MSWOnDestroy(), MSWOnInitDialog(), and MSWOnSize().