]> git.saurik.com Git - wxWidgets.git/blobdiff - interface/dirdlg.h
wxThread::Sleep() is the same as wxMilliSleep() on all platforms but Mac (and maybe...
[wxWidgets.git] / interface / dirdlg.h
index 06f049237bfd7588cf8b3f0d009a3b57a2fd2290..c6bd03c27355c06d6652ce30f51d2d0ed03688ae 100644 (file)
@@ -1,6 +1,6 @@
 /////////////////////////////////////////////////////////////////////////////
 // Name:        dirdlg.h
-// Purpose:     documentation for wxDirDialog class
+// Purpose:     interface of wxDirDialog
 // Author:      wxWidgets team
 // RCS-ID:      $Id$
 // Licence:     wxWindows license
     This class represents the directory chooser dialog.
 
     @beginStyleTable
-    @style{wxDD_DEFAULT_STYLE}:
+    @style{wxDD_DEFAULT_STYLE}
            Equivalent to a combination of wxDEFAULT_DIALOG_STYLE and
            wxRESIZE_BORDER (the last one is not used under wxWinCE).
-    @style{wxDD_DIR_MUST_EXIST}:
+    @style{wxDD_DIR_MUST_EXIST}
            The dialog will allow the user to choose only an existing folder.
            When this style is not given, a "Create new directory" button is
            added to the dialog (on Windows) or some other way is provided to
            the user to type the name of a new folder.
-    @style{wxDD_CHANGE_DIR}:
+    @style{wxDD_CHANGE_DIR}
            Change the current working directory to the directory chosen by the
            user.
     @endStyleTable
@@ -29,8 +29,7 @@
     @library{wxcore}
     @category{cmndlg}
 
-    @seealso
-    @ref overview_wxdirdialogoverview "wxDirDialog overview", wxFileDialog
+    @see @ref overview_wxdirdialogoverview "wxDirDialog overview", wxFileDialog
 */
 class wxDirDialog : public wxDialog
 {
@@ -38,7 +37,7 @@ public:
     /**
         Constructor. Use ShowModal() to show
         the dialog.
-        
+
         @param parent
             Parent window.
         @param message
@@ -70,12 +69,12 @@ public:
     /**
         Returns the message that will be displayed on the dialog.
     */
-    wxString GetMessage();
+    wxString GetMessage() const;
 
     /**
         Returns the default or user-selected path.
     */
-    wxString GetPath();
+    wxString GetPath() const;
 
     /**
         Sets the message that will be displayed on the dialog.
@@ -95,14 +94,19 @@ public:
 };
 
 
+
 // ============================================================================
 // Global functions/macros
 // ============================================================================
 
+/** @ingroup group_funcmacro_dialog */
+//@{
+
 /**
-    Pops up a directory selector dialog. The arguments have the same meaning as
-    those of wxDirDialog::wxDirDialog(). The message is displayed at the top,
-    and the default_path, if specified, is set as the initial selection.
+    Pops up a directory selector dialog. The arguments have the same meaning
+    as those of wxDirDialog::wxDirDialog(). The message is displayed at the
+    top, and the default_path, if specified, is set as the initial selection.
+
     The application must check for an empty return value (if the user pressed
     Cancel). For example:
 
@@ -110,9 +114,11 @@ public:
     const wxString& dir = wxDirSelector("Choose a folder");
     if ( !dir.empty() )
     {
-      ...
+        ...
     }
     @endcode
+
+    @header{wx/dirdlg.h}
 */
 wxString wxDirSelector(const wxString& message = wxDirSelectorPromptStr,
                        const wxString& default_path = "",
@@ -120,3 +126,5 @@ wxString wxDirSelector(const wxString& message = wxDirSelectorPromptStr,
                        const wxPoint& pos = wxDefaultPosition,
                        wxWindow* parent = NULL);
 
+//@}
+