]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/dirdlg.tex
wxDirDialog now has the same ctor under all platforms and also uses the
[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}
21\twocolitem{\indexit{wxDD\_NEW\_DIR\_BUTTON}}{Add "Create new directory" button and allow
22directory names to be editable. Available only on platforms that use the generic
23dialog chooser: GTK+, Motif, X11, MGL. For other platforms, use the wxGenericDirDialog
24implementation explicitly if you wish to use this style.}
25\end{twocollist}
26
27See also \helpref{Generic window styles}{windowstyles}.
954b8ae6 28
a660d684
KB
29\wxheading{See also}
30
31\helpref{wxDirDialog overview}{wxdirdialogoverview}, \helpref{wxFileDialog}{wxfiledialog}
32
33\latexignore{\rtfignore{\wxheading{Members}}}
34
35\membersection{wxDirDialog::wxDirDialog}\label{wxdirdialogconstr}
36
37\func{}{wxDirDialog}{\param{wxWindow* }{parent}, \param{const wxString\& }{message = "Choose a directory"},\rtfsp
38\param{const wxString\& }{defaultPath = ""}, \param{long }{style = 0}, \param{const wxPoint\& }{pos = wxDefaultPosition}}
39
40Constructor. Use \helpref{wxDirDialog::ShowModal}{wxdirdialogshowmodal} to show the dialog.
41
42\wxheading{Parameters}
43
44\docparam{parent}{Parent window.}
45
46\docparam{message}{Message to show on the dialog.}
47
48\docparam{defaultPath}{The default path, or the empty string.}
49
50\docparam{style}{A dialog style, currently unused.}
51
52\docparam{pos}{Dialog position. Not implemented.}
53
54\membersection{wxDirDialog::\destruct{wxDirDialog}}
55
56\func{}{\destruct{wxDirDialog}}{\void}
57
58Destructor.
59
60\membersection{wxDirDialog::GetPath}\label{wxdirdialoggetpath}
61
62\constfunc{wxString}{GetPath}{\void}
63
64Returns the default or user-selected path.
65
66\membersection{wxDirDialog::GetMessage}\label{wxdirdialoggetmessage}
67
68\constfunc{wxString}{GetMessage}{\void}
69
70Returns the message that will be displayed on the dialog.
71
72\membersection{wxDirDialog::GetStyle}\label{wxdirdialoggetstyle}
73
74\constfunc{long}{GetStyle}{\void}
75
76Returns the dialog style.
77
78\membersection{wxDirDialog::SetMessage}\label{wxdirdialogsetmessage}
79
80\func{void}{SetMessage}{\param{const wxString\& }{message}}
81
82Sets the message that will be displayed on the dialog.
83
84\membersection{wxDirDialog::SetPath}\label{wxdirdialogsetpath}
85
86\func{void}{SetPath}{\param{const wxString\& }{path}}
87
88Sets the default path.
89
90\membersection{wxDirDialog::SetStyle}\label{wxdirdialogsetstyle}
91
92\func{void}{SetStyle}{\param{long }{style}}
93
94Sets the dialog style. This is currently unused.
95
96\membersection{wxDirDialog::ShowModal}\label{wxdirdialogshowmodal}
97
98\func{int}{ShowModal}{\void}
99
100Shows the dialog, returning wxID\_OK if the user pressed OK, and wxOK\_CANCEL
101otherwise.
102
103