]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/dirdlg.tex
Spacing tweak
[wxWidgets.git] / docs / latex / wx / dirdlg.tex
CommitLineData
a660d684
KB
1\section{\class{wxDirDialog}}\label{wxdirdialog}
2
3This class represents the directory chooser dialog.
4
5\wxheading{Derived from}
6
7\helpref{wxDialog}{wxdialog}\\
8\helpref{wxWindow}{wxwindow}\\
9\helpref{wxEvtHandler}{wxevthandler}\\
10\helpref{wxObject}{wxobject}
11
954b8ae6
JS
12\wxheading{Include files}
13
14<wx/dirdlg.h>
dabd1377
JS
15<wx/generic/dirdlgg.h>
16
17\wxheading{Window styles}
18
19\twocolwidtha{5cm}
20\begin{twocollist}
4bbc4bde
MR
21\twocolitem{\windowstyle{wxDD\_DEFAULT\_STYLE}}{Equivalent to a combination of wxDEFAULT\_DIALOG\_STYLE, wxDD\_NEW\_DIR\_BUTTON and wxRESIZE\_BORDER (the last one is not used under wxWinCE).}
22\twocolitem{\windowstyle{wxDD\_NEW\_DIR\_BUTTON}}{Add "Create new
90a6f1cc
RD
23directory" button and allow directory names to be editable. On
24Windows the new directory button is only available with recent
25versions of the common dialogs.}
dabd1377
JS
26\end{twocollist}
27
28See also \helpref{Generic window styles}{windowstyles}.
954b8ae6 29
a660d684
KB
30\wxheading{See also}
31
32\helpref{wxDirDialog overview}{wxdirdialogoverview}, \helpref{wxFileDialog}{wxfiledialog}
33
34\latexignore{\rtfignore{\wxheading{Members}}}
35
6d06e061 36\membersection{wxDirDialog::wxDirDialog}\label{wxdirdialogctor}
a660d684
KB
37
38\func{}{wxDirDialog}{\param{wxWindow* }{parent}, \param{const wxString\& }{message = "Choose a directory"},\rtfsp
4bbc4bde 39\param{const wxString\& }{defaultPath = ""}, \param{long }{style = wxDD\_DEFAULT\_STYLE},\rtfsp
a079e645
VZ
40\param{const wxPoint\& }{pos = wxDefaultPosition},\rtfsp
41\param{const wxSize\& }{size = wxDefaultSize},\rtfsp
42\param{const wxString\& }{name = "wxDirCtrl"}}
a660d684 43
a079e645
VZ
44Constructor. Use \helpref{wxDirDialog::ShowModal}{wxdirdialogshowmodal} to show
45the dialog.
a660d684
KB
46
47\wxheading{Parameters}
48
49\docparam{parent}{Parent window.}
50
51\docparam{message}{Message to show on the dialog.}
52
53\docparam{defaultPath}{The default path, or the empty string.}
54
4bbc4bde 55\docparam{style}{The dialog style. See \helpref{wxDirDialog}{wxdirdialog}}
a660d684 56
a079e645
VZ
57\docparam{pos}{Dialog position. Ignored under Windows.}
58
59\docparam{size}{Dialog size. Ignored under Windows.}
60
61\docparam{name}{The dialog name, not used.}
a660d684 62
a203f6c0 63\membersection{wxDirDialog::\destruct{wxDirDialog}}\label{wxdirdialogdtor}
a660d684
KB
64
65\func{}{\destruct{wxDirDialog}}{\void}
66
67Destructor.
68
69\membersection{wxDirDialog::GetPath}\label{wxdirdialoggetpath}
70
71\constfunc{wxString}{GetPath}{\void}
72
73Returns the default or user-selected path.
74
75\membersection{wxDirDialog::GetMessage}\label{wxdirdialoggetmessage}
76
77\constfunc{wxString}{GetMessage}{\void}
78
79Returns the message that will be displayed on the dialog.
80
81\membersection{wxDirDialog::GetStyle}\label{wxdirdialoggetstyle}
82
83\constfunc{long}{GetStyle}{\void}
84
85Returns the dialog style.
86
87\membersection{wxDirDialog::SetMessage}\label{wxdirdialogsetmessage}
88
89\func{void}{SetMessage}{\param{const wxString\& }{message}}
90
91Sets the message that will be displayed on the dialog.
92
93\membersection{wxDirDialog::SetPath}\label{wxdirdialogsetpath}
94
95\func{void}{SetPath}{\param{const wxString\& }{path}}
96
97Sets the default path.
98
99\membersection{wxDirDialog::SetStyle}\label{wxdirdialogsetstyle}
100
101\func{void}{SetStyle}{\param{long }{style}}
102
103Sets the dialog style. This is currently unused.
104
105\membersection{wxDirDialog::ShowModal}\label{wxdirdialogshowmodal}
106
107\func{int}{ShowModal}{\void}
108
3134f933 109Shows the dialog, returning wxID\_OK if the user pressed OK, and wxID\_CANCEL
a660d684
KB
110otherwise.
111
112