]> git.saurik.com Git - wxWidgets.git/blob - src/palmos/utilsgui.cpp
revert unintended changes in previous commit
[wxWidgets.git] / src / palmos / utilsgui.cpp
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: src/palmos/utilsgui.cpp
3 // Purpose: Various utility functions only available in GUI
4 // Author: William Osborne - minimal working wxPalmOS port
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/cursor.h"
29 #include "wx/window.h"
30 #include "wx/utils.h"
31 #endif //WX_PRECOMP
32
33 // ============================================================================
34 // implementation
35 // ============================================================================
36
37 // ----------------------------------------------------------------------------
38 // functions to work with .INI files
39 // ----------------------------------------------------------------------------
40
41 // Reading and writing resources (eg WIN.INI, .Xdefaults)
42 #if wxUSE_RESOURCES
43 bool wxWriteResource(const wxString& section, const wxString& entry, const wxString& value, const wxString& file)
44 {
45 return false;
46 }
47
48 bool wxWriteResource(const wxString& section, const wxString& entry, float value, const wxString& file)
49 {
50 return false;
51 }
52
53 bool wxWriteResource(const wxString& section, const wxString& entry, long value, const wxString& file)
54 {
55 return false;
56 }
57
58 bool wxWriteResource(const wxString& section, const wxString& entry, int value, const wxString& file)
59 {
60 return false;
61 }
62
63 bool wxGetResource(const wxString& section, const wxString& entry, wxChar **value, const wxString& file)
64 {
65 return false;
66 }
67
68 bool wxGetResource(const wxString& section, const wxString& entry, float *value, const wxString& file)
69 {
70 return false;
71 }
72
73 bool wxGetResource(const wxString& section, const wxString& entry, long *value, const wxString& file)
74 {
75 return false;
76 }
77
78 bool wxGetResource(const wxString& section, const wxString& entry, int *value, const wxString& file)
79 {
80 return false;
81 }
82 #endif // wxUSE_RESOURCES
83
84 // ---------------------------------------------------------------------------
85 // helper functions for showing a "busy" cursor
86 // ---------------------------------------------------------------------------
87
88 static int gs_wxBusyCursorCount = 0;
89
90 // Set the cursor to the busy cursor for all windows
91 void wxBeginBusyCursor(const wxCursor *cursor)
92 {
93 }
94
95 // Restore cursor to normal
96 void wxEndBusyCursor()
97 {
98 }
99
100 // true if we're between the above two calls
101 bool wxIsBusy()
102 {
103 return false;
104 }
105
106 // Check whether this window wants to process messages, e.g. Stop button
107 // in long calculations.
108 bool wxCheckForInterrupt(wxWindow *wnd)
109 {
110 return false;
111 }
112
113 // MSW only: get user-defined resource from the .res file.
114 // Returns NULL or newly-allocated memory, so use delete[] to clean up.
115
116 wxChar *wxLoadUserResource(const wxString& resourceName, const wxString& resourceType)
117 {
118 return NULL;
119 }
120
121 // ----------------------------------------------------------------------------
122 // get display info
123 // ----------------------------------------------------------------------------
124
125 // See also the wxGetMousePosition in window.cpp
126 // Deprecated: use wxPoint wxGetMousePosition() instead
127 void wxGetMousePosition( int* x, int* y )
128 {
129 };
130
131 // Return true if we have a colour display
132 bool wxColourDisplay()
133 {
134 return false;
135 }
136
137 // Returns depth of screen
138 int wxDisplayDepth()
139 {
140 return 0;
141 }
142
143 // Get size of display
144 void wxDisplaySize(int *width, int *height)
145 {
146 }
147
148 void wxDisplaySizeMM(int *width, int *height)
149 {
150 }
151
152 void wxClientDisplayRect(int *x, int *y, int *width, int *height)
153 {
154 }