-bool wxWriteResource(const wxString& section, const wxString& entry, float value, const wxString& file)
-{
- char buf[50];
- sprintf(buf, "%.4f", value);
- return wxWriteResource(section, entry, buf, file);
-}
-
-bool wxWriteResource(const wxString& section, const wxString& entry, long value, const wxString& file)
-{
- char buf[50];
- sprintf(buf, "%ld", value);
- return wxWriteResource(section, entry, buf, file);
-}
-
-bool wxWriteResource(const wxString& section, const wxString& entry, int value, const wxString& file)
-{
- char buf[50];
- sprintf(buf, "%d", value);
- return wxWriteResource(section, entry, buf, file);
-}
-
-bool wxGetResource(const wxString& section, const wxString& entry, char **value, const wxString& file)
-{
- // TODO
- return FALSE;
-}
-
-bool wxGetResource(const wxString& section, const wxString& entry, float *value, const wxString& file)
-{
- char *s = NULL;
- bool succ = wxGetResource(section, entry, (char **)&s, file);
- if (succ)
- {
- *value = (float)strtod(s, NULL);
- delete[] s;
- return TRUE;
- }
- else return FALSE;
-}
-
-bool wxGetResource(const wxString& section, const wxString& entry, long *value, const wxString& file)
-{
- char *s = NULL;
- bool succ = wxGetResource(section, entry, (char **)&s, file);
- if (succ)
- {
- *value = strtol(s, NULL, 10);
- delete[] s;
- return TRUE;
- }
- else return FALSE;
-}
-
-bool wxGetResource(const wxString& section, const wxString& entry, int *value, const wxString& file)
-{
- char *s = NULL;
- bool succ = wxGetResource(section, entry, (char **)&s, file);
- if (succ)
- {
- *value = (int)strtol(s, NULL, 10);
- delete[] s;
- return TRUE;
- }
- else return FALSE;
-}
-#endif // USE_RESOURCES
-
-static int wxBusyCursorCount = 0;
-
-// Set the cursor to the busy cursor for all windows
-void wxBeginBusyCursor(wxCursor *cursor)
-{
- wxBusyCursorCount ++;
- if (wxBusyCursorCount == 1)
- {
- // TODO
- }
- else
- {
- // TODO
- }
-}
-
-// Restore cursor to normal
-void wxEndBusyCursor()
-{
- if (wxBusyCursorCount == 0)
- return;
-
- wxBusyCursorCount --;
- if (wxBusyCursorCount == 0)
- {
- // TODO
- }
-}
-
-// TRUE if we're between the above two calls
-bool wxIsBusy()
-{
- return (wxBusyCursorCount > 0);
-}
-
-char *wxGetUserHome (const wxString& user)
-{
- // TODO
- return NULL;
-}
-
-// Check whether this window wants to process messages, e.g. Stop button
-// in long calculations.
-bool wxCheckForInterrupt(wxWindow *wnd)
-{
- // TODO
- return FALSE;
-}
-
-void wxGetMousePosition( int* x, int* y )
-{
- // TODO
-};
-
-// Return TRUE if we have a colour display
-bool wxColourDisplay()
-{
- // TODO
- return TRUE;
-}
-
-// Returns depth of screen
-int wxDisplayDepth()
-{
- // TODO
- return 0;
-}
-
-// Get size of display
-void wxDisplaySize(int *width, int *height)
-{
- // TODO
-}
-
-/* Configurable display in Motif */
-static WXDisplay *gs_currentDisplay = NULL;
-static wxString gs_displayName;
-
-WXDisplay *wxGetDisplay()
-{
- if (gs_currentDisplay)
- return gs_currentDisplay;
-
- return XtDisplay ((Widget) wxTheApp->GetTopLevelWidget());
-}
-
-bool wxSetDisplay(const wxString& display_name)
-{
- gs_displayName = display_name;
-
- if (display_name.IsNull() || display_name.IsEmpty())
- {
- gs_currentDisplay = NULL;
- return TRUE;
- }
- else
- {
- Cardinal argc = 0;