Files
wxWidgets/src/palmos/utilsgui.cpp
Włodzimierz Skiba e273151278 Headers cleaning.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31557 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-21 21:04:05 +00:00

180 lines
4.5 KiB
C++

///////////////////////////////////////////////////////////////////////////////
// Name: src/palmos/utilsgui.cpp
// Purpose: Various utility functions only available in GUI
// Author: William Osborne - minimal working wxPalmOS port
// Modified by:
// Created: 10/13/04
// RCS-ID: $Id$
// Copyright: (c) William Osborne
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
// ============================================================================
// declarations
// ============================================================================
// ----------------------------------------------------------------------------
// headers
// ----------------------------------------------------------------------------
// for compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#pragma hdrstop
#endif
#ifndef WX_PRECOMP
#include "wx/cursor.h"
#include "wx/window.h"
#include "wx/utils.h"
#endif //WX_PRECOMP
// ============================================================================
// implementation
// ============================================================================
// ----------------------------------------------------------------------------
// functions to work with .INI files
// ----------------------------------------------------------------------------
// Reading and writing resources (eg WIN.INI, .Xdefaults)
#if wxUSE_RESOURCES
bool wxWriteResource(const wxString& section, const wxString& entry, const wxString& value, const wxString& file)
{
return false;
}
bool wxWriteResource(const wxString& section, const wxString& entry, float value, const wxString& file)
{
return false;
}
bool wxWriteResource(const wxString& section, const wxString& entry, long value, const wxString& file)
{
return false;
}
bool wxWriteResource(const wxString& section, const wxString& entry, int value, const wxString& file)
{
return false;
}
bool wxGetResource(const wxString& section, const wxString& entry, wxChar **value, const wxString& file)
{
return false;
}
bool wxGetResource(const wxString& section, const wxString& entry, float *value, const wxString& file)
{
return false;
}
bool wxGetResource(const wxString& section, const wxString& entry, long *value, const wxString& file)
{
return false;
}
bool wxGetResource(const wxString& section, const wxString& entry, int *value, const wxString& file)
{
return false;
}
#endif // wxUSE_RESOURCES
// ---------------------------------------------------------------------------
// helper functions for showing a "busy" cursor
// ---------------------------------------------------------------------------
static int gs_wxBusyCursorCount = 0;
// Set the cursor to the busy cursor for all windows
void wxBeginBusyCursor(wxCursor *cursor)
{
}
// Restore cursor to normal
void wxEndBusyCursor()
{
}
// true if we're between the above two calls
bool wxIsBusy()
{
return false;
}
// Check whether this window wants to process messages, e.g. Stop button
// in long calculations.
bool wxCheckForInterrupt(wxWindow *wnd)
{
return false;
}
// MSW only: get user-defined resource from the .res file.
// Returns NULL or newly-allocated memory, so use delete[] to clean up.
wxChar *wxLoadUserResource(const wxString& resourceName, const wxString& resourceType)
{
return NULL;
}
// ----------------------------------------------------------------------------
// get display info
// ----------------------------------------------------------------------------
// See also the wxGetMousePosition in window.cpp
// Deprecated: use wxPoint wxGetMousePosition() instead
void wxGetMousePosition( int* x, int* y )
{
};
// Return true if we have a colour display
bool wxColourDisplay()
{
return false;
}
// Returns depth of screen
int wxDisplayDepth()
{
return 0;
}
// Get size of display
void wxDisplaySize(int *width, int *height)
{
}
void wxDisplaySizeMM(int *width, int *height)
{
}
void wxClientDisplayRect(int *x, int *y, int *width, int *height)
{
}
// ---------------------------------------------------------------------------
// window information functions
// ---------------------------------------------------------------------------
wxString WXDLLEXPORT wxGetWindowText(WXHWND hWnd)
{
wxString str;
return str;
}
wxString WXDLLEXPORT wxGetWindowClass(WXHWND hWnd)
{
wxString str;
return str;
}
WXWORD WXDLLEXPORT wxGetWindowId(WXHWND hWnd)
{
return 0;
}