1 ///////////////////////////////////////////////////////////////////////////// 
   3 // Author:      Vaclav Slavik, Robert Roebling 
   5 // Copyright:   (c) 2001-2002 SciTech Software, Inc. (www.scitechsoft.com) 
   6 // Licence:     wxWindows licence 
   7 ///////////////////////////////////////////////////////////////////////////// 
  10 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) 
  11 #pragma implementation "settings.h" 
  14 // For compilers that support precompilation, includes "wx.h". 
  15 #include "wx/wxprec.h" 
  21 #include "wx/settings.h" 
  22 #include "wx/colour.h" 
  24 #include "wx/gdicmn.h" 
  25 #include "wx/module.h" 
  27 // ---------------------------------------------------------------------------- 
  29 // ---------------------------------------------------------------------------- 
  31 static wxFont 
*gs_fontDefault 
= NULL
; 
  33 class wxSystemSettingsModule 
: public wxModule
 
  36     virtual bool OnInit() { return TRUE
; } 
  39         delete gs_fontDefault
; 
  40         gs_fontDefault 
= NULL
; 
  44     DECLARE_DYNAMIC_CLASS(wxSystemSettingsModule
) 
  47 IMPLEMENT_DYNAMIC_CLASS(wxSystemSettingsModule
, wxModule
) 
  51 wxColour 
wxSystemSettingsNative::GetColour(wxSystemColour 
WXUNUSED(index
)) 
  53     // not implemented, the mean is in wxUniversal 
  54     return wxColour(0,0,0); 
  57 wxFont 
wxSystemSettingsNative::GetFont(wxSystemFont index
) 
  61         case wxSYS_OEM_FIXED_FONT
: 
  62         case wxSYS_ANSI_FIXED_FONT
: 
  63         case wxSYS_SYSTEM_FIXED_FONT
: 
  65             return *wxNORMAL_FONT
; 
  67         case wxSYS_ANSI_VAR_FONT
: 
  68         case wxSYS_SYSTEM_FONT
: 
  69         case wxSYS_DEVICE_DEFAULT_FONT
: 
  70         case wxSYS_DEFAULT_GUI_FONT
: 
  72             if ( !gs_fontDefault 
) 
  73                 gs_fontDefault 
= new wxFont(10, wxSWISS
, wxNORMAL
, wxNORMAL
, FALSE
, "Arial"); 
  74             return *gs_fontDefault
; 
  81 int wxSystemSettingsNative::GetMetric(wxSystemMetric index
) 
  88             wxDisplaySize(&val
, NULL
); 
  91             wxDisplaySize(NULL
, &val
); 
  98             wxCHECK_MSG(index
, 0, wxT("wxSystemSettings::GetMetric not fully implemented")); 
 103 bool wxSystemSettingsNative::HasFeature(wxSystemFeature index
) 
 107         case wxSYS_CAN_ICONIZE_FRAME
:  
 109         case wxSYS_CAN_DRAW_FRAME_DECORATIONS
: