git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21604
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// wxAppTraits: this class defines various configurable aspects of wxApp
// ----------------------------------------------------------------------------
// wxAppTraits: this class defines various configurable aspects of wxApp
// ----------------------------------------------------------------------------
class WXDLLIMPEXP_BASE wxAppTraitsBase
class WXDLLIMPEXP_BASE wxAppTraitsBase
-#else
-class WXDLLIMPEXP_CORE wxAppTraitsBase
-#endif
- // wxAppTraits is an ABC, but we also provide 2 standard implementations of
- // it, one for the console apps and the other for the GUI ones
- static wxAppTraits *CreateConsole();
-#if wxUSE_GUI
- static wxAppTraits *CreateGUI();
-#endif // wxUSE_GUI
-
-
// hooks for creating the global objects, may be overridden by the user
// ------------------------------------------------------------------------
// hooks for creating the global objects, may be overridden by the user
// ------------------------------------------------------------------------
wxAppTraits *wxAppConsole::CreateTraits()
{
wxAppTraits *wxAppConsole::CreateTraits()
{
- return wxAppTraits::CreateConsole();
+ return new wxConsoleAppTraits;
}
wxAppTraits *wxAppConsole::GetTraits()
}
wxAppTraits *wxAppConsole::GetTraits()
-wxAppTraits *wxAppTraitsBase::CreateConsole()
-{
- return new wxConsoleAppTraits;
-}
-
// ============================================================================
// global functions implementation
// ============================================================================
// ============================================================================
// global functions implementation
// ============================================================================
wxAppTraits *wxAppBase::CreateTraits()
{
wxAppTraits *wxAppBase::CreateTraits()
{
- return wxAppTraits::CreateGUI();
+ return new wxGUIAppTraits;
}
// ----------------------------------------------------------------------------
}
// ----------------------------------------------------------------------------
wxPendingDelete.DeleteObject(object);
}
wxPendingDelete.DeleteObject(object);
}
-// ----------------------------------------------------------------------------
-// wxAppTraits
-// ----------------------------------------------------------------------------
-
-wxAppTraits *wxAppTraitsBase::CreateGUI()
-{
- return new wxGUIAppTraits;
-}
-