]> git.saurik.com Git - wxWidgets.git/blob - src/palmos/settings.cpp
Forgot to commit header.
[wxWidgets.git] / src / palmos / settings.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: palmos/settings.cpp
3 // Purpose: wxSystemSettingsNative implementation for Palm OS
4 // Author: William Osborne
5 // Modified by:
6 // Created: 10/13/04
7 // RCS-ID: $Id:
8 // Copyright: (c) William Osborne
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 // ============================================================================
13 // declarations
14 // ============================================================================
15
16 // ----------------------------------------------------------------------------
17 // headers
18 // ----------------------------------------------------------------------------
19
20 // For compilers that support precompilation, includes "wx.h".
21 #include "wx/wxprec.h"
22
23 #ifdef __BORLANDC__
24 #pragma hdrstop
25 #endif
26
27 #ifndef WX_PRECOMP
28 #include "wx/utils.h"
29 #include "wx/gdicmn.h"
30 #endif
31
32 #include "wx/settings.h"
33
34 #ifndef SPI_GETFLATMENU
35 #define SPI_GETFLATMENU 0x1022
36 #endif
37
38 #include "wx/module.h"
39 #include "wx/fontutil.h"
40
41 // ----------------------------------------------------------------------------
42 // private classes
43 // ----------------------------------------------------------------------------
44
45 // ----------------------------------------------------------------------------
46 // global data
47 // ----------------------------------------------------------------------------
48
49 // the font returned by GetFont(wxSYS_DEFAULT_GUI_FONT): it is created when
50 // GetFont() is called for the first time and deleted by wxSystemSettingsModule
51 static wxFont *gs_fontDefault = NULL;
52
53 // ============================================================================
54 // implementation
55 // ============================================================================
56
57 // ----------------------------------------------------------------------------
58 // wxSystemSettingsNative
59 // ----------------------------------------------------------------------------
60
61 // ----------------------------------------------------------------------------
62 // colours
63 // ----------------------------------------------------------------------------
64
65 wxColour wxSystemSettingsNative::GetColour(wxSystemColour index)
66 {
67 return wxNullColour;
68 }
69
70 // ----------------------------------------------------------------------------
71 // fonts
72 // ----------------------------------------------------------------------------
73
74 wxFont wxCreateFontFromStockObject(int index)
75 {
76 wxFont font;
77 return font;
78 }
79
80 wxFont wxSystemSettingsNative::GetFont(wxSystemFont index)
81 {
82 wxFont font;
83 return font;
84 }
85
86 // ----------------------------------------------------------------------------
87 // system metrics/features
88 // ----------------------------------------------------------------------------
89
90 // Get a system metric, e.g. scrollbar size
91 int wxSystemSettingsNative::GetMetric(wxSystemMetric index)
92 {
93 return 0;
94 }
95
96 bool wxSystemSettingsNative::HasFeature(wxSystemFeature index)
97 {
98 return false;
99 }
100
101 // ----------------------------------------------------------------------------
102 // function from wx/msw/wrapcctl.h: there is really no other place for it...
103 // ----------------------------------------------------------------------------
104
105 #if wxUSE_LISTCTRL || wxUSE_TREECTRL
106
107 extern wxFont wxGetCCDefaultFont()
108 {
109 wxFont font;
110 return font;
111 }
112
113 #endif // wxUSE_LISTCTRL || wxUSE_TREECTRL