#include "wx/string.h"
#include "wx/platinfo.h"
-class WXDLLIMPEXP_BASE wxObject;
-class WXDLLEXPORT wxAppTraits;
+class WXDLLIMPEXP_BASE wxArrayString;
+class WXDLLIMPEXP_BASE wxConfigBase;
+class WXDLLIMPEXP_BASE wxEventLoopBase;
#if wxUSE_FONTMAP
class WXDLLEXPORT wxFontMapper;
#endif // wxUSE_FONTMAP
class WXDLLIMPEXP_BASE wxLog;
class WXDLLIMPEXP_BASE wxMessageOutput;
+class WXDLLIMPEXP_BASE wxObject;
class WXDLLEXPORT wxRendererNative;
+class WXDLLIMPEXP_BASE wxStandardPathsBase;
class WXDLLIMPEXP_BASE wxString;
class WXDLLIMPEXP_BASE wxTimer;
class WXDLLIMPEXP_BASE wxTimerImpl;
// wxAppTraits: this class defines various configurable aspects of wxApp
// ----------------------------------------------------------------------------
-class WXDLLIMPEXP_BASE wxStandardPathsBase;
-
class WXDLLIMPEXP_BASE wxAppTraitsBase
{
public:
// hooks for working with the global objects, may be overridden by the user
// ------------------------------------------------------------------------
+#if wxUSE_CONFIG
+ // create the default configuration object (base class version is
+ // implemented in config.cpp and creates wxRegConfig for wxMSW and
+ // wxFileConfig for all the other platforms)
+ virtual wxConfigBase *CreateConfig();
+#endif // wxUSE_CONFIG
+
#if wxUSE_LOG
// create the default log target
virtual wxLog *CreateLogTarget() = 0;
virtual GSocketGUIFunctionsTable* GetSocketGUIFunctionsTable() = 0;
#endif
+ // create a new, port specific, instance of the event loop used by wxApp
+ virtual wxEventLoopBase *CreateEventLoop() = 0;
+
#if wxUSE_TIMER
// return platform and toolkit dependent wxTimer implementation
virtual wxTimerImpl *CreateTimerImpl(wxTimer *timer) = 0;
// return the name of the Desktop Environment such as
// "KDE" or "GNOME". May return an empty string.
- virtual wxString GetDesktopEnvironment() const { return wxEmptyString; }
+ virtual wxString GetDesktopEnvironment() const = 0;
+
+ // returns a short string to identify the block of the standard command
+ // line options parsed automatically by current port: if this string is
+ // empty, there are no such options, otherwise the function also fills
+ // passed arrays with the names and the descriptions of those options.
+ virtual wxString GetStandardCmdLineOptions(wxArrayString& names,
+ wxArrayString& desc) const
+ {
+ wxUnusedVar(names);
+ wxUnusedVar(desc);
+
+ return wxEmptyString;
+ }
+
protected:
#if wxUSE_STACKWALKER && defined( __WXDEBUG__ )
}
virtual bool IsUsingUniversalWidgets() const { return false; }
+ virtual wxString GetDesktopEnvironment() const { return wxEmptyString; }
};
// ----------------------------------------------------------------------------
return false;
#endif
}
+
+ virtual wxString GetDesktopEnvironment() const { return wxEmptyString; }
};
#endif // wxUSE_GUI