git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58353
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
virtual bool SupportsExtraControl() const { return false; }
virtual bool SupportsExtraControl() const { return false; }
- bool SetExtraControlCreator(ExtraControlCreatorFunction WXUNUSED(c));
+ bool SetExtraControlCreator(ExtraControlCreatorFunction creator);
wxWindow *GetExtraControl() const { return m_extraControl; }
// Utility functions
wxWindow *GetExtraControl() const { return m_extraControl; }
// Utility functions
virtual void GetFilenames(wxArrayString& files) const;
#ifndef __WXWINCE__
virtual bool SupportsExtraControl() const { return true; }
virtual void GetFilenames(wxArrayString& files) const;
#ifndef __WXWINCE__
virtual bool SupportsExtraControl() const { return true; }
void MSWOnInitDialogHook(WXHWND hwnd);
void MSWOnInitDialogHook(WXHWND hwnd);
This class represents the file chooser dialog.
This class represents the file chooser dialog.
- It pops up a file selector box (native for Windows and GTK2.4+).
-
The path and filename are distinct elements of a full file pathname.
If path is wxEmptyString, the current directory will be used.
If filename is wxEmptyString, no default filename will be supplied.
The path and filename are distinct elements of a full file pathname.
If path is wxEmptyString, the current directory will be used.
If filename is wxEmptyString, no default filename will be supplied.
file(s) chosen by the user are.
@style{wxFD_PREVIEW}
Show the preview of the selected files (currently only supported by
file(s) chosen by the user are.
@style{wxFD_PREVIEW}
Show the preview of the selected files (currently only supported by
- wxGTK using GTK+ 2.4 or later).
@endStyleTable
@library{wxcore}
@endStyleTable
@library{wxcore}
/**
If functions SetExtraControlCreator() and ShowModal() were called,
returns the extra window. Otherwise returns @NULL.
/**
If functions SetExtraControlCreator() and ShowModal() were called,
returns the extra window. Otherwise returns @NULL.
*/
wxWindow* GetExtraControl() const;
*/
wxWindow* GetExtraControl() const;
*/
virtual void SetDirectory(const wxString& directory);
*/
virtual void SetDirectory(const wxString& directory);
+ /**
+ The type of function used as an argument for SetExtraControlCreator().
+
+ @since 2.9.0
+ */
+ typedef wxWindow *(*ExtraControlCreatorFunction)(wxWindow*);
+
/**
Customize file dialog by adding extra window, which is typically placed
below the list of files and above the buttons.
/**
Customize file dialog by adding extra window, which is typically placed
below the list of files and above the buttons.
The @c creator function should take pointer to parent window (file dialog)
and should return a window allocated with operator new.
The @c creator function should take pointer to parent window (file dialog)
and should return a window allocated with operator new.
- Supported platforms: wxGTK, wxUniv.
+ Supported platforms: wxGTK, wxMSW, wxUniv.
+
+ @since 2.9.0
- bool SetExtraControlCreator(ExtraControlCreatorFunction);
+ bool SetExtraControlCreator(ExtraControlCreatorFunction creator);
/**
Sets the default filename.
/**
Sets the default filename.
-bool wxFileDialogBase::SetExtraControlCreator(ExtraControlCreatorFunction c)
+bool wxFileDialogBase::SetExtraControlCreator(ExtraControlCreatorFunction creator)
{
wxCHECK_MSG( !m_extraControlCreator, false,
"wxFileDialog::SetExtraControl() called second time" );
{
wxCHECK_MSG( !m_extraControlCreator, false,
"wxFileDialog::SetExtraControl() called second time" );
- m_extraControlCreator = c;
+ m_extraControlCreator = creator;
return SupportsExtraControl();
}
return SupportsExtraControl();
}
case WM_INITDIALOG:
{
OPENFILENAME* ofn = reinterpret_cast<OPENFILENAME *>(lParam);
case WM_INITDIALOG:
{
OPENFILENAME* ofn = reinterpret_cast<OPENFILENAME *>(lParam);
->MSWOnInitDialogHook((WXHWND)hDlg);
}
break;
->MSWOnInitDialogHook((WXHWND)hDlg);
}
break;
void wxFileDialog::MSWOnInitDialogHook(WXHWND hwnd)
{
SetHWND(hwnd);
void wxFileDialog::MSWOnInitDialogHook(WXHWND hwnd)
{
SetHWND(hwnd);
int wxFileDialog::ShowModal()
{
int wxFileDialog::ShowModal()
{