]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/cmdline.h
wxMenu Review, added Carbon Events and full OSX Support
[wxWidgets.git] / include / wx / cmdline.h
index 498752cb476f781825aaa1d9d55c28ac540c38fd..a6808091ea51e2364b48442b5a0f76b15022f774 100644 (file)
 #ifndef _WX_CMDLINE_H_
 #define _WX_CMDLINE_H_
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(__APPLE__)
     #pragma interface "cmdline.h"
 #endif
 
 #include "wx/defs.h"
+#include "wx/string.h"
 
 #if wxUSE_CMDLINE_PARSER
 
-#include "wx/string.h"
-
 class WXDLLEXPORT wxDateTime;
 
 // ----------------------------------------------------------------------------
@@ -131,6 +130,8 @@ public:
     void EnableLongOptions(bool enable = TRUE);
     void DisableLongOptions() { EnableLongOptions(FALSE); }
 
+    bool AreLongOptionsEnabled();
+
     // extra text may be shown by Usage() method if set by this function
     void SetLogo(const wxString& logo);
 
@@ -201,10 +202,15 @@ public:
     static wxArrayString ConvertStringToArgs(const wxChar *cmdline);
 
 private:
+    // get usage string
+    wxString GetUsageString();
+
     // common part of all ctors
     void Init();
 
     struct wxCmdLineParserData *m_data;
+
+    DECLARE_NO_COPY_CLASS(wxCmdLineParser)
 };
 
 #else // !wxUSE_CMDLINE_PARSER