add support for custom controls in file dialog in wxGTK and generic versions; also allow using generic dialogs in the sample with wxGTK2 (patch 1846837)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52252 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-03-02 14:33:47 +00:00
parent 77c950fdad
commit 8ce68f7fc0
13 changed files with 216 additions and 110 deletions

View File

@@ -229,6 +229,7 @@ All (GUI):
- Added wxNotificationMessage class for non-intrusive notifications
- Added wxWindow::Show/HideWithEffect()
- Added wxWrapSizer
- Added custom controls support to wxFileDialog (Diaa Sami and Marcin Wojdyr)
- Added wxDC::StretchBlit() for wxMac and wxMSW (Vince Harron).
- Added support for drop down toolbar buttons (Tim Kosse).
- Added support for labels for toolbar controls (Vince Harron).

View File

@@ -116,6 +116,15 @@ Destructor.
Returns the default directory.
\membersection{wxFileDialog::GetExtraControl}\label{wxfiledialoggetextracontrol}
\constfunc{wxWindow* }{GetExtraControl}{\void}
If functions
\helpref{SetExtraControlCreator}{wxfiledialogsetextracontrolcreator}
and \helpref{ShowModal}{wxfiledialogshowmodal} were called,
returns the extra window. Otherwise returns \NULL.
\membersection{wxFileDialog::GetFilename}\label{wxfiledialoggetfilename}
\constfunc{wxString}{GetFilename}{\void}
@@ -175,6 +184,26 @@ Returns the file dialog wildcard.
Sets the default directory.
\membersection{wxFileDialog::SetExtraControlCreator}\label{wxfiledialogsetextracontrolcreator}
\begin{verbatim}
typedef wxWindow* (*ExtraControlCreatorFunction)(wxWindow*);
\end{verbatim}
\func{bool}{SetExtraControlCreator}{\param{t\_extraControlCreator }{creator}}
Customize file dialog by adding extra window, which is typically placed
below the list of files and above the buttons.
SetExtraControlCreator can be called only once, before calling
\helpref{ShowModal}{wxfiledialogshowmodal}.
The {\tt creator} function should take pointer to parent window (file dialog)
and should return a window allocated with operator new.
Supported platforms: wxGTK, wxUniv.
\wxheading{Return value}
{\tt true} if adding extra controls is supported, {\tt false} otherwise.
\membersection{wxFileDialog::SetFilename}\label{wxfiledialogsetfilename}
\func{void}{SetFilename}{\param{const wxString\& }{setfilename}}