1998-05-20 14:25:30 +00:00
|
|
|
\section{\class{wxDirDialog}}\label{wxdirdialog}
|
|
|
|
|
|
|
|
This class represents the directory chooser dialog.
|
|
|
|
|
|
|
|
\wxheading{Derived from}
|
|
|
|
|
|
|
|
\helpref{wxDialog}{wxdialog}\\
|
|
|
|
\helpref{wxWindow}{wxwindow}\\
|
|
|
|
\helpref{wxEvtHandler}{wxevthandler}\\
|
|
|
|
\helpref{wxObject}{wxobject}
|
|
|
|
|
1999-02-15 20:41:29 +00:00
|
|
|
\wxheading{Include files}
|
|
|
|
|
|
|
|
<wx/dirdlg.h>
|
2002-04-10 09:35:36 +00:00
|
|
|
<wx/generic/dirdlgg.h>
|
|
|
|
|
|
|
|
\wxheading{Window styles}
|
|
|
|
|
|
|
|
\twocolwidtha{5cm}
|
|
|
|
\begin{twocollist}
|
|
|
|
\twocolitem{\indexit{wxDD\_NEW\_DIR\_BUTTON}}{Add "Create new directory" button and allow
|
|
|
|
directory names to be editable. Available only on platforms that use the generic
|
|
|
|
dialog chooser: GTK+, Motif, X11, MGL. For other platforms, use the wxGenericDirDialog
|
|
|
|
implementation explicitly if you wish to use this style.}
|
|
|
|
\end{twocollist}
|
|
|
|
|
|
|
|
See also \helpref{Generic window styles}{windowstyles}.
|
1999-02-15 20:41:29 +00:00
|
|
|
|
1998-05-20 14:25:30 +00:00
|
|
|
\wxheading{See also}
|
|
|
|
|
|
|
|
\helpref{wxDirDialog overview}{wxdirdialogoverview}, \helpref{wxFileDialog}{wxfiledialog}
|
|
|
|
|
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
|
|
|
|
|
|
|
\membersection{wxDirDialog::wxDirDialog}\label{wxdirdialogconstr}
|
|
|
|
|
|
|
|
\func{}{wxDirDialog}{\param{wxWindow* }{parent}, \param{const wxString\& }{message = "Choose a directory"},\rtfsp
|
2002-05-04 12:43:49 +00:00
|
|
|
\param{const wxString\& }{defaultPath = ""}, \param{long }{style = 0},\rtfsp
|
|
|
|
\param{const wxPoint\& }{pos = wxDefaultPosition},\rtfsp
|
|
|
|
\param{const wxSize\& }{size = wxDefaultSize},\rtfsp
|
|
|
|
\param{const wxString\& }{name = "wxDirCtrl"}}
|
1998-05-20 14:25:30 +00:00
|
|
|
|
2002-05-04 12:43:49 +00:00
|
|
|
Constructor. Use \helpref{wxDirDialog::ShowModal}{wxdirdialogshowmodal} to show
|
|
|
|
the dialog.
|
1998-05-20 14:25:30 +00:00
|
|
|
|
|
|
|
\wxheading{Parameters}
|
|
|
|
|
|
|
|
\docparam{parent}{Parent window.}
|
|
|
|
|
|
|
|
\docparam{message}{Message to show on the dialog.}
|
|
|
|
|
|
|
|
\docparam{defaultPath}{The default path, or the empty string.}
|
|
|
|
|
|
|
|
\docparam{style}{A dialog style, currently unused.}
|
|
|
|
|
2002-05-04 12:43:49 +00:00
|
|
|
\docparam{pos}{Dialog position. Ignored under Windows.}
|
|
|
|
|
|
|
|
\docparam{size}{Dialog size. Ignored under Windows.}
|
|
|
|
|
|
|
|
\docparam{name}{The dialog name, not used.}
|
1998-05-20 14:25:30 +00:00
|
|
|
|
|
|
|
\membersection{wxDirDialog::\destruct{wxDirDialog}}
|
|
|
|
|
|
|
|
\func{}{\destruct{wxDirDialog}}{\void}
|
|
|
|
|
|
|
|
Destructor.
|
|
|
|
|
|
|
|
\membersection{wxDirDialog::GetPath}\label{wxdirdialoggetpath}
|
|
|
|
|
|
|
|
\constfunc{wxString}{GetPath}{\void}
|
|
|
|
|
|
|
|
Returns the default or user-selected path.
|
|
|
|
|
|
|
|
\membersection{wxDirDialog::GetMessage}\label{wxdirdialoggetmessage}
|
|
|
|
|
|
|
|
\constfunc{wxString}{GetMessage}{\void}
|
|
|
|
|
|
|
|
Returns the message that will be displayed on the dialog.
|
|
|
|
|
|
|
|
\membersection{wxDirDialog::GetStyle}\label{wxdirdialoggetstyle}
|
|
|
|
|
|
|
|
\constfunc{long}{GetStyle}{\void}
|
|
|
|
|
|
|
|
Returns the dialog style.
|
|
|
|
|
|
|
|
\membersection{wxDirDialog::SetMessage}\label{wxdirdialogsetmessage}
|
|
|
|
|
|
|
|
\func{void}{SetMessage}{\param{const wxString\& }{message}}
|
|
|
|
|
|
|
|
Sets the message that will be displayed on the dialog.
|
|
|
|
|
|
|
|
\membersection{wxDirDialog::SetPath}\label{wxdirdialogsetpath}
|
|
|
|
|
|
|
|
\func{void}{SetPath}{\param{const wxString\& }{path}}
|
|
|
|
|
|
|
|
Sets the default path.
|
|
|
|
|
|
|
|
\membersection{wxDirDialog::SetStyle}\label{wxdirdialogsetstyle}
|
|
|
|
|
|
|
|
\func{void}{SetStyle}{\param{long }{style}}
|
|
|
|
|
|
|
|
Sets the dialog style. This is currently unused.
|
|
|
|
|
|
|
|
\membersection{wxDirDialog::ShowModal}\label{wxdirdialogshowmodal}
|
|
|
|
|
|
|
|
\func{int}{ShowModal}{\void}
|
|
|
|
|
|
|
|
Shows the dialog, returning wxID\_OK if the user pressed OK, and wxOK\_CANCEL
|
|
|
|
otherwise.
|
|
|
|
|
|
|
|
|