X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ff3e84ffdc91ee8a52b3ab646e48d44d62de80e1..3cc305b2b4a0674c56c84d7088cfd70676b850f0:/docs/latex/wx/filedlg.tex diff --git a/docs/latex/wx/filedlg.tex b/docs/latex/wx/filedlg.tex index 6fc8357637..f89856c61f 100644 --- a/docs/latex/wx/filedlg.tex +++ b/docs/latex/wx/filedlg.tex @@ -13,19 +13,24 @@ This class represents the file chooser dialog. +\wxheading{Library} + +\helpref{wxCore}{librarieslist} + \wxheading{Window styles} \begin{twocollist}\itemsep=0pt -\twocolitem{\windowstyle{wxFD\_DEFAULT\_STYLE}}{Equivalent to wxFD_OPEN.} +\twocolitem{\windowstyle{wxFD\_DEFAULT\_STYLE}}{Equivalent to wxFD\_OPEN.} \twocolitem{\windowstyle{wxFD\_OPEN}}{This is an open dialog; usually this means that the default button's label of the dialog is "Open". Cannot be combined with wxFD\_SAVE.} \twocolitem{\windowstyle{wxFD\_SAVE}}{This is a save dialog; usually this means that the default button's label of the dialog is "Save". Cannot be combined with wxFD\_OPEN.} \twocolitem{{\windowstyle wxFD\_OVERWRITE\_PROMPT}}{For save dialog only: prompt for a confirmation if a file will be overwritten.} \twocolitem{{\windowstyle wxFD\_FILE\_MUST\_EXIST}}{For open dialog only: the user may only select files that actually exist.} -\twocolitem{{\windowstyle wxFD_MULTIPLE}}{For open dialog only: allows selecting multiple files.} -\twocolitem{{\windowstyle wxFD_CHANGE\_DIR}}{Change the current working directory to the directory where the file(s) chosen by the user are.} +\twocolitem{{\windowstyle wxFD\_MULTIPLE}}{For open dialog only: allows selecting multiple files.} +\twocolitem{{\windowstyle wxFD\_CHANGE\_DIR}}{Change the current working directory to the directory where the file(s) chosen by the user are.} +\twocolitem{{\windowstyle wxFD\_PREVIEW}}{Show the preview of the selected files (currently only supported by wxGTK using GTK+ 2.4 or later).} \end{twocollist} -{\bf NB:} Previous versions of wxWidgets used {\tt wxFD_CHANGE\_DIR} by default +{\bf NB:} Previous versions of wxWidgets used {\tt wxFD\_CHANGE\_DIR} by default under MS Windows which allowed the program to simply remember the last directory where user selected the files to open/save. This (desired) functionality must be implemented in the program itself now (manually remember @@ -89,7 +94,7 @@ Constructor. Use \helpref{wxFileDialog::ShowModal}{wxfiledialogshowmodal} to sho Note that the native Motif dialog has some limitations with respect to wildcards; see the Remarks section above.} -\docparam{style}{A dialog style. See wxFD_* styles for more info.} +\docparam{style}{A dialog style. See wxFD\_* styles for more info.} \docparam{pos}{Dialog position. Not implemented.} @@ -121,7 +126,7 @@ Returns the default filename. \constfunc{void}{GetFilenames}{\param{wxArrayString\& }{filenames}} Fills the array {\it filenames} with the names of the files chosen. This -function should only be used with the dialogs which have {\tt wxMULTIPLE} style, +function should only be used with the dialogs which have {\tt wxFD\_MULTIPLE} style, use \helpref{GetFilename}{wxfiledialoggetfilename} for the others. Note that under Windows, if the user selects shortcuts, the filenames @@ -154,7 +159,7 @@ Returns the full path (directory and filename) of the selected file. \constfunc{void}{GetPaths}{\param{wxArrayString\& }{paths}} Fills the array {\it paths} with the full paths of the files chosen. This -function should only be used with the dialogs which have {\tt wxMULTIPLE} style, +function should only be used with the dialogs which have {\tt wxFD\_MULTIPLE} style, use \helpref{GetPath}{wxfiledialoggetpath} for the others. \membersection{wxFileDialog::GetWildcard}\label{wxfiledialoggetwildcard}