wx/msw/fswatcher.h \
$(BASE_WINCE_HDR) \
$(BASE_OSX_HDR) \
- wx/palmos/apptbase.h \
- wx/palmos/apptrait.h \
- wx/palmos/chkconf.h \
- wx/palmos/mimetype.h \
- wx/palmos/missing.h \
- wx/palmos/stdpaths.h \
wx/msdos/mimetype.h \
wx/fs_inet.h \
wx/protocol/file.h \
src/msdos/dir.cpp \
src/msdos/mimetype.cpp \
src/msdos/utilsdos.cpp \
- src/palmos/base.cpp \
- src/palmos/dir.cpp \
- src/palmos/prefconf.cpp \
- src/palmos/snglinst.cpp \
- src/palmos/stdall.c \
- src/palmos/thread.cpp \
- src/palmos/utils.cpp \
- src/palmos/utilsexc.cpp \
src/common/event.cpp \
src/common/fs_mem.cpp \
src/common/msgout.cpp \
mkdir $(DISTDIR)/include/wx/osx/carbon
mkdir $(DISTDIR)/include/wx/osx/core
mkdir $(DISTDIR)/include/wx/os2
- mkdir $(DISTDIR)/include/wx/palmos
mkdir $(DISTDIR)/src/unix
mkdir $(DISTDIR)/src/osx
mkdir $(DISTDIR)/src/osx/core
mkdir $(DISTDIR)/src/msdos
mkdir $(DISTDIR)/src/msw
mkdir $(DISTDIR)/src/os2
- mkdir $(DISTDIR)/src/palmos
$(CP_P) $(DOCDIR)/base/readme.txt $(DISTDIR)/README.txt
$(CP_P) $(WXDIR)/src/common/*.inc $(DISTDIR)/src/common
list='$(ALL_PORTS_BASE_HEADERS)'; for p in $$list; do \
<set var="PLATFORM_MACOS">0</set>
</if>
- <!-- FIXME: PalmOS is another candidate to bakefiles -->
- <set var="PLATFORM_PALMOS">0</set>
-
-
<include file="config.bkl"/>
<include file="plugins_deps.bkl"/>
wx/os2/wxrsc.h
</set>
-<!-- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -->
-<!-- PalmOS -->
-<!-- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -->
-
-<set var="BASE_PALMOS_SRC" hints="files">
- src/palmos/base.cpp
- src/palmos/dir.cpp
- src/palmos/prefconf.cpp
- src/palmos/snglinst.cpp
- src/palmos/stdall.c
- src/palmos/thread.cpp
- src/palmos/utils.cpp
- src/palmos/utilsexc.cpp
-</set>
-
-<set var="BASE_AND_GUI_PALMOS_SRC" hints="files">
- src/palmos/main.cpp
- src/palmos/volume.cpp
-</set>
-
-<set var="BASE_PALMOS_HDR" hints="files">
- wx/palmos/apptbase.h
- wx/palmos/apptrait.h
- wx/palmos/chkconf.h
- wx/palmos/mimetype.h
- wx/palmos/missing.h
- wx/palmos/stdpaths.h
-</set>
-
<!-- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -->
<!-- MSDOS -->
<!-- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -->
<if cond="PLATFORM_WIN32=='1'">$(BASE_WIN32_SRC) $(BASE_WINCE_SRC)</if>
<if cond="PLATFORM_MACOSX=='1'">$(BASE_OSX_SHARED_SRC)</if>
<if cond="PLATFORM_OS2=='1'">$(BASE_OS2_SRC)</if>
- <if cond="PLATFORM_PALMOS=='1'">$(BASE_PALMOS_SRC)</if>
<if cond="PLATFORM_MSDOS=='1'">$(BASE_MSDOS_SRC)</if>
</set>
<set var="BASE_AND_GUI_TOOLKIT_SRC" hints="files">
</set>
<set var="BASE_AND_GUI_PLATFORM_SRC" hints="files">
<if cond="PLATFORM_WIN32=='1'">$(BASE_AND_GUI_WIN32_SRC)</if>
- <if cond="PLATFORM_PALMOS=='1'">$(BASE_AND_GUI_PALMOS_SRC)</if>
<if cond="PLATFORM_MSDOS=='1'">$(BASE_AND_GUI_MSDOS_SRC)</if>
<!-- At the moment, BASE_AND_GUI_TOOLKIT_SRC handles this -->
<!-- if cond="PLATFORM_MACOS=='1'">$(BASE_AND_GUI_MAC_SRC)</if -->
<if cond="PLATFORM_UNIX=='1'">$(BASE_UNIX_HDR)</if>
<if cond="PLATFORM_WIN32=='1'">$(BASE_WIN32_HDR) $(BASE_WINCE_HDR)</if>
<if cond="PLATFORM_MACOSX=='1'">$(BASE_OSX_HDR)</if>
- <if cond="PLATFORM_PALMOS=='1'">$(BASE_PALMOS_HDR)</if>
<if cond="PLATFORM_MSDOS=='1'">$(BASE_MSDOS_HDR)</if>
<if cond="PLATFORM_OS2=='1'">$(BASE_OS2_HDR)</if>
</set>
$(BASE_UNIX_HDR)
$(BASE_WIN32_HDR) $(BASE_WINCE_HDR)
$(BASE_OSX_HDR)
- $(BASE_PALMOS_HDR)
$(BASE_MSDOS_HDR)
$(NET_CMN_HDR)
$(XML_HDR)
$(BASE_OSX_SRC)
$(BASE_OS2_SRC)
$(BASE_MSDOS_SRC)
- $(BASE_PALMOS_SRC)
$(BASE_AND_GUI_CMN_SRC)
$(BASE_AND_GUI_OSX_CARBON_SRC)
$(BASE_AND_GUI_OSX_COCOA_SRC)
mkdir $(DISTDIR)/include/wx/osx/carbon
mkdir $(DISTDIR)/include/wx/osx/core
mkdir $(DISTDIR)/include/wx/os2
- mkdir $(DISTDIR)/include/wx/palmos
mkdir $(DISTDIR)/src/unix
mkdir $(DISTDIR)/src/osx
mkdir $(DISTDIR)/src/osx/core
mkdir $(DISTDIR)/src/msdos
mkdir $(DISTDIR)/src/msw
mkdir $(DISTDIR)/src/os2
- mkdir $(DISTDIR)/src/palmos
$(CP_P) $(DOCDIR)/base/readme.txt $(DISTDIR)/README.txt
$(CP_P) $(WXDIR)/src/common/*.inc $(DISTDIR)/src/common
list='$(ALL_PORTS_BASE_HEADERS)'; for p in $$list; do \
\r
[Files]\r
; source files\r
-Source: "{#INNODIR}\*"; DestDir: "{app}"; Excludes: ".cvsignore,cocoa,dfb,mac,gtk,gtk1,mgl,motif,msdos,os2,palmos,wxWindows.xcod*,x11,debian,distrib,docs,misc,tests,wxPython,*.pch,*.pch++,*.pchmm"; Flags: ignoreversion recursesubdirs createallsubdirs\r
+Source: "{#INNODIR}\*"; DestDir: "{app}"; Excludes: ".cvsignore,cocoa,dfb,mac,gtk,gtk1,mgl,motif,msdos,os2,wxWindows.xcod*,x11,debian,distrib,docs,misc,tests,wxPython,*.pch,*.pch++,*.pchmm"; Flags: ignoreversion recursesubdirs createallsubdirs
; docs and helpfile\r
Source: "{#INNODIR}\docs\htmlhelp\*"; DestDir: "{app}\docs\htmlhelp\"; Flags: ignoreversion recursesubdirs createallsubdirs\r
Source: "{#INNODIR}\docs\licence.txt"; DestDir: "{app}\docs\"; Flags: ignoreversion recursesubdirs createallsubdirs\r
update_common_setup_h include/wx/msw/wince/setup.h
update_common_setup_h include/wx/osx/setup0.h
update_common_setup_h include/wx/os2/setup0.h
-update_common_setup_h include/wx/palmos/setup0.h
update_common_setup_h include/wx/univ/setup0.h
update_common_setup_h setup.h.in
@itemdef{__WXOSX_MAC__, Mac OS X (Carbon or Cocoa)}
@itemdef{__WXOSX_OR_COCOA__, Any Mac OS X port (wxOSX-Carbon, wxOSX-Cocoa or
wxCocoa)}
-@itemdef{__WXPALMOS__, PalmOS}
@itemdef{__WXPM__, OS/2 native Presentation Manager}
@itemdef{__WXSTUBS__, Stubbed version ('template' wxWin implementation)}
@itemdef{__WXXT__, Xt; mutually exclusive with WX_MOTIF, not implemented in wxWidgets 2.x}
@itemdef{__MACH__, Mach-O Architecture (Mac OS X only builds)}
@itemdef{__OSF__, OSF/1}
@itemdef{__QNX__, QNX Neutrino RTOS}
-@itemdef{__PALMOS__, PalmOS}
@itemdef{__SGI__, IRIX}
@itemdef{__SOLARIS__, Solaris}
@itemdef{__SUN__, Any Sun}
+++ /dev/null
- wxPalm README
- =============
-
-NB: wxPalm is currently in pre-alpha stage -- but it's already fun!
-
-I. Building wxPalm under Windows
---------------------------------
-
-First, you need the freely distributable Palm OS Developer Studio available at
-
- http://www.palmos.com/dev/tools/dev_suite.html
-
-Beware, its installation takes about 500Mb (+ 150 Mb of cygwin if not installed
-yet), so make sure you have enough disk space for it and for wxWidgets build
-tree (another 50Mb). Last tested set: PODS 1.2, SDK 6.1, wxWidgets 2.7.0.
-
-The Developer Studio is Eclipse-based and so is a GUI environment, however it
-is also possible to build Palm applications from the command line using the
-usual GNU tools. Both methods are covered below, choose one which you prefer.
-
-a) Using command line tools:
- - If you have installed Developer Studio in a non default location (e.g.
- d:\PalmOS), you will need to set the environment variables:
-
- set TOOLS_DIR=D:/PalmOS/PalmOSTools/
- set SDK_LOCATION=D:/PalmOS/sdk-6/
-
- Don't use backslashes and don't forget the trailing slash. On the bright
- side, spaces don't need to be escaped in any way.
-
- - create a lib/gcc_lib/palmos/wx directory
- - copy include/wx/palmos/setup0.h to lib/gcc_lib/palmos/wx/setup.h
- TODO: modify Makefile to do it automatically
-
- - ensure that the directories d:\PalmOS\PalmOSTools and the one containing
- GNU tools (i.e. cygwin bin directory) are in your PATH
-
- - go to build/palmos and run make
-
- - you should end up with DebugSim/wxWidgets.prc: this is the Palm database
- which you can load into the emulator
-
- - to test it, run the emulator (you need PalmOS 6 one!) after seting
- another env var:
-
- set PALMSOURCE_SIM_PATH=wxWindows\build\palmos\DebugSim
-
- wait until the emulator finishes to boot, right click it and choose
- "Install" in the menu, select wxWindows.prc in the file open dialog.
- You should see "Minimal App" with a familiar icon appear in the list,
- click it and it should start.
-
-
-b) Using IDE:
- TODO: write this after checking that the instructions below work
-
-
-
-
-Original note from William Osborne follows:
-
-wxWidgets 2.5.3 CVS 10-18-2004
-------------------------------
-
-This is a Palm OS 6 port of the wxWidgets toolkit. Included in the source
-package is the complete source necessary to build the Palm OS port using the
-Palm OS Developer Studio. Also included is the diff showing the changes that
-need to be incorporated into the wxWidgets 2.5.3 CVS source tree before the
-Palm OS port can be integrated.
-
-I am releasing this port to the wxWidgets team under the terms of the wxWindows
-license. A copy of the wxWindows license is included in the source package.
-
-No third party libraries or code were used in making this port. The port consists
-entirely of code I personally wrote combined with code that was included in the
-wxWidgets 2.5.3 CSV source tree. Whenever possible, I have used the Palm OS 6 API,
-in places where the API was not practical to use, I wrote my own functions.
-
-I am submitting this source package as an entry in the wxWidgets Palm OS 6 port
-challenge. Details on this challenge are available at:
-http://www.wxwidgets.org/about/news/palmos.htm
-
-Please note that this port is in a very early state. Currently the port
-provides limited functionality for the wxFrame, wxMenu, wxStatusBar,
-wxTopLevelWindow, and wxWindow classes. The other classes in the wxWidgets
-toolkit still need to be ported. In it's current state, the Palm OS 6 port
-is capable of running the minimal wxWidgets sample
-
-The easiest way to see the port in action is to build the source package with
-the Palm OS Developer Studio available at http://www.palmos.com/dev/dl/dl_tools/dl_pods/
-Here are the steps that you need to follow to build the package:
-
-1) Unpack the ZIP file into a directory located within the Palm OS Developer
- Studio workspace directory. The path to the folder should look something
- like this: "C:\Program Files\PalmSource\Palm OS Developer Suite\workspace\wxWidgets"
-
-2) Open Palm OS Developer Studio and click on File->Import.
-
-3) Select "Existing Project into Workspace" as the import source and click Next.
-
-4) On the next screen click the Browse button next to Project contents and select
- the folder you unpacked the source package into. Click on Finish to continue.
-
-5) You should now see the project listed in the Project pane on the right side of the
- window. Click on the name of the project. Now click on the Project menu and select
- "Rebuild Project"
-
-6) After the build is complete, click on the Run menu and select "" The Palm OS 6 simulator
- should start. If this is the first time you have used the simulator, you will be prompted
- to choose a ROM file. You can find the ROM files in a folder like "C:\Program
- Files\PalmSource\Palm OS Developer Suite\sdk-6\tools\Simulator\6.0.1\ROM" It doesn't
- really matter whether you choose a Release or a Debug ROM (the debug ROM generates extra
- reports when an application crashes.)
-
-7) You should see the Palm logo appear in the simulator window. You may get a dialog box
- asking you to choose a language. Click OK to continue. You should see the simulator
- initialize the built-in Palm applications. After a few moments, the wxWidgets minimal
- sample should start. Have fun!
-
-Since this source package was based on the wxWidgets 2.5.3 CVS source tree dated October 18,
-2004 I don't anticipate any problems with merging the sources into the 2.5.3 source tree.
-
-If you have any questions or comments about the port, please feel free to send an email to
-the wxWidgets developer list or directly to me at wbo@freeshell.org
-
-Enjoy!
-William Osborne
-wbo@freeshell.org
optimising dialog and general layout for small screens such as those
of the recent netbooks and mobile phones and tablets.</P>
<P ALIGN=JUSTIFY>There is varying support for other platforms or
-toolkits such as OS/2, Motif, GTK 1.2, PalmOS and various mobile
+toolkits such as OS/2, Motif, GTK 1.2 and various mobile
Linux variants using GTK+ or the Hildon framework and also a version
for OS X using the Cocoa API and even the iPhone SDK.</P>
<H3 CLASS="western">Documentation in Doxygen</H3>
<P STYLE="margin-bottom: 0cm"><BR>
</P>
</BODY>
-</HTML>
\ No newline at end of file
+</HTML>
- Mac OS X using Cocoa (beta)
- OS/2 (beta)
- MGL for Linux and DOS
-- Palm OS (alpha)
To get wxWidgets, please go to the Download page at:
// #include "wx/cocoa/anybutton.h"
//#elif defined(__WXPM__)
// #include "wx/os2/anybutton.h"
-//#elif defined(__WXPALMOS__)
-// #include "wx/palmos/anybutton.h"
#else
typedef wxAnyButtonBase wxAnyButton;
#endif
// now include the declaration of the real class
// ----------------------------------------------------------------------------
-#if defined(__WXPALMOS__)
- #include "wx/palmos/app.h"
-#elif defined(__WXMSW__)
+#if defined(__WXMSW__)
#include "wx/msw/app.h"
#elif defined(__WXMOTIF__)
#include "wx/motif/app.h"
// NB: test for __UNIX__ before __WXMAC__ as under Darwin we want to use the
// Unix code (and otherwise __UNIX__ wouldn't be defined)
// ABX: check __WIN32__ instead of __WXMSW__ for the same MSWBase in any Win32 port
-#if defined(__WXPALMOS__)
- #include "wx/palmos/apptbase.h"
-#elif defined(__WIN32__)
+#if defined(__WIN32__)
#include "wx/msw/apptbase.h"
#elif defined(__UNIX__) && !defined(__EMX__)
#include "wx/unix/apptbase.h"
// ----------------------------------------------------------------------------
// ABX: check __WIN32__ instead of __WXMSW__ for the same MSWBase in any Win32 port
-#if defined(__WXPALMOS__)
- #include "wx/palmos/apptrait.h"
-#elif defined(__WIN32__)
+#if defined(__WIN32__)
#include "wx/msw/apptrait.h"
#elif defined(__OS2__)
#include "wx/os2/apptrait.h"
#define wxBITMAP_SCREEN_DEPTH (-1)
-// All ports except wxMSW,wxOS2,wxPalmOS use wxBitmapHandler and wxBitmapBase as base class
-// for wxBitmapHandler; wxMSW,wxOS2,wxPalmOS use wxGDIImageHandler as base class
-// since it allows some code reuse there.
+// All ports except wxMSW and wxOS2 use wxBitmapHandler and wxBitmapBase as
+// base class for wxBitmapHandler; wxMSW and wxOS2 use wxGDIImageHandler as
+// base class since it allows some code reuse there.
#if wxUSE_BITMAP_BASE
// ----------------------------------------------------------------------------
// the wxBITMAP_DEFAULT_TYPE constant defines the default argument value
// for wxBitmap's ctor and wxBitmap::LoadFile() functions.
-#if defined(__WXPALMOS__)
- #define wxBITMAP_DEFAULT_TYPE wxBITMAP_TYPE_BMP_RESOURCE
- #include "wx/palmos/bitmap.h"
-#elif defined(__WXMSW__)
+#if defined(__WXMSW__)
#define wxBITMAP_DEFAULT_TYPE wxBITMAP_TYPE_BMP_RESOURCE
#include "wx/msw/bitmap.h"
#elif defined(__WXMOTIF__)
#include "wx/cocoa/bmpbuttn.h"
#elif defined(__WXPM__)
#include "wx/os2/bmpbuttn.h"
-#elif defined(__WXPALMOS__)
- #include "wx/palmos/bmpbuttn.h"
#endif
#endif // wxUSE_BMPBUTTON
}
};
-#if defined(__WXPALMOS__)
- #include "wx/palmos/brush.h"
-#elif defined(__WXMSW__)
+#if defined(__WXMSW__)
#include "wx/msw/brush.h"
#elif defined(__WXMOTIF__) || defined(__WXX11__)
#include "wx/x11/brush.h"
#include "wx/chartype.h"
#include "wx/wxcrtbase.h"
-#ifndef __WXPALMOS5__
#include <stdlib.h> // malloc() and free()
-#endif // ! __WXPALMOS5__
class WXDLLIMPEXP_FWD_BASE wxCStrData;
#include "wx/cocoa/button.h"
#elif defined(__WXPM__)
#include "wx/os2/button.h"
-#elif defined(__WXPALMOS__)
- #include "wx/palmos/button.h"
#endif
#endif // wxUSE_BUTTON
#define wxHAVE_TCHAR_SUPPORT
#elif defined(__DMC__)
#define wxHAVE_TCHAR_SUPPORT
-#elif defined(__WXPALMOS__)
- #include <stddef.h>
#elif defined(__MINGW32__) && wxCHECK_W32API_VERSION( 1, 0 )
#define wxHAVE_TCHAR_SUPPORT
#include <stddef.h>
#elif defined(__WXPM__)
#undef wxHAS_3STATE_CHECKBOX
#include "wx/os2/checkbox.h"
-#elif defined(__WXPALMOS__)
- #include "wx/palmos/checkbox.h"
#endif
#endif // wxUSE_CHECKBOX
#endif /* !defined(wxUSE_HTML) */
#ifndef wxUSE_LIBMSPACK
-# if !defined(__UNIX__) || defined(__WXPALMOS__)
+# if !defined(__UNIX__)
/* set to 0 on platforms that don't have libmspack */
# define wxUSE_LIBMSPACK 0
# else
checks use wxUSE_XXX symbols in #if tests.
*/
-#if defined(__WXPALMOS__)
-# include "wx/palmos/chkconf.h"
-#elif defined(__WXWINCE__)
+#if defined(__WXWINCE__)
# include "wx/msw/wince/chkconf.h"
#elif defined(__WXMSW__)
# include "wx/msw/chkconf.h"
#ifndef wxUSE_NATIVE_STATUSBAR
# define wxUSE_NATIVE_STATUSBAR 0
#elif wxUSE_NATIVE_STATUSBAR
-# if defined(__WXUNIVERSAL__) || !( defined(__WXMSW__) || \
- defined(__WXMAC__) || \
- defined(__WXPALMOS__) )
+# if defined(__WXUNIVERSAL__) || !(defined(__WXMSW__) || defined(__WXMAC__))
# undef wxUSE_NATIVE_STATUSBAR
# define wxUSE_NATIVE_STATUSBAR 0
# endif
#endif /* wxUSE_FILEDLG */
#if !wxUSE_GAUGE || !wxUSE_BUTTON
-# if wxUSE_PROGRESSDLG && !defined(__WXPALMOS__)
+# if wxUSE_PROGRESSDLG
# ifdef wxABORT_ON_CONFIG_ERROR
# error "Generic progress dialog requires wxUSE_GAUGE and wxUSE_BUTTON"
# else
# define wxUSE_RADIOBTN 1
# endif
# endif
-# if !wxUSE_STATBOX && !defined(__WXPALMOS__)
+# if !wxUSE_STATBOX
# ifdef wxABORT_ON_CONFIG_ERROR
# error "wxUSE_RADIOBOX requires wxUSE_STATBOX"
# else
#include "wx/cocoa/choice.h"
#elif defined(__WXPM__)
#include "wx/os2/choice.h"
-#elif defined(__WXPALMOS__)
- #include "wx/palmos/choice.h"
#endif
#endif // wxUSE_CHOICE
#include "wx/osx/colordlg.h"
#elif defined(__WXGTK20__) && !defined(__WXUNIVERSAL__)
#include "wx/gtk/colordlg.h"
-#elif defined(__WXPALMOS__)
- #include "wx/palmos/colordlg.h"
#else
#include "wx/generic/colrdlgg.h"
-#if defined(__WXPALMOS__)
- #include "wx/generic/colour.h"
-#elif defined(__WXMSW__)
+#if defined(__WXMSW__)
#include "wx/msw/colour.h"
#elif defined(__WXMOTIF__)
#include "wx/motif/colour.h"
#elif defined(__WXOS2__) && wxUSE_CONFIG_NATIVE
#include "wx/os2/iniconf.h"
#define wxConfig wxIniConfig
-#elif defined(__WXPALMOS__) && wxUSE_CONFIG_NATIVE
- #include "wx/palmos/prefconf.h"
- #define wxConfig wxPrefConfig
#else // either we're under Unix or wish to always use config files
#include "wx/fileconf.h"
#define wxConfig wxFileConfig
#if defined(__WXUNIVERSAL__)
#include "wx/univ/control.h"
-#elif defined(__WXPALMOS__)
- #include "wx/palmos/control.h"
#elif defined(__WXMSW__)
#include "wx/msw/control.h"
#elif defined(__WXMOTIF__)
*/
-#if defined(__WXPALMOS__)
- #define wxCURSOR_DEFAULT_TYPE wxBITMAP_TYPE_CUR_RESOURCE
- #include "wx/palmos/cursor.h"
-#elif defined(__WXMSW__)
+#if defined(__WXMSW__)
#define wxCURSOR_DEFAULT_TYPE wxBITMAP_TYPE_CUR_RESOURCE
#include "wx/msw/cursor.h"
#elif defined(__WXMOTIF__)
virtual bool GetRange(wxDateTime *dt1, wxDateTime *dt2) const = 0;
};
-#if defined(__WXPALMOS__)
- #include "wx/palmos/datectrl.h"
-
- #define wxHAS_NATIVE_DATEPICKCTRL
-#elif defined(__WXMSW__) && !defined(__WXUNIVERSAL__)
+#if defined(__WXMSW__) && !defined(__WXUNIVERSAL__)
#include "wx/msw/datectrl.h"
#define wxHAS_NATIVE_DATEPICKCTRL
#ifdef __WXWINCE__
#include "wx/msw/wince/time.h"
-#elif !defined(__WXPALMOS5__)
+#else
#include <time.h>
#endif // OS
#ifndef _WX_DEBUG_H_
#define _WX_DEBUG_H_
-#if !defined(__WXPALMOS5__) && !defined(__WXWINCE__)
+#if !defined(__WXWINCE__)
#include <assert.h>
#endif // systems without assert.h
/* Make sure the environment is set correctly */
# if defined(__WXMSW__) && defined(__X__)
# error "Target can't be both X and Windows"
-# elif defined(__WXMSW__) && defined(__PALMOS__)
-# error "Target can't be both PalmOS and Windows"
# elif !defined(__WXMOTIF__) && \
!defined(__WXMSW__) && \
- !defined(__WXPALMOS__)&& \
!defined(__WXGTK__) && \
!defined(__WXPM__) && \
!defined(__WXOSX_CARBON__) && \
#ifndef HAVE_WOSTREAM
/*
- Mingw <= 3.4 and all versions of Cygwin as well as any gcc version (so
- far) targeting PalmOS don't have std::wostream
+ Mingw <= 3.4 and all versions of Cygwin don't have std::wostream
*/
- #if defined(__PALMOS__) || \
- (defined(__MINGW32__) && !wxCHECK_GCC_VERSION(4, 0)) || \
+ #if (defined(__MINGW32__) && !wxCHECK_GCC_VERSION(4, 0)) || \
defined(__CYGWIN__)
#define wxNO_WOSTREAM
#endif
/* NULL declaration: it must be defined as 0 for C++ programs (in particular, */
/* it must not be defined as "(void *)0" which is standard for C but completely */
/* breaks C++ code) */
-#if !defined(__HANDHELDPC__) && !defined(__PALMOS__)
+#if !defined(__HANDHELDPC__)
#include <stddef.h>
#endif
/* define fixed length types */
/* ---------------------------------------------------------------------------- */
-#if defined(__WXPALMOS__) || defined(__MINGW32__)
+#if defined(__MINGW32__)
#if !defined(__MWERKS__)
#include <sys/types.h>
#endif
*/
/* 32bit */
-#ifdef __PALMOS__
- typedef int wxInt32;
- typedef unsigned int wxUint32;
- #define SIZEOF_INT 4
- #define SIZEOF_LONG 4
- #define SIZEOF_WCHAR_T 2
- #define SIZEOF_SIZE_T 4
- #ifdef __WXPALMOS6__
- #define wxSIZE_T_IS_UINT
- #endif
- #define SIZEOF_VOID_P 4
- #define SIZEOF_SIZE_T 4
-#elif defined(__WINDOWS__)
+#if defined(__WINDOWS__)
#if defined(__WIN32__)
typedef int wxInt32;
typedef unsigned int wxUint32;
#error "The 64 bit integer support in CodeWarrior has been disabled."
#error "See the documentation on the 'longlong' pragma."
#endif
-#elif defined(__WXPALMOS__)
- #if defined(__WXPALMOS6__)
- #define wxLongLong_t int64_t
- #else
- #define wxLongLong_t long long
- #endif /* __WXPALMOS6__ */
- #define wxLongLongSuffix ll
- #define wxLongLongFmtSpec "ll"
#elif defined(__VISAGECPP__) && __IBMCPP__ >= 400
#define wxLongLong_t long long
#elif (defined(SIZEOF_LONG_LONG) && SIZEOF_LONG_LONG >= 8) || \
#ifdef wxLongLong_t
-
- #ifdef __WXPALMOS__
- #if defined(__WXPALMOS6__)
- #define wxULongLong_t uint64_t
- #else
- #define wxULongLong_t unsigned long long
- #endif /* __WXPALMOS6__ */
- #else
- #define wxULongLong_t unsigned wxLongLong_t
- #endif
+ #define wxULongLong_t unsigned wxLongLong_t
/*
wxLL() and wxULL() macros allow to define 64 bit constants in a
#if defined(_SSIZE_T_) || defined(_SSIZE_T_DEFINED)
#define HAVE_SSIZE_T
#endif
-#elif defined(__PALMOS__)
- #define HAVE_SSIZE_T
#elif wxCHECK_WATCOM_VERSION(1,4)
#define HAVE_SSIZE_T
#endif
/* Old names for compatibility */
#define wxRA_HORIZONTAL wxHORIZONTAL
#define wxRA_VERTICAL wxVERTICAL
-#define wxRA_USE_CHECKBOX 0x0010 /* alternative native subcontrols (wxPalmOS) */
/*
* wxRadioButton style flag
*/
#define wxRB_GROUP 0x0004
#define wxRB_SINGLE 0x0008
-#define wxRB_USE_CHECKBOX 0x0010 /* alternative native control (wxPalmOS) */
/*
* wxScrollBar flags
#endif /* __WXMAC__ */
-#if defined(__WXPALMOS__)
-
-typedef void * WXHWND;
-typedef void * WXHANDLE;
-typedef void * WXHICON;
-typedef void * WXHFONT;
-typedef void * WXHMENU;
-typedef void * WXHPEN;
-typedef void * WXHBRUSH;
-typedef void * WXHPALETTE;
-typedef void * WXHCURSOR;
-typedef void * WXHRGN;
-typedef void * WXHACCEL;
-typedef void * WXHINSTANCE;
-typedef void * WXHBITMAP;
-typedef void * WXHIMAGELIST;
-typedef void * WXHGLOBAL;
-typedef void * WXHDC;
-typedef unsigned int WXUINT;
-typedef unsigned long WXDWORD;
-typedef unsigned short WXWORD;
-
-typedef unsigned long WXCOLORREF;
-typedef struct tagMSG WXMSG;
-
-typedef WXHWND WXWINHANDLE; /* WinHandle of PalmOS */
-typedef WXWINHANDLE WXWidget;
-
-typedef void * WXFORMPTR;
-typedef void * WXEVENTPTR;
-typedef void * WXRECTANGLEPTR;
-
-#endif /* __WXPALMOS__ */
-
-
/* ABX: check __WIN32__ instead of __WXMSW__ for the same MSWBase in any Win32 port */
#if defined(__WIN32__)
#if defined(__WXUNIVERSAL__) && !defined(__WXMICROWIN__)
#include "wx/univ/dialog.h"
#else
- #if defined(__WXPALMOS__)
- #include "wx/palmos/dialog.h"
- #elif defined(__WXMSW__)
+ #if defined(__WXMSW__)
#include "wx/msw/dialog.h"
#elif defined(__WXMOTIF__)
#include "wx/motif/dialog.h"
defined(__WXX11__) || \
defined(__WXMGL__) || \
defined(__WXCOCOA__) || \
- defined(__WXPALMOS__) || \
defined(__WXPM__)
#include "wx/generic/dirdlgg.h" // Other ports use generic implementation
#define wxDirDialog wxGenericDirDialog
struct WXDLLIMPEXP_CORE wxNativeEncodingInfo
{
wxString facename; // may be empty meaning "any"
-#ifndef __WXPALMOS__
wxFontEncoding encoding; // so that we know what this struct represents
#if defined(__WXMSW__) || \
#else
#error "Unsupported toolkit"
#endif
-#endif // !__WXPALMOS__
// this struct is saved in config by wxFontMapper, so it should know to
// serialise itself (implemented in platform-specific code)
bool FromString(const wxString& s);
// integration with MFC) but currently this is not done for all ports yet (e.g.
// wxX11) so fall back to the old wxGUIEventLoop definition below for them
-#if defined(__WXPALMOS__)
- #include "wx/palmos/evtloop.h"
-#elif defined(__WXMSW__)
+#if defined(__WXMSW__)
// this header defines both console and GUI loops for MSW
#include "wx/msw/evtloop.h"
#elif defined(__WXOSX__)
#include "wx/cocoa/filedlg.h"
#elif defined(__WXPM__)
#include "wx/os2/filedlg.h"
-#elif defined(__WXPALMOS__)
- #define wxHAS_GENERIC_FILEDIALOG
- #include "wx/generic/filedlgg.h"
#endif
#endif // wxUSE_FILEDLG
#include "wx/list.h"
#include "wx/arrstr.h"
-#ifndef __WXPALMOS5__
#ifdef __WXWINCE__
#include "wx/msw/wince/time.h"
#include "wx/msw/private.h"
#include <unix.h>
#endif
#endif
-#endif // !__WXPALMOS5__
#ifdef __OS2__
// need to check for __OS2__ first since currently both
#include <dir.h>
#endif
-#ifndef __WXPALMOS5__
#ifndef __WXWINCE__
#include <fcntl.h> // O_RDONLY &c
#endif
-#endif // !__WXPALMOS5__
+
// ----------------------------------------------------------------------------
// constants
// ----------------------------------------------------------------------------
typedef long off_t;
#elif defined(__MWERKS__) && !defined(__INTEL__) && !defined(__MACH__)
typedef long off_t;
-#elif defined(__WXPALMOS5__)
- typedef long off_t;
#endif
enum wxSeekMode
#define wxCRT_RmDir _wrmdir
#define wxCRT_Stat _wstat
#define wxStructStat struct _stat
-#elif (defined(__WXMSW__) || defined(__OS2__)) && !defined(__WXPALMOS__) && \
+#elif (defined(__WXMSW__) || defined(__OS2__)) && \
( \
defined(__VISUALC__) || \
defined(__MINGW64__) || \
// private defines, undefine so that nobody gets tempted to use
#undef wxHAS_HUGE_FILES
#undef wxHAS_HUGE_STDIO_FILES
-#elif defined (__WXPALMOS__)
- typedef off_t wxFileOffset;
-#ifdef _LARGE_FILES
- #define wxFileOffsetFmtSpec wxLongLongFmtSpec
- wxCOMPILE_TIME_ASSERT( sizeof(off_t) == sizeof(wxLongLong_t), BadFileSizeType );
- // wxFile is present and supports large files
- #ifdef wxUSE_FILE
- #define wxHAS_LARGE_FILES
- #endif
- // wxFFile is present and supports large files
- #if SIZEOF_LONG == 8 || defined HAVE_FSEEKO
- #define wxHAS_LARGE_FFILES
- #endif
-#else
- #define wxFileOffsetFmtSpec wxT("")
-#endif
- #define wxClose close
- #define wxRead ::read
- #define wxWrite ::write
- #define wxLseek lseek
- #define wxSeek lseek
- #define wxFsync fsync
- #define wxEof eof
-
- #define wxCRT_MkDir mkdir
- #define wxCRT_RmDir rmdir
-
- #define wxTell(fd) lseek(fd, 0, SEEK_CUR)
-
- #define wxStructStat struct stat
-
- #define wxCRT_Open open
- #define wxCRT_Stat svfs_stat
- #define wxCRT_Lstat lstat
- #define wxCRT_Access access
-
- #define wxHAS_NATIVE_LSTAT
#else // Unix or Windows using unknown compiler, assume POSIX supported
typedef off_t wxFileOffset;
#ifdef HAVE_LARGEFILE_SUPPORT
// CYGWIN also uses UNIX settings
#define wxFILE_SEP_PATH wxFILE_SEP_PATH_UNIX
#define wxPATH_SEP wxPATH_SEP_UNIX
-#elif defined(__WXPALMOS__)
- #define wxFILE_SEP_PATH wxFILE_SEP_PATH_UNIX
- #define wxPATH_SEP wxPATH_SEP_UNIX
#elif defined(__MAC__)
#define wxFILE_SEP_PATH wxFILE_SEP_PATH_MAC
#define wxPATH_SEP wxPATH_SEP_MAC
wxFont Scaled(float x) const
// include the real class declaration
-#if defined(__WXPALMOS__)
- #include "wx/palmos/font.h"
-#elif defined(__WXMSW__)
+#if defined(__WXMSW__)
#include "wx/msw/font.h"
#elif defined(__WXMOTIF__)
#include "wx/motif/font.h"
#if defined(__WXUNIVERSAL__) // && !defined(__WXMICROWIN__)
#include "wx/univ/frame.h"
#else // !__WXUNIVERSAL__
- #if defined(__WXPALMOS__)
- #include "wx/palmos/frame.h"
- #elif defined(__WXMSW__)
+ #if defined(__WXMSW__)
#include "wx/msw/frame.h"
#elif defined(__WXGTK20__)
#include "wx/gtk/frame.h"
// because it's still widely used)
bool Ok() const { return IsOk(); }
-#if defined(__WXMSW__) || defined(__WXPM__) || defined(__WXPALMOS__)
+#if defined(__WXMSW__) || defined(__WXPM__)
// Creates the resource
virtual bool RealizeResource() { return false; }
#include "wx/msw/wince/helpwce.h"
#define wxHelpController wxWinceHelpController
-#elif defined(__WXPALMOS__)
- #include "wx/palmos/help.h"
-
- #define wxHelpController wxPalmHelpController
#elif defined(__WXMSW__)
#include "wx/msw/helpchm.h"
// constant defines the default argument value for wxIcon ctor and wxIcon::LoadFile()
// functions.
-#if defined(__WXPALMOS__)
- #define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_XPM
- #include "wx/generic/icon.h"
-#elif defined(__WXMSW__)
+#if defined(__WXMSW__)
#define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_ICO_RESOURCE
#include "wx/msw/icon.h"
#elif defined(__WXMOTIF__)
#define wxIMAGELIST_DRAW_SELECTED 0x0004
#define wxIMAGELIST_DRAW_FOCUSED 0x0008
-#if defined(__WXMSW__) || defined(__WXMAC__) || defined(__WXPALMOS__)
+#if defined(__WXMSW__) || defined(__WXMAC__)
#define wxHAS_NATIVE_IMAGELIST
#endif
#include "wx/msw/imaglist.h"
#elif defined(__WXMAC__)
#include "wx/osx/imaglist.h"
-#elif defined(__WXPALMOS__)
- #include "wx/palmos/imaglist.h"
#endif
#endif // _WX_IMAGLIST_H_BASE_
#include "wx/arrstr.h"
-#ifndef __WXPALMOS5__
#ifndef __WXWINCE__
#include <time.h> // for time_t
#endif
-#endif // ! __WXPALMOS5__
#include "wx/dynarray.h"
#include "wx/hashmap.h"
#else // !wxUSE_BASE_CLASSES_ONLY
#if defined(__WXUNIVERSAL__)
#include "wx/univ/menu.h"
-#elif defined(__WXPALMOS__)
- #include "wx/palmos/menu.h"
#elif defined(__WXMSW__)
#include "wx/msw/menu.h"
#elif defined(__WXMOTIF__)
#else // !wxUSE_BASE_CLASSES_ONLY
#if defined(__WXUNIVERSAL__)
#include "wx/univ/menuitem.h"
-#elif defined(__WXPALMOS__)
- #include "wx/palmos/menuitem.h"
#elif defined(__WXMSW__)
#include "wx/msw/menuitem.h"
#elif defined(__WXMOTIF__)
#if defined(__WXMSW__)
#if wxUSE_ENH_METAFILE
- #if defined(__WXPALMOS__)
- #include "wx/palmos/enhmeta.h"
- #else
- #include "wx/msw/enhmeta.h"
- #endif
+ #include "wx/msw/enhmeta.h"
#if wxUSE_WIN_METAFILES_ALWAYS
// use normal metafiles as well
#define wxMETAFILE_IS_ENH
#endif // wxUSE_WIN_METAFILES_ALWAYS
#else // !wxUSE_ENH_METAFILE
- #if defined(__WXPALMOS__)
- #include "wx/palmos/metafile.h"
- #else
- #include "wx/msw/metafile.h"
- #endif
+ #include "wx/msw/metafile.h"
#endif
#elif defined(__WXPM__)
#include "wx/os2/metafile.h"
#if wxUSE_MINIFRAME
-#if defined(__WXPALMOS__)
-#include "wx/palmos/minifram.h"
-#elif defined(__WXMSW__)
+#if defined(__WXMSW__)
#include "wx/msw/minifram.h"
#elif defined(__WXMOTIF__)
#include "wx/motif/minifram.h"
#define wxMessageDialog wxGenericMessageDialog
#elif defined(__WXCOCOA__)
#include "wx/cocoa/msgdlg.h"
-#elif defined(__WXPALMOS__)
- #include "wx/palmos/msgdlg.h"
#elif defined(__WXMSW__)
#include "wx/msw/msgdlg.h"
#elif defined(__WXMOTIF__)
virtual int GetColoursCount() const { wxFAIL_MSG( wxT("not implemented") ); return 0; }
};
-#if defined(__WXPALMOS__)
- #include "wx/palmos/palette.h"
-#elif defined(__WXMSW__)
+#if defined(__WXMSW__)
#include "wx/msw/palette.h"
#elif defined(__WXX11__) || defined(__WXMOTIF__)
#include "wx/x11/palette.h"
+++ /dev/null
-// Header generated by Constructor for Palm OS (R) 1.9
-//
-// Generated at 3:29:52 PM on Tuesday, June 24, 2003
-//
-// Generated for file: BasicApp.xrd
-//
-// THIS IS AN AUTOMATICALLY GENERATED HEADER FILE
-// DO NOT EDIT - CHANGES MADE TO THIS FILE WILL BE LOST
-//
-// Palm App Name: "BasicApp"
-//
-// Palm App Version: "1.0a1"
-
-
-// Resource: tFRM 1000
-#define MainForm 1000 //(Left Origin = 0, Top Origin = 0, Width = 160, Height = 160, Usable = 1, Modal = 0, Save Behind = 0, Help ID = 0, Menu Bar ID = 1000, Default Button ID = 0)
-#define MainContentLabel 1603 //(Left Origin = 32, Top Origin = 50, Usable = 1, Font = Bold)
-#define MainForm2Button 1001 //(Left Origin = 1, Top Origin = 147, Width = 39, Height = 12, Usable = 1, Anchor Left = 1, Frame = 1, Non-bold Frame = 1, Font = Standard)
-#define MainDialogButton 1002 //(Left Origin = 46, Top Origin = 147, Width = 39, Height = 12, Usable = 1, Anchor Left = 1, Frame = 1, Non-bold Frame = 1, Font = Standard)
-
-// Resource: tFRM 1200
-#define DialogForm 1200 //(Left Origin = 2, Top Origin = 58, Width = 156, Height = 100, Usable = 1, Modal = 1, Save Behind = 1, Help ID = 1200, Menu Bar ID = 0, Default Button ID = 1202)
-#define DialogOKButton 1201 //(Left Origin = 5, Top Origin = 83, Width = 36, Height = 12, Usable = 1, Anchor Left = 1, Frame = 1, Non-bold Frame = 1, Font = Standard)
-#define DialogCancelButton 1202 //(Left Origin = 47, Top Origin = 83, Width = 36, Height = 12, Usable = 1, Anchor Left = 1, Frame = 1, Non-bold Frame = 1, Font = Standard)
-#define DialogContentLabel 1203 //(Left Origin = 10, Top Origin = 23, Usable = 1, Font = Bold)
-
-// Resource: tFRM 1300
-#define Form2Form 1300 //(Left Origin = 0, Top Origin = 0, Width = 160, Height = 160, Usable = 1, Modal = 0, Save Behind = 0, Help ID = 0, Menu Bar ID = 0, Default Button ID = 0)
-#define Form2DoneButton 1301 //(Left Origin = 1, Top Origin = 147, Width = 36, Height = 12, Usable = 1, Anchor Left = 1, Frame = 1, Non-bold Frame = 1, Font = Standard)
-
-// Resource: tFRM 2000
-#define AboutForm 2000 //(Left Origin = 2, Top Origin = 2, Width = 156, Height = 156, Usable = 1, Modal = 1, Save Behind = 1, Help ID = 0, Menu Bar ID = 0, Default Button ID = 0)
-#define AboutTitleLabel 2002 //(Left Origin = 54, Top Origin = 25, Usable = 1, Font = Bold 12)
-#define AboutText1Label 2003 //(Left Origin = 23, Top Origin = 54, Usable = 1, Font = Standard)
-#define AboutText2Label 2004 //(Left Origin = 50, Top Origin = 104, Usable = 1, Font = Bold)
-#define AboutOKButton 2005 //(Left Origin = 58, Top Origin = 139, Width = 40, Height = 12, Usable = 1, Anchor Left = 1, Frame = 1, Non-bold Frame = 1, Font = Standard)
-
-
-// Resource: MBAR 1000
-#define MainFormMenuBar 1000
-
-
-// Resource: MENU 1000
-#define MainOptionsMenu 1000
-#define MainOptionsAboutBasicApp 1000
-
-
-// Resource: tSTR 1200
-#define HelpID1200String 1200 // "Placeholder text for the modal dialog Tips button."
-
-
-// Resource: PICT 1000
-#define Largeicon1bitBitmap 1000
-
-// Resource: PICT 1001
-#define Largeicon2bitBitmap 1001
-
-// Resource: PICT 1002
-#define Largeicon8bitBitmap 1002
-
-// Resource: PICT 1003
-#define LargeiconX21bitBitmap 1003
-
-// Resource: PICT 1004
-#define LargeiconX22bitBitmap 1004
-
-// Resource: PICT 1005
-#define LargeiconX28bitBitmap 1005
-
-// Resource: PICT 1006
-#define Smallicon1bitBitmap 1006
-
-// Resource: PICT 1007
-#define Smallicon2bitBitmap 1007
-
-// Resource: PICT 1008
-#define Smallicon8bitBitmap 1008
-
-// Resource: PICT 1009
-#define SmalliconX21bitBitmap 1009
-
-// Resource: PICT 1010
-#define SmalliconX22bitBitmap 1010
-
-// Resource: PICT 1011
-#define SmalliconX28bitBitmap 1011
-
-
-// Resource: taif 1000
-#define Largeicons12and8bitsAppIconFamily 1000
-
-// Resource: taif 1001
-#define Smallicons12and8bitsAppIconFamily 1001
-
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-
-<PALMOS_RESOURCE_FILE>
-
- <APP_VERSION_RESOURCE RESOURCE_ID="1000">
- <TEXT> "1.0" </TEXT>
- </APP_VERSION_RESOURCE>
-
-</PALMOS_RESOURCE_FILE>
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/accel.h
-// Purpose: wxAcceleratorTable class
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_ACCEL_H_
-#define _WX_ACCEL_H_
-
-// ----------------------------------------------------------------------------
-// the accel table has all accelerators for a given window or menu
-// ----------------------------------------------------------------------------
-
-class WXDLLIMPEXP_CORE wxAcceleratorTable : public wxObject
-{
-public:
- // default ctor
- wxAcceleratorTable();
-
- // load from .rc resource (Windows specific)
- wxAcceleratorTable(const wxString& resource);
-
- // initialize from array
- wxAcceleratorTable(int n, const wxAcceleratorEntry entries[]);
-
- virtual ~wxAcceleratorTable();
-
- bool Ok() const { return IsOk(); }
- bool IsOk() const;
- void SetHACCEL(WXHACCEL hAccel);
- WXHACCEL GetHACCEL() const;
-
- // translate the accelerator, return true if done
- bool Translate(wxWindow *window, WXMSG *msg) const;
-
-private:
- DECLARE_DYNAMIC_CLASS(wxAcceleratorTable)
-};
-
-#endif
- // _WX_ACCEL_H_
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/app.h
-// Purpose: wxApp class
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/17/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_APP_H_
-#define _WX_APP_H_
-
-#include "wx/event.h"
-#include "wx/icon.h"
-
-class WXDLLIMPEXP_FWD_CORE wxFrame;
-class WXDLLIMPEXP_FWD_CORE wxWindow;
-class WXDLLIMPEXP_FWD_CORE wxApp;
-class WXDLLIMPEXP_FWD_CORE wxKeyEvent;
-class WXDLLIMPEXP_FWD_BASE wxLog;
-
-// Represents the application. Derive OnInit and declare
-// a new App object to start application
-class WXDLLIMPEXP_CORE wxApp : public wxAppBase
-{
- DECLARE_DYNAMIC_CLASS(wxApp)
-
-public:
- wxApp();
- virtual ~wxApp();
-
- // override base class (pure) virtuals
- virtual bool Initialize(int& argc, wxChar **argv);
- virtual void CleanUp();
-
- virtual void WakeUpIdle();
-
- virtual void SetPrintMode(int mode) { m_printMode = mode; }
- virtual int GetPrintMode() const { return m_printMode; }
-
- // implementation only
- void OnEndSession(wxCloseEvent& event);
- void OnQueryEndSession(wxCloseEvent& event);
-
-#if wxUSE_EXCEPTIONS
- virtual bool OnExceptionInMainLoop();
-#endif // wxUSE_EXCEPTIONS
-
-protected:
- int m_printMode; // wxPRINT_WINDOWS, wxPRINT_POSTSCRIPT
-
-public:
- // Implementation
- static bool RegisterWindowClasses();
- static bool UnregisterWindowClasses();
-
-#if wxUSE_RICHEDIT
- // initialize the richedit DLL of (at least) given version, return true if
- // ok (Win95 has version 1, Win98/NT4 has 1 and 2, W2K has 3)
- static bool InitRichEdit(int version = 2);
-#endif // wxUSE_RICHEDIT
-
- // returns 400, 470, 471 for comctl32.dll 4.00, 4.70, 4.71 or 0 if it
- // wasn't found at all
- static int GetComCtl32Version();
-
- // the SW_XXX value to be used for the frames opened by the application
- // (currently seems unused which is a bug -- TODO)
- static int m_nCmdShow;
-
-protected:
- DECLARE_EVENT_TABLE()
- wxDECLARE_NO_COPY_CLASS(wxApp);
-};
-
-// ----------------------------------------------------------------------------
-// Palm OS specific wxEntry() overload and IMPLEMENT_WXWIN_MAIN definition
-// ----------------------------------------------------------------------------
-
-#ifndef SW_SHOWNORMAL
- #define SW_SHOWNORMAL 1
-#endif
-
-extern WXDLLIMPEXP_CORE int wxEntry();
-
-#define wxIMPLEMENT_WXWIN_MAIN \
- \
- extern "C" { \
- \
- uint32_t PilotMain(uint16_t cmd, MemPtr cmdPBP, uint16_t launchFlags) \
- { \
- switch (cmd) { \
- case 0 /* sysAppLaunchCmdNormalLaunch */ : \
- wxEntry(); \
- break; \
- default: \
- break; \
- } \
- return 0 /* errNone */ ; \
- } \
- \
- }
-
-#endif // _WX_APP_H_
-
+++ /dev/null
-///////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/apptbase.h
-// Purpose: declaration of wxAppTraits for Palm OS
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-///////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_PALMOS_APPTBASE_H_
-#define _WX_PALMOS_APPTBASE_H_
-
-// ----------------------------------------------------------------------------
-// wxAppTraits
-// ----------------------------------------------------------------------------
-
-class WXDLLIMPEXP_BASE wxAppTraits : public wxAppTraitsBase
-{
-public:
- // wxExecute() support methods
- // ---------------------------
-
- // called before starting to wait for the child termination, may return
- // some opaque data which will be passed later to AfterChildWaitLoop()
- virtual void *BeforeChildWaitLoop() = 0;
-
- // called after starting to wait for the child termination, the parameter
- // is the return value of BeforeChildWaitLoop()
- virtual void AfterChildWaitLoop(void *data) = 0;
-
-
-#if wxUSE_THREADS
- // wxThread helpers
- // ----------------
-
- // process a message while waiting for a(nother) thread, should return
- // false if and only if we have to exit the application
- virtual bool DoMessageFromThreadWait() = 0;
-#endif // wxUSE_THREADS
-};
-
-#endif // _WX_PALMOS_APPTBASE_H_
-
+++ /dev/null
-///////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/apptrait.h
-// Purpose: class implementing wxAppTraits for Palm OS
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by: Yunhui Fu
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-///////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_PALM_APPTRAIT_H_
-#define _WX_PALM_APPTRAIT_H_
-
-#if wxUSE_TIMER
-#include "wx/palmos/private/timer.h" // wxPalmOSTimerImpl
-#endif // wxUSE_TIMER
-
-// ----------------------------------------------------------------------------
-// wxGUI/ConsoleAppTraits: must derive from wxAppTraits, not wxAppTraitsBase
-// ----------------------------------------------------------------------------
-
-class WXDLLIMPEXP_BASE wxConsoleAppTraits : public wxConsoleAppTraitsBase
-{
-public:
-#if wxUSE_CONSOLE_EVENTLOOP
- virtual wxEventLoopBase *CreateEventLoop();
-#endif // wxUSE_CONSOLE_EVENTLOOP
- virtual void *BeforeChildWaitLoop();
- virtual void AfterChildWaitLoop(void *data);
-#if wxUSE_TIMER
- virtual wxTimerImpl *CreateTimerImpl(wxTimer *timer) { return new wxPalmOSTimerImpl(timer); }
-#endif // wxUSE_TIMER
-#if wxUSE_THREADS
- virtual bool DoMessageFromThreadWait();
- virtual WXDWORD WaitForThread(WXHANDLE hThread);
-#endif // wxUSE_THREADS
-};
-
-#if wxUSE_GUI
-
-class WXDLLIMPEXP_CORE wxGUIAppTraits : public wxGUIAppTraitsBase
-{
-public:
- virtual wxEventLoopBase *CreateEventLoop();
- virtual void *BeforeChildWaitLoop();
- virtual void AfterChildWaitLoop(void *data);
-#if wxUSE_TIMER
- // there is no wxTimer support yet
- virtual wxTimerImpl *CreateTimerImpl(wxTimer *timer);
-#endif // wxUSE_TIMER
-#if wxUSE_THREADS
- virtual bool DoMessageFromThreadWait();
-#endif // wxUSE_THREADS
- virtual wxPortId GetToolkitVersion(int *majVer = NULL, int *minVer = NULL) const;
-};
-
-#endif // wxUSE_GUI
-
-#endif // _WX_PALM_APPTRAIT_H_
-
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/bitmap.h
-// Purpose: wxBitmap class
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_BITMAP_H_
-#define _WX_BITMAP_H_
-
-#include "wx/palmos/gdiimage.h"
-#include "wx/gdicmn.h"
-#include "wx/palette.h"
-
-class WXDLLIMPEXP_FWD_CORE wxBitmap;
-class WXDLLIMPEXP_FWD_CORE wxBitmapHandler;
-class WXDLLIMPEXP_FWD_CORE wxBitmapRefData;
-class WXDLLIMPEXP_FWD_CORE wxControl;
-class WXDLLIMPEXP_FWD_CORE wxCursor;
-class WXDLLIMPEXP_FWD_CORE wxDC;
-#if wxUSE_WXDIB
-class WXDLLIMPEXP_FWD_CORE wxDIB;
-#endif
-class WXDLLIMPEXP_FWD_CORE wxIcon;
-class WXDLLIMPEXP_FWD_CORE wxImage;
-class WXDLLIMPEXP_FWD_CORE wxMask;
-class WXDLLIMPEXP_FWD_CORE wxPalette;
-class WXDLLIMPEXP_FWD_CORE wxPixelDataBase;
-
-// ----------------------------------------------------------------------------
-// wxBitmap: a mono or colour bitmap
-// ----------------------------------------------------------------------------
-
-class WXDLLIMPEXP_CORE wxBitmap : public wxGDIImage
-{
-public:
- // default ctor creates an invalid bitmap, you must Create() it later
- wxBitmap() { Init(); }
-
- // Initialize with raw data
- wxBitmap(const char bits[], int width, int height, int depth = 1);
-
- // Initialize with XPM data
- wxBitmap(const char* const* data);
-
- // Load a file or resource
- wxBitmap(const wxString& name, wxBitmapType type = wxBITMAP_DEFAULT_TYPE);
-
- // New constructor for generalised creation from data
- wxBitmap(const void* data, long type, int width, int height, int depth = 1);
-
- // Create a new, uninitialized bitmap of the given size and depth (if it
- // is omitted, will create a bitmap compatible with the display)
- //
- // NB: this ctor will create a DIB for 24 and 32bpp bitmaps, use ctor
- // taking a DC argument if you want to force using DDB in this case
- wxBitmap(int width, int height, int depth = -1) { /*TODO*/ }
- wxBitmap(const wxSize& sz, int depth = -1) { /*TODO*/ }
-
- // Create a bitmap compatible with the given DC
- wxBitmap(int width, int height, const wxDC& dc);
-
-#if wxUSE_IMAGE && wxUSE_WXDIB
- // Convert from wxImage
- wxBitmap(const wxImage& image, int depth = -1)
- { (void)CreateFromImage(image, depth); }
-
- // Create a DDB compatible with the given DC from wxImage
- wxBitmap(const wxImage& image, const wxDC& dc)
- { (void)CreateFromImage(image, dc); }
-#endif // wxUSE_IMAGE
-
- // we must have this, otherwise icons are silently copied into bitmaps using
- // the copy ctor but the resulting bitmap is invalid!
- wxBitmap(const wxIcon& icon) { Init(); CopyFromIcon(icon); }
-
- wxBitmap& operator=(const wxIcon& icon)
- {
- (void)CopyFromIcon(icon);
-
- return *this;
- }
-
- wxBitmap& operator=(const wxCursor& cursor)
- {
- (void)CopyFromCursor(cursor);
-
- return *this;
- }
-
- virtual ~wxBitmap() {}
-
-#if wxUSE_IMAGE && wxUSE_WXDIB
- wxImage ConvertToImage() const;
- wxBitmap ConvertToDisabled(unsigned char brightness = 255) const;
-#endif // wxUSE_IMAGE
-
- // get the given part of bitmap
- wxBitmap GetSubBitmap( const wxRect& rect ) const;
-
- // copies the contents and mask of the given (colour) icon to the bitmap
- bool CopyFromIcon(const wxIcon& icon);
-
- // copies the contents and mask of the given cursor to the bitmap
- bool CopyFromCursor(const wxCursor& cursor);
-
-#if wxUSE_WXDIB
- // copies from a device independent bitmap
- bool CopyFromDIB(const wxDIB& dib);
-#endif
-
- virtual bool Create(int width, int height, int depth = wxBITMAP_SCREEN_DEPTH);
- virtual bool Create(const wxSize& sz, int depth = wxBITMAP_SCREEN_DEPTH)
- { return Create(sz.GetWidth(), sz.GetHeight(), depth); }
-
- virtual bool Create(int width, int height, const wxDC& dc);
- virtual bool Create(const void* data, long type, int width, int height, int depth = 1);
- virtual bool LoadFile(const wxString& name, long type = wxBITMAP_DEFAULT_TYPE);
- virtual bool SaveFile(const wxString& name, int type, const wxPalette *cmap = NULL);
-
- wxBitmapRefData *GetBitmapData() const
- { return (wxBitmapRefData *)m_refData; }
-
- // raw bitmap access support functions
- void *GetRawData(wxPixelDataBase& data, int bpp);
- void UngetRawData(wxPixelDataBase& data);
-
-#if wxUSE_PALETTE
- wxPalette* GetPalette() const;
- void SetPalette(const wxPalette& palette);
-#endif // wxUSE_PALETTE
-
- wxMask *GetMask() const;
- void SetMask(wxMask *mask);
-
- // these functions are internal and shouldn't be used, they risk to
- // disappear in the future
- bool HasAlpha() const;
-
- // implementation only from now on
- // -------------------------------
-
-public:
- void SetHBITMAP(WXHBITMAP bmp) { SetHandle((WXHANDLE)bmp); }
- WXHBITMAP GetHBITMAP() const { return (WXHBITMAP)GetHandle(); }
-
-protected:
- // common part of all ctors
- void Init();
-
- virtual wxGDIImageRefData *CreateData() const;
-
- // creates an uninitialized bitmap, called from Create()s above
- bool DoCreate(int w, int h, int depth, WXHDC hdc);
-
-#if wxUSE_IMAGE && wxUSE_WXDIB
- // creates the bitmap from wxImage, supposed to be called from ctor
- bool CreateFromImage(const wxImage& image, int depth);
-
- // creates a DDB from wxImage, supposed to be called from ctor
- bool CreateFromImage(const wxImage& image, const wxDC& dc);
-
- // common part of the 2 methods above (hdc may be 0)
- bool CreateFromImage(const wxImage& image, int depth, WXHDC hdc);
-#endif // wxUSE_IMAGE
-
-private:
- DECLARE_DYNAMIC_CLASS(wxBitmap)
-};
-
-// ----------------------------------------------------------------------------
-// wxMask: a mono bitmap used for drawing bitmaps transparently.
-// ----------------------------------------------------------------------------
-
-class WXDLLIMPEXP_CORE wxMask : public wxObject
-{
-public:
- wxMask();
-
- // Construct a mask from a bitmap and a colour indicating the transparent
- // area
- wxMask(const wxBitmap& bitmap, const wxColour& colour);
-
- // Construct a mask from a bitmap and a palette index indicating the
- // transparent area
- wxMask(const wxBitmap& bitmap, int paletteIndex);
-
- // Construct a mask from a mono bitmap (copies the bitmap).
- wxMask(const wxBitmap& bitmap);
-
- // construct a mask from the givne bitmap handle
- wxMask(WXHBITMAP hbmp) { m_maskBitmap = hbmp; }
-
- virtual ~wxMask();
-
- bool Create(const wxBitmap& bitmap, const wxColour& colour);
- bool Create(const wxBitmap& bitmap, int paletteIndex);
- bool Create(const wxBitmap& bitmap);
-
- // Implementation
- WXHBITMAP GetMaskBitmap() const { return m_maskBitmap; }
- void SetMaskBitmap(WXHBITMAP bmp) { m_maskBitmap = bmp; }
-
-protected:
- WXHBITMAP m_maskBitmap;
-
- DECLARE_DYNAMIC_CLASS(wxMask)
-};
-
-// ----------------------------------------------------------------------------
-// wxBitmapHandler is a class which knows how to load/save bitmaps to/from file
-// ----------------------------------------------------------------------------
-
-class WXDLLIMPEXP_CORE wxBitmapHandler : public wxGDIImageHandler
-{
-public:
- wxBitmapHandler() { m_type = wxBITMAP_TYPE_INVALID; }
- wxBitmapHandler(const wxString& name, const wxString& ext, long type)
- : wxGDIImageHandler(name, ext, type)
- {
- }
-
- // keep wxBitmapHandler derived from wxGDIImageHandler compatible with the
- // old class which worked only with bitmaps
- virtual bool Create(wxBitmap *bitmap,
- const void* data,
- long flags,
- int width, int height, int depth = 1);
- virtual bool LoadFile(wxBitmap *bitmap,
- const wxString& name,
- long flags,
- int desiredWidth, int desiredHeight);
- virtual bool SaveFile(wxBitmap *bitmap,
- const wxString& name,
- int type,
- const wxPalette *palette = NULL);
-
- virtual bool Create(wxGDIImage *image,
- const void* data,
- long flags,
- int width, int height, int depth = 1);
- virtual bool Load(wxGDIImage *image,
- const wxString& name,
- long flags,
- int desiredWidth, int desiredHeight);
- virtual bool Save(wxGDIImage *image,
- const wxString& name,
- int type);
-
-private:
- DECLARE_DYNAMIC_CLASS(wxBitmapHandler)
-};
-
-#endif
- // _WX_BITMAP_H_
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/bmpbuttn.h
-// Purpose: wxBitmapButton class
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_BMPBUTTN_H_
-#define _WX_BMPBUTTN_H_
-
-#include "wx/button.h"
-#include "wx/bitmap.h"
-
-#define wxDEFAULT_BUTTON_MARGIN 4
-
-class WXDLLIMPEXP_CORE wxBitmapButton: public wxBitmapButtonBase
-{
-public:
- wxBitmapButton()
- { m_marginX = m_marginY = wxDEFAULT_BUTTON_MARGIN; }
- wxBitmapButton(wxWindow *parent,
- wxWindowID id,
- const wxBitmap& bitmap,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = wxBU_AUTODRAW,
- const wxValidator& validator = wxDefaultValidator,
- const wxString& name = wxButtonNameStr)
- {
- Create(parent, id, bitmap, pos, size, style, validator, name);
- }
-
- bool Create(wxWindow *parent,
- wxWindowID id,
- const wxBitmap& bitmap,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = wxBU_AUTODRAW,
- const wxValidator& validator = wxDefaultValidator,
- const wxString& name = wxButtonNameStr);
-
- // Implementation
- virtual void DrawFace( WXHDC dc, int left, int top, int right, int bottom, bool sel );
- virtual void DrawButtonFocus( WXHDC dc, int left, int top, int right, int bottom, bool sel );
- virtual void DrawButtonDisable( WXHDC dc, int left, int top, int right, int bottom, bool with_marg );
-
-protected:
- virtual wxSize DoGetBestSize() const;
-
-private:
- DECLARE_DYNAMIC_CLASS_NO_COPY(wxBitmapButton)
-};
-
-#endif
- // _WX_BMPBUTTN_H_
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/brush.h
-// Purpose: wxBrush class
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_BRUSH_H_
-#define _WX_BRUSH_H_
-
-#include "wx/gdicmn.h"
-#include "wx/gdiobj.h"
-#include "wx/bitmap.h"
-
-class WXDLLIMPEXP_FWD_CORE wxBrush;
-
-// ----------------------------------------------------------------------------
-// wxBrush
-// ----------------------------------------------------------------------------
-
-class WXDLLIMPEXP_CORE wxBrush : public wxBrushBase
-{
-public:
- wxBrush();
- wxBrush(const wxColour& col, wxBrushStyle style = wxBRUSHSTYLE_SOLID);
-#if FUTURE_WXWIN_COMPATIBILITY_3_0
- wxDEPRECATED_FUTURE( wxBrush(const wxColour& col, int style) );
-#endif
- wxBrush(const wxBitmap& stipple);
- virtual ~wxBrush();
-
- virtual void SetColour(const wxColour& col);
- virtual void SetColour(unsigned char r, unsigned char g, unsigned char b);
- virtual void SetStyle(wxBrushStyle style);
- virtual void SetStipple(const wxBitmap& stipple);
-
- bool operator==(const wxBrush& brush) const;
- bool operator!=(const wxBrush& brush) const { return !(*this == brush); }
-
- wxColour GetColour() const;
- wxBrushStyle GetStyle() const;
- wxBitmap *GetStipple() const;
-
-#if FUTURE_WXWIN_COMPATIBILITY_3_0
- wxDEPRECATED_FUTURE( void SetStyle(int style) )
- { SetStyle((wxBrushStyle)style); }
-#endif
-
- // return the HBRUSH for this brush
- virtual WXHANDLE GetResourceHandle() const;
-
-protected:
- virtual wxGDIRefData *CreateGDIRefData() const;
- virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
-
-private:
- DECLARE_DYNAMIC_CLASS(wxBrush)
-};
-
-#endif // _WX_BRUSH_H_
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/button.h
-// Purpose: wxButton class
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by: Wlodzimierz ABX Skiba - native wxButton implementation
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne, Wlodzimierz Skiba
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_BUTTON_H_
-#define _WX_BUTTON_H_
-
-// ----------------------------------------------------------------------------
-// Pushbutton
-// ----------------------------------------------------------------------------
-
-class WXDLLIMPEXP_CORE wxButton : public wxButtonBase
-{
-public:
- wxButton() { }
- wxButton(wxWindow *parent,
- wxWindowID id,
- const wxString& label = wxEmptyString,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = 0,
- const wxValidator& validator = wxDefaultValidator,
- const wxString& name = wxButtonNameStr)
- {
- Create(parent, id, label, pos, size, style, validator, name);
- }
-
- bool Create(wxWindow *parent,
- wxWindowID id,
- const wxString& label,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = 0,
- const wxValidator& validator = wxDefaultValidator,
- const wxString& name = wxButtonNameStr);
-
- virtual ~wxButton();
-
- virtual wxWindow *SetDefault();
-
- // implementation from now on
- virtual void Command(wxCommandEvent& event);
-
- // send a notification event, return true if processed
- bool SendClickEvent();
-
-protected:
-
- // default button handling
- void SetTmpDefault();
- void UnsetTmpDefault();
-
- // set or unset BS_DEFPUSHBUTTON style
- static void SetDefaultStyle(wxButton *btn, bool on);
-
- // usually overridden base class virtuals
- virtual wxSize DoGetBestSize() const;
-
-private:
- DECLARE_DYNAMIC_CLASS_NO_COPY(wxButton)
-};
-
-#endif
- // _WX_BUTTON_H_
+++ /dev/null
-///////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/caret.h
-// Purpose: wxCaret class - the Palm OS implementation of wxCaret
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-///////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_CARET_H_
-#define _WX_CARET_H_
-
-class WXDLLIMPEXP_CORE wxCaret : public wxCaretBase
-{
-public:
- wxCaret() { Init(); }
- // create the caret of given (in pixels) width and height and associate
- // with the given window
- wxCaret(wxWindow *window, int width, int height)
- {
- Init();
-
- (void)Create(window, width, height);
- }
- // same as above
- wxCaret(wxWindowBase *window, const wxSize& size)
- {
- Init();
-
- (void)Create(window, size);
- }
-
- // process wxWindow notifications
- virtual void OnSetFocus();
- virtual void OnKillFocus();
-
-protected:
- void Init()
- {
- wxCaretBase::Init();
-
- m_hasCaret = FALSE;
- }
-
- // override base class virtuals
- virtual void DoMove();
- virtual void DoShow();
- virtual void DoHide();
- virtual void DoSize();
-
- // helper function which creates the system caret
- bool PalmOSCreateCaret();
-
-private:
- bool m_hasCaret;
-
- wxDECLARE_NO_COPY_CLASS(wxCaret);
-};
-
-#endif // _WX_CARET_H_
-
-
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/checkbox.h
-// Purpose: wxCheckBox class
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by: Wlodzimierz ABX Skiba - native implementation
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne, Wlodzimierz Skiba
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_CHECKBOX_H_
-#define _WX_CHECKBOX_H_
-
-// Checkbox item (single checkbox)
-class WXDLLIMPEXP_CORE wxCheckBox : public wxCheckBoxBase
-{
-public:
- wxCheckBox() { }
- wxCheckBox(wxWindow *parent,
- wxWindowID id,
- const wxString& label,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = 0,
- const wxValidator& validator = wxDefaultValidator,
- const wxString& name = wxCheckBoxNameStr)
- {
- Create(parent, id, label, pos, size, style, validator, name);
- }
-
- bool Create(wxWindow *parent,
- wxWindowID id,
- const wxString& label,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = 0,
- const wxValidator& validator = wxDefaultValidator,
- const wxString& name = wxCheckBoxNameStr);
-
- virtual void SetValue(bool value);
- virtual bool GetValue() const;
-
- virtual void Command(wxCommandEvent& event);
-
- // send a notification event, return true if processed
- bool SendClickEvent();
-
-protected:
- virtual wxSize DoGetBestSize() const;
-
- virtual void DoSet3StateValue(wxCheckBoxState value);
-
- virtual wxCheckBoxState DoGet3StateValue() const;
-
-private:
- DECLARE_DYNAMIC_CLASS_NO_COPY(wxCheckBox)
- // current state of the checkbox
- wxCheckBoxState m_state;
-};
-
-#endif
- // _WX_CHECKBOX_H_
+++ /dev/null
-///////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/checklst.h
-// Purpose: wxCheckListBox class - a listbox with checkable items
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-///////////////////////////////////////////////////////////////////////////////
-
-#ifndef __CHECKLST__H_
-#define __CHECKLST__H_
-
-#if !wxUSE_OWNER_DRAWN
- #error "wxCheckListBox class requires owner-drawn functionality."
-#endif
-
-class WXDLLIMPEXP_FWD_CORE wxOwnerDrawn;
-class WXDLLIMPEXP_FWD_CORE wxCheckListBoxItem; // fwd decl, defined in checklst.cpp
-
-class WXDLLIMPEXP_CORE wxCheckListBox : public wxCheckListBoxBase
-{
-public:
- // ctors
- wxCheckListBox();
- wxCheckListBox(wxWindow *parent, wxWindowID id,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- int nStrings = 0,
- const wxString choices[] = NULL,
- long style = 0,
- const wxValidator& validator = wxDefaultValidator,
- const wxString& name = wxListBoxNameStr);
- wxCheckListBox(wxWindow *parent, wxWindowID id,
- const wxPoint& pos,
- const wxSize& size,
- const wxArrayString& choices,
- long style = 0,
- const wxValidator& validator = wxDefaultValidator,
- const wxString& name = wxListBoxNameStr);
-
- bool Create(wxWindow *parent, wxWindowID id,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- int n = 0, const wxString choices[] = NULL,
- long style = 0,
- const wxValidator& validator = wxDefaultValidator,
- const wxString& name = wxListBoxNameStr);
- bool Create(wxWindow *parent, wxWindowID id,
- const wxPoint& pos,
- const wxSize& size,
- const wxArrayString& choices,
- long style = 0,
- const wxValidator& validator = wxDefaultValidator,
- const wxString& name = wxListBoxNameStr);
-
- // override base class virtuals
- virtual void Delete(unsigned int n);
-
- virtual bool SetFont( const wxFont &font );
-
- // items may be checked
- virtual bool IsChecked(unsigned int uiIndex) const;
- virtual void Check(unsigned int uiIndex, bool bCheck = true);
-
- // return the index of the item at this position or wxNOT_FOUND
- int HitTest(const wxPoint& pt) const { return DoHitTestItem(pt.x, pt.y); }
- int HitTest(wxCoord x, wxCoord y) const { return DoHitTestItem(x, y); }
-
- // accessors
- size_t GetItemHeight() const { return m_nItemHeight; }
-
-protected:
- // we create our items ourselves and they have non-standard size,
- // so we need to override these functions
- virtual wxOwnerDrawn *CreateLboxItem(size_t n);
- virtual bool MSWOnMeasure(WXMEASUREITEMSTRUCT *item);
-
- // this can't be called DoHitTest() because wxWindow already has this method
- int DoHitTestItem(wxCoord x, wxCoord y) const;
-
- // pressing space or clicking the check box toggles the item
- void OnKeyDown(wxKeyEvent& event);
- void OnLeftClick(wxMouseEvent& event);
-
-private:
- size_t m_nItemHeight; // height of checklistbox items (the same for all)
-
- DECLARE_EVENT_TABLE()
- DECLARE_DYNAMIC_CLASS_NO_COPY(wxCheckListBox)
-};
-
-#endif //_CHECKLST_H
+++ /dev/null
-/*
- * Name: wx/palmos/chkconf.h
- * Purpose: Compiler-specific configuration checking
- * Author: William Osborne - minimal working wxPalmOS port
- * Modified by: Yunhui Fu
- * Created: 10/13/04
- * RCS-ID: $Id$
- * Copyright: (c) William Osborne
- * Licence: wxWindows licence
- */
-
-/* THIS IS A C FILE, DON'T USE C++ FEATURES (IN PARTICULAR COMMENTS) IN IT */
-
-#ifndef _WX_PALMOS_CHKCONF_H_
-#define _WX_PALMOS_CHKCONF_H_
-
-/*
- * disable the settings which are not implemented yet
- */
-
-#undef wxUSE_ACCEL
-#define wxUSE_ACCEL 0
-
-#undef wxUSE_ARCHIVE_STREAMS
-#define wxUSE_ARCHIVE_STREAMS 0
-
-#undef wxUSE_BMPBUTTON
-#define wxUSE_BMPBUTTON 0
-
-#undef wxUSE_CALENDARCTRL
-#define wxUSE_CALENDARCTRL 0
-
-#undef wxUSE_CARET
-#define wxUSE_CARET 0
-
-#undef wxUSE_CHECKLISTBOX
-#define wxUSE_CHECKLISTBOX 0
-
-#undef wxUSE_CHOICE
-#define wxUSE_CHOICE 0
-
-#undef wxUSE_CHOICEBOOK
-#define wxUSE_CHOICEBOOK 0
-
-#undef wxUSE_CHOICEDLG
-#define wxUSE_CHOICEDLG 0
-
-#undef wxUSE_CLIPBOARD
-#define wxUSE_CLIPBOARD 0
-
-#undef wxUSE_COMBOBOX
-#define wxUSE_COMBOBOX 0
-
-#undef wxUSE_DATAOBJ
-#define wxUSE_DATAOBJ 0
-
-#undef wxUSE_DIRDLG
-#define wxUSE_DIRDLG 1
-
-#undef wxUSE_DISPLAY
-#define wxUSE_DISPLAY 0
-
-#undef wxUSE_DOC_VIEW_ARCHITECTURE
-#define wxUSE_DOC_VIEW_ARCHITECTURE 0
-
-#undef wxUSE_DRAG_AND_DROP
-#define wxUSE_DRAG_AND_DROP 0
-
-#undef wxUSE_DRAGIMAGE
-#define wxUSE_DRAGIMAGE 0
-
-#undef wxUSE_DYNAMIC_LOADER
-#define wxUSE_DYNAMIC_LOADER 0
-
-#undef wxUSE_DYNLIB_CLASS
-#define wxUSE_DYNLIB_CLASS 0
-
-#undef wxUSE_ENH_METAFILE
-#define wxUSE_ENH_METAFILE 0
-
-#undef wxUSE_FFILE
-#define wxUSE_FFILE 0
-
-#undef wxUSE_FILE
-#define wxUSE_FILE 1
-
-#undef wxUSE_FILECONFIG
-#define wxUSE_FILECONFIG 0
-
-#undef wxUSE_FILEDLG
-#define wxUSE_FILEDLG 1
-
-#undef wxUSE_FILESYSTEM
-#define wxUSE_FILESYSTEM 0
-
-#undef wxUSE_FINDREPLDLG
-#define wxUSE_FINDREPLDLG 0
-
-#undef wxUSE_FONTDLG
-#define wxUSE_FONTDLG 0
-
-#undef wxUSE_FONTMAP
-#define wxUSE_FONTMAP 0
-
-#undef wxUSE_FS_ARCHIVE
-#define wxUSE_FS_ARCHIVE 0
-
-#undef wxUSE_FS_INET
-#define wxUSE_FS_INET 0
-
-#undef wxUSE_FS_ZIP
-#define wxUSE_FS_ZIP 0
-
-#undef wxUSE_GAUGE
-#define wxUSE_GAUGE 0
-
-#undef wxUSE_GRID
-#define wxUSE_GRID 0
-
-#undef wxUSE_HELP
-#define wxUSE_HELP 0
-
-#undef wxUSE_HTML
-#define wxUSE_HTML 0
-
-#undef wxUSE_IMAGE
-#define wxUSE_IMAGE 0
-
-#undef wxUSE_LIBPNG
-#define wxUSE_LIBPNG 0
-
-#undef wxUSE_LIBJPEG
-#define wxUSE_LIBJPEG 0
-
-#undef wxUSE_LIBTIFF
-#define wxUSE_LIBTIFF 0
-
-#undef wxUSE_GIF
-#define wxUSE_GIF 0
-
-#undef wxUSE_PNM
-#define wxUSE_PNM 0
-
-#undef wxUSE_PCX
-#define wxUSE_PCX 0
-
-#undef wxUSE_XPM
-#define wxUSE_XPM 0
-
-#undef wxUSE_ICO_CUR
-#define wxUSE_ICO_CUR 0
-
-#undef wxUSE_SVG
-#define wxUSE_SVG 0
-
-#undef wxUSE_INTL
-#define wxUSE_INTL 0
-
-#undef wxUSE_IPC
-#define wxUSE_IPC 0
-
-#undef wxUSE_JOYSTICK
-#define wxUSE_JOYSTICK 0
-
-#undef wxUSE_LISTBOOK
-#define wxUSE_LISTBOOK 0
-
-#undef wxUSE_LISTBOX
-#define wxUSE_LISTBOX 0
-
-#undef wxUSE_LISTCTRL
-#define wxUSE_LISTCTRL 0
-
-#undef wxUSE_LOG_DIALOG
-#define wxUSE_LOG_DIALOG 0
-
-#undef wxUSE_LOGWINDOW
-#define wxUSE_LOGWINDOW 0
-
-#undef wxUSE_METAFILE
-#define wxUSE_METAFILE 0
-
-#undef wxUSE_MDI
-#define wxUSE_MDI 0
-
-#undef wxUSE_MDI_ARCHITECTURE
-#define wxUSE_MDI_ARCHITECTURE 0
-
-#undef wxUSE_MEDIACTRL
-#define wxUSE_MEDIACTRL 0
-
-#undef wxUSE_MIMETYPE
-#define wxUSE_MIMETYPE 0
-
-#undef wxUSE_MOUSEWHEEL
-#define wxUSE_MOUSEWHEEL 0
-
-#undef wxUSE_NOTEBOOK
-#define wxUSE_NOTEBOOK 0
-
-#undef wxUSE_NUMBERDLG
-#define wxUSE_NUMBERDLG 0
-
-#undef wxUSE_ON_FATAL_EXCEPTION
-#define wxUSE_ON_FATAL_EXCEPTION 0
-
-#undef wxUSE_PALETTE
-#define wxUSE_PALETTE 0
-
-#undef wxUSE_POPUPWIN
-#define wxUSE_POPUPWIN 0
-
-#undef wxUSE_PRINTING_ARCHITECTURE
-#define wxUSE_PRINTING_ARCHITECTURE 0
-
-#undef wxUSE_PROTOCOL
-#define wxUSE_PROTOCOL 0
-
-#undef wxUSE_PROTOCOL_FILE
-#define wxUSE_PROTOCOL_FILE 0
-
-#undef wxUSE_PROTOCOL_FTP
-#define wxUSE_PROTOCOL_FTP 0
-
-#undef wxUSE_PROTOCOL_HTTP
-#define wxUSE_PROTOCOL_HTTP 0
-
-#undef wxUSE_REGEX
-#define wxUSE_REGEX 0
-
-#undef wxUSE_SCROLLBAR
-#define wxUSE_SCROLLBAR 0
-
-#undef wxUSE_SNGLINST_CHECKER
-#define wxUSE_SNGLINST_CHECKER 0
-
-#undef wxUSE_SOCKETS
-#define wxUSE_SOCKETS 0
-
-#undef wxUSE_SOUND
-#define wxUSE_SOUND 0
-
-#undef wxUSE_SPINBTN
-#define wxUSE_SPINBTN 0
-
-#undef wxUSE_SPINCTRL
-#define wxUSE_SPINCTRL 0
-
-#undef wxUSE_SPLASH
-#define wxUSE_SPLASH 0
-
-#undef wxUSE_SPLINES
-#define wxUSE_SPLINES 0
-
-#undef wxUSE_STARTUP_TIPS
-#define wxUSE_STARTUP_TIPS 0
-
-#undef wxUSE_STATBMP
-#define wxUSE_STATBMP 0
-
-#undef wxUSE_STATBOX
-#define wxUSE_STATBOX 0
-
-#undef wxUSE_STATLINE
-#define wxUSE_STATLINE 0
-
-#undef wxUSE_TARSTREAM
-#define wxUSE_TARSTREAM 0
-
-#undef wxUSE_TEXTBUFFER
-#define wxUSE_TEXTBUFFER 0
-
-#undef wxUSE_TEXTCTRL
-#define wxUSE_TEXTCTRL 0
-
-#undef wxUSE_TEXTFILE
-#define wxUSE_TEXTFILE 0
-
-#undef wxUSE_TEXTDLG
-#define wxUSE_TEXTDLG 0
-
-#undef wxUSE_THREADS
-#define wxUSE_THREADS 0
-
-#undef wxUSE_TIPWINDOW
-#define wxUSE_TIPWINDOW 0
-
-#undef wxUSE_TREEBOOK
-#define wxUSE_TREEBOOK 0
-
-#undef wxUSE_TREECTRL
-#define wxUSE_TREECTRL 0
-
-#undef wxUSE_TIMER
-#define wxUSE_TIMER 0
-
-#undef wxUSE_TOOLBAR
-#define wxUSE_TOOLBAR 0
-
-#undef wxUSE_TOOLBAR_NATIVE
-#define wxUSE_TOOLBAR_NATIVE 0
-
-#undef wxUSE_TOOLTIPS
-#define wxUSE_TOOLTIPS 0
-
-#undef wxUSE_URL
-#define wxUSE_URL 0
-
-/* #undef wxUSE_WCHAR_T */
-/* #define wxUSE_WCHAR_T 1 */
-
-#undef wxUSE_WIZARDDLG
-#define wxUSE_WIZARDDLG 0
-
-#undef wxUSE_WXHTML_HELP
-#define wxUSE_WXHTML_HELP 0
-
-#undef wxUSE_XML
-#define wxUSE_XML 0
-
-#undef wxUSE_XRC
-#define wxUSE_XRC 0
-
-#undef wxUSE_ZIPSTREAM
-#define wxUSE_ZIPSTREAM 0
-
-#undef wxUSE_ZLIB
-#define wxUSE_ZLIB 0
-
-#undef wxUSE_COLLPANE
-#define wxUSE_COLLPANE 0
-
-#undef wxUSE_TOOLBOOK
-#define wxUSE_TOOLBOOK 0
-
-#undef wxUSE_SELECT_DISPATCHER
-#define wxUSE_SELECT_DISPATCHER 1
-
-#endif
- /* _WX_PALMOS_CHKCONF_H_ */
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/choice.h
-// Purpose: wxChoice class
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by: Yunhui Fu
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_CHOICE_H_
-#define _WX_CHOICE_H_
-
-// ----------------------------------------------------------------------------
-// Choice item
-// ----------------------------------------------------------------------------
-
-class WXDLLIMPEXP_CORE wxChoice : public wxChoiceBase
-{
-public:
- // ctors
- wxChoice() { }
- virtual ~wxChoice();
-
- wxChoice(wxWindow *parent,
- wxWindowID id,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- int n = 0, const wxString choices[] = NULL,
- long style = 0,
- const wxValidator& validator = wxDefaultValidator,
- const wxString& name = wxChoiceNameStr)
- {
- Create(parent, id, pos, size, n, choices, style, validator, name);
- }
- wxChoice(wxWindow *parent,
- wxWindowID id,
- const wxPoint& pos,
- const wxSize& size,
- const wxArrayString& choices,
- long style = 0,
- const wxValidator& validator = wxDefaultValidator,
- const wxString& name = wxChoiceNameStr)
- {
- Create(parent, id, pos, size, choices, style, validator, name);
- }
-
- bool Create(wxWindow *parent,
- wxWindowID id,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- int n = 0, const wxString choices[] = NULL,
- long style = 0,
- const wxValidator& validator = wxDefaultValidator,
- const wxString& name = wxChoiceNameStr);
- bool Create(wxWindow *parent,
- wxWindowID id,
- const wxPoint& pos,
- const wxSize& size,
- const wxArrayString& choices,
- long style = 0,
- const wxValidator& validator = wxDefaultValidator,
- const wxString& name = wxChoiceNameStr);
-
- // implement base class pure virtuals
- virtual int DoInsertItems(const wxArrayStringsAdapter& items,
- unsigned int pos,
- void **clientData, wxClientDataType type);
- virtual void DoDeleteOneItem(unsigned int n);
- virtual void DoClear();
-
- virtual unsigned int GetCount() const;
- virtual int GetSelection() const;
- virtual void SetSelection(int n);
-
- virtual wxString GetString(unsigned int n) const;
- virtual void SetString(unsigned int n, const wxString& s);
-
-protected:
- virtual void DoMoveWindow(int x, int y, int width, int height);
- virtual void DoSetItemClientData(unsigned int n, void* clientData);
- virtual void* DoGetItemClientData(unsigned int n) const;
-
- // MSW implementation
- virtual wxSize DoGetBestSize() const;
- virtual void DoGetSize(int *w, int *h) const;
- virtual void DoSetSize(int x, int y,
- int width, int height,
- int sizeFlags = wxSIZE_AUTO);
-
-
- // update the height of the drop down list to fit the number of items we
- // have (without changing the visible height)
- void UpdateVisibleHeight();
-
- // create and initialize the control
- bool CreateAndInit(wxWindow *parent, wxWindowID id,
- const wxPoint& pos,
- const wxSize& size,
- int n, const wxString choices[],
- long style,
- const wxValidator& validator,
- const wxString& name);
-
- // free all memory we have (used by Clear() and dtor)
- void Free();
-
- DECLARE_DYNAMIC_CLASS_NO_COPY(wxChoice)
-};
-
-#endif // _WX_CHOICE_H_
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/clipbrd.h
-// Purpose: wxClipboad class and clipboard functions for Palm OS
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_CLIPBRD_H_
-#define _WX_CLIPBRD_H_
-
-#if wxUSE_CLIPBOARD
-
-#include "wx/list.h"
-#include "wx/module.h"
-#include "wx/dataobj.h" // for wxDataFormat
-
-// These functions superceded by wxClipboard, but retained in order to
-// implement wxClipboard, and for compatibility.
-
-// open/close the clipboard
-WXDLLIMPEXP_CORE bool wxOpenClipboard();
-WXDLLIMPEXP_CORE bool wxIsClipboardOpened();
-#define wxClipboardOpen wxIsClipboardOpened
-WXDLLIMPEXP_CORE bool wxCloseClipboard();
-
-// get/set data
-WXDLLIMPEXP_CORE bool wxEmptyClipboard();
-WXDLLIMPEXP_CORE bool wxSetClipboardData(wxDataFormat dataFormat,
- const void *data,
- int width = 0, int height = 0);
-WXDLLIMPEXP_CORE void* wxGetClipboardData(wxDataFormat dataFormat,
- long *len = NULL);
-
-// clipboard formats
-WXDLLIMPEXP_CORE bool wxIsClipboardFormatAvailable(wxDataFormat dataFormat);
-WXDLLIMPEXP_CORE wxDataFormat wxEnumClipboardFormats(wxDataFormat dataFormat);
-WXDLLIMPEXP_CORE int wxRegisterClipboardFormat(wxChar *formatName);
-WXDLLIMPEXP_CORE bool wxGetClipboardFormatName(wxDataFormat dataFormat,
- wxChar *formatName,
- int maxCount);
-
-//-----------------------------------------------------------------------------
-// wxClipboard
-//-----------------------------------------------------------------------------
-
-class WXDLLIMPEXP_FWD_CORE wxDataObject;
-class WXDLLIMPEXP_CORE wxClipboard : public wxObject
-{
- DECLARE_DYNAMIC_CLASS(wxClipboard)
-
-public:
- wxClipboard();
- virtual ~wxClipboard();
-
- // open the clipboard before SetData() and GetData()
- virtual bool Open();
-
- // close the clipboard after SetData() and GetData()
- virtual void Close();
-
- // query whether the clipboard is opened
- virtual bool IsOpened() const;
-
- // set the clipboard data. all other formats will be deleted.
- virtual bool SetData( wxDataObject *data );
-
- // add to the clipboard data.
- virtual bool AddData( wxDataObject *data );
-
- // ask if data in correct format is available
- virtual bool IsSupported( wxDataFormat format );
-
- // fill data with data on the clipboard (if available)
- virtual bool GetData( wxDataObject& data );
-
- // clears wxTheClipboard and the system's clipboard if possible
- virtual void Clear();
-
- // flushes the clipboard: this means that the data which is currently on
- // clipboard will stay available even after the application exits (possibly
- // eating memory), otherwise the clipboard will be emptied on exit
- virtual bool Flush();
-
-private:
- bool m_clearOnExit;
- bool m_isOpened;
-};
-
-#endif // wxUSE_CLIPBOARD
-#endif
- // _WX_CLIPBRD_H_
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/colordlg.h
-// Purpose: wxColourDialog class
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by: Wlodzimierz ABX Skiba - real native implementation
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne, Wlodzimierz Skiba
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_COLORDLG_H_
-#define _WX_COLORDLG_H_
-
-#include "wx/defs.h"
-#include "wx/dialog.h"
-
-// ----------------------------------------------------------------------------
-// wxColourDialog: dialog for choosing a colours
-// ----------------------------------------------------------------------------
-
-class WXDLLIMPEXP_CORE wxColourDialog : public wxDialog
-{
-public:
- wxColourDialog();
- wxColourDialog(wxWindow *parent, wxColourData *data = NULL);
-
- bool Create(wxWindow *parent, wxColourData *data = NULL);
-
- wxColourData& GetColourData() { return m_colourData; }
-
- virtual int ShowModal();
-
-protected:
- wxColourData m_colourData;
-
- DECLARE_DYNAMIC_CLASS_NO_COPY(wxColourDialog)
-};
-
-#endif
- // _WX_COLORDLG_H_
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/combobox.h
-// Purpose: wxComboBox class
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_COMBOBOX_H_
-#define _WX_COMBOBOX_H_
-
-#include "wx/choice.h"
-
-#if wxUSE_COMBOBOX
-
-// ----------------------------------------------------------------------------
-// Combobox control
-// ----------------------------------------------------------------------------
-
-class WXDLLIMPEXP_CORE wxComboBox: public wxChoice
-{
-public:
- wxComboBox() { }
-
- wxComboBox(wxWindow *parent, wxWindowID id,
- const wxString& value = wxEmptyString,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- int n = 0, const wxString choices[] = NULL,
- long style = 0,
- const wxValidator& validator = wxDefaultValidator,
- const wxString& name = wxComboBoxNameStr)
- {
- Create(parent, id, value, pos, size, n, choices, style, validator, name);
- }
- wxComboBox(wxWindow *parent, wxWindowID id,
- const wxString& value,
- const wxPoint& pos,
- const wxSize& size,
- const wxArrayString& choices,
- long style = 0,
- const wxValidator& validator = wxDefaultValidator,
- const wxString& name = wxComboBoxNameStr)
- {
- Create(parent, id, value, pos, size, choices, style, validator, name);
- }
-
- bool Create(wxWindow *parent,
- wxWindowID id,
- const wxString& value = wxEmptyString,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- int n = 0,
- const wxString choices[] = NULL,
- long style = 0,
- const wxValidator& validator = wxDefaultValidator,
- const wxString& name = wxComboBoxNameStr);
- bool Create(wxWindow *parent,
- wxWindowID id,
- const wxString& value,
- const wxPoint& pos,
- const wxSize& size,
- const wxArrayString& choices,
- long style = 0,
- const wxValidator& validator = wxDefaultValidator,
- const wxString& name = wxComboBoxNameStr);
-
- // List functions: see wxChoice
-
- // Text field functions
- wxString GetValue() const { return GetLabel(); }
- virtual void SetValue(const wxString& value);
-
- // Clipboard operations
- virtual void Copy();
- virtual void Cut();
- virtual void Paste();
- virtual void SetInsertionPoint(long pos);
- virtual void SetInsertionPointEnd();
- virtual long GetInsertionPoint() const;
- virtual wxTextPos GetLastPosition() const;
- virtual void Replace(long from, long to, const wxString& value);
- virtual void Remove(long from, long to);
- virtual void SetSelection(int n) { wxChoice::SetSelection(n); }
- virtual void SetSelection(long from, long to);
- virtual void SetEditable(bool editable);
- virtual bool IsEditable() const;
-
- virtual void Undo();
- virtual void Redo();
- virtual void SelectAll();
-
- virtual bool CanCopy() const;
- virtual bool CanCut() const;
- virtual bool CanPaste() const;
- virtual bool CanUndo() const;
- virtual bool CanRedo() const;
-
- // implementation only from now on
- virtual bool MSWCommand(WXUINT param, WXWORD id);
- bool MSWProcessEditMsg(WXUINT msg, WXWPARAM wParam, WXLPARAM lParam);
- virtual WXLRESULT MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam);
-
- WXHWND GetEditHWND() const;
-
-protected:
- virtual WXDWORD MSWGetStyle(long style, WXDWORD *exstyle) const;
-
-private:
- DECLARE_DYNAMIC_CLASS_NO_COPY(wxComboBox)
-};
-
-#endif // wxUSE_COMBOBOX
-#endif
- // _WX_COMBOBOX_H_
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/control.h
-// Purpose: wxControl class
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by: Wlodzimierz ABX Skiba - native implementation
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne, Wlodzimierz Skiba
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_CONTROL_H_
-#define _WX_CONTROL_H_
-
-#include "wx/dynarray.h"
-
-// General item class
-class WXDLLIMPEXP_CORE wxControl : public wxControlBase
-{
-public:
- wxControl() { Init(); }
-
- wxControl(wxWindow *parent, wxWindowID id,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize, long style = 0,
- const wxValidator& validator = wxDefaultValidator,
- const wxString& name = wxControlNameStr)
- {
- Init();
- Create(parent, id, pos, size, style, validator, name);
- }
-
- bool Create(wxWindow *parent, wxWindowID id,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize, long style = 0,
- const wxValidator& validator = wxDefaultValidator,
- const wxString& name = wxControlNameStr);
-
- virtual ~wxControl();
-
- // Simulates an event
- virtual void Command(wxCommandEvent& event) { ProcessCommand(event); }
-
- virtual bool Enable( bool enable = true );
- virtual bool IsEnabled() const;
-
- virtual bool Show( bool show = true );
- virtual bool IsShown() const;
-
- virtual void SetLabel(const wxString& label);
- //virtual wxString GetLabel();
-
- // implementation from now on
- // --------------------------
-
- virtual wxVisualAttributes GetDefaultAttributes() const
- {
- return GetClassDefaultAttributes(GetWindowVariant());
- }
-
- static wxVisualAttributes
- GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
-
- // Calls the callback and appropriate event handlers
- bool ProcessCommand(wxCommandEvent& event);
-
- const wxArrayLong& GetSubcontrols() const { return m_subControls; }
-
- void OnEraseBackground(wxEraseEvent& event);
-
-protected:
- // regardless how deeply we are in wxWidgets hierarchy always get correct form
- WXFORMPTR GetParentForm() const;
- WXFORMPTR GetObjectFormIndex(uint16_t& index) const;
- void* GetObjectPtr() const;
-
- // choose the default border for this window
- virtual wxBorder GetDefaultBorder() const;
-
- // on/off-like controls
- void SetBoolValue(bool value);
- bool GetBoolValue() const;
- void SetIntValue(int val);
-
- // native labels access
- void SetFieldLabel(const wxString& label);
- void SetControlLabel(const wxString& label);
- wxString GetFieldLabel();
- wxString GetControlLabel();
-
- // return default best size (doesn't really make any sense, override this)
- virtual wxSize DoGetBestSize() const;
-
- // getting and setting sizes
- virtual void DoGetPosition( int *x, int *y ) const;
- virtual void DoGetSize( int *width, int *height ) const;
- virtual void DoMoveWindow(int x, int y, int width, int height);
-
- // create the control of the given ControlStyleType: this is typically called
- // from Create() method of the derived class passing its label, pos and
- // size parameter (style parameter is not needed because m_windowStyle is
- // supposed to had been already set and so is used instead when this
- // function is called)
- bool PalmCreateControl(int palmStyle,
- const wxString& label,
- const wxPoint& pos,
- const wxSize& size,
- uint8_t groupID = 0);
- inline bool IsPalmControl() const { return m_palmControl; }
-
- bool PalmCreateField(const wxString& label,
- const wxPoint& pos,
- const wxSize& size,
- bool editable,
- bool underlined,
- int justification);
- inline bool IsPalmField() const { return m_palmField; }
-
- // this is a helper for the derived class GetClassDefaultAttributes()
- // implementation: it returns the right colours for the classes which
- // contain something else (e.g. wxListBox, wxTextCtrl, ...) instead of
- // being simple controls (such as wxButton, wxCheckBox, ...)
- static wxVisualAttributes
- GetCompositeControlsDefaultAttributes(wxWindowVariant variant);
-
-
- // for controls like radiobuttons which are really composite this array
- // holds the ids (not HWNDs!) of the sub controls
- wxArrayLong m_subControls;
-
- // m_label stores label in case of wxButton, wxCheckBox, wxToggleButton etc.
- // We must ensure that it persists for as long as it is being displayed
- // (that is, for as long as the control is displayed or until we call
- // CtlSetLabel() with a new string), and we must free the string after
- // it is no longer in use (typically after the form containing the
- // control is freed).
- wxString m_label;
-
-private:
-
- bool m_palmControl:1;
- bool m_palmField:1;
-
- // common part of all ctors
- void Init();
-
- virtual void DoGetBounds( WXRECTANGLEPTR rect ) const;
- virtual void DoSetBounds( WXRECTANGLEPTR rect );
-
- DECLARE_DYNAMIC_CLASS_NO_COPY(wxControl)
- DECLARE_EVENT_TABLE()
-};
-
-#endif
- // _WX_CONTROL_H_
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/cursor.h
-// Purpose: wxCursor class
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_CURSOR_H_
-#define _WX_CURSOR_H_
-
-#include "wx/palmos/gdiimage.h"
-
-class WXDLLIMPEXP_FWD_CORE wxImage;
-
-// Cursor
-class WXDLLIMPEXP_CORE wxCursor : public wxGDIImage
-{
-public:
- // constructors
- wxCursor();
- wxCursor(const wxImage& image);
- wxCursor(const wxString& name,
- wxBitmapType type = wxCURSOR_DEFAULT_TYPE,
- int hotSpotX = 0, int hotSpotY = 0);
- wxCursor(wxStockCursor id) { InitFromStock(id); }
-#if WXWIN_COMPATIBILITY_2_8
- wxCursor(int id) { InitFromStock((wxStockCursor)id); }
-#endif
- virtual ~wxCursor();
-
- // implementation only
- void SetHCURSOR(WXHCURSOR cursor) { SetHandle((WXHANDLE)cursor); }
- WXHCURSOR GetHCURSOR() const { return (WXHCURSOR)GetHandle(); }
-
-protected:
- void InitFromStock(wxStockCursor);
- virtual wxGDIImageRefData *CreateData() const;
-
-private:
- DECLARE_DYNAMIC_CLASS(wxCursor)
-};
-
-#endif
- // _WX_CURSOR_H_
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/datectrl.h
-// Purpose: wxDatePickerCtrl for PalmOS
-// Author: Wlodzimierz ABX Skiba
-// Modified by:
-// Created: 02/15/05
-// RCS-ID: $Id$
-// Copyright: (c) Wlodzimierz Skiba
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_PALMOS_DATECTRL_H_
-#define _WX_PALMOS_DATECTRL_H_
-
-// ----------------------------------------------------------------------------
-// wxDatePickerCtrl
-// ----------------------------------------------------------------------------
-
-class WXDLLIMPEXP_ADV wxDatePickerCtrl : public wxDatePickerCtrlBase
-{
-public:
- // ctors
- wxDatePickerCtrl() { Init(); }
-
- wxDatePickerCtrl(wxWindow *parent,
- wxWindowID id,
- const wxDateTime& dt = wxDefaultDateTime,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = wxDP_DEFAULT | wxDP_SHOWCENTURY,
- const wxValidator& validator = wxDefaultValidator,
- const wxString& name = wxDatePickerCtrlNameStr)
- {
- Init();
- Create(parent, id, dt, pos, size, style, validator, name);
- }
-
- bool Create(wxWindow *parent,
- wxWindowID id,
- const wxDateTime& dt = wxDefaultDateTime,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = wxDP_DEFAULT | wxDP_SHOWCENTURY,
- const wxValidator& validator = wxDefaultValidator,
- const wxString& name = wxDatePickerCtrlNameStr);
-
- // set/get the date
- virtual void SetValue(const wxDateTime& dt);
- virtual wxDateTime GetValue() const;
-
- // set/get the allowed valid range for the dates, if either/both of them
- // are invalid, there is no corresponding limit and if neither is set
- // GetRange() returns false
- virtual void SetRange(const wxDateTime& dt1, const wxDateTime& dt2);
- virtual bool GetRange(wxDateTime *dt1, wxDateTime *dt2) const;
-
- // send a notification event, return true if processed
- bool SendClickEvent();
-
-protected:
- virtual wxSize DoGetBestSize() const;
-
-private:
- wxDateTime m_dt;
-
- void Init() { m_dt = wxDateTime::Today(); }
-
-
- DECLARE_DYNAMIC_CLASS_NO_COPY(wxDatePickerCtrl)
-};
-
-#endif // _WX_PALMOS_DATECTRL_H_
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/dc.h
-// Purpose: wxDC class
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_PALM_DC_H_
-#define _WX_PALM_DC_H_
-
-#include "wx/defs.h"
-#include "wx/dc.h"
-
-// ---------------------------------------------------------------------------
-// macros
-// ---------------------------------------------------------------------------
-
-#if wxUSE_DC_CACHEING
-/*
- * Cached blitting, maintaining a cache
- * of bitmaps required for transparent blitting
- * instead of constant creation/deletion
- */
-
-class wxDCCacheEntry: public wxObject
-{
-public:
- wxDCCacheEntry(WXHBITMAP hBitmap, int w, int h, int depth);
- wxDCCacheEntry(WXHDC hDC, int depth);
- virtual ~wxDCCacheEntry();
-
- WXHBITMAP m_bitmap;
- WXHDC m_dc;
- int m_width;
- int m_height;
- int m_depth;
-};
-#endif
-
-// this is an ABC: use one of the derived classes to create a DC associated
-// with a window, screen, printer and so on
-class WXDLLIMPEXP_CORE wxPalmDCImpl: public wxDCImpl
-{
-public:
- wxPalmDCImpl(wxDC *owner, WXHDC hDC);
- virtual ~wxPalmDCImpl();
-
- // implement base class pure virtuals
- // ----------------------------------
-
- virtual void Clear();
-
- virtual bool StartDoc(const wxString& message);
- virtual void EndDoc();
-
- virtual void StartPage();
- virtual void EndPage();
-
- virtual void SetFont(const wxFont& font);
- virtual void SetPen(const wxPen& pen);
- virtual void SetBrush(const wxBrush& brush);
- virtual void SetBackground(const wxBrush& brush);
- virtual void SetBackgroundMode(int mode);
-#if wxUSE_PALETTE
- virtual void SetPalette(const wxPalette& palette);
-#endif // wxUSE_PALETTE
-
- virtual void DestroyClippingRegion();
-
- virtual wxCoord GetCharHeight() const;
- virtual wxCoord GetCharWidth() const;
-
- virtual bool CanDrawBitmap() const;
- virtual bool CanGetTextExtent() const;
- virtual int GetDepth() const;
- virtual wxSize GetPPI() const;
-
-
- virtual void SetMapMode(wxMappingMode mode);
- virtual void SetUserScale(double x, double y);
- virtual void SetLogicalScale(double x, double y);
- virtual void SetLogicalOrigin(wxCoord x, wxCoord y);
- virtual void SetDeviceOrigin(wxCoord x, wxCoord y);
- virtual void SetAxisOrientation(bool xLeftRight, bool yBottomUp);
-
- virtual void SetLogicalFunction(wxRasterOperationMode function);
-
- // implementation from now on
- // --------------------------
-
- virtual void SetRop(WXHDC cdc);
- virtual void SelectOldObjects(WXHDC dc);
-
- void SetWindow(wxWindow *win)
- {
- m_window = win;
-
-#if wxUSE_PALETTE
- // if we have palettes use the correct one for this window
- InitializePalette();
-#endif // wxUSE_PALETTE
- }
-
- WXHDC GetHDC() const { return m_hDC; }
- void SetHDC(WXHDC dc, bool bOwnsDC = false)
- {
- m_hDC = dc;
- m_bOwnsDC = bOwnsDC;
-
- // we might have a pre existing clipping region, make sure that we
- // return it if asked -- but avoid calling ::GetClipBox() right now as
- // it could be unnecessary wasteful
- m_clipping = true;
- m_clipX1 =
- m_clipX2 = 0;
- }
-
- const wxBitmap& GetSelectedBitmap() const { return m_selectedBitmap; }
- wxBitmap& GetSelectedBitmap() { return m_selectedBitmap; }
-
- // update the internal clip box variables
- void UpdateClipBox();
-
-#if wxUSE_DC_CACHEING
- static wxDCCacheEntry* FindBitmapInCache(WXHDC hDC, int w, int h);
- static wxDCCacheEntry* FindDCInCache(wxDCCacheEntry* notThis, WXHDC hDC);
-
- static void AddToBitmapCache(wxDCCacheEntry* entry);
- static void AddToDCCache(wxDCCacheEntry* entry);
- static void ClearCache();
-#endif
-
- // RTL related functions
- // ---------------------
-
- // get or change the layout direction (LTR or RTL) for this dc,
- // wxLayout_Default is returned if layout direction is not supported
- virtual wxLayoutDirection GetLayoutDirection() const;
- virtual void SetLayoutDirection(wxLayoutDirection dir);
-
-protected:
- void Init()
- {
- m_bOwnsDC = false;
- m_hDC = NULL;
-
- m_oldBitmap = NULL;
- m_oldPen = NULL;
- m_oldBrush = NULL;
- m_oldFont = NULL;
-
-#if wxUSE_PALETTE
- m_oldPalette = NULL;
-#endif // wxUSE_PALETTE
- }
-
- // create an uninitialized DC: this should be only used by the derived
- // classes
- wxPalmDCImpl( wxDC *owner ) : wxDCImpl( owner ) { Init(); }
-
- void RealizeScaleAndOrigin();
-
-public:
- virtual void DoGetTextExtent(const wxString& string,
- wxCoord *x, wxCoord *y,
- wxCoord *descent = NULL,
- wxCoord *externalLeading = NULL,
- const wxFont *theFont = NULL) const;
- virtual bool DoGetPartialTextExtents(const wxString& text, wxArrayInt& widths) const;
-
- virtual bool DoFloodFill(wxCoord x, wxCoord y, const wxColour& col,
- wxFloodFillStyle style = wxFLOOD_SURFACE);
-
- virtual void DoGradientFillLinear(const wxRect& rect,
- const wxColour& initialColour,
- const wxColour& destColour,
- wxDirection nDirection = wxEAST);
-
- virtual bool DoGetPixel(wxCoord x, wxCoord y, wxColour *col) const;
-
- virtual void DoDrawPoint(wxCoord x, wxCoord y);
- virtual void DoDrawLine(wxCoord x1, wxCoord y1, wxCoord x2, wxCoord y2);
-
- virtual void DoDrawArc(wxCoord x1, wxCoord y1,
- wxCoord x2, wxCoord y2,
- wxCoord xc, wxCoord yc);
- virtual void DoDrawCheckMark(wxCoord x, wxCoord y,
- wxCoord width, wxCoord height);
- virtual void DoDrawEllipticArc(wxCoord x, wxCoord y, wxCoord w, wxCoord h,
- double sa, double ea);
-
- virtual void DoDrawRectangle(wxCoord x, wxCoord y, wxCoord width, wxCoord height);
- virtual void DoDrawRoundedRectangle(wxCoord x, wxCoord y,
- wxCoord width, wxCoord height,
- double radius);
- virtual void DoDrawEllipse(wxCoord x, wxCoord y, wxCoord width, wxCoord height);
-
-#if wxUSE_SPLINES
- virtual void DoDrawSpline(const wxPointList *points);
-#endif
-
- virtual void DoCrossHair(wxCoord x, wxCoord y);
-
- virtual void DoDrawIcon(const wxIcon& icon, wxCoord x, wxCoord y);
- virtual void DoDrawBitmap(const wxBitmap &bmp, wxCoord x, wxCoord y,
- bool useMask = false);
-
- virtual void DoDrawText(const wxString& text, wxCoord x, wxCoord y);
- virtual void DoDrawRotatedText(const wxString& text, wxCoord x, wxCoord y,
- double angle);
-
- virtual bool DoBlit(wxCoord xdest, wxCoord ydest, wxCoord width, wxCoord height,
- wxDC *source, wxCoord xsrc, wxCoord ysrc,
- wxRasterOperationMode rop = wxCOPY, bool useMask = false,
- wxCoord xsrcMask = wxDefaultCoord, wxCoord ysrcMask = wxDefaultCoord);
-
- virtual bool DoStretchBlit(wxCoord xdest, wxCoord ydest,
- wxCoord dstWidth, wxCoord dstHeight,
- wxDC *source,
- wxCoord xsrc, wxCoord ysrc,
- wxCoord srcWidth, wxCoord srcHeight,
- wxRasterOperationMode rop = wxCOPY, bool useMask = false,
- wxCoord xsrcMask = wxDefaultCoord, wxCoord ysrcMask = wxDefaultCoord);
-
- virtual void DoSetClippingRegion(wxCoord x, wxCoord y,
- wxCoord width, wxCoord height);
- virtual void DoSetDeviceClippingRegion(const wxRegion& region);
- virtual void DoGetClippingBox(wxCoord *x, wxCoord *y,
- wxCoord *w, wxCoord *h) const;
-
- virtual void DoGetSizeMM(int* width, int* height) const;
-
- virtual void DoDrawLines(int n, wxPoint points[],
- wxCoord xoffset, wxCoord yoffset);
- virtual void DoDrawPolygon(int n, wxPoint points[],
- wxCoord xoffset, wxCoord yoffset,
- wxPolygonFillMode fillStyle = wxODDEVEN_RULE);
- virtual void DoDrawPolyPolygon(int n, int count[], wxPoint points[],
- wxCoord xoffset, wxCoord yoffset,
- wxPolygonFillMode fillStyle = wxODDEVEN_RULE);
- virtual wxBitmap DoGetAsBitmap(const wxRect *subrect) const
- {
- return subrect == NULL ? GetSelectedBitmap()
- : GetSelectedBitmap().GetSubBitmap(*subrect);
- }
-
-
-#if wxUSE_PALETTE
- // MSW specific, select a logical palette into the HDC
- // (tell windows to translate pixel from other palettes to our custom one
- // and vice versa)
- // Realize tells it to also reset the system palette to this one.
- void DoSelectPalette(bool realize = false);
-
- // Find out what palette our parent window has, then select it into the dc
- void InitializePalette();
-#endif // wxUSE_PALETTE
-
-protected:
- // common part of DoDrawText() and DoDrawRotatedText()
- void DrawAnyText(const wxString& text, wxCoord x, wxCoord y);
-
- // implementation of DoGetSize() for wxScreen/PrinterDC: this simply
- // returns the size of the entire device this DC is associated with
- //
- // notice that we intentionally put it in a separate function instead of
- // DoGetSize() itself because we want it to remain pure virtual both
- // because each derived class should take care to define it as needed (this
- // implementation is not at all always appropriate) and because we want
- // wxDC to be an ABC to prevent it from being created directly
- void GetDeviceSize(int *width, int *height) const;
-
-
- // MSW-specific member variables
- // -----------------------------
-
- // the window associated with this DC (may be NULL)
- wxWindow *m_canvas;
-
- wxBitmap m_selectedBitmap;
-
- // TRUE => DeleteDC() in dtor, FALSE => only ReleaseDC() it
- bool m_bOwnsDC:1;
-
- // our HDC
- WXHDC m_hDC;
-
- // Store all old GDI objects when do a SelectObject, so we can select them
- // back in (this unselecting user's objects) so we can safely delete the
- // DC.
- WXHBITMAP m_oldBitmap;
- WXHPEN m_oldPen;
- WXHBRUSH m_oldBrush;
- WXHFONT m_oldFont;
-
-#if wxUSE_PALETTE
- WXHPALETTE m_oldPalette;
-#endif // wxUSE_PALETTE
-
-#if wxUSE_DC_CACHEING
- static wxObjectList sm_bitmapCache;
- static wxObjectList sm_dcCache;
-#endif
-
- DECLARE_CLASS(wxPalmDCImpl)
- wxDECLARE_NO_COPY_CLASS(wxPalmDCImpl);
-};
-
-// ----------------------------------------------------------------------------
-// wxDCTemp: a wxDC which doesn't free the given HDC (used by wxWidgets
-// only/mainly)
-// ----------------------------------------------------------------------------
-
-class WXDLLIMPEXP_CORE wxDCTempImpl : public wxPalmDCImpl
-{
-public:
- // construct a temporary DC with the specified HDC and size (it should be
- // specified whenever we know it for this HDC)
- wxDCTempImpl(wxDC *owner, WXHDC hdc, const wxSize& size )
- : wxPalmDCImpl( owner, hdc ),
- m_size(size)
- {
- }
-
- virtual ~wxDCTempImpl()
- {
- // prevent base class dtor from freeing it
- SetHDC((WXHDC)NULL);
- }
-
- virtual void DoGetSize(int *w, int *h) const
- {
- wxASSERT_MSG( m_size.IsFullySpecified(),
- wxT("size of this DC hadn't been set and is unknown") );
-
- if ( w )
- *w = m_size.x;
- if ( h )
- *h = m_size.y;
- }
-
-private:
- // size of this DC must be explicitly set by SetSize() as we have no way to
- // find it ourselves
- const wxSize m_size;
-
- wxDECLARE_NO_COPY_CLASS(wxDCTempImpl);
-};
-
-class WXDLLIMPEXP_CORE wxDCTemp : public wxDC
-{
-public:
- wxDCTemp(WXHDC hdc, const wxSize& size = wxDefaultSize)
- : wxDC(new wxDCTempImpl(this, hdc, size))
- {
- }
-};
-
-#endif
- // _WX_PALM_DC_H_
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/dcclient.h
-// Purpose: wxClientDC class
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_DCCLIENT_H_
-#define _WX_DCCLIENT_H_
-
-// ----------------------------------------------------------------------------
-// headers
-// ----------------------------------------------------------------------------
-
-#include "wx/dc.h"
-#include "wx/palmos/dc.h"
-#include "wx/dcclient.h"
-#include "wx/dynarray.h"
-
-// ----------------------------------------------------------------------------
-// array types
-// ----------------------------------------------------------------------------
-
-// this one if used by wxPaintDC only
-struct WXDLLIMPEXP_FWD_CORE wxPaintDCInfo;
-
-WX_DECLARE_EXPORTED_OBJARRAY(wxPaintDCInfo, wxArrayDCInfo);
-
-// ----------------------------------------------------------------------------
-// DC classes
-// ----------------------------------------------------------------------------
-
-class WXDLLIMPEXP_CORE wxWindowDCImpl : public wxPalmDCImpl
-{
-public:
- // default ctor
- wxWindowDCImpl( wxDC *owner );
-
- // Create a DC corresponding to the whole window
- wxWindowDCImpl( wxDC *owner, wxWindow *win );
-
- virtual void DoGetSize(int *width, int *height) const;
-
-protected:
- // initialize the newly created DC
- void InitDC();
-
- DECLARE_CLASS(wxWindowDCImpl)
- wxDECLARE_NO_COPY_CLASS(wxWindowDCImpl);
-};
-
-class WXDLLIMPEXP_CORE wxClientDCImpl : public wxWindowDCImpl
-{
-public:
- // default ctor
- wxClientDCImpl( wxDC *owner );
-
- // Create a DC corresponding to the client area of the window
- wxClientDCImpl( wxDC *owner, wxWindow *win );
-
- virtual ~wxClientDCImpl();
-
- virtual void DoGetSize(int *width, int *height) const;
-
-protected:
- void InitDC();
-
- DECLARE_CLASS(wxClientDCImpl)
- wxDECLARE_NO_COPY_CLASS(wxClientDCImpl);
-};
-
-class WXDLLIMPEXP_CORE wxPaintDCImpl : public wxClientDCImpl
-{
-public:
- wxPaintDCImpl( wxDC *owner );
-
- // Create a DC corresponding for painting the window in OnPaint()
- wxPaintDCImpl( wxDC *owner, wxWindow *win );
-
- virtual ~wxPaintDCImpl();
-
- // find the entry for this DC in the cache (keyed by the window)
- static WXHDC FindDCInCache(wxWindow* win);
-
-protected:
- static wxArrayDCInfo ms_cache;
-
- // find the entry for this DC in the cache (keyed by the window)
- wxPaintDCInfo *FindInCache(size_t *index = NULL) const;
-
- DECLARE_CLASS(wxPaintDCImpl)
- wxDECLARE_NO_COPY_CLASS(wxPaintDCImpl);
-};
-
-#endif
- // _WX_DCCLIENT_H_
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/dcmemory.h
-// Purpose: wxMemoryDC class
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_DCMEMORY_H_
-#define _WX_DCMEMORY_H_
-
-#include "wx/dcmemory.h"
-#include "wx/palmos/dc.h"
-
-class WXDLLIMPEXP_CORE wxMemoryDCImpl: public wxPalmDCImpl
-{
-public:
- wxMemoryDCImpl( wxMemoryDC *owner );
- wxMemoryDCImpl( wxMemoryDC *owner, wxBitmap& bitmap );
- wxMemoryDCImpl( wxMemoryDC *owner, wxDC *dc ); // Create compatible DC
-
- // override some base class virtuals
- virtual void DoGetSize(int* width, int* height) const;
- virtual void DoSelect(const wxBitmap& bitmap);
-
- virtual wxBitmap DoGetAsBitmap(const wxRect* subrect) const;
-
-protected:
- // create DC compatible with the given one or screen if dc == NULL
- bool CreateCompatible(wxDC *dc);
-
- // initialize the newly created DC
- void Init();
-
- DECLARE_CLASS(wxMemoryDCImpl)
- wxDECLARE_NO_COPY_CLASS(wxMemoryDCImpl);
-};
-
-#endif
- // _WX_DCMEMORY_H_
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/dcprint.h
-// Purpose: wxPrinterDC class
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_DCPRINT_H_
-#define _WX_DCPRINT_H_
-
-#if wxUSE_PRINTING_ARCHITECTURE
-
-#include "wx/dc.h"
-#include "wx/cmndata.h"
-
-class WXDLLIMPEXP_CORE wxPrinterDC : public wxDC
-{
-public:
- // Create a printer DC (obsolete function: use wxPrintData version now)
- wxPrinterDC(const wxString& driver, const wxString& device, const wxString& output, bool interactive = TRUE, wxPrintOrientation orientation = wxPORTRAIT);
-
- // Create from print data
- wxPrinterDC(const wxPrintData& data);
-
- wxPrinterDC(WXHDC theDC);
-
- // override some base class virtuals
- virtual bool StartDoc(const wxString& message);
- virtual void EndDoc();
- virtual void StartPage();
- virtual void EndPage();
-
- wxRect GetPaperRect() const;
-
-protected:
- virtual void DoDrawBitmap(const wxBitmap &bmp, wxCoord x, wxCoord y,
- bool useMask = FALSE);
- virtual bool DoBlit(wxCoord xdest, wxCoord ydest,
- wxCoord width, wxCoord height,
- wxDC *source, wxCoord xsrc, wxCoord ysrc,
- wxRasterOperationMode rop = wxCOPY, bool useMask = FALSE,
- wxCoord xsrcMask = -1, wxCoord ysrcMask = -1);
-
- // init the dc
- void Init();
-
- wxPrintData m_printData;
-
-private:
- DECLARE_DYNAMIC_CLASS_NO_COPY(wxPrinterDC)
-};
-
-// Gets an HDC for the default printer configuration
-// WXHDC WXDLLIMPEXP_CORE wxGetPrinterDC(int orientation);
-
-// Gets an HDC for the specified printer configuration
-WXHDC WXDLLIMPEXP_CORE wxGetPrinterDC(const wxPrintData& data);
-
-#endif // wxUSE_PRINTING_ARCHITECTURE
-
-#endif
- // _WX_DCPRINT_H_
-
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/dcscreen.h
-// Purpose: wxScreenDC class
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_DCSCREEN_H_
-#define _WX_DCSCREEN_H_
-
-#include "wx/dcscreen.h"
-#include "wx/palmos/dc.h"
-
-class WXDLLIMPEXP_CORE wxScreenDCImpl : public wxPalmDCImpl
-{
-public:
- // Create a DC representing the whole screen
- wxScreenDCImpl( wxScreenDC *owner );
-
- virtual void DoGetSize(int *w, int *h) const;
-
- DECLARE_CLASS(wxScreenDCImpl)
- wxDECLARE_NO_COPY_CLASS(wxScreenDCImpl);
-};
-
-#endif
- // _WX_DCSCREEN_H_
-
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/dialog.h
-// Purpose: wxDialog class
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_DIALOG_H_
-#define _WX_DIALOG_H_
-
-#include "wx/panel.h"
-
-//WXDLLIMPEXP_DATA_CORE(extern const wxChar) wxDialogNameStr[];
-
-class WXDLLIMPEXP_FWD_CORE wxDialogModalData;
-
-// Dialog boxes
-class WXDLLIMPEXP_CORE wxDialog : public wxDialogBase
-{
-public:
- wxDialog() { Init(); }
-
- // full ctor
- wxDialog(wxWindow *parent, wxWindowID id,
- const wxString& title,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = wxDEFAULT_DIALOG_STYLE,
- const wxString& name = wxDialogNameStr)
- {
- Init();
-
- (void)Create(parent, id, title, pos, size, style, name);
- }
-
- bool Create(wxWindow *parent, wxWindowID id,
- const wxString& title,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = wxDEFAULT_DIALOG_STYLE,
- const wxString& name = wxDialogNameStr);
-
- virtual ~wxDialog();
-
- // return true if we're showing the dialog modally
- virtual bool IsModal() const { return m_modalData != NULL; }
-
- // show the dialog modally and return the value passed to EndModal()
- virtual int ShowModal();
-
- // may be called to terminate the dialog with the given return code
- virtual void EndModal(int retCode);
-
- // implementation only from now on
- // -------------------------------
-
- // override some base class virtuals
- virtual bool Show(bool show = true);
-
- virtual void Raise();
-
-protected:
- // common part of all ctors
- void Init();
-
-private:
- wxWindow* m_oldFocus;
- bool m_endModalCalled; // allow for closing within InitDialog
-
- // this pointer is non-NULL only while the modal event loop is running
- wxDialogModalData *m_modalData;
-
-
- DECLARE_DYNAMIC_CLASS(wxDialog)
- wxDECLARE_NO_COPY_CLASS(wxDialog);
-};
-
-#endif
- // _WX_DIALOG_H_
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/dib.h
-// Purpose: wxDIB class representing device independent bitmaps
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_PALMOS_DIB_H_
-#define _WX_PALMOS_DIB_H_
-
-class WXDLLIMPEXP_FWD_CORE wxBitmap;
-class WXDLLIMPEXP_FWD_CORE wxPalette;
-
-#include "wx/msw/private.h"
-
-#if wxUSE_WXDIB
-
-// ----------------------------------------------------------------------------
-// wxDIB: represents a DIB section
-// ----------------------------------------------------------------------------
-
-class WXDLLIMPEXP_CORE wxDIB
-{
-public:
- // ctors and such
- // --------------
-
- // create an uninitialized DIB with the given width, height and depth (only
- // 24 and 32 bpp DIBs are currently supported)
- //
- // after using this ctor, GetData() and GetHandle() may be used if IsOk()
- // returns true
- wxDIB(int width, int height, int depth)
- { Init(); (void)Create(width, height, depth); }
-
- // create a DIB from the DDB
- wxDIB(const wxBitmap& bmp)
- { Init(); (void)Create(bmp); }
-
- // load a DIB from file (any depth is supoprted here unlike above)
- //
- // as above, use IsOk() to see if the bitmap was loaded successfully
- wxDIB(const wxString& filename)
- { Init(); (void)Load(filename); }
-
- // same as the corresponding ctors but with return value
- bool Create(int width, int height, int depth);
- bool Create(const wxBitmap& bmp);
- bool Load(const wxString& filename);
-
- // dtor is not virtual, this class is not meant to be used polymorphically
- ~wxDIB();
-
-
- // operations
- // ----------
-
-#ifndef __WXWINCE__
- // create a bitmap compatiblr with the given HDC (or screen by default) and
- // return its handle, the caller is responsible for freeing it (using
- // DeleteObject())
- HBITMAP CreateDDB(HDC hdc = 0) const;
-#endif // !__WXWINCE__
-
- // get the handle from the DIB and reset it, i.e. this object won't destroy
- // the DIB after this (but the caller should do it)
- HBITMAP Detach() { HBITMAP hbmp = m_handle; m_handle = 0; return hbmp; }
-
-#if wxUSE_PALETTE
- // create a palette for this DIB (always a trivial/default one for 24bpp)
- wxPalette *CreatePalette() const;
-#endif // wxUSE_PALETTE
-
- // save the DIB as a .BMP file to the file with the given name
- bool Save(const wxString& filename);
-
-
- // accessors
- // ---------
-
- // return true if DIB was successfully created, false otherwise
- bool IsOk() const { return m_handle != 0; }
-
- // get the bitmap size
- wxSize GetSize() const { DoGetObject(); return wxSize(m_width, m_height); }
- int GetWidth() const { DoGetObject(); return m_width; }
- int GetHeight() const { DoGetObject(); return m_height; }
-
- // get the number of bits per pixel, or depth
- int GetDepth() const { DoGetObject(); return m_depth; }
-
- // get the DIB handle
- HBITMAP GetHandle() const { return m_handle; }
-
- // get raw pointer to bitmap bits, you should know what you do if you
- // decide to use it
- void *GetData() const { DoGetObject(); return m_data; }
-
-
- // HBITMAP conversion
- // ------------------
-
- // these functions are only used by wxWidgets internally right now, please
- // don't use them directly if possible as they're subject to change
-
-#ifndef __WXWINCE__
- // creates a DDB compatible with the given (or screen) DC from either
- // a plain DIB or a DIB section (in which case the last parameter must be
- // non NULL)
- static HBITMAP ConvertToBitmap(const BITMAPINFO *pbi,
- HDC hdc = 0,
- void *bits = NULL);
-
- // create a plain DIB (not a DIB section) from a DDB, the caller is
- // responsable for freeing it using ::GlobalFree()
- static HGLOBAL ConvertFromBitmap(HBITMAP hbmp);
-
- // creates a DIB from the given DDB or calculates the space needed by it:
- // if pbi is NULL, only the space is calculated, otherwise pbi is supposed
- // to point at BITMAPINFO of the correct size which is filled by this
- // function (this overload is needed for wxBitmapDataObject code in
- // src/msw/ole/dataobj.cpp)
- static size_t ConvertFromBitmap(BITMAPINFO *pbi, HBITMAP hbmp);
-#endif // __WXWINCE__
-
-
- // wxImage conversion
- // ------------------
-
-#if wxUSE_IMAGE
- // create a DIB from the given image, the DIB will be either 24 or 32 (if
- // the image has alpha channel) bpp
- wxDIB(const wxImage& image) { Init(); (void)Create(image); }
-
- // same as the above ctor but with the return code
- bool Create(const wxImage& image);
-
- // create wxImage having the same data as this DIB
- wxImage ConvertToImage() const;
-#endif // wxUSE_IMAGE
-
-
- // helper functions
- // ----------------
-
- // return the size of one line in a DIB with given width and depth: the
- // point here is that as the scan lines need to be DWORD aligned so we may
- // need to add some padding
- static unsigned long GetLineSize(int width, int depth)
- {
- return ((width*depth + 31) & ~31) >> 3;
- }
-
-private:
- // common part of all ctors
- void Init();
-
- // free resources
- void Free();
-
- // initialize the contents from the provided DDB (Create() must have been
- // already called)
- bool CopyFromDDB(HBITMAP hbmp);
-
-
- // the DIB section handle, 0 if invalid
- HBITMAP m_handle;
-
- // NB: we could store only m_handle and not any of the other fields as
- // we may always retrieve them from it using ::GetObject(), but we
- // decide to still store them for efficiency concerns -- however if we
- // don't have them from the very beginning (e.g. DIB constructed from a
- // bitmap), we only retrieve them when necessary and so these fields
- // should *never* be accessed directly, even from inside wxDIB code
-
- // function which must be called before accessing any members and which
- // gets their values from m_handle, if not done yet
- void DoGetObject() const;
-
- // pointer to DIB bits, may be NULL
- void *m_data;
-
- // size and depth of the image
- int m_width,
- m_height,
- m_depth;
-
- // in some cases we could be using a handle which we didn't create and in
- // this case we shouldn't free it neither -- this flag tell us if this is
- // the case
- bool m_ownsHandle;
-
-
- // DIBs can't be copied
- wxDIB(const wxDIB&);
- wxDIB& operator=(const wxDIB&);
-};
-
-// ----------------------------------------------------------------------------
-// inline functions implementation
-// ----------------------------------------------------------------------------
-
-inline
-void wxDIB::Init()
-{
- m_handle = 0;
- m_ownsHandle = true;
-
- m_data = NULL;
-
- m_width =
- m_height =
- m_depth = 0;
-}
-
-inline
-void wxDIB::Free()
-{
- if ( m_handle && m_ownsHandle )
- {
- if ( !::DeleteObject(m_handle) )
- {
- wxLogLastError(wxT("DeleteObject(hDIB)"));
- }
-
- Init();
- }
-}
-
-inline wxDIB::~wxDIB()
-{
- Free();
-}
-
-#endif
- // wxUSE_WXDIB
-
-#endif // _WX_PALMOS_DIB_H_
-
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/dirdlg.h
-// Purpose: wxDirDialog class
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_DIRDLG_H_
-#define _WX_DIRDLG_H_
-
-class WXDLLIMPEXP_CORE wxDirDialog : public wxDirDialogBase
-{
-public:
- wxDirDialog(wxWindow *parent,
- const wxString& message = wxDirSelectorPromptStr,
- const wxString& defaultPath = wxEmptyString,
- long style = 0,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- const wxString& name = wxDirDialogNameStr);
-
- void SetPath(const wxString& path);
-
- virtual int ShowModal();
-
-private:
- DECLARE_DYNAMIC_CLASS_NO_COPY(wxDirDialog)
-};
-
-#endif
- // _WX_DIRDLG_H_
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/dragimag.h
-// Purpose: wxDragImage class: a kind of a cursor, that can cope
-// with more sophisticated images
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_DRAGIMAG_H_
-#define _WX_DRAGIMAG_H_
-
-#include "wx/bitmap.h"
-#include "wx/icon.h"
-#include "wx/cursor.h"
-#include "wx/treectrl.h"
-#include "wx/listctrl.h"
-
-// If 1, use a simple wxCursor instead of ImageList_SetDragCursorImage
-#define wxUSE_SIMPLER_DRAGIMAGE 0
-
-/*
- To use this class, create a wxDragImage when you start dragging, for example:
-
- void MyTreeCtrl::OnBeginDrag(wxTreeEvent& event)
- {
- CaptureMouse();
-
- m_dragImage = new wxDragImage(* this, itemId);
- m_dragImage->BeginDrag(wxPoint(0, 0), this);
- m_dragImage->Move(pt, this);
- m_dragImage->Show(this);
- ...
- }
-
- In your OnMouseMove function, hide the image, do any display updating required,
- then move and show the image again:
-
- void MyTreeCtrl::OnMouseMove(wxMouseEvent& event)
- {
- if (m_dragMode == MY_TREE_DRAG_NONE)
- {
- event.Skip();
- return;
- }
-
- // Prevent screen corruption by hiding the image
- if (m_dragImage)
- m_dragImage->Hide(this);
-
- // Do some updating of the window, such as highlighting the drop target
- ...
-
- // Move and show the image again
- m_dragImage->Move(event.GetPosition(), this);
- m_dragImage->Show(this);
- }
-
- Eventually we end the drag and delete the drag image.
-
- void MyTreeCtrl::OnLeftUp(wxMouseEvent& event)
- {
- ...
-
- // End the drag and delete the drag image
- if (m_dragImage)
- {
- m_dragImage->EndDrag(this);
- delete m_dragImage;
- m_dragImage = NULL;
- }
- ReleaseMouse();
- }
-*/
-
-/*
- Notes for Unix version:
- Can we simply use cursors instead, creating a cursor dynamically, setting it into the window
- in BeginDrag, and restoring the old cursor in EndDrag?
- For a really bog-standard implementation, we could simply use a normal dragging cursor
- and ignore the image.
-*/
-
-/*
- * wxDragImage
- */
-
-class WXDLLIMPEXP_CORE wxDragImage: public wxObject
-{
-public:
-
- // Ctors & dtor
- ////////////////////////////////////////////////////////////////////////////
-
- wxDragImage();
- wxDragImage(const wxBitmap& image, const wxCursor& cursor = wxNullCursor)
- {
- Init();
-
- Create(image, cursor);
- }
-
- // Deprecated form of the above
- wxDragImage(const wxBitmap& image, const wxCursor& cursor, const wxPoint& cursorHotspot)
- {
- Init();
-
- Create(image, cursor, cursorHotspot);
- }
-
- wxDragImage(const wxIcon& image, const wxCursor& cursor = wxNullCursor)
- {
- Init();
-
- Create(image, cursor);
- }
-
- // Deprecated form of the above
- wxDragImage(const wxIcon& image, const wxCursor& cursor, const wxPoint& cursorHotspot)
- {
- Init();
-
- Create(image, cursor, cursorHotspot);
- }
-
- wxDragImage(const wxString& str, const wxCursor& cursor = wxNullCursor)
- {
- Init();
-
- Create(str, cursor);
- }
-
- // Deprecated form of the above
- wxDragImage(const wxString& str, const wxCursor& cursor, const wxPoint& cursorHotspot)
- {
- Init();
-
- Create(str, cursor, cursorHotspot);
- }
-
-#if wxUSE_TREECTRL
- wxDragImage(const wxTreeCtrl& treeCtrl, wxTreeItemId& id)
- {
- Init();
-
- Create(treeCtrl, id);
- }
-#endif
-
-#if wxUSE_LISTCTRL
- wxDragImage(const wxListCtrl& listCtrl, long id)
- {
- Init();
-
- Create(listCtrl, id);
- }
-#endif
-
- virtual ~wxDragImage();
-
- // Attributes
- ////////////////////////////////////////////////////////////////////////////
-
- // Operations
- ////////////////////////////////////////////////////////////////////////////
-
- // Create a drag image from a bitmap and optional cursor
- bool Create(const wxBitmap& image, const wxCursor& cursor = wxNullCursor);
- bool Create(const wxBitmap& image, const wxCursor& cursor, const wxPoint& WXUNUSED(cursorHotspot))
- {
- wxLogDebug(wxT("wxDragImage::Create: use of a cursor hotspot is now deprecated. Please omit this argument."));
- return Create(image, cursor);
- }
-
- // Create a drag image from an icon and optional cursor
- bool Create(const wxIcon& image, const wxCursor& cursor = wxNullCursor);
- bool Create(const wxIcon& image, const wxCursor& cursor, const wxPoint& WXUNUSED(cursorHotspot))
- {
- wxLogDebug(wxT("wxDragImage::Create: use of a cursor hotspot is now deprecated. Please omit this argument."));
- return Create(image, cursor);
- }
-
- // Create a drag image from a string and optional cursor
- bool Create(const wxString& str, const wxCursor& cursor = wxNullCursor);
- bool Create(const wxString& str, const wxCursor& cursor, const wxPoint& WXUNUSED(cursorHotspot))
- {
- wxLogDebug(wxT("wxDragImage::Create: use of a cursor hotspot is now deprecated. Please omit this argument."));
- return Create(str, cursor);
- }
-
-#if wxUSE_TREECTRL
- // Create a drag image for the given tree control item
- bool Create(const wxTreeCtrl& treeCtrl, wxTreeItemId& id);
-#endif
-
-#if wxUSE_LISTCTRL
- // Create a drag image for the given list control item
- bool Create(const wxListCtrl& listCtrl, long id);
-#endif
-
- // Begin drag. hotspot is the location of the drag position relative to the upper-left
- // corner of the image.
- bool BeginDrag(const wxPoint& hotspot, wxWindow* window, bool fullScreen = false, wxRect* rect = NULL);
-
- // Begin drag. hotspot is the location of the drag position relative to the upper-left
- // corner of the image. This is full screen only. fullScreenRect gives the
- // position of the window on the screen, to restrict the drag to.
- bool BeginDrag(const wxPoint& hotspot, wxWindow* window, wxWindow* fullScreenRect);
-
- // End drag
- bool EndDrag();
-
- // Move the image: call from OnMouseMove. Pt is in window client coordinates if window
- // is non-NULL, or in screen coordinates if NULL.
- bool Move(const wxPoint& pt);
-
- // Show the image
- bool Show();
-
- // Hide the image
- bool Hide();
-
- // Implementation
- ////////////////////////////////////////////////////////////////////////////
-
- // Initialize variables
- void Init();
-
- // Returns the native image list handle
- WXHIMAGELIST GetHIMAGELIST() const { return m_hImageList; }
-
-#if !wxUSE_SIMPLER_DRAGIMAGE
- // Returns the native image list handle for the cursor
- WXHIMAGELIST GetCursorHIMAGELIST() const { return m_hCursorImageList; }
-#endif
-
-protected:
- WXHIMAGELIST m_hImageList;
-
-#if wxUSE_SIMPLER_DRAGIMAGE
- wxCursor m_oldCursor;
-#else
- WXHIMAGELIST m_hCursorImageList;
-#endif
-
- wxCursor m_cursor;
-// wxPoint m_cursorHotspot; // Obsolete
- wxPoint m_position;
- wxWindow* m_window;
- wxRect m_boundingRect;
- bool m_fullScreen;
-
-private:
- DECLARE_DYNAMIC_CLASS(wxDragImage)
- wxDECLARE_NO_COPY_CLASS(wxDragImage);
-};
-
-#endif
- // _WX_DRAGIMAG_H_
+++ /dev/null
-///////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/enhmeta.h
-// Purpose: wxEnhMetaFile class for PalmOS
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-///////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_PALMOS_ENHMETA_H_
-#define _WX_PALMOS_ENHMETA_H_
-
-#include "wx/dc.h"
-#include "wx/gdiobj.h"
-
-#if wxUSE_DRAG_AND_DROP
- #include "wx/dataobj.h"
-#endif
-
-// ----------------------------------------------------------------------------
-// wxEnhMetaFile: encapsulation of Win32 HENHMETAFILE
-// ----------------------------------------------------------------------------
-
-class WXDLLIMPEXP_CORE wxEnhMetaFile : public wxGDIObject
-{
-public:
- wxEnhMetaFile(const wxString& file = wxEmptyString) : m_filename(file)
- { Init(); }
- wxEnhMetaFile(const wxEnhMetaFile& metafile)
- { Init(); Assign(metafile); }
- wxEnhMetaFile& operator=(const wxEnhMetaFile& metafile)
- { Free(); Assign(metafile); return *this; }
-
- virtual ~wxEnhMetaFile()
- { Free(); }
-
- // display the picture stored in the metafile on the given DC
- bool Play(wxDC *dc, wxRect *rectBound = NULL);
-
- // accessors
- virtual bool IsOk() const { return m_hMF != 0; }
-
- wxSize GetSize() const;
- int GetWidth() const { return GetSize().x; }
- int GetHeight() const { return GetSize().y; }
-
- const wxString& GetFileName() const { return m_filename; }
-
- // copy the metafile to the clipboard: the width and height parameters are
- // for backwards compatibility (with wxMetaFile) only, they are ignored by
- // this method
- bool SetClipboard(int width = 0, int height = 0);
-
- // implementation
- WXHANDLE GetHENHMETAFILE() const { return m_hMF; }
- void SetHENHMETAFILE(WXHANDLE hMF) { Free(); m_hMF = hMF; }
-
-protected:
- void Init() { m_hMF = 0; }
- void Free();
- void Assign(const wxEnhMetaFile& mf);
-
-private:
- wxString m_filename;
- WXHANDLE m_hMF;
-
- DECLARE_DYNAMIC_CLASS(wxEnhMetaFile)
-};
-
-// ----------------------------------------------------------------------------
-// wxEnhMetaFileDC: allows to create a wxEnhMetaFile
-// ----------------------------------------------------------------------------
-
-class WXDLLIMPEXP_CORE wxEnhMetaFileDC : public wxDC
-{
-public:
- // the ctor parameters specify the filename (empty for memory metafiles),
- // the metafile picture size and the optional description/comment
- wxEnhMetaFileDC(const wxString& filename = wxEmptyString,
- int width = 0, int height = 0,
- const wxString& description = wxEmptyString);
-
- virtual ~wxEnhMetaFileDC();
-
- // obtain a pointer to the new metafile (caller should delete it)
- wxEnhMetaFile *Close();
-
-private:
- DECLARE_DYNAMIC_CLASS_NO_COPY(wxEnhMetaFileDC)
-};
-
-#if wxUSE_DRAG_AND_DROP
-
-// ----------------------------------------------------------------------------
-// wxEnhMetaFileDataObject is a specialization of wxDataObject for enh metafile
-// ----------------------------------------------------------------------------
-
-// notice that we want to support both CF_METAFILEPICT and CF_ENHMETAFILE and
-// so we derive from wxDataObject and not from wxDataObjectSimple
-class WXDLLIMPEXP_CORE wxEnhMetaFileDataObject : public wxDataObject
-{
-public:
- // ctors
- wxEnhMetaFileDataObject() { }
- wxEnhMetaFileDataObject(const wxEnhMetaFile& metafile)
- : m_metafile(metafile) { }
-
- // virtual functions which you may override if you want to provide data on
- // demand only - otherwise, the trivial default versions will be used
- virtual void SetMetafile(const wxEnhMetaFile& metafile)
- { m_metafile = metafile; }
- virtual wxEnhMetaFile GetMetafile() const
- { return m_metafile; }
-
- // implement base class pure virtuals
- virtual wxDataFormat GetPreferredFormat(Direction dir) const;
- virtual size_t GetFormatCount(Direction dir) const;
- virtual void GetAllFormats(wxDataFormat *formats, Direction dir) const;
- virtual size_t GetDataSize(const wxDataFormat& format) const;
- virtual bool GetDataHere(const wxDataFormat& format, void *buf) const;
- virtual bool SetData(const wxDataFormat& format, size_t len,
- const void *buf);
-
-protected:
- wxEnhMetaFile m_metafile;
-
- wxDECLARE_NO_COPY_CLASS(wxEnhMetaFileDataObject);
-};
-
-
-// ----------------------------------------------------------------------------
-// wxEnhMetaFileSimpleDataObject does derive from wxDataObjectSimple which
-// makes it more convenient to use (it can be used with wxDataObjectComposite)
-// at the price of not supoprting any more CF_METAFILEPICT but only
-// CF_ENHMETAFILE
-// ----------------------------------------------------------------------------
-
-class WXDLLIMPEXP_CORE wxEnhMetaFileSimpleDataObject : public wxDataObjectSimple
-{
-public:
- // ctors
- wxEnhMetaFileSimpleDataObject() : wxDataObjectSimple(wxDF_ENHMETAFILE) { }
- wxEnhMetaFileSimpleDataObject(const wxEnhMetaFile& metafile)
- : wxDataObjectSimple(wxDF_ENHMETAFILE), m_metafile(metafile) { }
-
- // virtual functions which you may override if you want to provide data on
- // demand only - otherwise, the trivial default versions will be used
- virtual void SetEnhMetafile(const wxEnhMetaFile& metafile)
- { m_metafile = metafile; }
- virtual wxEnhMetaFile GetEnhMetafile() const
- { return m_metafile; }
-
- // implement base class pure virtuals
- virtual size_t GetDataSize() const;
- virtual bool GetDataHere(void *buf) const;
- virtual bool SetData(size_t len, const void *buf);
-
- virtual size_t GetDataSize(const wxDataFormat& WXUNUSED(format)) const
- { return GetDataSize(); }
- virtual bool GetDataHere(const wxDataFormat& WXUNUSED(format),
- void *buf) const
- { return GetDataHere(buf); }
- virtual bool SetData(const wxDataFormat& WXUNUSED(format),
- size_t len, const void *buf)
- { return SetData(len, buf); }
-
-protected:
- wxEnhMetaFile m_metafile;
-
- wxDECLARE_NO_COPY_CLASS(wxEnhMetaFileSimpleDataObject);
-};
-
-#endif // wxUSE_DRAG_AND_DROP
-
-#endif // _WX_PALMOS_ENHMETA_H_
+++ /dev/null
-///////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/evtloop.h
-// Purpose: wxEventLoop class for Palm OS
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 2004-10-14
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-///////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_PALMOS_EVTLOOP_H_
-#define _WX_PALMOS_EVTLOOP_H_
-
-// ----------------------------------------------------------------------------
-// wxEventLoop
-// ----------------------------------------------------------------------------
-
-class WXDLLIMPEXP_CORE wxGUIEventLoop : public wxEventLoopBase
-{
-public:
- wxGUIEventLoop();
-
- // implement base class pure virtuals
- virtual int Run();
- virtual void Exit(int rc = 0);
- virtual bool Pending() const;
- virtual bool Dispatch();
- virtual int DispatchTimeout(unsigned long timeout);
- virtual bool IsRunning() const;
- virtual bool YieldFor(long eventsToProcess);
-
- // MSW-specific methods
- // --------------------
-
- // preprocess a message, return true if processed (i.e. no further
- // dispatching required)
- virtual bool PreProcessMessage(WXMSG *msg);
-
- // process a single message
- virtual void ProcessMessage(WXMSG *msg);
- virtual void WakeUp();
-
-protected:
- // should we exit the loop?
- bool m_shouldExit;
-
- // the loop exit code
- int m_exitcode;
-};
-
-#endif // _WX_PALMOS_EVTLOOP_H_
-
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/fdrepdlg.h
-// Purpose: wxFindReplaceDialog class
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_PALMOS_FDREPDLG_H_
-#define _WX_PALMOS_FDREPDLG_H_
-
-// ----------------------------------------------------------------------------
-// wxFindReplaceDialog: dialog for searching / replacing text
-// ----------------------------------------------------------------------------
-
-class WXDLLIMPEXP_CORE wxFindReplaceDialog : public wxFindReplaceDialogBase
-{
-public:
- // ctors and such
- wxFindReplaceDialog() { Init(); }
- wxFindReplaceDialog(wxWindow *parent,
- wxFindReplaceData *data,
- const wxString &title,
- int style = 0);
-
- bool Create(wxWindow *parent,
- wxFindReplaceData *data,
- const wxString &title,
- int style = 0);
-
- virtual ~wxFindReplaceDialog();
-
- // implementation only from now on
-
- wxFindReplaceDialogImpl *GetImpl() const { return m_impl; }
-
- // override some base class virtuals
- virtual bool Show(bool show = TRUE);
- virtual void SetTitle( const wxString& title);
- virtual wxString GetTitle() const;
-
-protected:
- virtual void DoGetSize(int *width, int *height) const;
- virtual void DoGetClientSize(int *width, int *height) const;
- virtual void DoSetSize(int x, int y,
- int width, int height,
- int sizeFlags = wxSIZE_AUTO);
-
- void Init();
-
- wxString m_title;
-
- wxFindReplaceDialogImpl *m_impl;
-
- DECLARE_DYNAMIC_CLASS(wxFindReplaceDialog)
- wxDECLARE_NO_COPY_CLASS(wxFindReplaceDialog);
-};
-
-#endif // _WX_PALMOS_FDREPDLG_H_
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/filedlg.h
-// Purpose: wxFileDialog class
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_FILEDLG_H_
-#define _WX_FILEDLG_H_
-
-//-------------------------------------------------------------------------
-// wxFileDialog
-//-------------------------------------------------------------------------
-
-class WXDLLIMPEXP_CORE wxFileDialog: public wxFileDialogBase
-{
-public:
- wxFileDialog(wxWindow *parent,
- const wxString& message = wxFileSelectorPromptStr,
- const wxString& defaultDir = wxEmptyString,
- const wxString& defaultFile = wxEmptyString,
- const wxString& wildCard = wxFileSelectorDefaultWildcardStr,
- long style = wxFD_DEFAULT_STYLE,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& sz = wxDefaultSize,
- const wxString& name = wxFileDialogNameStr);
-
- virtual void SetPath(const wxString& path);
- virtual void GetPaths(wxArrayString& paths) const;
- virtual void GetFilenames(wxArrayString& files) const;
-
- virtual int ShowModal();
-
-private:
- wxArrayString m_fileNames;
-
- DECLARE_DYNAMIC_CLASS(wxFileDialog)
- wxDECLARE_NO_COPY_CLASS(wxFileDialog);
-};
-
-#endif // _WX_FILEDLG_H_
-
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/font.h
-// Purpose: wxFont class
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by: Yunhui Fu
-// Created: 10/14/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_FONT_H_
-#define _WX_FONT_H_
-
-#include "wx/gdicmn.h"
-
-// ----------------------------------------------------------------------------
-// wxFont
-// ----------------------------------------------------------------------------
-
-class WXDLLIMPEXP_CORE wxFont : public wxFontBase
-{
-public:
- // ctors and such
- wxFont() { }
-
-#if FUTURE_WXWIN_COMPATIBILITY_3_0
- wxFont(int size,
- int family,
- int style,
- int weight,
- bool underlined = false,
- const wxString& face = wxEmptyString,
- wxFontEncoding encoding = wxFONTENCODING_DEFAULT)
- {
- (void)Create(size, (wxFontFamily)family, (wxFontStyle)style, (wxFontWeight)weight, underlined, face, encoding);
- }
-#endif
-
- wxFont(int size,
- wxFontFamily family,
- wxFontStyle style,
- wxFontWeight weight,
- bool underlined = false,
- const wxString& face = wxEmptyString,
- wxFontEncoding encoding = wxFONTENCODING_DEFAULT)
- {
- Create(size, family, style, weight, underlined, face, encoding);
- }
-
- bool Create(int size,
- wxFontFamily family,
- wxFontStyle style,
- wxFontWeight weight,
- bool underlined = false,
- const wxString& face = wxEmptyString,
- wxFontEncoding encoding = wxFONTENCODING_DEFAULT);
-
- wxFont(const wxSize& pixelSize,
- int family,
- int style,
- int weight,
- bool underlined = false,
- const wxString& face = wxEmptyString,
- wxFontEncoding encoding = wxFONTENCODING_DEFAULT)
- {
- (void)Create(pixelSize, family, style, weight,
- underlined, face, encoding);
- }
-
- wxFont(const wxNativeFontInfo& info, WXHFONT hFont = 0)
- {
- Create(info, hFont);
- }
-
- wxFont(const wxString& fontDesc);
-
- bool Create(const wxSize& pixelSize,
- int family,
- int style,
- int weight,
- bool underlined = false,
- const wxString& face = wxEmptyString,
- wxFontEncoding encoding = wxFONTENCODING_DEFAULT)
- {
- return DoCreate(-1, pixelSize, true, family, style,
- weight, underlined, face, encoding);
- }
-
- bool Create(const wxNativeFontInfo& info, WXHFONT hFont = 0);
-
- virtual ~wxFont();
-
- // wxFontBase overridden functions
- virtual wxString GetNativeFontInfoDesc() const;
- virtual wxString GetNativeFontInfoUserDesc() const;
-
- // implement base class pure virtuals
- virtual int GetPointSize() const;
- virtual wxSize GetPixelSize() const;
- virtual bool IsUsingSizeInPixels() const;
- virtual wxFontStyle GetStyle() const;
- virtual wxFontWeight GetWeight() const;
- virtual bool GetUnderlined() const;
- virtual wxString GetFaceName() const;
- virtual wxFontEncoding GetEncoding() const;
- virtual const wxNativeFontInfo *GetNativeFontInfo() const;
-
- virtual void SetPointSize(int pointSize);
- virtual void SetPixelSize(const wxSize& pixelSize);
- virtual void SetFamily(wxFontFamily family);
- virtual void SetStyle(wxFontStyle style);
- virtual void SetWeight(wxFontWeight weight);
- virtual bool SetFaceName(const wxString& faceName);
- virtual void SetUnderlined(bool underlined);
- virtual void SetEncoding(wxFontEncoding encoding);
-
- wxDECLARE_COMMON_FONT_METHODS();
-
- virtual bool IsFixedWidth() const;
-
- // implementation only from now on
- // -------------------------------
-
- virtual bool IsFree() const;
- virtual bool RealizeResource();
- virtual WXHANDLE GetResourceHandle() const;
- virtual bool FreeResource(bool force = false);
-
-protected:
- // real font creation function, used in all cases
- bool DoCreate(int size,
- const wxSize& pixelSize,
- bool sizeUsingPixels,
- int family,
- int style,
- int weight,
- bool underlined = false,
- const wxString& face = wxEmptyString,
- wxFontEncoding encoding = wxFONTENCODING_DEFAULT);
-
- virtual void DoSetNativeFontInfo(const wxNativeFontInfo& info);
- virtual wxFontFamily DoGetFamily() const;
-
- // implement wxObject virtuals which are used by AllocExclusive()
- virtual wxGDIRefData *CreateGDIRefData() const;
- virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
-
-private:
- DECLARE_DYNAMIC_CLASS(wxFont)
-};
-
-#endif // _WX_FONT_H_
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/fontdlg.h
-// Purpose: wxFontDialog class
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_PALMOS_FONTDLG_H_
-#define _WX_PALMOS_FONTDLG_H_
-
-// ----------------------------------------------------------------------------
-// wxFontDialog
-// ----------------------------------------------------------------------------
-
-class WXDLLIMPEXP_CORE wxFontDialog : public wxFontDialogBase
-{
-public:
- wxFontDialog() : wxFontDialogBase() { /* must be Create()d later */ }
- wxFontDialog(wxWindow *parent)
- : wxFontDialogBase(parent) { Create(parent); }
- wxFontDialog(wxWindow *parent, const wxFontData& data)
- : wxFontDialogBase(parent, data) { Create(parent, data); }
-
- virtual int ShowModal();
-
-protected:
- DECLARE_DYNAMIC_CLASS_NO_COPY(wxFontDialog)
-};
-
-#endif
- // _WX_PALMOS_FONTDLG_H_
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/frame.h
-// Purpose: wxFrame class
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_FRAME_H_
-#define _WX_FRAME_H_
-
-class WXDLLIMPEXP_CORE wxFrame : public wxFrameBase
-{
-public:
- // construction
- wxFrame() { Init(); }
- wxFrame(wxWindow *parent,
- wxWindowID id,
- const wxString& title,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = wxDEFAULT_FRAME_STYLE,
- const wxString& name = wxFrameNameStr)
- {
- Init();
-
- Create(parent, id, title, pos, size, style, name);
- }
-
- bool Create(wxWindow *parent,
- wxWindowID id,
- const wxString& title,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = wxDEFAULT_FRAME_STYLE,
- const wxString& name = wxFrameNameStr);
-
- virtual ~wxFrame();
-
- // implement base class pure virtuals
- virtual bool ShowFullScreen(bool show, long style = wxFULLSCREEN_ALL);
- virtual void Raise();
-
- // implementation only from now on
- // -------------------------------
-
- // event handlers
- void OnPaint(wxPaintEvent& event);
-
- // Toolbar
-#if wxUSE_TOOLBAR
- virtual wxToolBar* CreateToolBar(long style = -1,
- wxWindowID id = wxID_ANY,
- const wxString& name = wxToolBarNameStr);
-
- virtual void PositionToolBar();
-#endif // wxUSE_TOOLBAR
-
- // event handlers
- bool HandleMenuLoop(const wxEventType& evtType, WXWORD isPopup);
-
- virtual wxPoint GetClientAreaOrigin() const;
-
-#if wxUSE_MENUS_NATIVE
- bool HandleMenuOpen();
- bool HandleMenuSelect(WXEVENTPTR event);
-#endif // wxUSE_MENUS_NATIVE
-
-protected:
- // common part of all ctors
- void Init();
-
- // override base class virtuals
- virtual void DoGetClientSize(int *width, int *height) const;
- virtual void DoSetClientSize(int width, int height);
-
-#if wxUSE_MENUS_NATIVE
- // a plug in for MDI frame classes which need to do something special when
- // the menubar is set
- virtual void InternalSetMenuBar();
-#endif // wxUSE_MENUS_NATIVE
-
- // propagate our state change to all child frames
- void IconizeChildFrames(bool bIconize);
-
- virtual bool IsMDIChild() const { return false; }
-
- // Data to save/restore when calling ShowFullScreen
- int m_fsStatusBarFields; // 0 for no status bar
- int m_fsStatusBarHeight;
- int m_fsToolBarHeight;
-
-private:
- // used by IconizeChildFrames(), see comments there
- bool m_wasMinimized;
-
- DECLARE_EVENT_TABLE()
- DECLARE_DYNAMIC_CLASS_NO_COPY(wxFrame)
-};
-
-#endif
- // _WX_FRAME_H_
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/gauge.h
-// Purpose: wxGauge class
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-#ifndef _GAUGE_H_
-#define _GAUGE_H_
-
-#if wxUSE_GAUGE
-
-WXDLLIMPEXP_DATA_CORE(extern const wxChar) wxGaugeNameStr[];
-
-// Group box
-class WXDLLIMPEXP_CORE wxGauge : public wxGaugeBase
-{
-public:
- wxGauge() { }
-
- wxGauge(wxWindow *parent,
- wxWindowID id,
- int range,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = wxGA_HORIZONTAL,
- const wxValidator& validator = wxDefaultValidator,
- const wxString& name = wxGaugeNameStr)
- {
- (void)Create(parent, id, range, pos, size, style, validator, name);
- }
-
- bool Create(wxWindow *parent,
- wxWindowID id,
- int range,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = wxGA_HORIZONTAL,
- const wxValidator& validator = wxDefaultValidator,
- const wxString& name = wxGaugeNameStr);
-
- // set gauge range/value
- virtual void SetRange(int range);
- virtual void SetValue(int pos);
-
- // overridden base class virtuals
- virtual bool SetForegroundColour(const wxColour& col);
- virtual bool SetBackgroundColour(const wxColour& col);
-
-protected:
- virtual WXDWORD MSWGetStyle(long style, WXDWORD *exstyle) const;
- virtual wxSize DoGetBestSize() const;
-
-
- DECLARE_DYNAMIC_CLASS_NO_COPY(wxGauge)
-};
-
-#endif // wxUSE_GAUGE
-
-#endif
- // _GAUGE_H_
+++ /dev/null
-///////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/gdiimage.h
-// Purpose: wxGDIImage class: base class for wxBitmap, wxIcon, wxCursor
-// under Palm OS
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by: Yunhui Fu
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-///////////////////////////////////////////////////////////////////////////////
-
-// NB: this is a private header, it is not intended to be directly included by
-// user code (but may be included from other, public, wxWin headers
-
-#ifndef _WX_PALMOS_GDIIMAGE_H_
-#define _WX_PALMOS_GDIIMAGE_H_
-
-#include "wx/gdiobj.h" // base class
-#include "wx/gdicmn.h" // wxBITMAP_TYPE_INVALID
-#include "wx/list.h"
-
-class WXDLLIMPEXP_FWD_CORE wxGDIImageRefData;
-class WXDLLIMPEXP_FWD_CORE wxGDIImageHandler;
-class WXDLLIMPEXP_FWD_CORE wxGDIImage;
-
-WX_DECLARE_EXPORTED_LIST(wxGDIImageHandler, wxGDIImageHandlerList);
-
-// ----------------------------------------------------------------------------
-// wxGDIImageRefData: common data fields for all derived classes
-// ----------------------------------------------------------------------------
-
-class WXDLLIMPEXP_CORE wxGDIImageRefData : public wxGDIRefData
-{
-public:
- wxGDIImageRefData()
- {
- m_width = m_height = m_depth = 0;
-
- m_handle = 0;
- }
-
- // accessors
- virtual bool IsOk() const { return m_handle != 0; }
-
- void SetSize(int w, int h) { m_width = w; m_height = h; }
-
- // free the ressources we allocated
- virtual void Free() = 0;
-
- // for compatibility, the member fields are public
-
- // the size of the image
- int m_width, m_height;
-
- // the depth of the image
- int m_depth;
-
- // the handle to it
- union
- {
- WXHANDLE m_handle; // for untyped access
- WXHBITMAP m_hBitmap;
- WXHICON m_hIcon;
- WXHCURSOR m_hCursor;
- };
-};
-
-// ----------------------------------------------------------------------------
-// wxGDIImageHandler: a class which knows how to load/save wxGDIImages.
-// ----------------------------------------------------------------------------
-
-class WXDLLIMPEXP_CORE wxGDIImageHandler : public wxObject
-{
-public:
- // ctor
- wxGDIImageHandler() { m_type = wxBITMAP_TYPE_INVALID; }
- wxGDIImageHandler(const wxString& name,
- const wxString& ext,
- long type)
- : m_name(name), m_extension(ext)
- {
- m_type = type;
- }
-
- // accessors
- void SetName(const wxString& name) { m_name = name; }
- void SetExtension(const wxString& ext) { m_extension = ext; }
- void SetType(long type) { m_type = type; }
-
- wxString GetName() const { return m_name; }
- wxString GetExtension() const { return m_extension; }
- long GetType() const { return m_type; }
-
- // real handler operations: to implement in derived classes
- virtual bool Create(wxGDIImage *image,
- const void* data,
- long flags,
- int width, int height, int depth = 1) = 0;
- virtual bool Load(wxGDIImage *image,
- const wxString& name,
- long flags,
- int desiredWidth, int desiredHeight) = 0;
- virtual bool Save(wxGDIImage *image,
- const wxString& name,
- int type) = 0;
-
-protected:
- wxString m_name;
- wxString m_extension;
- long m_type;
-};
-
-// ----------------------------------------------------------------------------
-// wxGDIImage: this class supports GDI image handlers which may be registered
-// dynamically and will be used for loading/saving the images in the specified
-// format. It also falls back to wxImage if no appropriate image is found.
-// ----------------------------------------------------------------------------
-
-class WXDLLIMPEXP_CORE wxGDIImage : public wxGDIObject
-{
-public:
- // handlers list interface
- static wxGDIImageHandlerList& GetHandlers() { return ms_handlers; }
-
- static void AddHandler(wxGDIImageHandler *handler);
- static void InsertHandler(wxGDIImageHandler *handler);
- static bool RemoveHandler(const wxString& name);
-
- static wxGDIImageHandler *FindHandler(const wxString& name);
- static wxGDIImageHandler *FindHandler(const wxString& extension, long type);
- static wxGDIImageHandler *FindHandler(long type);
-
- static void InitStandardHandlers();
- static void CleanUpHandlers();
-
- // access to the ref data casted to the right type
- wxGDIImageRefData *GetGDIImageData() const
- { return (wxGDIImageRefData *)m_refData; }
-
- // create data if we don't have it yet
- void EnsureHasData() { if ( IsNull() ) m_refData = CreateData(); }
-
- // accessors
- WXHANDLE GetHandle() const
- { return IsNull() ? 0 : GetGDIImageData()->m_handle; }
- void SetHandle(WXHANDLE handle)
- { EnsureHasData(); GetGDIImageData()->m_handle = handle; }
-
- int GetWidth() const { return IsNull() ? 0 : GetGDIImageData()->m_width; }
- int GetHeight() const { return IsNull() ? 0 : GetGDIImageData()->m_height; }
- int GetDepth() const { return IsNull() ? 0 : GetGDIImageData()->m_depth; }
-
- wxSize GetSize() const
- {
- return IsNull() ? wxSize(0,0) :
- wxSize(GetGDIImageData()->m_width, GetGDIImageData()->m_height);
- }
-
- void SetWidth(int w) { EnsureHasData(); GetGDIImageData()->m_width = w; }
- void SetHeight(int h) { EnsureHasData(); GetGDIImageData()->m_height = h; }
- void SetDepth(int d) { EnsureHasData(); GetGDIImageData()->m_depth = d; }
-
- void SetSize(int w, int h)
- {
- EnsureHasData();
- GetGDIImageData()->SetSize(w, h);
- }
- void SetSize(const wxSize& size) { SetSize(size.x, size.y); }
-
- // forward some of base class virtuals to wxGDIImageRefData
- bool FreeResource(bool force = FALSE);
- virtual WXHANDLE GetResourceHandle() const;
-
-protected:
- // create the data for the derived class here
- virtual wxGDIImageRefData *CreateData() const = 0;
- virtual wxGDIRefData *CreateGDIRefData() const { return CreateData(); }
- // we can't [efficiently] clone objects of this class
- virtual wxGDIRefData *
- CloneGDIRefData(const wxGDIRefData *WXUNUSED(data)) const
- {
- wxFAIL_MSG( wxT("must be implemented if used") );
-
- return NULL;
- }
-
- static wxGDIImageHandlerList ms_handlers;
-};
-
-#endif // _WX_PALMOS_GDIIMAGE_H_
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/glcanvas.h
-// Purpose: wxGLCanvas, for using OpenGL with wxWidgets under Palm OS
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_GLCANVAS_H_
-#define _WX_GLCANVAS_H_
-
-#include "wx/palette.h"
-#include "wx/scrolwin.h"
-
-#include "wx/msw/wrapwin.h"
-
-#include <GL/gl.h>
-
-class WXDLLIMPEXP_FWD_GL wxGLCanvas; /* forward reference */
-
-class WXDLLIMPEXP_GL wxGLContext: public wxObject
-{
-public:
- wxGLContext(bool isRGB, wxGLCanvas *win, const wxPalette& palette = wxNullPalette);
-
- wxGLContext( bool isRGB, wxGLCanvas *win,
- const wxPalette& WXUNUSED(palette),
- const wxGLContext *other /* for sharing display lists */ );
-
- virtual ~wxGLContext();
-
-
- void SetCurrent();
-
- void SetColour(const wxString& colour);
-
- void SwapBuffers();
-
-
- inline wxWindow* GetWindow() const { return m_window; }
-
- inline WXHDC GetHDC() const { return m_hDC; }
-
- inline HGLRC GetGLRC() const { return m_glContext; }
-
-public:
- HGLRC m_glContext;
- WXHDC m_hDC;
- wxWindow* m_window;
-};
-
-class WXDLLIMPEXP_GL wxGLCanvas: public wxWindow
-{
- DECLARE_CLASS(wxGLCanvas)
-public:
- wxGLCanvas(wxWindow *parent, wxWindowID id = wxID_ANY,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize, long style = 0,
- const wxString& name = wxGLCanvasName, int *attribList = 0,
- const wxPalette& palette = wxNullPalette);
-
- wxGLCanvas(wxWindow *parent,
- const wxGLContext *shared = NULL,
- wxWindowID id = wxID_ANY,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = 0,
- const wxString& name = wxGLCanvasName,
- int *attribList = NULL,
- const wxPalette& palette = wxNullPalette);
-
- wxGLCanvas(wxWindow *parent,
- const wxGLCanvas *shared = NULL,
- wxWindowID id = wxID_ANY,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = 0,
- const wxString& name = wxGLCanvasName,
- int *attribList = 0,
- const wxPalette& palette = wxNullPalette);
-
- virtual ~wxGLCanvas();
-
- // Replaces wxWindow::Create functionality, since
- // we need to use a different window class
- bool Create(wxWindow *parent, wxWindowID id,
- const wxPoint& pos, const wxSize& size,
- long style, const wxString& name);
-
- void SetCurrent();
-
-#ifdef __WXUNIVERSAL__
- virtual bool SetCurrent(bool doit) { return wxWindow::SetCurrent(doit); }
-#endif
-
- void SetColour(const wxChar *colour);
-
- void SwapBuffers();
-
- void OnSize(wxSizeEvent& event);
-
- void OnQueryNewPalette(wxQueryNewPaletteEvent& event);
-
- void OnPaletteChanged(wxPaletteChangedEvent& event);
-
- inline wxGLContext* GetContext() const { return m_glContext; }
-
- inline WXHDC GetHDC() const { return m_hDC; }
-
- void SetupPixelFormat(int *attribList = NULL);
-
- void SetupPalette(const wxPalette& palette);
-
-protected:
- WXHDC m_hDC;
-
- DECLARE_EVENT_TABLE()
-};
-
-#endif
- // _WX_GLCANVAS_H_
-
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/help.h
-// Purpose: Help system: WinHelp implementation
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_HELP_H_
-#define _WX_HELP_H_
-
-#include "wx/wx.h"
-
-#if wxUSE_HELP
-
-#include "wx/helpbase.h"
-
-class WXDLLIMPEXP_CORE wxPalmHelpController: public wxHelpControllerBase
-{
- DECLARE_CLASS(wxPalmHelpController)
-
-public:
- wxPalmHelpController() {}
- virtual ~wxPalmHelpController() {}
-
- // Must call this to set the filename
- virtual bool Initialize(const wxString& file);
- virtual bool Initialize(const wxString& file, int WXUNUSED(server) ) { return Initialize( file ); }
-
- // If file is "", reloads file given in Initialize
- virtual bool LoadFile(const wxString& file = wxEmptyString);
- virtual bool DisplayContents();
- virtual bool DisplaySection(int sectionNo);
- virtual bool DisplaySection(const wxString& section) { return KeywordSearch(section); }
- virtual bool DisplayBlock(long blockNo);
- virtual bool DisplayContextPopup(int contextId);
- virtual bool KeywordSearch(const wxString& k,
- wxHelpSearchMode mode = wxHELP_SEARCH_ALL);
- virtual bool Quit();
-
- inline wxString GetHelpFile() const { return m_helpFile; }
-
-protected:
- // Append extension if necessary.
- wxString GetValidFilename(const wxString& file) const;
-
-private:
- wxString m_helpFile;
-};
-
-#endif // wxUSE_HELP
-#endif
-// _WX_HELP_H_
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/imaglist.h
-// Purpose: wxImageList class
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by: Yunhui Fu
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_IMAGLIST_H_
-#define _WX_IMAGLIST_H_
-
-#include "wx/bitmap.h"
-
-/*
- * wxImageList is used for wxListCtrl, wxTreeCtrl. These controls refer to
- * images for their items by an index into an image list.
- * A wxImageList is capable of creating images with optional masks from
- * a variety of sources - a single bitmap plus a colour to indicate the mask,
- * two bitmaps, or an icon.
- *
- * Image lists can also create and draw images used for drag and drop functionality.
- * This is not yet implemented in wxImageList. We need to discuss a generic API
- * for doing drag and drop and see whether it ties in with the Win95 view of it.
- * See below for candidate functions and an explanation of how they might be
- * used.
- */
-
-// Eventually we'll make this a reference-counted wxGDIObject. For
-// now, the app must take care of ownership issues. That is, the
-// image lists must be explicitly deleted after the control(s) that uses them
-// is (are) deleted, or when the app exits.
-class WXDLLIMPEXP_CORE wxImageList : public wxObject
-{
-public:
- /*
- * Public interface
- */
-
- wxImageList();
-
- // Creates an image list.
- // Specify the width and height of the images in the list,
- // whether there are masks associated with them (e.g. if creating images
- // from icons), and the initial size of the list.
- wxImageList(int width, int height, bool mask = TRUE, int initialCount = 1)
- {
- Create(width, height, mask, initialCount);
- }
- virtual ~wxImageList();
-
-
- // Attributes
- ////////////////////////////////////////////////////////////////////////////
-
- // Returns the number of images in the image list.
- int GetImageCount() const;
-
- // Returns the size (same for all images) of the images in the list
- bool GetSize(int index, int &width, int &height) const;
-
- // Operations
- ////////////////////////////////////////////////////////////////////////////
-
- // Creates an image list
- // width, height specify the size of the images in the list (all the same).
- // mask specifies whether the images have masks or not.
- // initialNumber is the initial number of images to reserve.
- bool Create(int width, int height, bool mask = TRUE, int initialNumber = 1);
-
- // Adds a bitmap, and optionally a mask bitmap.
- // Note that wxImageList creates *new* bitmaps, so you may delete
- // 'bitmap' and 'mask' after calling Add.
- int Add(const wxBitmap& bitmap, const wxBitmap& mask = wxNullBitmap);
-
- // Adds a bitmap, using the specified colour to create the mask bitmap
- // Note that wxImageList creates *new* bitmaps, so you may delete
- // 'bitmap' after calling Add.
- int Add(const wxBitmap& bitmap, const wxColour& maskColour);
-
- // Adds a bitmap and mask from an icon.
- int Add(const wxIcon& icon);
-
- // Replaces a bitmap, optionally passing a mask bitmap.
- // Note that wxImageList creates new bitmaps, so you may delete
- // 'bitmap' and 'mask' after calling Replace.
- bool Replace(int index, const wxBitmap& bitmap, const wxBitmap& mask = wxNullBitmap);
-
-/* Not supported by Win95
- // Replacing a bitmap, using the specified colour to create the mask bitmap
- // Note that wxImageList creates new bitmaps, so you may delete
- // 'bitmap'.
- bool Replace(int index, const wxBitmap& bitmap, const wxColour& maskColour);
-*/
-
- // Replaces a bitmap and mask from an icon.
- // You can delete 'icon' after calling Replace.
- bool Replace(int index, const wxIcon& icon);
-
- // Removes the image at the given index.
- bool Remove(int index);
-
- // Remove all images
- bool RemoveAll();
-
- // Draws the given image on a dc at the specified position.
- // If 'solidBackground' is TRUE, Draw sets the image list background
- // colour to the background colour of the wxDC, to speed up
- // drawing by eliminating masked drawing where possible.
- bool Draw(int index, wxDC& dc, int x, int y,
- int flags = wxIMAGELIST_DRAW_NORMAL,
- bool solidBackground = FALSE);
-
- // TODO: miscellaneous functionality
-/*
- wxIcon *MakeIcon(int index);
- bool SetOverlayImage(int index, int overlayMask);
-
-*/
-
- // TODO: Drag-and-drop related functionality.
-
-#if 0
- // Creates a new drag image by combining the given image (typically a mouse cursor image)
- // with the current drag image.
- bool SetDragCursorImage(int index, const wxPoint& hotSpot);
-
- // If successful, returns a pointer to the temporary image list that is used for dragging;
- // otherwise, NULL.
- // dragPos: receives the current drag position.
- // hotSpot: receives the offset of the drag image relative to the drag position.
- static wxImageList *GetDragImageList(wxPoint& dragPos, wxPoint& hotSpot);
-
- // Call this function to begin dragging an image. This function creates a temporary image list
- // that is used for dragging. The image combines the specified image and its mask with the
- // current cursor. In response to subsequent mouse move messages, you can move the drag image
- // by using the DragMove member function. To end the drag operation, you can use the EndDrag
- // member function.
- bool BeginDrag(int index, const wxPoint& hotSpot);
-
- // Ends a drag operation.
- bool EndDrag();
-
- // Call this function to move the image that is being dragged during a drag-and-drop operation.
- // This function is typically called in response to a mouse move message. To begin a drag
- // operation, use the BeginDrag member function.
- static bool DragMove(const wxPoint& point);
-
- // During a drag operation, locks updates to the window specified by lockWindow and displays
- // the drag image at the position specified by point.
- // The coordinates are relative to the window's upper left corner, so you must compensate
- // for the widths of window elements, such as the border, title bar, and menu bar, when
- // specifying the coordinates.
- // If lockWindow is NULL, this function draws the image in the display context associated
- // with the desktop window, and coordinates are relative to the upper left corner of the screen.
- // This function locks all other updates to the given window during the drag operation.
- // If you need to do any drawing during a drag operation, such as highlighting the target
- // of a drag-and-drop operation, you can temporarily hide the dragged image by using the
- // wxImageList::DragLeave function.
-
- // lockWindow: pointer to the window that owns the drag image.
- // point: position at which to display the drag image. Coordinates are relative to the
- // upper left corner of the window (not the client area).
-
- static bool DragEnter( wxWindow *lockWindow, const wxPoint& point );
-
- // Unlocks the window specified by pWndLock and hides the drag image, allowing the
- // window to be updated.
- static bool DragLeave( wxWindow *lockWindow );
-
- /* Here's roughly how you'd use these functions if implemented in this Win95-like way:
-
- 1) Starting to drag:
-
- wxImageList *dragImageList = new wxImageList(16, 16, TRUE);
- dragImageList->Add(myDragImage); // Provide an image to combine with the current cursor
- dragImageList->BeginDrag(0, wxPoint(0, 0));
- wxShowCursor(FALSE); // wxShowCursor not yet implemented in wxWin
- myWindow->CaptureMouse();
-
- 2) Dragging:
-
- // Called within mouse move event. Could also use dragImageList instead of assuming
- // these are static functions.
- // These two functions could possibly be combined into one, since DragEnter is
- // a bit obscure.
- wxImageList::DragMove(wxPoint(x, y)); // x, y are current cursor position
- wxImageList::DragEnter(NULL, wxPoint(x, y)); // NULL assumes dragging across whole screen
-
- 3) Finishing dragging:
-
- dragImageList->EndDrag();
- myWindow->ReleaseMouse();
- wxShowCursor(TRUE);
-*/
-
-#endif
-
- // Implementation
- ////////////////////////////////////////////////////////////////////////////
-
- // Returns the native image list handle
- WXHIMAGELIST GetHIMAGELIST() const { return m_hImageList; }
-
-protected:
- WXHIMAGELIST m_hImageList;
-
- DECLARE_DYNAMIC_CLASS(wxImageList)
-};
-
-#endif
- // _WX_IMAGLIST_H_
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/joystick.h
-// Purpose: wxJoystick class
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_JOYSTICK_H_
-#define _WX_JOYSTICK_H_
-
-#include "wx/event.h"
-
-class WXDLLIMPEXP_ADV wxJoystick: public wxObject
-{
- DECLARE_DYNAMIC_CLASS(wxJoystick)
- public:
- /*
- * Public interface
- */
-
- wxJoystick(int joystick = wxJOYSTICK1);
-
- // Attributes
- ////////////////////////////////////////////////////////////////////////////
-
- wxPoint GetPosition(void) const;
- int GetPosition(unsigned axis) const;
- bool GetButtonState(unsigned button) const;
- int GetZPosition(void) const;
- int GetButtonState(void) const;
- int GetPOVPosition(void) const;
- int GetPOVCTSPosition(void) const;
- int GetRudderPosition(void) const;
- int GetUPosition(void) const;
- int GetVPosition(void) const;
- int GetMovementThreshold(void) const;
- void SetMovementThreshold(int threshold) ;
-
- // Capabilities
- ////////////////////////////////////////////////////////////////////////////
-
- static int GetNumberJoysticks(void);
-
- bool IsOk(void) const; // Checks that the joystick is functioning
- int GetManufacturerId(void) const ;
- int GetProductId(void) const ;
- wxString GetProductName(void) const ;
- int GetXMin(void) const;
- int GetYMin(void) const;
- int GetZMin(void) const;
- int GetXMax(void) const;
- int GetYMax(void) const;
- int GetZMax(void) const;
- int GetNumberButtons(void) const;
- int GetNumberAxes(void) const;
- int GetMaxButtons(void) const;
- int GetMaxAxes(void) const;
- int GetPollingMin(void) const;
- int GetPollingMax(void) const;
- int GetRudderMin(void) const;
- int GetRudderMax(void) const;
- int GetUMin(void) const;
- int GetUMax(void) const;
- int GetVMin(void) const;
- int GetVMax(void) const;
-
- bool HasRudder(void) const;
- bool HasZ(void) const;
- bool HasU(void) const;
- bool HasV(void) const;
- bool HasPOV(void) const;
- bool HasPOV4Dir(void) const;
- bool HasPOVCTS(void) const;
-
- // Operations
- ////////////////////////////////////////////////////////////////////////////
-
- // pollingFreq = 0 means that movement events are sent when above the threshold.
- // If pollingFreq > 0, events are received every this many milliseconds.
- bool SetCapture(wxWindow* win, int pollingFreq = 0);
- bool ReleaseCapture(void);
-
-protected:
- int m_joystick;
-};
-
-#endif
- // _WX_JOYSTICK_H_
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/listbox.h
-// Purpose: wxListBox class
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_LISTBOX_H_
-#define _WX_LISTBOX_H_
-
-#if wxUSE_LISTBOX
-
-// ----------------------------------------------------------------------------
-// simple types
-// ----------------------------------------------------------------------------
-
-#if wxUSE_OWNER_DRAWN
- class WXDLLIMPEXP_FWD_CORE wxOwnerDrawn;
-
- // define the array of list box items
- #include "wx/dynarray.h"
-
- WX_DEFINE_EXPORTED_ARRAY_PTR(wxOwnerDrawn *, wxListBoxItemsArray);
-#endif // wxUSE_OWNER_DRAWN
-
-// forward decl for GetSelections()
-class wxArrayInt;
-
-// ----------------------------------------------------------------------------
-// List box control
-// ----------------------------------------------------------------------------
-
-class WXDLLIMPEXP_CORE wxListBox : public wxListBoxBase
-{
-public:
- // ctors and such
- wxListBox();
- wxListBox(wxWindow *parent, wxWindowID id,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- int n = 0, const wxString choices[] = NULL,
- long style = 0,
- const wxValidator& validator = wxDefaultValidator,
- const wxString& name = wxListBoxNameStr)
- {
- Create(parent, id, pos, size, n, choices, style, validator, name);
- }
- wxListBox(wxWindow *parent, wxWindowID id,
- const wxPoint& pos,
- const wxSize& size,
- const wxArrayString& choices,
- long style = 0,
- const wxValidator& validator = wxDefaultValidator,
- const wxString& name = wxListBoxNameStr)
- {
- Create(parent, id, pos, size, choices, style, validator, name);
- }
-
- bool Create(wxWindow *parent, wxWindowID id,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- int n = 0, const wxString choices[] = NULL,
- long style = 0,
- const wxValidator& validator = wxDefaultValidator,
- const wxString& name = wxListBoxNameStr);
- bool Create(wxWindow *parent, wxWindowID id,
- const wxPoint& pos,
- const wxSize& size,
- const wxArrayString& choices,
- long style = 0,
- const wxValidator& validator = wxDefaultValidator,
- const wxString& name = wxListBoxNameStr);
-
- virtual ~wxListBox();
-
- // implement base class pure virtuals
- virtual void DoClear();
- virtual void DoDeleteOneItem(unsigned int n);
-
- virtual unsigned int GetCount() const;
- virtual wxString GetString(unsigned int n) const;
- virtual void SetString(unsigned int n, const wxString& s);
-
- virtual bool IsSelected(int n) const;
- virtual void DoSetSelection(int n, bool select);
- virtual int GetSelection() const;
- virtual int GetSelections(wxArrayInt& aSelections) const;
-
- virtual int DoInsertItems(const wxArrayStringsAdapter& items,
- unsigned int pos,
- void **clientData, wxClientDataType type);
-
- virtual void DoSetFirstItem(int n);
-
- virtual void DoSetItemClientData(unsigned int n, void* clientData);
- virtual void* DoGetItemClientData(unsigned int n) const;
-
- // wxCheckListBox support
-#if wxUSE_OWNER_DRAWN
- bool MSWOnMeasure(WXMEASUREITEMSTRUCT *item);
- bool MSWOnDraw(WXDRAWITEMSTRUCT *item);
-
- // plug-in for derived classes
- virtual wxOwnerDrawn *CreateLboxItem(size_t n);
-
- // allows to get the item and use SetXXX functions to set it's appearance
- wxOwnerDrawn *GetItem(size_t n) const { return m_aItems[n]; }
-
- // get the index of the given item
- int GetItemIndex(wxOwnerDrawn *item) const { return m_aItems.Index(item); }
-#endif // wxUSE_OWNER_DRAWN
-
- // Windows-specific code to set the horizontal extent of the listbox, if
- // necessary. If s is non-NULL, it's used to calculate the horizontal
- // extent. Otherwise, all strings are used.
- virtual void SetHorizontalExtent(const wxString& s = wxEmptyString);
-
- // Windows callbacks
- bool MSWCommand(WXUINT param, WXWORD id);
-
- virtual wxVisualAttributes GetDefaultAttributes() const
- {
- return GetClassDefaultAttributes(GetWindowVariant());
- }
-
- static wxVisualAttributes
- GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL)
- {
- return GetCompositeControlsDefaultAttributes(variant);
- }
-
-protected:
- WXDWORD MSWGetStyle(long style, WXDWORD *exstyle) const;
-
- // free memory (common part of Clear() and dtor)
- void Free();
-
- int m_selected;
-
- virtual wxSize DoGetBestSize() const;
-
-#if wxUSE_OWNER_DRAWN
- // control items
- wxListBoxItemsArray m_aItems;
-#endif
-
-private:
- DECLARE_DYNAMIC_CLASS_NO_COPY(wxListBox)
-};
-
-#endif // wxUSE_LISTBOX
-
-#endif
- // _WX_LISTBOX_H_
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/listctrl.h
-// Purpose: wxListCtrl class
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by: Yunhui Fu
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_LISTCTRL_H_
-#define _WX_LISTCTRL_H_
-
-#if wxUSE_LISTCTRL
-
-#include "wx/control.h"
-#include "wx/event.h"
-#include "wx/hash.h"
-#include "wx/textctrl.h"
-
-
-class WXDLLIMPEXP_FWD_CORE wxImageList;
-
-/*
- The wxListCtrl can show lists of items in four different modes:
- wxLC_LIST: multicolumn list view, with optional small icons (icons could be
- optional for some platforms). Columns are computed automatically,
- i.e. you don't set columns as in wxLC_REPORT. In other words,
- the list wraps, unlike a wxListBox.
- wxLC_REPORT: single or multicolumn report view (with optional header)
- wxLC_ICON: large icon view, with optional labels
- wxLC_SMALL_ICON: small icon view, with optional labels
-
- You can change the style dynamically, either with SetSingleStyle or
- SetWindowStyleFlag.
-
- Further window styles:
-
- wxLC_ALIGN_TOP icons align to the top (default)
- wxLC_ALIGN_LEFT icons align to the left
- wxLC_AUTOARRANGE icons arrange themselves
- wxLC_USER_TEXT the app provides label text on demand, except for column headers
- wxLC_EDIT_LABELS labels are editable: app will be notified.
- wxLC_NO_HEADER no header in report mode
- wxLC_NO_SORT_HEADER can't click on header
- wxLC_SINGLE_SEL single selection
- wxLC_SORT_ASCENDING sort ascending (must still supply a comparison callback in SortItems)
- wxLC_SORT_DESCENDING sort descending (ditto)
-
- Items are referred to by their index (position in the list starting from zero).
-
- Label text is supplied via insertion/setting functions and is stored by the
- control, unless the wxLC_USER_TEXT style has been specified, in which case
- the app will be notified when text is required (see sample).
-
- Images are dealt with by (optionally) associating 3 image lists with the control.
- Zero-based indexes into these image lists indicate which image is to be used for
- which item. Each image in an image list can contain a mask, and can be made out
- of either a bitmap, two bitmaps or an icon. See ImagList.h for more details.
-
- Notifications are passed via the wxWidgets 2.0 event system, or using virtual
- functions in wxWidgets 1.66.
-
- See the sample wxListCtrl app for API usage.
-
- TODO:
- - addition of further convenience functions
- to avoid use of wxListItem in some functions
- - state/overlay images: probably not needed.
- - testing of whole API, extending current sample.
-
-
- */
-
-class WXDLLIMPEXP_CORE wxListCtrl: public wxControl
-{
-public:
- /*
- * Public interface
- */
-
- wxListCtrl() { Init(); }
-
- wxListCtrl(wxWindow *parent,
- wxWindowID id = wxID_ANY,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = wxLC_ICON,
- const wxValidator& validator = wxDefaultValidator,
- const wxString& name = wxListCtrlNameStr)
- {
- Init();
-
- Create(parent, id, pos, size, style, validator, name);
- }
-
- virtual ~wxListCtrl();
-
- bool Create(wxWindow *parent,
- wxWindowID id = wxID_ANY,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = wxLC_ICON,
- const wxValidator& validator = wxDefaultValidator,
- const wxString& name = wxListCtrlNameStr);
-
-
- // Attributes
- ////////////////////////////////////////////////////////////////////////////
-
- // Set the control colours
- bool SetForegroundColour(const wxColour& col);
- bool SetBackgroundColour(const wxColour& col);
-
- // Gets information about this column
- bool GetColumn(int col, wxListItem& item) const;
-
- // Sets information about this column
- bool SetColumn(int col, wxListItem& item) ;
-
- // Gets the column width
- int GetColumnWidth(int col) const;
-
- // Sets the column width
- bool SetColumnWidth(int col, int width) ;
-
- // Gets the number of items that can fit vertically in the
- // visible area of the list control (list or report view)
- // or the total number of items in the list control (icon
- // or small icon view)
- int GetCountPerPage() const;
-
- // return the total area occupied by all the items (icon/small icon only)
- wxRect GetViewRect() const;
-
- // Gets the edit control for editing labels.
- wxTextCtrl* GetEditControl() const;
-
- // Gets information about the item
- bool GetItem(wxListItem& info) const ;
-
- // Sets information about the item
- bool SetItem(wxListItem& info) ;
-
- // Sets a string field at a particular column
- long SetItem(long index, int col, const wxString& label, int imageId = -1);
-
- // Gets the item state
- int GetItemState(long item, long stateMask) const ;
-
- // Sets the item state
- bool SetItemState(long item, long state, long stateMask) ;
-
- // Sets the item image
- bool SetItemImage(long item, int image, int selImage) ;
- bool SetItemColumnImage(long item, long column, int image);
-
- // Gets the item text
- wxString GetItemText(long item) const ;
-
- // Sets the item text
- void SetItemText(long item, const wxString& str) ;
-
- // Gets the item data
- long GetItemData(long item) const ;
-
- // Sets the item data
- bool SetItemPtrData(long item, wxUIntPtr data);
- bool SetItemData(long item, long data) { return SetItemPtrData(item, data); }
-
- // Gets the item rectangle
- bool GetItemRect(long item, wxRect& rect, int code = wxLIST_RECT_BOUNDS) const ;
-
- // Gets the item position
- bool GetItemPosition(long item, wxPoint& pos) const ;
-
- // Sets the item position
- bool SetItemPosition(long item, const wxPoint& pos) ;
-
- // Gets the number of items in the list control
- int GetItemCount() const;
-
- // Gets the number of columns in the list control
- int GetColumnCount() const { return m_colCount; }
-
- // get the horizontal and vertical components of the item spacing
- wxSize GetItemSpacing() const;
-
- // Foreground colour of an item.
- void SetItemTextColour( long item, const wxColour& col);
- wxColour GetItemTextColour( long item ) const;
-
- // Background colour of an item.
- void SetItemBackgroundColour( long item, const wxColour &col);
- wxColour GetItemBackgroundColour( long item ) const;
-
- // Gets the number of selected items in the list control
- int GetSelectedItemCount() const;
-
- // Gets the text colour of the listview
- wxColour GetTextColour() const;
-
- // Sets the text colour of the listview
- void SetTextColour(const wxColour& col);
-
- // Gets the index of the topmost visible item when in
- // list or report view
- long GetTopItem() const ;
-
- // Add or remove a single window style
- void SetSingleStyle(long style, bool add = true) ;
-
- // Searches for an item, starting from 'item'.
- // item can be -1 to find the first item that matches the
- // specified flags.
- // Returns the item or -1 if unsuccessful.
- long GetNextItem(long item, int geometry = wxLIST_NEXT_ALL, int state = wxLIST_STATE_DONTCARE) const ;
-
- // Gets one of the three image lists
- wxImageList *GetImageList(int which) const ;
-
- // Sets the image list
- void SetImageList(wxImageList *imageList, int which) ;
- void AssignImageList(wxImageList *imageList, int which) ;
-
- // are we in report mode?
- bool InReportView() const { return HasFlag(wxLC_REPORT); }
-
- // are we in virtual report mode?
- bool IsVirtual() const { return HasFlag(wxLC_VIRTUAL); }
-
- // refresh items selectively (only useful for virtual list controls)
- void RefreshItem(long item);
- void RefreshItems(long itemFrom, long itemTo);
-
- // Operations
- ////////////////////////////////////////////////////////////////////////////
-
- // Arranges the items
- bool Arrange(int flag = wxLIST_ALIGN_DEFAULT);
-
- // Deletes an item
- bool DeleteItem(long item);
-
- // Deletes all items
- bool DeleteAllItems() ;
-
- // Deletes a column
- bool DeleteColumn(int col);
-
- // Deletes all columns
- bool DeleteAllColumns();
-
- // Clears items, and columns if there are any.
- void ClearAll();
-
- // Edit the label
- wxTextCtrl* EditLabel(long item, wxClassInfo* textControlClass = wxCLASSINFO(wxTextCtrl));
-
- // End label editing, optionally cancelling the edit
- bool EndEditLabel(bool cancel);
-
- // Ensures this item is visible
- bool EnsureVisible(long item) ;
-
- // Find an item whose label matches this string, starting from the item after 'start'
- // or the beginning if 'start' is -1.
- long FindItem(long start, const wxString& str, bool partial = false);
-
- // Find an item whose data matches this data, starting from the item after 'start'
- // or the beginning if 'start' is -1.
- long FindItem(long start, long data);
-
- // Find an item nearest this position in the specified direction, starting from
- // the item after 'start' or the beginning if 'start' is -1.
- long FindItem(long start, const wxPoint& pt, int direction);
-
- // Determines which item (if any) is at the specified point,
- // giving details in 'flags' (see wxLIST_HITTEST_... flags above)
- long HitTest(const wxPoint& point, int& flags);
-
- // Inserts an item, returning the index of the new item if successful,
- // -1 otherwise.
- long InsertItem(wxListItem& info);
-
- // Insert a string item
- long InsertItem(long index, const wxString& label);
-
- // Insert an image item
- long InsertItem(long index, int imageIndex);
-
- // Insert an image/string item
- long InsertItem(long index, const wxString& label, int imageIndex);
-
- // For list view mode (only), inserts a column.
- long InsertColumn(long col, wxListItem& info);
-
- long InsertColumn(long col,
- const wxString& heading,
- int format = wxLIST_FORMAT_LEFT,
- int width = -1);
-
- // set the number of items in a virtual list control
- void SetItemCount(long count);
-
- // Scrolls the list control. If in icon, small icon or report view mode,
- // x specifies the number of pixels to scroll. If in list view mode, x
- // specifies the number of columns to scroll.
- // If in icon, small icon or list view mode, y specifies the number of pixels
- // to scroll. If in report view mode, y specifies the number of lines to scroll.
- bool ScrollList(int dx, int dy);
-
- // Sort items.
-
- // fn is a function which takes 3 long arguments: item1, item2, data.
- // item1 is the long data associated with a first item (NOT the index).
- // item2 is the long data associated with a second item (NOT the index).
- // data is the same value as passed to SortItems.
- // The return value is a negative number if the first item should precede the second
- // item, a positive number of the second item should precede the first,
- // or zero if the two items are equivalent.
-
- // data is arbitrary data to be passed to the sort function.
- bool SortItems(wxListCtrlCompare fn, long data);
-
- // bring the control in sync with current m_windowStyle value
- void UpdateStyle();
-
- // Event handlers
- ////////////////////////////////////////////////////////////////////////////
- // Necessary for drawing hrules and vrules, if specified
- void OnPaint(wxPaintEvent& event);
-
-
- virtual bool ShouldInheritColours() const { return false; }
-
- virtual wxVisualAttributes GetDefaultAttributes() const
- {
- return GetClassDefaultAttributes(GetWindowVariant());
- }
-
- static wxVisualAttributes
- GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
-
-protected:
- // common part of all ctors
- void Init();
-
- // free memory taken by all internal data
- void FreeAllInternalData();
-
- wxTextCtrl* m_textCtrl; // The control used for editing a label
- wxImageList * m_imageListNormal; // The image list for normal icons
- wxImageList * m_imageListSmall; // The image list for small icons
- wxImageList * m_imageListState; // The image list state icons (not implemented yet)
- bool m_ownsImageListNormal,
- m_ownsImageListSmall,
- m_ownsImageListState;
-
- int m_colCount; // Windows doesn't have GetColumnCount so must
- // keep track of inserted/deleted columns
- long m_count; // Keep track of item count to save calls to
- // ListView_GetItemCount
- bool m_ignoreChangeMessages;
-
- // true if we have any internal data (user data & attributes)
- bool m_AnyInternalData;
-
- // true if we have any items with custom attributes
- bool m_hasAnyAttr;
-
- // these functions are only used for virtual list view controls, i.e. the
- // ones with wxLC_VIRTUAL style
-
- // return the text for the given column of the given item
- virtual wxString OnGetItemText(long item, long column) const;
-
- // return the icon for the given item. In report view, OnGetItemImage will
- // only be called for the first column. See OnGetItemColumnImage for
- // details.
- virtual int OnGetItemImage(long item) const;
-
- // return the attribute for the item (may return NULL if none)
- virtual wxListItemAttr *OnGetItemAttr(long item) const;
-
-private:
-
- DECLARE_DYNAMIC_CLASS(wxListCtrl)
- DECLARE_EVENT_TABLE()
- wxDECLARE_NO_COPY_CLASS(wxListCtrl);
-};
-
-#endif // wxUSE_LISTCTRL
-
-#endif // _WX_LISTCTRL_H_
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/mdi.h
-// Purpose: MDI (Multiple Document Interface) classes
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_MDI_H_
-#define _WX_MDI_H_
-
-#include "wx/frame.h"
-
-WXDLLIMPEXP_DATA_CORE(extern const wxChar) wxStatusLineNameStr[];
-
-class WXDLLIMPEXP_FWD_CORE wxMDIClientWindow;
-class WXDLLIMPEXP_FWD_CORE wxMDIChildFrame;
-
-// ---------------------------------------------------------------------------
-// wxMDIParentFrame
-// ---------------------------------------------------------------------------
-
-class WXDLLIMPEXP_CORE wxMDIParentFrame : public wxFrame
-{
-public:
- wxMDIParentFrame();
- wxMDIParentFrame(wxWindow *parent,
- wxWindowID id,
- const wxString& title,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL,
- const wxString& name = wxFrameNameStr)
- {
- Create(parent, id, title, pos, size, style, name);
- }
-
- virtual ~wxMDIParentFrame();
-
- bool Create(wxWindow *parent,
- wxWindowID id,
- const wxString& title,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL,
- const wxString& name = wxFrameNameStr);
-
- // accessors
- // ---------
-
- // Get the active MDI child window (Windows only)
- wxMDIChildFrame *GetActiveChild() const;
-
- // Get the client window
- wxMDIClientWindow *GetClientWindow() const { return m_clientWindow; }
-
- // Create the client window class (don't Create the window,
- // just return a new class)
- virtual wxMDIClientWindow *OnCreateClient(void);
-
- // MDI windows menu
- wxMenu* GetWindowMenu() const { return m_windowMenu; }
- void SetWindowMenu(wxMenu* menu) ;
-
- // MDI operations
- // --------------
- virtual void Cascade();
- virtual void Tile();
- virtual void ArrangeIcons();
- virtual void ActivateNext();
- virtual void ActivatePrevious();
-
- // handlers
- // --------
-
- void OnSize(wxSizeEvent& event);
-
- // override window proc for MDI-specific message processing
- virtual WXLRESULT MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam);
-
- virtual WXLRESULT MSWDefWindowProc(WXUINT, WXWPARAM, WXLPARAM);
- virtual bool MSWTranslateMessage(WXMSG* msg);
-
-protected:
-#if wxUSE_MENUS_NATIVE
- virtual void InternalSetMenuBar();
-#endif // wxUSE_MENUS_NATIVE
-
- virtual WXHICON GetDefaultIcon() const;
-
- wxMDIClientWindow * m_clientWindow;
- wxMDIChildFrame * m_currentChild;
- wxMenu* m_windowMenu;
-
- // true if MDI Frame is intercepting commands, not child
- bool m_parentFrameActive;
-
-private:
- friend class WXDLLIMPEXP_FWD_CORE wxMDIChildFrame;
-
- DECLARE_EVENT_TABLE()
- DECLARE_DYNAMIC_CLASS(wxMDIParentFrame)
- wxDECLARE_NO_COPY_CLASS(wxMDIParentFrame);
-};
-
-// ---------------------------------------------------------------------------
-// wxMDIChildFrame
-// ---------------------------------------------------------------------------
-
-class WXDLLIMPEXP_CORE wxMDIChildFrame : public wxFrame
-{
-public:
- wxMDIChildFrame() { Init(); }
- wxMDIChildFrame(wxMDIParentFrame *parent,
- wxWindowID id,
- const wxString& title,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = wxDEFAULT_FRAME_STYLE,
- const wxString& name = wxFrameNameStr)
- {
- Init();
-
- Create(parent, id, title, pos, size, style, name);
- }
-
- virtual ~wxMDIChildFrame();
-
- bool Create(wxMDIParentFrame *parent,
- wxWindowID id,
- const wxString& title,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = wxDEFAULT_FRAME_STYLE,
- const wxString& name = wxFrameNameStr);
-
- virtual bool IsTopLevel() const { return false; }
-
- // MDI operations
- virtual void Maximize(bool maximize = true);
- virtual void Restore();
- virtual void Activate();
-
- // Implementation only from now on
- // -------------------------------
-
- // Handlers
- bool HandleMDIActivate(long bActivate, WXHWND, WXHWND);
- bool HandleWindowPosChanging(void *lpPos);
-
- virtual WXLRESULT MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM lParam);
- virtual WXLRESULT MSWDefWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM lParam);
- virtual bool MSWTranslateMessage(WXMSG *msg);
-
- virtual void MSWDestroyWindow();
-
- bool ResetWindowStyle(void *vrect);
-
- void OnIdle(wxIdleEvent& event);
-
-protected:
- virtual void DoGetPosition(int *x, int *y) const;
- virtual void DoSetClientSize(int width, int height);
- virtual void InternalSetMenuBar();
- virtual bool IsMDIChild() const { return true; }
-
- virtual WXHICON GetDefaultIcon() const;
-
- // common part of all ctors
- void Init();
-
-private:
- bool m_needsResize; // flag which tells us to artificially resize the frame
-
- DECLARE_EVENT_TABLE()
- DECLARE_DYNAMIC_CLASS_NO_COPY(wxMDIChildFrame)
-};
-
-// ---------------------------------------------------------------------------
-// wxMDIClientWindow
-// ---------------------------------------------------------------------------
-
-class WXDLLIMPEXP_CORE wxMDIClientWindow : public wxWindow
-{
-public:
- wxMDIClientWindow() { Init(); }
- wxMDIClientWindow(wxMDIParentFrame *parent, long style = 0)
- {
- Init();
-
- CreateClient(parent, style);
- }
-
- // Note: this is virtual, to allow overridden behaviour.
- virtual bool CreateClient(wxMDIParentFrame *parent,
- long style = wxVSCROLL | wxHSCROLL);
-
- // Explicitly call default scroll behaviour
- void OnScroll(wxScrollEvent& event);
-
- virtual void DoSetSize(int x, int y,
- int width, int height,
- int sizeFlags = wxSIZE_AUTO);
-protected:
- void Init() { m_scrollX = m_scrollY = 0; }
-
- int m_scrollX, m_scrollY;
-
-private:
- DECLARE_EVENT_TABLE()
- DECLARE_DYNAMIC_CLASS_NO_COPY(wxMDIClientWindow)
-};
-
-#endif
- // _WX_MDI_H_
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/menu.h
-// Purpose: wxMenu, wxMenuBar classes
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_MENU_H_
-#define _WX_MENU_H_
-
-#if wxUSE_ACCEL
- #include "wx/accel.h"
- #include "wx/dynarray.h"
-
- WX_DEFINE_EXPORTED_ARRAY_PTR(wxAcceleratorEntry *, wxAcceleratorArray);
-#endif // wxUSE_ACCEL
-
-class WXDLLIMPEXP_FWD_CORE wxFrame;
-
-#if defined(__WXWINCE__) && wxUSE_TOOLBAR
-class WXDLLIMPEXP_FWD_CORE wxToolBar;
-#endif
-
-#include "wx/arrstr.h"
-
-// ----------------------------------------------------------------------------
-// Menu
-// ----------------------------------------------------------------------------
-
-class WXDLLIMPEXP_CORE wxMenu : public wxMenuBase
-{
-public:
- // ctors & dtor
- wxMenu(const wxString& title, long style = 0)
- : wxMenuBase(title, style) { Init(); }
-
- wxMenu(long style = 0) : wxMenuBase(style) { Init(); }
-
- virtual ~wxMenu();
-
- // implement base class virtuals
- virtual wxMenuItem* DoAppend(wxMenuItem *item);
- virtual wxMenuItem* DoInsert(size_t pos, wxMenuItem *item);
- virtual wxMenuItem* DoRemove(wxMenuItem *item);
-
- virtual void Break();
-
- virtual void SetTitle(const wxString& title);
-
- // implementation only from now on
- // -------------------------------
-
- virtual void Attach(wxMenuBarBase *menubar);
-
- bool PalmCommand(WXUINT param, WXWORD id);
-
- // semi-private accessors
- // get the window which contains this menu
- wxWindow *GetWindow() const;
-
-#if wxUSE_ACCEL
- // called by wxMenuBar to build its accel table from the accels of all menus
- bool HasAccels() const { return !m_accels.IsEmpty(); }
- size_t GetAccelCount() const { return m_accels.GetCount(); }
- size_t CopyAccels(wxAcceleratorEntry *accels) const;
-
- // called by wxMenuItem when its accels changes
- void UpdateAccel(wxMenuItem *item);
-
- // helper used by wxMenu itself (returns the index in m_accels)
- int FindAccel(int id) const;
-#endif // wxUSE_ACCEL
-
-private:
- // common part of all ctors
- void Init();
-
- // common part of Append/Insert (behaves as Append is pos == (size_t)-1)
- bool DoInsertOrAppend(wxMenuItem *item, size_t pos = (size_t)-1);
-
- // terminate the current radio group, if any
- void EndRadioGroup();
-
- // if true, insert a break before appending the next item
- bool m_doBreak;
-
- // the position of the first item in the current radio group or -1
- int m_startRadioGroup;
-
-#if wxUSE_ACCEL
- // the accelerators for our menu items
- wxAcceleratorArray m_accels;
-#endif // wxUSE_ACCEL
-
- DECLARE_DYNAMIC_CLASS_NO_COPY(wxMenu)
-};
-
-// ----------------------------------------------------------------------------
-// Menu Bar (a la Windows)
-// ----------------------------------------------------------------------------
-
-class WXDLLIMPEXP_CORE wxMenuBar : public wxMenuBarBase
-{
-public:
- // ctors & dtor
- // default constructor
- wxMenuBar();
-
- wxMenuBar(long style);
- // menubar takes ownership of the menus arrays but copies the titles
- wxMenuBar(size_t n, wxMenu *menus[], const wxString titles[], long style = 0);
- virtual ~wxMenuBar();
-
- virtual bool Append( wxMenu *menu, const wxString &title );
- virtual bool Insert(size_t pos, wxMenu *menu, const wxString& title);
- virtual wxMenu *Replace(size_t pos, wxMenu *menu, const wxString& title);
- virtual wxMenu *Remove(size_t pos);
-
- virtual void EnableTop( size_t pos, bool flag );
- virtual void SetMenuLabel( size_t pos, const wxString& label );
- virtual wxString GetMenuLabel( size_t pos ) const;
-
- // implementation from now on
- WXHMENU Create();
- virtual void Detach();
- virtual void Attach(wxFrame *frame);
-
- void LoadMenu();
- int ProcessCommand(int ItemID);
-
-#if wxUSE_ACCEL
- // get the accel table for all the menus
- const wxAcceleratorTable& GetAccelTable() const { return m_accelTable; }
-
- // update the accel table (must be called after adding/deleting a menu)
- void RebuildAccelTable();
-#endif // wxUSE_ACCEL
-
- // if the menubar is modified, the display is not updated automatically,
- // call this function to update it (m_menuBarFrame should be !NULL)
- void Refresh();
-
- // To avoid compile warning
- void Refresh( bool eraseBackground,
- const wxRect *rect = (const wxRect *) NULL ) { wxWindow::Refresh(eraseBackground, rect); }
-
-protected:
- // common part of all ctors
- void Init();
-
- wxArrayString m_titles ;
- wxMenuInfoList m_menuInfos;
-
- // Return the Palm position for a wxMenu which is sometimes different from
- // the wxWidgets position.
- int PalmPositionForWxMenu(wxMenu *menu, int wxpos);
-#if wxUSE_ACCEL
- // the accelerator table for all accelerators in all our menus
- wxAcceleratorTable m_accelTable;
-#endif // wxUSE_ACCEL
-
-#if defined(__WXWINCE__) && wxUSE_TOOLBAR
- wxToolBar* m_toolBar;
-#endif
-
-private:
- DECLARE_DYNAMIC_CLASS_NO_COPY(wxMenuBar)
-};
-
-#endif // _WX_MENU_H_
+++ /dev/null
-///////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/menuitem.h
-// Purpose: wxMenuItem class
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-///////////////////////////////////////////////////////////////////////////////
-
-#ifndef _MENUITEM_H
-#define _MENUITEM_H
-
-// ----------------------------------------------------------------------------
-// headers
-// ----------------------------------------------------------------------------
-
-#if wxUSE_OWNER_DRAWN
- #include "wx/ownerdrw.h" // base class
-#endif
-
-// ----------------------------------------------------------------------------
-// wxMenuItem: an item in the menu, optionally implements owner-drawn behaviour
-// ----------------------------------------------------------------------------
-
-class WXDLLIMPEXP_CORE wxMenuItem : public wxMenuItemBase
-#if wxUSE_OWNER_DRAWN
- , public wxOwnerDrawn
-#endif
-{
-public:
- // ctor & dtor
- wxMenuItem(wxMenu *parentMenu = NULL,
- int id = wxID_SEPARATOR,
- const wxString& name = wxEmptyString,
- const wxString& help = wxEmptyString,
- wxItemKind kind = wxITEM_NORMAL,
- wxMenu *subMenu = NULL);
- virtual ~wxMenuItem();
-
- // override base class virtuals
- virtual void SetItemLabel(const wxString& strName);
- virtual void SetCheckable(bool checkable);
-
- virtual void Enable(bool bDoEnable = TRUE);
- virtual void Check(bool bDoCheck = TRUE);
- virtual bool IsChecked() const;
-
- // unfortunately needed to resolve ambiguity between
- // wxMenuItemBase::IsCheckable() and wxOwnerDrawn::IsCheckable()
- bool IsCheckable() const { return wxMenuItemBase::IsCheckable(); }
-
- // mark item as belonging to the given radio group
- void SetAsRadioGroupStart();
- void SetRadioGroupStart(int start);
- void SetRadioGroupEnd(int end);
-
- // compatibility only, don't use in new code
- wxMenuItem(wxMenu *parentMenu,
- int id,
- const wxString& text,
- const wxString& help,
- bool isCheckable,
- wxMenu *subMenu = NULL);
-
-private:
- // common part of all ctors
- void Init();
-
- // the positions of the first and last items of the radio group this item
- // belongs to or -1: start is the radio group start and is valid for all
- // but first radio group items (m_isRadioGroupStart == FALSE), end is valid
- // only for the first one
- union
- {
- int start;
- int end;
- } m_radioGroup;
-
- // does this item start a radio group?
- bool m_isRadioGroupStart;
-
- DECLARE_DYNAMIC_CLASS_NO_COPY(wxMenuItem)
-};
-
-#endif //_MENUITEM_H
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/metafile.h
-// Purpose: wxMetaFile, wxMetaFileDC and wxMetaFileDataObject classes
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_METAFIILE_H_
-#define _WX_METAFIILE_H_
-
-#include "wx/dc.h"
-#include "wx/gdiobj.h"
-
-#if wxUSE_DRAG_AND_DROP
- #include "wx/dataobj.h"
-#endif
-
-// ----------------------------------------------------------------------------
-// Metafile and metafile device context classes
-// ----------------------------------------------------------------------------
-
-class WXDLLIMPEXP_FWD_CORE wxMetafile;
-
-class WXDLLIMPEXP_CORE wxMetafileRefData: public wxGDIRefData
-{
-public:
- wxMetafileRefData();
- virtual ~wxMetafileRefData();
-
- virtual bool IsOk() const { return m_metafile != 0; }
-
-public:
- WXHANDLE m_metafile;
- int m_windowsMappingMode;
- int m_width, m_height;
-
- friend class WXDLLIMPEXP_FWD_CORE wxMetafile;
-};
-
-#define M_METAFILEDATA ((wxMetafileRefData *)m_refData)
-
-class WXDLLIMPEXP_CORE wxMetafile: public wxGDIObject
-{
-public:
- wxMetafile(const wxString& file = wxEmptyString);
- virtual ~wxMetafile();
-
- // After this is called, the metafile cannot be used for anything
- // since it is now owned by the clipboard.
- virtual bool SetClipboard(int width = 0, int height = 0);
-
- virtual bool Play(wxDC *dc);
-
- // set/get the size of metafile for clipboard operations
- wxSize GetSize() const { return wxSize(GetWidth(), GetHeight()); }
- int GetWidth() const { return M_METAFILEDATA->m_width; }
- int GetHeight() const { return M_METAFILEDATA->m_height; }
-
- void SetWidth(int width) { M_METAFILEDATA->m_width = width; }
- void SetHeight(int height) { M_METAFILEDATA->m_height = height; }
-
- // Implementation
- WXHANDLE GetHMETAFILE() const { return M_METAFILEDATA->m_metafile; }
- void SetHMETAFILE(WXHANDLE mf) ;
- int GetWindowsMappingMode() const { return M_METAFILEDATA->m_windowsMappingMode; }
- void SetWindowsMappingMode(int mm);
-
-private:
- DECLARE_DYNAMIC_CLASS(wxMetafile)
-};
-
-class WXDLLIMPEXP_CORE wxMetafileDC: public wxDC
-{
-public:
- // Don't supply origin and extent
- // Supply them to wxMakeMetaFilePlaceable instead.
- wxMetafileDC(const wxString& file = wxEmptyString);
-
- // Supply origin and extent (recommended).
- // Then don't need to supply them to wxMakeMetaFilePlaceable.
- wxMetafileDC(const wxString& file, int xext, int yext, int xorg, int yorg);
-
- virtual ~wxMetafileDC();
-
- // Should be called at end of drawing
- virtual wxMetafile *Close();
- virtual void SetMapMode(wxMappingMode mode);
- virtual void GetTextExtent(const wxString& string, long *x, long *y,
- long *descent = NULL, long *externalLeading = NULL,
- const wxFont *theFont = NULL, bool use16bit = FALSE) const;
-
- // Implementation
- wxMetafile *GetMetaFile() const { return m_metaFile; }
- void SetMetaFile(wxMetafile *mf) { m_metaFile = mf; }
- int GetWindowsMappingMode() const { return m_windowsMappingMode; }
- void SetWindowsMappingMode(int mm) { m_windowsMappingMode = mm; }
-
-protected:
- int m_windowsMappingMode;
- wxMetafile* m_metaFile;
-
-private:
- DECLARE_DYNAMIC_CLASS(wxMetafileDC)
-};
-
-/*
- * Pass filename of existing non-placeable metafile, and bounding box.
- * Adds a placeable metafile header, sets the mapping mode to anisotropic,
- * and sets the window origin and extent to mimic the wxMM_TEXT mapping mode.
- *
- */
-
-// No origin or extent
-bool WXDLLIMPEXP_CORE wxMakeMetafilePlaceable(const wxString& filename, float scale = 1.0);
-
-// Optional origin and extent
-bool WXDLLIMPEXP_CORE wxMakeMetaFilePlaceable(const wxString& filename, int x1, int y1, int x2, int y2, float scale = 1.0, bool useOriginAndExtent = TRUE);
-
-// ----------------------------------------------------------------------------
-// wxMetafileDataObject is a specialization of wxDataObject for metafile data
-// ----------------------------------------------------------------------------
-
-#if wxUSE_DRAG_AND_DROP
-
-class WXDLLIMPEXP_CORE wxMetafileDataObject : public wxDataObjectSimple
-{
-public:
- // ctors
- wxMetafileDataObject() : wxDataObjectSimple(wxDF_METAFILE)
- { }
- wxMetafileDataObject(const wxMetafile& metafile)
- : wxDataObjectSimple(wxDF_METAFILE), m_metafile(metafile) { }
-
- // virtual functions which you may override if you want to provide data on
- // demand only - otherwise, the trivial default versions will be used
- virtual void SetMetafile(const wxMetafile& metafile)
- { m_metafile = metafile; }
- virtual wxMetafile GetMetafile() const
- { return m_metafile; }
-
- // implement base class pure virtuals
- virtual size_t GetDataSize() const;
- virtual bool GetDataHere(void *buf) const;
- virtual bool SetData(size_t len, const void *buf);
-
-protected:
- wxMetafile m_metafile;
-};
-
-#endif // wxUSE_DRAG_AND_DROP
-
-#endif
- // _WX_METAFIILE_H_
-
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/mimetype.h
-// Purpose: classes and functions to manage MIME types
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-#ifndef _MIMETYPE_IMPL_H
-#define _MIMETYPE_IMPL_H
-
-#include "wx/defs.h"
-
-#if wxUSE_MIMETYPE
-
-#include "wx/mimetype.h"
-
-// ----------------------------------------------------------------------------
-// wxFileTypeImpl is the MSW version of wxFileType, this is a private class
-// and is never used directly by the application
-// ----------------------------------------------------------------------------
-
-class WXDLLIMPEXP_BASE wxFileTypeImpl
-{
-public:
- // ctor
- wxFileTypeImpl() { }
-
- // one of these Init() function must be called (ctor can't take any
- // arguments because it's common)
-
- // initialize us with our file type name and extension - in this case
- // we will read all other data from the registry
- void Init(const wxString& strFileType, const wxString& ext);
-
- // implement accessor functions
- bool GetExtensions(wxArrayString& extensions);
- bool GetMimeType(wxString *mimeType) const;
- bool GetMimeTypes(wxArrayString& mimeTypes) const;
- bool GetIcon(wxIconLocation *iconLoc) const;
- bool GetDescription(wxString *desc) const;
- bool GetOpenCommand(wxString *openCmd,
- const wxFileType::MessageParameters& params) const;
- bool GetPrintCommand(wxString *printCmd,
- const wxFileType::MessageParameters& params) const;
-
- size_t GetAllCommands(wxArrayString * verbs, wxArrayString * commands,
- const wxFileType::MessageParameters& params) const;
-
- bool Unassociate();
-
- // set an arbitrary command, ask confirmation if it already exists and
- // overwriteprompt is TRUE
- bool SetCommand(const wxString& cmd,
- const wxString& verb,
- bool overwriteprompt = TRUE);
-
- bool SetDefaultIcon(const wxString& cmd = wxEmptyString, int index = 0);
-
- // this is called by Associate
- bool SetDescription (const wxString& desc);
-
-private:
- // helper function: reads the command corresponding to the specified verb
- // from the registry (returns an empty string if not found)
- wxString GetCommand(const wxChar *verb) const;
-
- // get the registry path for the given verb
- wxString GetVerbPath(const wxString& verb) const;
-
- // check that the registry key for our extension exists, create it if it
- // doesn't, return FALSE if this failed
- bool EnsureExtKeyExists();
-
- wxString m_strFileType, // may be empty
- m_ext;
-
- // these methods are not publicly accessible (as wxMimeTypesManager
- // doesn't know about them), and should only be called by Unassociate
-
- bool RemoveOpenCommand();
- bool RemoveCommand(const wxString& verb);
- bool RemoveMimeType();
- bool RemoveDefaultIcon();
- bool RemoveDescription();
-};
-
-class WXDLLIMPEXP_BASE wxMimeTypesManagerImpl
-{
-public:
- // nothing to do here, we don't load any data but just go and fetch it from
- // the registry when asked for
- wxMimeTypesManagerImpl() { }
-
- // implement containing class functions
- wxFileType *GetFileTypeFromExtension(const wxString& ext);
- wxFileType *GetOrAllocateFileTypeFromExtension(const wxString& ext);
- wxFileType *GetFileTypeFromMimeType(const wxString& mimeType);
-
- size_t EnumAllFileTypes(wxArrayString& mimetypes);
-
- // create a new filetype association
- wxFileType *Associate(const wxFileTypeInfo& ftInfo);
-
- // create a new filetype with the given name and extension
- wxFileType *CreateFileType(const wxString& filetype, const wxString& ext);
-};
-
-#endif // wxUSE_MIMETYPE
-
-#endif
- //_MIMETYPE_IMPL_H
-
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/minifram.h
-// Purpose: wxMiniFrame class
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_MINIFRAM_H_
-#define _WX_MINIFRAM_H_
-
-#include "wx/frame.h"
-
-class WXDLLIMPEXP_CORE wxMiniFrame : public wxFrame
-{
-public:
- wxMiniFrame() { }
-
- bool Create(wxWindow *parent,
- wxWindowID id,
- const wxString& title,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = wxCAPTION | wxCLIP_CHILDREN | wxRESIZE_BORDER,
- const wxString& name = wxFrameNameStr)
- {
- return wxFrame::Create(parent, id, title, pos, size,
- style |
- wxFRAME_TOOL_WINDOW |
- (parent ? wxFRAME_FLOAT_ON_PARENT : 0), name);
- }
-
- wxMiniFrame(wxWindow *parent,
- wxWindowID id,
- const wxString& title,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = wxCAPTION | wxCLIP_CHILDREN | wxRESIZE_BORDER,
- const wxString& name = wxFrameNameStr)
- {
- Create(parent, id, title, pos, size, style, name);
- }
-
-protected:
- DECLARE_DYNAMIC_CLASS_NO_COPY(wxMiniFrame)
-};
-
-#endif
- // _WX_MINIFRAM_H_
+++ /dev/null
-/******************************************************************************
- * Name: wx/palmos/missing.h
- * Purpose: the missing declarations for wxPalm
- * Author: Yunhui Fu
- * Created: 2007-10-18
- * Modified by:
- * RCS-ID: $Id$
- * Copyright: (c) 2007 Yunhui Fu
- * Licence: wxWindows licence
- ******************************************************************************/
-
-#ifndef _PALMOS_STDIO_FAKE_H
-#define _PALMOS_STDIO_FAKE_H
-
-#include <stdarg.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <PalmTypes.h>
-#include <MemoryMgr.h> // Core/System/
-#include <StringMgr.h> // Core/System/
-#include <UIResources.h> // alertRscType,MenuRscType
-#include <ErrorMgr.h>
-#include <DataMgr.h>
-
-#ifdef __cplusplus
-#define _PSF_BEGIN_EXTERN_C extern "C" {
-#define _PSF_END_EXTERN_C }
-#else
-#define _PSF_BEGIN_EXTERN_C
-#define _PSF_END_EXTERN_C
-#endif
-
-#if __WXPALMOS6__
- #include <wchar.h> // wint_t
- #include <unistd.h> // access(), rmdir()
- #include <time.h>
- #include <StatusBar.h>
- #include <Loader.h>
- #include <PalmTypesCompatibility.h> // UInt8,UInt16,...
-#else
- #if !defined(__MWERKS__)
- #include <PenInputMgr.h>
- #endif
-
- #define uint32_t UInt32
- #define uint16_t UInt16
- #define uint8_t UInt8
-#endif // __WXPALMOS6__
-#if __WXPALMOS6__
- #define POS_VFSImportDatabaseFromFile(a,b,cardno,d) VFSImportDatabaseFromFile(a,b,d)
- #define POS_VFSImportDatabaseFromFileCustom(a,b,cardno,d,e,f) VFSImportDatabaseFromFileCustom(a,b,d,e,f)
- #define POS_VFSExportDatabaseToFile(a,b,cardno,d) VFSExportDatabaseToFile(a,b,d)
- #define POS_VFSExportDatabaseToFileCustom(a,b,cardno,d,e,f) VFSExportDatabaseToFileCustom(a,b,d,e,f)
- #define POS_DmGetResource(a,b,c) DmGetResource(a,b,c)
- #define POS_FrmSetMenu(a,b,c) FrmSetMenu(a,b,c)
- #define POS_FrmCustomAlert(a,b,c,d,e) FrmCustomAlert(a,b,c,d,e)
- #define POS_MemNumRAMHeaps() MemNumRAMHeaps()
- #define POS_SysBatteryInfo(a,b,c,d,e,f,g,h) SysBatteryInfo(a,b,c,d,e,f,g,h)
-#else // __WXPALMOS5__
- #define POS_VFSImportDatabaseFromFile(a,b,cardno,d) VFSImportDatabaseFromFile(a,b,cardno,d)
- #define POS_VFSImportDatabaseFromFileCustom(a,b,cardno,d,e,f) VFSImportDatabaseFromFileCustom(a,b,cardno,d,e,f)
- #define POS_VFSExportDatabaseToFile(a,b,cardno,d) VFSExportDatabaseToFile(a,b,d)
- #define POS_VFSExportDatabaseToFileCustom(a,b,cardno,d,e,f) VFSExportDatabaseToFileCustom(a,b,cardno,d,e,f)
- #define POS_DmGetResource(a,b,c) DmGetResource(b,c)
- #define POS_FrmSetMenu(a,b,c) FrmSetMenu(a,c)
- #define POS_FrmCustomAlert(a,b,c,d,e) FrmCustomAlert(b,c,d,e)
- #define POS_MemNumRAMHeaps() MemNumRAMHeaps(0)
- #define POS_SysBatteryInfo(a,b,c,d,e,f,g,h) SysBatteryInfo(a,b,c,e,f,g,h)
-#define MemCardInfoV40 MemCardInfo
-#define FileOpenV50 FileOpen
-#define ExgDBWriteV40 ExgDBWrite
-#define DmSortRecordInfoPtr SortRecordInfoPtr
-
-#define ErrFatalErrorInContext(fileName, lineNum, errMsg) ErrDisplayFileLineMsg(fileName, lineNum, errMsg)
-#endif // __WXPALMOS6__
-
-_PSF_BEGIN_EXTERN_C
-
-#if __WXPALMOS5__
-
-#if defined(__MWERKS__)
-//#include <unix_stdarg.h>
-#endif
-
-#if 1
-#define strcpy(x,y) StrCopy((char*)(x),(char*)(y))
-#define strncpy(x,y,z) StrNCopy((x),(y),(z))
-#define strcmp(x,y) StrCompare((x),(y))
-#define strcat(x,y) StrCat((x),(y))
-#define strlen(x) StrLen((char*)(x))
-#define strchr(x,y) StrChr((x),(y))
-#define strstr(x,y) StrStr((x),(y))
-#define strcasecmp(x,y) StrCaselessCompare((x),(y))
-
-#define memcpy(x,y,z) ((0 == MemMove((x),(void *)(y),(z))) ? (x) : (0))
-#define memset(x,y,z) (MemSet((x),(z),(y)))
-#define memcmp(x,y,z) (MemCmp((x),(y),(z)))
-#endif
-
-#include "sections.h"
-#ifndef int8_t
-#define int8_t char
-#define int16_t short
-#define int64_t long long
-#define uint64_t unsigned int64_t
-
-#endif
-#define wint_t int
-
-#define ssize_t long
-#define size_t uint32_t
-#define off_t ssize_t
-
-#if 0
-#undef malloc
-#undef realloc
-#undef free
-#define malloc(x) MemPtrNew(x)
-#define free(x) MemPtrFree(x)
-void * realloc (void *p, size_t newsize);
-#endif
-char * strdup (const char *old);
-
-// copy from Core/System/Unix/unix_stdio.h
-#ifndef _STDLIB
- #define sprintf StrPrintF
- #define vsprintf(x,y,z) StrVPrintF(x,(const Char *)y,z)
-#else
- int vsprintf(char *, const char *, _Va_list);
-#endif
-int sscanf(const char *, const char *, ...);
-
-///////////////////// time ////////////////////
-#define time_t uint64_t
-time_t time(time_t *T);
-
-struct tm {
- int8_t tm_gmtoff;
- int8_t tm_isdst;
- uint8_t tm_sec;
- uint8_t tm_min;
- uint8_t tm_hour;
- uint8_t tm_wday;
- uint8_t tm_mday;
- uint8_t tm_mon;
- uint16_t tm_yday;
- uint64_t tm_year;
-};
-
-#define HAVE_LOCALTIME_R 1
-extern struct tm *localtime (const time_t *CLOCK); // datetime.cpp: GetTmNow(void)
-extern struct tm *localtime_r (const time_t *CLOCK, struct tm *RES);
-
-#define HAVE_GMTIME_R 1
-extern struct tm *gmtime (const time_t *CLOCK);
-extern struct tm *gmtime_r (const time_t *CLOCK, struct tm *RES);
-
-extern time_t mktime (struct tm *TIMP);
-double difftime (time_t TIM1, time_t TIM2);
-
-char *ctime(const time_t *CLOCK);
-char *ctime_r(const time_t *CLOCK, char *BUF);
-
-//#define HAVE_STRFTIME 1
-extern size_t strftime(char *S, size_t MAXSIZE, const char *FORMAT, const struct tm *TIMP);
-
-///////////////////// locale.h ////////////////////
-struct lconv
-{
- char *decimal_point;
- char *thousands_sep;
- char *grouping;
- char *int_curr_symbol;
- char *currency_symbol;
- char *mon_decimal_point;
- char *mon_thousands_sep;
- char *mon_grouping;
- char *positive_sign;
- char *negative_sign;
- char int_frac_digits;
- char frac_digits;
- char p_cs_precedes;
- char p_sep_by_space;
- char n_cs_precedes;
- char n_sep_by_space;
- char p_sign_posn;
- char n_sign_posn;
-};
-char *setlocale(int CATEGORY, const char *LOCALE);
-struct lconv *localeconv(void);
-
-char *_setlocale_r(void *REENT, int CATEGORY, const char *LOCALE);
-struct lconv *_localeconv_r(void *REENT);
-///////////////////// stdlib.h ////////////////////
-
-#if !defined(__MWERKS__)
- #if !defined(__WCHAR_TYPE__) || \
- (!defined(__GNUC__) || wxCHECK_GCC_VERSION(2, 96))
- #define wchar_t int
- #else /* __WCHAR_TYPE__ and gcc < 2.96 */
- #define wchar_t __WCHAR_TYPE__
- #endif /* __WCHAR_TYPE__ */
-#endif
-int _watoi(wchar_t * nptr);
-long _watol(wchar_t * nptr);
-double _watof(wchar_t *nptr);
-#define watoi(a) _watoi((wchar_t *)(a))
-#define watol(a) _watol((wchar_t *)(a))
-#define watof(a) _watof((wchar_t *)(a))
-int mbstowcs(wchar_t *PWC, const char *S, size_t N);
-int wcstombs(const char *S, wchar_t *PWC, size_t N);
-
-///////////////////// fcntl.h ////////////////////
-#define O_RDONLY 0x01
-#define O_WRONLY 0x02
-#define O_RDWR 0x04
-#define O_APPEND 0x08
-#define O_CREAT 0x10
-#define O_TRUNC 0x20
-#define O_EXCL 0x40
-#define O_SYNC 0x80
-
-// io.h
-int open (const char*, int, ...);
-int read (int, void*, unsigned int);
-int write (int, const void*, unsigned int);
-int close (int);
-long lseek (int, long, int);
-
-///////////////////// stdio.h ////////////////////
-int remove(const char *FILENAME);
-int rename(const char *OLD, const char *NEW);
-
-///////////////////// unistd.h ////////////////////
-int access (const char *path, int amode);
-int rmdir (const char *path);
-
-///////////////////// FILE ////////////////////
-#ifndef NULL
-#define NULL ((void *)(0))
-#endif
-
-#define FILE void
-#undef stdin
-#undef stdout
-#undef stderr
-#define stdin NULL
-#define stdout NULL
-#define stderr NULL
-
-#define SEEK_SET 0 /* set file offset to offset */
-#define SEEK_CUR 1 /* set file offset to current plus offset */
-#define SEEK_END 2 /* set file offset to EOF plus offset */
-
-FILE * fopen (const char *_name, const char *_type);
-int fclose (FILE *);
-size_t fread (void *buf, size_t _size, size_t _n, FILE *);
-size_t fwrite (const void *buf , size_t _size, size_t _n, FILE *);
-int fseek (FILE *, long, int);
-long ftell ( FILE *);
-int feof (FILE *);
-int ferror (FILE *);
-void clearerr (FILE *);
-FILE *freopen(const char *fn, const char *mode, FILE *fp);
-//FILE *_freopen_r(struct _reent *PTR, const char *fn, const char *mode, FILE *fp);
-
-extern int fflush (FILE *FP);
-extern int fputs (const char *S, FILE *FP);
-extern int fputc (int CH, FILE *FP);
-
-//int printf(const char *format, ...);
-int fprintf(FILE *stream, const char *format, ...);
-//int sprintf(char *str, const char *format, ...);
-//int snprintf(char *str, size_t size, const char *format, ...);
-//int vfprintf(FILE * restrict stream, const char * restrict format, va_list ap);
-//int vsprintf(char * restrict str, const char * restrict format, va_list ap);
-//int vsnprintf(char * restrict str, size_t size, const char * restrict format, va_list ap);
-int vsscanf (const char *s, const char *format, va_list param);
-
-///////////////////// string ////////////////////
-char *strerror(int ERRNUM);
-
-///////////////////// ctype.h ////////////////////
-extern int isascii(int C);
-
-///////////////////// stdlib ////////////////////
-void qsort(void *base, size_t nmemb, size_t size, int (*compar)(const void *, const void *));
-void qsort_r(void *base, size_t nmemb, size_t size, void *thunk, int (*compar)(void *, const void *, const void *));
-//int heapsort(void *base, size_t nmemb, size_t size, int (*compar)(const void *, const void *));
-//int mergesort(void *base, size_t nmemb, size_t size, int (*compar)(const void *, const void *));
-void *bsearch(const void *key, const void *base, size_t nmemb,size_t size, int (*compar)(const void *, const void *));
-
-char *getenv(const char *NAME);
-
-double atof(const char *S);
-double strtod(const char *STR, char **TAIL);
-double _strtod_r(void *REENT, const char *STR, char **TAIL);
-
-///////////////////// math.h ////////////////////
-#define __IMPORT
-
-union __dmath
-{
- unsigned long i[2];
- double d;
-};
-
-union __fmath
-{
- unsigned long i[1];
- float f;
-};
-
-union __ldmath
-{
- unsigned long i[4];
- long double ld;
-};
-#if defined(__GNUC__) && \
- ( (__GNUC__ >= 4) || \
- ( (__GNUC__ >= 3) && defined(__GNUC_MINOR__) && (__GNUC_MINOR__ >= 3) ) )
-
- /* gcc >= 3.3 implicitly defines builtins for HUGE_VALx values. */
-
- #ifndef HUGE_VAL
- #define HUGE_VAL (__builtin_huge_val())
- #endif
-
- #ifndef HUGE_VALF
- #define HUGE_VALF (__builtin_huge_valf())
- #endif
-
- #ifndef HUGE_VALL
- #define HUGE_VALL (__builtin_huge_vall())
- #endif
-
-#else /* !gcc >= 3.3 */
-
- /* No builtins. Use floating-point unions instead. Declare as an array
- without bounds so no matter what small data support a port and/or
- library has, the reference will be via the general method for accessing
- globals. */
-
- #ifndef HUGE_VAL
- extern __IMPORT const union __dmath __infinity[];
- #define HUGE_VAL (__infinity[0].d)
- #endif
-
- #ifndef HUGE_VALF
- extern __IMPORT const union __fmath __infinityf[];
- #define HUGE_VALF (__infinityf[0].f)
- #endif
-
- #ifndef HUGE_VALL
- extern __IMPORT const union __ldmath __infinityld[];
- #define HUGE_VALL (__infinityld[0].ld)
- #endif
-
-#endif /* !gcc >= 3.3 */
-#undef __IMPORT
-
-///////////////////// PalmOS6 ////////////////////
-#define status_t Err
-
-// TimeMgr.h
-time_t SysTimeToMilliSecs(time_t systime);
-time_t SysTimeInSecs(time_t secs);
-
-///////////////////// END ////////////////////
-
-#endif // __WXPALMOS5__
-
-///////////////////// wctype.h ////////////////////
-extern int iswalnum(wint_t C);
-extern int iswalpha(wint_t C);
-extern int iswcntrl(wint_t C);
-extern int iswdigit(wint_t C);
-extern int iswgraph(wint_t C);
-extern int iswlower(wint_t C);
-extern int iswprint(wint_t C);
-extern int iswpunct(wint_t C);
-extern int iswspace(wint_t C);
-extern int iswupper(wint_t C);
-extern int iswxdigit(wint_t C);
-
-extern wint_t towlower(wint_t C);
-extern wint_t towupper(wint_t C);
-extern size_t wcsftime(wchar_t *strDest, size_t maxsize, const wchar_t *format, const struct tm *timeptr);
-
-size_t wcslen (const wchar_t * str);
-wchar_t * wcscpy (wchar_t * dst, const wchar_t * src);
-wchar_t * wcsncpy (wchar_t * dst, const wchar_t * src, size_t n);
-wchar_t * wcscat (wchar_t * dst, const wchar_t * src);
-wchar_t * wcsncat (wchar_t * dst, const wchar_t * src, size_t n);
-int wcscmp (const wchar_t * str1, const wchar_t * str2);
-int wcsncmp (const wchar_t * str1, const wchar_t * str2, size_t n);
-wchar_t * wcschr (const wchar_t * str, const wchar_t chr);
-int wcscoll (const wchar_t *str1, const wchar_t * str2);
-size_t wcsxfrm (wchar_t * str1, const wchar_t * str2, size_t n);
-wchar_t * wcsrchr (const wchar_t * str, wchar_t chr);
-wchar_t * wcspbrk (const wchar_t * str, const wchar_t * set);
-size_t wcsspn (const wchar_t * str, const wchar_t * set);
-size_t wcscspn (const wchar_t * str, const wchar_t * set);
-wchar_t * wcsstr (const wchar_t * str, const wchar_t * pat);
-wchar_t * wcstok (wchar_t * str, const wchar_t * set, wchar_t ** );
-
-long wcstol (const wchar_t * str, wchar_t ** end, int base);
-unsigned long wcstoul (const wchar_t * a, wchar_t ** b, int c);
-double wcstod (const wchar_t * a, wchar_t ** b);
-
-char * setlocale (int category, const char *locale);
-
-#define O_BINARY 0x00 /* for DOS compability */
-extern int eof(int fd);
-//extern int remove(const char *fn);
-extern int access(const char *path, int amode);
-extern off_t lseek(int fildes, off_t offset, int whence);
-
-//TxtCharIsAlNum
-//#define isalpha(a) TxtCharIsAlpha(a)
-//TxtCharIsCntrl TxtCharIsDelim TxtCharIsDigit TxtCharIsGraph TxtCharIsHardKey TxtCharIsHex TxtCharIsLower TxtCharIsPrint TxtCharIsPunct TxtCharIsSpace TxtCharIsUpper
-
-#include "pfall.h"
-
-_PSF_END_EXTERN_C
-
-#endif // _PALMOS_STDIO_FAKE_H
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/msgdlg.h
-// Purpose: wxMessageDialog class
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_MSGBOXDLG_H_
-#define _WX_MSGBOXDLG_H_
-
-class WXDLLIMPEXP_CORE wxMessageDialog : public wxMessageDialogBase
-{
-public:
- wxMessageDialog(wxWindow *parent,
- const wxString& message,
- const wxString& caption = wxMessageBoxCaptionStr,
- long style = wxOK|wxCENTRE,
- const wxPoint& WXUNUSED(pos) = wxDefaultPosition)
- : wxMessageDialogBase(parent, message, caption, style)
- {
- }
-
- virtual int ShowModal(void);
-
- DECLARE_DYNAMIC_CLASS(wxMessageDialog)
- wxDECLARE_NO_COPY_CLASS(wxMessageDialog);
-};
-
-
-#endif
- // _WX_MSGBOXDLG_H_
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/mslu.h
-// Purpose: Fixes for bugs in MSLU
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_MSLU_H_
-#define _WX_MSLU_H_
-
-#include "wx/defs.h"
-#include "wx/utils.h"
-#include "wx/chartype.h"
-
-#if !wxUSE_UNICODE_MSLU
-inline bool wxUsingUnicowsDll() { return false; }
-#else
-
-// Returns true if we are running under Unicode emulation in Win9x environment.
-// Workaround hacks take effect only if this condition is met
-inline bool wxUsingUnicowsDll()
-{
- return (wxGetOsVersion() == wxWIN95);
-}
-
-//------------------------------------------------------------------------
-// Wrongly implemented functions from unicows.dll
-//------------------------------------------------------------------------
-
-#if wxUSE_GUI
-
-WXDLLIMPEXP_CORE int wxMSLU_DrawStateW(WXHDC dc, WXHBRUSH br, WXFARPROC outputFunc,
- WXLPARAM lData, WXWPARAM wData,
- int x, int y, int cx, int cy,
- unsigned int flags);
-#define DrawStateW(dc, br, func, ld, wd, x, y, cx, cy, flags) \
- wxMSLU_DrawStateW((WXHDC)dc,(WXHBRUSH)br,(WXFARPROC)func, \
- ld, wd, x, y, cx, cy, flags)
-
-WXDLLIMPEXP_CORE int wxMSLU_GetOpenFileNameW(void *ofn);
-#define GetOpenFileNameW(ofn) wxMSLU_GetOpenFileNameW((void*)ofn)
-
-WXDLLIMPEXP_CORE int wxMSLU_GetSaveFileNameW(void *ofn);
-#define GetSaveFileNameW(ofn) wxMSLU_GetSaveFileNameW((void*)ofn)
-
-#endif
-
-//------------------------------------------------------------------------
-// Missing libc file manipulation functions in Win9x
-//------------------------------------------------------------------------
-
-WXDLLIMPEXP_CORE int wxMSLU__trename(const wxChar *oldname, const wxChar *newname);
-WXDLLIMPEXP_CORE int wxMSLU__tremove(const wxChar *name);
-
-#endif // wxUSE_UNICODE_MSLU
-
-#endif // _WX_MSLU_H_
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/notebook.h
-// Purpose: notebook interface (a.k.a. property sheet)
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-#ifndef _NOTEBOOK_H
-#define _NOTEBOOK_H
-
-#if wxUSE_NOTEBOOK
-
-// ----------------------------------------------------------------------------
-// headers
-// ----------------------------------------------------------------------------
-
-#include "wx/control.h"
-
-// ----------------------------------------------------------------------------
-// wxNotebook
-// ----------------------------------------------------------------------------
-
-class WXDLLIMPEXP_CORE wxNotebookPageInfo : public wxObject
-{
-public :
- wxNotebookPageInfo() { m_page = NULL ; m_imageId = -1 ; m_selected = false ; }
- virtual ~wxNotebookPageInfo() { }
-
- void Create( wxNotebookPage *page , const wxString &text , bool selected , int imageId )
- { m_page = page ; m_text = text ; m_selected = selected ; m_imageId = imageId ; }
- wxNotebookPage* GetPage() const { return m_page ; }
- wxString GetText() const { return m_text ; }
- bool GetSelected() const { return m_selected ; }
- int GetImageId() const { return m_imageId; }
-private :
- wxNotebookPage *m_page ;
- wxString m_text ;
- bool m_selected ;
- int m_imageId ;
-
- DECLARE_DYNAMIC_CLASS(wxNotebookPageInfo) ;
-} ;
-
-
-WX_DECLARE_EXPORTED_LIST(wxNotebookPageInfo, wxNotebookPageInfoList );
-
-class WXDLLIMPEXP_CORE wxNotebook : public wxNotebookBase
-{
-public:
- // ctors
- // -----
-
- // default for dynamic class
- wxNotebook();
-
- // the same arguments as for wxControl (@@@ any special styles?)
- wxNotebook(wxWindow *parent,
- wxWindowID id,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = 0,
- const wxString& name = wxNotebookNameStr);
-
- // Create() function
- bool Create(wxWindow *parent,
- wxWindowID id,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = 0,
- const wxString& name = wxNotebookNameStr);
-
- // accessors
- // ---------
-
- // get number of pages in the dialog
- virtual size_t GetPageCount() const;
-
- // set the currently selected page, return the index of the previously
- // selected one (or -1 on error)
- // NB: this function will _not_ generate wxEVT_NOTEBOOK_PAGE_xxx events
- int SetSelection(size_t nPage);
-
- // get the currently selected page
- int GetSelection() const { return m_nSelection; }
-
- // changes the selected page without sending events
- int ChangeSelection(size_t nPage);
-
- // set/get the title of a page
- bool SetPageText(size_t nPage, const wxString& strText);
- wxString GetPageText(size_t nPage) const;
-
- // image list stuff: each page may have an image associated with it. All
- // the images belong to an image list, so you have to
- // 1) create an image list
- // 2) associate it with the notebook
- // 3) set for each page it's image
- // associate image list with a control
- void SetImageList(wxImageList* imageList);
-
- // sets/returns item's image index in the current image list
- int GetPageImage(size_t nPage) const;
- bool SetPageImage(size_t nPage, int nImage);
-
- // currently it's always 1 because wxGTK doesn't support multi-row
- // tab controls
- int GetRowCount() const;
-
- // control the appearance of the notebook pages
- // set the size (the same for all pages)
- void SetPageSize(const wxSize& size);
- // set the padding between tabs (in pixels)
- void SetPadding(const wxSize& padding);
-
- // operations
- // ----------
- // remove all pages
- bool DeleteAllPages();
-
- // inserts a new page to the notebook (it will be deleted ny the notebook,
- // don't delete it yourself). If bSelect, this page becomes active.
- bool InsertPage(size_t nPage,
- wxNotebookPage *pPage,
- const wxString& strText,
- bool bSelect = false,
- int imageId = NO_IMAGE);
-
- void AddPageInfo( wxNotebookPageInfo* info ) { AddPage( info->GetPage() , info->GetText() , info->GetSelected() , info->GetImageId() ) ; }
- const wxNotebookPageInfoList& GetPageInfos() const ;
-
- // Windows-only at present. Also, you must use the wxNB_FIXEDWIDTH
- // style.
- void SetTabSize(const wxSize& sz);
-
- // hit test
- virtual int HitTest(const wxPoint& pt, long *flags = NULL) const;
-
- // calculate the size of the notebook from the size of its page
- virtual wxSize CalcSizeFromPage(const wxSize& sizePage) const;
-
- // callbacks
- // ---------
- void OnSize(wxSizeEvent& event);
- void OnSelChange(wxBookCtrlEvent& event);
- void OnNavigationKey(wxNavigationKeyEvent& event);
-
- // base class virtuals
- // -------------------
-
-#if wxUSE_CONSTRAINTS
- virtual void SetConstraintSizes(bool recurse = true);
- virtual bool DoPhase(int nPhase);
-#endif // wxUSE_CONSTRAINTS
-
-protected:
- // common part of all ctors
- void Init();
-
- // remove one page from the notebook, without deleting
- virtual wxNotebookPage *DoRemovePage(size_t nPage);
-
- // set the size of the given page to fit in the notebook
- void AdjustPageSize(wxNotebookPage *page);
-
- // the current selection (-1 if none)
- int m_nSelection;
-
- wxNotebookPageInfoList m_pageInfos ;
-
-
- DECLARE_DYNAMIC_CLASS_NO_COPY(wxNotebook)
- DECLARE_EVENT_TABLE()
-};
-
-#endif // wxUSE_NOTEBOOK
-
-#endif // _NOTEBOOK_H
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/palette.h
-// Purpose: wxPalette class
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_PALETTE_H_
-#define _WX_PALETTE_H_
-
-#include "wx/gdiobj.h"
-
-class WXDLLIMPEXP_FWD_CORE wxPalette;
-
-class WXDLLIMPEXP_CORE wxPaletteRefData: public wxGDIRefData
-{
- friend class WXDLLIMPEXP_FWD_CORE wxPalette;
-public:
- wxPaletteRefData(void);
- virtual ~wxPaletteRefData(void);
-protected:
- WXHPALETTE m_hPalette;
-};
-
-#define M_PALETTEDATA ((wxPaletteRefData *)m_refData)
-
-class WXDLLIMPEXP_CORE wxPalette: public wxPaletteBase
-{
- DECLARE_DYNAMIC_CLASS(wxPalette)
-
-public:
- wxPalette(void);
-
- wxPalette(int n, const unsigned char *red, const unsigned char *green, const unsigned char *blue);
- virtual ~wxPalette(void);
- bool Create(int n, const unsigned char *red, const unsigned char *green, const unsigned char *blue);
- int GetPixel(unsigned char red, unsigned char green, unsigned char blue) const;
- bool GetRGB(int pixel, unsigned char *red, unsigned char *green, unsigned char *blue) const;
-
- virtual bool FreeResource(bool force = false);
-
- inline WXHPALETTE GetHPALETTE(void) const { return (M_PALETTEDATA ? M_PALETTEDATA->m_hPalette : 0); }
- void SetHPALETTE(WXHPALETTE pal);
-};
-
-#endif
- // _WX_PALETTE_H_
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/pen.h
-// Purpose: wxPen class
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by: Yunhui Fu
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_PEN_H_
-#define _WX_PEN_H_
-
-#include "wx/gdiobj.h"
-#include "wx/bitmap.h"
-#include "wx/colour.h"
-
-typedef WXDWORD wxMSWDash;
-
-class WXDLLIMPEXP_FWD_CORE wxPen;
-
-// VZ: this class should be made private
-class WXDLLIMPEXP_CORE wxPenRefData : public wxGDIRefData
-{
-public:
- wxPenRefData();
- wxPenRefData(const wxPenRefData& data);
- virtual ~wxPenRefData();
-
- bool operator==(const wxPenRefData& data) const
- {
- // we intentionally don't compare m_hPen fields here
- return m_style == data.m_style &&
- m_width == data.m_width &&
- m_join == data.m_join &&
- m_cap == data.m_cap &&
- m_colour == data.m_colour &&
- (m_style != wxSTIPPLE || m_stipple.IsSameAs(data.m_stipple)) &&
- (m_style != wxUSER_DASH ||
- (m_nbDash == data.m_nbDash &&
- memcmp(m_dash, data.m_dash, m_nbDash*sizeof(wxDash)) == 0));
- }
-
-protected:
- int m_width;
- wxPenStyle m_style;
- int m_join;
- int m_cap;
- wxBitmap m_stipple;
- int m_nbDash;
- wxDash * m_dash;
- wxColour m_colour;
- WXHPEN m_hPen;
-
-private:
- friend class WXDLLIMPEXP_FWD_CORE wxPen;
-
- // Cannot use
- // wxDECLARE_NO_COPY_CLASS(wxPenRefData);
- // because copy constructor is explicitly declared above;
- // but no copy assignment operator is defined, so declare
- // it private to prevent the compiler from defining it:
- wxPenRefData& operator=(const wxPenRefData&);
-};
-
-#define M_PENDATA ((wxPenRefData *)m_refData)
-#define wxPENDATA(x) ((wxPenRefData *)(x).m_refData)
-
-// ----------------------------------------------------------------------------
-// Pen
-// ----------------------------------------------------------------------------
-
-class WXDLLIMPEXP_CORE wxPen : public wxPenBase
-{
-public:
- wxPen();
- wxPen(const wxColour& col, int width = 1, wxPenStyle style = wxPENSTYLE_SOLID);
-#if FUTURE_WXWIN_COMPATIBILITY_3_0
- wxDEPRECATED_FUTURE( wxPen(const wxColour& col, int width, int style) );
-#endif
-
- wxPen(const wxBitmap& stipple, int width);
- virtual ~wxPen();
-
- bool operator==(const wxPen& pen) const
- {
- const wxPenRefData *penData = (wxPenRefData *)pen.m_refData;
-
- // an invalid pen is only equal to another invalid pen
- return m_refData ? penData && *M_PENDATA == *penData : !penData;
- }
-
- bool operator!=(const wxPen& pen) const { return !(*this == pen); }
-
- // Override in order to recreate the pen
- void SetColour(const wxColour& col);
- void SetColour(unsigned char r, unsigned char g, unsigned char b);
-
- void SetWidth(int width);
- void SetStyle(wxPenStyle style);
- void SetStipple(const wxBitmap& stipple);
- void SetDashes(int nb_dashes, const wxDash *dash);
- void SetJoin(wxPenJoin join);
- void SetCap(wxPenCap cap);
-
- wxColour& GetColour() const { return (M_PENDATA ? M_PENDATA->m_colour : wxNullColour); }
- int GetWidth() const { return (M_PENDATA ? M_PENDATA->m_width : 0); }
- wxPenStyle GetStyle() const { return (M_PENDATA ? M_PENDATA->m_style : 0); }
- wxPenJoin GetJoin() const { return (M_PENDATA ? M_PENDATA->m_join : 0); }
- wxPenCap GetCap() const { return (M_PENDATA ? M_PENDATA->m_cap : 0); }
- int GetDashes(wxDash **ptr) const
- {
- *ptr = (M_PENDATA ? (wxDash*)M_PENDATA->m_dash : NULL);
- return (M_PENDATA ? M_PENDATA->m_nbDash : 0);
- }
- wxDash* GetDash() const { return (M_PENDATA ? (wxDash*)M_PENDATA->m_dash : NULL); }
- inline int GetDashCount() const { return (M_PENDATA ? M_PENDATA->m_nbDash : 0); }
-
- inline wxBitmap *GetStipple() const { return (M_PENDATA ? (& M_PENDATA->m_stipple) : NULL); }
-
- // Internal
- bool RealizeResource();
- bool FreeResource(bool force = false);
- WXHANDLE GetResourceHandle() const;
- bool IsFree() const;
-
-#if FUTURE_WXWIN_COMPATIBILITY_3_0
- wxDEPRECATED_FUTURE( void SetStyle(int style) )
- { SetStyle((wxPenStyle)style); }
-#endif
-
-protected:
- virtual wxGDIRefData* CreateGDIRefData() const;
- virtual wxGDIRefData* CloneGDIRefData(const wxGDIRefData* data) const;
- // same as FreeResource() + RealizeResource()
- bool Recreate();
-
-private:
- DECLARE_DYNAMIC_CLASS(wxPen)
-};
-
-#endif // _WX_PEN_H_
+++ /dev/null
-///////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/popupwin.h
-// Purpose: wxPopupWindow class for PalmOS
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-///////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_MSW_POPUPWIN_H_
-#define _WX_MSW_POPUPWIN_H_
-
-// ----------------------------------------------------------------------------
-// wxPopupWindow
-// ----------------------------------------------------------------------------
-
-class WXDLLIMPEXP_CORE wxPopupWindow : public wxPopupWindowBase
-{
-public:
- wxPopupWindow() { }
-
- wxPopupWindow(wxWindow *parent, int flags = wxBORDER_NONE)
- { (void)Create(parent, flags); }
-
- bool Create(wxWindow *parent, int flags = wxBORDER_NONE);
-
- virtual bool Show(bool show = true);
-
-protected:
- // popups handle the position like wxTopLevelWindow, not wxWindow
- virtual void DoGetPosition(int *x, int *y) const;
-
- // return the style to be used for the popup windows
- virtual WXDWORD MSWGetStyle(long flags, WXDWORD *exstyle) const;
-
- // get the HWND to be used as parent of this window with CreateWindow()
- virtual WXHWND MSWGetParent() const;
-
- DECLARE_DYNAMIC_CLASS_NO_COPY(wxPopupWindow)
-};
-
-#endif // _WX_MSW_POPUPWIN_H_
-
+++ /dev/null
-///////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/prefconf.h
-// Purpose: wxPrefConfig interface
-// Author: Wlodzimierz ABX Skiba
-// Modified by:
-// Created: 28.12.2004
-// RCS-ID: $Id$
-// Copyright: (c) Wlodzimierz Skiba
-// Licence: wxWindows licence
-///////////////////////////////////////////////////////////////////////////////
-
-#ifndef _PREFCONF_H_
-#define _PREFCONF_H_
-
-#include "wx/defs.h"
-
-#if wxUSE_CONFIG
-
-// ----------------------------------------------------------------------------
-// wxPrefConfig
-// ----------------------------------------------------------------------------
-
-class WXDLLIMPEXP_BASE wxPrefConfig : public wxConfigBase
-{
-public:
- // ctor & dtor
- wxPrefConfig(const wxString& appName = wxEmptyString,
- const wxString& vendorName = wxEmptyString,
- const wxString& localFilename = wxEmptyString,
- const wxString& globalFilename = wxEmptyString,
- long style = wxCONFIG_USE_GLOBAL_FILE);
-
- // dtor will save unsaved data
- virtual ~wxPrefConfig(){}
-
- // implement inherited pure virtual functions
- // ------------------------------------------
-
- // path management
- virtual void SetPath(const wxString& strPath);
- virtual const wxString& GetPath() const { return m_strPath; }
-
- // entry/subgroup info
- virtual bool GetFirstGroup(wxString& str, long& lIndex) const;
- virtual bool GetNextGroup (wxString& str, long& lIndex) const;
- virtual bool GetFirstEntry(wxString& str, long& lIndex) const;
- virtual bool GetNextEntry (wxString& str, long& lIndex) const;
-
- // tests for existence
- virtual bool HasGroup(const wxString& strName) const;
- virtual bool HasEntry(const wxString& strName) const;
- virtual EntryType GetEntryType(const wxString& name) const;
-
- // get number of entries/subgroups in the current group, with or without
- // it's subgroups
- virtual size_t GetNumberOfEntries(bool bRecursive = false) const;
- virtual size_t GetNumberOfGroups(bool bRecursive = false) const;
-
- virtual bool Flush(bool WXUNUSED(bCurrentOnly) = false) { return true; }
-
- // rename
- virtual bool RenameEntry(const wxString& oldName, const wxString& newName);
- virtual bool RenameGroup(const wxString& oldName, const wxString& newName);
-
- // delete
- virtual bool DeleteEntry(const wxString& key, bool bGroupIfEmptyAlso = true);
- virtual bool DeleteGroup(const wxString& key);
- virtual bool DeleteAll();
-
-protected:
- // implement read/write methods
- virtual bool DoReadString(const wxString& key, wxString *pStr) const;
- virtual bool DoReadLong(const wxString& key, long *plResult) const;
- virtual bool DoReadBinary(const wxString& key, wxMemoryBuffer *buf) const;
-
- virtual bool DoWriteString(const wxString& key, const wxString& szValue);
- virtual bool DoWriteLong(const wxString& key, long lValue);
- virtual bool DoWriteBinary(const wxString& key, const wxMemoryBuffer& buf);
-
-private:
- // current path (not '/' terminated)
- wxString m_strPath;
-
- // current path (group) content (cache for read/write)
- wxString m_strGroup;
-
- // current group modified ?
- bool m_modGroup;
-
- wxDECLARE_NO_COPY_CLASS(wxPrefConfig);
- DECLARE_ABSTRACT_CLASS(wxPrefConfig)
-};
-
-#endif // wxUSE_CONFIG
-
-#endif // _PREFCONF_H_
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/printdlg.h
-// Purpose: wxPrintDialog, wxPageSetupDialog classes
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_PRINTDLG_H_
-#define _WX_PRINTDLG_H_
-
-#if wxUSE_PRINTING_ARCHITECTURE
-
-#include "wx/dialog.h"
-#include "wx/cmndata.h"
-
-class WXDLLIMPEXP_FWD_CORE wxDC;
-
-// ---------------------------------------------------------------------------
-// wxPrinterDialog: the common dialog for printing.
-// ---------------------------------------------------------------------------
-
-class WXDLLIMPEXP_CORE wxPrintDialog : public wxDialog
-{
- DECLARE_DYNAMIC_CLASS(wxPrintDialog)
-
-public:
- wxPrintDialog();
- wxPrintDialog(wxWindow *parent, wxPrintDialogData* data = NULL);
- wxPrintDialog(wxWindow *parent, wxPrintData* data);
- virtual ~wxPrintDialog();
-
- bool Create(wxWindow *parent, wxPrintDialogData* data = NULL);
- virtual int ShowModal();
-
- wxPrintDialogData& GetPrintDialogData() { return m_printDialogData; }
- wxPrintData& GetPrintData() { return m_printDialogData.GetPrintData(); }
- virtual wxDC *GetPrintDC();
-
-private:
- wxPrintDialogData m_printDialogData;
- wxDC* m_printerDC;
- bool m_destroyDC;
- wxWindow* m_dialogParent;
-
- wxDECLARE_NO_COPY_CLASS(wxPrintDialog);
-};
-
-class WXDLLIMPEXP_CORE wxPageSetupDialog: public wxDialog
-{
- DECLARE_DYNAMIC_CLASS(wxPageSetupDialog)
-
-public:
- wxPageSetupDialog();
- wxPageSetupDialog(wxWindow *parent, wxPageSetupData *data = NULL);
- virtual ~wxPageSetupDialog();
-
- bool Create(wxWindow *parent, wxPageSetupData *data = NULL);
- virtual int ShowModal();
-
- wxPageSetupData& GetPageSetupData() { return m_pageSetupData; }
-
-private:
- wxPageSetupData m_pageSetupData;
- wxWindow* m_dialogParent;
-
- wxDECLARE_NO_COPY_CLASS(wxPageSetupDialog);
-};
-
-#endif // wxUSE_PRINTING_ARCHITECTURE
-
-#endif
- // _WX_PRINTDLG_H_
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/printpalm.h
-// Purpose: wxPalmPrinter, wxPalmPrintPreview classes
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_PRINTPALM_H_
-#define _WX_PRINTPALM_H_
-
-#include "wx/prntbase.h"
-
-// ---------------------------------------------------------------------------
-// Represents the printer: manages printing a wxPrintout object
-// ---------------------------------------------------------------------------
-
-class WXDLLIMPEXP_CORE wxPalmPrinter : public wxPrinterBase
-{
- DECLARE_DYNAMIC_CLASS(wxPalmPrinter)
-
-public:
- wxPalmPrinter(wxPrintDialogData *data = NULL);
- virtual ~wxPalmPrinter();
-
- virtual bool Print(wxWindow *parent,
- wxPrintout *printout,
- bool prompt = TRUE);
- virtual wxDC* PrintDialog(wxWindow *parent);
- virtual bool Setup(wxWindow *parent);
-
-private:
- WXFARPROC m_lpAbortProc;
-
- wxDECLARE_NO_COPY_CLASS(wxPalmPrinter);
-};
-
-// ---------------------------------------------------------------------------
-// wxPrintPreview: programmer creates an object of this class to preview a
-// wxPrintout.
-// ---------------------------------------------------------------------------
-
-class WXDLLIMPEXP_CORE wxPalmPrintPreview : public wxPrintPreviewBase
-{
-public:
- wxPalmPrintPreview(wxPrintout *printout,
- wxPrintout *printoutForPrinting = NULL,
- wxPrintDialogData *data = NULL);
- wxPalmPrintPreview(wxPrintout *printout,
- wxPrintout *printoutForPrinting,
- wxPrintData *data);
- virtual ~wxPalmPrintPreview();
-
- virtual bool Print(bool interactive);
- virtual void DetermineScaling();
-
-private:
- DECLARE_DYNAMIC_CLASS_NO_COPY(wxPalmPrintPreview)
-};
-
-#endif
-// _WX_PRINTPALM_H_
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/private/timer.h
-// Purpose: wxTimer class
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_TIMER_H_
-#define _WX_TIMER_H_
-
-#include "wx/private/timer.h"
-
-class WXDLLIMPEXP_CORE wxPalmOSTimerImpl : public wxTimerImpl
-{
-friend void wxProcessTimer(wxTimer& timer);
-
-public:
- wxPalmOSTimerImpl(wxTimer* timer) : wxTimerImpl(timer) { Init(); }
- virtual ~wxPalmOSTimerImpl();
-
- virtual bool Start(int milliseconds = -1, bool oneShot = FALSE);
- virtual void Stop();
-
- virtual bool IsRunning() const { return m_id != 0; }
-
-protected:
- void Init();
-
- unsigned long m_id;
-};
-
-#endif
- // _WX_TIMERH_
+++ /dev/null
-///////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/progdlg.h
-// Purpose: wxProgressDialog interface
-// Author: Wlodzimierz ABX Skiba
-// Modified by:
-// Created: 29.12.2004
-// RCS-ID: $Id$
-// Copyright: (c) Wlodzimierz Skiba
-// Licence: wxWindows licence
-///////////////////////////////////////////////////////////////////////////////
-
-#ifndef _PREFCONF_H_
-#define _PREFCONF_H_
-
-#include "wx/defs.h"
-
-#if wxUSE_PROGRESSDLG
-
-#include "wx/dialog.h"
-
-class WXDLLIMPEXP_CORE wxProgressDialog : public wxDialog
-{
-DECLARE_DYNAMIC_CLASS(wxProgressDialog)
-public:
- wxProgressDialog(const wxString &title,
- wxString const &message,
- int maximum = 100,
- wxWindow *parent = NULL,
- int style = wxPD_APP_MODAL | wxPD_AUTO_HIDE);
- virtual ~wxProgressDialog();
-
- virtual bool Update(int value, const wxString& newmsg = wxEmptyString, bool *skip = NULL);
- void Resume();
- virtual bool Show( bool show = true );
-
- Boolean Callback(/*PrgCallbackData */ void *data);
-
- int GetValue() const { return m_cur; }
- int GetRange() const { return m_max; }
- wxString GetMessage() const { return m_msg; }
-
-private:
-
- /*ProgressType*/ void *m_prgFrame;
- wxString m_msg;
- int m_max,m_cur;
- bool m_canSkip;
- bool m_activeSkip;
-
- // Virtual function hiding supression
- virtual void Update() { wxDialog::Update(); }
-
- wxDECLARE_NO_COPY_CLASS(wxProgressDialog);
-};
-
-#endif // wxUSE_PROGRESSDLG
-
-#endif // _PREFCONF_H_
-
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/radiobox.h
-// Purpose: wxRadioBox class
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by: Wlodzimierz ABX Skiba - native wxRadioBox implementation
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne, Wlodzimierz Skiba
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_RADIOBOX_H_
-#define _WX_RADIOBOX_H_
-
-class WXDLLIMPEXP_FWD_CORE wxBitmap;
-class WXDLLIMPEXP_FWD_CORE wxRadioButton;
-
-// ----------------------------------------------------------------------------
-// wxRadioBox
-// ----------------------------------------------------------------------------
-
-class WXDLLIMPEXP_CORE wxRadioBox : public wxControl, public wxRadioBoxBase
-{
-public:
- wxRadioBox():m_radios(wxKEY_INTEGER,32)
- {
- Init();
- }
-
- wxRadioBox(wxWindow *parent,
- wxWindowID id,
- const wxString& title,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- int n = 0, const wxString choices[] = NULL,
- int majorDim = 0,
- long style = wxRA_SPECIFY_COLS,
- const wxValidator& val = wxDefaultValidator,
- const wxString& name = wxRadioBoxNameStr)
- :m_radios(wxKEY_INTEGER,n+1)
- {
- Init();
- (void)Create(parent, id, title, pos, size, n, choices, majorDim,
- style, val, name);
- }
-
- wxRadioBox(wxWindow *parent,
- wxWindowID id,
- const wxString& title,
- const wxPoint& pos,
- const wxSize& size,
- const wxArrayString& choices,
- int majorDim = 0,
- long style = wxRA_SPECIFY_COLS,
- const wxValidator& val = wxDefaultValidator,
- const wxString& name = wxRadioBoxNameStr)
- :m_radios(wxKEY_INTEGER,choices.GetCount()+1)
- {
- Init();
- (void)Create(parent, id, title, pos, size, choices, majorDim,
- style, val, name);
- }
-
- virtual ~wxRadioBox();
-
- bool Create(wxWindow *parent,
- wxWindowID id,
- const wxString& title,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- int n = 0, const wxString choices[] = NULL,
- int majorDim = 0,
- long style = wxRA_SPECIFY_COLS,
- const wxValidator& val = wxDefaultValidator,
- const wxString& name = wxRadioBoxNameStr);
-
- bool Create(wxWindow *parent,
- wxWindowID id,
- const wxString& title,
- const wxPoint& pos,
- const wxSize& size,
- const wxArrayString& choices,
- int majorDim = 0,
- long style = wxRA_SPECIFY_COLS,
- const wxValidator& val = wxDefaultValidator,
- const wxString& name = wxRadioBoxNameStr);
-
- // Enabling
- virtual bool Enable(bool enable = true);
- virtual bool Enable(unsigned int n, bool enable = true);
- virtual bool IsItemEnabled(unsigned int WXUNUSED(n)) const
- {
- /* TODO */
- return true;
- }
-
- // Showing
- virtual bool Show(bool show = true);
- virtual bool Show(unsigned int n, bool show = true);
- virtual bool IsItemShown(unsigned int WXUNUSED(n)) const
- {
- /* TODO */
- return true;
- }
-
- // implement the radiobox interface
- virtual void SetSelection(int n);
- virtual int GetSelection() const;
- virtual unsigned int GetCount() const;
- virtual wxString GetString(unsigned int n) const;
- virtual void SetString(unsigned int n, const wxString& label);
-
- virtual void SetLabel(const wxString& label);
- virtual wxString GetLabel();
-
- virtual void DoGetPosition( int *x, int *y ) const;
- virtual void DoGetSize( int *width, int *height ) const;
- virtual void DoMoveWindow(int x, int y, int width, int height);
-
- virtual wxPoint GetClientAreaOrigin() const;
-
- void SetFocus();
- void SetLabelFont(const wxFont& WXUNUSED(font)) {}
- void SetButtonFont(const wxFont& font) { SetFont(font); }
-
- virtual void Refresh( bool eraseBackground = true,
- const wxRect *rect = NULL );
-
- void Command(wxCommandEvent& event);
-
- int GetNumberOfRowsOrCols() const { return m_noRowsOrCols; }
- void SetNumberOfRowsOrCols(int n) { m_noRowsOrCols = n; }
-
- // implementation only from now on
- // -------------------------------
-
- virtual bool SetFont(const wxFont& font);
-
- void SendNotificationEvent();
-
-protected:
- // get the max size of radio buttons
- wxSize GetMaxButtonSize() const;
-
- // get the total size occupied by the radio box buttons
- wxSize GetTotalButtonSize(const wxSize& sizeBtn) const;
-
- int *m_radioWidth; // for bitmaps
- int *m_radioHeight;
-
- int m_noRowsOrCols;
- int m_selectedButton;
-
- virtual wxSize DoGetBestSize() const;
-
-private:
-
- void Init();
- wxRadioButton *GetRadioButton(int i) const;
-
- wxPoint m_pos;
- wxSize m_size;
- wxHashTable m_radios;
-
- DECLARE_DYNAMIC_CLASS(wxRadioBox)
- wxDECLARE_NO_COPY_CLASS(wxRadioBox);
-};
-
-#endif
- // _WX_RADIOBOX_H_
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/radiobut.h
-// Purpose: wxRadioButton class
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by: Wlodzimierz ABX Skiba - native wxRadioButton implementation
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne, Wlodzimierz Skiba
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_RADIOBUT_H_
-#define _WX_RADIOBUT_H_
-
-class WXDLLIMPEXP_CORE wxRadioButton: public wxControl
-{
-public:
- // ctors and creation functions
- wxRadioButton() { Init(); }
-
- wxRadioButton(wxWindow *parent,
- wxWindowID id,
- const wxString& label,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = 0,
- const wxValidator& validator = wxDefaultValidator,
- const wxString& name = wxRadioButtonNameStr)
- {
- Init();
-
- Create(parent, id, label, pos, size, style, validator, name);
- }
-
- bool Create(wxWindow *parent,
- wxWindowID id,
- const wxString& label,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = 0,
- const wxValidator& validator = wxDefaultValidator,
- const wxString& name = wxRadioButtonNameStr);
-
- // implement the radio button interface
- virtual void SetValue(bool value);
- virtual bool GetValue() const;
-
- // implementation only from now on
- virtual void Command(wxCommandEvent& event);
- void SetGroup(uint8_t group);
-
- // send a notification event, return true if processed
- bool SendClickEvent();
-
-protected:
- virtual wxSize DoGetBestSize() const;
-
-private:
- // common part of all ctors
- void Init();
-
- uint8_t m_groupID;
-
- // pushButtonCtl or checkboxCtl
- int m_radioStyle;
- DECLARE_DYNAMIC_CLASS_NO_COPY(wxRadioButton)
-};
-
-#endif
- // _WX_RADIOBUT_H_
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/region.h
-// Purpose: wxRegion class
-// Author: Julian Smart
-// Modified by:
-// Created: 01/02/97
-// RCS-ID: $Id$
-// Copyright: (c) 1997-2002 wxWidgets team
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_PALMOS_REGION_H_
-#define _WX_PALMOS_REGION_H_
-
-class WXDLLIMPEXP_CORE wxRegion : public wxRegionWithCombine
-{
-public:
- wxRegion();
- wxRegion(wxCoord x, wxCoord y, wxCoord w, wxCoord h);
- wxRegion(const wxPoint& topLeft, const wxPoint& bottomRight);
- wxRegion(const wxRect& rect);
- wxRegion(WXHRGN hRegion); // Hangs on to this region
- wxRegion(size_t n, const wxPoint *points, wxPolygonFillMode fillStyle = wxODDEVEN_RULE );
-
-#if wxUSE_IMAGE
- wxRegion( const wxBitmap& bmp)
- {
- Union(bmp);
- }
- wxRegion( const wxBitmap& bmp,
- const wxColour& transColour, int tolerance = 0)
- {
- Union(bmp, transColour, tolerance);
- }
-#endif
-
- virtual ~wxRegion();
-
- // wxRegionBase methods
- virtual void Clear();
- virtual bool IsEmpty() const;
-
- // Get internal region handle
- WXHRGN GetHRGN() const;
-
-protected:
- virtual wxGDIRefData *CreateGDIRefData() const;
- virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
-
- virtual bool DoIsEqual(const wxRegion& region) const;
- virtual bool DoGetBox(wxCoord& x, wxCoord& y, wxCoord& w, wxCoord& h) const;
- virtual wxRegionContain DoContainsPoint(wxCoord x, wxCoord y) const;
- virtual wxRegionContain DoContainsRect(const wxRect& rect) const;
-
- virtual bool DoOffset(wxCoord x, wxCoord y);
- virtual bool DoCombine(const wxRegion& region, wxRegionOp op);
-
- friend class WXDLLIMPEXP_FWD_CORE wxRegionIterator;
-
- DECLARE_DYNAMIC_CLASS(wxRegion)
-};
-
-class WXDLLIMPEXP_CORE wxRegionIterator : public wxObject
-{
-public:
- wxRegionIterator() { Init(); }
- wxRegionIterator(const wxRegion& region);
- wxRegionIterator(const wxRegionIterator& ri) : wxObject(ri) { Init(); *this = ri; }
-
- wxRegionIterator& operator=(const wxRegionIterator& ri);
-
- virtual ~wxRegionIterator();
-
- void Reset() { m_current = 0; }
- void Reset(const wxRegion& region);
-
- bool HaveRects() const { return (m_current < m_numRects); }
-
- operator bool () const { return HaveRects(); }
-
- wxRegionIterator& operator++();
- wxRegionIterator operator++(int);
-
- wxCoord GetX() const;
- wxCoord GetY() const;
- wxCoord GetW() const;
- wxCoord GetWidth() const { return GetW(); }
- wxCoord GetH() const;
- wxCoord GetHeight() const { return GetH(); }
-
- wxRect GetRect() const { return wxRect(GetX(), GetY(), GetW(), GetH()); }
-
-private:
- // common part of all ctors
- void Init();
-
- long m_current;
- long m_numRects;
- wxRegion m_region;
- wxRect* m_rects;
-
- DECLARE_DYNAMIC_CLASS(wxRegionIterator)
-};
-
-#endif // _WX_PALMOS_REGION_H_
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/scrolbar.h
-// Purpose: wxScrollBar class
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_SCROLBAR_H_
-#define _WX_SCROLBAR_H_
-
-// Scrollbar item
-class WXDLLIMPEXP_CORE wxScrollBar: public wxScrollBarBase
-{
-public:
- wxScrollBar() { m_pageSize = 0; m_viewSize = 0; m_objectSize = 0; }
- virtual ~wxScrollBar();
-
- wxScrollBar(wxWindow *parent, wxWindowID id,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = wxSB_HORIZONTAL,
- const wxValidator& validator = wxDefaultValidator,
- const wxString& name = wxScrollBarNameStr)
- {
- Create(parent, id, pos, size, style, validator, name);
- }
- bool Create(wxWindow *parent, wxWindowID id,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = wxSB_HORIZONTAL,
- const wxValidator& validator = wxDefaultValidator,
- const wxString& name = wxScrollBarNameStr);
-
- int GetThumbPosition() const ;
- int GetThumbSize() const { return m_pageSize; }
- int GetPageSize() const { return m_viewSize; }
- int GetRange() const { return m_objectSize; }
-
- virtual void SetThumbPosition(int viewStart);
- virtual void SetScrollbar(int position, int thumbSize, int range, int pageSize,
- bool refresh = true);
-
- // needed for RTTI
- void SetThumbSize( int s ) { SetScrollbar( GetThumbPosition() , s , GetRange() , GetPageSize() , true ) ; }
- void SetPageSize( int s ) { SetScrollbar( GetThumbPosition() , GetThumbSize() , GetRange() , s , true ) ; }
- void SetRange( int s ) { SetScrollbar( GetThumbPosition() , GetThumbSize() , s , GetPageSize() , true ) ; }
-
- void Command(wxCommandEvent& event);
- virtual bool MSWOnScroll(int orientation, WXWORD wParam,
- WXWORD pos, WXHWND control);
-
-protected:
-
- wxSize DoGetBestSize() const;
-
- int m_pageSize;
- int m_viewSize;
- int m_objectSize;
-
- DECLARE_DYNAMIC_CLASS_NO_COPY(wxScrollBar)
-};
-
-#endif
- // _WX_SCROLBAR_H_
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/setup.h
-// Purpose: Configuration for the library
-// Author: Julian Smart
-// Modified by:
-// Created: 01/02/97
-// RCS-ID: $Id$
-// Copyright: (c) Julian Smart
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_SETUP_H_
-#define _WX_SETUP_H_
-
-/* --- start common options --- */
-// ----------------------------------------------------------------------------
-// global settings
-// ----------------------------------------------------------------------------
-
-// define this to 0 when building wxBase library - this can also be done from
-// makefile/project file overriding the value here
-#ifndef wxUSE_GUI
- #define wxUSE_GUI 1
-#endif // wxUSE_GUI
-
-// ----------------------------------------------------------------------------
-// compatibility settings
-// ----------------------------------------------------------------------------
-
-// This setting determines the compatibility with 2.6 API: set it to 0 to
-// flag all cases of using deprecated functions.
-//
-// Default is 1 but please try building your code with 0 as the default will
-// change to 0 in the next version and the deprecated functions will disappear
-// in the version after it completely.
-//
-// Recommended setting: 0 (please update your code)
-#define WXWIN_COMPATIBILITY_2_6 0
-
-// This setting determines the compatibility with 2.8 API: set it to 0 to
-// flag all cases of using deprecated functions.
-//
-// Default is 1 but please try building your code with 0 as the default will
-// change to 0 in the next version and the deprecated functions will disappear
-// in the version after it completely.
-//
-// Recommended setting: 0 (please update your code)
-#define WXWIN_COMPATIBILITY_2_8 1
-
-// MSW-only: Set to 0 for accurate dialog units, else 1 for old behaviour when
-// default system font is used for wxWindow::GetCharWidth/Height() instead of
-// the current font.
-//
-// Default is 0
-//
-// Recommended setting: 0
-#define wxDIALOG_UNIT_COMPATIBILITY 0
-
-// ----------------------------------------------------------------------------
-// debugging settings
-// ----------------------------------------------------------------------------
-
-// wxDEBUG_LEVEL will be defined as 1 in wx/debug.h so normally there is no
-// need to define it here. You may do it for two reasons: either completely
-// disable/compile out the asserts in release version (then do it inside #ifdef
-// NDEBUG) or, on the contrary, enable more asserts, including the usually
-// disabled ones, in the debug build (then do it inside #ifndef NDEBUG)
-//
-// #ifdef NDEBUG
-// #define wxDEBUG_LEVEL 0
-// #else
-// #define wxDEBUG_LEVEL 2
-// #endif
-
-// wxHandleFatalExceptions() may be used to catch the program faults at run
-// time and, instead of terminating the program with a usual GPF message box,
-// call the user-defined wxApp::OnFatalException() function. If you set
-// wxUSE_ON_FATAL_EXCEPTION to 0, wxHandleFatalExceptions() will not work.
-//
-// This setting is for Win32 only and can only be enabled if your compiler
-// supports Win32 structured exception handling (currently only VC++ does)
-//
-// Default is 1
-//
-// Recommended setting: 1 if your compiler supports it.
-#define wxUSE_ON_FATAL_EXCEPTION 1
-
-// Set this to 1 to be able to generate a human-readable (unlike
-// machine-readable minidump created by wxCrashReport::Generate()) stack back
-// trace when your program crashes using wxStackWalker
-//
-// Default is 1 if supported by the compiler.
-//
-// Recommended setting: 1, set to 0 if your programs never crash
-#define wxUSE_STACKWALKER 1
-
-// Set this to 1 to compile in wxDebugReport class which allows you to create
-// and optionally upload to your web site a debug report consisting of back
-// trace of the crash (if wxUSE_STACKWALKER == 1) and other information.
-//
-// Default is 1 if supported by the compiler.
-//
-// Recommended setting: 1, it is compiled into a separate library so there
-// is no overhead if you don't use it
-#define wxUSE_DEBUGREPORT 1
-
-// Generic comment about debugging settings: they are very useful if you don't
-// use any other memory leak detection tools such as Purify/BoundsChecker, but
-// are probably redundant otherwise. Also, Visual C++ CRT has the same features
-// as wxWidgets memory debugging subsystem built in since version 5.0 and you
-// may prefer to use it instead of built in memory debugging code because it is
-// faster and more fool proof.
-//
-// Using VC++ CRT memory debugging is enabled by default in debug build (_DEBUG
-// is defined) if wxUSE_GLOBAL_MEMORY_OPERATORS is *not* enabled (i.e. is 0)
-// and if __NO_VC_CRTDBG__ is not defined.
-
-// The rest of the options in this section are obsolete and not supported,
-// enable them at your own risk.
-
-// If 1, enables wxDebugContext, for writing error messages to file, etc. If
-// __WXDEBUG__ is not defined, will still use the normal memory operators.
-//
-// Default is 0
-//
-// Recommended setting: 0
-#define wxUSE_DEBUG_CONTEXT 0
-
-// If 1, enables debugging versions of wxObject::new and wxObject::delete *IF*
-// __WXDEBUG__ is also defined.
-//
-// WARNING: this code may not work with all architectures, especially if
-// alignment is an issue. This switch is currently ignored for mingw / cygwin
-//
-// Default is 0
-//
-// Recommended setting: 1 if you are not using a memory debugging tool, else 0
-#define wxUSE_MEMORY_TRACING 0
-
-// In debug mode, cause new and delete to be redefined globally.
-// If this causes problems (e.g. link errors which is a common problem
-// especially if you use another library which also redefines the global new
-// and delete), set this to 0.
-// This switch is currently ignored for mingw / cygwin
-//
-// Default is 0
-//
-// Recommended setting: 0
-#define wxUSE_GLOBAL_MEMORY_OPERATORS 0
-
-// In debug mode, causes new to be defined to be WXDEBUG_NEW (see object.h). If
-// this causes problems (e.g. link errors), set this to 0. You may need to set
-// this to 0 if using templates (at least for VC++). This switch is currently
-// ignored for mingw / cygwin / CodeWarrior
-//
-// Default is 0
-//
-// Recommended setting: 0
-#define wxUSE_DEBUG_NEW_ALWAYS 0
-
-
-// ----------------------------------------------------------------------------
-// Unicode support
-// ----------------------------------------------------------------------------
-
-// These settings are obsolete: the library is always built in Unicode mode
-// now, only set wxUSE_UNICODE to 0 to compile legacy code in ANSI mode if
-// absolutely necessary -- updating it is strongly recommended as the ANSI mode
-// will disappear completely in future wxWidgets releases.
-#ifndef wxUSE_UNICODE
- #define wxUSE_UNICODE 1
-#endif
-
-// wxUSE_WCHAR_T is required by wxWidgets now, don't change.
-#define wxUSE_WCHAR_T 1
-
-// ----------------------------------------------------------------------------
-// global features
-// ----------------------------------------------------------------------------
-
-// Compile library in exception-safe mode? If set to 1, the library will try to
-// behave correctly in presence of exceptions (even though it still will not
-// use the exceptions itself) and notify the user code about any unhandled
-// exceptions. If set to 0, propagation of the exceptions through the library
-// code will lead to undefined behaviour -- but the code itself will be
-// slightly smaller and faster.
-//
-// Note that like wxUSE_THREADS this option is automatically set to 0 if
-// wxNO_EXCEPTIONS is defined.
-//
-// Default is 1
-//
-// Recommended setting: depends on whether you intend to use C++ exceptions
-// in your own code (1 if you do, 0 if you don't)
-#define wxUSE_EXCEPTIONS 1
-
-// Set wxUSE_EXTENDED_RTTI to 1 to use extended RTTI
-//
-// Default is 0
-//
-// Recommended setting: 0 (this is still work in progress...)
-#define wxUSE_EXTENDED_RTTI 0
-
-// Support for message/error logging. This includes wxLogXXX() functions and
-// wxLog and derived classes. Don't set this to 0 unless you really know what
-// you are doing.
-//
-// Default is 1
-//
-// Recommended setting: 1 (always)
-#define wxUSE_LOG 1
-
-// Recommended setting: 1
-#define wxUSE_LOGWINDOW 1
-
-// Recommended setting: 1
-#define wxUSE_LOGGUI 1
-
-// Recommended setting: 1
-#define wxUSE_LOG_DIALOG 1
-
-// Support for command line parsing using wxCmdLineParser class.
-//
-// Default is 1
-//
-// Recommended setting: 1 (can be set to 0 if you don't use the cmd line)
-#define wxUSE_CMDLINE_PARSER 1
-
-// Support for multithreaded applications: if 1, compile in thread classes
-// (thread.h) and make the library a bit more thread safe. Although thread
-// support is quite stable by now, you may still consider recompiling the
-// library without it if you have no use for it - this will result in a
-// somewhat smaller and faster operation.
-//
-// Notice that if wxNO_THREADS is defined, wxUSE_THREADS is automatically reset
-// to 0 in wx/chkconf.h, so, for example, if you set USE_THREADS to 0 in
-// build/msw/config.* file this value will have no effect.
-//
-// Default is 1
-//
-// Recommended setting: 0 unless you do plan to develop MT applications
-#define wxUSE_THREADS 1
-
-// If enabled, compiles wxWidgets streams classes
-//
-// wx stream classes are used for image IO, process IO redirection, network
-// protocols implementation and much more and so disabling this results in a
-// lot of other functionality being lost.
-//
-// Default is 1
-//
-// Recommended setting: 1 as setting it to 0 disables many other things
-#define wxUSE_STREAMS 1
-
-// Support for positional parameters (e.g. %1$d, %2$s ...) in wxVsnprintf.
-// Note that if the system's implementation does not support positional
-// parameters, setting this to 1 forces the use of the wxWidgets implementation
-// of wxVsnprintf. The standard vsnprintf() supports positional parameters on
-// many Unix systems but usually doesn't under Windows.
-//
-// Positional parameters are very useful when translating a program since using
-// them in formatting strings allow translators to correctly reorder the
-// translated sentences.
-//
-// Default is 1
-//
-// Recommended setting: 1 if you want to support multiple languages
-#define wxUSE_PRINTF_POS_PARAMS 1
-
-
-// ----------------------------------------------------------------------------
-// Interoperability with the standard library.
-// ----------------------------------------------------------------------------
-
-// Set wxUSE_STL to 1 to enable maximal interoperability with the standard
-// library, even at the cost of backwards compatibility.
-//
-// Default is 0
-//
-// Recommended setting: 0 as the options below already provide a relatively
-// good level of interoperability and changing this option arguably isn't worth
-// diverging from the official builds of the library.
-#define wxUSE_STL 0
-
-// This is not a real option but is used as the default value for
-// wxUSE_STD_IOSTREAM, wxUSE_STD_STRING and wxUSE_STD_CONTAINERS.
-//
-// Currently the Digital Mars and Watcom compilers come without standard C++
-// library headers by default, wxUSE_STD_STRING can be set to 1 if you do have
-// them (e.g. from STLPort).
-//
-// VC++ 5.0 does include standard C++ library headers, however they produce
-// many warnings that can't be turned off when compiled at warning level 4.
-#if defined(__DMC__) || defined(__WATCOMC__) \
- || (defined(_MSC_VER) && _MSC_VER < 1200)
- #define wxUSE_STD_DEFAULT 0
-#else
- #define wxUSE_STD_DEFAULT 1
-#endif
-
-// Use standard C++ containers to implement wxVector<>, wxStack<>, wxDList<>
-// and wxHashXXX<> classes. If disabled, wxWidgets own (mostly compatible but
-// usually more limited) implementations are used which allows to avoid the
-// dependency on the C++ run-time library.
-//
-// Notice that the compilers mentioned in wxUSE_STD_DEFAULT comment above don't
-// support using standard containers and that VC6 needs non-default options for
-// such build to avoid getting "fatal error C1076: compiler limit : internal
-// heap limit reached; use /Zm to specify a higher limit" in its own standard
-// headers, so you need to ensure you do increase the heap size before enabling
-// this option for this compiler.
-//
-// Default is 0 for compatibility reasons.
-//
-// Recommended setting: 1 unless compatibility with the official wxWidgets
-// build and/or the existing code is a concern.
-#define wxUSE_STD_CONTAINERS 0
-
-// Use standard C++ streams if 1 instead of wx streams in some places. If
-// disabled, wx streams are used everywhere and wxWidgets doesn't depend on the
-// standard streams library.
-//
-// Notice that enabling this does not replace wx streams with std streams
-// everywhere, in a lot of places wx streams are used no matter what.
-//
-// Default is 1 if compiler supports it.
-//
-// Recommended setting: 1 if you use the standard streams anyhow and so
-// dependency on the standard streams library is not a
-// problem
-#define wxUSE_STD_IOSTREAM wxUSE_STD_DEFAULT
-
-// Enable minimal interoperability with the standard C++ string class if 1.
-// "Minimal" means that wxString can be constructed from std::string or
-// std::wstring but can't be implicitly converted to them. You need to enable
-// the option below for the latter.
-//
-// Default is 1 for most compilers.
-//
-// Recommended setting: 1 unless you want to ensure your program doesn't use
-// the standard C++ library at all.
-#define wxUSE_STD_STRING wxUSE_STD_DEFAULT
-
-// Make wxString as much interchangeable with std::[w]string as possible, in
-// particular allow implicit conversion of wxString to either of these classes.
-// This comes at a price (or a benefit, depending on your point of view) of not
-// allowing implicit conversion to "const char *" and "const wchar_t *".
-//
-// Because a lot of existing code relies on these conversions, this option is
-// disabled by default but can be enabled for your build if you don't care
-// about compatibility.
-//
-// Default is 0 if wxUSE_STL has its default value or 1 if it is enabled.
-//
-// Recommended setting: 0 to remain compatible with the official builds of
-// wxWidgets.
-#define wxUSE_STD_STRING_CONV_IN_WXSTRING wxUSE_STL
-
-// VC++ 4.2 and above allows <iostream> and <iostream.h> but you can't mix
-// them. Set this option to 1 to use <iostream.h>, 0 to use <iostream>.
-//
-// Note that newer compilers (including VC++ 7.1 and later) don't support
-// wxUSE_IOSTREAMH == 1 and so <iostream> will be used anyhow.
-//
-// Default is 0.
-//
-// Recommended setting: 0, only set to 1 if you use a really old compiler
-#define wxUSE_IOSTREAMH 0
-
-
-// ----------------------------------------------------------------------------
-// non GUI features selection
-// ----------------------------------------------------------------------------
-
-// Set wxUSE_LONGLONG to 1 to compile the wxLongLong class. This is a 64 bit
-// integer which is implemented in terms of native 64 bit integers if any or
-// uses emulation otherwise.
-//
-// This class is required by wxDateTime and so you should enable it if you want
-// to use wxDateTime. For most modern platforms, it will use the native 64 bit
-// integers in which case (almost) all of its functions are inline and it
-// almost does not take any space, so there should be no reason to switch it
-// off.
-//
-// Recommended setting: 1
-#define wxUSE_LONGLONG 1
-
-// Set wxUSE_BASE64 to 1, to compile in Base64 support. This is required for
-// storing binary data in wxConfig on most platforms.
-//
-// Default is 1.
-//
-// Recommended setting: 1 (but can be safely disabled if you don't use it)
-#define wxUSE_BASE64 1
-
-// Set this to 1 to be able to use wxEventLoop even in console applications
-// (i.e. using base library only, without GUI). This is mostly useful for
-// processing socket events but is also necessary to use timers in console
-// applications
-//
-// Default is 1.
-//
-// Recommended setting: 1 (but can be safely disabled if you don't use it)
-#define wxUSE_CONSOLE_EVENTLOOP 1
-
-// Set wxUSE_(F)FILE to 1 to compile wx(F)File classes. wxFile uses low level
-// POSIX functions for file access, wxFFile uses ANSI C stdio.h functions.
-//
-// Default is 1
-//
-// Recommended setting: 1 (wxFile is highly recommended as it is required by
-// i18n code, wxFileConfig and others)
-#define wxUSE_FILE 1
-#define wxUSE_FFILE 1
-
-// Use wxFSVolume class providing access to the configured/active mount points
-//
-// Default is 1
-//
-// Recommended setting: 1 (but may be safely disabled if you don't use it)
-#define wxUSE_FSVOLUME 1
-
-// Use wxStandardPaths class which allows to retrieve some standard locations
-// in the file system
-//
-// Default is 1
-//
-// Recommended setting: 1 (may be disabled to save space, but not much)
-#define wxUSE_STDPATHS 1
-
-// use wxTextBuffer class: required by wxTextFile
-#define wxUSE_TEXTBUFFER 1
-
-// use wxTextFile class: requires wxFile and wxTextBuffer, required by
-// wxFileConfig
-#define wxUSE_TEXTFILE 1
-
-// i18n support: _() macro, wxLocale class. Requires wxTextFile.
-#define wxUSE_INTL 1
-
-// Provide wxFoo_l() functions similar to standard foo() functions but taking
-// an extra locale parameter.
-//
-// Notice that this is fully implemented only for the systems providing POSIX
-// xlocale support or Microsoft Visual C++ >= 8 (which provides proprietary
-// almost-equivalent of xlocale functions), otherwise wxFoo_l() functions will
-// only work for the current user locale and "C" locale. You can use
-// wxHAS_XLOCALE_SUPPORT to test whether the full support is available.
-//
-// Default is 1
-//
-// Recommended setting: 1 but may be disabled if you are writing programs
-// running only in C locale anyhow
-#define wxUSE_XLOCALE 1
-
-// Set wxUSE_DATETIME to 1 to compile the wxDateTime and related classes which
-// allow to manipulate dates, times and time intervals. wxDateTime replaces the
-// old wxTime and wxDate classes which are still provided for backwards
-// compatibility (and implemented in terms of wxDateTime).
-//
-// Note that this class is relatively new and is still officially in alpha
-// stage because some features are not yet (fully) implemented. It is already
-// quite useful though and should only be disabled if you are aiming at
-// absolutely minimal version of the library.
-//
-// Requires: wxUSE_LONGLONG
-//
-// Default is 1
-//
-// Recommended setting: 1
-#define wxUSE_DATETIME 1
-
-// Set wxUSE_TIMER to 1 to compile wxTimer class
-//
-// Default is 1
-//
-// Recommended setting: 1
-#define wxUSE_TIMER 1
-
-// Use wxStopWatch clas.
-//
-// Default is 1
-//
-// Recommended setting: 1 (needed by wxSocket)
-#define wxUSE_STOPWATCH 1
-
-// Set wxUSE_FSWATCHER to 1 if you want to enable wxFileSystemWatcher
-//
-// Default is 1
-//
-// Recommended setting: 1
-#define wxUSE_FSWATCHER 1
-
-// Setting wxUSE_CONFIG to 1 enables the use of wxConfig and related classes
-// which allow the application to store its settings in the persistent
-// storage. Setting this to 1 will also enable on-demand creation of the
-// global config object in wxApp.
-//
-// See also wxUSE_CONFIG_NATIVE below.
-//
-// Recommended setting: 1
-#define wxUSE_CONFIG 1
-
-// If wxUSE_CONFIG is 1, you may choose to use either the native config
-// classes under Windows (using .INI files under Win16 and the registry under
-// Win32) or the portable text file format used by the config classes under
-// Unix.
-//
-// Default is 1 to use native classes. Note that you may still use
-// wxFileConfig even if you set this to 1 - just the config object created by
-// default for the applications needs will be a wxRegConfig or wxIniConfig and
-// not wxFileConfig.
-//
-// Recommended setting: 1
-#define wxUSE_CONFIG_NATIVE 1
-
-// If wxUSE_DIALUP_MANAGER is 1, compile in wxDialUpManager class which allows
-// to connect/disconnect from the network and be notified whenever the dial-up
-// network connection is established/terminated. Requires wxUSE_DYNAMIC_LOADER.
-//
-// Default is 1.
-//
-// Recommended setting: 1
-#define wxUSE_DIALUP_MANAGER 1
-
-// Compile in classes for run-time DLL loading and function calling.
-// Required by wxUSE_DIALUP_MANAGER.
-//
-// This setting is for Win32 only
-//
-// Default is 1.
-//
-// Recommended setting: 1
-#define wxUSE_DYNLIB_CLASS 1
-
-// experimental, don't use for now
-#define wxUSE_DYNAMIC_LOADER 1
-
-// Set to 1 to use socket classes
-#define wxUSE_SOCKETS 1
-
-// Set to 1 to use ipv6 socket classes (requires wxUSE_SOCKETS)
-//
-// Notice that currently setting this option under Windows will result in
-// programs which can only run on recent OS versions (with ws2_32.dll
-// installed) which is why it is disabled by default.
-//
-// Default is 1.
-//
-// Recommended setting: 1 if you need IPv6 support
-#define wxUSE_IPV6 0
-
-// Set to 1 to enable virtual file systems (required by wxHTML)
-#define wxUSE_FILESYSTEM 1
-
-// Set to 1 to enable virtual ZIP filesystem (requires wxUSE_FILESYSTEM)
-#define wxUSE_FS_ZIP 1
-
-// Set to 1 to enable virtual archive filesystem (requires wxUSE_FILESYSTEM)
-#define wxUSE_FS_ARCHIVE 1
-
-// Set to 1 to enable virtual Internet filesystem (requires wxUSE_FILESYSTEM)
-#define wxUSE_FS_INET 1
-
-// wxArchive classes for accessing archives such as zip and tar
-#define wxUSE_ARCHIVE_STREAMS 1
-
-// Set to 1 to compile wxZipInput/OutputStream classes.
-#define wxUSE_ZIPSTREAM 1
-
-// Set to 1 to compile wxTarInput/OutputStream classes.
-#define wxUSE_TARSTREAM 1
-
-// Set to 1 to compile wxZlibInput/OutputStream classes. Also required by
-// wxUSE_LIBPNG
-#define wxUSE_ZLIB 1
-
-// If enabled, the code written by Apple will be used to write, in a portable
-// way, float on the disk. See extended.c for the license which is different
-// from wxWidgets one.
-//
-// Default is 1.
-//
-// Recommended setting: 1 unless you don't like the license terms (unlikely)
-#define wxUSE_APPLE_IEEE 1
-
-// Joystick support class
-#define wxUSE_JOYSTICK 1
-
-// wxFontEnumerator class
-#define wxUSE_FONTENUM 1
-
-// wxFontMapper class
-#define wxUSE_FONTMAP 1
-
-// wxMimeTypesManager class
-#define wxUSE_MIMETYPE 1
-
-// wxProtocol and related classes: if you want to use either of wxFTP, wxHTTP
-// or wxURL you need to set this to 1.
-//
-// Default is 1.
-//
-// Recommended setting: 1
-#define wxUSE_PROTOCOL 1
-
-// The settings for the individual URL schemes
-#define wxUSE_PROTOCOL_FILE 1
-#define wxUSE_PROTOCOL_FTP 1
-#define wxUSE_PROTOCOL_HTTP 1
-
-// Define this to use wxURL class.
-#define wxUSE_URL 1
-
-// Define this to use native platform url and protocol support.
-// Currently valid only for MS-Windows.
-// Note: if you set this to 1, you can open ftp/http/gopher sites
-// and obtain a valid input stream for these sites
-// even when you set wxUSE_PROTOCOL_FTP/HTTP to 0.
-// Doing so reduces the code size.
-//
-// This code is experimental and subject to change.
-#define wxUSE_URL_NATIVE 0
-
-// Support for wxVariant class used in several places throughout the library,
-// notably in wxDataViewCtrl API.
-//
-// Default is 1.
-//
-// Recommended setting: 1 unless you want to reduce the library size as much as
-// possible in which case setting this to 0 can gain up to 100KB.
-#define wxUSE_VARIANT 1
-
-// Support for wxAny class, the successor for wxVariant.
-//
-// Default is 1.
-//
-// Recommended setting: 1 unless you want to reduce the library size by a small amount,
-// or your compiler cannot for some reason cope with complexity of templates used.
-#define wxUSE_ANY 1
-
-// Support for regular expression matching via wxRegEx class: enable this to
-// use POSIX regular expressions in your code. You need to compile regex
-// library from src/regex to use it under Windows.
-//
-// Default is 0
-//
-// Recommended setting: 1 if your compiler supports it, if it doesn't please
-// contribute us a makefile for src/regex for it
-#define wxUSE_REGEX 1
-
-// wxSystemOptions class
-#define wxUSE_SYSTEM_OPTIONS 1
-
-// wxSound class
-#define wxUSE_SOUND 1
-
-// Use wxMediaCtrl
-//
-// Default is 1.
-//
-// Recommended setting: 1
-#define wxUSE_MEDIACTRL 1
-
-// Use wxWidget's XRC XML-based resource system. Recommended.
-//
-// Default is 1
-//
-// Recommended setting: 1 (requires wxUSE_XML)
-#define wxUSE_XRC 1
-
-// XML parsing classes. Note that their API will change in the future, so
-// using wxXmlDocument and wxXmlNode in your app is not recommended.
-//
-// Default is the same as wxUSE_XRC, i.e. 1 by default.
-//
-// Recommended setting: 1 (required by XRC)
-#define wxUSE_XML wxUSE_XRC
-
-// Use wxWidget's AUI docking system
-//
-// Default is 1
-//
-// Recommended setting: 1
-#define wxUSE_AUI 1
-
-// Use wxWidget's Ribbon classes for interfaces
-//
-// Default is 1
-//
-// Recommended setting: 1
-#define wxUSE_RIBBON 1
-
-// Use wxPropertyGrid.
-//
-// Default is 1
-//
-// Recommended setting: 1
-#define wxUSE_PROPGRID 1
-
-// Use wxStyledTextCtrl, a wxWidgets implementation of Scintilla.
-//
-// Default is 1
-//
-// Recommended setting: 1
-#define wxUSE_STC 1
-
-// Use wxWidget's web viewing classes
-//
-// Default is 1
-//
-// Recommended setting: 1
-#define wxUSE_WEBVIEW 1
-
-// Use the IE wxWebView backend
-//
-// Default is 1 on MSW
-//
-// Recommended setting: 1
-#ifdef __WXMSW__
-#define wxUSE_WEBVIEW_IE 1
-#else
-#define wxUSE_WEBVIEW_IE 0
-#endif
-
-// Use the WebKit wxWebView backend
-//
-// Default is 1 on GTK and OSX
-//
-// Recommended setting: 1
-#if defined(__WXGTK__) || defined(__WXOSX__)
-#define wxUSE_WEBVIEW_WEBKIT 1
-#else
-#define wxUSE_WEBVIEW_WEBKIT 0
-#endif
-
-// Enable the new wxGraphicsPath and wxGraphicsContext classes for an advanced
-// 2D drawing API. (Still somewhat experimental)
-//
-// Please note that on Windows gdiplus.dll is loaded dynamically which means
-// that nothing special needs to be done as long as you don't use
-// wxGraphicsContext at all or only use it on XP and later systems but you
-// still do need to distribute it yourself for an application using
-// wxGraphicsContext to be runnable on pre-XP systems.
-//
-// Default is 1 except if you're using a non-Microsoft compiler under Windows
-// as only MSVC7+ is known to ship with gdiplus.h. For other compilers (e.g.
-// mingw32) you may need to install the headers (and just the headers)
-// yourself. If you do, change the setting below manually.
-//
-// Recommended setting: 1 if supported by the compilation environment
-
-// notice that we can't use wxCHECK_VISUALC_VERSION() here as this file is
-// included from wx/platform.h before wxCHECK_VISUALC_VERSION() is defined
-#ifdef _MSC_VER
-# if _MSC_VER >= 1310
- // MSVC7.1+ comes with new enough Platform SDK, enable
- // wxGraphicsContext support for it
-# define wxUSE_GRAPHICS_CONTEXT 1
-# else
- // MSVC 6 didn't include GDI+ headers so disable by default, enable it
- // here if you use MSVC 6 with a newer SDK
-# define wxUSE_GRAPHICS_CONTEXT 0
-# endif
-#else
- // Disable support for other Windows compilers, enable it if your compiler
- // comes with new enough SDK or you installed the headers manually.
- //
- // Notice that this will be set by configure under non-Windows platforms
- // anyhow so the value there is not important.
-# define wxUSE_GRAPHICS_CONTEXT 0
-#endif
-
-// Enable wxGraphicsContext implementation using Cairo library.
-//
-// This is not needed under Windows and detected automatically by configure
-// under other systems, however you may set this to 1 manually if you installed
-// Cairo under Windows yourself and prefer to use it instead the native GDI+
-// implementation.
-//
-// Default is 0
-//
-// Recommended setting: 0
-#define wxUSE_CAIRO 0
-
-
-// ----------------------------------------------------------------------------
-// Individual GUI controls
-// ----------------------------------------------------------------------------
-
-// You must set wxUSE_CONTROLS to 1 if you are using any controls at all
-// (without it, wxControl class is not compiled)
-//
-// Default is 1
-//
-// Recommended setting: 1 (don't change except for very special programs)
-#define wxUSE_CONTROLS 1
-
-// Support markup in control labels, i.e. provide wxControl::SetLabelMarkup().
-// Currently markup is supported only by a few controls and only some ports but
-// their number will increase with time.
-//
-// Default is 1
-//
-// Recommended setting: 1 (may be set to 0 if you want to save on code size)
-#define wxUSE_MARKUP 1
-
-// wxPopupWindow class is a top level transient window. It is currently used
-// to implement wxTipWindow
-//
-// Default is 1
-//
-// Recommended setting: 1 (may be set to 0 if you don't wxUSE_TIPWINDOW)
-#define wxUSE_POPUPWIN 1
-
-// wxTipWindow allows to implement the custom tooltips, it is used by the
-// context help classes. Requires wxUSE_POPUPWIN.
-//
-// Default is 1
-//
-// Recommended setting: 1 (may be set to 0)
-#define wxUSE_TIPWINDOW 1
-
-// Each of the settings below corresponds to one wxWidgets control. They are
-// all switched on by default but may be disabled if you are sure that your
-// program (including any standard dialogs it can show!) doesn't need them and
-// if you desperately want to save some space. If you use any of these you must
-// set wxUSE_CONTROLS as well.
-//
-// Default is 1
-//
-// Recommended setting: 1
-#define wxUSE_ANIMATIONCTRL 1 // wxAnimationCtrl
-#define wxUSE_BANNERWINDOW 1 // wxBannerWindow
-#define wxUSE_BUTTON 1 // wxButton
-#define wxUSE_BMPBUTTON 1 // wxBitmapButton
-#define wxUSE_CALENDARCTRL 1 // wxCalendarCtrl
-#define wxUSE_CHECKBOX 1 // wxCheckBox
-#define wxUSE_CHECKLISTBOX 1 // wxCheckListBox (requires wxUSE_OWNER_DRAWN)
-#define wxUSE_CHOICE 1 // wxChoice
-#define wxUSE_COLLPANE 1 // wxCollapsiblePane
-#define wxUSE_COLOURPICKERCTRL 1 // wxColourPickerCtrl
-#define wxUSE_COMBOBOX 1 // wxComboBox
-#define wxUSE_COMMANDLINKBUTTON 1 // wxCommandLinkButton
-#define wxUSE_DATAVIEWCTRL 1 // wxDataViewCtrl
-#define wxUSE_DATEPICKCTRL 1 // wxDatePickerCtrl
-#define wxUSE_DIRPICKERCTRL 1 // wxDirPickerCtrl
-#define wxUSE_EDITABLELISTBOX 1 // wxEditableListBox
-#define wxUSE_FILECTRL 1 // wxFileCtrl
-#define wxUSE_FILEPICKERCTRL 1 // wxFilePickerCtrl
-#define wxUSE_FONTPICKERCTRL 1 // wxFontPickerCtrl
-#define wxUSE_GAUGE 1 // wxGauge
-#define wxUSE_HEADERCTRL 1 // wxHeaderCtrl
-#define wxUSE_HYPERLINKCTRL 1 // wxHyperlinkCtrl
-#define wxUSE_LISTBOX 1 // wxListBox
-#define wxUSE_LISTCTRL 1 // wxListCtrl
-#define wxUSE_RADIOBOX 1 // wxRadioBox
-#define wxUSE_RADIOBTN 1 // wxRadioButton
-#define wxUSE_RICHMSGDLG 1 // wxRichMessageDialog
-#define wxUSE_SCROLLBAR 1 // wxScrollBar
-#define wxUSE_SEARCHCTRL 1 // wxSearchCtrl
-#define wxUSE_SLIDER 1 // wxSlider
-#define wxUSE_SPINBTN 1 // wxSpinButton
-#define wxUSE_SPINCTRL 1 // wxSpinCtrl
-#define wxUSE_STATBOX 1 // wxStaticBox
-#define wxUSE_STATLINE 1 // wxStaticLine
-#define wxUSE_STATTEXT 1 // wxStaticText
-#define wxUSE_STATBMP 1 // wxStaticBitmap
-#define wxUSE_TEXTCTRL 1 // wxTextCtrl
-#define wxUSE_TIMEPICKCTRL 1 // wxTimePickerCtrl
-#define wxUSE_TOGGLEBTN 1 // requires wxButton
-#define wxUSE_TREECTRL 1 // wxTreeCtrl
-#define wxUSE_TREELISTCTRL 1 // wxTreeListCtrl
-
-// Use a status bar class? Depending on the value of wxUSE_NATIVE_STATUSBAR
-// below either wxStatusBar95 or a generic wxStatusBar will be used.
-//
-// Default is 1
-//
-// Recommended setting: 1
-#define wxUSE_STATUSBAR 1
-
-// Two status bar implementations are available under Win32: the generic one
-// or the wrapper around native control. For native look and feel the native
-// version should be used.
-//
-// Default is 1 for the platforms where native status bar is supported.
-//
-// Recommended setting: 1 (there is no advantage in using the generic one)
-#define wxUSE_NATIVE_STATUSBAR 1
-
-// wxToolBar related settings: if wxUSE_TOOLBAR is 0, don't compile any toolbar
-// classes at all. Otherwise, use the native toolbar class unless
-// wxUSE_TOOLBAR_NATIVE is 0.
-//
-// Default is 1 for all settings.
-//
-// Recommended setting: 1 for wxUSE_TOOLBAR and wxUSE_TOOLBAR_NATIVE.
-#define wxUSE_TOOLBAR 1
-#define wxUSE_TOOLBAR_NATIVE 1
-
-// wxNotebook is a control with several "tabs" located on one of its sides. It
-// may be used to logically organise the data presented to the user instead of
-// putting everything in one huge dialog. It replaces wxTabControl and related
-// classes of wxWin 1.6x.
-//
-// Default is 1.
-//
-// Recommended setting: 1
-#define wxUSE_NOTEBOOK 1
-
-// wxListbook control is similar to wxNotebook but uses wxListCtrl instead of
-// the tabs
-//
-// Default is 1.
-//
-// Recommended setting: 1
-#define wxUSE_LISTBOOK 1
-
-// wxChoicebook control is similar to wxNotebook but uses wxChoice instead of
-// the tabs
-//
-// Default is 1.
-//
-// Recommended setting: 1
-#define wxUSE_CHOICEBOOK 1
-
-// wxTreebook control is similar to wxNotebook but uses wxTreeCtrl instead of
-// the tabs
-//
-// Default is 1.
-//
-// Recommended setting: 1
-#define wxUSE_TREEBOOK 1
-
-// wxToolbook control is similar to wxNotebook but uses wxToolBar instead of
-// tabs
-//
-// Default is 1.
-//
-// Recommended setting: 1
-#define wxUSE_TOOLBOOK 1
-
-// wxTaskBarIcon is a small notification icon shown in the system toolbar or
-// dock.
-//
-// Default is 1.
-//
-// Recommended setting: 1 (but can be set to 0 if you don't need it)
-#define wxUSE_TASKBARICON 1
-
-// wxGrid class
-//
-// Default is 1, set to 0 to cut down compilation time and binaries size if you
-// don't use it.
-//
-// Recommended setting: 1
-//
-#define wxUSE_GRID 1
-
-// wxMiniFrame class: a frame with narrow title bar
-//
-// Default is 1.
-//
-// Recommended setting: 1 (it doesn't cost almost anything)
-#define wxUSE_MINIFRAME 1
-
-// wxComboCtrl and related classes: combobox with custom popup window and
-// not necessarily a listbox.
-//
-// Default is 1.
-//
-// Recommended setting: 1 but can be safely set to 0 except for wxUniv where it
-// it used by wxComboBox
-#define wxUSE_COMBOCTRL 1
-
-// wxOwnerDrawnComboBox is a custom combobox allowing to paint the combobox
-// items.
-//
-// Default is 1.
-//
-// Recommended setting: 1 but can be safely set to 0, except where it is
-// needed as a base class for generic wxBitmapComboBox.
-#define wxUSE_ODCOMBOBOX 1
-
-// wxBitmapComboBox is a combobox that can have images in front of text items.
-//
-// Default is 1.
-//
-// Recommended setting: 1 but can be safely set to 0
-#define wxUSE_BITMAPCOMBOBOX 1
-
-// wxRearrangeCtrl is a wxCheckListBox with two buttons allowing to move items
-// up and down in it. It is also used as part of wxRearrangeDialog.
-//
-// Default is 1.
-//
-// Recommended setting: 1 but can be safely set to 0 (currently used only by
-// wxHeaderCtrl)
-#define wxUSE_REARRANGECTRL 1
-
-// ----------------------------------------------------------------------------
-// Miscellaneous GUI stuff
-// ----------------------------------------------------------------------------
-
-// wxAcceleratorTable/Entry classes and support for them in wxMenu(Bar)
-#define wxUSE_ACCEL 1
-
-// Use the standard art provider. The icons returned by this provider are
-// embedded into the library as XPMs so disabling it reduces the library size
-// somewhat but this should only be done if you use your own custom art
-// provider returning the icons or never use any icons not provided by the
-// native art provider (which might not be implemented at all for some
-// platforms) or by the Tango icons provider (if it's not itself disabled
-// below).
-//
-// Default is 1.
-//
-// Recommended setting: 1 unless you use your own custom art provider.
-#define wxUSE_ARTPROVIDER_STD 1
-
-// Use art provider providing Tango icons: this art provider has higher quality
-// icons than the default ones using smaller size XPM icons without
-// transparency but the embedded PNG icons add to the library size.
-//
-// Default is 1 under non-GTK ports. Under wxGTK the native art provider using
-// the GTK+ stock icons replaces it so it is normally not necessary.
-//
-// Recommended setting: 1 but can be turned off to reduce the library size.
-#define wxUSE_ARTPROVIDER_TANGO 1
-
-// Hotkey support (currently Windows only)
-#define wxUSE_HOTKEY 1
-
-// Use wxCaret: a class implementing a "cursor" in a text control (called caret
-// under Windows).
-//
-// Default is 1.
-//
-// Recommended setting: 1 (can be safely set to 0, not used by the library)
-#define wxUSE_CARET 1
-
-// Use wxDisplay class: it allows enumerating all displays on a system and
-// their geometries as well as finding the display on which the given point or
-// window lies.
-//
-// Default is 1.
-//
-// Recommended setting: 1 if you need it, can be safely set to 0 otherwise
-#define wxUSE_DISPLAY 1
-
-// Miscellaneous geometry code: needed for Canvas library
-#define wxUSE_GEOMETRY 1
-
-// Use wxImageList. This class is needed by wxNotebook, wxTreeCtrl and
-// wxListCtrl.
-//
-// Default is 1.
-//
-// Recommended setting: 1 (set it to 0 if you don't use any of the controls
-// enumerated above, then this class is mostly useless too)
-#define wxUSE_IMAGLIST 1
-
-// Use wxInfoBar class.
-//
-// Default is 1.
-//
-// Recommended setting: 1 (but can be disabled without problems as nothing
-// depends on it)
-#define wxUSE_INFOBAR 1
-
-// Use wxMenu, wxMenuBar, wxMenuItem.
-//
-// Default is 1.
-//
-// Recommended setting: 1 (can't be disabled under MSW)
-#define wxUSE_MENUS 1
-
-// Use wxNotificationMessage.
-//
-// wxNotificationMessage allows to show non-intrusive messages to the user
-// using balloons, banners, popups or whatever is the appropriate method for
-// the current platform.
-//
-// Default is 1.
-//
-// Recommended setting: 1
-#define wxUSE_NOTIFICATION_MESSAGE 1
-
-// wxRichToolTip is a customizable tooltip class which has more functionality
-// than the stock (but native, unlike this class) wxToolTip.
-//
-// Default is 1.
-//
-// Recommended setting: 1 (but can be safely set to 0 if you don't need it)
-#define wxUSE_RICHTOOLTIP 1
-
-// Use wxSashWindow class.
-//
-// Default is 1.
-//
-// Recommended setting: 1
-#define wxUSE_SASH 1
-
-// Use wxSplitterWindow class.
-//
-// Default is 1.
-//
-// Recommended setting: 1
-#define wxUSE_SPLITTER 1
-
-// Use wxToolTip and wxWindow::Set/GetToolTip() methods.
-//
-// Default is 1.
-//
-// Recommended setting: 1
-#define wxUSE_TOOLTIPS 1
-
-// wxValidator class and related methods
-#define wxUSE_VALIDATORS 1
-
-// Use reference counted ID management: this means that wxWidgets will track
-// the automatically allocated ids (those used when you use wxID_ANY when
-// creating a window, menu or toolbar item &c) instead of just supposing that
-// the program never runs out of them. This is mostly useful only under wxMSW
-// where the total ids range is limited to SHRT_MIN..SHRT_MAX and where
-// long-running programs can run into problems with ids reuse without this. On
-// the other platforms, where the ids have the full int range, this shouldn't
-// be necessary.
-#ifdef __WXMSW__
-#define wxUSE_AUTOID_MANAGEMENT 1
-#else
-#define wxUSE_AUTOID_MANAGEMENT 0
-#endif
-
-// ----------------------------------------------------------------------------
-// common dialogs
-// ----------------------------------------------------------------------------
-
-// On rare occasions (e.g. using DJGPP) may want to omit common dialogs (e.g.
-// file selector, printer dialog). Switching this off also switches off the
-// printing architecture and interactive wxPrinterDC.
-//
-// Default is 1
-//
-// Recommended setting: 1 (unless it really doesn't work)
-#define wxUSE_COMMON_DIALOGS 1
-
-// wxBusyInfo displays window with message when app is busy. Works in same way
-// as wxBusyCursor
-#define wxUSE_BUSYINFO 1
-
-// Use single/multiple choice dialogs.
-//
-// Default is 1
-//
-// Recommended setting: 1 (used in the library itself)
-#define wxUSE_CHOICEDLG 1
-
-// Use colour picker dialog
-//
-// Default is 1
-//
-// Recommended setting: 1
-#define wxUSE_COLOURDLG 1
-
-// wxDirDlg class for getting a directory name from user
-#define wxUSE_DIRDLG 1
-
-// TODO: setting to choose the generic or native one
-
-// Use file open/save dialogs.
-//
-// Default is 1
-//
-// Recommended setting: 1 (used in many places in the library itself)
-#define wxUSE_FILEDLG 1
-
-// Use find/replace dialogs.
-//
-// Default is 1
-//
-// Recommended setting: 1 (but may be safely set to 0)
-#define wxUSE_FINDREPLDLG 1
-
-// Use font picker dialog
-//
-// Default is 1
-//
-// Recommended setting: 1 (used in the library itself)
-#define wxUSE_FONTDLG 1
-
-// Use wxMessageDialog and wxMessageBox.
-//
-// Default is 1
-//
-// Recommended setting: 1 (used in the library itself)
-#define wxUSE_MSGDLG 1
-
-// progress dialog class for lengthy operations
-#define wxUSE_PROGRESSDLG 1
-
-// support for startup tips (wxShowTip &c)
-#define wxUSE_STARTUP_TIPS 1
-
-// text entry dialog and wxGetTextFromUser function
-#define wxUSE_TEXTDLG 1
-
-// number entry dialog
-#define wxUSE_NUMBERDLG 1
-
-// splash screen class
-#define wxUSE_SPLASH 1
-
-// wizards
-#define wxUSE_WIZARDDLG 1
-
-// Compile in wxAboutBox() function showing the standard "About" dialog.
-//
-// Default is 1
-//
-// Recommended setting: 1 but can be set to 0 to save some space if you don't
-// use this function
-#define wxUSE_ABOUTDLG 1
-
-// wxFileHistory class
-//
-// Default is 1
-//
-// Recommended setting: 1
-#define wxUSE_FILE_HISTORY 1
-
-// ----------------------------------------------------------------------------
-// Metafiles support
-// ----------------------------------------------------------------------------
-
-// Windows supports the graphics format known as metafile which is, though not
-// portable, is widely used under Windows and so is supported by wxWin (under
-// Windows only, of course). Win16 (Win3.1) used the so-called "Window
-// MetaFiles" or WMFs which were replaced with "Enhanced MetaFiles" or EMFs in
-// Win32 (Win9x, NT, 2000). Both of these are supported in wxWin and, by
-// default, WMFs will be used under Win16 and EMFs under Win32. This may be
-// changed by setting wxUSE_WIN_METAFILES_ALWAYS to 1 and/or setting
-// wxUSE_ENH_METAFILE to 0. You may also set wxUSE_METAFILE to 0 to not compile
-// in any metafile related classes at all.
-//
-// Default is 1 for wxUSE_ENH_METAFILE and 0 for wxUSE_WIN_METAFILES_ALWAYS.
-//
-// Recommended setting: default or 0 for everything for portable programs.
-#define wxUSE_METAFILE 1
-#define wxUSE_ENH_METAFILE 1
-#define wxUSE_WIN_METAFILES_ALWAYS 0
-
-// ----------------------------------------------------------------------------
-// Big GUI components
-// ----------------------------------------------------------------------------
-
-// Set to 0 to disable MDI support.
-//
-// Requires wxUSE_NOTEBOOK under platforms other than MSW.
-//
-// Default is 1.
-//
-// Recommended setting: 1, can be safely set to 0.
-#define wxUSE_MDI 1
-
-// Set to 0 to disable document/view architecture
-#define wxUSE_DOC_VIEW_ARCHITECTURE 1
-
-// Set to 0 to disable MDI document/view architecture
-//
-// Requires wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE
-#define wxUSE_MDI_ARCHITECTURE 1
-
-// Set to 0 to disable print/preview architecture code
-#define wxUSE_PRINTING_ARCHITECTURE 1
-
-// wxHTML sublibrary allows to display HTML in wxWindow programs and much,
-// much more.
-//
-// Default is 1.
-//
-// Recommended setting: 1 (wxHTML is great!), set to 0 if you want compile a
-// smaller library.
-#define wxUSE_HTML 1
-
-// Setting wxUSE_GLCANVAS to 1 enables OpenGL support. You need to have OpenGL
-// headers and libraries to be able to compile the library with wxUSE_GLCANVAS
-// set to 1 and, under Windows, also to add opengl32.lib and glu32.lib to the
-// list of libraries used to link your application (although this is done
-// implicitly for Microsoft Visual C++ users).
-//
-// Default is 1 unless the compiler is known to ship without the necessary
-// headers (Digital Mars) or the platform doesn't support OpenGL (Windows CE).
-//
-// Recommended setting: 1 if you intend to use OpenGL, can be safely set to 0
-// otherwise.
-#define wxUSE_GLCANVAS 1
-
-// wxRichTextCtrl allows editing of styled text.
-//
-// Default is 1.
-//
-// Recommended setting: 1, set to 0 if you want compile a
-// smaller library.
-#define wxUSE_RICHTEXT 1
-
-// ----------------------------------------------------------------------------
-// Data transfer
-// ----------------------------------------------------------------------------
-
-// Use wxClipboard class for clipboard copy/paste.
-//
-// Default is 1.
-//
-// Recommended setting: 1
-#define wxUSE_CLIPBOARD 1
-
-// Use wxDataObject and related classes. Needed for clipboard and OLE drag and
-// drop
-//
-// Default is 1.
-//
-// Recommended setting: 1
-#define wxUSE_DATAOBJ 1
-
-// Use wxDropTarget and wxDropSource classes for drag and drop (this is
-// different from "built in" drag and drop in wxTreeCtrl which is always
-// available). Requires wxUSE_DATAOBJ.
-//
-// Default is 1.
-//
-// Recommended setting: 1
-#define wxUSE_DRAG_AND_DROP 1
-
-// Use wxAccessible for enhanced and customisable accessibility.
-// Depends on wxUSE_OLE.
-//
-// Default is 0.
-//
-// Recommended setting (at present): 0
-#define wxUSE_ACCESSIBILITY 0
-
-// ----------------------------------------------------------------------------
-// miscellaneous settings
-// ----------------------------------------------------------------------------
-
-// wxSingleInstanceChecker class allows to verify at startup if another program
-// instance is running.
-//
-// Default is 1
-//
-// Recommended setting: 1 (the class is tiny, disabling it won't save much
-// space)
-#define wxUSE_SNGLINST_CHECKER 1
-
-#define wxUSE_DRAGIMAGE 1
-
-#define wxUSE_IPC 1
- // 0 for no interprocess comms
-#define wxUSE_HELP 1
- // 0 for no help facility
-
-// Should we use MS HTML help for wxHelpController? If disabled, neither
-// wxCHMHelpController nor wxBestHelpController are available.
-//
-// Default is 1 under MSW, 0 is always used for the other platforms.
-//
-// Recommended setting: 1, only set to 0 if you have trouble compiling
-// wxCHMHelpController (could be a problem with really ancient compilers)
-#define wxUSE_MS_HTML_HELP 1
-
-
-// Use wxHTML-based help controller?
-#define wxUSE_WXHTML_HELP 1
-
-#define wxUSE_CONSTRAINTS 1
- // 0 for no window layout constraint system
-
-#define wxUSE_SPLINES 1
- // 0 for no splines
-
-#define wxUSE_MOUSEWHEEL 1
- // Include mouse wheel support
-
-// Compile wxUIActionSimulator class?
-#define wxUSE_UIACTIONSIMULATOR 1
-
-// ----------------------------------------------------------------------------
-// wxDC classes for various output formats
-// ----------------------------------------------------------------------------
-
-// Set to 1 for PostScript device context.
-#define wxUSE_POSTSCRIPT 0
-
-// Set to 1 to use font metric files in GetTextExtent
-#define wxUSE_AFM_FOR_POSTSCRIPT 1
-
-// Set to 1 to compile in support for wxSVGFileDC, a wxDC subclass which allows
-// to create files in SVG (Scalable Vector Graphics) format.
-#define wxUSE_SVG 1
-
-// Should wxDC provide SetTransformMatrix() and related methods?
-//
-// Default is 1 but can be set to 0 if this functionality is not used. Notice
-// that currently only wxMSW supports this so setting this to 0 doesn't change
-// much for non-MSW platforms (although it will still save a few bytes
-// probably).
-//
-// Recommended setting: 1.
-#define wxUSE_DC_TRANSFORM_MATRIX 1
-
-// ----------------------------------------------------------------------------
-// image format support
-// ----------------------------------------------------------------------------
-
-// wxImage supports many different image formats which can be configured at
-// compile-time. BMP is always supported, others are optional and can be safely
-// disabled if you don't plan to use images in such format sometimes saving
-// substantial amount of code in the final library.
-//
-// Some formats require an extra library which is included in wxWin sources
-// which is mentioned if it is the case.
-
-// Set to 1 for wxImage support (recommended).
-#define wxUSE_IMAGE 1
-
-// Set to 1 for PNG format support (requires libpng). Also requires wxUSE_ZLIB.
-#define wxUSE_LIBPNG 1
-
-// Set to 1 for JPEG format support (requires libjpeg)
-#define wxUSE_LIBJPEG 1
-
-// Set to 1 for TIFF format support (requires libtiff)
-#define wxUSE_LIBTIFF 1
-
-// Set to 1 for TGA format support (loading only)
-#define wxUSE_TGA 1
-
-// Set to 1 for GIF format support
-#define wxUSE_GIF 1
-
-// Set to 1 for PNM format support
-#define wxUSE_PNM 1
-
-// Set to 1 for PCX format support
-#define wxUSE_PCX 1
-
-// Set to 1 for IFF format support (Amiga format)
-#define wxUSE_IFF 0
-
-// Set to 1 for XPM format support
-#define wxUSE_XPM 1
-
-// Set to 1 for MS Icons and Cursors format support
-#define wxUSE_ICO_CUR 1
-
-// Set to 1 to compile in wxPalette class
-#define wxUSE_PALETTE 1
-
-// ----------------------------------------------------------------------------
-// wxUniversal-only options
-// ----------------------------------------------------------------------------
-
-// Set to 1 to enable compilation of all themes, this is the default
-#define wxUSE_ALL_THEMES 1
-
-// Set to 1 to enable the compilation of individual theme if wxUSE_ALL_THEMES
-// is unset, if it is set these options are not used; notice that metal theme
-// uses Win32 one
-#define wxUSE_THEME_GTK 0
-#define wxUSE_THEME_METAL 0
-#define wxUSE_THEME_MONO 0
-#define wxUSE_THEME_WIN32 0
-
-
-/* --- end common options --- */
-
-// ----------------------------------------------------------------------------
-// PalmOS-only settings
-// ----------------------------------------------------------------------------
-
-#endif
- // _WX_SETUP_H_
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/slider.h
-// Purpose: wxSlider class
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by: Wlodzimierz ABX Skiba - native implementation
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne, Wlodzimierz Skiba
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-#ifndef _SLIDERPALM_H_
-#define _SLIDERPALM_H_
-
-// Slider
-class WXDLLIMPEXP_CORE wxSlider : public wxSliderBase
-{
-public:
- wxSlider()
- {
- Init();
- }
-
- wxSlider(wxWindow *parent, wxWindowID id,
- int value, int minValue, int maxValue,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = wxSL_HORIZONTAL,
- const wxValidator& validator = wxDefaultValidator,
- const wxString& name = wxSliderNameStr)
- {
- Init();
- Create(parent, id, value, minValue, maxValue, pos, size, style, validator, name);
- }
-
- virtual ~wxSlider();
-
- bool Create(wxWindow *parent, wxWindowID id,
- int value, int minValue, int maxValue,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = wxSL_HORIZONTAL,
- const wxValidator& validator = wxDefaultValidator,
- const wxString& name = wxSliderNameStr);
-
- virtual int GetValue() const;
- virtual void SetValue(int);
-
- void SetRange(int minValue, int maxValue);
-
- int GetMin() const;
- int GetMax() const;
-
- // For trackbars only
- int GetTickFreq() const;
- void SetPageSize(int pageSize);
- int GetPageSize() const;
- void ClearSel();
- void ClearTicks();
- void SetLineSize(int lineSize);
- int GetLineSize() const;
- int GetSelEnd() const;
- int GetSelStart() const;
- void SetSelection(int minPos, int maxPos);
- void SetThumbLength(int len);
- int GetThumbLength() const;
- void SetTick(int tickPos);
-
- // implementation
- void Command(wxCommandEvent& event);
-
- // send a notification event, return true if processed
- bool SendUpdatedEvent();
- bool SendScrollEvent(WXEVENTPTR event);
-
-protected:
- // Platform-specific implementation of SetTickFreq
- virtual void DoSetTickFreq(int freq);
-
- virtual wxSize DoGetBestSize() const;
-
-private:
-
- void Init();
-
- int m_oldPos; // needed for tracing thumb position during scrolling
- int m_oldValue; // needed for comparing thumb position before and after scrolling
- int m_lineSize; // imitate line size
-
- DECLARE_DYNAMIC_CLASS_NO_COPY(wxSlider)
-};
-
-#endif
- // _SLIDERPALM_H_
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/sound.h
-// Purpose: wxSound class
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_SOUND_H_
-#define _WX_SOUND_H_
-
-#if wxUSE_SOUND
-
-#include "wx/object.h"
-
-class WXDLLIMPEXP_ADV wxSound : public wxSoundBase
-{
-public:
- wxSound();
- wxSound(const wxString& fileName, bool isResource = false);
- wxSound(size_t size, const void* data);
- virtual ~wxSound();
-
-public:
- // Create from resource or file
- bool Create(const wxString& fileName, bool isResource = false);
- // Create from data
- bool Create(size_t size, const void* data);
-
- bool IsOk() const { return (m_waveData ? true : false); }
-
- static void Stop();
-
-protected:
- bool Free();
-
- bool DoPlay(unsigned flags) const;
-
-private:
- wxByte* m_waveData;
- int m_waveLength;
- bool m_isResource;
-
- wxDECLARE_NO_COPY_CLASS(wxSound);
-};
-#endif
-#endif
-
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/spinbutt.h
-// Purpose: wxSpinButton class
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_SPINBUTT_H_
-#define _WX_SPINBUTT_H_
-
-#include "wx/control.h"
-#include "wx/event.h"
-
-class WXDLLIMPEXP_CORE wxSpinButton : public wxSpinButtonBase
-{
-public:
- // construction
- wxSpinButton() { }
-
- wxSpinButton(wxWindow *parent,
- wxWindowID id = wxID_ANY,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = wxSP_VERTICAL | wxSP_ARROW_KEYS,
- const wxString& name = wxSPIN_BUTTON_NAME)
- {
- Create(parent, id, pos, size, style, name);
- }
-
- virtual ~wxSpinButton();
-
- bool Create(wxWindow *parent,
- wxWindowID id = wxID_ANY,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = wxSP_VERTICAL | wxSP_ARROW_KEYS,
- const wxString& name = wxSPIN_BUTTON_NAME);
-
-
- // accessors
- virtual int GetValue() const;
- virtual void SetValue(int val);
- virtual void SetRange(int minVal, int maxVal);
-
- // a wxSpinButton can't do anything useful with focus, only wxSpinCtrl can
- virtual bool AcceptsFocus() const { return false; }
-
-protected:
- virtual wxSize DoGetBestSize() const;
-
-private:
- DECLARE_DYNAMIC_CLASS_NO_COPY(wxSpinButton)
-};
-
-#endif
- // _WX_SPINBUTT_H_
+++ /dev/null
-////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/spinctrl.h
-// Purpose: wxSpinCtrl class declaration for Palm OS
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_PALMOS_SPINCTRL_H_
-#define _WX_PALMOS_SPINCTRL_H_
-
-#include "wx/spinbutt.h" // the base class
-
-#include "wx/dynarray.h"
-
-class WXDLLIMPEXP_FWD_CORE wxSpinCtrl;
-WX_DEFINE_EXPORTED_ARRAY_PTR(wxSpinCtrl *, wxArraySpins);
-
-// ----------------------------------------------------------------------------
-// Under Win32, wxSpinCtrl is a wxSpinButton with a buddy (as MSDN docs call
-// it) text window whose contents is automatically updated when the spin
-// control is clicked.
-// ----------------------------------------------------------------------------
-
-class WXDLLIMPEXP_CORE wxSpinCtrl : public wxSpinButton
-{
-public:
- wxSpinCtrl() { }
-
- wxSpinCtrl(wxWindow *parent,
- wxWindowID id = -1,
- const wxString& value = wxEmptyString,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = wxSP_ARROW_KEYS,
- int min = 0, int max = 100, int initial = 0,
- const wxString& name = wxT("wxSpinCtrl"))
- {
- Create(parent, id, value, pos, size, style, min, max, initial, name);
- }
-
- bool Create(wxWindow *parent,
- wxWindowID id = -1,
- const wxString& value = wxEmptyString,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = wxSP_ARROW_KEYS,
- int min = 0, int max = 100, int initial = 0,
- const wxString& name = wxT("wxSpinCtrl"));
-
- // a wxTextCtrl-like method (but we can't have GetValue returning wxString
- // because the base class already has one returning int!)
- void SetValue(const wxString& text);
-
- // another wxTextCtrl-like method
- void SetSelection(long from, long to);
-
- // implementation only from now on
- // -------------------------------
-
- virtual ~wxSpinCtrl();
-
- virtual void SetValue(int val) { wxSpinButton::SetValue(val); }
- virtual int GetValue() const;
- virtual bool SetFont(const wxFont &font);
- virtual void SetFocus();
-
- virtual bool Enable(bool enable = TRUE);
- virtual bool Show(bool show = TRUE);
-
- // wxSpinButton doesn't accept focus, but we do
- virtual bool AcceptsFocus() const { return wxWindow::AcceptsFocus(); }
-
- // for internal use only
-
- // get the subclassed window proc of the buddy text
- WXFARPROC GetBuddyWndProc() const { return m_wndProcBuddy; }
-
- // return the spinctrl object whose buddy is the given window or NULL
- static wxSpinCtrl *GetSpinForTextCtrl(WXHWND hwndBuddy);
-
- // process a WM_COMMAND generated by the buddy text control
- bool ProcessTextCommand(WXWORD cmd, WXWORD id);
-
-protected:
- virtual void DoGetPosition(int *x, int *y) const;
- virtual void DoMoveWindow(int x, int y, int width, int height);
- virtual wxSize DoGetBestSize() const;
- virtual void DoGetSize(int *width, int *height) const;
-
- // the handler for wxSpinButton events
- void OnSpinChange(wxSpinEvent& event);
-
- // Handle processing of special keys
- void OnChar(wxKeyEvent& event);
- void OnSetFocus(wxFocusEvent& event);
-
- // the data for the "buddy" text ctrl
- WXHWND m_hwndBuddy;
- WXFARPROC m_wndProcBuddy;
-
- // all existing wxSpinCtrls - this allows to find the one corresponding to
- // the given buddy window in GetSpinForTextCtrl()
- static wxArraySpins ms_allSpins;
-
-private:
- DECLARE_DYNAMIC_CLASS(wxSpinCtrl)
- DECLARE_EVENT_TABLE()
- wxDECLARE_NO_COPY_CLASS(wxSpinCtrl);
-};
-
-#endif // _WX_PALMOS_SPINCTRL_H_
-
-
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/statbmp.h
-// Purpose: wxStaticBitmap class for Palm OS
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_STATBMP_H_
-#define _WX_STATBMP_H_
-
-#include "wx/control.h"
-#include "wx/icon.h"
-#include "wx/bitmap.h"
-
-WXDLLIMPEXP_DATA_CORE(extern const wxChar) wxStaticBitmapNameStr[];
-
-// a control showing an icon or a bitmap
-class WXDLLIMPEXP_CORE wxStaticBitmap : public wxStaticBitmapBase
-{
-public:
- wxStaticBitmap() { Init(); }
-
- wxStaticBitmap(wxWindow *parent,
- wxWindowID id,
- const wxGDIImage& label,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = 0,
- const wxString& name = wxStaticBitmapNameStr)
- {
- Init();
-
- Create(parent, id, label, pos, size, style, name);
- }
-
- bool Create(wxWindow *parent,
- wxWindowID id,
- const wxGDIImage& label,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = 0,
- const wxString& name = wxStaticBitmapNameStr);
-
- virtual ~wxStaticBitmap() { Free(); }
-
- virtual void SetIcon(const wxIcon& icon) { SetImage(&icon); }
- virtual void SetBitmap(const wxBitmap& bitmap) { SetImage(&bitmap); }
-
- // assert failure is provoked by an attempt to get an icon from bitmap or
- // vice versa
- wxIcon GetIcon() const
- {
- wxASSERT_MSG( m_isIcon, wxT("no icon in this wxStaticBitmap") );
-
- return *(wxIcon *)m_image;
- }
-
- wxBitmap GetBitmap() const
- {
- wxASSERT_MSG( !m_isIcon, wxT("no bitmap in this wxStaticBitmap") );
-
- return *(wxBitmap *)m_image;
- }
-
- // implementation only from now on
- // -------------------------------
-
- // implement base class virtuals
- virtual WXLRESULT MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam);
-
-protected:
- virtual wxBorder GetDefaultBorder() const;
- virtual wxSize DoGetBestSize() const;
- virtual WXDWORD MSWGetStyle(long style, WXDWORD *exstyle) const;
-
- // ctor/dtor helpers
- void Init() { m_isIcon = TRUE; m_image = NULL; }
- void Free();
-
- // TRUE if icon/bitmap is valid
- bool ImageIsOk() const;
-
- void SetImage(const wxGDIImage* image);
- void SetImageNoCopy( wxGDIImage* image );
-
- // we can have either an icon or a bitmap
- bool m_isIcon;
- wxGDIImage *m_image;
-
-private:
- DECLARE_DYNAMIC_CLASS(wxStaticBitmap)
- wxDECLARE_NO_COPY_CLASS(wxStaticBitmap);
-};
-
-#endif
- // _WX_STATBMP_H_
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/statbox.h
-// Purpose: wxStaticBox class
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_STATBOX_H_
-#define _WX_STATBOX_H_
-
-// Group box
-class WXDLLIMPEXP_CORE wxStaticBox : public wxStaticBoxBase
-{
-public:
- wxStaticBox() { }
-
- wxStaticBox(wxWindow *parent, wxWindowID id,
- const wxString& label,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = 0,
- const wxString& name = wxStaticBoxNameStr)
- {
- Create(parent, id, label, pos, size, style, name);
- }
-
- bool Create(wxWindow *parent, wxWindowID id,
- const wxString& label,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = 0,
- const wxString& name = wxStaticBoxNameStr);
-
- // implementation from now on
- // --------------------------
-
- virtual WXLRESULT MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam);
-
- // overridden base class virtuals
- virtual bool AcceptsFocus() const { return FALSE; }
-
-protected:
- virtual wxSize DoGetBestSize() const;
-
-private:
- DECLARE_DYNAMIC_CLASS_NO_COPY(wxStaticBox)
-};
-
-#endif
- // _WX_STATBOX_H_
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/statline.h
-// Purpose: Palm OS version of wxStaticLine class
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_MSW_STATLINE_H_
-#define _WX_MSW_STATLINE_H_
-
-// ----------------------------------------------------------------------------
-// wxStaticLine
-// ----------------------------------------------------------------------------
-
-class WXDLLIMPEXP_CORE wxStaticLine : public wxStaticLineBase
-{
-public:
- // constructors and pseudo-constructors
- wxStaticLine() { }
-
- wxStaticLine( wxWindow *parent,
- wxWindowID id = wxID_ANY,
- const wxPoint &pos = wxDefaultPosition,
- const wxSize &size = wxDefaultSize,
- long style = wxLI_HORIZONTAL,
- const wxString &name = wxStaticLineNameStr )
- {
- Create(parent, id, pos, size, style, name);
- }
-
- bool Create( wxWindow *parent,
- wxWindowID id = wxID_ANY,
- const wxPoint &pos = wxDefaultPosition,
- const wxSize &size = wxDefaultSize,
- long style = wxLI_HORIZONTAL,
- const wxString &name = wxStaticLineNameStr );
-
- // overridden base class virtuals
- virtual bool AcceptsFocus() const { return FALSE; }
-
-protected:
- // usually overridden base class virtuals
- virtual WXDWORD MSWGetStyle(long style, WXDWORD *exstyle) const;
-
- DECLARE_DYNAMIC_CLASS_NO_COPY(wxStaticLine)
-};
-
-#endif // _WX_MSW_STATLINE_H_
-
-
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/stattext.h
-// Purpose: wxStaticText class
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by: Wlodzimierz ABX Skiba - native wxStaticText implementation
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne, Wlodzimierz Skiba
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_STATTEXT_H_
-#define _WX_STATTEXT_H_
-
-class WXDLLIMPEXP_CORE wxStaticText : public wxStaticTextBase
-{
-public:
- wxStaticText() { }
-
- wxStaticText(wxWindow *parent,
- wxWindowID id,
- const wxString& label,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = 0,
- const wxString& name = wxStaticTextNameStr)
- {
- Create(parent, id, label, pos, size, style, name);
- }
-
- bool Create(wxWindow *parent,
- wxWindowID id,
- const wxString& label,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = 0,
- const wxString& name = wxStaticTextNameStr);
-
- // override some methods to resize the window properly
- virtual bool SetFont( const wxFont &font );
-
-protected:
- // implement/override some base class virtuals
- virtual wxBorder GetDefaultBorder() const;
- virtual wxSize DoGetBestSize() const;
-
- DECLARE_DYNAMIC_CLASS_NO_COPY(wxStaticText)
-};
-
-#endif
- // _WX_STATTEXT_H_
+++ /dev/null
-///////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/statusbr.h
-// Purpose: Palm OS implementation of wxStatusBar
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-///////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_STATUSBR_H_
-#define _WX_STATUSBR_H_
-
-#if wxUSE_NATIVE_STATUSBAR
-
-class WXDLLIMPEXP_CORE wxStatusBarPalm : public wxStatusBarBase
-{
-public:
- // ctors and such
- wxStatusBarPalm();
- wxStatusBarPalm(wxWindow *parent,
- wxWindowID id = wxID_ANY,
- long style = wxSTB_DEFAULT_STYLE,
- const wxString& name = wxEmptyString)
- {
- (void)Create(parent, id, style, name);
- }
-
- bool Create(wxWindow *parent,
- wxWindowID id = wxID_ANY,
- long style = wxSTB_DEFAULT_STYLE,
- const wxString& name = wxEmptyString);
-
- virtual ~wxStatusBarPalm();
-
- // for native status bar use native check for visibility
- virtual bool IsShown() const;
- virtual bool Show( bool show = true );
-
- // a status line can have several (<256) fields numbered from 0
- virtual void SetFieldsCount(int number = 1, const int *widths = NULL);
-
- // implement base class methods
- virtual void SetStatusWidths(int n, const int widths_field[]);
- virtual void SetMinHeight(int height);
- virtual bool GetFieldRect(int i, wxRect& rect) const;
-
- virtual int GetBorderX() const;
- virtual int GetBorderY() const;
-
- void DrawStatusBar();
-
-protected:
- virtual void DoUpdateStatusText(int nField);
-
- void CopyFieldsWidth(const int widths[]);
- void SetFieldsWidth();
-/*
- // store the text in the status bar
- wxListString **StatusTextBuffer;
- void SetStatusBufferText(const wxString& text, int number);
- wxString GetStatusBufferText(int number);
- wxListString *GetOrCreateStatusBuffer(int i);
- wxListString *GetStatusBufferStack(int i) const;
- void DeleteStatusBuffer();
-
- TODO: reuse wxStatusBarBase's stack routines instead of reimplementing them here
-*/
-
- // override base class virtual
- void DoMoveWindow(int x, int y, int width, int height);
-
-private:
- DECLARE_DYNAMIC_CLASS_NO_COPY(wxStatusBarPalm)
-};
-
-#endif // wxUSE_NATIVE_STATUSBAR
-
-#endif
+++ /dev/null
-///////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/stdpaths.h
-// Purpose: wxStandardPaths for PalmOS systems
-// Author: Wlodzimierz ABX Skiba
-// Modified by:
-// Created: 2005-02-25
-// RCS-ID: $Id$
-// Copyright: (c) 2005 Wlodzimierz Skiba
-// Licence: wxWindows licence
-///////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_PALMOS_STDPATHS_H_
-#define _WX_PALMOS_STDPATHS_H_
-
-// ----------------------------------------------------------------------------
-// wxStandardPaths
-// ----------------------------------------------------------------------------
-
-class WXDLLIMPEXP_BASE wxStandardPaths : public wxStandardPathsBase
-{
-public:
- void SetInstallPrefix(const wxString& prefix) { m_prefix = prefix; }
- wxString GetInstallPrefix() const { return m_prefix; }
- virtual wxString GetExecutablePath() const { return m_prefix; }
- virtual wxString GetConfigDir() const { return m_prefix; }
- virtual wxString GetUserConfigDir() const { return m_prefix; }
- virtual wxString GetDataDir() const { return m_prefix; }
- virtual wxString GetLocalDataDir() const { return m_prefix; }
- virtual wxString GetUserDataDir() const { return m_prefix; }
- virtual wxString GetPluginsDir() const { return m_prefix; }
-
-private:
- wxString m_prefix;
-};
-
-#endif // _WX_PALMOS_STDPATHS_H_
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////
-// File: wx/palmos/taskbar.h
-// Purpose: Defines wxTaskBarIcon class.
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////
-
-#ifndef _TASKBAR_H_
-#define _TASKBAR_H_
-
-#include "wx/icon.h"
-
-// private helper class:
-class WXDLLIMPEXP_FWD_ADV wxTaskBarIconWindow;
-
-class WXDLLIMPEXP_ADV wxTaskBarIcon: public wxTaskBarIconBase
-{
- DECLARE_DYNAMIC_CLASS_NO_COPY(wxTaskBarIcon)
-public:
- wxTaskBarIcon();
- virtual ~wxTaskBarIcon();
-
-// Accessors
- inline bool IsOk() const { return true; }
- inline bool IsIconInstalled() const { return m_iconAdded; }
-
-// Operations
- bool SetIcon(const wxIcon& icon, const wxString& tooltip = wxEmptyString);
- bool RemoveIcon(void);
- bool PopupMenu(wxMenu *menu); //, int x, int y);
-
-// Implementation
-protected:
- friend class wxTaskBarIconWindow;
- long WindowProc(unsigned int msg, unsigned int wParam, long lParam);
- void RegisterWindowMessages();
-
-// Data members
-protected:
- wxTaskBarIconWindow *m_win;
- bool m_iconAdded;
- wxIcon m_icon;
- wxString m_strTooltip;
-};
-
-#endif
- // _TASKBAR_H_
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/textctrl.h
-// Purpose: wxTextCtrl class
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by: Yunhui Fu
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_TEXTCTRL_H_
-#define _WX_TEXTCTRL_H_
-
-class WXDLLIMPEXP_CORE wxTextCtrl : public wxTextCtrlBase
-{
-public:
- // creation
- // --------
-
- wxTextCtrl() { Init(); }
- wxTextCtrl(wxWindow *parent, wxWindowID id,
- const wxString& value = wxEmptyString,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = 0,
- const wxValidator& validator = wxDefaultValidator,
- const wxString& name = wxTextCtrlNameStr)
- {
- Init();
-
- Create(parent, id, value, pos, size, style, validator, name);
- }
- virtual ~wxTextCtrl();
-
- bool Create(wxWindow *parent, wxWindowID id,
- const wxString& value = wxEmptyString,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = 0,
- const wxValidator& validator = wxDefaultValidator,
- const wxString& name = wxTextCtrlNameStr);
-
- // overridden wxTextEntry methods
- // ------------------------------
-
- virtual wxString GetValue() const;
- virtual wxString GetRange(long from, long to) const;
-
- virtual bool IsEmpty() const;
-
- virtual int GetLineLength(long lineNo) const;
- virtual wxString GetLineText(long lineNo) const;
- virtual int GetNumberOfLines() const;
-
- virtual void SetMaxLength(unsigned long len);
-
- virtual void GetSelection(long *from, long *to) const;
- //
- // Operations
- // ----------
- //
- virtual void Clear(void);
- virtual void Replace( long lFrom
- ,long lTo
- ,const wxString& rsValue
- );
- virtual void Remove( long lFrom
- ,long lTo
- );
-
- //virtual bool DoLoadFile(const wxString& rsFile, int fileType);
-
- virtual void MarkDirty();
- virtual void DiscardEdits(void);
-
- virtual void WriteText(const wxString& rsText);
- virtual void AppendText(const wxString& rsText);
- virtual bool EmulateKeyPress(const wxKeyEvent& rEvent);
-
- virtual void Copy(void);
- virtual void Cut(void);
- virtual void Paste(void);
-
- virtual bool CanCopy(void) const;
- virtual bool CanCut(void) const;
- virtual bool CanPaste(void) const;
-
- virtual void Undo(void);
- virtual void Redo();
-
- virtual bool CanUndo(void) const;
- virtual bool CanRedo(void) const;
-
- virtual void SetInsertionPoint(long lPos);
- virtual void SetInsertionPointEnd(void);
- virtual long GetInsertionPoint(void) const;
- virtual wxTextPos GetLastPosition(void) const;
-
- virtual void SetSelection( long lFrom
- ,long lTo
- );
- virtual void SetEditable(bool bEditable);
- virtual void SetWindowStyleFlag(long lStyle);
-
- // implement base class pure virtuals
- // ----------------------------------
-
- virtual bool IsModified() const;
- virtual bool IsEditable(void) const;
-
-#if wxUSE_RICHEDIT
- // apply text attribute to the range of text (only works with richedit
- // controls)
- virtual bool SetStyle(long start, long end, const wxTextAttr& style);
- virtual bool SetDefaultStyle(const wxTextAttr& style);
- virtual bool GetStyle(long position, wxTextAttr& style);
-#endif // wxUSE_RICHEDIT
-
- // translate between the position (which is just an index in the text ctrl
- // considering all its contents as a single strings) and (x, y) coordinates
- // which represent column and line.
- virtual long XYToPosition(long x, long y) const;
- virtual bool PositionToXY(long pos, long *x, long *y) const;
-
- virtual void ShowPosition(long pos);
- virtual wxTextCtrlHitTestResult HitTest(const wxPoint& pt, long *pos) const;
- virtual wxTextCtrlHitTestResult HitTest(const wxPoint& pt,
- wxTextCoord *col,
- wxTextCoord *row) const
- {
- return wxTextCtrlBase::HitTest(pt, col, row);
- }
-
- // Caret handling (Windows only)
- bool ShowNativeCaret(bool show = true);
- bool HideNativeCaret() { return ShowNativeCaret(false); }
-
- // Implementation from now on
- // --------------------------
-
-#if wxUSE_DRAG_AND_DROP && wxUSE_RICHEDIT
- virtual void SetDropTarget(wxDropTarget *dropTarget);
-#endif // wxUSE_DRAG_AND_DROP && wxUSE_RICHEDIT
-
- virtual void Command(wxCommandEvent& event);
-
-#if wxUSE_RICHEDIT
-
- int GetRichVersion() const { return m_verRichEdit; }
- bool IsRich() const { return m_verRichEdit != 0; }
-
- // rich edit controls are not compatible with normal ones and wem ust set
- // the colours for them otherwise
- virtual bool SetBackgroundColour(const wxColour& colour);
- virtual bool SetForegroundColour(const wxColour& colour);
-#else
- bool IsRich() const { return false; }
-#endif // wxUSE_RICHEDIT
-
-#if wxUSE_INKEDIT && wxUSE_RICHEDIT
- bool IsInkEdit() const { return m_isInkEdit != 0; }
-#else
- bool IsInkEdit() const { return false; }
-#endif
-
- virtual void AdoptAttributesFromHWND();
-
- virtual bool AcceptsFocusFromKeyboard() const;
-
- // returns true if the platform should explicitly apply a theme border
- virtual bool CanApplyThemeBorder() const;
-
- // callbacks
- void OnDropFiles(wxDropFilesEvent& event);
- void OnChar(wxKeyEvent& event); // Process 'enter' if required
-
- void OnCut(wxCommandEvent& event);
- void OnCopy(wxCommandEvent& event);
- void OnPaste(wxCommandEvent& event);
- void OnUndo(wxCommandEvent& event);
- void OnRedo(wxCommandEvent& event);
- void OnDelete(wxCommandEvent& event);
- void OnSelectAll(wxCommandEvent& event);
-
- void OnUpdateCut(wxUpdateUIEvent& event);
- void OnUpdateCopy(wxUpdateUIEvent& event);
- void OnUpdatePaste(wxUpdateUIEvent& event);
- void OnUpdateUndo(wxUpdateUIEvent& event);
- void OnUpdateRedo(wxUpdateUIEvent& event);
- void OnUpdateDelete(wxUpdateUIEvent& event);
- void OnUpdateSelectAll(wxUpdateUIEvent& event);
-
- // Show a context menu for Rich Edit controls (the standard
- // EDIT control has one already)
- void OnContextMenu(wxContextMenuEvent& event);
-
- // be sure the caret remains invisible if the user
- // called HideNativeCaret() before
- void OnSetFocus(wxFocusEvent& event);
-
- virtual wxVisualAttributes GetDefaultAttributes() const;
-
-protected:
- // common part of all ctors
- void Init();
-
- virtual bool DoLoadFile(const wxString& file, int fileType);
-
- // creates the control of appropriate class (plain or rich edit) with the
- // styles corresponding to m_windowStyle
- //
- // this is used by ctor/Create() and when we need to recreate the control
- // later
- bool MSWCreateText(const wxString& value,
- const wxPoint& pos,
- const wxSize& size);
-
- virtual void DoSetValue(const wxString &value, int flags = 0);
-
- // return true if this control has a user-set limit on amount of text (i.e.
- // the limit is due to a previous call to SetMaxLength() and not built in)
- bool HasSpaceLimit(unsigned int *len) const;
-
- // call this to increase the size limit (will do nothing if the current
- // limit is big enough)
- //
- // returns true if we increased the limit to allow entering more text,
- // false if we hit the limit set by SetMaxLength() and so didn't change it
- bool AdjustSpaceLimit();
-
-#if wxUSE_RICHEDIT && (!wxUSE_UNICODE || wxUSE_UNICODE_MSLU)
- // replace the selection or the entire control contents with the given text
- // in the specified encoding
- bool StreamIn(const wxString& value, wxFontEncoding encoding, bool selOnly);
-
- // get the contents of the control out as text in the given encoding
- wxString StreamOut(wxFontEncoding encoding, bool selOnly = false) const;
-#endif // wxUSE_RICHEDIT
-
- // replace the contents of the selection or of the entire control with the
- // given text
- void DoWriteText(const wxString& text,
- int flags = SetValue_SendEvent | SetValue_SelectionOnly);
-
- // set the selection (possibly without scrolling the caret into view)
- void DoSetSelection(long from, long to, int flags);
-
- // get the length of the line containing the character at the given
- // position
- long GetLengthOfLineContainingPos(long pos) const;
-
- // send TEXT_UPDATED event, return true if it was handled, false otherwise
- bool SendUpdateEvent();
-
- virtual wxSize DoGetBestSize() const;
-
-#if wxUSE_RICHEDIT
- // we're using RICHEDIT (and not simple EDIT) control if this field is not
- // 0, it also gives the version of the RICHEDIT control being used (1, 2 or
- // 3 so far)
- int m_verRichEdit;
-#endif // wxUSE_RICHEDIT
-
- // number of EN_UPDATE events sent by Windows when we change the controls
- // text ourselves: we want this to be exactly 1
- int m_updatesCount;
-
-private:
- virtual void EnableTextChangedEvents(bool enable)
- {
- m_updatesCount = enable ? -1 : -2;
- }
-
- // implement wxTextEntry pure virtual: it implements all the operations for
- // the simple EDIT controls
- virtual WXHWND GetEditHWND() const { return m_hWnd; }
-
- DECLARE_EVENT_TABLE()
- DECLARE_DYNAMIC_CLASS_NO_COPY(wxTextCtrl)
-
- wxMenu* m_privateContextMenu;
-
- bool m_isNativeCaretShown;
-
-#if wxUSE_INKEDIT && wxUSE_RICHEDIT
- int m_isInkEdit;
-#endif
-
-};
-
-#endif
- // _WX_TEXTCTRL_H_
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/tglbtn.h
-// Purpose: Declaration of the wxToggleButton class, which implements a
-// toggle button under Palm OS.
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by: Wlodzimierz ABX Skiba - native implementation
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne, Wlodzimierz Skiba
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_TOGGLEBUTTON_H_
-#define _WX_TOGGLEBUTTON_H_
-
-#include "wx/checkbox.h" // wxCheckBoxNameStr, in datacmn.cpp
-
-// Checkbox item (single checkbox)
-class WXDLLIMPEXP_CORE wxToggleButton : public wxToggleButtonBase
-{
-public:
- wxToggleButton() {}
- wxToggleButton(wxWindow *parent,
- wxWindowID id,
- const wxString& label,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = 0,
- const wxValidator& validator = wxDefaultValidator,
- const wxString& name = wxCheckBoxNameStr)
- {
- Create(parent, id, label, pos, size, style, validator, name);
- }
-
- bool Create(wxWindow *parent,
- wxWindowID id,
- const wxString& label,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = 0,
- const wxValidator& validator = wxDefaultValidator,
- const wxString& name = wxCheckBoxNameStr);
-
- virtual void SetValue(bool value);
- virtual bool GetValue() const ;
-
- virtual void Command(wxCommandEvent& event);
-
- // send a notification event, return true if processed
- bool SendClickEvent();
-
-protected:
- virtual wxSize DoGetBestSize() const;
- virtual wxBorder GetDefaultBorder() const;
-
-private:
- DECLARE_DYNAMIC_CLASS_NO_COPY(wxToggleButton)
-};
-
-#endif // _WX_TOGGLEBUTTON_H_
-
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/timer.h
-// Purpose: wxTimer class
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_TIMER_H_
-#define _WX_TIMER_H_
-
-class WXDLLIMPEXP_BASE wxTimer : public wxTimerBase
-{
-friend void wxProcessTimer(wxTimer& timer);
-
-public:
- wxTimer() { Init(); }
- wxTimer(wxEvtHandler *owner, int id = -1) : wxTimerBase(owner, id)
- { Init(); }
- virtual ~wxTimer();
-
- virtual bool Start(int milliseconds = -1, bool oneShot = FALSE);
- virtual void Stop();
-
- virtual bool IsRunning() const { return m_id != 0; }
-
-protected:
- void Init();
-
- unsigned long m_id;
-
-private:
- DECLARE_DYNAMIC_CLASS_NO_COPY(wxTimer)
-};
-
-#endif
- // _WX_TIMERH_
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/toolbar.h
-// Purpose: wxToolBar class
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_TBAR95_H_
-#define _WX_TBAR95_H_
-
-#if wxUSE_TOOLBAR
-
-#include "wx/dynarray.h"
-
-class WXDLLIMPEXP_CORE wxToolBar : public wxToolBarBase
-{
-public:
- // ctors and dtor
- wxToolBar() { Init(); }
-
- wxToolBar(wxWindow *parent,
- wxWindowID id,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = wxNO_BORDER | wxTB_HORIZONTAL,
- const wxString& name = wxToolBarNameStr)
- {
- Init();
-
- Create(parent, id, pos, size, style, name);
- }
-
- bool Create(wxWindow *parent,
- wxWindowID id,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = wxNO_BORDER | wxTB_HORIZONTAL,
- const wxString& name = wxToolBarNameStr);
-
- virtual ~wxToolBar();
-
- // override/implement base class virtuals
- virtual wxToolBarToolBase *FindToolForPosition(wxCoord x, wxCoord y) const;
-
- virtual bool Realize();
-
- virtual void SetToolBitmapSize(const wxSize& size);
- virtual wxSize GetToolSize() const;
-
- virtual void SetRows(int nRows);
-
- // implementation only from now on
- // -------------------------------
-
- void OnMouseEvent(wxMouseEvent& event);
-
- void SetFocus() {}
-
-protected:
- // common part of all ctors
- void Init();
-
- // recreate the control completely
- void Recreate();
-
- // implement base class pure virtuals
- virtual bool DoInsertTool(size_t pos, wxToolBarToolBase *tool);
- virtual bool DoDeleteTool(size_t pos, wxToolBarToolBase *tool);
-
- virtual void DoEnableTool(wxToolBarToolBase *tool, bool enable);
- virtual void DoToggleTool(wxToolBarToolBase *tool, bool toggle);
- virtual void DoSetToggle(wxToolBarToolBase *tool, bool toggle);
-
- virtual wxToolBarToolBase *CreateTool(int id,
- const wxString& label,
- const wxBitmap& bmpNormal,
- const wxBitmap& bmpDisabled,
- wxItemKind kind,
- wxObject *clientData,
- const wxString& shortHelp,
- const wxString& longHelp);
- virtual wxToolBarToolBase *CreateTool(wxControl *control,
- const wxString& label);
-
- // return the appropriate size and flags for the toolbar control
- virtual wxSize DoGetBestSize() const;
-
- // should be called whenever the toolbar size changes
- void UpdateSize();
-
- // the big bitmap containing all bitmaps of the toolbar buttons
- WXHBITMAP m_hBitmap;
-
- // the total number of toolbar elements
- size_t m_nButtons;
-
- // the tool the cursor is in
- wxToolBarToolBase *m_pInTool;
-
-private:
- DECLARE_EVENT_TABLE()
- DECLARE_DYNAMIC_CLASS(wxToolBar)
- wxDECLARE_NO_COPY_CLASS(wxToolBar);
-};
-
-#endif // wxUSE_TOOLBAR
-
-#endif
- // _WX_TBAR95_H_
+++ /dev/null
-///////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/tooltip.h
-// Purpose: wxToolTip class - tooltip control
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-///////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_PALMOS_TOOLTIP_H_
-#define _WX_PALMOS_TOOLTIP_H_
-
-class WXDLLIMPEXP_CORE wxToolTip : public wxObject
-{
-public:
- // ctor & dtor
- wxToolTip(const wxString &tip);
- virtual ~wxToolTip();
-
- // accessors
- // tip text
- void SetTip(const wxString& tip);
- const wxString& GetTip() const { return m_text; }
-
- // the window we're associated with
- void SetWindow(wxWindow *win);
- wxWindow *GetWindow() const { return m_window; }
-
- // controlling tooltip behaviour: globally change tooltip parameters
- // enable or disable the tooltips globally
- static void Enable(bool flag);
- // set the delay after which the tooltip appears
- static void SetDelay(long milliseconds);
- // set the delay after which the tooltip disappears or how long the tooltip remains visible
- static void SetAutoPop(long milliseconds);
- // set the delay between subsequent tooltips to appear
- static void SetReshow(long milliseconds);
-
- // implementation only from now on
- // -------------------------------
-
- // should be called in responde to WM_MOUSEMOVE
- void RelayEvent(WXMSG *msg);
-
-private:
- // the one and only one tooltip control we use - never access it directly
- // but use GetToolTipCtrl() which will create it when needed
- static WXHWND ms_hwndTT;
-
- // create the tooltip ctrl if it doesn't exist yet and return its HWND
- static WXHWND GetToolTipCtrl();
-
- // remove this tooltip from the tooltip control
- void Remove();
-
- // add a window to the tooltip control
- void Add(WXHWND hwnd);
-
- wxString m_text; // tooltip text
- wxWindow *m_window; // window we're associated with
-
- DECLARE_ABSTRACT_CLASS(wxToolTip)
- wxDECLARE_NO_COPY_CLASS(wxToolTip);
-};
-
-#endif // _WX_PALMOS_TOOLTIP_H_
+++ /dev/null
-///////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/toplevel.h
-// Purpose: wxTopLevelWindow
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by: Wlodzimierz ABX Skiba - more than minimal functionality
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne, Wlodzimierz Skiba
-// Licence: wxWindows licence
-///////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_PALMOS_TOPLEVEL_H_
-#define _WX_PALMOS_TOPLEVEL_H_
-
-// ----------------------------------------------------------------------------
-// wxTopLevelWindowPalm
-// ----------------------------------------------------------------------------
-
-class WXDLLIMPEXP_CORE wxTopLevelWindowPalm : public wxTopLevelWindowBase
-{
-public:
- // constructors and such
- wxTopLevelWindowPalm() { Init(); }
-
- wxTopLevelWindowPalm(wxWindow *parent,
- wxWindowID id,
- const wxString& title,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = wxDEFAULT_FRAME_STYLE,
- const wxString& name = wxFrameNameStr)
- {
- Init();
-
- (void)Create(parent, id, title, pos, size, style, name);
- }
-
- bool Create(wxWindow *parent,
- wxWindowID id,
- const wxString& title,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = wxDEFAULT_FRAME_STYLE,
- const wxString& name = wxFrameNameStr);
-
- virtual ~wxTopLevelWindowPalm();
-
- // implement base class pure virtuals
-
- virtual void SetTitle( const wxString& title);
- virtual wxString GetTitle() const;
-
- virtual void Maximize(bool maximize = true);
- virtual bool IsMaximized() const;
- virtual void Iconize(bool iconize = true);
- virtual bool IsIconized() const;
- virtual void SetIcons(const wxIconBundle& icons);
- virtual void Restore();
-
-#ifndef __WXWINCE__
- virtual bool SetShape(const wxRegion& region);
-#endif // __WXWINCE__
-
- virtual bool Show(bool show = true);
-
- virtual bool ShowFullScreen(bool show, long style = wxFULLSCREEN_ALL);
- virtual bool IsFullScreen() const { return m_fsIsShowing; }
-
- // wxPalm only: EnableCloseButton(false) may be used to remove the "Close"
- // button from the title bar
- bool EnableCloseButton(bool enable = true);
-
- // implementation from now on
- // --------------------------
-
- // event handlers
- void OnActivate(wxActivateEvent& event);
-
- // called by wxWindow whenever it gets focus
- void SetLastFocus(wxWindow *win) { m_winLastFocused = win; }
- wxWindow *GetLastFocus() const { return m_winLastFocused; }
-
- // interface to native frame structure
- WXFORMPTR GetForm() const;
-
- // handle native events
- bool HandleControlSelect(WXEVENTPTR event);
- bool HandleControlRepeat(WXEVENTPTR event);
- bool HandleSize(WXEVENTPTR event);
-
- virtual WXWINHANDLE GetWinHandle() const;
-
-protected:
- // common part of all ctors
- void Init();
-
- // getting and setting sizes
- virtual void DoGetSize( int *width, int *height ) const;
-
- // common part of Iconize(), Maximize() and Restore()
- void DoShowWindow(int nShowCmd);
-
- // translate wxWidgets flags to Windows ones
- virtual WXDWORD PalmGetStyle(long flags, WXDWORD *exstyle) const;
-
- // is the window currently iconized?
- bool m_iconized;
-
- // should the frame be maximized when it will be shown? set by Maximize()
- // when it is called while the frame is hidden
- bool m_maximizeOnShow;
-
- // Data to save/restore when calling ShowFullScreen
- long m_fsStyle; // Passed to ShowFullScreen
- wxRect m_fsOldSize;
- long m_fsOldWindowStyle;
- bool m_fsIsMaximized;
- bool m_fsIsShowing;
-
- // the last focused child: we restore focus to it on activation
- wxWindow *m_winLastFocused;
-
- DECLARE_EVENT_TABLE()
- wxDECLARE_NO_COPY_CLASS(wxTopLevelWindowPalm);
-};
-
-#endif // _WX_PALMOS_TOPLEVEL_H_
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/treectrl.h
-// Purpose: wxTreeCtrl class
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_TREECTRL_H_
-#define _WX_TREECTRL_H_
-
-// ----------------------------------------------------------------------------
-// headers
-// ----------------------------------------------------------------------------
-
-#if wxUSE_TREECTRL
-
-#include "wx/textctrl.h"
-#include "wx/dynarray.h"
-#include "wx/treebase.h"
-#include "wx/hashmap.h"
-
-// fwd decl
-class WXDLLIMPEXP_CORE wxImageList;
-class WXDLLIMPEXP_CORE wxDragImage;
-struct WXDLLIMPEXP_FWD_CORE wxTreeViewItem;
-
-// hash storing attributes for our items
-WX_DECLARE_EXPORTED_VOIDPTR_HASH_MAP(wxTreeItemAttr *, wxMapTreeAttr);
-
-// ----------------------------------------------------------------------------
-// wxTreeCtrl
-// ----------------------------------------------------------------------------
-
-class WXDLLIMPEXP_CORE wxTreeCtrl : public wxControl
-{
-public:
- // creation
- // --------
- wxTreeCtrl() { Init(); }
-
- wxTreeCtrl(wxWindow *parent, wxWindowID id = wxID_ANY,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = wxTR_HAS_BUTTONS | wxTR_LINES_AT_ROOT,
- const wxValidator& validator = wxDefaultValidator,
- const wxString& name = wxTreeCtrlNameStr)
- {
- Create(parent, id, pos, size, style, validator, name);
- }
-
- virtual ~wxTreeCtrl();
-
- bool Create(wxWindow *parent, wxWindowID id = wxID_ANY,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = wxTR_HAS_BUTTONS | wxTR_LINES_AT_ROOT,
- const wxValidator& validator = wxDefaultValidator,
- const wxString& name = wxTreeCtrlNameStr);
-
- // accessors
- // ---------
-
- // get the total number of items in the control
- virtual unsigned int GetCount() const;
-
- // indent is the number of pixels the children are indented relative to
- // the parents position. SetIndent() also redraws the control
- // immediately.
- unsigned int GetIndent() const;
- void SetIndent(unsigned int indent);
-
- // spacing is the number of pixels between the start and the Text
- unsigned int GetSpacing() const { return 18; } // return wxGTK default
- void SetSpacing(unsigned int WXUNUSED(spacing)) { }
-
- // image list: these functions allow to associate an image list with
- // the control and retrieve it. Note that the control does _not_ delete
- // the associated image list when it's deleted in order to allow image
- // lists to be shared between different controls.
- //
- // The normal image list is for the icons which correspond to the
- // normal tree item state (whether it is selected or not).
- // Additionally, the application might choose to show a state icon
- // which corresponds to an app-defined item state (for example,
- // checked/unchecked) which are taken from the state image list.
- wxImageList *GetImageList() const;
- wxImageList *GetStateImageList() const;
-
- void SetImageList(wxImageList *imageList);
- void SetStateImageList(wxImageList *imageList);
- void AssignImageList(wxImageList *imageList);
- void AssignStateImageList(wxImageList *imageList);
-
- // Functions to work with tree ctrl items. Unfortunately, they can _not_ be
- // member functions of wxTreeItem because they must know the tree the item
- // belongs to for Windows implementation and storing the pointer to
- // wxTreeCtrl in each wxTreeItem is just too much waste.
-
- // accessors
- // ---------
-
- // retrieve items label
- wxString GetItemText(const wxTreeItemId& item) const;
- // get one of the images associated with the item (normal by default)
- int GetItemImage(const wxTreeItemId& item,
- wxTreeItemIcon which = wxTreeItemIcon_Normal) const;
- // get the data associated with the item
- wxTreeItemData *GetItemData(const wxTreeItemId& item) const;
-
- // get the item's text colour
- wxColour GetItemTextColour(const wxTreeItemId& item) const;
-
- // get the item's background colour
- wxColour GetItemBackgroundColour(const wxTreeItemId& item) const;
-
- // get the item's font
- wxFont GetItemFont(const wxTreeItemId& item) const;
-
- // modifiers
- // ---------
-
- // set items label
- void SetItemText(const wxTreeItemId& item, const wxString& text);
- // get one of the images associated with the item (normal by default)
- void SetItemImage(const wxTreeItemId& item, int image,
- wxTreeItemIcon which = wxTreeItemIcon_Normal);
- // associate some data with the item
- void SetItemData(const wxTreeItemId& item, wxTreeItemData *data);
-
- // force appearance of [+] button near the item. This is useful to
- // allow the user to expand the items which don't have any children now
- // - but instead add them only when needed, thus minimizing memory
- // usage and loading time.
- void SetItemHasChildren(const wxTreeItemId& item, bool has = true);
-
- // the item will be shown in bold
- void SetItemBold(const wxTreeItemId& item, bool bold = true);
-
- // the item will be shown with a drop highlight
- void SetItemDropHighlight(const wxTreeItemId& item, bool highlight = true);
-
- // set the items text colour
- void SetItemTextColour(const wxTreeItemId& item, const wxColour& col);
-
- // set the items background colour
- void SetItemBackgroundColour(const wxTreeItemId& item, const wxColour& col);
-
- // set the items font (should be of the same height for all items)
- void SetItemFont(const wxTreeItemId& item, const wxFont& font);
-
- // item status inquiries
- // ---------------------
-
- // is the item visible (it might be outside the view or not expanded)?
- bool IsVisible(const wxTreeItemId& item) const;
- // does the item has any children?
- bool ItemHasChildren(const wxTreeItemId& item) const;
- // is the item expanded (only makes sense if HasChildren())?
- bool IsExpanded(const wxTreeItemId& item) const;
- // is this item currently selected (the same as has focus)?
- bool IsSelected(const wxTreeItemId& item) const;
- // is item text in bold font?
- bool IsBold(const wxTreeItemId& item) const;
-
- // number of children
- // ------------------
-
- // if 'recursively' is false, only immediate children count, otherwise
- // the returned number is the number of all items in this branch
- size_t GetChildrenCount(const wxTreeItemId& item,
- bool recursively = true) const;
-
- // navigation
- // ----------
-
- // wxTreeItemId.IsOk() will return false if there is no such item
-
- // get the root tree item
- wxTreeItemId GetRootItem() const;
-
- // get the item currently selected (may return NULL if no selection)
- wxTreeItemId GetSelection() const;
-
- // get the items currently selected, return the number of such item
- //
- // NB: this operation is expensive and can take a long time for a
- // control with a lot of items (~ O(number of items)).
- size_t GetSelections(wxArrayTreeItemIds& selections) const;
-
- // get the parent of this item (may return NULL if root)
- wxTreeItemId GetItemParent(const wxTreeItemId& item) const;
-
- // for this enumeration function you must pass in a "cookie" parameter
- // which is opaque for the application but is necessary for the library
- // to make these functions reentrant (i.e. allow more than one
- // enumeration on one and the same object simultaneously). Of course,
- // the "cookie" passed to GetFirstChild() and GetNextChild() should be
- // the same!
-
- // get the first child of this item
- wxTreeItemId GetFirstChild(const wxTreeItemId& item,
- wxTreeItemIdValue& cookie) const;
- // get the next child
- wxTreeItemId GetNextChild(const wxTreeItemId& item,
- wxTreeItemIdValue& cookie) const;
- // get the last child of this item - this method doesn't use cookies
- wxTreeItemId GetLastChild(const wxTreeItemId& item) const;
-
- // get the next sibling of this item
- wxTreeItemId GetNextSibling(const wxTreeItemId& item) const;
- // get the previous sibling
- wxTreeItemId GetPrevSibling(const wxTreeItemId& item) const;
-
- // get first visible item
- wxTreeItemId GetFirstVisibleItem() const;
- // get the next visible item: item must be visible itself!
- // see IsVisible() and wxTreeCtrl::GetFirstVisibleItem()
- wxTreeItemId GetNextVisible(const wxTreeItemId& item) const;
- // get the previous visible item: item must be visible itself!
- wxTreeItemId GetPrevVisible(const wxTreeItemId& item) const;
-
- // operations
- // ----------
-
- // add the root node to the tree
- wxTreeItemId AddRoot(const wxString& text,
- int image = -1, int selectedImage = -1,
- wxTreeItemData *data = NULL);
-
- // insert a new item in as the first child of the parent
- wxTreeItemId PrependItem(const wxTreeItemId& parent,
- const wxString& text,
- int image = -1, int selectedImage = -1,
- wxTreeItemData *data = NULL);
-
- // insert a new item after a given one
- wxTreeItemId InsertItem(const wxTreeItemId& parent,
- const wxTreeItemId& idPrevious,
- const wxString& text,
- int image = -1, int selectedImage = -1,
- wxTreeItemData *data = NULL);
-
- // insert a new item before the one with the given index
- wxTreeItemId InsertItem(const wxTreeItemId& parent,
- size_t index,
- const wxString& text,
- int image = -1, int selectedImage = -1,
- wxTreeItemData *data = NULL);
-
- // insert a new item in as the last child of the parent
- wxTreeItemId AppendItem(const wxTreeItemId& parent,
- const wxString& text,
- int image = -1, int selectedImage = -1,
- wxTreeItemData *data = NULL);
-
- // delete this item and associated data if any
- void Delete(const wxTreeItemId& item);
- // delete all children (but don't delete the item itself)
- // NB: this won't send wxEVT_COMMAND_TREE_ITEM_DELETED events
- void DeleteChildren(const wxTreeItemId& item);
- // delete all items from the tree
- // NB: this won't send wxEVT_COMMAND_TREE_ITEM_DELETED events
- void DeleteAllItems();
-
- // expand this item
- void Expand(const wxTreeItemId& item);
- // collapse the item without removing its children
- void Collapse(const wxTreeItemId& item);
- // collapse the item and remove all children
- void CollapseAndReset(const wxTreeItemId& item);
- // toggles the current state
- void Toggle(const wxTreeItemId& item);
-
- // remove the selection from currently selected item (if any)
- void Unselect();
- // unselect all items (only makes sense for multiple selection control)
- void UnselectAll();
- // select this item
- void SelectItem(const wxTreeItemId& item, bool select = true);
- // unselect this item
- void UnselectItem(const wxTreeItemId& item);
- // toggle item selection
- void ToggleItemSelection(const wxTreeItemId& item);
-
- // make sure this item is visible (expanding the parent item and/or
- // scrolling to this item if necessary)
- void EnsureVisible(const wxTreeItemId& item);
- // scroll to this item (but don't expand its parent)
- void ScrollTo(const wxTreeItemId& item);
-
- // start editing the item label: this (temporarily) replaces the item
- // with a one line edit control. The item will be selected if it hadn't
- // been before. textCtrlClass parameter allows you to create an edit
- // control of arbitrary user-defined class deriving from wxTextCtrl.
- wxTextCtrl* EditLabel(const wxTreeItemId& item,
- wxClassInfo* textCtrlClass = wxCLASSINFO(wxTextCtrl));
- // returns the same pointer as StartEdit() if the item is being edited,
- // NULL otherwise (it's assumed that no more than one item may be
- // edited simultaneously)
- wxTextCtrl* GetEditControl() const;
- // end editing and accept or discard the changes to item label
- void EndEditLabel(const wxTreeItemId& item, bool discardChanges = false);
-
- // sorting
- // this function is called to compare 2 items and should return -1, 0
- // or +1 if the first item is less than, equal to or greater than the
- // second one. The base class version performs alphabetic comparaison
- // of item labels (GetText)
- virtual int OnCompareItems(const wxTreeItemId& item1,
- const wxTreeItemId& item2);
- // sort the children of this item using OnCompareItems
- //
- // NB: this function is not reentrant and not MT-safe (FIXME)!
- void SortChildren(const wxTreeItemId& item);
-
- // helpers
- // -------
-
- // determine to which item (if any) belongs the given point (the
- // coordinates specified are relative to the client area of tree ctrl)
- // and fill the flags parameter with a bitmask of wxTREE_HITTEST_xxx
- // constants.
- //
- // The first function is more portable (because easier to implement
- // on other platforms), but the second one returns some extra info.
- wxTreeItemId HitTest(const wxPoint& point)
- { int dummy; return HitTest(point, dummy); }
- wxTreeItemId HitTest(const wxPoint& point, int& flags);
-
- // get the bounding rectangle of the item (or of its label only)
- bool GetBoundingRect(const wxTreeItemId& item,
- wxRect& rect,
- bool textOnly = false) const;
-
- // implementation
- // --------------
-
- virtual bool ShouldInheritColours() const { return false; }
-
- virtual wxVisualAttributes GetDefaultAttributes() const
- {
- return GetClassDefaultAttributes(GetWindowVariant());
- }
-
- static wxVisualAttributes
- GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
-
- // override some base class virtuals
- virtual bool SetBackgroundColour(const wxColour &colour);
- virtual bool SetForegroundColour(const wxColour &colour);
-
- // get/set the check state for the item (only for wxTR_MULTIPLE)
- bool IsItemChecked(const wxTreeItemId& item) const;
- void SetItemCheck(const wxTreeItemId& item, bool check = true);
-
- // set/get the item state.image (state == -1 means cycle to the next one)
- void SetState(const wxTreeItemId& node, int state);
- int GetState(const wxTreeItemId& node);
-
-protected:
- // SetImageList helper
- void SetAnyImageList(wxImageList *imageList, int which);
-
- // refresh a single item
- void RefreshItem(const wxTreeItemId& item);
-
- wxTextCtrl *m_textCtrl; // used while editing the item label
- wxImageList *m_imageListNormal, // images for tree elements
- *m_imageListState; // special images for app defined states
- bool m_ownsImageListNormal, m_ownsImageListState;
-
-private:
- // the common part of all ctors
- void Init();
-
- // helper functions
- inline bool DoGetItem(wxTreeViewItem *tvItem) const;
- inline void DoSetItem(wxTreeViewItem *tvItem);
-
- inline void DoExpand(const wxTreeItemId& item, int flag);
-
- wxTreeItemId DoInsertItem(const wxTreeItemId& parent,
- wxTreeItemId hInsertAfter,
- const wxString& text,
- int image, int selectedImage,
- wxTreeItemData *data);
-
- int DoGetItemImageFromData(const wxTreeItemId& item,
- wxTreeItemIcon which) const;
- void DoSetItemImageFromData(const wxTreeItemId& item,
- int image,
- wxTreeItemIcon which) const;
- void DoSetItemImages(const wxTreeItemId& item, int image, int imageSel);
-
- void DeleteTextCtrl();
-
- // support for additional item images which we implement using
- // wxTreeItemIndirectData technique
- void SetIndirectItemData(const wxTreeItemId& item,
- class wxTreeItemIndirectData *data);
- bool HasIndirectData(const wxTreeItemId& item) const;
- bool IsDataIndirect(wxTreeItemData *data) const
- { return data && data->GetId().m_pItem == 0; }
-
- // the hash storing the items attributes (indexed by item ids)
- wxMapTreeAttr m_attrs;
-
- // true if the hash above is not empty
- bool m_hasAnyAttr;
-
- // used for dragging
- wxDragImage *m_dragImage;
-
- // Virtual root item, if wxTR_HIDE_ROOT is set.
- void* m_pVirtualRoot;
-
- // the starting item for selection with Shift
- wxTreeItemId m_htSelStart;
-
- friend class wxTreeItemIndirectData;
- friend class wxTreeSortHelper;
-
- DECLARE_DYNAMIC_CLASS(wxTreeCtrl)
- wxDECLARE_NO_COPY_CLASS(wxTreeCtrl);
-};
-
-#endif // wxUSE_TREECTRL
-
-#endif // _WX_TREECTRL_H_
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: wx/palmos/window.h
-// Purpose: wxWindow class
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by: Wlodzimierz ABX Skiba - more than minimal functionality
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne, Wlodzimierz Skiba
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-#ifndef _WX_WINDOW_H_
-#define _WX_WINDOW_H_
-
-// ---------------------------------------------------------------------------
-// headers
-// ---------------------------------------------------------------------------
-
-// [at least] some version of Windows send extra mouse move messages after
-// a mouse click or a key press - to temporarily fix this problem, set the
-// define below to 1
-//
-// a better solution should be found later...
-#define wxUSE_MOUSEEVENT_HACK 0
-
-// ---------------------------------------------------------------------------
-// wxWindow declaration for Palm
-// ---------------------------------------------------------------------------
-
-class WXDLLIMPEXP_CORE wxWindowPalm : public wxWindowBase
-{
-public:
- wxWindowPalm() { Init(); }
-
- wxWindowPalm(wxWindow *parent,
- wxWindowID id,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = 0,
- const wxString& name = wxPanelNameStr)
- {
- Init();
- Create(parent, id, pos, size, style, name);
- }
-
- virtual ~wxWindowPalm();
-
- bool Create(wxWindow *parent,
- wxWindowID id,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = 0,
- const wxString& name = wxPanelNameStr);
-
- // implement base class pure virtuals
-
- virtual void SetLabel( const wxString& label);
- virtual wxString GetLabel() const;
-
- virtual void Raise();
- virtual void Lower();
-
- virtual bool Show( bool show = true );
- virtual bool Enable( bool enable = true );
-
- virtual void SetFocus();
- virtual void SetFocusFromKbd();
-
- virtual bool Reparent(wxWindowBase *newParent);
-
- virtual void WarpPointer(int x, int y);
-
- virtual void Refresh( bool eraseBackground = true,
- const wxRect *rect = NULL );
- virtual void Update();
-
- virtual bool SetCursor( const wxCursor &cursor );
- virtual bool SetFont( const wxFont &font );
-
- virtual int GetCharHeight() const;
- virtual int GetCharWidth() const;
-
-#if wxUSE_MENUS_NATIVE
- virtual bool DoPopupMenu( wxMenu *menu, int x, int y );
-#endif // wxUSE_MENUS_NATIVE
-
- virtual void SetScrollbar( int orient, int pos, int thumbVisible,
- int range, bool refresh = true );
- virtual void SetScrollPos( int orient, int pos, bool refresh = true );
- virtual int GetScrollPos( int orient ) const;
- virtual int GetScrollThumb( int orient ) const;
- virtual int GetScrollRange( int orient ) const;
- virtual void ScrollWindow( int dx, int dy,
- const wxRect* rect = NULL );
-
- virtual bool ScrollLines(int lines);
- virtual bool ScrollPages(int pages);
-
-#if wxUSE_DRAG_AND_DROP
- virtual void SetDropTarget( wxDropTarget *dropTarget );
-#endif // wxUSE_DRAG_AND_DROP
-
- // Accept files for dragging
- virtual void DragAcceptFiles(bool accept);
-
-#ifndef __WXUNIVERSAL__
- // Native resource loading (implemented in src/Palm/nativdlg.cpp)
- // FIXME: should they really be all virtual?
- virtual bool LoadNativeDialog(wxWindow* parent, wxWindowID& id);
- virtual bool LoadNativeDialog(wxWindow* parent, const wxString& name);
- wxWindow* GetWindowChild1(wxWindowID id);
- wxWindow* GetWindowChild(wxWindowID id);
-#endif // __WXUNIVERSAL__
-
-#if wxUSE_HOTKEY
- // install and deinstall a system wide hotkey
- virtual bool RegisterHotKey(int hotkeyId, int modifiers, int keycode);
- virtual bool UnregisterHotKey(int hotkeyId);
-#endif // wxUSE_HOTKEY
-
- // implementation from now on
- // --------------------------
-
- // simple accessors
- // ----------------
-
- WXHWND GetHWND() const { return m_hWnd; }
- void SetHWND(WXHWND hWnd) { m_hWnd = hWnd; }
- virtual WXWidget GetHandle() const { return GetHWND(); }
-
- // event handlers
- // --------------
-
- void OnEraseBackground(wxEraseEvent& event);
- void OnPaint(wxPaintEvent& event);
-
-public:
- wxWindow *FindItem(long id) const;
- wxWindow *FindItemByWinHandle(WXWINHANDLE handle, bool controlOnly = false) const;
-
- // Palm only: true if this control is part of the main control
- virtual bool ContainsWinHandle(WXWINHANDLE WXUNUSED(handle)) const { return false; }
-
- // translate wxWidgets style flags for this control into the Windows style
- // and optional extended style for the corresponding native control
- //
- // this is the function that should be overridden in the derived classes,
- // but you will mostly use PalmGetCreateWindowFlags() below
- virtual WXDWORD PalmGetStyle(long flags, WXDWORD *exstyle = NULL) const ;
-
- // get the Palm window flags corresponding to wxWidgets ones
- //
- // the functions returns the flags (WS_XXX) directly and puts the ext
- // (WS_EX_XXX) flags into the provided pointer if not NULL
- WXDWORD PalmGetCreateWindowFlags(WXDWORD *exflags = NULL) const
- { return PalmGetStyle(GetWindowStyle(), exflags); }
-
- // translate wxWidgets coords into Windows ones suitable to be passed to
- // ::CreateWindow()
- //
- // returns true if non default coords are returned, false otherwise
- bool PalmGetCreateWindowCoords(const wxPoint& pos,
- const wxSize& size,
- int& x, int& y,
- int& w, int& h) const;
-
- // creates the window of specified Windows class with given style, extended
- // style, title and geometry (default values
- //
- // returns true if the window has been created, false if creation failed
- bool PalmCreate(const wxChar *wclass,
- const wxChar *title = NULL,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- WXDWORD style = 0,
- WXDWORD exendedStyle = 0);
-
-#ifndef __WXUNIVERSAL__
- // Create an appropriate wxWindow from a WinHandle
- virtual wxWindow* CreateWindowFromWinHandle(wxWindow* parent, WXWINHANDLE handle);
-
- // Make sure the window style reflects the WinHandle style (roughly)
- virtual void AdoptAttributesFromWinHandle();
-#endif // __WXUNIVERSAL__
-
- // Setup background and foreground colours correctly
- virtual void SetupColours();
-
- // ------------------------------------------------------------------------
- // internal handlers for Palm messages: all handlers return a boolean value:
- // true means that the handler processed the event and false that it didn't
- // ------------------------------------------------------------------------
-
- // scroll event (both horizontal and vertical)
- virtual bool PalmOnScroll(int orientation, WXWORD nSBCode,
- WXWORD pos, WXWINHANDLE control);
-
- // virtual function for implementing internal idle
- // behaviour
- virtual void OnInternalIdle() ;
-
-protected:
- // the window handle
- WXHWND m_hWnd;
- WXFORMPTR FrameForm;
-
- WXFORMPTR GetFormPtr();
- void SetFormPtr(WXFORMPTR FormPtr);
-
- // additional (Palm specific) flags
- bool m_mouseInWindow:1;
- bool m_lastKeydownProcessed:1;
-
- // the size of one page for scrolling
- int m_xThumbSize;
- int m_yThumbSize;
-
-#if wxUSE_MOUSEEVENT_HACK
- // the coordinates of the last mouse event and the type of it
- long m_lastMouseX,
- m_lastMouseY;
- int m_lastMouseEvent;
-#endif // wxUSE_MOUSEEVENT_HACK
-
- WXHMENU m_hMenu; // Menu, if any
-
- // implement the base class pure virtuals
- virtual void DoGetTextExtent(const wxString& string,
- int *x, int *y,
- int *descent = NULL,
- int *externalLeading = NULL,
- const wxFont *font = NULL) const;
- virtual void DoClientToScreen( int *x, int *y ) const;
- virtual void DoScreenToClient( int *x, int *y ) const;
- virtual void DoGetPosition( int *x, int *y ) const;
- virtual void DoGetSize( int *width, int *height ) const;
- virtual void DoGetClientSize( int *width, int *height ) const;
- virtual void DoSetSize(int x, int y,
- int width, int height,
- int sizeFlags = wxSIZE_AUTO);
- virtual void DoSetClientSize(int width, int height);
-
- virtual void DoCaptureMouse();
- virtual void DoReleaseMouse();
-
- // move the window to the specified location and resize it: this is called
- // from both DoSetSize() and DoSetClientSize() and would usually just call
- // ::MoveWindow() except for composite controls which will want to arrange
- // themselves inside the given rectangle
- virtual void DoMoveWindow(int x, int y, int width, int height);
-
-#if wxUSE_TOOLTIPS
- virtual void DoSetToolTip( wxToolTip *tip );
-
- // process TTN_NEEDTEXT message properly (i.e. fixing the bugs in
- // comctl32.dll in our code -- see the function body for more info)
- bool HandleTooltipNotify(WXUINT code,
- WXLPARAM lParam,
- const wxString& ttip);
-#endif // wxUSE_TOOLTIPS
-
-private:
- // common part of all ctors
- void Init();
-
- // the (non-virtual) handlers for the events
- bool HandleMove(int x, int y);
- bool HandleMoving(wxRect& rect);
- bool HandleJoystickEvent(WXUINT msg, int x, int y, WXUINT flags);
-
- DECLARE_DYNAMIC_CLASS(wxWindowPalm)
- wxDECLARE_NO_COPY_CLASS(wxWindowPalm);
- DECLARE_EVENT_TABLE()
-};
-
-// ----------------------------------------------------------------------------
-// global objects
-// ----------------------------------------------------------------------------
-
-// notice that this hash must be defined after wxWindow declaration as it
-// needs to "see" its dtor and not just forward declaration
-#include "wx/hash.h"
-
-// pseudo-template WinHandle <-> wxWindow hash table
-WX_DECLARE_HASH(wxWindowPalm, wxWindowList, wxWinHashTable);
-
-extern wxWinHashTable *wxWinHandleHash;
-
-#endif
- // _WX_WINDOW_H_
+++ /dev/null
-EXPORTS
-_PalmUIAppStartup @1
-SysGetRefNum @2
-__ExportDispatchTable @3
-__GetRefNum @4
-__SetPreloadedDispatchTable @5
-__SetRefNum @6
\ No newline at end of file
+++ /dev/null
-;
-; BasicApp Library Definition File
-;
-
-REVISION 1
-RESOURCEID 0
-
-; Always use this default main entry point for UI applications
-ENTRY _PalmUIAppStartup
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-
-<PALMOS_RESOURCE_FILE>
-
- <ALERT_RESOURCE RESOURCE_ID="1000">
- <ALERT_TYPE> WARNING_ALERT </ALERT_TYPE>
- <HELP_ID> 0 </HELP_ID>
- <DEFAULT_BUTTON> 0 </DEFAULT_BUTTON>
- <TITLE> "AAAAAAAAAABBBBBBBBBBCCCCC" </TITLE>
- <MESSAGE> "^1" </MESSAGE>
- <BUTTONS>
- <TEXT> "OK" </TEXT>
- </BUTTONS>
- </ALERT_RESOURCE>
-
- <ALERT_RESOURCE RESOURCE_ID="1001">
- <ALERT_TYPE> ERROR_ALERT </ALERT_TYPE>
- <HELP_ID> 0 </HELP_ID>
- <DEFAULT_BUTTON> 0 </DEFAULT_BUTTON>
- <TITLE> "AAAAAAAAAABBBBBBBBBBCCCCC" </TITLE>
- <MESSAGE> "^1" </MESSAGE>
- <BUTTONS>
- <TEXT> "OK" </TEXT>
- </BUTTONS>
- </ALERT_RESOURCE>
-
- <ALERT_RESOURCE RESOURCE_ID="1002">
- <ALERT_TYPE> INFORMATION_ALERT </ALERT_TYPE>
- <HELP_ID> 0 </HELP_ID>
- <DEFAULT_BUTTON> 0 </DEFAULT_BUTTON>
- <TITLE> "AAAAAAAAAABBBBBBBBBBCCCCC" </TITLE>
- <MESSAGE> "^1" </MESSAGE>
- <BUTTONS>
- <TEXT> "OK" </TEXT>
- </BUTTONS>
- </ALERT_RESOURCE>
-
- <ALERT_RESOURCE RESOURCE_ID="1003">
- <ALERT_TYPE> CONFIRMATION_ALERT </ALERT_TYPE>
- <HELP_ID> 0 </HELP_ID>
- <DEFAULT_BUTTON> 0 </DEFAULT_BUTTON>
- <TITLE> "AAAAAAAAAABBBBBBBBBBCCCCC" </TITLE>
- <MESSAGE> "^1" </MESSAGE>
- <BUTTONS>
- <TEXT> "OK" </TEXT>
- </BUTTONS>
- </ALERT_RESOURCE>
-
- <ALERT_RESOURCE RESOURCE_ID="1100">
- <ALERT_TYPE> WARNING_ALERT </ALERT_TYPE>
- <HELP_ID> 0 </HELP_ID>
- <DEFAULT_BUTTON> 0 </DEFAULT_BUTTON>
- <TITLE> "AAAAAAAAAABBBBBBBBBBCCCCC" </TITLE>
- <MESSAGE> "^1" </MESSAGE>
- <BUTTONS>
- <TEXT> "OK" </TEXT>
- <TEXT> "Cancel" </TEXT>
- </BUTTONS>
- </ALERT_RESOURCE>
-
- <ALERT_RESOURCE RESOURCE_ID="1101">
- <ALERT_TYPE> ERROR_ALERT </ALERT_TYPE>
- <HELP_ID> 0 </HELP_ID>
- <DEFAULT_BUTTON> 0 </DEFAULT_BUTTON>
- <TITLE> "AAAAAAAAAABBBBBBBBBBCCCCC" </TITLE>
- <MESSAGE> "^1" </MESSAGE>
- <BUTTONS>
- <TEXT> "OK" </TEXT>
- <TEXT> "Cancel" </TEXT>
- </BUTTONS>
- </ALERT_RESOURCE>
-
- <ALERT_RESOURCE RESOURCE_ID="1102">
- <ALERT_TYPE> INFORMATION_ALERT </ALERT_TYPE>
- <HELP_ID> 0 </HELP_ID>
- <DEFAULT_BUTTON> 0 </DEFAULT_BUTTON>
- <TITLE> "AAAAAAAAAABBBBBBBBBBCCCCC" </TITLE>
- <MESSAGE> "^1" </MESSAGE>
- <BUTTONS>
- <TEXT> "OK" </TEXT>
- <TEXT> "Cancel" </TEXT>
- </BUTTONS>
- </ALERT_RESOURCE>
-
- <ALERT_RESOURCE RESOURCE_ID="1103">
- <ALERT_TYPE> CONFIRMATION_ALERT </ALERT_TYPE>
- <HELP_ID> 0 </HELP_ID>
- <DEFAULT_BUTTON> 0 </DEFAULT_BUTTON>
- <TITLE> "AAAAAAAAAABBBBBBBBBBCCCCC" </TITLE>
- <MESSAGE> "^1" </MESSAGE>
- <BUTTONS>
- <TEXT> "OK" </TEXT>
- <TEXT> "Cancel" </TEXT>
- </BUTTONS>
- </ALERT_RESOURCE>
-
- <ALERT_RESOURCE RESOURCE_ID="1200">
- <ALERT_TYPE> WARNING_ALERT </ALERT_TYPE>
- <HELP_ID> 0 </HELP_ID>
- <DEFAULT_BUTTON> 0 </DEFAULT_BUTTON>
- <TITLE> "AAAAAAAAAABBBBBBBBBBCCCCC" </TITLE>
- <MESSAGE> "^1" </MESSAGE>
- <BUTTONS>
- <TEXT> "Yes" </TEXT>
- <TEXT> "No" </TEXT>
- </BUTTONS>
- </ALERT_RESOURCE>
-
- <ALERT_RESOURCE RESOURCE_ID="1201">
- <ALERT_TYPE> ERROR_ALERT </ALERT_TYPE>
- <HELP_ID> 0 </HELP_ID>
- <DEFAULT_BUTTON> 0 </DEFAULT_BUTTON>
- <TITLE> "AAAAAAAAAABBBBBBBBBBCCCCC" </TITLE>
- <MESSAGE> "^1" </MESSAGE>
- <BUTTONS>
- <TEXT> "Yes" </TEXT>
- <TEXT> "No" </TEXT>
- </BUTTONS>
- </ALERT_RESOURCE>
-
- <ALERT_RESOURCE RESOURCE_ID="1202">
- <ALERT_TYPE> INFORMATION_ALERT </ALERT_TYPE>
- <HELP_ID> 0 </HELP_ID>
- <DEFAULT_BUTTON> 0 </DEFAULT_BUTTON>
- <TITLE> "AAAAAAAAAABBBBBBBBBBCCCCC" </TITLE>
- <MESSAGE> "^1" </MESSAGE>
- <BUTTONS>
- <TEXT> "Yes" </TEXT>
- <TEXT> "No" </TEXT>
- </BUTTONS>
- </ALERT_RESOURCE>
-
- <ALERT_RESOURCE RESOURCE_ID="1203">
- <ALERT_TYPE> CONFIRMATION_ALERT </ALERT_TYPE>
- <HELP_ID> 0 </HELP_ID>
- <DEFAULT_BUTTON> 0 </DEFAULT_BUTTON>
- <TITLE> "AAAAAAAAAABBBBBBBBBBCCCCC" </TITLE>
- <MESSAGE> "^1" </MESSAGE>
- <BUTTONS>
- <TEXT> "Yes" </TEXT>
- <TEXT> "No" </TEXT>
- </BUTTONS>
- </ALERT_RESOURCE>
-
- <ALERT_RESOURCE RESOURCE_ID="1300">
- <ALERT_TYPE> WARNING_ALERT </ALERT_TYPE>
- <HELP_ID> 0 </HELP_ID>
- <DEFAULT_BUTTON> 0 </DEFAULT_BUTTON>
- <TITLE> "AAAAAAAAAABBBBBBBBBBCCCCC" </TITLE>
- <MESSAGE> "^1" </MESSAGE>
- <BUTTONS>
- <TEXT> "Yes" </TEXT>
- <TEXT> "No" </TEXT>
- <TEXT> "Cancel" </TEXT>
- </BUTTONS>
- </ALERT_RESOURCE>
-
- <ALERT_RESOURCE RESOURCE_ID="1301">
- <ALERT_TYPE> ERROR_ALERT </ALERT_TYPE>
- <HELP_ID> 0 </HELP_ID>
- <DEFAULT_BUTTON> 0 </DEFAULT_BUTTON>
- <TITLE> "AAAAAAAAAABBBBBBBBBBCCCCC" </TITLE>
- <MESSAGE> "^1" </MESSAGE>
- <BUTTONS>
- <TEXT> "Yes" </TEXT>
- <TEXT> "No" </TEXT>
- <TEXT> "Cancel" </TEXT>
- </BUTTONS>
- </ALERT_RESOURCE>
-
- <ALERT_RESOURCE RESOURCE_ID="1302">
- <ALERT_TYPE> INFORMATION_ALERT </ALERT_TYPE>
- <HELP_ID> 0 </HELP_ID>
- <DEFAULT_BUTTON> 0 </DEFAULT_BUTTON>
- <TITLE> "AAAAAAAAAABBBBBBBBBBCCCCC" </TITLE>
- <MESSAGE> "^1" </MESSAGE>
- <BUTTONS>
- <TEXT> "Yes" </TEXT>
- <TEXT> "No" </TEXT>
- <TEXT> "Cancel" </TEXT>
- </BUTTONS>
- </ALERT_RESOURCE>
-
- <ALERT_RESOURCE RESOURCE_ID="1303">
- <ALERT_TYPE> CONFIRMATION_ALERT </ALERT_TYPE>
- <HELP_ID> 0 </HELP_ID>
- <DEFAULT_BUTTON> 0 </DEFAULT_BUTTON>
- <TITLE> "AAAAAAAAAABBBBBBBBBBCCCCC" </TITLE>
- <MESSAGE> "^1" </MESSAGE>
- <BUTTONS>
- <TEXT> "Yes" </TEXT>
- <TEXT> "No" </TEXT>
- <TEXT> "Cancel" </TEXT>
- </BUTTONS>
- </ALERT_RESOURCE>
-
- <APP_ICON_BITMAP_RESOURCE RESOURCE_ID="1000" COMMENT="AppIcon large">
- <BITMAPS>
- <BITMAP COMMENT="AppIcon large">
- <BITMAP_DENSITY> 144 </BITMAP_DENSITY>
- <WIDTH> 50 </WIDTH>
- <HEIGHT> 44 </HEIGHT>
- <BIT_DEPTH> 8 </BIT_DEPTH>
- <BITMAP_COMPRESSION> BEST </BITMAP_COMPRESSION>
- <HAS_TRANSPARENCY> TRUE </HAS_TRANSPARENCY>
- <TRANSPARENT_COLOR>
- <INDEX> 0xC0 </INDEX>
- </TRANSPARENT_COLOR>
- <HAS_COLOR_TABLE> FALSE </HAS_COLOR_TABLE>
- <BITMAP_FILE> "./Icons/AppIcon_Large-X2-8.bmp" </BITMAP_FILE>
- </BITMAP>
- </BITMAPS>
- </APP_ICON_BITMAP_RESOURCE>
-
- <APP_ICON_BITMAP_RESOURCE RESOURCE_ID="1001" COMMENT="AppIcon small">
- <BITMAPS>
- <BITMAP COMMENT="AppIcon small">
- <BITMAP_DENSITY> 144 </BITMAP_DENSITY>
- <WIDTH> 30 </WIDTH>
- <HEIGHT> 18 </HEIGHT>
- <BIT_DEPTH> 8 </BIT_DEPTH>
- <BITMAP_COMPRESSION> BEST </BITMAP_COMPRESSION>
- <HAS_TRANSPARENCY> TRUE </HAS_TRANSPARENCY>
- <TRANSPARENT_COLOR>
- <INDEX> 0xC0 </INDEX>
- </TRANSPARENT_COLOR>
- <HAS_COLOR_TABLE> FALSE </HAS_COLOR_TABLE>
- <BITMAP_FILE> "./Icons/AppIcon_Small-X2-8.bmp" </BITMAP_FILE>
- </BITMAP>
- </BITMAPS>
- </APP_ICON_BITMAP_RESOURCE>
-
- <APP_ICON_NAME_RESOURCE RESOURCE_ID="1000">
- <TEXT> "Minimal App" </TEXT>
- </APP_ICON_NAME_RESOURCE>
-
- <MENU_BAR_RESOURCE RESOURCE_ID="1000" COMMENT="Single Menu">
- <VISIBLE> TRUE </VISIBLE>
- <MENUS>
- <MENU>
- <TITLE> "AAA " </TITLE>
- <HIDDEN> FALSE </HIDDEN>
- <BOUNDS>
- <LEFT> 0 </LEFT>
- <TOP> 0 </TOP>
- <WIDTH> 0 </WIDTH>
- <HEIGHT> 0 </HEIGHT>
- </BOUNDS>
- <TITLE_BOUNDS>
- <LEFT> 0 </LEFT>
- <TOP> 0 </TOP>
- <WIDTH> 0 </WIDTH>
- <HEIGHT> 0 </HEIGHT>
- </TITLE_BOUNDS>
- <MENU_ITEMS>
- <MENU_ITEM>
- <ID> 9000 </ID>
- <TITLE> "A" </TITLE>
- <COMMAND> "" </COMMAND>
- <HIDDEN> FALSE </HIDDEN>
- </MENU_ITEM>
- </MENU_ITEMS>
- </MENU>
- </MENUS>
- </MENU_BAR_RESOURCE>
-
- <MENU_BAR_RESOURCE RESOURCE_ID="2000" COMMENT="Double Menu">
- <VISIBLE> TRUE </VISIBLE>
- <MENUS>
- <MENU>
- <TITLE> "AAA " </TITLE>
- <HIDDEN> FALSE </HIDDEN>
- <BOUNDS>
- <LEFT> 0 </LEFT>
- <TOP> 0 </TOP>
- <WIDTH> 0 </WIDTH>
- <HEIGHT> 0 </HEIGHT>
- </BOUNDS>
- <TITLE_BOUNDS>
- <LEFT> 0 </LEFT>
- <TOP> 0 </TOP>
- <WIDTH> 0 </WIDTH>
- <HEIGHT> 0 </HEIGHT>
- </TITLE_BOUNDS>
- <MENU_ITEMS>
- <MENU_ITEM>
- <ID> 9000 </ID>
- <TITLE> "A" </TITLE>
- <COMMAND> "" </COMMAND>
- <HIDDEN> FALSE </HIDDEN>
- </MENU_ITEM>
- </MENU_ITEMS>
- </MENU>
- <MENU>
- <TITLE> "AAA " </TITLE>
- <HIDDEN> FALSE </HIDDEN>
- <BOUNDS>
- <LEFT> 0 </LEFT>
- <TOP> 0 </TOP>
- <WIDTH> 0 </WIDTH>
- <HEIGHT> 0 </HEIGHT>
- </BOUNDS>
- <TITLE_BOUNDS>
- <LEFT> 0 </LEFT>
- <TOP> 0 </TOP>
- <WIDTH> 0 </WIDTH>
- <HEIGHT> 0 </HEIGHT>
- </TITLE_BOUNDS>
- <MENU_ITEMS>
- <MENU_ITEM>
- <ID> 9001 </ID>
- <TITLE> "B" </TITLE>
- <COMMAND> "" </COMMAND>
- <HIDDEN> FALSE </HIDDEN>
- </MENU_ITEM>
- </MENU_ITEMS>
- </MENU>
- </MENUS>
- </MENU_BAR_RESOURCE>
-
- <MENU_BAR_RESOURCE RESOURCE_ID="3000" COMMENT="Triple Menu">
- <VISIBLE> TRUE </VISIBLE>
- <MENUS>
- <MENU>
- <TITLE> "AAA " </TITLE>
- <HIDDEN> FALSE </HIDDEN>
- <BOUNDS>
- <LEFT> 0 </LEFT>
- <TOP> 0 </TOP>
- <WIDTH> 0 </WIDTH>
- <HEIGHT> 0 </HEIGHT>
- </BOUNDS>
- <TITLE_BOUNDS>
- <LEFT> 0 </LEFT>
- <TOP> 0 </TOP>
- <WIDTH> 0 </WIDTH>
- <HEIGHT> 0 </HEIGHT>
- </TITLE_BOUNDS>
- <MENU_ITEMS>
- <MENU_ITEM>
- <ID> 9000 </ID>
- <TITLE> "A" </TITLE>
- <COMMAND> "" </COMMAND>
- <HIDDEN> FALSE </HIDDEN>
- </MENU_ITEM>
- </MENU_ITEMS>
- </MENU>
- <MENU>
- <TITLE> "AAA " </TITLE>
- <HIDDEN> FALSE </HIDDEN>
- <BOUNDS>
- <LEFT> 0 </LEFT>
- <TOP> 0 </TOP>
- <WIDTH> 0 </WIDTH>
- <HEIGHT> 0 </HEIGHT>
- </BOUNDS>
- <TITLE_BOUNDS>
- <LEFT> 0 </LEFT>
- <TOP> 0 </TOP>
- <WIDTH> 0 </WIDTH>
- <HEIGHT> 0 </HEIGHT>
- </TITLE_BOUNDS>
- <MENU_ITEMS>
- <MENU_ITEM>
- <ID> 9001 </ID>
- <TITLE> "B" </TITLE>
- <COMMAND> "" </COMMAND>
- <HIDDEN> FALSE </HIDDEN>
- </MENU_ITEM>
- </MENU_ITEMS>
- </MENU>
- <MENU>
- <TITLE> "AAA " </TITLE>
- <HIDDEN> FALSE </HIDDEN>
- <BOUNDS>
- <LEFT> 0 </LEFT>
- <TOP> 0 </TOP>
- <WIDTH> 0 </WIDTH>
- <HEIGHT> 0 </HEIGHT>
- </BOUNDS>
- <TITLE_BOUNDS>
- <LEFT> 0 </LEFT>
- <TOP> 0 </TOP>
- <WIDTH> 0 </WIDTH>
- <HEIGHT> 0 </HEIGHT>
- </TITLE_BOUNDS>
- <MENU_ITEMS>
- <MENU_ITEM>
- <ID> 9002 </ID>
- <TITLE> "C" </TITLE>
- <COMMAND> "" </COMMAND>
- <HIDDEN> FALSE </HIDDEN>
- </MENU_ITEM>
- </MENU_ITEMS>
- </MENU>
- </MENUS>
- </MENU_BAR_RESOURCE>
-
- <MENU_BAR_RESOURCE RESOURCE_ID="4000" COMMENT="Quadrupal Menu">
- <VISIBLE> TRUE </VISIBLE>
- <MENUS>
- <MENU>
- <TITLE> "AAA " </TITLE>
- <HIDDEN> FALSE </HIDDEN>
- <BOUNDS>
- <LEFT> 0 </LEFT>
- <TOP> 0 </TOP>
- <WIDTH> 0 </WIDTH>
- <HEIGHT> 0 </HEIGHT>
- </BOUNDS>
- <TITLE_BOUNDS>
- <LEFT> 0 </LEFT>
- <TOP> 0 </TOP>
- <WIDTH> 0 </WIDTH>
- <HEIGHT> 0 </HEIGHT>
- </TITLE_BOUNDS>
- <MENU_ITEMS>
- <MENU_ITEM>
- <ID> 9000 </ID>
- <TITLE> "A" </TITLE>
- <COMMAND> "" </COMMAND>
- <HIDDEN> FALSE </HIDDEN>
- </MENU_ITEM>
- </MENU_ITEMS>
- </MENU>
- <MENU>
- <TITLE> "AAA " </TITLE>
- <HIDDEN> FALSE </HIDDEN>
- <BOUNDS>
- <LEFT> 0 </LEFT>
- <TOP> 0 </TOP>
- <WIDTH> 0 </WIDTH>
- <HEIGHT> 0 </HEIGHT>
- </BOUNDS>
- <TITLE_BOUNDS>
- <LEFT> 0 </LEFT>
- <TOP> 0 </TOP>
- <WIDTH> 0 </WIDTH>
- <HEIGHT> 0 </HEIGHT>
- </TITLE_BOUNDS>
- <MENU_ITEMS>
- <MENU_ITEM>
- <ID> 9001 </ID>
- <TITLE> "B" </TITLE>
- <COMMAND> "" </COMMAND>
- <HIDDEN> FALSE </HIDDEN>
- </MENU_ITEM>
- </MENU_ITEMS>
- </MENU>
- <MENU>
- <TITLE> "AAA " </TITLE>
- <HIDDEN> FALSE </HIDDEN>
- <BOUNDS>
- <LEFT> 0 </LEFT>
- <TOP> 0 </TOP>
- <WIDTH> 0 </WIDTH>
- <HEIGHT> 0 </HEIGHT>
- </BOUNDS>
- <TITLE_BOUNDS>
- <LEFT> 0 </LEFT>
- <TOP> 0 </TOP>
- <WIDTH> 0 </WIDTH>
- <HEIGHT> 0 </HEIGHT>
- </TITLE_BOUNDS>
- <MENU_ITEMS>
- <MENU_ITEM>
- <ID> 9002 </ID>
- <TITLE> "C" </TITLE>
- <COMMAND> "" </COMMAND>
- <HIDDEN> FALSE </HIDDEN>
- </MENU_ITEM>
- </MENU_ITEMS>
- </MENU>
- <MENU>
- <TITLE> "AAA " </TITLE>
- <HIDDEN> FALSE </HIDDEN>
- <BOUNDS>
- <LEFT> 0 </LEFT>
- <TOP> 0 </TOP>
- <WIDTH> 0 </WIDTH>
- <HEIGHT> 0 </HEIGHT>
- </BOUNDS>
- <TITLE_BOUNDS>
- <LEFT> 0 </LEFT>
- <TOP> 0 </TOP>
- <WIDTH> 0 </WIDTH>
- <HEIGHT> 0 </HEIGHT>
- </TITLE_BOUNDS>
- <MENU_ITEMS>
- <MENU_ITEM>
- <ID> 9003 </ID>
- <TITLE> "D" </TITLE>
- <COMMAND> "" </COMMAND>
- <HIDDEN> FALSE </HIDDEN>
- </MENU_ITEM>
- </MENU_ITEMS>
- </MENU>
- </MENUS>
- </MENU_BAR_RESOURCE>
-
-</PALMOS_RESOURCE_FILE>
}
};
-#if defined(__WXPALMOS__)
- #include "wx/palmos/pen.h"
-#elif defined(__WXMSW__)
+#if defined(__WXMSW__)
#include "wx/msw/pen.h"
#elif defined(__WXMOTIF__) || defined(__WXX11__)
#include "wx/x11/pen.h"
*/
#ifdef __MWERKS__
# include <stddef.h>
-
-# if !defined(__WXMAC__) && !defined(__WINDOWS__) && !defined(WIN32) && !defined(_WIN32_WCE)
-# define __PALMOS__ 0x05000000
-# endif
#endif
#ifdef __WXMAC_XCODE__
# endif
#endif
-#if defined(__PALMOS__)
-# if __PALMOS__ == 0x06000000
-# define __WXPALMOS6__ 1
-# endif
-# if __PALMOS__ == 0x05000000
-# define __WXPALMOS5__ 1
-# endif
-# ifndef __WXPALMOS__
-# define __WXPALMOS__ 1
-# endif
-# ifdef __WXMSW__
-# undef __WXMSW__
-# endif
-# ifdef __WINDOWS__
-# undef __WINDOWS__
-# endif
-# ifdef __WIN32__
-# undef __WIN32__
-# endif
-# ifdef WIN32
-# undef WIN32
-# endif
-# ifdef _WIN32
-# undef _WIN32
-# endif
-#endif
-
#if defined(_WIN64)
# ifndef _WIN32
/*
# endif
# define wxSIZE_T_IS_UINT
-/*
- OS: Palm OS
- */
-#elif defined(__PALMOS__)
-# ifdef __WIN32__
-# error "__WIN32__ should not be defined for PalmOS"
-# endif
-# ifdef __WINDOWS__
-# error "__WINDOWS__ should not be defined for PalmOS"
-# endif
-# ifdef __WXMSW__
-# error "__WXMSW__ should not be defined for PalmOS"
-# endif
-
/*
OS: Otherwise it must be Windows
*/
!defined(__WXPM__) && \
!defined(__WXMOTIF__) && \
!defined(__WXGTK__) && \
- !defined(__WXX11__) && \
- !defined(__WXPALMOS__)
+ !defined(__WXX11__)
# include "wx/msw/gccpriv.h"
#else
# undef wxCHECK_W32API_VERSION
# define wxUSE_WXDIB 1
#endif
-#if defined (__WXPALMOS__)
-#include "wx/palmos/missing.h"
-#endif /* __WXPALMOS__ */
-
-#if !defined (__WXPALMOS5__)
-#define POSSEC_APPBASE
-#define POSSEC_ARCHIVE
-#define POSSEC_CLNTDATA
-#define POSSEC_CMDLINE
-#define POSSEC_CONFIG
-#define POSSEC_DATETIME
-#define POSSEC_DATETIME2
-#define POSSEC_DATSTRM
-#define POSSEC_DIRCMN
-#define POSSEC_DYNARRAY
-#define POSSEC_DYNLIB
-#define POSSEC_DYNLOAD
-#define POSSEC_ENCCONV
-#define POSSEC_EXTENDED
-#define POSSEC_FFILE
-#define POSSEC_FILE
-#define POSSEC_FILECONF
-#define POSSEC_FILEFN
-#endif /* __WXPALMOS5__ */
-
/*
Optionally supported C++ features.
*/
// 1<<13 and 1<<14 available for other Unix flavours
wxOS_DOS = 1 << 15, // Microsoft DOS
- wxOS_OS2 = 1 << 16, // OS/2
-
- wxOS_PALM_OS = 1 << 17, // Pure Palm OS
- wxOS_PALM_LINUX = 1 << 18, // Palm over linux
- wxOS_PALM = wxOS_PALM_OS | wxOS_PALM_LINUX
+ wxOS_OS2 = 1 << 16 // OS/2
};
// list of wxWidgets ports - some of them can be used with more than
wxPORT_OSX = wxPORT_MAC, // wxOSX, using Cocoa, Carbon or iPhone API
wxPORT_COCOA = 1 << 8, // wxCocoa, using Cocoa NextStep/Mac API
wxPORT_WINCE = 1 << 9, // wxWinCE, toolkit is WinCE SDK API
- wxPORT_PALMOS = 1 << 10, // wxPalmOS, toolkit is PalmOS API
- wxPORT_DFB = 1 << 11 // wxDFB, using wxUniversal
+ wxPORT_DFB = 1 << 10 // wxDFB, using wxUniversal
};
// architecture of the operating system
#define wxWinCE wxOS_WINDOWS_CE
#define wxWIN32S wxOS_WINDOWS_9X
- #define wxPalmOS wxPORT_PALMOS
#define wxOS2 wxPORT_OS2
#define wxMGL wxPORT_MGL
#define wxCocoa wxPORT_MAC
#define wxPD_CAN_SKIP 0x0080
-#ifdef __WXPALMOS__
- #include "wx/palmos/progdlg.h"
+#include "wx/generic/progdlgg.h"
+
+#if defined(__WXMSW__) && wxUSE_THREADS && !defined(__WXUNIVERSAL__)
+ #include "wx/msw/progdlg.h"
#else
- #include "wx/generic/progdlgg.h"
-
- #if defined(__WXMSW__) && wxUSE_THREADS && !defined(__WXUNIVERSAL__)
- #include "wx/msw/progdlg.h"
- #else
- class WXDLLIMPEXP_CORE wxProgressDialog
- : public wxGenericProgressDialog
- {
- public:
- wxProgressDialog( const wxString& title, const wxString& message,
- int maximum = 100,
- wxWindow *parent = NULL,
- int style = wxPD_APP_MODAL | wxPD_AUTO_HIDE )
- : wxGenericProgressDialog( title, message, maximum,
- parent, style )
- { }
-
- private:
- wxDECLARE_DYNAMIC_CLASS_NO_COPY( wxProgressDialog );
- };
- #endif // defined(__WXMSW__) && wxUSE_THREADS
-#endif // __WXPALMOS__
+ class WXDLLIMPEXP_CORE wxProgressDialog
+ : public wxGenericProgressDialog
+ {
+ public:
+ wxProgressDialog( const wxString& title, const wxString& message,
+ int maximum = 100,
+ wxWindow *parent = NULL,
+ int style = wxPD_APP_MODAL | wxPD_AUTO_HIDE )
+ : wxGenericProgressDialog( title, message, maximum,
+ parent, style )
+ { }
+
+ private:
+ wxDECLARE_DYNAMIC_CLASS_NO_COPY( wxProgressDialog );
+ };
+#endif // defined(__WXMSW__) && wxUSE_THREADS
#endif // wxUSE_PROGRESSDLG
#include "wx/cocoa/radiobox.h"
#elif defined(__WXPM__)
#include "wx/os2/radiobox.h"
-#elif defined(__WXPALMOS__)
- #include "wx/palmos/radiobox.h"
#endif
#endif // wxUSE_RADIOBOX
#include "wx/cocoa/radiobut.h"
#elif defined(__WXPM__)
#include "wx/os2/radiobut.h"
-#elif defined(__WXPALMOS__)
- #include "wx/palmos/radiobut.h"
#endif
#endif // wxUSE_RADIOBTN
// some ports implement a generic Combine() function while others only
// implement individual wxRegion operations, factor out the common code for the
// ports with Combine() in this class
-#if defined(__WXPALMOS__) || \
- defined(__WXMSW__) || \
+#if defined(__WXMSW__) || \
( defined(__WXMAC__) && wxOSX_USE_COCOA_OR_CARBON ) || \
defined(__WXPM__)
#endif // ports with wxRegion::Combine()
-#if defined(__WXPALMOS__)
- #include "wx/palmos/region.h"
-#elif defined(__WXMSW__)
+#if defined(__WXMSW__)
#include "wx/msw/region.h"
#elif defined(__WXGTK20__)
#include "wx/gtk/region.h"
#include "wx/cocoa/slider.h"
#elif defined(__WXPM__)
#include "wx/os2/slider.h"
-#elif defined(__WXPALMOS__)
- #include "wx/palmos/slider.h"
#endif
#endif // wxUSE_SLIDER
#include "wx/cocoa/stattext.h"
#elif defined(__WXPM__)
#include "wx/os2/stattext.h"
-#elif defined(__WXPALMOS__)
- #include "wx/palmos/stattext.h"
#endif
#endif // !wxNO_PORT_STATTEXT_INCLUDE
#if defined(__WXUNIVERSAL__)
#define wxStatusBarUniv wxStatusBar
#include "wx/univ/statusbr.h"
-#elif defined(__WXPALMOS__)
- #define wxStatusBarPalm wxStatusBar
- #include "wx/palmos/statusbr.h"
#elif defined(__WIN32__) && wxUSE_NATIVE_STATUSBAR
#include "wx/msw/statusbar.h"
#elif defined(__WXMAC__)
#elif defined(__UNIX__)
#include "wx/unix/stdpaths.h"
#define wxHAS_NATIVE_STDPATHS
- #elif defined(__PALMOS__)
- #include "wx/palmos/stdpaths.h"
- #define wxHAS_NATIVE_STDPATHS
#endif
#endif
# undef __BSEXCPT__
#endif
-#ifndef __WXPALMOS5__
#include <stdlib.h>
-#endif // ! __WXPALMOS5__
class WXDLLIMPEXP_FWD_BASE wxString;
#include "wx/defs.h" // everybody should include this
-#ifndef __WXPALMOS5__
#if defined(__WXMAC__) || defined(__VISAGECPP__)
#include <ctype.h>
#endif
#ifdef HAVE_STRCASECMP_IN_STRINGS_H
#include <strings.h> // for strcasecmp()
#endif // HAVE_STRCASECMP_IN_STRINGS_H
-#endif // ! __WXPALMOS5__
#include "wx/wxcrtbase.h" // for wxChar, wxStrlen() etc.
#include "wx/strvararg.h"
return stricmp(psz1, psz2);
#elif defined(__WXPM__)
return stricmp(psz1, psz2);
-#elif defined(__WXPALMOS__) || \
- defined(HAVE_STRCASECMP_IN_STRING_H) || \
+#elif defined(HAVE_STRCASECMP_IN_STRING_H) || \
defined(HAVE_STRCASECMP_IN_STRINGS_H) || \
defined(__GNUWIN32__)
return strcasecmp(psz1, psz2);
// now include the actual class declaration
// ----------------------------------------------------------------------------
-#if defined(__WXPALMOS__)
- #include "wx/palmos/taskbar.h"
-#elif defined(__WXMSW__)
+#if defined(__WXMSW__)
#include "wx/msw/taskbar.h"
#elif defined(__WXGTK20__)
#include "wx/gtk/taskbar.h"
#include "wx/cocoa/textctrl.h"
#elif defined(__WXPM__)
#include "wx/os2/textctrl.h"
-#elif defined(__WXPALMOS__)
- #include "wx/palmos/textctrl.h"
#endif
// ----------------------------------------------------------------------------
#elif defined(__WXMAC__)
#include "wx/osx/tglbtn.h"
#define wxHAS_BITMAPTOGGLEBUTTON
-#elif defined(__WXPALMOS__)
- #include "wx/palmos/tglbtn.h"
#elif defined(__WXPM__)
#include "wx/os2/tglbtn.h"
#endif
#if defined(__WXUNIVERSAL__)
#include "wx/univ/toolbar.h"
- #elif defined(__WXPALMOS__)
- #include "wx/palmos/toolbar.h"
#elif defined(__WXMSW__) && (!defined(_WIN32_WCE) || (_WIN32_WCE >= 400 && !defined(__POCKETPC__) && !defined(__SMARTPHONE__)))
#include "wx/msw/toolbar.h"
#elif defined(__WXWINCE__)
// include the real class declaration
-#if defined(__WXPALMOS__)
- #include "wx/palmos/toplevel.h"
- #define wxTopLevelWindowNative wxTopLevelWindowPalm
-#elif defined(__WXMSW__)
+#if defined(__WXMSW__)
#include "wx/msw/toplevel.h"
#define wxTopLevelWindowNative wxTopLevelWindowMSW
#elif defined(__WXGTK20__)
#if defined(__WXUNIVERSAL__)
#include "wx/generic/treectlg.h"
-#elif defined(__WXPALMOS__)
- #include "wx/generic/treectlg.h"
#elif defined(__WXMSW__)
#include "wx/msw/treectrl.h"
#elif defined(__WXMOTIF__)
// ----------------------------------------------------------------------------
// include the declaration of the platform-specific class
-#if defined(__WXPALMOS__)
- #ifdef __WXUNIVERSAL__
- #define wxWindowNative wxWindowPalm
- #else // !wxUniv
- #define wxWindowPalm wxWindow
- #endif // wxUniv/!wxUniv
- #include "wx/palmos/window.h"
-#elif defined(__WXMSW__)
+#if defined(__WXMSW__)
#ifdef __WXUNIVERSAL__
#define wxWindowNative wxWindowMSW
#else // !wxUniv
*/
-#if !defined(__WXPALMOS5__)
#include <stdio.h>
#include <string.h>
#include <ctype.h>
-#if defined(__WXPALMOS__)
- #include <wchar.h>
-#else
- #include <wctype.h>
-#endif
+#include <wctype.h>
#include <time.h>
-#endif
#if defined(__WINDOWS__) && !defined(__WXWINCE__)
#include <io.h>
#define wxCRT_StrstrW wcsstr
/* these functions are not defined under CE, at least in VC8 CRT */
-#if !defined(__WXWINCE__) && !defined(__WXPALMOS__)
+#if !defined(__WXWINCE__)
#define wxCRT_StrcollA strcoll
#define wxCRT_StrxfrmA strxfrm
defined(__EMX__) || defined(__DJGPP__)
#define wxCRT_StricmpA stricmp
#define wxCRT_StrnicmpA strnicmp
-#elif defined(__WXPALMOS__)
- /* FIXME: There is no equivalent to strnicmp in the Palm OS API. This
- * quick hack should do until one can be written.
- */
- #define wxCRT_StricmpA StrCaselessCompare
- #define wxCRT_StrnicmpA StrNCaselessCompare
#elif defined(__SYMANTEC__) || defined(__VISUALC__) || \
(defined(__MWERKS__) && defined(__INTEL__))
#define wxCRT_StricmpA _stricmp
stdio.h
------------------------------------------------------------------------- */
-#if defined(__UNIX__) || defined(__WXMAC__) || defined(__WXPALMOS__)
+#if defined(__UNIX__) || defined(__WXMAC__)
#define wxMBFILES 1
#else
#define wxMBFILES 0
#if defined(__MWERKS__) && defined(__MSL__)
#define wxNEED_WX_MBSTOWCS
#endif
-#if defined(__WXPALMOS__)
- #define wxNEED_WX_MBSTOWCS
-#endif
#ifdef __DARWIN__
#if !defined(__WXOSX_IPHONE__) && MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_2
#define wxCRT_StrftimeW _xpg5_wcsftime
#else
/*
- Assume it's always available under non-Unix systems with the
- exception of Palm OS, this does seem to be the case for now. And
- under Unix we trust configure to detect it (except for SGI special
- case above).
+ Assume it's always available under non-Unix systems as this does seem
+ to be the case for now. And under Unix we trust configure to detect it
+ (except for SGI special case above).
*/
- #if defined(HAVE_WCSFTIME) || \
- !(defined(__UNIX__) || defined(__WXPALMOS__))
+ #if defined(HAVE_WCSFTIME) || !defined(__UNIX__)
#define wxCRT_StrftimeW wcsftime
- #endif /* ! __WXPALMOS__ */
+ #endif
#endif
#ifndef wxCRT_StrftimeW
#include "wx/msw/missing.h"
#endif
-// include all PalmOS headers at once
-#ifdef __WXPALMOS__
-# include <PalmOS.h>
-#endif
-
// include <os2.h>
#ifdef __OS2__
# include "wx/os2/private.h"
protected:
virtual void DoCreateToggleButton(wxObject *control);
-#if !defined(__WXUNIVERSAL__) && !defined(__WXMOTIF__) && !defined(__WXPALMOS__) && !defined(__WXPM__) && !(defined(__WXGTK__) && !defined(__WXGTK20__))
+#if !defined(__WXUNIVERSAL__) && !defined(__WXMOTIF__) && !defined(__WXPM__) && !(defined(__WXGTK__) && !defined(__WXGTK20__))
virtual void DoCreateBitmapToggleButton(wxObject *control);
#endif
};
/**
Under Windows, determines whether the Windows colour dialog will
- display the full dialog with custom colour selection controls. Under
- PalmOS, determines whether colour dialog will display full rgb colour
- picker or only available palette indexer. Has no meaning under other
- platforms.
+ display the full dialog with custom colour selection controls.
+
+ Has no meaning under other platforms.
The default value is @true.
*/
is a relatively big control, wxDatePickerCtrl is implemented as a small
window showing the currently selected date. The control can be edited using
the keyboard, and can also display a popup window for more user-friendly
- date selection, depending on the styles used and the platform, except
- PalmOS where date is selected using native dialog.
+ date selection, depending on the styles used and the platform.
It is only available if @c wxUSE_DATEPICKCTRL is set to 1.
/* Old names for compatibility */
#define wxRA_HORIZONTAL wxHORIZONTAL
#define wxRA_VERTICAL wxVERTICAL
-#define wxRA_USE_CHECKBOX 0x0010 /* alternative native subcontrols (wxPalmOS) */
/*
* wxRadioButton style flag
*/
#define wxRB_GROUP 0x0004
#define wxRB_SINGLE 0x0008
-#define wxRB_USE_CHECKBOX 0x0010 /* alternative native control (wxPalmOS) */
/*
* wxScrollBar flags
and have a special meaning since entries using these IDs will be taken out
of the normal menus under MacOS X and will be inserted into the system menu
(following the appropriate MacOS X interface guideline).
- On PalmOS @e wxID_EXIT is disabled according to Palm OS Companion guidelines.
Menu items may be either @e normal items, @e check items or @e radio items.
Normal items don't have any special properties while the check items have a
wxPORT_MAC = 1 << 7, //!< wxMac, using Carbon or Classic Mac API
wxPORT_COCOA = 1 << 8, //!< wxCocoa, using Cocoa NextStep/Mac API
wxPORT_WINCE = 1 << 9, //!< wxWinCE, toolkit is WinCE SDK API
- wxPORT_PALMOS = 1 << 10, //!< wxPalmOS, toolkit is PalmOS API
- wxPORT_DFB = 1 << 11 //!< wxDFB, using wxUniversal
+ wxPORT_DFB = 1 << 10 //!< wxDFB, using wxUniversal
};
@style{wxRA_SPECIFY_COLS}
The major dimension parameter refers to the maximum number of
columns.
- @style{wxRA_USE_CHECKBOX}
- Use of the checkbox controls instead of radio buttons (currently
- supported only on PalmOS)
@endStyleTable
@beginEventEmissionTable{wxCommandEvent}
siblings trigger a hang bug in Windows (only). If this happens, add
this style to mark the button as not belonging to a group, and
implement the mutually-exclusive group behaviour yourself.
- @style{wxRB_USE_CHECKBOX}
- Use a checkbox button instead of radio button (currently supported
- only on PalmOS).
@endStyleTable
@beginEventEmissionTable{wxCommandEvent}
Set the delay after which the tooltip disappears or how long a tooltip
remains visible.
- @note May not be supported on all platforms (eg. wxCocoa, GTK, Palmos).
+ @note May not be supported on all platforms (eg. wxCocoa, GTK).
*/
static void SetAutoPop(long msecs);
/**
Set the delay between subsequent tooltips to appear.
- @note May not be supported on all platforms (eg. wxCocoa, GTK, Palmos).
+ @note May not be supported on all platforms (eg. wxCocoa, GTK).
*/
static void SetReshow(long msecs);
/**
Returns the platform-specific handle of the physical window.
Cast it to an appropriate handle, such as @b HWND for Windows,
- @b Widget for Motif, @b GtkWidget for GTK or @b WinHandle for PalmOS.
+ @b Widget for Motif or @b GtkWidget for GTK.
@beginWxPerlOnly
This method will return an integer in wxPerl.
"Please send this report to the program maintainer, thank you!\n"
msgstr ""
-#: ../src/palmos/utils.cpp:265 ../src/richtext/richtextstyledlg.cpp:205
+#: ../src/richtext/richtextstyledlg.cpp:205
#: ../src/richtext/richtextstyledlg.cpp:217
msgid " "
msgstr ""
msgid "Choose a file"
msgstr ""
-#: ../src/palmos/colordlg.cpp:73 ../src/generic/colrdlgg.cpp:145
+#: ../src/generic/colrdlgg.cpp:145
#: ../src/gtk/colordlg.cpp:60
msgid "Choose colour"
msgstr ""
#include <typeinfo>
#endif
-#ifndef __WXPALMOS5__
#if !defined(__WXMSW__) || defined(__WXMICROWIN__)
#include <signal.h> // for SIGTRAP used by wxTrap()
#endif //Win/Unix
#include <locale.h>
-#endif // ! __WXPALMOS5__
#if wxUSE_FONTMAP
#include "wx/fontmap.h"
wxString wxAppConsoleBase::GetAppName() const
{
wxString name = m_appName;
-#ifndef __WXPALMOS__
if ( name.empty() )
{
if ( argv )
wxFileName::SplitPath(argv[0], NULL, &name, NULL);
}
}
-#endif // !__WXPALMOS__
return name;
}
return new
#if defined(__WXMSW__) && wxUSE_CONFIG_NATIVE
wxRegConfig(wxTheApp->GetAppName(), wxTheApp->GetVendorName());
- #elif defined(__WXPALMOS__) && wxUSE_CONFIG_NATIVE
- wxPrefConfig(wxTheApp->GetAppName());
#else // either we're under Unix or wish to use files even under Windows
wxFileConfig(wxTheApp->GetAppName());
#endif
#include "wx/dfb/dcscreen.h"
#endif
-#ifdef __WXPALMOS__
- #include "wx/palmos/dcclient.h"
- #include "wx/palmos/dcmemory.h"
- #include "wx/palmos/dcscreen.h"
-#endif
-
//----------------------------------------------------------------------------
// wxDCFactory
//----------------------------------------------------------------------------
char* mktemp( char * path ) { return path ;}
#include <stat.h>
#include <unistd.h>
-#elif defined(__WXPALMOS__)
- #include "wx/palmos/missing.h"
#else
#error "Please specify the header with file functions declarations."
#endif //Win/UNIX
}
// helper of generic implementation of wxCopyFile()
-#if !(defined(__WIN32__) || defined(__OS2__) || defined(__PALMOS__)) && \
- wxUSE_FILE
+#if !(defined(__WIN32__) || defined(__OS2__)) && wxUSE_FILE
static bool
wxDoCopyFile(wxFile& fileIn,
#elif defined(__OS2__)
if ( ::DosCopy(file1.c_str(), file2.c_str(), overwrite ? DCPY_EXISTING : 0) != 0 )
return false;
-#elif defined(__PALMOS__)
- // TODO with http://www.palmos.com/dev/support/docs/protein_books/Memory_Databases_Files/
- return false;
#elif wxUSE_FILE // !Win32
wxStructStat fbuf;
return false;
}
-#if !defined(__WXWINCE__) && !defined(__WXPALMOS__)
+#if !defined(__WXWINCE__)
// Normal system call
if ( wxRename (file1, file2) == 0 )
return true;
int res = wxRemove(file);
#elif defined(__WXMAC__)
int res = unlink(file.fn_str());
-#elif defined(__WXPALMOS__)
- int res = 1;
- // TODO with VFSFileDelete()
#else
int res = unlink(file.fn_str());
#endif
bool wxMkdir(const wxString& dir, int perm)
{
-#if defined(__WXPALMOS__)
- return false;
-#else
#if defined(__WXMAC__) && !defined(__UNIX__)
if ( mkdir(dir.fn_str(), 0) != 0 )
}
return true;
-#endif // PALMOS/!PALMOS
}
bool wxRmdir(const wxString& dir, int WXUNUSED(flags))
{
#if defined(__VMS__)
return false; //to be changed since rmdir exists in VMS7.x
-#elif defined(__WXPALMOS__)
- // TODO with VFSFileRename()
- return false;
#else
#if defined(__OS2__)
if ( ::DosDeleteDir(dir.c_str()) != 0 )
}
return true;
-#endif // PALMOS/!PALMOS
+#endif
}
// does the path exists? (may have or not '/' or '\\' at the end)
return NULL;
if ( buf )
-#ifdef _PACC_VER
- // work around the PalmOS pacc compiler bug
- wxStrcpy(buf, filename.data());
-#else
wxStrcpy(buf, filename);
-#endif
else
buf = MYcopystring(filename);
wxChar *wxDoGetCwd(wxChar *buf, int sz)
{
-#if defined(__WXPALMOS__)
- // TODO
- if(buf && sz>0) buf[0] = wxT('\0');
- return buf;
-#elif defined(__WXWINCE__)
+#if defined(__WXWINCE__)
// TODO
if(buf && sz>0) buf[0] = wxT('\0');
return buf;
/* static */
bool wxFileName::FileExists( const wxString &filePath )
{
-#if defined(__WXPALMOS__)
- return false;
-#elif defined(__WIN32__) && !defined(__WXMICROWIN__)
+#if defined(__WIN32__) && !defined(__WXMICROWIN__)
// we must use GetFileAttributes() instead of the ANSI C functions because
// it can cope with network (UNC) paths unlike them
DWORD ret = ::GetFileAttributes(filePath.t_str());
strPath << wxT('.');
#endif
-#if defined(__WXPALMOS__)
- return false;
-#elif defined(__WIN32__) && !defined(__WXMICROWIN__)
+#if defined(__WIN32__) && !defined(__WXMICROWIN__)
// stat() can't cope with network paths
DWORD ret = ::GetFileAttributes(strPath.t_str());
}
#else // !HAVE_MKTEMP (includes __DOS__)
// generate the unique file name ourselves
- #if !defined(__DOS__) && !defined(__PALMOS__) && (!defined(__MWERKS__) || defined(__DARWIN__) )
+ #if !defined(__DOS__) && (!defined(__MWERKS__) || defined(__DARWIN__) )
path << (unsigned int)getpid();
#endif
if (!wxFileExists(filename))
return wxInvalidSize;
-#if defined(__WXPALMOS__)
- // TODO
- return wxInvalidSize;
-#elif defined(__WIN32__)
+#if defined(__WIN32__)
wxFileHandle f(filename, wxFileHandle::ReadAttr);
if (!f.IsOk())
return wxInvalidSize;
#include <stdlib.h>
-#ifndef __WXPALMOS5__
#ifndef __WXWINCE__
#include <time.h>
#else
#include "wx/msw/wince/time.h"
#endif
-#endif /* ! __WXPALMOS5__ */
#if defined(__WINDOWS__)
#include "wx/msw/private.h" // includes windows.h
wxT("DOS"),
wxT("OS/2"),
-
- wxT("PalmOS"),
- wxT("PalmOS(Over Linux)"),
};
static const wxChar* const wxPortIdNames[] =
wxT("wxMac"),
wxT("wxCocoa"),
wxT("wxWinCE"),
- wxT("wxPalmOS"),
wxT("wxDFB")
};
#endif
// provide stubs for the systems not implementing these functions
-#if !defined(__WXPALMOS__) && !defined(__WXMSW__)
+#if !defined(__WXMSW__)
wxPowerType wxGetPowerType()
{
int wxSystemOptions::GetOptionInt(const wxString& name)
{
-#ifdef _PACC_VER
- // work around the PalmOS pacc compiler bug
- return wxAtoi (GetOption(name).data());
-#else
return wxAtoi (GetOption(name));
-#endif
}
bool wxSystemOptions::HasOption(const wxString& name)
// - Mac when compiling with CodeWarrior (__WXMAC__)
const wxTextFileType wxTextBuffer::typeDefault =
-#if defined(__WINDOWS__) || defined(__DOS__) || defined(__PALMOS__)
+#if defined(__WINDOWS__) || defined(__DOS__)
wxTextFileType_Dos;
#elif defined(__UNIX__)
wxTextFileType_Unix;
#ifndef WX_GMTOFF_IN_TM
// Define it for some systems which don't (always) use configure but are
// known to have tm_gmtoff field.
- #if defined(__WXPALMOS__) || defined(__DARWIN__)
+ #if defined(__DARWIN__)
#define WX_GMTOFF_IN_TM
#endif
#endif
# undef HAVE_GETTIMEOFDAY
#endif
-#ifndef __WXPALMOS5__
#ifndef __WXWINCE__
#include <time.h>
#else
#include "wx/msw/private.h"
#include "wx/msw/wince/time.h"
#endif
-#endif // __WXPALMOS5__
#if !defined(__WXMAC__) && !defined(__WXWINCE__)
#include <sys/timeb.h>
#endif
-#ifdef __WXPALMOS__
- #include <DateTime.h>
- #include <TimeMgr.h>
- #include <SystemMgr.h>
-#endif
-
#if defined(__MWERKS__) && wxUSE_UNICODE
#include <wtime.h>
#endif
// If possible, use a function which avoids conversions from
// broken-up time structures to milliseconds
-#if defined(__WXPALMOS__)
- DateTimeType thenst;
- thenst.second = 0;
- thenst.minute = 0;
- thenst.hour = 0;
- thenst.day = 1;
- thenst.month = 1;
- thenst.year = 1970;
- thenst.weekDay = 5;
- uint32_t now = TimGetSeconds();
- uint32_t then = TimDateTimeToSeconds (&thenst);
- return SysTimeToMilliSecs(SysTimeInSecs(now - then));
-#elif defined(__WXMSW__)
+#if defined(__WXMSW__)
FILETIME ft;
::GetSystemTimeAsFileTime(&ft);
#include "wx/statusbr.h"
#endif // wxUSE_GUI
-#ifndef __WXPALMOS5__
#ifndef __WXWINCE__
#include <time.h>
#else
#include "wx/msw/wince/time.h"
#endif
-#endif // ! __WXPALMOS5__
#ifdef __WXMAC__
#include "wx/osx/private.h"
#endif
-#ifndef __WXPALMOS5__
#if !defined(__MWERKS__) && !defined(__WXWINCE__)
#include <sys/types.h>
#include <sys/stat.h>
#endif
-#endif // ! __WXPALMOS5__
#if defined(__WXMSW__)
#include "wx/msw/private.h"
extern "C" int vswscanf(const wchar_t *, const wchar_t *, va_list);
#endif
-#ifndef __WXPALMOS5__
#ifndef __WXWINCE__
#include <time.h>
#include <locale.h>
#else
#include "wx/msw/wince/time.h"
#endif
-#endif // !__WXPALMOS5__
#ifndef WX_PRECOMP
#include "wx/string.h"
}
}
-#elif defined(__UNIX__) || defined(__WXPALMOS__)
+#elif defined(__UNIX__)
paths.Add(wxT("/"));
names.Add(wxT("/"));
icon_ids.Add(wxFileIconsTable::computer);
#if wxUSE_FILEDLG
// NOTE : it probably also supports MAC, untested
-#if !defined(__UNIX__) && !defined(__DOS__) && !defined(__WIN32__) && !defined(__OS2__) && !defined(__PALMOS__)
+#if !defined(__UNIX__) && !defined(__DOS__) && !defined(__WIN32__) && !defined(__OS2__)
#error wxGenericFileDialog currently only supports Unix, win32 and DOS
#endif
#include "wx/config.h"
#endif
-#ifndef __WXPALMOS5__
#ifndef __WXWINCE__
#include <sys/types.h>
#include <sys/stat.h>
#if defined(__UNIX__) || defined(__DOS__)
#include <unistd.h>
#endif
-#endif // ! __WXPALMOS5__
#if defined(__WXWINCE__)
#define IsTopMostDir(dir) (dir == wxT("\\") || dir == wxT("/"))
#if wxUSE_IMAGLIST && !defined(wxHAS_NATIVE_IMAGELIST)
-#ifndef __WXPALMOS__
-
#include "wx/imaglist.h"
#ifndef WX_PRECOMP
return true;
}
-#endif // __WXPALMOS__
-
#endif // wxUSE_IMAGLIST
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/accel.cpp
-// Purpose: wxAcceleratorTable
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-// For compilers that support precompilation, includes "wx.h".
-#include "wx/wxprec.h"
-
-#ifdef __BORLANDC__
-#pragma hdrstop
-#endif
-
-#ifndef WX_PRECOMP
- #include "wx/window.h"
-#endif
-
-#include "wx/accel.h"
-
-#if wxUSE_ACCEL
-
-#include "wx/palmos/private.h"
-
-IMPLEMENT_DYNAMIC_CLASS(wxAcceleratorTable, wxObject)
-
-class WXDLLEXPORT wxAcceleratorRefData: public wxObjectRefData
-{
- friend class WXDLLEXPORT wxAcceleratorTable;
-public:
- wxAcceleratorRefData();
- virtual ~wxAcceleratorRefData();
-
- inline HACCEL GetHACCEL() const { return m_hAccel; }
-protected:
- HACCEL m_hAccel;
- bool m_ok;
-
- wxDECLARE_NO_COPY_CLASS(wxAcceleratorRefData);
-};
-
-#define M_ACCELDATA ((wxAcceleratorRefData *)m_refData)
-
-wxAcceleratorRefData::wxAcceleratorRefData()
-{
-}
-
-wxAcceleratorRefData::~wxAcceleratorRefData()
-{
-}
-
-wxAcceleratorTable::wxAcceleratorTable()
-{
-}
-
-wxAcceleratorTable::~wxAcceleratorTable()
-{
-}
-
-wxAcceleratorTable::wxAcceleratorTable(const wxString& resource)
-{
-}
-
-extern int wxCharCodeWXToMSW(int id, bool *isVirtual);
-
-wxAcceleratorTable::wxAcceleratorTable(int n, const wxAcceleratorEntry entries[])
-{
-}
-
-bool wxAcceleratorTable::IsOk() const
-{
- return false;
-}
-
-void wxAcceleratorTable::SetHACCEL(WXHACCEL hAccel)
-{
-}
-
-WXHACCEL wxAcceleratorTable::GetHACCEL() const
-{
- return 0;
-}
-
-bool wxAcceleratorTable::Translate(wxWindow *window, WXMSG *wxmsg) const
-{
- return false;
-}
-
-#endif
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/app.cpp
-// Purpose: wxApp
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/08/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"
-
-#if defined(__BORLANDC__)
- #pragma hdrstop
-#endif
-
-#ifndef WX_PRECOMP
- #include "wx/dynarray.h"
- #include "wx/frame.h"
- #include "wx/app.h"
- #include "wx/utils.h"
- #include "wx/gdicmn.h"
- #include "wx/pen.h"
- #include "wx/brush.h"
- #include "wx/cursor.h"
- #include "wx/icon.h"
- #include "wx/palette.h"
- #include "wx/dc.h"
- #include "wx/dialog.h"
- #include "wx/msgdlg.h"
- #include "wx/intl.h"
- #include "wx/crt.h"
- #include "wx/log.h"
- #include "wx/module.h"
-#endif
-
-#include "wx/apptrait.h"
-#include "wx/filename.h"
-#include "wx/dynlib.h"
-#include "wx/evtloop.h"
-
-#if wxUSE_TOOLTIPS
- #include "wx/tooltip.h"
-#endif // wxUSE_TOOLTIPS
-
-// We don't support OLE
-#undef wxUSE_OLE
-#define wxUSE_OLE 0
-
-#include <string.h>
-#include <ctype.h>
-
-// ---------------------------------------------------------------------------
-// global variables
-// ---------------------------------------------------------------------------
-
-// NB: all "NoRedraw" classes must have the same names as the "normal" classes
-// with NR suffix - wxWindow::MSWCreate() supposes this
-const wxChar *wxCanvasClassName = wxT("wxWindowClass");
-const wxChar *wxCanvasClassNameNR = wxT("wxWindowClassNR");
-const wxChar *wxMDIFrameClassName = wxT("wxMDIFrameClass");
-const wxChar *wxMDIFrameClassNameNoRedraw = wxT("wxMDIFrameClassNR");
-const wxChar *wxMDIChildFrameClassName = wxT("wxMDIChildFrameClass");
-const wxChar *wxMDIChildFrameClassNameNoRedraw = wxT("wxMDIChildFrameClassNR");
-
-// ----------------------------------------------------------------------------
-// private functions
-// ----------------------------------------------------------------------------
-
-// ===========================================================================
-// wxGUIAppTraits implementation
-// ===========================================================================
-
-// private class which we use to pass parameters from BeforeChildWaitLoop() to
-// AfterChildWaitLoop()
-struct ChildWaitLoopData
-{
- ChildWaitLoopData(wxWindowDisabler *wd_, wxWindow *winActive_)
- {
- wd = wd_;
- winActive = winActive_;
- }
-
- wxWindowDisabler *wd;
- wxWindow *winActive;
-};
-
-void *wxGUIAppTraits::BeforeChildWaitLoop()
-{
- return NULL;
-}
-
-void wxGUIAppTraits::AfterChildWaitLoop(void *dataOrig)
-{
-}
-
-#if wxUSE_THREADS
-bool wxGUIAppTraits::DoMessageFromThreadWait()
-{
- return false;
-}
-#endif // wxUSE_THREADS
-
-wxPortId wxGUIAppTraits::GetToolkitVersion(int *majVer, int *minVer) const
-{
- // TODO: how to get PalmOS GUI system version ?
- return wxPORT_PALMOS;
-}
-
-#if wxUSE_TIMER
-wxTimerImpl* wxGUIAppTraits::CreateTimerImpl(wxTimer *timer)
-{
- return new wxPalmOSTimerImpl(timer);
-};
-#endif // wxUSE_TIMER
-
-wxEventLoopBase* wxGUIAppTraits::CreateEventLoop()
-{
- return new wxEventLoop;
-}
-// ===========================================================================
-// wxApp implementation
-// ===========================================================================
-
-int wxApp::m_nCmdShow = 0;
-
-// ---------------------------------------------------------------------------
-// wxWin macros
-// ---------------------------------------------------------------------------
-
-IMPLEMENT_DYNAMIC_CLASS(wxApp, wxEvtHandler)
-
-BEGIN_EVENT_TABLE(wxApp, wxEvtHandler)
- EVT_END_SESSION(wxApp::OnEndSession)
- EVT_QUERY_END_SESSION(wxApp::OnQueryEndSession)
-END_EVENT_TABLE()
-
-// class to ensure that wxAppBase::CleanUp() is called if our Initialize()
-// fails
-class wxCallBaseCleanup
-{
-public:
- wxCallBaseCleanup(wxApp *app) : m_app(app) { }
- ~wxCallBaseCleanup() { if ( m_app ) m_app->wxAppBase::CleanUp(); }
-
- void Dismiss() { m_app = NULL; }
-
-private:
- wxApp *m_app;
-};
-
-//// Initialize
-bool wxApp::Initialize(int& argc, wxChar **argv)
-{
- if ( !wxAppBase::Initialize(argc, argv) )
- return false;
-
- // ensure that base cleanup is done if we return too early
- wxCallBaseCleanup callBaseCleanup(this);
-
- wxWinHandleHash = new wxWinHashTable(wxKEY_INTEGER, 100);
-
- callBaseCleanup.Dismiss();
-
- return true;
-}
-
-// ---------------------------------------------------------------------------
-// RegisterWindowClasses
-// ---------------------------------------------------------------------------
-
-// TODO we should only register classes really used by the app. For this it
-// would be enough to just delay the class registration until an attempt
-// to create a window of this class is made.
-bool wxApp::RegisterWindowClasses()
-{
- return true;
-}
-
-// ---------------------------------------------------------------------------
-// UnregisterWindowClasses
-// ---------------------------------------------------------------------------
-
-bool wxApp::UnregisterWindowClasses()
-{
- bool retval = true;
- return retval;
-}
-
-void wxApp::CleanUp()
-{
- // all objects pending for deletion must be deleted first, otherwise we
- // would crash when they use wxWinHandleHash (and UnregisterWindowClasses()
- // call wouldn't succeed as long as any windows still exist), so call the
- // base class method first and only then do our clean up
- wxAppBase::CleanUp();
-
- // for an EXE the classes are unregistered when it terminates but DLL may
- // be loaded several times (load/unload/load) into the same process in
- // which case the registration will fail after the first time if we don't
- // unregister the classes now
- UnregisterWindowClasses();
-
- wxDELETE(wxWinHandleHash);
-}
-
-// ----------------------------------------------------------------------------
-// wxApp ctor/dtor
-// ----------------------------------------------------------------------------
-
-wxApp::wxApp()
-{
- m_printMode = wxPRINT_WINDOWS;
-}
-
-wxApp::~wxApp()
-{
- wxChar **argv_tmp;
- argv_tmp = argv;
- // src/palmos/main.cpp
- // our cmd line arguments are allocated inside wxEntry(HINSTANCE), they
- // don't come from main(), so we have to free them
- while ( argc )
- {
- // m_argv elements were allocated by wxStrdup()
- if (argv_tmp[--argc]) {
- free((void *)(argv_tmp[--argc]));
- }
- }
- // but m_argv itself -- using new[]
- delete [] argv_tmp;
- //argv = NULL;
-}
-
-// ----------------------------------------------------------------------------
-// wxApp idle handling
-// ----------------------------------------------------------------------------
-
-void wxApp::WakeUpIdle()
-{
-}
-
-// ----------------------------------------------------------------------------
-// other wxApp event hanlders
-// ----------------------------------------------------------------------------
-
-void wxApp::OnEndSession(wxCloseEvent& WXUNUSED(event))
-{
- if (GetTopWindow())
- GetTopWindow()->Close(true);
-}
-
-// Default behaviour: close the application with prompts. The
-// user can veto the close, and therefore the end session.
-void wxApp::OnQueryEndSession(wxCloseEvent& event)
-{
- if (GetTopWindow())
- {
- if (!GetTopWindow()->Close(!event.CanVeto()))
- event.Veto(true);
- }
-}
-
-// ----------------------------------------------------------------------------
-// miscellaneous
-// ----------------------------------------------------------------------------
-
-/* static */
-int wxApp::GetComCtl32Version()
-{
- return 0;
-}
-
-#if wxUSE_EXCEPTIONS
-
-// ----------------------------------------------------------------------------
-// exception handling
-// ----------------------------------------------------------------------------
-
-bool wxApp::OnExceptionInMainLoop()
-{
- return true;
-}
-
-#endif // wxUSE_EXCEPTIONS
+++ /dev/null
-///////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/base.cpp
-// Purpose: misc stuff only used in applications under PalmOS
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10.13.2004
-// RCS-ID: $Id$
-// Copyright: (c) 2004 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
-#endif //WX_PRECOMP
-
-#include "wx/apptrait.h"
-#include "wx/recguard.h"
-#include "wx/evtloop.h" // wxEventLoop
-
-// ============================================================================
-// wxConsoleAppTraits implementation
-// ============================================================================
-
-void *wxConsoleAppTraits::BeforeChildWaitLoop()
-{
- return NULL;
-}
-
-void wxConsoleAppTraits::AfterChildWaitLoop(void * WXUNUSED(data))
-{
-}
-
-#if wxUSE_THREADS
-bool wxConsoleAppTraits::DoMessageFromThreadWait()
-{
- return true;
-}
-
-WXDWORD wxConsoleAppTraits::WaitForThread(WXHANDLE hThread)
-{
- // TODO
- return 0;
-}
-#endif // wxUSE_THREADS
-
-#if wxUSE_CONSOLE_EVENTLOOP
-wxEventLoopBase *
-wxConsoleAppTraits::CreateEventLoop()
-{
- return new wxEventLoop;
-}
-#endif // wxUSE_CONSOLE_EVENTLOOP
-
+++ /dev/null
-////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/bitmap.cpp
-// Purpose: wxBitmap
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/08/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
-
-#include "wx/bitmap.h"
-
-#ifndef WX_PRECOMP
- #include <stdio.h>
-
- #include "wx/list.h"
- #include "wx/utils.h"
- #include "wx/app.h"
- #include "wx/palette.h"
- #include "wx/dcmemory.h"
- #include "wx/icon.h"
- #include "wx/log.h"
- #include "wx/image.h"
-#endif
-
-#if wxUSE_WXDIB
-#include "wx/palmos/dib.h"
-#endif
-
-#include "wx/xpmdecod.h"
-
-// missing from mingw32 header
-#ifndef CLR_INVALID
- #define CLR_INVALID ((COLORREF)-1)
-#endif // no CLR_INVALID
-
-// ----------------------------------------------------------------------------
-// Bitmap data
-// ----------------------------------------------------------------------------
-
-class WXDLLEXPORT wxBitmapRefData : public wxGDIImageRefData
-{
-public:
- wxBitmapRefData();
- virtual ~wxBitmapRefData() { Free(); }
-
- virtual void Free();
-
- // set the mask object to use as the mask, we take ownership of it
- void SetMask(wxMask *mask)
- {
- delete m_bitmapMask;
- m_bitmapMask = mask;
- }
-
- // return the mask
- wxMask *GetMask() const { return m_bitmapMask; }
-
-public:
-#if wxUSE_PALETTE
- wxPalette m_bitmapPalette;
-#endif // wxUSE_PALETTE
-
-#if wxUSE_WXDIB
- wxDIB *m_dib;
-#endif
-
- bool m_hasAlpha;
-
- bool m_isDIB;
-
-private:
- wxMask *m_bitmapMask;
-
- wxDECLARE_NO_COPY_CLASS(wxBitmapRefData);
-};
-
-// ----------------------------------------------------------------------------
-// macros
-// ----------------------------------------------------------------------------
-
-IMPLEMENT_DYNAMIC_CLASS(wxBitmap, wxGDIObject)
-IMPLEMENT_DYNAMIC_CLASS(wxMask, wxObject)
-
-IMPLEMENT_DYNAMIC_CLASS(wxBitmapHandler, wxObject)
-
-// ============================================================================
-// implementation
-// ============================================================================
-
-// ----------------------------------------------------------------------------
-// helper functions
-// ----------------------------------------------------------------------------
-
-#if !wxUSE_WXDIB
- #define NEVER_USE_DIB
-#else
- static inline bool wxShouldCreateDIB(int w, int h, int d, WXHDC hdc)
- {
- // here is the logic:
- //
- // (a) if hdc is specified, the caller explicitly wants DDB
- // (b) otherwise, create a DIB if depth >= 24 (we don't support 16bpp
- // or less DIBs anyhow)
- // (c) finally, create DIBs under Win9x even if the depth hasn't been
- // explicitly specified but the current display depth is 24 or
- // more and the image is "big", i.e. > 16Mb which is the
- // theoretical limit for DDBs under Win9x
- //
- // consequences (all of which seem to make sense):
- //
- // (i) by default, DDBs are created (depth == -1 usually)
- // (ii) DIBs can be created by explicitly specifying the depth
- // (iii) using a DC always forces creating a DDB
- return !hdc &&
- (d >= 24 ||
- (d == -1 &&
- wxDIB::GetLineSize(w, wxDisplayDepth())*h > 16*1024*1024));
- }
-
- #define SOMETIMES_USE_DIB
-#endif // different DIB usage scenarious
-
-// ----------------------------------------------------------------------------
-// wxBitmapRefData
-// ----------------------------------------------------------------------------
-
-wxBitmapRefData::wxBitmapRefData()
-{
- m_bitmapMask = NULL;
-
- m_hBitmap = (WXHBITMAP) NULL;
-#if wxUSE_WXDIB
- m_dib = NULL;
-#endif
-
- m_isDIB =
- m_hasAlpha = false;
-}
-
-void wxBitmapRefData::Free()
-{
-}
-
-// ----------------------------------------------------------------------------
-// wxBitmap creation
-// ----------------------------------------------------------------------------
-
-// this function should be called from all wxBitmap ctors
-void wxBitmap::Init()
-{
-}
-
-wxGDIImageRefData *wxBitmap::CreateData() const
-{
- return NULL;
-}
-
-bool wxBitmap::CopyFromCursor(const wxCursor& cursor)
-{
- return false;
-}
-
-bool wxBitmap::CopyFromIcon(const wxIcon& icon)
-{
- return false;
-}
-
-#ifndef NEVER_USE_DIB
-
-bool wxBitmap::CopyFromDIB(const wxDIB& dib)
-{
- return false:
-}
-
-#endif // NEVER_USE_DIB
-
-wxBitmap::wxBitmap(const char bits[], int width, int height, int depth)
-{
- Init();
-}
-
-wxBitmap::wxBitmap(int w, int h, const wxDC& dc)
-{
-}
-
-wxBitmap::wxBitmap(const void* data, long type, int width, int height, int depth)
-{
-}
-
-wxBitmap::wxBitmap(const wxString& filename, wxBitmapType type)
-{
-}
-
-bool wxBitmap::Create(int width, int height, int depth)
-{
- return false;
-}
-
-bool wxBitmap::Create(int width, int height, const wxDC& dc)
-{
- return false;
-}
-
-bool wxBitmap::DoCreate(int w, int h, int d, WXHDC hdc)
-{
- return false;
-}
-
-#if wxUSE_IMAGE
-
-// ----------------------------------------------------------------------------
-// wxImage to/from conversions
-// ----------------------------------------------------------------------------
-
-#if wxUSE_WXDIB
-
-bool wxBitmap::CreateFromImage(const wxImage& image, int depth)
-{
- return false;
-}
-
-bool wxBitmap::CreateFromImage(const wxImage& image, const wxDC& dc)
-{
- return false;
-}
-
-bool wxBitmap::CreateFromImage(const wxImage& image, int depth, WXHDC hdc)
-{
- return false;
-}
-
-wxImage wxBitmap::ConvertToImage() const
-{
- wxImage image;
- return image;
-}
-
-#endif // wxUSE_WXDIB
-
-#endif // wxUSE_IMAGE
-
-// ----------------------------------------------------------------------------
-// loading and saving bitmaps
-// ----------------------------------------------------------------------------
-
-bool wxBitmap::LoadFile(const wxString& filename, long type)
-{
- return false;
-}
-
-bool wxBitmap::Create(const void* data, long type, int width, int height, int depth)
-{
- return false;
-}
-
-bool wxBitmap::SaveFile(const wxString& filename,
- int type,
- const wxPalette *palette)
-{
- return false;
-}
-
-// ----------------------------------------------------------------------------
-// sub bitmap extraction
-// ----------------------------------------------------------------------------
-
-wxBitmap wxBitmap::GetSubBitmap( const wxRect& rect) const
-{
- wxBitmap ret( 0, 0 );
- return ret;
-}
-
-// ----------------------------------------------------------------------------
-// wxBitmap accessors
-// ----------------------------------------------------------------------------
-
-#if wxUSE_PALETTE
-wxPalette* wxBitmap::GetPalette() const
-{
- return NULL;
-}
-#endif
-
-wxMask *wxBitmap::GetMask() const
-{
- return NULL;
-}
-
-bool wxBitmap::HasAlpha() const
-{
- return false;
-}
-
-// ----------------------------------------------------------------------------
-// wxBitmap setters
-// ----------------------------------------------------------------------------
-
-#if wxUSE_PALETTE
-
-void wxBitmap::SetPalette(const wxPalette& palette)
-{
-}
-
-#endif // wxUSE_PALETTE
-
-void wxBitmap::SetMask(wxMask *mask)
-{
-}
-
-// ----------------------------------------------------------------------------
-// raw bitmap access support
-// ----------------------------------------------------------------------------
-
-// ----------------------------------------------------------------------------
-// wxMask
-// ----------------------------------------------------------------------------
-
-wxMask::wxMask()
-{
- m_maskBitmap = 0;
-}
-
-// Construct a mask from a bitmap and a colour indicating
-// the transparent area
-wxMask::wxMask(const wxBitmap& bitmap, const wxColour& colour)
-{
-}
-
-// Construct a mask from a bitmap and a palette index indicating
-// the transparent area
-wxMask::wxMask(const wxBitmap& bitmap, int paletteIndex)
-{
-}
-
-// Construct a mask from a mono bitmap (copies the bitmap).
-wxMask::wxMask(const wxBitmap& bitmap)
-{
-}
-
-wxMask::~wxMask()
-{
-}
-
-// Create a mask from a mono bitmap (copies the bitmap).
-bool wxMask::Create(const wxBitmap& bitmap)
-{
- return false;
-}
-
-// Create a mask from a bitmap and a palette index indicating
-// the transparent area
-bool wxMask::Create(const wxBitmap& bitmap, int paletteIndex)
-{
- return false;
-}
-
-// Create a mask from a bitmap and a colour indicating
-// the transparent area
-bool wxMask::Create(const wxBitmap& bitmap, const wxColour& colour)
-{
- return false;
-}
-
-// ----------------------------------------------------------------------------
-// wxBitmapHandler
-// ----------------------------------------------------------------------------
-
-bool wxBitmapHandler::Create(wxGDIImage *image,
- const void* data,
- long flags,
- int width, int height, int depth)
-{
- return false;
-}
-
-bool wxBitmapHandler::Load(wxGDIImage *image,
- const wxString& name,
- long flags,
- int width, int height)
-{
- return false;
-}
-
-bool wxBitmapHandler::Save(wxGDIImage *image,
- const wxString& name,
- int type)
-{
- return false;
-}
-
-bool wxBitmapHandler::Create(wxBitmap *WXUNUSED(bitmap),
- const void* WXUNUSED(data),
- long WXUNUSED(type),
- int WXUNUSED(width),
- int WXUNUSED(height),
- int WXUNUSED(depth))
-{
- return false;
-}
-
-bool wxBitmapHandler::LoadFile(wxBitmap *WXUNUSED(bitmap),
- const wxString& WXUNUSED(name),
- long WXUNUSED(type),
- int WXUNUSED(desiredWidth),
- int WXUNUSED(desiredHeight))
-{
- return false;
-}
-
-bool wxBitmapHandler::SaveFile(wxBitmap *WXUNUSED(bitmap),
- const wxString& WXUNUSED(name),
- int WXUNUSED(type),
- const wxPalette *WXUNUSED(palette))
-{
- return false;
-}
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/bmpbuttn.cpp
-// Purpose: wxBitmapButton
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-// For compilers that support precompilation, includes "wx.h".
-#include "wx/wxprec.h"
-
-#ifdef __BORLANDC__
- #pragma hdrstop
-#endif
-
-#if wxUSE_BMPBUTTON
-
-#include "wx/bmpbuttn.h"
-
-#ifndef WX_PRECOMP
- #include "wx/log.h"
- #include "wx/dcmemory.h"
-#endif
-
-// ----------------------------------------------------------------------------
-// macros
-// ----------------------------------------------------------------------------
-
-#define BUTTON_HEIGHT_FACTOR (EDIT_CONTROL_FACTOR * 1.1)
-
-bool wxBitmapButton::Create(wxWindow *parent, wxWindowID id,
- const wxBitmap& bitmap,
- const wxPoint& pos,
- const wxSize& size, long style,
- const wxValidator& wxVALIDATOR_PARAM(validator),
- const wxString& name)
-{
- return false;
-}
-
-#define FOCUS_MARGIN 3
-
-void wxBitmapButton::DrawFace( WXHDC dc, int left, int top,
- int right, int bottom, bool sel )
-{
-}
-
-void wxBitmapButton::DrawButtonFocus( WXHDC dc, int left, int top, int right,
- int bottom, bool WXUNUSED(sel) )
-{
-}
-
-void wxBitmapButton::DrawButtonDisable( WXHDC dc, int left, int top, int right,
- int bottom, bool with_marg )
-{
-}
-
-wxSize wxBitmapButton::DoGetBestSize() const
-{
- wxSize best;
- best.x = 0;
- best.y = 0;
-
- return best;
-}
-
-#endif // wxUSE_BMPBUTTON
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/brush.cpp
-// Purpose: wxBrush
-// 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/list.h"
- #include "wx/utils.h"
- #include "wx/app.h"
- #include "wx/brush.h"
- #include "wx/colour.h"
-#endif // WX_PRECOMP
-
-// ----------------------------------------------------------------------------
-// private classes
-// ----------------------------------------------------------------------------
-
-// ============================================================================
-// wxBrush implementation
-// ============================================================================
-
-IMPLEMENT_DYNAMIC_CLASS(wxBrush, wxGDIObject)
-
-// ----------------------------------------------------------------------------
-// wxBrush ctors/dtor
-// ----------------------------------------------------------------------------
-
-wxBrush::wxBrush()
-{
-}
-
-wxBrush::wxBrush(const wxColour& col, wxBrushStyle style)
-{
-}
-
-wxBrush::wxBrush(const wxBitmap& stipple)
-{
-}
-
-wxBrush::~wxBrush()
-{
-}
-
-// ----------------------------------------------------------------------------
-// wxBrush house keeping stuff
-// ----------------------------------------------------------------------------
-
-bool wxBrush::operator==(const wxBrush& brush) const
-{
- return false;
-}
-
-wxGDIRefData *wxBrush::CreateGDIRefData() const
-{
- return NULL;
-}
-
-wxGDIRefData *wxBrush::CloneGDIRefData(const wxGDIRefData *data) const
-{
- return NULL;
-}
-
-// ----------------------------------------------------------------------------
-// wxBrush accessors
-// ----------------------------------------------------------------------------
-
-wxColour wxBrush::GetColour() const
-{
- return wxNullColour;
-}
-
-wxBrushStyle wxBrush::GetStyle() const
-{
- return -1;
-}
-
-wxBitmap *wxBrush::GetStipple() const
-{
- return NULL;
-}
-
-WXHANDLE wxBrush::GetResourceHandle() const
-{
- return (WXHANDLE)0;
-}
-
-// ----------------------------------------------------------------------------
-// wxBrush setters
-// ----------------------------------------------------------------------------
-
-void wxBrush::SetColour(const wxColour& WXUNUSED(col))
-{
-}
-
-void wxBrush::SetColour(unsigned char WXUNUSED(r), unsigned char WXUNUSED(g), unsigned char WXUNUSED(b))
-{
-}
-
-void wxBrush::SetStyle(wxBrushStyle WXUNUSED(style))
-{
-}
-
-void wxBrush::SetStipple(const wxBitmap& WXUNUSED(stipple))
-{
-}
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/button.cpp
-// Purpose: wxButton
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by: Wlodzimierz ABX Skiba - native wxButton implementation
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne, Wlodzimierz Skiba
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-// ============================================================================
-// declarations
-// ============================================================================
-
-// ----------------------------------------------------------------------------
-// headers
-// ----------------------------------------------------------------------------
-
-// For compilers that support precompilation, includes "wx.h".
-#include "wx/wxprec.h"
-
-#ifdef __BORLANDC__
- #pragma hdrstop
-#endif
-
-#if wxUSE_BUTTON
-
-#include "wx/button.h"
-
-#ifndef WX_PRECOMP
- #include "wx/app.h"
- #include "wx/brush.h"
- #include "wx/panel.h"
- #include "wx/bmpbuttn.h"
- #include "wx/settings.h"
- #include "wx/dcscreen.h"
- #include "wx/frame.h"
- #include "wx/dialog.h"
-#endif
-
-#include "wx/stockitem.h"
-
-#include <Control.h>
-#include <Form.h>
-
-// ----------------------------------------------------------------------------
-// macros
-// ----------------------------------------------------------------------------
-
-// this macro tries to adjust the default button height to a reasonable value
-// using the char height as the base
-#define BUTTON_HEIGHT_FROM_CHAR_HEIGHT(cy) (11*EDIT_HEIGHT_FROM_CHAR_HEIGHT(cy)/10)
-
-// ============================================================================
-// implementation
-// ============================================================================
-
-// ----------------------------------------------------------------------------
-// creation/destruction
-// ----------------------------------------------------------------------------
-
-bool wxButton::Create(wxWindow *parent,
- wxWindowID id,
- const wxString& label,
- const wxPoint& pos,
- const wxSize& size,
- long style,
- const wxValidator& validator,
- const wxString& name)
-{
- // Default coordinates based on the knowledgebase recipe "Buttons"
- wxSize palmSize(size.x==wxDefaultCoord?36:size.x,
- size.y==wxDefaultCoord?12:size.y);
-
- // Default placement depends on dialog vs. frame type of parent
- wxPoint palmPos(pos);
- if((palmPos.x==wxDefaultCoord)||(palmPos.y==wxDefaultCoord))
- {
- wxSize parentSize(parent->GetClientSize());
- wxWindow* parentTLW = parent;
- while ( parentTLW && !parentTLW->IsTopLevel() )
- {
- parentTLW = parentTLW->GetParent();
- }
-
- if(wxDynamicCast(parentTLW, wxFrame)!=NULL)
- {
- if(palmPos.x==wxDefaultCoord)
- palmPos.x = 0;
- if(palmPos.y==wxDefaultCoord)
- palmPos.y = parentSize.y-palmSize.y;
- }
- else if(wxDynamicCast(parentTLW, wxDialog)!=NULL)
- {
- if(palmPos.x==wxDefaultCoord)
- palmPos.x = 4;
- if(palmPos.y==wxDefaultCoord)
- palmPos.y = parentSize.y-palmSize.y-5;
- }
- else
- {
- // something seriously broken
- return false;
- }
- }
-
- // take the stock label
- wxString palmLabel = label;
- if( palmLabel.empty() && wxIsStockID(id) )
- palmLabel = wxGetStockLabel(id, wxSTOCK_NOFLAGS);
-
- if(!wxControl::Create(parent, id, palmPos, palmSize, style, validator, name))
- return false;
-
- return wxControl::PalmCreateControl(buttonCtl, palmLabel, palmPos, palmSize);
-}
-
-wxButton::~wxButton()
-{
-}
-
-// ----------------------------------------------------------------------------
-// size management including autosizing
-// ----------------------------------------------------------------------------
-
-wxSize wxButton::DoGetBestSize() const
-{
- return wxSize(36,12);
-}
-
-/* static */
-wxSize wxButtonBase::GetDefaultSize()
-{
- return wxSize(36,12);
-}
-
-wxWindow *wxButton::SetDefault()
-{
- FormType* form = (FormType* )GetParentForm();
- if(form==NULL)
- return NULL;
-#ifdef __WXPALMOS6__
- FrmSetDefaultButtonID(form,GetId());
-#endif // __WXPALMOS6__
-
- return wxButtonBase::SetDefault();
-}
-
-void wxButton::SetTmpDefault()
-{
-}
-
-void wxButton::UnsetTmpDefault()
-{
-}
-
-/* static */
-void
-wxButton::SetDefaultStyle(wxButton *btn, bool on)
-{
-}
-
-// ----------------------------------------------------------------------------
-// helpers
-// ----------------------------------------------------------------------------
-
-bool wxButton::SendClickEvent()
-{
- wxCommandEvent event(wxEVT_COMMAND_BUTTON_CLICKED, GetId());
- event.SetEventObject(this);
- return ProcessCommand(event);
-}
-
-void wxButton::Command(wxCommandEvent &event)
-{
- ProcessCommand(event);
-}
-
-#endif // wxUSE_BUTTON
+++ /dev/null
-///////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/caret.cpp
-// Purpose: Palm OS implementation of wxCaret
-// 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/window.h"
- #include "wx/log.h"
-#endif // WX_PRECOMP
-
-#include "wx/caret.h"
-
-#if wxUSE_CARET
-
-#include "wx/palmos/private.h"
-
-// ---------------------------------------------------------------------------
-// macros
-// ---------------------------------------------------------------------------
-
-#define CALL_CARET_API(api, args) \
- if ( !api args ) \
- wxLogLastError(wxT(#api))
-
-// ===========================================================================
-// implementation
-// ===========================================================================
-
-// ---------------------------------------------------------------------------
-// blink time
-// ---------------------------------------------------------------------------
-
-//static
-int wxCaretBase::GetBlinkTime()
-{
- return 0;
-}
-
-//static
-void wxCaretBase::SetBlinkTime(int milliseconds)
-{
-}
-
-// ---------------------------------------------------------------------------
-// creating/destroying the caret
-// ---------------------------------------------------------------------------
-
-bool wxCaret::PalmOSCreateCaret()
-{
- return false;
-}
-
-void wxCaret::OnSetFocus()
-{
-}
-
-void wxCaret::OnKillFocus()
-{
-}
-
-// ---------------------------------------------------------------------------
-// showing/hiding the caret
-// ---------------------------------------------------------------------------
-
-void wxCaret::DoShow()
-{
-}
-
-void wxCaret::DoHide()
-{
-}
-
-// ---------------------------------------------------------------------------
-// moving the caret
-// ---------------------------------------------------------------------------
-
-void wxCaret::DoMove()
-{
-}
-
-
-// ---------------------------------------------------------------------------
-// resizing the caret
-// ---------------------------------------------------------------------------
-
-void wxCaret::DoSize()
-{
-}
-
-#endif
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/checkbox.cpp
-// Purpose: wxCheckBox
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by: Wlodzimierz ABX Skiba - native implementation
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne, Wlodzimierz Skiba
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-// ============================================================================
-// declarations
-// ============================================================================
-
-// ----------------------------------------------------------------------------
-// headers
-// ----------------------------------------------------------------------------
-
-// For compilers that support precompilation, includes "wx.h".
-#include "wx/wxprec.h"
-
-#ifdef __BORLANDC__
- #pragma hdrstop
-#endif
-
-#if wxUSE_CHECKBOX
-
-#include "wx/checkbox.h"
-
-#ifndef WX_PRECOMP
- #include "wx/brush.h"
- #include "wx/dcscreen.h"
- #include "wx/settings.h"
-#endif
-
-#include <Control.h>
-
-// ============================================================================
-// implementation
-// ============================================================================
-
-// ----------------------------------------------------------------------------
-// wxCheckBox
-// ----------------------------------------------------------------------------
-
-bool wxCheckBox::Create(wxWindow *parent,
- wxWindowID id,
- const wxString& label,
- const wxPoint& pos,
- const wxSize& size, long style,
- const wxValidator& validator,
- const wxString& name)
-{
- if(!wxControl::Create(parent, id, pos, size, style, validator, name))
- return false;
-
- m_state = wxCHK_UNCHECKED;
- return wxControl::PalmCreateControl(checkboxCtl, label, pos, size);
-}
-
-wxSize wxCheckBox::DoGetBestSize() const
-{
- return wxSize(0,0);
-}
-
-void wxCheckBox::SetValue(bool val)
-{
- SetBoolValue(val);
-}
-
-bool wxCheckBox::GetValue() const
-{
- return GetBoolValue();
-}
-
-bool wxCheckBox::SendClickEvent()
-{
- wxCommandEvent event(wxEVT_COMMAND_CHECKBOX_CLICKED, GetId());
- event.SetInt(GetValue());
- event.SetEventObject(this);
- return ProcessCommand(event);
-}
-
-void wxCheckBox::Command(wxCommandEvent& event)
-{
- int state = event.GetInt();
- wxCHECK_RET( (state == wxCHK_UNCHECKED) || (state == wxCHK_CHECKED)
- || (state == wxCHK_UNDETERMINED),
- wxT("event.GetInt() returned an invalid checkbox state") );
-
- Set3StateValue((wxCheckBoxState) state);
- ProcessCommand(event);
-}
-
-void wxCheckBox::DoSet3StateValue(wxCheckBoxState state)
-{
- Int16 newValue;
- ControlType *control = (ControlType *)GetObjectPtr();
- if(NULL == control) {
- return;
- }
- m_state = state;
- switch (state) {
- case wxCHK_UNCHECKED:
- newValue = 0;
- break;
- case wxCHK_CHECKED:
- newValue = 1;
- break;
- case wxCHK_UNDETERMINED:
- default:
- return;
- break;
- }
- CtlSetValue (control, newValue);
-}
-
-wxCheckBoxState wxCheckBox::DoGet3StateValue() const
-{
- return m_state;
-}
-
-#endif // wxUSE_CHECKBOX
+++ /dev/null
-///////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/checklst.cpp
-// Purpose: implementation of wxCheckListBox class
-// 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
-
-#if wxUSE_CHECKLISTBOX && wxUSE_OWNER_DRAWN
-
-#include "wx/checklst.h"
-
-#ifndef WX_PRECOMP
- #include "wx/object.h"
- #include "wx/colour.h"
- #include "wx/font.h"
- #include "wx/bitmap.h"
- #include "wx/window.h"
- #include "wx/listbox.h"
- #include "wx/dcmemory.h"
-
- #include "wx/settings.h"
-
- #include "wx/log.h"
-#endif
-
-#include "wx/ownerdrw.h"
-
-#include "wx/palmos/wrapwin.h"
-
-#include "wx/palmos/private.h"
-
-// ----------------------------------------------------------------------------
-// private functions
-// ----------------------------------------------------------------------------
-
-// get item (converted to right type)
-#define GetItem(n) ((wxCheckListBoxItem *)(GetItem(n)))
-
-// ============================================================================
-// implementation
-// ============================================================================
-
-// ----------------------------------------------------------------------------
-// declaration and implementation of wxCheckListBoxItem class
-// ----------------------------------------------------------------------------
-
-class wxCheckListBoxItem : public wxOwnerDrawn
-{
-friend class WXDLLEXPORT wxCheckListBox;
-public:
- // ctor
- wxCheckListBoxItem(wxCheckListBox *pParent, size_t nIndex);
-
- // drawing functions
- virtual bool OnDrawItem(wxDC& dc, const wxRect& rc, wxODAction act, wxODStatus stat);
-
- // simple accessors and operations
- bool IsChecked() const { return m_bChecked; }
-
- void Check(bool bCheck);
- void Toggle() { Check(!IsChecked()); }
-
- void SendEvent();
-
-private:
-
- wxDECLARE_NO_COPY_CLASS(wxCheckListBoxItem);
- bool m_bChecked;
- wxCheckListBox *m_pParent;
- size_t m_nIndex;
-};
-
-wxCheckListBoxItem::wxCheckListBoxItem(wxCheckListBox *pParent, size_t nIndex)
- : wxOwnerDrawn(wxEmptyString, true) // checkable
-{
-}
-
-bool wxCheckListBoxItem::OnDrawItem(wxDC& dc, const wxRect& rc,
- wxODAction act, wxODStatus stat)
-{
- return false;
-}
-
-// change the state of the item and redraw it
-void wxCheckListBoxItem::Check(bool check)
-{
-}
-
-// send an "item checked" event
-void wxCheckListBoxItem::SendEvent()
-{
-}
-
-// ----------------------------------------------------------------------------
-// implementation of wxCheckListBox class
-// ----------------------------------------------------------------------------
-
-// define event table
-// ------------------
-BEGIN_EVENT_TABLE(wxCheckListBox, wxListBox)
- EVT_KEY_DOWN(wxCheckListBox::OnKeyDown)
- EVT_LEFT_DOWN(wxCheckListBox::OnLeftClick)
-END_EVENT_TABLE()
-
-// control creation
-// ----------------
-
-// def ctor: use Create() to really create the control
-wxCheckListBox::wxCheckListBox()
-{
-}
-
-// ctor which creates the associated control
-wxCheckListBox::wxCheckListBox(wxWindow *parent, wxWindowID id,
- const wxPoint& pos, const wxSize& size,
- int nStrings, const wxString choices[],
- long style, const wxValidator& val,
- const wxString& name)
-{
- Create(parent, id, pos, size, nStrings, choices, style, val, name);
-}
-
-wxCheckListBox::wxCheckListBox(wxWindow *parent, wxWindowID id,
- const wxPoint& pos, const wxSize& size,
- const wxArrayString& choices,
- long style, const wxValidator& val,
- const wxString& name)
-{
- Create(parent, id, pos, size, choices, style, val, name);
-}
-
-bool wxCheckListBox::Create(wxWindow *parent, wxWindowID id,
- const wxPoint& pos, const wxSize& size,
- int n, const wxString choices[],
- long style,
- const wxValidator& validator, const wxString& name)
-{
- return wxListBox::Create(parent, id, pos, size, n, choices,
- style | wxLB_OWNERDRAW, validator, name);
-}
-
-bool wxCheckListBox::Create(wxWindow *parent, wxWindowID id,
- const wxPoint& pos, const wxSize& size,
- const wxArrayString& choices,
- long style,
- const wxValidator& validator, const wxString& name)
-{
- return wxListBox::Create(parent, id, pos, size, choices,
- style | wxLB_OWNERDRAW, validator, name);
-}
-
-// misc overloaded methods
-// -----------------------
-
-void wxCheckListBox::Delete(unsigned int n)
-{
-}
-
-bool wxCheckListBox::SetFont( const wxFont &font )
-{
- return false;
-}
-
-// create/retrieve item
-// --------------------
-
-// create a check list box item
-wxOwnerDrawn *wxCheckListBox::CreateLboxItem(size_t nIndex)
-{
- wxCheckListBoxItem *pItem = new wxCheckListBoxItem(this, nIndex);
- return pItem;
-}
-
-// return item size
-// ----------------
-bool wxCheckListBox::MSWOnMeasure(WXMEASUREITEMSTRUCT *item)
-{
- return false;
-}
-
-// check items
-// -----------
-
-bool wxCheckListBox::IsChecked(unsigned int uiIndex) const
-{
- return false;
-}
-
-void wxCheckListBox::Check(unsigned int uiIndex, bool bCheck)
-{
-}
-
-// process events
-// --------------
-
-void wxCheckListBox::OnKeyDown(wxKeyEvent& event)
-{
-}
-
-void wxCheckListBox::OnLeftClick(wxMouseEvent& event)
-{
-}
-
-int wxCheckListBox::DoHitTestItem(wxCoord x, wxCoord y) const
-{
- return wxNOT_FOUND;
-}
-
-#endif // wxUSE_CHECKLISTBOX && wxUSE_OWNER_DRAWN
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/choice.cpp
-// Purpose: wxChoice
-// Author: William Osborne - minimal working wxPalmOS port
-// 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
-
-#if wxUSE_CHOICE
-
-#include "wx/choice.h"
-
-#ifndef WX_PRECOMP
- #include "wx/utils.h"
- #include "wx/log.h"
- #include "wx/brush.h"
- #include "wx/settings.h"
-#endif
-
-// ============================================================================
-// implementation
-// ============================================================================
-
-// ----------------------------------------------------------------------------
-// creation
-// ----------------------------------------------------------------------------
-
-bool wxChoice::Create(wxWindow *parent,
- wxWindowID id,
- const wxPoint& pos,
- const wxSize& size,
- int n, const wxString choices[],
- long style,
- const wxValidator& validator,
- const wxString& name)
-{
- return false;
-}
-
-bool wxChoice::CreateAndInit(wxWindow *parent,
- wxWindowID id,
- const wxPoint& pos,
- const wxSize& size,
- int n, const wxString choices[],
- long style,
- const wxValidator& validator,
- const wxString& name)
-{
- return false;
-}
-
-bool wxChoice::Create(wxWindow *parent,
- wxWindowID id,
- const wxPoint& pos,
- const wxSize& size,
- const wxArrayString& choices,
- long style,
- const wxValidator& validator,
- const wxString& name)
-{
- return false;
-}
-
-wxChoice::~wxChoice()
-{
-}
-
-// ----------------------------------------------------------------------------
-// adding/deleting items to/from the list
-// ----------------------------------------------------------------------------
-
-int wxChoice::DoInsertItems(const wxArrayStringsAdapter& items,
- unsigned int pos,
- void **clientData,
- wxClientDataType type)
-{
- return 0;
-}
-
-void wxChoice::DoDeleteOneItem(unsigned int n)
-{
-}
-
-void wxChoice::DoClear()
-{
-}
-
-void wxChoice::Free()
-{
-}
-
-// ----------------------------------------------------------------------------
-// selection
-// ----------------------------------------------------------------------------
-
-int wxChoice::GetSelection() const
-{
- return 0;
-}
-
-void wxChoice::SetSelection(int n)
-{
-}
-
-// ----------------------------------------------------------------------------
-// string list functions
-// ----------------------------------------------------------------------------
-
-unsigned int wxChoice::GetCount() const
-{
- return 0;
-}
-
-void wxChoice::SetString(unsigned int n, const wxString& s)
-{
-}
-
-wxString wxChoice::GetString(unsigned int n) const
-{
- return wxEmptyString;
-}
-
-// ----------------------------------------------------------------------------
-// client data
-// ----------------------------------------------------------------------------
-
-void wxChoice::DoSetItemClientData(unsigned int n, void* clientData)
-{
-}
-
-void* wxChoice::DoGetItemClientData(unsigned int n) const
-{
- return NULL;
-}
-
-// ----------------------------------------------------------------------------
-// wxMSW specific helpers
-// ----------------------------------------------------------------------------
-
-void wxChoice::UpdateVisibleHeight()
-{
-}
-
-void wxChoice::DoMoveWindow(int x, int y, int width, int height)
-{
-}
-
-void wxChoice::DoGetSize(int *w, int *h) const
-{
-}
-
-void wxChoice::DoSetSize(int x, int y,
- int width, int height,
- int sizeFlags)
-{
-}
-
-wxSize wxChoice::DoGetBestSize() const
-{
- return wxSize(0,0);
-}
-
-#endif // wxUSE_CHOICE
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/clipbrd.cpp
-// Purpose: Clipboard functionality
-// 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
-
-#if wxUSE_CLIPBOARD
-
-#include "wx/clipbrd.h"
-
-#ifndef WX_PRECOMP
- #include "wx/object.h"
- #include "wx/event.h"
- #include "wx/app.h"
- #include "wx/frame.h"
- #include "wx/bitmap.h"
- #include "wx/utils.h"
- #include "wx/intl.h"
- #include "wx/log.h"
- #include "wx/dataobj.h"
-#endif
-
-#if wxUSE_METAFILE
- #include "wx/metafile.h"
-#endif
-
-#include <string.h>
-
-#include "wx/palmos/private.h"
-
-#if wxUSE_WXDIB
- #include "wx/palmos/dib.h"
-#endif
-
-#if wxUSE_OLE && !defined(__WXWINCE__)
- // use OLE clipboard
- #define wxUSE_OLE_CLIPBOARD 1
-#else // !wxUSE_DATAOBJ
- // use Win clipboard API
- #define wxUSE_OLE_CLIPBOARD 0
-#endif
-
-#if wxUSE_OLE_CLIPBOARD
- #include <ole2.h>
-#endif // wxUSE_OLE_CLIPBOARD
-
-// ===========================================================================
-// implementation
-// ===========================================================================
-
-// ---------------------------------------------------------------------------
-// old-style clipboard functions
-// ---------------------------------------------------------------------------
-
-static bool gs_wxClipboardIsOpen = false;
-
-bool wxOpenClipboard()
-{
- return false;
-}
-
-bool wxCloseClipboard()
-{
- return false;
-}
-
-bool wxEmptyClipboard()
-{
- return false;
-}
-
-bool wxIsClipboardOpened()
-{
- return false;
-}
-
-bool wxIsClipboardFormatAvailable(wxDataFormat dataFormat)
-{
- return false;
-}
-
-
-bool wxSetClipboardData(wxDataFormat dataFormat,
- const void *data,
- int width, int height)
-{
- return false;
-}
-
-void *wxGetClipboardData(wxDataFormat dataFormat, long *len)
-{
- void *retval = NULL;
-
- return retval;
-}
-
-wxDataFormat wxEnumClipboardFormats(wxDataFormat dataFormat)
-{
- return (wxDataFormat::NativeFormat)::EnumClipboardFormats(dataFormat);
-}
-
-int wxRegisterClipboardFormat(wxChar *formatName)
-{
- return ::RegisterClipboardFormat(formatName);
-}
-
-bool wxGetClipboardFormatName(wxDataFormat dataFormat,
- wxChar *formatName,
- int maxCount)
-{
- return false;
-}
-
-// ---------------------------------------------------------------------------
-// wxClipboard
-// ---------------------------------------------------------------------------
-
-IMPLEMENT_DYNAMIC_CLASS(wxClipboard, wxObject)
-
-wxClipboard::wxClipboard()
-{
- m_clearOnExit = false;
- m_isOpened = false;
-}
-
-wxClipboard::~wxClipboard()
-{
- if ( m_clearOnExit )
- {
- Clear();
- }
-}
-
-void wxClipboard::Clear()
-{
-}
-
-bool wxClipboard::Flush()
-{
- return false;
-}
-
-bool wxClipboard::Open()
-{
- return wxOpenClipboard();
-}
-
-bool wxClipboard::IsOpened() const
-{
- return wxIsClipboardOpened();
-}
-
-bool wxClipboard::SetData( wxDataObject *data )
-{
- return false;
-}
-
-bool wxClipboard::AddData( wxDataObject *data )
-{
- return false;
-}
-
-void wxClipboard::Close()
-{
- wxCloseClipboard();
-}
-
-bool wxClipboard::IsSupported( wxDataFormat format )
-{
- return wxIsClipboardFormatAvailable(format);
-}
-
-bool wxClipboard::GetData( wxDataObject& data )
-{
- return false;
-}
-
-#endif // wxUSE_CLIPBOARD
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/colordlg.cpp
-// Purpose: wxColourDialog class
-// 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
-
-#if wxUSE_COLOURDLG
-
-#include "wx/colordlg.h"
-
-#ifndef WX_PRECOMP
- #include "wx/intl.h"
-#endif
-
-#include <UIColor.h>
-#include <UIControls.h>
-
-// ----------------------------------------------------------------------------
-// wxWin macros
-// ----------------------------------------------------------------------------
-
-IMPLEMENT_DYNAMIC_CLASS(wxColourDialog, wxDialog)
-
-// ============================================================================
-// implementation
-// ============================================================================
-
-// ----------------------------------------------------------------------------
-// wxColourDialog
-// ----------------------------------------------------------------------------
-
-wxColourDialog::wxColourDialog()
-{
-}
-
-wxColourDialog::wxColourDialog(wxWindow *parent, wxColourData *data)
-{
- Create(parent, data);
-}
-
-bool wxColourDialog::Create(wxWindow *parent, wxColourData *data)
-{
- m_parent = parent;
-
- if (data)
- m_colourData = *data;
-
- return true;
-}
-
-int wxColourDialog::ShowModal()
-{
- wxString title = _("Choose colour");
-
- wxColour colour = m_colourData.GetColour();
- RGBColorType rgb;
- rgb.r = colour.Red();
- rgb.g = colour.Green();
- rgb.b = colour.Blue();
- IndexedColorType i = WinRGBToIndex ( &rgb );
-
- if (UIPickColor (&i,
- &rgb,
- (m_colourData.GetChooseFull()?UIPickColorStartRGB:UIPickColorStartPalette),
- title.ToAscii(),
- NULL) == false)
- return wxID_CANCEL;
-
- colour.Set(rgb.r, rgb.g, rgb.b);
- m_colourData.SetColour(colour);
- return wxID_OK;
-}
-
-#endif
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/combobox.cpp
-// Purpose: wxComboBox class
-// 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
-
-#if wxUSE_COMBOBOX
-
-#include "wx/combobox.h"
-
-#ifndef WX_PRECOMP
- #include "wx/settings.h"
- #include "wx/log.h"
- // for wxEVT_COMMAND_TEXT_ENTER
- #include "wx/textctrl.h"
- #include "wx/brush.h"
-#endif
-
-#include "wx/clipbrd.h"
-#include "wx/palmos/private.h"
-
-#if wxUSE_TOOLTIPS
- #include "wx/tooltip.h"
-#endif // wxUSE_TOOLTIPS
-
-// ----------------------------------------------------------------------------
-// wxWin macros
-// ----------------------------------------------------------------------------
-
-// ----------------------------------------------------------------------------
-// function prototypes
-// ----------------------------------------------------------------------------
-
-// ---------------------------------------------------------------------------
-// global vars
-// ---------------------------------------------------------------------------
-
-// the pointer to standard radio button wnd proc
-static WNDPROC gs_wndprocEdit = (WNDPROC)NULL;
-
-// ============================================================================
-// implementation
-// ============================================================================
-
-// ----------------------------------------------------------------------------
-// wxComboBox callbacks
-// ----------------------------------------------------------------------------
-
-WXLRESULT wxComboBox::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam)
-{
- return 0;
-}
-
-bool wxComboBox::MSWProcessEditMsg(WXUINT msg, WXWPARAM wParam, WXLPARAM lParam)
-{
- return false;
-}
-
-bool wxComboBox::MSWCommand(WXUINT param, WXWORD WXUNUSED(id))
-{
- return false;
-}
-
-WXHWND wxComboBox::GetEditHWND() const
-{
- return (WXHWND)0;
-}
-
-// ----------------------------------------------------------------------------
-// wxComboBox creation
-// ----------------------------------------------------------------------------
-
-bool wxComboBox::Create(wxWindow *parent, wxWindowID id,
- const wxString& value,
- const wxPoint& pos,
- const wxSize& size,
- int n, const wxString choices[],
- long style,
- const wxValidator& validator,
- const wxString& name)
-{
- return false;
-}
-
-bool wxComboBox::Create(wxWindow *parent, wxWindowID id,
- const wxString& value,
- const wxPoint& pos,
- const wxSize& size,
- const wxArrayString& choices,
- long style,
- const wxValidator& validator,
- const wxString& name)
-{
- return false;
-}
-
-WXDWORD wxComboBox::MSWGetStyle(long style, WXDWORD *exstyle) const
-{
- return 0;
-}
-
-// ----------------------------------------------------------------------------
-// wxComboBox text control-like methods
-// ----------------------------------------------------------------------------
-
-void wxComboBox::SetValue(const wxString& value)
-{
-}
-
-// Clipboard operations
-void wxComboBox::Copy()
-{
-}
-
-void wxComboBox::Cut()
-{
-}
-
-void wxComboBox::Paste()
-{
-}
-
-void wxComboBox::SetEditable(bool WXUNUSED(editable))
-{
-}
-
-void wxComboBox::SetInsertionPoint(long pos)
-{
-}
-
-void wxComboBox::SetInsertionPointEnd()
-{
-}
-
-long wxComboBox::GetInsertionPoint() const
-{
- return 0;
-}
-
-wxTextPos wxComboBox::GetLastPosition() const
-{
- return 0;
-}
-
-void wxComboBox::Replace(long from, long to, const wxString& value)
-{
-}
-
-void wxComboBox::Remove(long from, long to)
-{
-}
-
-void wxComboBox::SetSelection(long from, long to)
-{
-}
-
-bool wxComboBox::IsEditable() const
-{
- return false;
-}
-
-void wxComboBox::Undo()
-{
-}
-
-void wxComboBox::Redo()
-{
-}
-
-void wxComboBox::SelectAll()
-{
-}
-
-bool wxComboBox::CanCopy() const
-{
- return false;
-}
-
-bool wxComboBox::CanCut() const
-{
- return false;
-}
-
-bool wxComboBox::CanPaste() const
-{
- return false;
-}
-
-bool wxComboBox::CanUndo() const
-{
- return false;
-}
-
-bool wxComboBox::CanRedo() const
-{
- return false;
-}
-
-
-#endif // wxUSE_COMBOBOX
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/control.cpp
-// Purpose: wxControl class
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by: Wlodzimierz ABX Skiba - native implementation
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne, Wlodzimierz Skiba
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-// ============================================================================
-// declarations
-// ============================================================================
-
-// ----------------------------------------------------------------------------
-// headers
-// ----------------------------------------------------------------------------
-
-// For compilers that support precompilation, includes "wx.h".
-#include "wx/wxprec.h"
-
-#ifdef __BORLANDC__
- #pragma hdrstop
-#endif
-
-#if wxUSE_CONTROLS
-
-#include "wx/control.h"
-
-#ifndef WX_PRECOMP
- #include "wx/event.h"
- #include "wx/app.h"
- #include "wx/dcclient.h"
- #include "wx/log.h"
- #include "wx/settings.h"
- #include "wx/button.h"
- #include "wx/checkbox.h"
- #include "wx/radiobut.h"
- #include "wx/slider.h"
- #include "wx/toplevel.h"
-#endif
-
-#include "wx/tglbtn.h"
-
-#include <Control.h>
-#include <Form.h>
-#ifdef __WXPALMOS6__
- #include <StatusBar.h>
-#else
- #include <PenInputMgr.h>
-#endif // __WXPALMOS6__
-
-// ----------------------------------------------------------------------------
-// wxWin macros
-// ----------------------------------------------------------------------------
-
-IMPLEMENT_ABSTRACT_CLASS(wxControl, wxWindow)
-
-BEGIN_EVENT_TABLE(wxControl, wxWindow)
- EVT_ERASE_BACKGROUND(wxControl::OnEraseBackground)
-END_EVENT_TABLE()
-
-// ============================================================================
-// wxControl implementation
-// ============================================================================
-
-// ----------------------------------------------------------------------------
-// wxControl ctor/dtor
-// ----------------------------------------------------------------------------
-
-void wxControl::Init()
-{
- m_palmControl = false;
- m_palmField = false;
-}
-
-wxControl::~wxControl()
-{
- SendDestroyEvent();
-
- SetLabel(wxEmptyString);
-
- DestroyChildren();
-
- uint16_t index;
- FormType* form = (FormType*)GetObjectFormIndex(index);
- if(form!=NULL && index!=frmInvalidObjectId)
- {
- FrmRemoveObject((FormType **)&form,index);
- }
-}
-
-// ----------------------------------------------------------------------------
-// control window creation
-// ----------------------------------------------------------------------------
-
-bool wxControl::Create(wxWindow *parent,
- wxWindowID id,
- const wxPoint& pos,
- const wxSize& size,
- long style,
- const wxValidator& wxVALIDATOR_PARAM(validator),
- const wxString& name)
-{
- if ( !wxWindow::Create(parent, id, pos, size, style, name) )
- return false;
-
-#if wxUSE_VALIDATORS
- SetValidator(validator);
-#endif
-
- return true;
-}
-
-bool wxControl::PalmCreateControl(int style,
- const wxString& label,
- const wxPoint& pos,
- const wxSize& size,
- uint8_t groupID)
-{
- FormType* form = (FormType*)GetParentForm();
- if(form==NULL)
- return false;
-
-
- wxCoord x = pos.x == wxDefaultCoord ? 0 : pos.x,
- y = pos.y == wxDefaultCoord ? 0 : pos.y,
- w = size.x == wxDefaultCoord ? 1 : size.x,
- h = size.y == wxDefaultCoord ? 1 : size.y;
-
- wxWindow *win = this;
- while(win->GetParent())
- {
- win = win->GetParent();
- wxPoint pt(win->GetClientAreaOrigin());
- x += pt.x;
- y += pt.y;
- }
-
- ControlType *control = CtlNewControl(
- (void **)&form,
- GetId(),
- (ControlStyleType)style,
- NULL,
- x,
- y,
- w,
- h,
- stdFont,
- groupID,
- true
- );
-
- if(control==NULL)
- return false;
-
- m_palmControl = true;
-
- SetInitialSize(size);
- SetLabel(label);
- Show();
- return true;
-}
-
-bool wxControl::PalmCreateField(const wxString& label,
- const wxPoint& pos,
- const wxSize& size,
- bool editable,
- bool underlined,
- int justification)
-{
- FormType* form = (FormType*)GetParentForm();
- if(form==NULL)
- return false;
-
- m_label = label;
-
- wxCoord x = pos.x == wxDefaultCoord ? 0 : pos.x,
- y = pos.y == wxDefaultCoord ? 0 : pos.y,
- w = size.x == wxDefaultCoord ? 1 : size.x,
- h = size.y == wxDefaultCoord ? 1 : size.y;
-
- AdjustForParentClientOrigin(x, y);
-
- FieldType *field = FldNewField(
- (void **)&form,
- GetId(),
- x,
- y,
- w,
- h,
- stdFont,
- 10,
- editable,
- underlined,
- false,
- false,
- (JustificationType)justification,
- false,
- false,
- false
- );
-
- if(field==NULL)
- return false;
-
- m_palmField = true;
-
- SetInitialSize(size);
- SetLabel(label);
- Show();
- return true;
-}
-
-// ----------------------------------------------------------------------------
-// various accessors
-// ----------------------------------------------------------------------------
-
-WXFORMPTR wxControl::GetParentForm() const
-{
- wxWindow* parentTLW = GetParent();
- while ( parentTLW && !parentTLW->IsTopLevel() )
- {
- parentTLW = parentTLW->GetParent();
- }
- wxTopLevelWindowPalm* tlw = wxDynamicCast(parentTLW, wxTopLevelWindowPalm);
- if(!tlw)
- return NULL;
- return tlw->GetForm();
-}
-
-WXFORMPTR wxControl::GetObjectFormIndex(uint16_t& index) const
-{
- FormType* form = (FormType* )GetParentForm();
- if(form!=NULL)
- index = FrmGetObjectIndex(form, GetId());
- else
- index = frmInvalidObjectId;
- return form;
-}
-
-void* wxControl::GetObjectPtr() const
-{
- uint16_t index;
- FormType* form = (FormType*)GetObjectFormIndex(index);
- if(form==NULL || index==frmInvalidObjectId)return NULL;
- return FrmGetObjectPtr(form,index);
-}
-
-wxBorder wxControl::GetDefaultBorder() const
-{
- // we want to automatically give controls a sunken style (confusingly,
- // it may not really mean sunken at all as we map it to WS_EX_CLIENTEDGE
- // which is not sunken at all under Windows XP -- rather, just the default)
- return wxBORDER_SUNKEN;
-}
-
-void wxControl::SetIntValue(int val)
-{
- FormType* form = (FormType*)GetParentForm();
- if(form==NULL)
- return;
- uint16_t index = FrmGetObjectIndex(form, GetId());
- if(index==frmInvalidObjectId)
- return;
- FrmSetControlValue(form, index, val);
-}
-
-void wxControl::SetBoolValue(bool val)
-{
- SetIntValue(val?1:0);
-}
-
-bool wxControl::GetBoolValue() const
-{
- FormType* form = (FormType*)GetParentForm();
- if(form==NULL)
- return false;
- uint16_t index = FrmGetObjectIndex(form, GetId());
- if(index==frmInvalidObjectId)
- return false;
- return ( FrmGetControlValue(form, index) == 1 );
-}
-
-wxSize wxControl::DoGetBestSize() const
-{
- return wxSize(16, 16);
-}
-
-void wxControl::DoGetBounds( WXRECTANGLEPTR rect ) const
-{
- if(rect==NULL)
- return;
- FormType* form = (FormType*)GetParentForm();
- if(form==NULL)
- return;
- uint16_t index = FrmGetObjectIndex(form,GetId());
- if(index==frmInvalidObjectId)
- return;
- FrmGetObjectBounds(form,index,(RectangleType*)rect);
-}
-
-void wxControl::DoSetBounds( WXRECTANGLEPTR rect )
-{
- if(rect==NULL)
- return;
- FormType* form = (FormType*)GetParentForm();
- if(form==NULL)
- return;
- uint16_t index = FrmGetObjectIndex(form,GetId());
- if(index==frmInvalidObjectId)
- return;
- FrmSetObjectBounds(form,index,(RectangleType*)rect);
-}
-
-void wxControl::DoGetPosition( int *x, int *y ) const
-{
- int ox = 0, oy = 0;
- AdjustForParentClientOrigin(ox, oy);
-
- RectangleType rect;
- DoGetBounds(&rect);
-
- if(x)
- *x = rect.topLeft.x - ox;
- if(y)
- *y = rect.topLeft.y - oy;
-}
-
-void wxControl::DoGetSize( int *width, int *height ) const
-{
- RectangleType rect;
- DoGetBounds(&rect);
-
- if(width)
- *width = rect.extent.x;
- if(height)
- *height = rect.extent.y;
-}
-
-void wxControl::DoMoveWindow(int x, int y, int width, int height)
-{
- wxRect area = GetRect();
- RectangleType rect;
- rect.topLeft.x = x;
- rect.topLeft.y = y;
- rect.extent.x = width;
- rect.extent.y = height;
- DoSetBounds(&rect);
- GetParent()->Refresh(true, &area);
-}
-
-bool wxControl::Enable(bool enable)
-{
- ControlType *control = (ControlType *)GetObjectPtr();
- if( !IsPalmControl() || (control == NULL))
- return false;
- if( CtlEnabled(control) == enable)
- return false;
- CtlSetEnabled( control, enable);
- return true;
-}
-
-bool wxControl::IsEnabled() const
-{
- ControlType *control = (ControlType *)GetObjectPtr();
- if( !IsPalmControl() || (control == NULL))
- return false;
- return CtlEnabled(control);
-}
-
-bool wxControl::IsShown() const
-{
- return StatGetAttribute ( statAttrBarVisible , NULL );
-}
-
-bool wxControl::Show( bool show )
-{
- FormType* form = (FormType*)GetParentForm();
- if(form==NULL)
- return false;
- uint16_t index = FrmGetObjectIndex(form,GetId());
- if(index==frmInvalidObjectId)
- return false;
- if(show)
- FrmShowObject(form,index);
- else
- FrmHideObject(form,index);
- return true;
-}
-
-void wxControl::SetFieldLabel(const wxString& label)
-{
- FieldType* field = (FieldType*)GetObjectPtr();
- if(field==NULL)
- return;
-
- uint16_t newSize = label.length() + 1;
- MemHandle strHandle = FldGetTextHandle(field);
- FldSetTextHandle(field, NULL );
- if (strHandle)
- {
- if(MemHandleResize(strHandle, newSize)!=errNone)
- strHandle = 0;
- }
- else
- {
- strHandle = MemHandleNew( newSize );
- }
- if(!strHandle)
- return;
-
- char* str = (char*) MemHandleLock( strHandle );
- if(str==NULL)
- return;
-
- strcpy(str, label.c_str());
- MemHandleUnlock(strHandle);
- FldSetTextHandle(field, strHandle);
- FldRecalculateField(field, true);
-}
-
-void wxControl::SetControlLabel(const wxString& label)
-{
- ControlType* control = (ControlType*)GetObjectPtr();
- if(control==NULL)
- return;
- CtlSetLabel(control, "");
- m_label = label;
- if(!m_label.empty())
- CtlSetLabel(control,m_label.c_str());
-}
-
-void wxControl::SetLabel(const wxString& label)
-{
- if(IsPalmField())
- SetFieldLabel(label);
-
- // unlike other native controls, slider has no label
- if(IsPalmControl() && !wxDynamicCast(this,wxSlider))
- SetControlLabel(label);
-}
-
-wxString wxControl::GetFieldLabel()
-{
- FieldType* field = (FieldType*)GetObjectPtr();
- if(field==NULL)
- return wxEmptyString;
- return FldGetTextPtr(field);
-}
-
-wxString wxControl::GetControlLabel()
-{
- ControlType* control = (ControlType*)GetObjectPtr();
- if(control==NULL)
- return wxEmptyString;
- return CtlGetLabel(control);
-}
-#if 0
-wxString wxControl::GetLabel()
-{
- if(IsPalmField())
- return GetFieldLabel();
-
- // unlike other native controls, slider has no label
- if(IsPalmControl() && !wxDynamicCast(this,wxSlider))
- return GetControlLabel();
-
- return wxEmptyString;
-}
-#endif
-/* static */ wxVisualAttributes
-wxControl::GetClassDefaultAttributes(wxWindowVariant WXUNUSED(variant))
-{
- wxVisualAttributes attrs;
-
- // old school (i.e. not "common") controls use the standard dialog font
- // by default
- attrs.font = wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT);
-
- // most, or at least many, of the controls use the same colours as the
- // buttons -- others will have to override this (and possibly simply call
- // GetCompositeControlsDefaultAttributes() from their versions)
- attrs.colFg = wxSystemSettings::GetColour(wxSYS_COLOUR_BTNTEXT);
- attrs.colBg = wxSystemSettings::GetColour(wxSYS_COLOUR_BTNFACE);
-
- return attrs;
-}
-
-// another version for the "composite", i.e. non simple controls
-/* static */ wxVisualAttributes
-wxControl::GetCompositeControlsDefaultAttributes(wxWindowVariant WXUNUSED(variant))
-{
- wxVisualAttributes attrs;
- attrs.font = wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT);
- attrs.colFg = wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOWTEXT);
- attrs.colBg = wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW);
-
- return attrs;
-}
-
-// ----------------------------------------------------------------------------
-// message handling
-// ----------------------------------------------------------------------------
-
-bool wxControl::ProcessCommand(wxCommandEvent& event)
-{
- return HandleWindowEvent(event);
-}
-
-void wxControl::OnEraseBackground(wxEraseEvent& event)
-{
-}
-
-#endif // wxUSE_CONTROLS
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/cursor.cpp
-// Purpose: wxCursor class
-// 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
-
-#include "wx/cursor.h"
-
-#ifndef WX_PRECOMP
- #include "wx/utils.h"
- #include "wx/app.h"
- #include "wx/bitmap.h"
- #include "wx/icon.h"
- #include "wx/settings.h"
- #include "wx/intl.h"
- #include "wx/image.h"
- #include "wx/module.h"
-#endif
-
-// ----------------------------------------------------------------------------
-// private classes
-// ----------------------------------------------------------------------------
-
-
-// ----------------------------------------------------------------------------
-// wxWin macros
-// ----------------------------------------------------------------------------
-
-IMPLEMENT_DYNAMIC_CLASS(wxCursor, wxGDIObject)
-
-// ----------------------------------------------------------------------------
-// globals
-// ----------------------------------------------------------------------------
-
-// Current cursor, in order to hang on to cursor handle when setting the cursor
-// globally
-static wxCursor *gs_globalCursor = NULL;
-
-// ----------------------------------------------------------------------------
-// private classes
-// ----------------------------------------------------------------------------
-
-
-// ============================================================================
-// implementation
-// ============================================================================
-
-
-// ----------------------------------------------------------------------------
-// Cursors
-// ----------------------------------------------------------------------------
-
-wxCursor::wxCursor()
-{
-}
-
-#if wxUSE_IMAGE
-wxCursor::wxCursor(const wxImage& image)
-{
-}
-#endif
-
-wxCursor::wxCursor(const wxString& filename,
- wxBitmapType kind,
- int hotSpotX,
- int hotSpotY)
-{
-}
-
-// Cursors by stock number
-void wxCursor::InitFromStock(wxStockCursor idCursor)
-{
-}
-
-wxCursor::~wxCursor()
-{
-}
-
-// ----------------------------------------------------------------------------
-// other wxCursor functions
-// ----------------------------------------------------------------------------
-
-wxGDIImageRefData *wxCursor::CreateData() const
-{
- return NULL;
-}
-
-// ----------------------------------------------------------------------------
-// Global cursor setting
-// ----------------------------------------------------------------------------
-
-const wxCursor *wxGetGlobalCursor()
-{
- return NULL;
-}
-
-void wxSetCursor(const wxCursor& cursor)
-{
-}
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/data.cpp
-// Purpose: Various data
-// Author: Julian Smart
-// Modified by:
-// Created: 01/02/97
-// RCS-ID: $Id$
-// Copyright: (c) Julian Smart
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-// For compilers that support precompilation, includes "wx.h".
-#include "wx/wxprec.h"
-
-#ifdef __BORLANDC__
-#pragma hdrstop
-#endif
-
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/datectrl.cpp
-// Purpose: wxDatePickerCtrl implementation
-// Author: Wlodzimierz ABX Skiba
-// Modified by:
-// Created: 02/14/05
-// RCS-ID: $Id$
-// Copyright: (c) Wlodzimierz Skiba
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-// ============================================================================
-// declarations
-// ============================================================================
-
-// ----------------------------------------------------------------------------
-// headers
-// ----------------------------------------------------------------------------
-
-#include "wx/wxprec.h"
-
-#ifdef __BORLANDC__
- #pragma hdrstop
-#endif
-
-#if wxUSE_DATEPICKCTRL
-
-#include "wx/datectrl.h"
-
-#ifndef WX_PRECOMP
- #include "wx/intl.h"
- #include "wx/app.h"
-#endif
-
-#include "wx/dynlib.h"
-
-#include "wx/dateevt.h"
-
-#include <Control.h>
-#include <SelDay.h>
-
-IMPLEMENT_DYNAMIC_CLASS(wxDatePickerCtrl, wxControl)
-
-// ============================================================================
-// implementation
-// ============================================================================
-
-// ----------------------------------------------------------------------------
-// wxDatePickerCtrl creation
-// ----------------------------------------------------------------------------
-
-bool wxDatePickerCtrl::Create(wxWindow *parent,
- wxWindowID id,
- const wxDateTime& dt,
- const wxPoint& pos,
- const wxSize& size,
- long style,
- const wxValidator& validator,
- const wxString& name)
-{
- if(!wxControl::Create(parent, id, pos, size, style, validator, name))
- return false;
-
- wxString label;
-
- if ( dt.IsValid() )
- {
- label = dt.FormatDate();
- m_dt = dt;
- }
-
- if(!wxControl::PalmCreateControl(selectorTriggerCtl, label, pos, size))
- return false;
-
- return true;
-}
-
-// ----------------------------------------------------------------------------
-// wxDatePickerCtrl geometry
-// ----------------------------------------------------------------------------
-
-wxSize wxDatePickerCtrl::DoGetBestSize() const
-{
- return wxSize(16,16);
-}
-
-// ----------------------------------------------------------------------------
-// wxDatePickerCtrl operations
-// ----------------------------------------------------------------------------
-
-void wxDatePickerCtrl::SetValue(const wxDateTime& dt)
-{
- if ( dt.IsValid() )
- m_dt = dt;
-
- SetLabel(m_dt.FormatDate());
-}
-
-wxDateTime wxDatePickerCtrl::GetValue() const
-{
- return m_dt;
-}
-
-void wxDatePickerCtrl::SetRange(const wxDateTime& dt1, const wxDateTime& dt2)
-{
- // TODO
-}
-
-bool wxDatePickerCtrl::GetRange(wxDateTime *dt1, wxDateTime *dt2) const
-{
- // TODO
- return false;
-}
-
-// ----------------------------------------------------------------------------
-// helpers
-// ----------------------------------------------------------------------------
-
-bool wxDatePickerCtrl::SendClickEvent()
-{
- int16_t month = (int16_t)m_dt.GetMonth() + 1;
- int16_t day = m_dt.GetDay();
- int16_t year = m_dt.GetYear();
-
- //if(!SelectDay(selectDayByDay,&month,&day,&year,wxT("Pick date")))
- if(!SelectDay(selectDayByDay,&month,&day,&year, "Pick date"))
- return false;
- wxDateTime dt(m_dt);
- dt.Set((wxDateTime::wxDateTime_t)day,
- (wxDateTime::Month)(month-1),
- (int)year);
- SetValue(dt);
- return true;
-}
-
-#endif // wxUSE_DATEPICKCTRL
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/dc.cpp
-// Purpose: wxDC class
-// 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
-// ---------------------------------------------------------------------------
-
-#include <string.h>
-
-// For compilers that support precompilation, includes "wx.h".
-#include "wx/wxprec.h"
-
-#ifdef __BORLANDC__
- #pragma hdrstop
-#endif
-
-#ifndef WX_PRECOMP
- #include "wx/image.h"
- #include "wx/window.h"
- #include "wx/dc.h"
- #include "wx/utils.h"
- #include "wx/dialog.h"
- #include "wx/app.h"
- #include "wx/bitmap.h"
- #include "wx/dcmemory.h"
- #include "wx/log.h"
- #include "wx/icon.h"
- #include "wx/dcprint.h"
- #include "wx/module.h"
-#endif
-
-#include "wx/sysopt.h"
-#include "wx/dynlib.h"
-
-#include "wx/palmos/dc.h"
-
-#ifndef AC_SRC_ALPHA
- #define AC_SRC_ALPHA 1
-#endif
-
-#ifndef LAYOUT_RTL
- #define LAYOUT_RTL 1
-#endif
-
-/* Quaternary raster codes */
-#ifndef MAKEROP4
-#define MAKEROP4(fore,back) (DWORD)((((back) << 8) & 0xFF000000) | (fore))
-#endif
-
-// apparently with MicroWindows it is possible that HDC is 0 so we have to
-// check for this ourselves
-#ifdef __WXMICROWIN__
- #define WXMICROWIN_CHECK_HDC if ( !GetHDC() ) return;
- #define WXMICROWIN_CHECK_HDC_RET(x) if ( !GetHDC() ) return x;
-#else
- #define WXMICROWIN_CHECK_HDC
- #define WXMICROWIN_CHECK_HDC_RET(x)
-#endif
-
-IMPLEMENT_ABSTRACT_CLASS(wxPalmDCImpl, wxDCImpl)
-
-// ---------------------------------------------------------------------------
-// constants
-// ---------------------------------------------------------------------------
-
-// ROPs which don't have standard names (see "Ternary Raster Operations" in the
-// MSDN docs for how this and other numbers in wxDC::Blit() are obtained)
-#define DSTCOPY 0x00AA0029 // a.k.a. NOP operation
-
-// ----------------------------------------------------------------------------
-// macros for logical <-> device coords conversion
-// ----------------------------------------------------------------------------
-
-/*
- We currently let Windows do all the translations itself so these macros are
- not really needed (any more) but keep them to enhance readability of the
- code by allowing to see where are the logical and where are the device
- coordinates used.
- */
-
-#ifdef __WXWINCE__
- #define XLOG2DEV(x) ((x-m_logicalOriginX)*m_signX)
- #define YLOG2DEV(y) ((y-m_logicalOriginY)*m_signY)
- #define XDEV2LOG(x) ((x)*m_signX+m_logicalOriginX)
- #define YDEV2LOG(y) ((y)*m_signY+m_logicalOriginY)
-#else
- #define XLOG2DEV(x) (x)
- #define YLOG2DEV(y) (y)
- #define XDEV2LOG(x) (x)
- #define YDEV2LOG(y) (y)
-#endif
-
-// ---------------------------------------------------------------------------
-// private functions
-// ---------------------------------------------------------------------------
-
-// ----------------------------------------------------------------------------
-// private classes
-// ----------------------------------------------------------------------------
-
-#if wxUSE_DYNLIB_CLASS
-
-// helper class to cache dynamically loaded libraries and not attempt reloading
-// them if it fails
-class wxOnceOnlyDLLLoader
-{
-public:
- // ctor argument must be a literal string as we don't make a copy of it!
- wxOnceOnlyDLLLoader(const wxChar *dllName)
- : m_dllName(dllName)
- {
- }
-
-
- // return the symbol with the given name or NULL if the DLL not loaded
- // or symbol not present
- void *GetSymbol(const wxChar *name)
- {
- // we're prepared to handle errors here
- wxLogNull noLog;
-
- if ( m_dllName )
- {
- m_dll.Load(m_dllName);
-
- // reset the name whether we succeeded or failed so that we don't
- // try again the next time
- m_dllName = NULL;
- }
-
- return m_dll.IsLoaded() ? m_dll.GetSymbol(name) : NULL;
- }
-
- void Unload()
- {
- if ( m_dll.IsLoaded() )
- {
- m_dll.Unload();
- }
- }
-
-private:
- wxDynamicLibrary m_dll;
- const wxChar *m_dllName;
-};
-
-#endif // wxUSE_DYNLIB_CLASS
-
-// ===========================================================================
-// implementation
-// ===========================================================================
-
-// ---------------------------------------------------------------------------
-// wxPalmDCImpl
-// ---------------------------------------------------------------------------
-
-wxPalmDCImpl::wxPalmDCImpl( wxDC *owner, WXHDC hDC ) :
- wxDCImpl( owner )
-{
- Init();
- m_hDC = hDC;
-}
-
-wxPalmDCImpl::~wxPalmDCImpl()
-{
-}
-
-// This will select current objects out of the DC,
-// which is what you have to do before deleting the
-// DC.
-void wxPalmDCImpl::SelectOldObjects(WXHDC dc)
-{
-}
-
-// ---------------------------------------------------------------------------
-// clipping
-// ---------------------------------------------------------------------------
-
-void wxPalmDCImpl::UpdateClipBox()
-{
-}
-
-void
-wxPalmDCImpl::DoGetClippingBox(wxCoord *x, wxCoord *y, wxCoord *w, wxCoord *h) const
-{
-}
-
-void wxPalmDCImpl::DoSetClippingRegion(wxCoord x, wxCoord y, wxCoord w, wxCoord h)
-{
-}
-
-void wxPalmDCImpl::DoSetDeviceClippingRegion(const wxRegion& region)
-{
-}
-
-void wxPalmDCImpl::DestroyClippingRegion()
-{
-}
-
-// ---------------------------------------------------------------------------
-// query capabilities
-// ---------------------------------------------------------------------------
-
-bool wxPalmDCImpl::CanDrawBitmap() const
-{
- return false;
-}
-
-bool wxPalmDCImpl::CanGetTextExtent() const
-{
- return false;
-}
-
-int wxPalmDCImpl::GetDepth() const
-{
- return 0;
-}
-
-// ---------------------------------------------------------------------------
-// drawing
-// ---------------------------------------------------------------------------
-
-void wxPalmDCImpl::Clear()
-{
-}
-
-bool wxPalmDCImpl::DoFloodFill(wxCoord WXUNUSED_IN_WINCE(x),
- wxCoord WXUNUSED_IN_WINCE(y),
- const wxColour& WXUNUSED_IN_WINCE(col),
- wxFloodFillStyle WXUNUSED_IN_WINCE(style))
-{
- return false;
-}
-
-bool wxPalmDCImpl::DoGetPixel(wxCoord x, wxCoord y, wxColour *col) const
-{
- return false;
-}
-
-void wxPalmDCImpl::DoCrossHair(wxCoord x, wxCoord y)
-{
-}
-
-void wxPalmDCImpl::DoDrawLine(wxCoord x1, wxCoord y1, wxCoord x2, wxCoord y2)
-{
-}
-
-// Draws an arc of a circle, centred on (xc, yc), with starting point (x1, y1)
-// and ending at (x2, y2)
-void wxPalmDCImpl::DoDrawArc(wxCoord x1, wxCoord y1,
- wxCoord x2, wxCoord y2,
- wxCoord xc, wxCoord yc)
-{
-}
-
-void wxPalmDCImpl::DoDrawCheckMark(wxCoord x1, wxCoord y1,
- wxCoord width, wxCoord height)
-{
-}
-
-void wxPalmDCImpl::DoDrawPoint(wxCoord x, wxCoord y)
-{
-}
-
-void wxPalmDCImpl::DoDrawPolygon(int n,
- wxPoint points[],
- wxCoord xoffset,
- wxCoord yoffset,
- wxPolygonFillMode WXUNUSED_IN_WINCE(fillStyle))
-{
-}
-
-void
-wxPalmDCImpl::DoDrawPolyPolygon(int n,
- int count[],
- wxPoint points[],
- wxCoord xoffset,
- wxCoord yoffset,
- wxPolygonFillMode fillStyle)
-{
-}
-
-void wxPalmDCImpl::DoDrawLines(int n, wxPoint points[], wxCoord xoffset, wxCoord yoffset)
-{
-}
-
-void wxPalmDCImpl::DoDrawRectangle(wxCoord x, wxCoord y, wxCoord width, wxCoord height)
-{
-}
-
-void wxPalmDCImpl::DoDrawRoundedRectangle(wxCoord x, wxCoord y, wxCoord width, wxCoord height, double radius)
-{
-}
-
-void wxPalmDCImpl::DoDrawEllipse(wxCoord x, wxCoord y, wxCoord width, wxCoord height)
-{
-}
-
-#if wxUSE_SPLINES
-void wxPalmDCImpl::DoDrawSpline(const wxPointList *points)
-{
-}
-#endif
-
-// Chris Breeze 20/5/98: first implementation of DrawEllipticArc on Windows
-void wxPalmDCImpl::DoDrawEllipticArc(wxCoord x,wxCoord y,wxCoord w,wxCoord h,double sa,double ea)
-{
-}
-
-void wxPalmDCImpl::DoDrawIcon(const wxIcon& icon, wxCoord x, wxCoord y)
-{
-}
-
-void wxPalmDCImpl::DoDrawBitmap( const wxBitmap &bmp, wxCoord x, wxCoord y, bool useMask )
-{
-}
-
-void wxPalmDCImpl::DoDrawText(const wxString& text, wxCoord x, wxCoord y)
-{
-}
-
-void wxPalmDCImpl::DrawAnyText(const wxString& text, wxCoord x, wxCoord y)
-{
-}
-
-void wxPalmDCImpl::DoDrawRotatedText(const wxString& text,
- wxCoord x, wxCoord y,
- double angle)
-{
-}
-
-// ---------------------------------------------------------------------------
-// set GDI objects
-// ---------------------------------------------------------------------------
-
-#if wxUSE_PALETTE
-
-void wxPalmDCImpl::DoSelectPalette(bool realize)
-{
-}
-
-void wxPalmDCImpl::SetPalette(const wxPalette& palette)
-{
-}
-
-void wxPalmDCImpl::InitializePalette()
-{
-}
-
-#endif // wxUSE_PALETTE
-
-// SetFont/Pen/Brush() really ask to be implemented as a single template
-// function... but doing it is not worth breaking OpenWatcom build <sigh>
-
-void wxPalmDCImpl::SetFont(const wxFont& font)
-{
-}
-
-void wxPalmDCImpl::SetPen(const wxPen& pen)
-{
-}
-
-void wxPalmDCImpl::SetBrush(const wxBrush& brush)
-{
-}
-
-void wxPalmDCImpl::SetBackground(const wxBrush& brush)
-{
-}
-
-void wxPalmDCImpl::SetBackgroundMode(int mode)
-{
-}
-
-void wxPalmDCImpl::SetLogicalFunction(wxRasterOperationMode function)
-{
-}
-
-void wxPalmDCImpl::SetRop(WXHDC dc)
-{
-}
-
-bool wxPalmDCImpl::StartDoc(const wxString& WXUNUSED(message))
-{
- // We might be previewing, so return true to let it continue.
- return true;
-}
-
-void wxPalmDCImpl::EndDoc()
-{
-}
-
-void wxPalmDCImpl::StartPage()
-{
-}
-
-void wxPalmDCImpl::EndPage()
-{
-}
-
-// ---------------------------------------------------------------------------
-// text metrics
-// ---------------------------------------------------------------------------
-
-wxCoord wxPalmDCImpl::GetCharHeight() const
-{
- return 0;
-}
-
-wxCoord wxPalmDCImpl::GetCharWidth() const
-{
- return 0;
-}
-
-void wxPalmDCImpl::DoGetTextExtent(const wxString& string, wxCoord *x, wxCoord *y,
- wxCoord *descent, wxCoord *externalLeading,
- const wxFont *font) const
-{
-}
-
-
-// Each element of the array will be the width of the string up to and
-// including the coresoponding character in text.
-
-bool wxPalmDCImpl::DoGetPartialTextExtents(const wxString& text, wxArrayInt& widths) const
-{
- return false;
-}
-
-void wxPalmDCImpl::RealizeScaleAndOrigin()
-{
-}
-
-void wxPalmDCImpl::SetMapMode(wxMappingMode mode)
-{
-}
-
-void wxPalmDCImpl::SetUserScale(double x, double y)
-{
-}
-
-void wxPalmDCImpl::SetAxisOrientation(bool xLeftRight,
- bool yBottomUp)
-{
-}
-
-void wxPalmDCImpl::SetLogicalOrigin(wxCoord x, wxCoord y)
-{
-}
-
-void wxPalmDCImpl::SetDeviceOrigin(wxCoord x, wxCoord y)
-{
-}
-
-// ---------------------------------------------------------------------------
-// bit blit
-// ---------------------------------------------------------------------------
-
-bool wxPalmDCImpl::DoBlit(wxCoord dstX, wxCoord dstY,
- wxCoord dstWidth, wxCoord dstHeight,
- wxDC *source,
- wxCoord srcX, wxCoord srcY,
- wxRasterOperationMode rop, bool useMask,
- wxCoord srcMaskX, wxCoord srcMaskY)
-{
- return false;
-}
-
-bool wxPalmDCImpl::DoStretchBlit(wxCoord xdest, wxCoord ydest,
- wxCoord dstWidth, wxCoord dstHeight,
- wxDC *source,
- wxCoord xsrc, wxCoord ysrc,
- wxCoord srcWidth, wxCoord srcHeight,
- wxRasterOperationMode rop, bool useMask,
- wxCoord xsrcMask, wxCoord ysrcMask)
-{
- return false;
-}
-
-void wxPalmDCImpl::GetDeviceSize(int *width, int *height) const
-{
-}
-
-void wxPalmDCImpl::DoGetSizeMM(int *w, int *h) const
-{
-}
-
-wxSize wxPalmDCImpl::GetPPI() const
-{
- return wxSize(0, 0);
-}
-
-// For use by wxWidgets only, unless custom units are required.
-void wxPalmDCImpl::SetLogicalScale(double x, double y)
-{
-}
-
-// ----------------------------------------------------------------------------
-// DC caching
-// ----------------------------------------------------------------------------
-
-#if wxUSE_DC_CACHEING
-
-/*
- * This implementation is a bit ugly and uses the old-fashioned wxList class, so I will
- * improve it in due course, either using arrays, or simply storing pointers to one
- * entry for the bitmap, and two for the DCs. -- JACS
- */
-
-wxObjectList wxPalmDCImpl::sm_bitmapCache;
-wxObjectList wxPalmDCImpl::sm_dcCache;
-
-wxDCCacheEntry::wxDCCacheEntry(WXHBITMAP hBitmap, int w, int h, int depth)
-{
- m_bitmap = hBitmap;
- m_dc = 0;
- m_width = w;
- m_height = h;
- m_depth = depth;
-}
-
-wxDCCacheEntry::wxDCCacheEntry(WXHDC hDC, int depth)
-{
-}
-
-wxDCCacheEntry::~wxDCCacheEntry()
-{
-}
-
-wxDCCacheEntry* wxPalmDCImpl::FindBitmapInCache(WXHDC dc, int w, int h)
-{
- return NULL;
-}
-
-wxDCCacheEntry* wxPalmDCImpl::FindDCInCache(wxDCCacheEntry* notThis, WXHDC dc)
-{
- return NULL;
-}
-
-void wxPalmDCImpl::AddToBitmapCache(wxDCCacheEntry* entry)
-{
-}
-
-void wxPalmDCImpl::AddToDCCache(wxDCCacheEntry* entry)
-{
-}
-
-void wxPalmDCImpl::ClearCache()
-{
-}
-
-// Clean up cache at app exit
-class wxDCModule : public wxModule
-{
-public:
- virtual bool OnInit() { return true; }
- virtual void OnExit() { wxPalmDCImpl::ClearCache(); }
-
-private:
- DECLARE_DYNAMIC_CLASS(wxDCModule)
-};
-
-IMPLEMENT_DYNAMIC_CLASS(wxDCModule, wxModule)
-
-#endif // wxUSE_DC_CACHEING
-
-void wxPalmDCImpl::DoGradientFillLinear (const wxRect& rect,
- const wxColour& initialColour,
- const wxColour& destColour,
- wxDirection nDirection)
-{
-}
-
-#if wxUSE_DYNLIB_CLASS
-
-wxLayoutDirection wxPalmDCImpl::GetLayoutDirection() const
-{
- DWORD layout = wxGetDCLayout(GetHdc());
-
- if ( layout == (DWORD)-1 )
- return wxLayout_Default;
-
- return layout & LAYOUT_RTL ? wxLayout_RightToLeft : wxLayout_LeftToRight;
-}
-
-void wxPalmDCImpl::SetLayoutDirection(wxLayoutDirection dir)
-{
-}
-
-#else // !wxUSE_DYNLIB_CLASS
-
-// we can't provide RTL support without dynamic loading, so stub it out
-wxLayoutDirection wxPalmDCImpl::GetLayoutDirection() const
-{
- return wxLayout_Default;
-}
-
-void wxPalmDCImpl::SetLayoutDirection(wxLayoutDirection WXUNUSED(dir))
-{
-}
-
-#endif // wxUSE_DYNLIB_CLASS/!wxUSE_DYNLIB_CLASS
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/dcclient.cpp
-// Purpose: wxClientDC class
-// 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
-
-#include "wx/dcclient.h"
-#include "wx/palmos/dcclient.h"
-
-#ifndef WX_PRECOMP
- #include "wx/string.h"
- #include "wx/log.h"
- #include "wx/window.h"
-#endif
-
-// ----------------------------------------------------------------------------
-// array/list types
-// ----------------------------------------------------------------------------
-
-struct WXDLLEXPORT wxPaintDCInfo
-{
- wxPaintDCInfo(wxWindow *win, wxPaintDCImpl *dc)
- {
- hwnd = win->GetHWND();
- hdc = dc->GetHDC();
- count = 1;
- }
-
- WXHWND hwnd; // window for this DC
- WXHDC hdc; // the DC handle
- size_t count; // usage count
-};
-
-#include "wx/arrimpl.cpp"
-
-WX_DEFINE_OBJARRAY(wxArrayDCInfo)
-
-// ===========================================================================
-// implementation
-// ===========================================================================
-
-// ----------------------------------------------------------------------------
-// wxWindowDCImpl
-// ----------------------------------------------------------------------------
-
-IMPLEMENT_ABSTRACT_CLASS(wxWindowDCImpl, wxPalmDCImpl)
-
-wxWindowDCImpl::wxWindowDCImpl( wxDC *owner ) :
- wxPalmDCImpl( owner )
-{
-}
-
-wxWindowDCImpl::wxWindowDCImpl( wxDC *owner, wxWindow *window ) :
- wxPalmDCImpl( owner )
-{
- wxCHECK_RET( window, wxT("invalid window in wxWindowDCImpl") );
-}
-
-void wxWindowDCImpl::InitDC()
-{
-
- // since we are a window dc we need to grab the palette from the window
-#if wxUSE_PALETTE
- InitializePalette();
-#endif
-}
-
-void wxWindowDCImpl::DoGetSize(int *width, int *height) const
-{
- wxCHECK_RET( m_window, wxT("wxWindowDCImpl without a window?") );
-
- m_window->GetSize(width, height);
-}
-
-// ----------------------------------------------------------------------------
-// wxClientDCImpl
-// ----------------------------------------------------------------------------
-
-IMPLEMENT_ABSTRACT_CLASS(wxClientDCImpl, wxWindowDCImpl)
-
-wxClientDCImpl::wxClientDCImpl( wxDC *owner ) :
- wxWindowDCImpl( owner )
-{
-}
-
-wxClientDCImpl::wxClientDCImpl( wxDC *owner, wxWindow *window ) :
- wxWindowDCImpl( owner )
-{
-}
-
-void wxClientDCImpl::InitDC()
-{
- wxWindowDCImpl::InitDC();
-
- // in wxUniv build we must manually do some DC adjustments usually
- // performed by Windows for us
- //
- // we also need to take the menu/toolbar manually into account under
- // Windows CE because they're just another control there, not anything
- // special as usually under Windows
-#if defined(__WXUNIVERSAL__) || defined(__WXWINCE__)
- wxPoint ptOrigin = m_window->GetClientAreaOrigin();
- if ( ptOrigin.x || ptOrigin.y )
- {
- // no need to shift DC origin if shift is null
- SetDeviceOrigin(ptOrigin.x, ptOrigin.y);
- }
-
- // clip the DC to avoid overwriting the non client area
- SetClippingRegion(wxPoint(0,0), m_window->GetClientSize());
-#endif // __WXUNIVERSAL__ || __WXWINCE__
-}
-
-wxClientDCImpl::~wxClientDCImpl()
-{
-}
-
-void wxClientDCImpl::DoGetSize(int *width, int *height) const
-{
- wxCHECK_RET( m_window, wxT("wxClientDCImpl without a window?") );
-
- m_window->GetClientSize(width, height);
-}
-
-// ----------------------------------------------------------------------------
-// wxPaintDCImpl
-// ----------------------------------------------------------------------------
-
-// VZ: initial implementation (by JACS) only remembered the last wxPaintDC
-// created and tried to reuse it - this was supposed to take care of a
-// situation when a derived class OnPaint() calls base class OnPaint()
-// because in this case ::BeginPaint() shouldn't be called second time.
-//
-// I'm not sure how useful this is, however we must remember the HWND
-// associated with the last HDC as well - otherwise we may (and will!) try
-// to reuse the HDC for another HWND which is a nice recipe for disaster.
-//
-// So we store a list of windows for which we already have the DC and not
-// just one single hDC. This seems to work, but I'm really not sure about
-// the usefullness of the whole idea - IMHO it's much better to not call
-// base class OnPaint() at all, or, if we really want to allow it, add a
-// "wxPaintDC *" parameter to wxPaintEvent which should be used if it's
-// !NULL instead of creating a new DC.
-
-IMPLEMENT_ABSTRACT_CLASS(wxPaintDCImpl, wxClientDCImpl)
-
-wxArrayDCInfo wxPaintDCImpl::ms_cache;
-
-wxPaintDCImpl::wxPaintDCImpl( wxDC *owner ) :
- wxClientDCImpl( owner )
-{
-}
-
-wxPaintDCImpl::wxPaintDCImpl( wxDC *owner, wxWindow *window ) :
- wxClientDCImpl( owner )
-{
- wxCHECK_RET( window, wxT("NULL canvas in wxPaintDCImpl ctor") );
-
- m_window = window;
-
- // do we have a DC for this window in the cache?
- wxPaintDCInfo *info = FindInCache();
- if ( info )
- {
- m_hDC = info->hdc;
- info->count++;
- }
- else // not in cache, create a new one
- {
- //m_hDC = (WXHDC)::BeginPaint(GetHwndOf(m_window), &g_paintStruct);
- if (m_hDC)
- ms_cache.Add(new wxPaintDCInfo(m_window, this));
- }
-
- // Note: at this point m_hDC can be NULL under MicroWindows, when dragging.
- if (!GetHDC())
- return;
-
- // (re)set the DC parameters.
- InitDC();
-
- // the HDC can have a clipping box (which we didn't set), make sure our
- // DoGetClippingBox() checks for it
- m_clipping = true;
-}
-
-wxPaintDCImpl::~wxPaintDCImpl()
-{
- if ( m_hDC )
- {
- SelectOldObjects(m_hDC);
-
- size_t index;
- wxPaintDCInfo *info = FindInCache(&index);
-
- wxCHECK_RET( info, wxT("existing DC should have a cache entry") );
-
- if ( --info->count == 0 )
- {
- //::EndPaint(GetHwndOf(m_window), &g_paintStruct);
-
- ms_cache.RemoveAt(index);
-
- // Reduce the number of bogus reports of non-freed memory
- // at app exit
- if (ms_cache.IsEmpty())
- ms_cache.Clear();
- }
- //else: cached DC entry is still in use
-
- // prevent the base class dtor from ReleaseDC()ing it again
- m_hDC = 0;
- }
-}
-
-wxPaintDCInfo *wxPaintDCImpl::FindInCache(size_t *index) const
-{
- wxPaintDCInfo *info = NULL;
- size_t nCache = ms_cache.GetCount();
- for ( size_t n = 0; n < nCache; n++ )
- {
- wxPaintDCInfo *info1 = &ms_cache[n];
- if ( info1->hwnd == m_window->GetHWND() )
- {
- info = info1;
- if ( index )
- *index = n;
- break;
- }
- }
-
- return info;
-}
-
-// find the entry for this DC in the cache (keyed by the window)
-WXHDC wxPaintDCImpl::FindDCInCache(wxWindow* win)
-{
- size_t nCache = ms_cache.GetCount();
- for ( size_t n = 0; n < nCache; n++ )
- {
- wxPaintDCInfo *info = &ms_cache[n];
- if ( info->hwnd == win->GetHWND() )
- {
- return info->hdc;
- }
- }
- return 0;
-}
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/dcmemory.cpp
-// Purpose: wxMemoryDC class
-// 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
-
-#include "wx/dcmemory.h"
-#include "wx/palmos/dcmemory.h"
-
-#ifndef WX_PRECOMP
- #include "wx/utils.h"
- #include "wx/log.h"
-#endif
-
-// ----------------------------------------------------------------------------
-// wxMemoryDCImpl
-// ----------------------------------------------------------------------------
-
-IMPLEMENT_ABSTRACT_CLASS(wxMemoryDCImpl, wxPalmDCImpl)
-
-wxMemoryDCImpl::wxMemoryDCImpl( wxMemoryDC *owner )
- : wxPalmDCImpl( owner )
-{
- CreateCompatible(NULL);
- Init();
-}
-
-wxMemoryDCImpl::wxMemoryDCImpl( wxMemoryDC *owner, wxBitmap& bitmap )
- : wxPalmDCImpl( owner )
-{
- CreateCompatible(NULL);
- Init();
- DoSelect(bitmap);
-}
-
-wxMemoryDCImpl::wxMemoryDCImpl( wxMemoryDC *owner, wxDC *dc )
- : wxPalmDCImpl( owner )
-{
- wxCHECK_RET( dc, wxT("NULL dc in wxMemoryDC ctor") );
-
- CreateCompatible(dc);
-
- Init();
-}
-
-void wxMemoryDCImpl::Init()
-{
-}
-
-bool wxMemoryDCImpl::CreateCompatible(wxDC *dc)
-{
- wxDCImpl *impl = dc ? dc->GetImpl() : NULL ;
- wxPalmDCImpl *msw_impl = wxDynamicCast( impl, wxPalmDCImpl );
- if ( dc && !msw_impl)
- {
- m_ok = false;
- return false;
- }
-
- return false;
-}
-
-void wxMemoryDCImpl::DoSelect( const wxBitmap& bitmap )
-{
-}
-
-void wxMemoryDCImpl::DoGetSize(int *width, int *height) const
-{
-}
-
-wxBitmap wxMemoryDCImpl::DoGetAsBitmap(const wxRect* subrect) const
-{
-}
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/dcprint.cpp
-// Purpose: wxPrinterDC class
-// 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
-
-#if wxUSE_PRINTING_ARCHITECTURE
-
-#include "wx/dcprint.h"
-
-#ifndef WX_PRECOMP
- #include "wx/string.h"
- #include "wx/log.h"
- #include "wx/window.h"
- #include "wx/dcmemory.h"
- #include "wx/math.h"
-#endif
-
-#include "wx/palmos/private.h"
-
-#if wxUSE_WXDIB
-#include "wx/palmos/dib.h"
-#endif
-
-
-// ----------------------------------------------------------------------------
-// wxWin macros
-// ----------------------------------------------------------------------------
-
-IMPLEMENT_CLASS(wxPrinterDC, wxDC)
-
-// ============================================================================
-// implementation
-// ============================================================================
-
-// ----------------------------------------------------------------------------
-// wxPrinterDC construction
-// ----------------------------------------------------------------------------
-
-// This form is deprecated
-wxPrinterDC::wxPrinterDC(const wxString& driver_name,
- const wxString& device_name,
- const wxString& file,
- bool interactive,
- wxPrintOrientation orientation)
-{
-}
-
-wxPrinterDC::wxPrinterDC(const wxPrintData& printData)
-{
-}
-
-
-wxPrinterDC::wxPrinterDC(WXHDC dc)
-{
-}
-
-void wxPrinterDC::Init()
-{
-}
-
-// ----------------------------------------------------------------------------
-// wxPrinterDC {Start/End}{Page/Doc} methods
-// ----------------------------------------------------------------------------
-
-bool wxPrinterDC::StartDoc(const wxString& message)
-{
- return false;
-}
-
-void wxPrinterDC::EndDoc()
-{
-}
-
-void wxPrinterDC::StartPage()
-{
-}
-
-void wxPrinterDC::EndPage()
-{
-}
-
-wxRect wxPrinterDC::GetPaperRect() const
-{
- // Use page rect if we can't get paper rect.
- wxCoord w, h;
- GetSize(&w, &h);
- return wxRect(0, 0, w, h);
-}
-
-// Returns default device and port names
-static bool wxGetDefaultDeviceName(wxString& deviceName, wxString& portName)
-{
- return false;
-}
-
-// Gets an HDC for the specified printer configuration
-WXHDC WXDLLEXPORT wxGetPrinterDC(const wxPrintData& printDataConst)
-{
- return (WXHDC) 0;
-}
-
-// ----------------------------------------------------------------------------
-// wxPrinterDC bit blitting/bitmap drawing
-// ----------------------------------------------------------------------------
-
-// helper of DoDrawBitmap() and DoBlit()
-static
-bool DrawBitmapUsingStretchDIBits(HDC hdc,
- const wxBitmap& bmp,
- wxCoord x, wxCoord y)
-{
- return false;
-}
-
-void wxPrinterDC::DoDrawBitmap(const wxBitmap& bmp,
- wxCoord x, wxCoord y,
- bool useMask)
-{
-}
-
-bool wxPrinterDC::DoBlit(wxCoord xdest, wxCoord ydest,
- wxCoord width, wxCoord height,
- wxDC *source,
- wxCoord WXUNUSED(xsrc), wxCoord WXUNUSED(ysrc),
- wxRasterOperationMode WXUNUSED(rop), bool useMask,
- wxCoord WXUNUSED(xsrcMask), wxCoord WXUNUSED(ysrcMask))
-{
- return false;
-}
-
-#endif
- // wxUSE_PRINTING_ARCHITECTURE
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/dcscreen.cpp
-// Purpose: wxScreenDC class
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-// For compilers that support precompilation, includes "wx.h".
-#include "wx/wxprec.h"
-
-#ifdef __BORLANDC__
- #pragma hdrstop
-#endif
-
-#include "wx/palmos/dcscreen.h"
-
-#ifndef WX_PRECOMP
- #include "wx/string.h"
- #include "wx/window.h"
-#endif
-
-IMPLEMENT_ABSTRACT_CLASS(wxScreenDCImpl, wxPalmDCImpl)
-
-// Create a DC representing the whole screen
-wxScreenDCImpl::wxScreenDCImpl( wxScreenDC *owner ) :
- wxPalmDCImpl( owner )
-{
-}
-
-void wxScreenDCImpl::DoGetSize (int *w, int *h) const
-{
-}
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/dialog.cpp
-// Purpose: wxDialog class
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/12/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
-
-#include "wx/dialog.h"
-
-#ifndef WX_PRECOMP
- #include "wx/utils.h"
- #include "wx/frame.h"
- #include "wx/app.h"
- #include "wx/settings.h"
- #include "wx/intl.h"
- #include "wx/log.h"
-#endif
-
-#include "wx/evtloop.h"
-#include "wx/scopedptr.h"
-
-// ----------------------------------------------------------------------------
-// wxWin macros
-// ----------------------------------------------------------------------------
-
-// ----------------------------------------------------------------------------
-// wxDialogModalData
-// ----------------------------------------------------------------------------
-
-// this is simply a container for any data we need to implement modality which
-// allows us to avoid changing wxDialog each time the implementation changes
-class wxDialogModalData
-{
-public:
- wxDialogModalData(wxDialog *dialog) : m_evtLoop(dialog) { }
-
- void RunLoop()
- {
- m_evtLoop.Run();
- }
-
- void ExitLoop()
- {
- m_evtLoop.Exit();
- }
-
-private:
- wxModalEventLoop m_evtLoop;
-};
-
-wxDEFINE_TIED_SCOPED_PTR_TYPE(wxDialogModalData);
-
-// ============================================================================
-// implementation
-// ============================================================================
-
-// ----------------------------------------------------------------------------
-// wxDialog construction
-// ----------------------------------------------------------------------------
-
-void wxDialog::Init()
-{
-}
-
-bool wxDialog::Create(wxWindow *parent,
- wxWindowID id,
- const wxString& title,
- const wxPoint& pos,
- const wxSize& size,
- long style,
- const wxString& name)
-{
- if ( !wxTopLevelWindow::Create(parent, id, title, pos, size, style, name) )
- return false;
- return true;
-}
-
-wxDialog::~wxDialog()
-{
- Show (false);
-}
-
-// ----------------------------------------------------------------------------
-// showing the dialogs
-// ----------------------------------------------------------------------------
-
-bool wxDialog::Show(bool show)
-{
- if (show && CanDoLayoutAdaptation())
- DoLayoutAdaptation();
-
- return wxTopLevelWindowPalm::Show (show);
-}
-
-void wxDialog::Raise()
-{
-}
-
-// show dialog modally
-int wxDialog::ShowModal()
-{
- Show (true);
-
- if (errNone == FrmDoDialog ((FormType *)wxTopLevelWindow::GetForm())) {
- return 0;
- }
- return -1;
-}
-
-void wxDialog::EndModal(int retCode)
-{
-}
-
+++ /dev/null
-///////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/dib.cpp
-// Purpose: implements wxDIB class
-// 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
-
-#if wxUSE_WXDIB
-
-#ifndef WX_PRECOMP
- #include "wx/string.h"
- #include "wx/log.h"
- #include "wx/intl.h"
- #include "wx/bitmap.h"
- #include "wx/image.h"
-#endif //WX_PRECOMP
-
-#include "wx/file.h"
-
-#include "wx/palmos/dib.h"
-
-// ----------------------------------------------------------------------------
-// private functions
-// ----------------------------------------------------------------------------
-
-// calculate the number of palette entries needed for the bitmap with this
-// number of bits per pixel
-static inline WORD GetNumberOfColours(WORD bitsPerPixel)
-{
- // only 1, 4 and 8bpp bitmaps use palettes (well, they could be used with
- // 24bpp ones too but we don't support this as I think it's quite uncommon)
- return bitsPerPixel <= 8 ? 1 << bitsPerPixel : 0;
-}
-
-// wrapper around ::GetObject() for DIB sections
-static inline bool GetDIBSection(HBITMAP hbmp, DIBSECTION *ds)
-{
- // note that at least under Win9x (this doesn't seem to happen under Win2K
- // but this doesn't mean anything, of course), GetObject() may return
- // sizeof(DIBSECTION) for a bitmap which is *not* a DIB section and the way
- // to check for it is by looking at the bits pointer
- return ::GetObject(hbmp, sizeof(DIBSECTION), ds) == sizeof(DIBSECTION) &&
- ds->dsBm.bmBits;
-}
-
-// ============================================================================
-// implementation
-// ============================================================================
-
-// ----------------------------------------------------------------------------
-// wxDIB creation
-// ----------------------------------------------------------------------------
-
-bool wxDIB::Create(int width, int height, int depth)
-{
- return false;
-}
-
-bool wxDIB::Create(const wxBitmap& bmp)
-{
- return false;
-}
-
-bool wxDIB::CopyFromDDB(HBITMAP hbmp)
-{
- return false;
-}
-
-
-// ----------------------------------------------------------------------------
-// Loading/saving the DIBs
-// ----------------------------------------------------------------------------
-
-bool wxDIB::Load(const wxString& filename)
-{
- return false;
-}
-
-bool wxDIB::Save(const wxString& filename)
-{
- return false;
-}
-
-// ----------------------------------------------------------------------------
-// wxDIB accessors
-// ----------------------------------------------------------------------------
-
-void wxDIB::DoGetObject() const
-{
-}
-
-// ----------------------------------------------------------------------------
-// DDB <-> DIB conversions
-// ----------------------------------------------------------------------------
-
-HBITMAP wxDIB::CreateDDB(HDC hdc) const
-{
- return 0;
-}
-
-/* static */
-HBITMAP wxDIB::ConvertToBitmap(const BITMAPINFO *pbmi, HDC hdc, void *bits)
-{
- return 0;
-}
-
-/* static */
-size_t wxDIB::ConvertFromBitmap(BITMAPINFO *pbi, HBITMAP hbmp)
-{
- return 0;
-}
-
-/* static */
-HGLOBAL wxDIB::ConvertFromBitmap(HBITMAP hbmp)
-{
- return NULL;
-}
-
-// ----------------------------------------------------------------------------
-// palette support
-// ----------------------------------------------------------------------------
-
-#if wxUSE_PALETTE
-
-wxPalette *wxDIB::CreatePalette() const
-{
- return NULL;
-}
-
-#endif // wxUSE_PALETTE
-
-// ----------------------------------------------------------------------------
-// wxImage support
-// ----------------------------------------------------------------------------
-
-#if wxUSE_IMAGE
-
-bool wxDIB::Create(const wxImage& image)
-{
- return false;
-}
-
-wxImage wxDIB::ConvertToImage() const
-{
- return wxNullImage;
-}
-
-#endif // wxUSE_IMAGE
-
-#endif // wxUSE_WXDIB
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/dir.cpp
-// Purpose: wxDir implementation for PalmOS
-// 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/intl.h"
- #include "wx/log.h"
-#endif // PCH
-
-#include "wx/dir.h"
-
-#include "pfall.h"
-
-// ----------------------------------------------------------------------------
-// define the types and functions used for file searching
-// ----------------------------------------------------------------------------
-
-// ----------------------------------------------------------------------------
-// constants
-// ----------------------------------------------------------------------------
-
-#ifndef MAX_PATH
- #define MAX_PATH 260 // from VC++ headers
-#endif
-
-// ----------------------------------------------------------------------------
-// macros
-// ----------------------------------------------------------------------------
-
-#define M_DIR ((wxDirData *)m_data)
-
-// ----------------------------------------------------------------------------
-// private classes
-// ----------------------------------------------------------------------------
-
-// this class stores everything we need to enumerate the files
-class wxDirData
-{
-public:
- wxDirData(const wxString& dirname);
- ~wxDirData();
-
- bool IsOk() const { return m_dir != NULL; }
-
- void SetFileSpec(const wxString& filespec) { m_filespec = filespec; }
- void SetFlags(int flags) { m_flags = flags; }
-
- void Close();
- bool Read(wxString *filename);
-
- const wxString& GetName() const { return m_dirname; }
-
-private:
- void *m_dir;
-
- wxString m_dirname;
- wxString m_filespec;
-
- int m_flags;
-};
-
-// ============================================================================
-// implementation
-// ============================================================================
-
-// ----------------------------------------------------------------------------
-// wxDirData
-// ----------------------------------------------------------------------------
-
-wxDirData::wxDirData(const wxString& dirname)
- : m_dirname(dirname)
-{
- m_dir = NULL;
-
- // throw away the trailing slashes
- size_t n = m_dirname.length();
- wxCHECK_RET( n, wxT("empty dir name in wxDir") );
-
- while ( n > 0 && m_dirname[--n] == '/' )
- ;
-
- m_dirname.Truncate(n + 1);
-
- // do open the dir
- //m_dir = opendir(m_dirname.fn_str());
-}
-
-wxDirData::~wxDirData()
-{
- Close ();
-}
-
-void wxDirData::Close()
-{
- if ( m_dir )
- {
- if ( svfs_dir_endfind (m_dir) != 0 )
- {
- wxLogLastError(wxT("svfs_dir_endfind"));
- }
- m_dir = NULL;
- }
-}
-
-bool wxDirData::Read(wxString *filename)
-{
- //dirent *de = NULL; // just to silence compiler warnings
- int ret;
- char tmpbuf[300];
- bool matches = false;
- size_t flags_search;
-
- // speed up string concatenation in the loop a bit
- wxString path = m_dirname;
- path += wxT('/');
- path.reserve(path.length() + 255);
-
- wxString de_d_name;
- de_d_name.reserve(500);
- flags_search = 0;
- if (wxDIR_DIRS & m_flags) {
- flags_search |= SDIR_DIRS;
- }
- if (wxDIR_FILES & m_flags) {
- flags_search |= SDIR_FILES;
- }
- if (NULL == m_dir) {
-#ifdef _PACC_VER
-// walk around the PalmOS pacc compiler bug
- ret = svfs_dir_findfirst (m_dirname.fn_str().data(), &m_dir, tmpbuf, sizeof (tmpbuf), flags_search);
-#else
- ret = svfs_dir_findfirst (m_dirname.fn_str(), &m_dir, tmpbuf, sizeof (tmpbuf), flags_search);
-#endif
- } else {
- ret = svfs_dir_findnext (m_dir, tmpbuf, sizeof (tmpbuf));
- }
- for (; ret > 0; ) {
-
-#if wxUSE_UNICODE
- de_d_name = wxString(tmpbuf, *wxConvFileName);
-#else
- de_d_name = tmpbuf;
-#endif
-
- // don't return "." and ".." unless asked for
- if ( tmpbuf[0] == '.' &&
- ((tmpbuf[1] == '.' && tmpbuf[2] == '\0') ||
- (tmpbuf[1] == '\0')) )
- {
- if ( !(m_flags & wxDIR_DOTDOT) )
- continue;
-
- // we found a valid match
- break;
- }
-
- // check the name
- if ( m_filespec.empty() )
- {
- matches = m_flags & wxDIR_HIDDEN ? true : tmpbuf[0] != '.';
- }
- else
- {
- // test against the pattern
- matches = wxMatchWild(m_filespec, de_d_name,
- !(m_flags & wxDIR_HIDDEN));
- }
- if (matches)
- break;
- ret = svfs_dir_findnext (m_dir, tmpbuf, sizeof (tmpbuf));
- }
-
- *filename = de_d_name;
-
- return true;
-}
-
-// ----------------------------------------------------------------------------
-// wxDir construction/destruction
-// ----------------------------------------------------------------------------
-
-wxDir::wxDir(const wxString& dirname)
-{
- m_data = NULL;
- (void)Open(dirname);
-}
-
-bool wxDir::Open(const wxString& dirname)
-{
- delete M_DIR;
- m_data = new wxDirData(dirname);
-
- return true;
-}
-
-bool wxDir::IsOpened() const
-{
- return m_data != NULL;
-}
-
-wxString wxDir::GetName() const
-{
- wxString name;
- if ( m_data )
- {
- name = M_DIR->GetName();
- if ( !name.empty() && (name.Last() == wxT('/')) )
- {
- // chop off the last (back)slash
- name.Truncate(name.length() - 1);
- }
- }
-
- return name;
-}
-
-wxDir::~wxDir()
-{
- delete M_DIR;
-}
-
-// ----------------------------------------------------------------------------
-// wxDir enumerating
-// ----------------------------------------------------------------------------
-
-bool wxDir::GetFirst(wxString *filename,
- const wxString& filespec,
- int flags) const
-{
- wxCHECK_MSG( IsOpened(), false, wxT("must wxDir::Open() first") );
- M_DIR->Close();
- M_DIR->SetFileSpec(filespec);
- M_DIR->SetFlags(flags);
- return GetNext(filename);
-}
-
-bool wxDir::GetNext(wxString *filename) const
-{
- wxCHECK_MSG( IsOpened(), false, wxT("must wxDir::Open() first") );
- wxCHECK_MSG( filename, false, wxT("bad pointer in wxDir::GetNext()") );
- return M_DIR->Read(filename);
-}
-
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/dirdlg.cpp
-// Purpose: wxDirDialog
-// 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
-
-#if wxUSE_DIRDLG
-
-#if defined(__WIN95__) && !defined(__GNUWIN32_OLD__) && wxUSE_OLE
-
-#include "wx/dirdlg.h"
-
-#ifndef WX_PRECOMP
- #include "wx/utils.h"
- #include "wx/dialog.h"
- #include "wx/log.h"
- #include "wx/app.h" // for GetComCtl32Version()
-#endif
-
-#include "wx/palmos/private.h"
-
-// ----------------------------------------------------------------------------
-// constants
-// ----------------------------------------------------------------------------
-
-#ifndef MAX_PATH
- #define MAX_PATH 4096 // be generous
-#endif
-
-#ifndef BIF_NEWDIALOGSTYLE
- #define BIF_NEWDIALOGSTYLE 0x0040
-#endif
-
-#ifndef BIF_NONEWFOLDERBUTTON
- #define BIF_NONEWFOLDERBUTTON 0x0200
-#endif
-
-#ifndef BIF_EDITBOX
- #define BIF_EDITBOX 16
-#endif
-
-// ----------------------------------------------------------------------------
-// wxWidgets macros
-// ----------------------------------------------------------------------------
-
-IMPLEMENT_CLASS(wxDirDialog, wxDialog)
-
-// ----------------------------------------------------------------------------
-// private functions prototypes
-// ----------------------------------------------------------------------------
-
-// free the parameter
-static void ItemListFree(LPITEMIDLIST pidl);
-
-// the callback proc for the dir dlg
-static int CALLBACK BrowseCallbackProc(HWND hwnd, UINT uMsg, LPARAM lp,
- LPARAM pData);
-
-
-// ============================================================================
-// implementation
-// ============================================================================
-
-// ----------------------------------------------------------------------------
-// wxDirDialog
-// ----------------------------------------------------------------------------
-
-wxDirDialog::wxDirDialog(wxWindow *parent,
- const wxString& message,
- const wxString& defaultPath,
- long style,
- const wxPoint& WXUNUSED(pos),
- const wxSize& WXUNUSED(size),
- const wxString& WXUNUSED(name))
-{
-}
-
-void wxDirDialog::SetPath(const wxString& path)
-{
-}
-
-int wxDirDialog::ShowModal()
-{
- return wxID_OK;
-}
-
-// ----------------------------------------------------------------------------
-// private functions
-// ----------------------------------------------------------------------------
-
-static int CALLBACK
-BrowseCallbackProc(HWND hwnd, UINT uMsg, LPARAM lp, LPARAM pData)
-{
- return 0;
-}
-
-
-static void ItemListFree(LPITEMIDLIST pidl)
-{
- if ( pidl )
- {
- LPMALLOC pMalloc;
- SHGetMalloc(&pMalloc);
- if ( pMalloc )
- {
- pMalloc->Free(pidl);
- pMalloc->Release();
- }
- else
- {
- wxLogLastError(wxT("SHGetMalloc"));
- }
- }
-}
-
-#else
- #include "../generic/dirdlgg.cpp"
-#endif // compiler/platform on which the code here compiles
-
-#endif // wxUSE_DIRDLG
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/dragimag.cpp
-// Purpose: wxDragImage
-// 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
-
-#if wxUSE_DRAGIMAGE
-
-#ifndef WX_PRECOMP
- #include <stdio.h>
- #include "wx/window.h"
- #include "wx/dcclient.h"
- #include "wx/dcscreen.h"
- #include "wx/dcmemory.h"
- #include "wx/settings.h"
- #include "wx/intl.h"
- #include "wx/log.h"
- #include "wx/frame.h"
- #include "wx/image.h"
-#endif
-
-#include "wx/palmos/dragimag.h"
-#include "wx/palmos/private.h"
-
-// ----------------------------------------------------------------------------
-// macros
-// ----------------------------------------------------------------------------
-
-IMPLEMENT_DYNAMIC_CLASS(wxDragImage, wxObject)
-
-#define GetHimageList() ((HIMAGELIST) m_hImageList)
-
-// ============================================================================
-// implementation
-// ============================================================================
-
-// ----------------------------------------------------------------------------
-// wxDragImage ctors/dtor
-// ----------------------------------------------------------------------------
-
-wxDragImage::wxDragImage()
-{
-}
-
-wxDragImage::~wxDragImage()
-{
-}
-
-void wxDragImage::Init()
-{
-}
-
-// Attributes
-////////////////////////////////////////////////////////////////////////////
-
-
-// Operations
-////////////////////////////////////////////////////////////////////////////
-
-// Create a drag image from a bitmap and optional cursor
-bool wxDragImage::Create(const wxBitmap& image, const wxCursor& cursor)
-{
- return false;
-}
-
-// Create a drag image from an icon and optional cursor
-bool wxDragImage::Create(const wxIcon& image, const wxCursor& cursor)
-{
- return false;
-}
-
-// Create a drag image from a string and optional cursor
-bool wxDragImage::Create(const wxString& str, const wxCursor& cursor)
-{
- return false;
-}
-
-#if wxUSE_TREECTRL
-// Create a drag image for the given tree control item
-bool wxDragImage::Create(const wxTreeCtrl& treeCtrl, wxTreeItemId& id)
-{
- return false;
-}
-#endif
-
-#if wxUSE_LISTCTRL
-// Create a drag image for the given list control item
-bool wxDragImage::Create(const wxListCtrl& listCtrl, long id)
-{
- return false;
-}
-#endif
-
-// Begin drag
-bool wxDragImage::BeginDrag(const wxPoint& hotspot, wxWindow* window, bool fullScreen, wxRect* rect)
-{
- return false;
-}
-
-// Begin drag. hotspot is the location of the drag position relative to the upper-left
-// corner of the image. This is full screen only. fullScreenRect gives the
-// position of the window on the screen, to restrict the drag to.
-bool wxDragImage::BeginDrag(const wxPoint& hotspot, wxWindow* window, wxWindow* fullScreenRect)
-{
- return false;
-}
-
-// End drag
-bool wxDragImage::EndDrag()
-{
- return false;
-}
-
-// Move the image: call from OnMouseMove. Pt is in window client coordinates if window
-// is non-NULL, or in screen coordinates if NULL.
-bool wxDragImage::Move(const wxPoint& pt)
-{
- return false;
-}
-
-bool wxDragImage::Show()
-{
- return false;
-}
-
-bool wxDragImage::Hide()
-{
- return false;
-}
-
-
-#endif // wxUSE_DRAGIMAGE
+++ /dev/null
-///////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/enhmeta.cpp
-// Purpose: implementation of wxEnhMetaFileXXX classes
-// 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
-
-#if wxUSE_ENH_METAFILE
-
-#ifndef WX_PRECOMP
- #include "wx/string.h"
- #include "wx/log.h"
-#endif //WX_PRECOMP
-
-#include "wx/metafile.h"
-#include "wx/clipbrd.h"
-
-#include "wx/palmos/private.h"
-
-// ----------------------------------------------------------------------------
-// wxWin macros
-// ----------------------------------------------------------------------------
-
-IMPLEMENT_DYNAMIC_CLASS(wxEnhMetaFile, wxObject)
-IMPLEMENT_ABSTRACT_CLASS(wxEnhMetaFileDC, wxDC)
-
-// ----------------------------------------------------------------------------
-// macros
-// ----------------------------------------------------------------------------
-
-#define GetEMF() ((HENHMETAFILE)m_hMF)
-#define GetEMFOf(mf) ((HENHMETAFILE)((mf).m_hMF))
-
-// ----------------------------------------------------------------------------
-// private functions
-// ----------------------------------------------------------------------------
-
-// we must pass NULL if the string is empty to metafile functions
-static inline const wxChar *GetMetaFileName(const wxString& fn)
- { return !fn ? NULL : fn.c_str(); }
-
-// ============================================================================
-// implementation
-// ============================================================================
-
-// ----------------------------------------------------------------------------
-// wxEnhMetaFile
-// ----------------------------------------------------------------------------
-
-void wxEnhMetaFile::Assign(const wxEnhMetaFile& mf)
-{
-}
-
-void wxEnhMetaFile::Free()
-{
-}
-
-bool wxEnhMetaFile::Play(wxDC *dc, wxRect *rectBound)
-{
- return false;
-}
-
-wxSize wxEnhMetaFile::GetSize() const
-{
- wxSize size = wxDefaultSize;
-
- return size;
-}
-
-bool wxEnhMetaFile::SetClipboard(int WXUNUSED(width), int WXUNUSED(height))
-{
- return false;
-}
-
-// ----------------------------------------------------------------------------
-// wxEnhMetaFileDC
-// ----------------------------------------------------------------------------
-
-wxEnhMetaFileDC::wxEnhMetaFileDC(const wxString& filename,
- int width, int height,
- const wxString& description)
-{
-}
-
-wxEnhMetaFile *wxEnhMetaFileDC::Close()
-{
- return NULL;
-}
-
-wxEnhMetaFileDC::~wxEnhMetaFileDC()
-{
-}
-
-#if wxUSE_DRAG_AND_DROP
-
-// ----------------------------------------------------------------------------
-// wxEnhMetaFileDataObject
-// ----------------------------------------------------------------------------
-
-wxDataFormat
-wxEnhMetaFileDataObject::GetPreferredFormat(Direction WXUNUSED(dir)) const
-{
- return wxDF_ENHMETAFILE;
-}
-
-size_t wxEnhMetaFileDataObject::GetFormatCount(Direction WXUNUSED(dir)) const
-{
- // wxDF_ENHMETAFILE and wxDF_METAFILE
- return 2;
-}
-
-void wxEnhMetaFileDataObject::GetAllFormats(wxDataFormat *formats,
- Direction WXUNUSED(dir)) const
-{
-}
-
-size_t wxEnhMetaFileDataObject::GetDataSize(const wxDataFormat& format) const
-{
- return 0u;
-}
-
-bool wxEnhMetaFileDataObject::GetDataHere(const wxDataFormat& format, void *buf) const
-{
- return false;
-}
-
-bool wxEnhMetaFileDataObject::SetData(const wxDataFormat& format,
- size_t WXUNUSED(len),
- const void *buf)
-{
- return false;
-}
-
-// ----------------------------------------------------------------------------
-// wxEnhMetaFileSimpleDataObject
-// ----------------------------------------------------------------------------
-
-size_t wxEnhMetaFileSimpleDataObject::GetDataSize() const
-{
- return 0u;
-}
-
-bool wxEnhMetaFileSimpleDataObject::GetDataHere(void *buf) const
-{
- return false;
-}
-
-bool wxEnhMetaFileSimpleDataObject::SetData(size_t WXUNUSED(len),
- const void *buf)
-{
- return false;
-}
-
-
-#endif // wxUSE_DRAG_AND_DROP
-
-#endif // wxUSE_ENH_METAFILE
+++ /dev/null
-///////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/evtloop.cpp
-// Purpose: implements wxGUIEventLoop for Palm OS
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10.14.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/window.h"
- #include "wx/app.h"
-#endif //WX_PRECOMP
-
-#include "wx/evtloop.h"
-
-#include "wx/tooltip.h"
-#include "wx/except.h"
-
-#if wxUSE_THREADS
- #include "wx/thread.h"
-
- // define the array of MSG strutures
- WX_DECLARE_OBJARRAY(MSG, wxMsgArray);
-
- #include "wx/arrimpl.cpp"
-
- WX_DEFINE_OBJARRAY(wxMsgArray);
-#endif // wxUSE_THREADS
-
-#include <Event.h>
-#include <SystemMgr.h>
-#include <Menu.h>
-#include <Form.h>
-
-// ============================================================================
-// wxGUIEventLoop implementation
-// ============================================================================
-
-// ----------------------------------------------------------------------------
-// ctor/dtor
-// ----------------------------------------------------------------------------
-
-wxGUIEventLoop::wxGUIEventLoop()
-{
- m_shouldExit = false;
- m_exitcode = 0;
-}
-
-// ----------------------------------------------------------------------------
-// wxGUIEventLoop message processing
-// ----------------------------------------------------------------------------
-
-void wxGUIEventLoop::ProcessMessage(WXMSG *msg)
-{
-}
-
-bool wxGUIEventLoop::PreProcessMessage(WXMSG *msg)
-{
- return false;
-}
-
-// ----------------------------------------------------------------------------
-// wxGUIEventLoop running and exiting
-// ----------------------------------------------------------------------------
-
-bool wxGUIEventLoop::IsRunning() const
-{
- return true;
-}
-
-int wxGUIEventLoop::Run()
-{
- status_t error;
- EventType event;
-
- wxEventLoopActivator activate(this);
-
- do {
- wxTheApp && wxTheApp->ProcessIdle();
-
- EvtGetEvent(&event, evtWaitForever);
-
- if (SysHandleEvent(&event))
- continue;
-
- if (MenuHandleEvent(0, &event, &error))
- continue;
-
- FrmDispatchEvent(&event);
-
- } while (event.eType != appStopEvent);
-
- return 0;
-}
-
-void wxGUIEventLoop::Exit(int rc)
-{
- FrmCloseAllForms();
-
- EventType AppStop;
- AppStop.eType=appStopEvent;
- EvtAddEventToQueue(&AppStop);
-}
-
-// ----------------------------------------------------------------------------
-// wxGUIEventLoop message processing dispatching
-// ----------------------------------------------------------------------------
-
-bool wxGUIEventLoop::Pending() const
-{
- return false;
-}
-
-bool wxGUIEventLoop::Dispatch()
-{
- return false;
-}
-
-int wxGUIEventLoop::DispatchTimeout(unsigned long timeout)
-{
- return -1;
-}
-
-void wxGUIEventLoop::WakeUp()
-{
- return;
-}
-
-bool wxGUIEventLoop::YieldFor(long eventsToProcess)
-{
- return true;
-}
-
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/fdrepdlg.cpp
-// Purpose: wxFindReplaceDialog class
-// 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
-
-#if wxUSE_FINDREPLDLG
-
-#ifndef WX_PRECOMP
- #include "wx/intl.h"
- #include "wx/log.h"
-#endif
-
-#include "wx/palmos/private.h"
-
-#include "wx/fdrepdlg.h"
-
-// ----------------------------------------------------------------------------
-// functions prototypes
-// ----------------------------------------------------------------------------
-
-// ----------------------------------------------------------------------------
-// wxWin macros
-// ----------------------------------------------------------------------------
-
-IMPLEMENT_DYNAMIC_CLASS(wxFindReplaceDialog, wxDialog)
-
-// ----------------------------------------------------------------------------
-// wxFindReplaceDialogImpl: the internals of wxFindReplaceDialog
-// ----------------------------------------------------------------------------
-
-class WXDLLEXPORT wxFindReplaceDialogImpl
-{
-public:
- wxFindReplaceDialogImpl(wxFindReplaceDialog *dialog, int flagsWX);
- ~wxFindReplaceDialogImpl();
-
- void InitFindWhat(const wxString& str);
- void InitReplaceWith(const wxString& str);
-
- void SubclassDialog(HWND hwnd);
-
- static UINT GetFindDialogMessage() { return ms_msgFindDialog; }
-
- // only for passing to ::FindText or ::ReplaceText
- FINDREPLACE *GetPtrFindReplace() { return &m_findReplace; }
-
- // set/query the "closed by user" flag
- void SetClosedByUser() { m_wasClosedByUser = TRUE; }
- bool WasClosedByUser() const { return m_wasClosedByUser; }
-
-private:
- void InitString(const wxString& str, LPTSTR *ppStr, WORD *pLen);
-
- // the owner of the dialog
- HWND m_hwndOwner;
-
- // the previous window proc of our owner
- WNDPROC m_oldParentWndProc;
-
- // the find replace data used by the dialog
- FINDREPLACE m_findReplace;
-
- // TRUE if the user closed us, FALSE otherwise
- bool m_wasClosedByUser;
-
- // registered Message for Dialog
- static UINT ms_msgFindDialog;
-
- wxDECLARE_NO_COPY_CLASS(wxFindReplaceDialogImpl);
-};
-
-UINT wxFindReplaceDialogImpl::ms_msgFindDialog = 0;
-
-// ============================================================================
-// implementation
-// ============================================================================
-
-// ----------------------------------------------------------------------------
-// wxFindReplaceDialogImpl
-// ----------------------------------------------------------------------------
-
-wxFindReplaceDialogImpl::wxFindReplaceDialogImpl(wxFindReplaceDialog *dialog,
- int flagsWX)
-{
-}
-
-void wxFindReplaceDialogImpl::InitString(const wxString& str,
- LPTSTR *ppStr, WORD *pLen)
-{
-}
-
-void wxFindReplaceDialogImpl::InitFindWhat(const wxString& str)
-{
-}
-
-void wxFindReplaceDialogImpl::InitReplaceWith(const wxString& str)
-{
-}
-
-void wxFindReplaceDialogImpl::SubclassDialog(HWND hwnd)
-{
-}
-
-wxFindReplaceDialogImpl::~wxFindReplaceDialogImpl()
-{
-}
-
-// ============================================================================
-// wxFindReplaceDialog implementation
-// ============================================================================
-
-// ----------------------------------------------------------------------------
-// wxFindReplaceDialog ctors/dtor
-// ----------------------------------------------------------------------------
-
-void wxFindReplaceDialog::Init()
-{
-}
-
-wxFindReplaceDialog::wxFindReplaceDialog(wxWindow *parent,
- wxFindReplaceData *data,
- const wxString &title,
- int flags)
- : wxFindReplaceDialogBase(parent, data, title, flags)
-{
-}
-
-wxFindReplaceDialog::~wxFindReplaceDialog()
-{
-}
-
-bool wxFindReplaceDialog::Create(wxWindow *parent,
- wxFindReplaceData *data,
- const wxString &title,
- int flags)
-{
- return false;
-}
-
-// ----------------------------------------------------------------------------
-// wxFindReplaceData show/hide
-// ----------------------------------------------------------------------------
-
-bool wxFindReplaceDialog::Show(bool show)
-{
- return false;
-}
-
-// ----------------------------------------------------------------------------
-// wxFindReplaceDialog title handling
-// ----------------------------------------------------------------------------
-
-void wxFindReplaceDialog::SetTitle( const wxString& title)
-{
-}
-
-wxString wxFindReplaceDialog::GetTitle() const
-{
- return wxString;
-}
-
-// ----------------------------------------------------------------------------
-// wxFindReplaceDialog position/size
-// ----------------------------------------------------------------------------
-
-void wxFindReplaceDialog::DoSetSize(int WXUNUSED(x), int WXUNUSED(y),
- int WXUNUSED(width), int WXUNUSED(height),
- int WXUNUSED(sizeFlags))
-{
- // ignore - we can't change the size of this standard dialog
- return;
-}
-
-// NB: of course, both of these functions are completely bogus, but it's better
-// than nothing
-void wxFindReplaceDialog::DoGetSize(int *width, int *height) const
-{
-}
-
-void wxFindReplaceDialog::DoGetClientSize(int *width, int *height) const
-{
-}
-
-#endif // wxUSE_FINDREPLDLG
-
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/filedlg.cpp
-// Purpose: wxFileDialog
-// 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
-
-#if wxUSE_FILEDLG && !defined(__SMARTPHONE__)
-
-#include "wx/filedlg.h"
-
-#ifndef WX_PRECOMP
- #include "wx/utils.h"
- #include "wx/msgdlg.h"
- #include "wx/filefn.h"
- #include "wx/intl.h"
- #include "wx/log.h"
- #include "wx/app.h"
- #include "wx/math.h"
-#endif
-
-#include <stdlib.h>
-#include <string.h>
-
-#include "wx/filename.h"
-#include "wx/tokenzr.h"
-
-#ifndef OFN_EXPLORER
- #define OFN_EXPLORER 0x00080000
-#endif
-
-// ----------------------------------------------------------------------------
-// constants
-// ----------------------------------------------------------------------------
-
-#define wxMAXPATH 1024
-
-# define wxMAXFILE 1024
-
-# define wxMAXEXT 5
-
-// ============================================================================
-// implementation
-// ============================================================================
-
-IMPLEMENT_CLASS(wxFileDialog, wxFileDialogBase)
-
-// ----------------------------------------------------------------------------
-// wxFileDialog
-// ----------------------------------------------------------------------------
-
-wxFileDialog::wxFileDialog(wxWindow *parent,
- const wxString& message,
- const wxString& defaultDir,
- const wxString& defaultFileName,
- const wxString& wildCard,
- long style,
- const wxPoint& pos,
- const wxSize& sz,
- const wxString& name)
- :wxFileDialogBase(parent, message, defaultDir, defaultFileName, wildCard, style, pos, sz, name)
-
-{
-}
-
-void wxFileDialog::GetPaths(wxArrayString& paths) const
-{
-}
-
-void wxFileDialog::GetFilenames(wxArrayString& files) const
-{
-}
-
-void wxFileDialog::SetPath(const wxString& path)
-{
-}
-
-int wxFileDialog::ShowModal()
-{
- return wxID_CANCEL;
-}
-
-#endif // wxUSE_FILEDLG
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/font.cpp
-// Purpose: wxFont class
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/14/04
-// RCS-ID: $Id$
-// Copyright: (c) wxWidgets team
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-// ============================================================================
-// declarations
-// ============================================================================
-
-// ----------------------------------------------------------------------------
-// headers
-// ----------------------------------------------------------------------------
-
-// For compilers that support precompilation, includes "wx.h".
-#include "wx/wxprec.h"
-
-#ifdef __BORLANDC__
- #pragma hdrstop
-#endif
-
-#include "wx/font.h"
-
-#ifndef WX_PRECOMP
- #include "wx/list.h"
- #include "wx/utils.h"
- #include "wx/app.h"
- #include "wx/log.h"
- #include "wx/encinfo.h"
-#endif // WX_PRECOMP
-
-#include "wx/fontutil.h"
-#include "wx/fontmap.h"
-
-#include "wx/tokenzr.h"
-
-// ----------------------------------------------------------------------------
-// constants
-// ----------------------------------------------------------------------------
-
-// ----------------------------------------------------------------------------
-// wxFontRefData - the internal description of the font
-// ----------------------------------------------------------------------------
-
-class WXDLLEXPORT wxFontRefData: public wxGDIRefData
-{
-public:
- // constructors
- wxFontRefData()
- {
- Init(-1, wxSize(0, 0), false, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL,
- wxFONTWEIGHT_NORMAL, false, wxEmptyString,
- wxFONTENCODING_DEFAULT);
- }
-
- wxFontRefData(int size,
- const wxSize& pixelSize,
- bool sizeUsingPixels,
- wxFontFamily family,
- wxFontStyle style,
- wxFontWeight weight,
- bool underlined,
- const wxString& faceName,
- wxFontEncoding encoding)
- {
- Init(size, pixelSize, sizeUsingPixels, family, style, weight,
- underlined, faceName, encoding);
- }
-
- wxFontRefData(const wxNativeFontInfo& info, WXHFONT hFont = 0)
- {
- Init(info, hFont);
- }
-
- wxFontRefData(const wxFontRefData& data)
- {
- if ( data.m_nativeFontInfoOk )
- {
- Init(data.m_nativeFontInfo);
- }
- else
- {
- Init(data.m_pointSize, data.m_pixelSize, data.m_sizeUsingPixels,
- data.m_family, data.m_style, data.m_weight,
- data.m_underlined, data.m_faceName, data.m_encoding);
- }
- }
-
- virtual ~wxFontRefData();
-
- // operations
- bool Alloc(wxFont *font);
-
- void Free();
-
- // all wxFont accessors
- int GetPointSize() const
- {
- return m_nativeFontInfoOk ? m_nativeFontInfo.GetPointSize()
- : m_pointSize;
- }
-
- wxSize GetPixelSize() const
- {
- return m_nativeFontInfoOk ? m_nativeFontInfo.GetPixelSize()
- : m_pixelSize;
- }
-
- bool IsUsingSizeInPixels() const
- {
- return m_nativeFontInfoOk ? true : m_sizeUsingPixels;
- }
-
- int GetFamily() const
- {
- return m_family;
- }
-
- int GetStyle() const
- {
- return m_nativeFontInfoOk ? m_nativeFontInfo.GetStyle()
- : m_style;
- }
-
- int GetWeight() const
- {
- return m_nativeFontInfoOk ? m_nativeFontInfo.GetWeight()
- : m_weight;
- }
-
- bool GetUnderlined() const
- {
- return m_nativeFontInfoOk ? m_nativeFontInfo.GetUnderlined()
- : m_underlined;
- }
-
- wxString GetFaceName() const
- {
- wxString s;
- if ( m_nativeFontInfoOk )
- s = m_nativeFontInfo.GetFaceName();
- else
- s = m_faceName;
-
- return s;
- }
-
- wxFontEncoding GetEncoding() const
- {
- return m_nativeFontInfoOk ? m_nativeFontInfo.GetEncoding()
- : m_encoding;
- }
-
- WXHFONT GetHFONT() const { return m_hFont; }
-
- // ... and setters
- void SetPointSize(int pointSize)
- {
- if ( m_nativeFontInfoOk )
- {
- m_nativeFontInfo.SetPointSize(pointSize);
- }
- else
- {
- m_pointSize = pointSize;
- m_sizeUsingPixels = false;
- }
- }
-
- void SetPixelSize(const wxSize& pixelSize)
- {
- if ( m_nativeFontInfoOk )
- {
- m_nativeFontInfo.SetPixelSize(pixelSize);
- }
- else
- {
- m_pixelSize = pixelSize;
- m_sizeUsingPixels = true;
- }
- }
-
- void SetFamily(wxFontFamily family)
- {
- m_family = family;
- }
-
- void SetStyle(wxFontStyle style)
- {
- if ( m_nativeFontInfoOk )
- m_nativeFontInfo.SetStyle((wxFontStyle)style);
- else
- m_style = style;
- }
-
- void SetWeight(wxFontWeight weight)
- {
- if ( m_nativeFontInfoOk )
- m_nativeFontInfo.SetWeight((wxFontWeight)weight);
- else
- m_weight = weight;
- }
-
- bool SetFaceName(const wxString& faceName)
- {
- if ( m_nativeFontInfoOk )
- m_nativeFontInfo.SetFaceName(faceName);
- else
- m_faceName = faceName;
- }
-
- void SetUnderlined(bool underlined)
- {
- if ( m_nativeFontInfoOk )
- m_nativeFontInfo.SetUnderlined(underlined);
- else
- m_underlined = underlined;
- }
-
- void SetEncoding(wxFontEncoding encoding)
- {
- if ( m_nativeFontInfoOk )
- m_nativeFontInfo.SetEncoding(encoding);
- else
- m_encoding = encoding;
- }
-
- // native font info tests
- bool HasNativeFontInfo() const { return m_nativeFontInfoOk; }
-
- const wxNativeFontInfo& GetNativeFontInfo() const
- { return m_nativeFontInfo; }
-
-protected:
- // common part of all ctors
- void Init(int size,
- const wxSize& pixelSize,
- bool sizeUsingPixels,
- wxFontFamily family,
- wxFontStyle style,
- wxFontWeight weight,
- bool underlined,
- const wxString& faceName,
- wxFontEncoding encoding);
-
- void Init(const wxNativeFontInfo& info, WXHFONT hFont = 0);
-
- // font characterstics
- int m_pointSize;
- wxSize m_pixelSize;
- bool m_sizeUsingPixels;
- wxFontFamily m_family;
- wxFontStyle m_style;
- wxFontWeight m_weight;
- bool m_underlined;
- wxString m_faceName;
- wxFontEncoding m_encoding;
-
- // Windows font handle
- WXHFONT m_hFont;
-
- // Native font info
- wxNativeFontInfo m_nativeFontInfo;
- bool m_nativeFontInfoOk;
-};
-
-#define M_FONTDATA ((wxFontRefData*)m_refData)
-
-// ============================================================================
-// implementation
-// ============================================================================
-
-// ----------------------------------------------------------------------------
-// wxFontRefData
-// ----------------------------------------------------------------------------
-
-void wxFontRefData::Init(int pointSize,
- const wxSize& pixelSize,
- bool sizeUsingPixels,
- wxFontFamily family,
- wxFontStyle style,
- wxFontWeight weight,
- bool underlined,
- const wxString& faceName,
- wxFontEncoding encoding)
-{
-}
-
-void wxFontRefData::Init(const wxNativeFontInfo& info, WXHFONT hFont)
-{
-}
-
-wxFontRefData::~wxFontRefData()
-{
-}
-
-bool wxFontRefData::Alloc(wxFont *font)
-{
- return false;
-}
-
-void wxFontRefData::Free()
-{
-}
-
-// ----------------------------------------------------------------------------
-// wxNativeFontInfo
-// ----------------------------------------------------------------------------
-
-void wxNativeFontInfo::SetPixelSize(const wxSize& pixelSize)
-{
-}
-
-// ----------------------------------------------------------------------------
-// wxFont
-// ----------------------------------------------------------------------------
-
-bool wxFont::Create(const wxNativeFontInfo& info, WXHFONT hFont)
-{
- return false;
-}
-
-wxFont::wxFont(const wxString& fontdesc)
-{
-}
-
-/* Constructor for a font. Note that the real construction is done
- * in wxDC::SetFont, when information is available about scaling etc.
- */
-bool wxFont::DoCreate(int pointSize,
- const wxSize& pixelSize,
- bool sizeUsingPixels,
- wxFontFamily family,
- wxFontStyle style,
- wxFontWeight weight,
- bool underlined,
- const wxString& faceName,
- wxFontEncoding encoding)
-{
- return false;
-}
-
-wxFont::~wxFont()
-{
-}
-
-// ----------------------------------------------------------------------------
-// real implementation
-// ----------------------------------------------------------------------------
-wxGDIRefData *wxFont::CreateGDIRefData() const
-{
- return new wxFontRefData();
-}
-
-wxGDIRefData *wxFont::CloneGDIRefData(const wxGDIRefData *data) const
-{
- return new wxFontRefData(*static_cast<const wxFontRefData *>(data));
-}
-
-bool wxFont::RealizeResource()
-{
- return false;
-}
-
-bool wxFont::FreeResource(bool WXUNUSED(force))
-{
- return false;
-}
-
-WXHANDLE wxFont::GetResourceHandle() const
-{
- return (WXHANDLE)0;
-}
-
-bool wxFont::IsFree() const
-{
- return false;
-}
-
-// ----------------------------------------------------------------------------
-// change font attribute: we recreate font when doing it
-// ----------------------------------------------------------------------------
-
-void wxFont::SetPointSize(int pointSize)
-{
-}
-
-void wxFont::SetPixelSize(const wxSize& pixelSize)
-{
-}
-
-void wxFont::SetFamily(wxFontFamily family)
-{
-}
-
-void wxFont::SetStyle(wxFontStyle style)
-{
-}
-
-void wxFont::SetWeight(wxFontWeight weight)
-{
-}
-
-bool wxFont::SetFaceName(const wxString& faceName)
-{
- return true;
-}
-
-void wxFont::SetUnderlined(bool underlined)
-{
-}
-
-void wxFont::SetEncoding(wxFontEncoding encoding)
-{
-}
-
-void wxFont::DoSetNativeFontInfo(const wxNativeFontInfo& info)
-{
-}
-
-// ----------------------------------------------------------------------------
-// accessors
-// ----------------------------------------------------------------------------
-
-int wxFont::GetPointSize() const
-{
- return 0;
-}
-
-wxSize wxFont::GetPixelSize() const
-{
- return wxSize(0,0);
-}
-
-bool wxFont::IsUsingSizeInPixels() const
-{
- return false;
-}
-
-wxFontFamily wxFont::DoGetFamily() const
-{
- return wxFONTFAMILY_ROMAN;
-}
-
-wxFontStyle wxFont::GetStyle() const
-{
- return wxFONTSTYLE_NORMAL;
-}
-
-wxFontWeight wxFont::GetWeight() const
-{
- return wxFONTWEIGHT_NORMAL;
-}
-
-bool wxFont::GetUnderlined() const
-{
- return false;
-}
-
-wxString wxFont::GetFaceName() const
-{
- return wxEmptyString;
-}
-
-wxFontEncoding wxFont::GetEncoding() const
-{
- return wxFONTENCODING_SYSTEM;
-}
-
-const wxNativeFontInfo *wxFont::GetNativeFontInfo() const
-{
- return NULL;
-}
-
-wxString wxFont::GetNativeFontInfoDesc() const
-{
- wxCHECK_MSG( IsOk(), wxEmptyString, wxT("invalid font") );
-
- // be sure we have an HFONT associated...
- wxConstCast(this, wxFont)->RealizeResource();
- return wxFontBase::GetNativeFontInfoDesc();
-}
-
-wxString wxFont::GetNativeFontInfoUserDesc() const
-{
- wxCHECK_MSG( IsOk(), wxEmptyString, wxT("invalid font") );
-
- // be sure we have an HFONT associated...
- wxConstCast(this, wxFont)->RealizeResource();
- return wxFontBase::GetNativeFontInfoUserDesc();
-}
-
-bool wxFont::IsFixedWidth() const
-{
- return false;
-}
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/fontdlg.cpp
-// Purpose: wxFontDialog class
-// 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
-
-#if wxUSE_FONTDLG
-
-#include "wx/fontdlg.h"
-
-#ifndef WX_PRECOMP
- #include "wx/utils.h"
- #include "wx/dialog.h"
- #include "wx/math.h"
- #include "wx/log.h"
-#endif
-
-#include "wx/palmos/private.h"
-
-#include <stdlib.h>
-#include <string.h>
-
-// ----------------------------------------------------------------------------
-// wxWin macros
-// ----------------------------------------------------------------------------
-
-IMPLEMENT_DYNAMIC_CLASS(wxFontDialog, wxDialog)
-
-// ============================================================================
-// implementation
-// ============================================================================
-
-// ----------------------------------------------------------------------------
-// wxFontDialog
-// ----------------------------------------------------------------------------
-
-int wxFontDialog::ShowModal()
-{
- return wxID_CANCEL;
-}
-
-#endif // wxUSE_FONTDLG
+++ /dev/null
-///////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/fontenum.cpp
-// Purpose: wxFontEnumerator class for Palm OS
-// 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
-
-#include "wx/fontenum.h"
-
-#ifndef WX_PRECOMP
- #include "wx/font.h"
- #include "wx/encinfo.h"
-#endif
-
-#include "wx/fontutil.h"
-#include "wx/fontmap.h"
-
-// ============================================================================
-// implementation
-// ============================================================================
-
-// ----------------------------------------------------------------------------
-// wxFontEnumerator
-// ----------------------------------------------------------------------------
-
-bool wxFontEnumerator::EnumerateFacenames(wxFontEncoding encoding,
- bool fixedWidthOnly)
-{
- return false;
-}
-
-bool wxFontEnumerator::EnumerateEncodings(const wxString& family)
-{
- return false;
-}
+++ /dev/null
-///////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/fontutil.cpp
-// Purpose: font-related helper functions
-// 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/string.h"
- #include "wx/log.h"
- #include "wx/intl.h"
- #include "wx/encinfo.h"
-#endif //WX_PRECOMP
-
-#include "wx/fontutil.h"
-#include "wx/fontmap.h"
-
-#include "wx/tokenzr.h"
-
-#ifndef HANGUL_CHARSET
-# define HANGUL_CHARSET 129
-#endif
-
-// ============================================================================
-// implementation
-// ============================================================================
-
-// ----------------------------------------------------------------------------
-// wxNativeEncodingInfo
-// ----------------------------------------------------------------------------
-
-// ----------------------------------------------------------------------------
-// helper functions
-// ----------------------------------------------------------------------------
-
-bool wxGetNativeFontEncoding(wxFontEncoding encoding,
- wxNativeEncodingInfo *info)
-{
- return false;
-}
-
-bool wxTestFontEncoding(const wxNativeEncodingInfo& info)
-{
- return false;
-}
-
-// ----------------------------------------------------------------------------
-// wxFontEncoding <-> CHARSET_XXX
-// ----------------------------------------------------------------------------
-
-wxFontEncoding wxGetFontEncFromCharSet(int cs)
-{
- return wxFONTENCODING_SYSTEM;
-}
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/frame.cpp
-// Purpose: wxFrame
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by: Wlodzimierz ABX Skiba - more than minimal functionality
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne, Wlodzimierz Skiba
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-// ============================================================================
-// declarations
-// ============================================================================
-
-// ----------------------------------------------------------------------------
-// headers
-// ----------------------------------------------------------------------------
-
-// For compilers that support precompilation, includes "wx.h".
-#include "wx/wxprec.h"
-
-#ifdef __BORLANDC__
- #pragma hdrstop
-#endif
-
-#include "wx/frame.h"
-
-#ifndef WX_PRECOMP
- #include "wx/app.h"
- #include "wx/menu.h"
- #include "wx/utils.h"
- #include "wx/dialog.h"
- #include "wx/settings.h"
- #include "wx/dcclient.h"
- #include "wx/mdi.h"
- #include "wx/panel.h"
- #include "wx/log.h"
- #include "wx/toolbar.h"
- #include "wx/statusbr.h"
- #include "wx/menuitem.h"
-#endif // WX_PRECOMP
-
-#ifdef __WXUNIVERSAL__
- #include "wx/univ/theme.h"
- #include "wx/univ/colschem.h"
-#endif // __WXUNIVERSAL__
-
-#include <Event.h>
-#include <Form.h>
-
-// ----------------------------------------------------------------------------
-// globals
-// ----------------------------------------------------------------------------
-
-#if wxUSE_MENUS_NATIVE
- extern wxMenu *wxCurrentPopupMenu;
-#endif // wxUSE_MENUS_NATIVE
-
-// ----------------------------------------------------------------------------
-// event tables
-// ----------------------------------------------------------------------------
-
-BEGIN_EVENT_TABLE(wxFrame, wxFrameBase)
- EVT_PAINT(wxFrame::OnPaint)
-END_EVENT_TABLE()
-
-// ============================================================================
-// implementation
-// ============================================================================
-
-// ----------------------------------------------------------------------------
-// creation/destruction
-// ----------------------------------------------------------------------------
-
-void wxFrame::Init()
-{
-}
-
-bool wxFrame::Create(wxWindow *parent,
- wxWindowID id,
- const wxString& title,
- const wxPoint& pos,
- const wxSize& size,
- long style,
- const wxString& name)
-{
- if ( !wxTopLevelWindow::Create(parent, id, title, pos, size, style, name) )
- return false;
-
- return true;
-}
-
-wxFrame::~wxFrame()
-{
-}
-
-// ----------------------------------------------------------------------------
-// wxFrame client size calculations
-// ----------------------------------------------------------------------------
-
-void wxFrame::DoSetClientSize(int width, int height)
-{
-}
-
-// Get size *available for subwindows* i.e. excluding menu bar, toolbar etc.
-void wxFrame::DoGetClientSize(int *x, int *y) const
-{
- wxSize size = GetSize();
- wxPoint pos = GetClientAreaOrigin();
- *x = size.x - pos.x - 1;
- *y = size.y - pos.y - 1;
-}
-
-// ----------------------------------------------------------------------------
-// wxFrame: various geometry-related functions
-// ----------------------------------------------------------------------------
-
-void wxFrame::Raise()
-{
-}
-
-#if wxUSE_MENUS_NATIVE
-
-void wxFrame::InternalSetMenuBar()
-{
-}
-
-bool wxFrame::HandleMenuOpen()
-{
- if(!m_frameMenuBar)
- return false;
-
- m_frameMenuBar->LoadMenu();
- return true;
-}
-
-bool wxFrame::HandleMenuSelect(WXEVENTPTR event)
-{
- const EventType *palmEvent = (EventType *)event;
- const int ItemID = palmEvent->data.menu.itemID;
-
- if (!m_frameMenuBar)
- return false;
-
- const int item = m_frameMenuBar->ProcessCommand(ItemID);
- if (item==-1)
- return false;
-
- wxCommandEvent commandEvent(wxEVT_COMMAND_MENU_SELECTED, item);
- commandEvent.SetEventObject(this);
-
- HandleWindowEvent(commandEvent);
- return true;
-}
-
-#endif // wxUSE_MENUS_NATIVE
-
-void wxFrame::OnPaint(wxPaintEvent& event)
-{
-#if wxUSE_STATUSBAR
- if( m_frameStatusBar )
- m_frameStatusBar->DrawStatusBar();
-#endif // wxUSE_STATUSBAR
-}
-
-// Pass true to show full screen, false to restore.
-bool wxFrame::ShowFullScreen(bool show, long style)
-{
- return false;
-}
-
-// ----------------------------------------------------------------------------
-// tool/status bar stuff
-// ----------------------------------------------------------------------------
-
-#if wxUSE_TOOLBAR
-
-wxToolBar* wxFrame::CreateToolBar(long style, wxWindowID id, const wxString& name)
-{
- return NULL;
-}
-
-void wxFrame::PositionToolBar()
-{
-}
-
-#endif // wxUSE_TOOLBAR
-
-// ----------------------------------------------------------------------------
-// frame state (iconized/maximized/...)
-// ----------------------------------------------------------------------------
-
-// propagate our state change to all child frames: this allows us to emulate X
-// Windows behaviour where child frames float independently of the parent one
-// on the desktop, but are iconized/restored with it
-void wxFrame::IconizeChildFrames(bool bIconize)
-{
-}
-
-// ----------------------------------------------------------------------------
-// wxFrame size management: we exclude the areas taken by menu/status/toolbars
-// from the client area, so the client area is what's really available for the
-// frame contents
-// ----------------------------------------------------------------------------
-
-// get the origin of the client area in the client coordinates
-wxPoint wxFrame::GetClientAreaOrigin() const
-{
- // there is no API to get client area but we know
- // it starts after titlebar and 1 pixel of form border
- Coord maxY = wxSystemSettings::GetMetric(wxSYS_SCREEN_Y),
- X = 1,
- Y = 0;
- while ( Y < maxY )
- {
- if(!FrmPointInTitle((FormType*)GetForm(),X,Y))
- return wxPoint(X,Y+1);
- Y++;
- }
-
- return wxPoint(X,0);
-}
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/gauge.cpp
-// Purpose: wxGauge class
-// 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
-
-#if wxUSE_GAUGE
-
-#include "wx/gauge.h"
-
-#ifndef WX_PRECOMP
-#endif
-
-#include "wx/palmos/private.h"
-
-// ----------------------------------------------------------------------------
-// constants
-// ----------------------------------------------------------------------------
-
-#ifndef PBS_SMOOTH
- #define PBS_SMOOTH 0x01
-#endif
-
-#ifndef PBS_VERTICAL
- #define PBS_VERTICAL 0x04
-#endif
-
-#ifndef PBM_SETBARCOLOR
- #define PBM_SETBARCOLOR (WM_USER+9)
-#endif
-
-#ifndef PBM_SETBKCOLOR
- #define PBM_SETBKCOLOR 0x2001
-#endif
-
-// ----------------------------------------------------------------------------
-// wxWin macros
-// ----------------------------------------------------------------------------
-
-// ============================================================================
-// wxGauge implementation
-// ============================================================================
-
-// ----------------------------------------------------------------------------
-// wxGauge creation
-// ----------------------------------------------------------------------------
-
-bool wxGauge::Create(wxWindow *parent,
- wxWindowID id,
- int range,
- const wxPoint& pos,
- const wxSize& size,
- long style,
- const wxValidator& validator,
- const wxString& name)
-{
- return false;
-}
-
-WXDWORD wxGauge::MSWGetStyle(long style, WXDWORD *exstyle) const
-{
- return 0;
-}
-
-// ----------------------------------------------------------------------------
-// wxGauge geometry
-// ----------------------------------------------------------------------------
-
-wxSize wxGauge::DoGetBestSize() const
-{
- return wxSize(0,0);
-}
-
-// ----------------------------------------------------------------------------
-// wxGauge setters
-// ----------------------------------------------------------------------------
-
-void wxGauge::SetRange(int r)
-{
-}
-
-void wxGauge::SetValue(int pos)
-{
-}
-
-bool wxGauge::SetForegroundColour(const wxColour& col)
-{
- return false;
-}
-
-bool wxGauge::SetBackgroundColour(const wxColour& col)
-{
- return false;
-}
-
-#endif // wxUSE_GAUGE
+++ /dev/null
-///////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/gdiimage.cpp
-// Purpose: wxGDIImage implementation
-// 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/string.h"
- #include "wx/log.h"
- #include "wx/app.h"
- #include "wx/bitmap.h"
-#endif // WX_PRECOMP
-
-#include "wx/palmos/gdiimage.h"
-
-#if wxUSE_WXDIB
-#include "wx/palmos/dib.h"
-#endif
-
-#include "wx/file.h"
-
-#include "wx/listimpl.cpp"
-WX_DEFINE_LIST(wxGDIImageHandlerList)
-
-// ----------------------------------------------------------------------------
-// auxiliary functions
-// ----------------------------------------------------------------------------
-
-// ----------------------------------------------------------------------------
-// private classes
-// ----------------------------------------------------------------------------
-
-// ============================================================================
-// implementation
-// ============================================================================
-
-wxGDIImageHandlerList wxGDIImage::ms_handlers;
-
-// ----------------------------------------------------------------------------
-// wxGDIImage functions forwarded to wxGDIImageRefData
-// ----------------------------------------------------------------------------
-
-bool wxGDIImage::FreeResource(bool WXUNUSED(force))
-{
- return false;
-}
-
-WXHANDLE wxGDIImage::GetResourceHandle() const
-{
- return NULL;
-}
-
-// ----------------------------------------------------------------------------
-// wxGDIImage handler stuff
-// ----------------------------------------------------------------------------
-
-void wxGDIImage::AddHandler(wxGDIImageHandler *handler)
-{
-}
-
-void wxGDIImage::InsertHandler(wxGDIImageHandler *handler)
-{
-}
-
-bool wxGDIImage::RemoveHandler(const wxString& name)
-{
- return false;
-}
-
-wxGDIImageHandler *wxGDIImage::FindHandler(const wxString& name)
-{
- return NULL;
-}
-
-wxGDIImageHandler *wxGDIImage::FindHandler(const wxString& extension,
- long type)
-{
- return NULL;
-}
-
-wxGDIImageHandler *wxGDIImage::FindHandler(long type)
-{
- return NULL;
-}
-
-void wxGDIImage::CleanUpHandlers()
-{
-}
-
-void wxGDIImage::InitStandardHandlers()
-{
-}
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/glcanvas.cpp
-// Purpose: wxGLCanvas, for using OpenGL with wxWidgets
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-#include "wx/wxprec.h"
-
-#if defined(__BORLANDC__)
-#pragma hdrstop
-#endif
-
-#if wxUSE_GLCANVAS
-
-#ifndef WX_PRECOMP
- #include "wx/frame.h"
- #include "wx/settings.h"
- #include "wx/intl.h"
- #include "wx/log.h"
- #include "wx/app.h"
-#endif
-
-#include "wx/palmos/private.h"
-
-// DLL options compatibility check:
-#include "wx/build.h"
-WX_CHECK_BUILD_OPTIONS("wxGL")
-
-#include "wx/glcanvas.h"
-
-static const wxChar *wxGLCanvasClassName = wxT("wxGLCanvasClass");
-static const wxChar *wxGLCanvasClassNameNoRedraw = wxT("wxGLCanvasClassNR");
-
-LRESULT WXDLLEXPORT APIENTRY _EXPORT wxWndProc(HWND hWnd, UINT message,
- WPARAM wParam, LPARAM lParam);
-
-/*
- * GLContext implementation
- */
-
-wxGLContext::wxGLContext(bool WXUNUSED(isRGB), wxGLCanvas *win, const wxPalette& WXUNUSED(palette))
-{
-}
-
-wxGLContext::wxGLContext(
- bool WXUNUSED(isRGB), wxGLCanvas *win,
- const wxPalette& WXUNUSED(palette),
- const wxGLContext *other /* for sharing display lists */
- )
-{
-}
-
-wxGLContext::~wxGLContext()
-{
-}
-
-void wxGLContext::SwapBuffers()
-{
-}
-
-void wxGLContext::SetCurrent()
-{
-}
-
-void wxGLContext::SetColour(const wxString& colour)
-{
-}
-
-
-/*
- * wxGLCanvas implementation
- */
-
-IMPLEMENT_CLASS(wxGLCanvas, wxWindow)
-
-BEGIN_EVENT_TABLE(wxGLCanvas, wxWindow)
- EVT_SIZE(wxGLCanvas::OnSize)
- EVT_PALETTE_CHANGED(wxGLCanvas::OnPaletteChanged)
- EVT_QUERY_NEW_PALETTE(wxGLCanvas::OnQueryNewPalette)
-END_EVENT_TABLE()
-
-wxGLCanvas::wxGLCanvas(wxWindow *parent, wxWindowID id,
- const wxPoint& pos, const wxSize& size, long style, const wxString& name,
- int *attribList, const wxPalette& palette) : wxWindow()
-{
-}
-
-wxGLCanvas::wxGLCanvas( wxWindow *parent,
- const wxGLContext *shared, wxWindowID id,
- const wxPoint& pos, const wxSize& size, long style, const wxString& name,
- int *attribList, const wxPalette& palette )
- : wxWindow()
-{
-}
-
-// Not very useful for wxMSW, but this is to be wxGTK compliant
-
-wxGLCanvas::wxGLCanvas( wxWindow *parent, const wxGLCanvas *shared, wxWindowID id,
- const wxPoint& pos, const wxSize& size, long style, const wxString& name,
- int *attribList, const wxPalette& palette ):
- wxWindow()
-{
-}
-
-wxGLCanvas::~wxGLCanvas()
-{
-}
-
-// Replaces wxWindow::Create functionality, since we need to use a different
-// window class
-bool wxGLCanvas::Create(wxWindow *parent,
- wxWindowID id,
- const wxPoint& pos,
- const wxSize& size,
- long style,
- const wxString& name)
-{
- return false;
-}
-
-static void AdjustPFDForAttributes(PIXELFORMATDESCRIPTOR& pfd, int *attribList)
-{
-}
-
-void wxGLCanvas::SetupPixelFormat(int *attribList) // (HDC hDC)
-{
-}
-
-void wxGLCanvas::SetupPalette(const wxPalette& palette)
-{
-}
-
-void wxGLCanvas::SwapBuffers()
-{
-}
-
-void wxGLCanvas::OnSize(wxSizeEvent& WXUNUSED(event))
-{
-}
-
-void wxGLCanvas::SetCurrent()
-{
-}
-
-void wxGLCanvas::SetColour(const wxChar *colour)
-{
-}
-
-void wxGLCanvas::OnQueryNewPalette(wxQueryNewPaletteEvent& event)
-{
-}
-
-void wxGLCanvas::OnPaletteChanged(wxPaletteChangedEvent& event)
-{
-}
-
-void glArrayElementEXT(GLint WXUNUSED(i))
-{
-}
-
-void glColorPointerEXT(GLint WXUNUSED(size), GLenum WXUNUSED(type), GLsizei WXUNUSED(stride), GLsizei WXUNUSED(count), const GLvoid *WXUNUSED(pointer))
-{
-}
-
-void glDrawArraysEXT(GLenum mode, GLint first, GLsizei count)
-{
-}
-
-void glEdgeFlagPointerEXT(GLsizei WXUNUSED(stride), GLsizei WXUNUSED(count), const GLboolean *WXUNUSED(pointer))
-{
-}
-
-void glGetPointervEXT(GLenum WXUNUSED(pname), GLvoid* *WXUNUSED(params))
-{
-}
-
-void glIndexPointerEXT(GLenum WXUNUSED(type), GLsizei WXUNUSED(stride), GLsizei WXUNUSED(count), const GLvoid *WXUNUSED(pointer))
-{
-}
-
-void glNormalPointerEXT(GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer)
-{
-}
-
-void glTexCoordPointerEXT(GLint WXUNUSED(size), GLenum WXUNUSED(type), GLsizei WXUNUSED(stride), GLsizei WXUNUSED(count), const GLvoid *WXUNUSED(pointer))
-{
-}
-
-void glVertexPointerEXT(GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer)
-{
-}
-
-void glColorSubtableEXT(GLenum WXUNUSED(target), GLsizei WXUNUSED(start), GLsizei WXUNUSED(count), GLenum WXUNUSED(format), GLenum WXUNUSED(type), const GLvoid *WXUNUSED(table))
-{
-}
-
-void glColorTableEXT(GLenum WXUNUSED(target), GLenum WXUNUSED(internalformat), GLsizei WXUNUSED(width), GLenum WXUNUSED(format), GLenum WXUNUSED(type), const GLvoid *WXUNUSED(table))
-{
-}
-
-void glCopyColorTableEXT(GLenum WXUNUSED(target), GLenum WXUNUSED(internalformat), GLint WXUNUSED(x), GLint WXUNUSED(y), GLsizei WXUNUSED(width))
-{
-}
-
-void glGetColorTableEXT(GLenum WXUNUSED(target), GLenum WXUNUSED(format), GLenum WXUNUSED(type), GLvoid *WXUNUSED(table))
-{
-}
-
-void glGetColorTableParamaterfvEXT(GLenum WXUNUSED(target), GLenum WXUNUSED(pname), GLfloat *WXUNUSED(params))
-{
-}
-
-void glGetColorTavleParameterivEXT(GLenum WXUNUSED(target), GLenum WXUNUSED(pname), GLint *WXUNUSED(params))
-{
-}
-
-void glLockArraysSGI(GLint WXUNUSED(first), GLsizei WXUNUSED(count))
-{
-}
-
-void glUnlockArraysSGI()
-{
-}
-
-
-void glCullParameterdvSGI(GLenum WXUNUSED(pname), GLdouble* WXUNUSED(params))
-{
-}
-
-void glCullParameterfvSGI(GLenum WXUNUSED(pname), GLfloat* WXUNUSED(params))
-{
-}
-
-void glIndexFuncSGI(GLenum WXUNUSED(func), GLclampf WXUNUSED(ref))
-{
-}
-
-void glIndexMaterialSGI(GLenum WXUNUSED(face), GLenum WXUNUSED(mode))
-{
-}
-
-void glAddSwapHintRectWin(GLint WXUNUSED(x), GLint WXUNUSED(y), GLsizei WXUNUSED(width), GLsizei WXUNUSED(height))
-{
-}
-
-
-//---------------------------------------------------------------------------
-// wxGLApp
-//---------------------------------------------------------------------------
-
-IMPLEMENT_CLASS(wxGLApp, wxApp)
-
-bool wxGLApp::InitGLVisual(int *attribList)
-{
- return false;
-}
-
-wxGLApp::~wxGLApp()
-{
-}
-
-#endif
- // wxUSE_GLCANVAS
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/help.cpp
-// Purpose: Help system: WinHelp implementation
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-// For compilers that support precompilation, includes "wx.h".
-#include "wx/wxprec.h"
-
-#ifdef __BORLANDC__
-#pragma hdrstop
-#endif
-
-#if wxUSE_HELP
-
-#ifndef WX_PRECOMP
-#endif
-
-#include "wx/filefn.h"
-
-
-IMPLEMENT_DYNAMIC_CLASS(wxWinHelpController, wxHelpControllerBase)
-
-bool wxWinHelpController::Initialize(const wxString& filename)
-{
- return false;
-}
-
-bool wxWinHelpController::LoadFile(const wxString& file)
-{
- return false;
-}
-
-bool wxWinHelpController::DisplayContents(void)
-{
- return false;
-}
-
-bool wxWinHelpController::DisplaySection(int section)
-{
- return false;
-}
-
-bool wxWinHelpController::DisplayContextPopup(int contextId)
-{
- return false;
-}
-
-bool wxWinHelpController::DisplayBlock(long block)
-{
- return false;
-}
-
-bool wxWinHelpController::KeywordSearch(const wxString& k,
- wxHelpSearchMode WXUNUSED(mode))
-{
- return false;
-}
-
-bool wxWinHelpController::Quit(void)
-{
- return false;
-}
-
-wxString wxWinHelpController::GetValidFilename(const wxString& file) const
-{
- wxString ret;
-
- return ret;
-}
-
-#endif // wxUSE_HELP
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/imaglist.cpp
-// Purpose: wxImageList implementation for Palm OS
-// 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/window.h"
- #include "wx/icon.h"
- #include "wx/dc.h"
- #include "wx/string.h"
- #include "wx/dcmemory.h"
- #include "wx/intl.h"
- #include "wx/log.h"
-#endif
-
-#include "wx/imaglist.h"
-
-// ----------------------------------------------------------------------------
-// wxWin macros
-// ----------------------------------------------------------------------------
-
-IMPLEMENT_DYNAMIC_CLASS(wxImageList, wxObject)
-
-#define GetHImageList() ((HIMAGELIST)m_hImageList)
-
-// ----------------------------------------------------------------------------
-// private functions
-// ----------------------------------------------------------------------------
-
-// ============================================================================
-// implementation
-// ============================================================================
-
-// ----------------------------------------------------------------------------
-// wxImageList creation/destruction
-// ----------------------------------------------------------------------------
-
-wxImageList::wxImageList()
-{
-}
-
-// Creates an image list
-bool wxImageList::Create(int width, int height, bool mask, int initial)
-{
- return false;
-}
-
-wxImageList::~wxImageList()
-{
-}
-
-// ----------------------------------------------------------------------------
-// wxImageList attributes
-// ----------------------------------------------------------------------------
-
-int wxImageList::GetImageCount() const
-{
- return 0;
-}
-
-bool wxImageList::GetSize(int WXUNUSED(index), int &width, int &height) const
-{
- return false;
-}
-
-// ----------------------------------------------------------------------------
-// wxImageList operations
-// ----------------------------------------------------------------------------
-
-int wxImageList::Add(const wxBitmap& bitmap, const wxBitmap& mask)
-{
- return 0;
-}
-
-int wxImageList::Add(const wxBitmap& bitmap, const wxColour& maskColour)
-{
- return 0;
-}
-
-int wxImageList::Add(const wxIcon& icon)
-{
- return 0;
-}
-
-bool wxImageList::Replace(int index,
- const wxBitmap& bitmap, const wxBitmap& mask)
-{
- return false;
-}
-
-bool wxImageList::Replace(int i, const wxIcon& icon)
-{
- return false;
-}
-
-bool wxImageList::Remove(int index)
-{
- return false;
-}
-
-bool wxImageList::RemoveAll()
-{
- return false;
-}
-
-bool wxImageList::Draw(int index,
- wxDC& dc,
- int x, int y,
- int flags,
- bool solidBackground)
-{
- return false;
-}
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/joystick.cpp
-// Purpose: wxJoystick class
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-// For compilers that support precompilation, includes "wx.h".
-#include "wx/wxprec.h"
-
-#if wxUSE_JOYSTICK
-
-#include "wx/joystick.h"
-
-#ifndef WX_PRECOMP
- #include "wx/string.h"
- #include "wx/window.h"
-#endif
-
-IMPLEMENT_DYNAMIC_CLASS(wxJoystick, wxObject)
-
-// Attributes
-////////////////////////////////////////////////////////////////////////////
-
-wxJoystick::wxJoystick(int joystick)
-{
-}
-
-wxPoint wxJoystick::GetPosition() const
-{
- return wxPoint(0, 0);
-}
-
-int wxJoystick::GetPosition(unsigned axis) const
-{
- // TODO
- return 0;
-}
-
-bool wxJoystick::GetButtonState(unsigned id) const
-{
- // TODO
- return false;
-}
-
-int wxJoystick::GetZPosition() const
-{
- return 0;
-}
-
-int wxJoystick::GetButtonState() const
-{
- return 0;
-}
-
-int wxJoystick::GetPOVPosition() const
-{
- return -1;
-}
-
-int wxJoystick::GetPOVCTSPosition() const
-{
- return -1;
-}
-
-int wxJoystick::GetRudderPosition() const
-{
- return 0;
-}
-
-int wxJoystick::GetUPosition() const
-{
- return 0;
-}
-
-int wxJoystick::GetVPosition() const
-{
- return 0;
-}
-
-int wxJoystick::GetMovementThreshold() const
-{
- return 0;
-}
-
-void wxJoystick::SetMovementThreshold(int threshold)
-{
-}
-
-// Capabilities
-////////////////////////////////////////////////////////////////////////////
-
-int wxJoystick::GetNumberJoysticks()
-{
- return 0;
-}
-
-bool wxJoystick::IsOk() const
-{
- return false;
-}
-
-int wxJoystick::GetManufacturerId() const
-{
- return 0;
-}
-
-int wxJoystick::GetProductId() const
-{
- return 0;
-}
-
-wxString wxJoystick::GetProductName() const
-{
- return wxEmptyString;
-}
-
-int wxJoystick::GetXMin() const
-{
- return 0;
-}
-
-int wxJoystick::GetYMin() const
-{
- return 0;
-}
-
-int wxJoystick::GetZMin() const
-{
- return 0;
-}
-
-int wxJoystick::GetXMax() const
-{
- return 0;
-}
-
-int wxJoystick::GetYMax() const
-{
- return 0;
-}
-
-int wxJoystick::GetZMax() const
-{
- return 0;
-}
-
-int wxJoystick::GetNumberButtons() const
-{
- return 0;
-}
-
-int wxJoystick::GetNumberAxes() const
-{
- return 0;
-}
-
-int wxJoystick::GetMaxButtons() const
-{
- return 0;
-}
-
-int wxJoystick::GetMaxAxes() const
-{
- return 0;
-}
-
-int wxJoystick::GetPollingMin() const
-{
- return 0;
-}
-
-int wxJoystick::GetPollingMax() const
-{
- return 0;
-}
-
-int wxJoystick::GetRudderMin() const
-{
- return 0;
-}
-
-int wxJoystick::GetRudderMax() const
-{
- return 0;
-}
-
-int wxJoystick::GetUMin() const
-{
- return 0;
-}
-
-int wxJoystick::GetUMax() const
-{
- return 0;
-}
-
-int wxJoystick::GetVMin() const
-{
- return 0;
-}
-
-int wxJoystick::GetVMax() const
-{
- return 0;
-}
-
-
-bool wxJoystick::HasRudder() const
-{
- return false;
-}
-
-bool wxJoystick::HasZ() const
-{
- return false;
-}
-
-bool wxJoystick::HasU() const
-{
- return false;
-}
-
-bool wxJoystick::HasV() const
-{
- return false;
-}
-
-bool wxJoystick::HasPOV() const
-{
- return false;
-}
-
-bool wxJoystick::HasPOV4Dir() const
-{
- return false;
-}
-
-bool wxJoystick::HasPOVCTS() const
-{
- return false;
-}
-
-// Operations
-////////////////////////////////////////////////////////////////////////////
-
-bool wxJoystick::SetCapture(wxWindow* win, int pollingFreq)
-{
- return false;
-}
-
-bool wxJoystick::ReleaseCapture()
-{
- return false;
-}
-
-#endif // wxUSE_JOYSTICK
+++ /dev/null
-///////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/listbox.cpp
-// Purpose: wxListBox
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-///////////////////////////////////////////////////////////////////////////////
-
-// For compilers that support precompilation, includes "wx.h".
-#include "wx/wxprec.h"
-
-#ifdef __BORLANDC__
- #pragma hdrstop
-#endif
-
-#if wxUSE_LISTBOX
-
-#include "wx/listbox.h"
-
-#ifndef WX_PRECOMP
- #include "wx/dynarray.h"
- #include "wx/settings.h"
- #include "wx/brush.h"
- #include "wx/font.h"
- #include "wx/dc.h"
- #include "wx/utils.h"
- #include "wx/log.h"
- #include "wx/window.h"
-#endif
-
-#include "wx/palmos/private.h"
-
-#if wxUSE_OWNER_DRAWN
- #include "wx/ownerdrw.h"
-#endif
-
-// ============================================================================
-// list box item declaration and implementation
-// ============================================================================
-
-#if wxUSE_OWNER_DRAWN
-
-class wxListBoxItem : public wxOwnerDrawn
-{
-public:
- wxListBoxItem(const wxString& str = wxEmptyString);
-};
-
-wxListBoxItem::wxListBoxItem(const wxString& str) : wxOwnerDrawn(str, false)
-{
- // no bitmaps/checkmarks
- SetMarginWidth(0);
-}
-
-wxOwnerDrawn *wxListBox::CreateLboxItem(size_t WXUNUSED(n))
-{
- return new wxListBoxItem();
-}
-
-#endif //USE_OWNER_DRAWN
-
-// ============================================================================
-// list box control implementation
-// ============================================================================
-
-// ----------------------------------------------------------------------------
-// creation
-// ----------------------------------------------------------------------------
-
-// Listbox item
-wxListBox::wxListBox()
-{
-}
-
-bool wxListBox::Create(wxWindow *parent,
- wxWindowID id,
- const wxPoint& pos,
- const wxSize& size,
- int n, const wxString choices[],
- long style,
- const wxValidator& validator,
- const wxString& name)
-{
- return false;
-}
-
-bool wxListBox::Create(wxWindow *parent,
- wxWindowID id,
- const wxPoint& pos,
- const wxSize& size,
- const wxArrayString& choices,
- long style,
- const wxValidator& validator,
- const wxString& name)
-{
- return false;
-}
-
-wxListBox::~wxListBox()
-{
-}
-
-WXDWORD wxListBox::MSWGetStyle(long style, WXDWORD *exstyle) const
-{
- return 0;
-}
-
-// ----------------------------------------------------------------------------
-// implementation of wxListBoxBase methods
-// ----------------------------------------------------------------------------
-
-void wxListBox::DoSetFirstItem(int N)
-{
-}
-
-void wxListBox::DoDeleteOneItem(unsigned int n)
-{
-}
-
-void wxListBox::DoClear()
-{
-}
-
-void wxListBox::Free()
-{
-}
-
-void wxListBox::DoSetSelection(int N, bool select)
-{
-}
-
-bool wxListBox::IsSelected(int N) const
-{
- return false;
-}
-
-void *wxListBox::DoGetItemClientData(unsigned int n) const
-{
- return NULL;
-}
-
-void wxListBox::DoSetItemClientData(unsigned int n, void *clientData)
-{
-}
-
-// Return number of selections and an array of selected integers
-int wxListBox::GetSelections(wxArrayInt& aSelections) const
-{
- return 0;
-}
-
-// Get single selection, for single choice list items
-int wxListBox::GetSelection() const
-{
- return 0;
-}
-
-// Find string for position
-wxString wxListBox::GetString(unsigned int n) const
-{
- return wxEmptyString;
-}
-
-int wxListBox::DoInsertItems(const wxArrayStringsAdapter& items,
- unsigned int pos,
- void **clientData,
- wxClientDataType type)
-{
- return 0;
-}
-void wxListBox::SetString(unsigned int n, const wxString& s)
-{
-}
-
-unsigned int wxListBox::GetCount() const
-{
- return 0;
-}
-
-// ----------------------------------------------------------------------------
-// helpers
-// ----------------------------------------------------------------------------
-
-void wxListBox::SetHorizontalExtent(const wxString& s)
-{
-}
-
-wxSize wxListBox::DoGetBestSize() const
-{
- return wxSize(0,0);
-}
-
-// ----------------------------------------------------------------------------
-// callbacks
-// ----------------------------------------------------------------------------
-
-bool wxListBox::MSWCommand(WXUINT param, WXWORD WXUNUSED(id))
-{
- return false;
-}
-
-// ----------------------------------------------------------------------------
-// wxCheckListBox support
-// ----------------------------------------------------------------------------
-
-#if wxUSE_OWNER_DRAWN
-
-// drawing
-// -------
-
-// space beneath/above each row in pixels
-// "standard" checklistbox use 1 here, some might prefer 2. 0 is ugly.
-#define OWNER_DRAWN_LISTBOX_EXTRA_SPACE (1)
-
-// the height is the same for all items
-// TODO should be changed for LBS_OWNERDRAWVARIABLE style listboxes
-
-// NB: can't forward this to wxListBoxItem because LB_SETITEMDATA
-// message is not yet sent when we get here!
-bool wxListBox::MSWOnMeasure(WXMEASUREITEMSTRUCT *item)
-{
- return true;
-}
-
-// forward the message to the appropriate item
-bool wxListBox::MSWOnDraw(WXDRAWITEMSTRUCT *item)
-{
- return true;
-}
-
-#endif // wxUSE_OWNER_DRAWN
-
-#endif // wxUSE_LISTBOX
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/listctrl.cpp
-// Purpose: wxListCtrl
-// 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
-
-#if wxUSE_LISTCTRL
-
-#ifndef WX_PRECOMP
- #include "wx/app.h"
- #include "wx/intl.h"
- #include "wx/log.h"
- #include "wx/settings.h"
- #include "wx/dcclient.h"
- #include "wx/textctrl.h"
-#endif
-
-#include "wx/imaglist.h"
-#include "wx/listctrl.h"
-
-BEGIN_EVENT_TABLE(wxListCtrl, wxControl)
- EVT_PAINT(wxListCtrl::OnPaint)
-END_EVENT_TABLE()
-
-// ============================================================================
-// implementation
-// ============================================================================
-
-// ----------------------------------------------------------------------------
-// wxListCtrl construction
-// ----------------------------------------------------------------------------
-
-void wxListCtrl::Init()
-{
-}
-
-bool wxListCtrl::Create(wxWindow *parent,
- wxWindowID id,
- const wxPoint& pos,
- const wxSize& size,
- long style,
- const wxValidator& validator,
- const wxString& name)
-{
- return false;
-}
-
-void wxListCtrl::UpdateStyle()
-{
-}
-
-void wxListCtrl::FreeAllInternalData()
-{
-}
-
-wxListCtrl::~wxListCtrl()
-{
-}
-
-// ----------------------------------------------------------------------------
-// set/get/change style
-// ----------------------------------------------------------------------------
-
-// Add or remove a single window style
-void wxListCtrl::SetSingleStyle(long style, bool add)
-{
-}
-
-// ----------------------------------------------------------------------------
-// accessors
-// ----------------------------------------------------------------------------
-
-/* static */ wxVisualAttributes wxListCtrl::GetClassDefaultAttributes(wxWindowVariant variant)
-{
- wxVisualAttributes attrs;
-
- return attrs;
-}
-
-// Sets the foreground, i.e. text, colour
-bool wxListCtrl::SetForegroundColour(const wxColour& col)
-{
- return false;
-}
-
-// Sets the background colour
-bool wxListCtrl::SetBackgroundColour(const wxColour& col)
-{
- return false;
-}
-
-// Gets information about this column
-bool wxListCtrl::GetColumn(int col, wxListItem& item) const
-{
- return false;
-}
-
-// Sets information about this column
-bool wxListCtrl::SetColumn(int col, wxListItem& item)
-{
- return false;
-}
-
-// Gets the column width
-int wxListCtrl::GetColumnWidth(int col) const
-{
- return 0;
-}
-
-// Sets the column width
-bool wxListCtrl::SetColumnWidth(int col, int width)
-{
- return false;
-}
-
-// Gets the number of items that can fit vertically in the
-// visible area of the list control (list or report view)
-// or the total number of items in the list control (icon
-// or small icon view)
-int wxListCtrl::GetCountPerPage() const
-{
- return 0;
-}
-
-// Gets the edit control for editing labels.
-wxTextCtrl* wxListCtrl::GetEditControl() const
-{
- return NULL;
-}
-
-// Gets information about the item
-bool wxListCtrl::GetItem(wxListItem& info) const
-{
- return false;
-}
-
-// Sets information about the item
-bool wxListCtrl::SetItem(wxListItem& info)
-{
- return false;
-}
-
-long wxListCtrl::SetItem(long index, int col, const wxString& label, int imageId)
-{
- return 0;
-}
-
-
-// Gets the item state
-int wxListCtrl::GetItemState(long item, long stateMask) const
-{
- return 0;
-}
-
-// Sets the item state
-bool wxListCtrl::SetItemState(long item, long state, long stateMask)
-{
- return false;
-}
-
-// Sets the item image
-bool wxListCtrl::SetItemImage(long item, int image, int WXUNUSED(selImage))
-{
- return false;
-}
-
-// Sets the item image
-bool wxListCtrl::SetItemColumnImage(long item, long column, int image)
-{
- return false;
-}
-
-// Gets the item text
-wxString wxListCtrl::GetItemText(long item) const
-{
- wxListItem info;
-
- return info.m_text;
-}
-
-// Sets the item text
-void wxListCtrl::SetItemText(long item, const wxString& str)
-{
-}
-
-// Gets the item data
-long wxListCtrl::GetItemData(long item) const
-{
- return 0;
-}
-
-// Sets the item data
-bool wxListCtrl::SetItemPtrData(long item, wxUIntPtr data)
-{
- return false;
-}
-
-wxRect wxListCtrl::GetViewRect() const
-{
- wxRect rect;
-
- return rect;
-}
-
-// Gets the item rectangle
-bool wxListCtrl::GetItemRect(long item, wxRect& rect, int code) const
-{
- return false;
-}
-
-// Gets the item position
-bool wxListCtrl::GetItemPosition(long item, wxPoint& pos) const
-{
- return false;
-}
-
-// Sets the item position.
-bool wxListCtrl::SetItemPosition(long item, const wxPoint& pos)
-{
- return false;
-}
-
-// Gets the number of items in the list control
-int wxListCtrl::GetItemCount() const
-{
- return 0;
-}
-
-wxSize wxListCtrl::GetItemSpacing() const
-{
- return wxSize(0,0);
-}
-
-int wxListCtrl::GetItemSpacing(bool isSmall) const
-{
- return 0;
-}
-
-void wxListCtrl::SetItemTextColour( long item, const wxColour &col )
-{
-}
-
-wxColour wxListCtrl::GetItemTextColour( long item ) const
-{
- wxColour col;
-
- return col;
-}
-
-void wxListCtrl::SetItemBackgroundColour( long item, const wxColour &col )
-{
-}
-
-wxColour wxListCtrl::GetItemBackgroundColour( long item ) const
-{
- wxColour col;
-
- return col;
-}
-
-// Gets the number of selected items in the list control
-int wxListCtrl::GetSelectedItemCount() const
-{
- return 0;
-}
-
-// Gets the text colour of the listview
-wxColour wxListCtrl::GetTextColour() const
-{
- wxColour col;
- return col;
-}
-
-// Sets the text colour of the listview
-void wxListCtrl::SetTextColour(const wxColour& col)
-{
-}
-
-// Gets the index of the topmost visible item when in
-// list or report view
-long wxListCtrl::GetTopItem() const
-{
- return 0;
-}
-
-// Searches for an item, starting from 'item'.
-// 'geometry' is one of
-// wxLIST_NEXT_ABOVE/ALL/BELOW/LEFT/RIGHT.
-// 'state' is a state bit flag, one or more of
-// wxLIST_STATE_DROPHILITED/FOCUSED/SELECTED/CUT.
-// item can be -1 to find the first item that matches the
-// specified flags.
-// Returns the item or -1 if unsuccessful.
-long wxListCtrl::GetNextItem(long item, int geom, int state) const
-{
- return 0;
-}
-
-
-wxImageList *wxListCtrl::GetImageList(int which) const
-{
- return NULL;
-}
-
-void wxListCtrl::SetImageList(wxImageList *imageList, int which)
-{
-}
-
-void wxListCtrl::AssignImageList(wxImageList *imageList, int which)
-{
-}
-
-// ----------------------------------------------------------------------------
-// Operations
-// ----------------------------------------------------------------------------
-
-// Arranges the items
-bool wxListCtrl::Arrange(int flag)
-{
- return false;
-}
-
-// Deletes an item
-bool wxListCtrl::DeleteItem(long item)
-{
- return false;
-}
-
-// Deletes all items
-bool wxListCtrl::DeleteAllItems()
-{
- return false;
-}
-
-// Deletes all items
-bool wxListCtrl::DeleteAllColumns()
-{
- return false;
-}
-
-// Deletes a column
-bool wxListCtrl::DeleteColumn(int col)
-{
- return false;
-}
-
-// Clears items, and columns if there are any.
-void wxListCtrl::ClearAll()
-{
-}
-
-wxTextCtrl* wxListCtrl::EditLabel(long item, wxClassInfo* textControlClass)
-{
- return NULL;
-}
-
-// End label editing, optionally cancelling the edit
-bool wxListCtrl::EndEditLabel(bool WXUNUSED(cancel))
-{
- return false;
-}
-
-// Ensures this item is visible
-bool wxListCtrl::EnsureVisible(long item)
-{
- return false;
-}
-
-// Find an item whose label matches this string, starting from the item after 'start'
-// or the beginning if 'start' is -1.
-long wxListCtrl::FindItem(long start, const wxString& str, bool partial)
-{
- return 0;
-}
-
-// Find an item whose data matches this data, starting from the item after 'start'
-// or the beginning if 'start' is -1.
-// NOTE : Lindsay Mathieson - 14-July-2002
-// No longer use ListView_FindItem as the data attribute is now stored
-// in a wxListItemInternalData structure refernced by the actual lParam
-long wxListCtrl::FindItem(long start, long data)
-{
- return wxNOT_FOUND;
-}
-
-// Find an item nearest this position in the specified direction, starting from
-// the item after 'start' or the beginning if 'start' is -1.
-long wxListCtrl::FindItem(long start, const wxPoint& pt, int direction)
-{
- return wxNOT_FOUND;
-}
-
-// Determines which item (if any) is at the specified point,
-// giving details in 'flags' (see wxLIST_HITTEST_... flags above)
-long wxListCtrl::HitTest(const wxPoint& point, int& flags)
-{
- return 0;
-}
-
-// Inserts an item, returning the index of the new item if successful,
-// -1 otherwise.
-long wxListCtrl::InsertItem(wxListItem& info)
-{
- return 0;
-}
-
-long wxListCtrl::InsertItem(long index, const wxString& label)
-{
- return 0;
-}
-
-// Inserts an image item
-long wxListCtrl::InsertItem(long index, int imageIndex)
-{
- return 0;
-}
-
-// Inserts an image/string item
-long wxListCtrl::InsertItem(long index, const wxString& label, int imageIndex)
-{
- return 0;
-}
-
-// For list view mode (only), inserts a column.
-long wxListCtrl::InsertColumn(long col, wxListItem& item)
-{
- return 0;
-}
-
-long wxListCtrl::InsertColumn(long col,
- const wxString& heading,
- int format,
- int width)
-{
- return 0;
-}
-
-// scroll the control by the given number of pixels (exception: in list view,
-// dx is interpreted as number of columns)
-bool wxListCtrl::ScrollList(int dx, int dy)
-{
- return false;
-}
-
-// Sort items.
-
-// fn is a function which takes 3 long arguments: item1, item2, data.
-// item1 is the long data associated with a first item (NOT the index).
-// item2 is the long data associated with a second item (NOT the index).
-// data is the same value as passed to SortItems.
-// The return value is a negative number if the first item should precede the second
-// item, a positive number of the second item should precede the first,
-// or zero if the two items are equivalent.
-
-// data is arbitrary data to be passed to the sort function.
-
-// Internal structures for proxying the user compare function
-// so that we can pass it the *real* user data
-
-// translate lParam data and call user func
-struct wxInternalDataSort
-{
- wxListCtrlCompare user_fn;
- long data;
-};
-
-int CALLBACK wxInternalDataCompareFunc(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort)
-{
- struct wxInternalDataSort *internalData = (struct wxInternalDataSort *) lParamSort;
-
- wxListItemInternalData *data1 = (wxListItemInternalData *) lParam1;
- wxListItemInternalData *data2 = (wxListItemInternalData *) lParam2;
-
- long d1 = (data1 == NULL ? 0 : data1->lParam);
- long d2 = (data2 == NULL ? 0 : data2->lParam);
-
- return internalData->user_fn(d1, d2, internalData->data);
-
-};
-
-bool wxListCtrl::SortItems(wxListCtrlCompare fn, long data)
-{
- return false;
-}
-
-
-
-// ----------------------------------------------------------------------------
-// message processing
-// ----------------------------------------------------------------------------
-
-// Necessary for drawing hrules and vrules, if specified
-void wxListCtrl::OnPaint(wxPaintEvent& event)
-{
-}
-
-// ----------------------------------------------------------------------------
-// virtual list controls
-// ----------------------------------------------------------------------------
-
-wxString wxListCtrl::OnGetItemText(long WXUNUSED(item), long WXUNUSED(col)) const
-{
- return wxEmptyString;
-}
-
-int wxListCtrl::OnGetItemImage(long WXUNUSED(item)) const
-{
- return -1;
-}
-
-int wxListCtrl::OnGetItemColumnImage(long item, long column) const
-{
- if (!column)
- return OnGetItemImage(item);
-
- return -1;
-}
-
-wxListItemAttr *wxListCtrl::OnGetItemAttr(long WXUNUSED_UNLESS_DEBUG(item)) const
-{
- // no attributes by default
- return NULL;
-}
-
-void wxListCtrl::SetItemCount(long count)
-{
-}
-
-void wxListCtrl::RefreshItem(long item)
-{
-}
-
-void wxListCtrl::RefreshItems(long itemFrom, long itemTo)
-{
-}
-
-// ----------------------------------------------------------------------------
-// internal data stuff
-// ----------------------------------------------------------------------------
-
-static wxListItemInternalData *wxGetInternalData(HWND hwnd, long itemId)
-{
- return NULL;
-};
-
-static wxListItemInternalData *wxGetInternalData(const wxListCtrl *ctl, long itemId)
-{
- return wxGetInternalData(GetHwndOf(ctl), itemId);
-};
-
-static wxListItemAttr *wxGetInternalDataAttr(wxListCtrl *ctl, long itemId)
-{
- return NULL;
-};
-
-static void wxDeleteInternalData(wxListCtrl* ctl, long itemId)
-{
-}
-
-#endif // wxUSE_LISTCTRL
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/main.cpp
-// Purpose: wxEnter for Palm OS
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/07/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/event.h"
- #include "wx/app.h"
-#endif //WX_PRECOMP
-
-#include "wx/cmdline.h"
-
-#if wxUSE_GUI
-
-// ============================================================================
-// implementation: various entry points
-// ============================================================================
-
-// ----------------------------------------------------------------------------
-// Platform-specific wxEntry
-// ----------------------------------------------------------------------------
-
-int wxEntry()
-{
- /* There is no command line in PalmOS. For now generate a fake argument
- * list. Later this may be changed to reflect the application launch code
- */
- static const int argc = 0;
- wxChar **argv = new wxChar *[argc + 1];
-
- // argv[] must be NULL-terminated
- argv[argc] = NULL;
-
- return wxEntry(const_cast<int>(argc), argv);
-}
-
-#endif // wxUSE_GUI
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/mdi.cpp
-// Purpose: MDI classes for wx
-// 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
-
-#if wxUSE_MDI
-
-#include "wx/mdi.h"
-
-#ifndef WX_PRECOMP
- #include "wx/frame.h"
- #include "wx/menu.h"
- #include "wx/app.h"
- #include "wx/utils.h"
- #include "wx/dialog.h"
- #include "wx/statusbr.h"
- #include "wx/settings.h"
- #include "wx/intl.h"
- #include "wx/log.h"
- #include "wx/toolbar.h"
-#endif
-
-#include "wx/palmos/private.h"
-
-#if wxUSE_STATUSBAR && wxUSE_NATIVE_STATUSBAR
- #include "wx/palmos/statbr95.h"
-#endif
-
-#include <string.h>
-
-// ---------------------------------------------------------------------------
-// global variables
-// ---------------------------------------------------------------------------
-
-extern wxMenu *wxCurrentPopupMenu;
-
-extern const wxChar *wxMDIFrameClassName; // from app.cpp
-extern const wxChar *wxMDIChildFrameClassName;
-extern const wxChar *wxMDIChildFrameClassNameNoRedraw;
-extern void wxAssociateWinWithHandle(HWND hWnd, wxWindow *win);
-extern void wxRemoveHandleAssociation(wxWindow *win);
-
-
-// ---------------------------------------------------------------------------
-// constants
-// ---------------------------------------------------------------------------
-
-static const int IDM_WINDOWTILE = 4001;
-static const int IDM_WINDOWTILEHOR = 4001;
-static const int IDM_WINDOWCASCADE = 4002;
-static const int IDM_WINDOWICONS = 4003;
-static const int IDM_WINDOWNEXT = 4004;
-static const int IDM_WINDOWTILEVERT = 4005;
-static const int IDM_WINDOWPREV = 4006;
-
-// This range gives a maximum of 500 MDI children. Should be enough :-)
-static const int wxFIRST_MDI_CHILD = 4100;
-static const int wxLAST_MDI_CHILD = 4600;
-
-// Status border dimensions
-static const int wxTHICK_LINE_BORDER = 3;
-static const int wxTHICK_LINE_WIDTH = 1;
-
-// ---------------------------------------------------------------------------
-// private functions
-// ---------------------------------------------------------------------------
-
-// set the MDI menus (by sending the WM_MDISETMENU message) and update the menu
-// of the parent of win (which is supposed to be the MDI client window)
-static void MDISetMenu(wxWindow *win, HMENU hmenuFrame, HMENU hmenuWindow);
-
-// insert the window menu (subMenu) into menu just before "Help" submenu or at
-// the very end if not found
-static void InsertWindowMenu(wxWindow *win, WXHMENU menu, HMENU subMenu);
-
-// Remove the window menu
-static void RemoveWindowMenu(wxWindow *win, WXHMENU menu);
-
-// is this an id of an MDI child?
-inline bool IsMdiCommandId(int id)
-{
- return (id >= wxFIRST_MDI_CHILD) && (id <= wxLAST_MDI_CHILD);
-}
-
-// unpack the parameters of WM_MDIACTIVATE message
-static void UnpackMDIActivate(WXWPARAM wParam, WXLPARAM lParam,
- WXWORD *activate, WXHWND *hwndAct, WXHWND *hwndDeact);
-
-// return the HMENU of the MDI menu
-static inline HMENU GetMDIWindowMenu(wxMDIParentFrame *frame)
-{
- wxMenu *menu = frame->GetWindowMenu();
- return menu ? GetHmenuOf(menu) : 0;
-}
-
-// ===========================================================================
-// implementation
-// ===========================================================================
-
-// ---------------------------------------------------------------------------
-// wxWin macros
-// ---------------------------------------------------------------------------
-
-IMPLEMENT_DYNAMIC_CLASS(wxMDIParentFrame, wxFrame)
-IMPLEMENT_DYNAMIC_CLASS(wxMDIChildFrame, wxFrame)
-IMPLEMENT_DYNAMIC_CLASS(wxMDIClientWindow, wxWindow)
-
-BEGIN_EVENT_TABLE(wxMDIParentFrame, wxFrame)
- EVT_SIZE(wxMDIParentFrame::OnSize)
-END_EVENT_TABLE()
-
-BEGIN_EVENT_TABLE(wxMDIChildFrame, wxFrame)
- EVT_IDLE(wxMDIChildFrame::OnIdle)
-END_EVENT_TABLE()
-
-BEGIN_EVENT_TABLE(wxMDIClientWindow, wxWindow)
- EVT_SCROLL(wxMDIClientWindow::OnScroll)
-END_EVENT_TABLE()
-
-// ===========================================================================
-// wxMDIParentFrame: the frame which contains the client window which manages
-// the children
-// ===========================================================================
-
-wxMDIParentFrame::wxMDIParentFrame()
-{
-}
-
-bool wxMDIParentFrame::Create(wxWindow *parent,
- wxWindowID id,
- const wxString& title,
- const wxPoint& pos,
- const wxSize& size,
- long style,
- const wxString& name)
-{
- return false;
-}
-
-wxMDIParentFrame::~wxMDIParentFrame()
-{
-}
-
-#if wxUSE_MENUS_NATIVE
-
-void wxMDIParentFrame::InternalSetMenuBar()
-{
-}
-
-#endif // wxUSE_MENUS_NATIVE
-
-void wxMDIParentFrame::SetWindowMenu(wxMenu* menu)
-{
-}
-
-void wxMDIParentFrame::OnSize(wxSizeEvent&)
-{
-}
-
-// Returns the active MDI child window
-wxMDIChildFrame *wxMDIParentFrame::GetActiveChild() const
-{
- return NULL;
-}
-
-// Create the client window class (don't Create the window, just return a new
-// class)
-wxMDIClientWindow *wxMDIParentFrame::OnCreateClient()
-{
- return new wxMDIClientWindow;
-}
-
-WXHICON wxMDIParentFrame::GetDefaultIcon() const
-{
- // we don't have any standard icons (any more)
- return (WXHICON)0;
-}
-
-// ---------------------------------------------------------------------------
-// MDI operations
-// ---------------------------------------------------------------------------
-
-void wxMDIParentFrame::Cascade()
-{
-}
-
-void wxMDIParentFrame::Tile()
-{
-}
-
-void wxMDIParentFrame::ArrangeIcons()
-{
-}
-
-void wxMDIParentFrame::ActivateNext()
-{
-}
-
-void wxMDIParentFrame::ActivatePrevious()
-{
-}
-
-// ---------------------------------------------------------------------------
-// the MDI parent frame window proc
-// ---------------------------------------------------------------------------
-
-WXLRESULT wxMDIParentFrame::MSWWindowProc(WXUINT message,
- WXWPARAM wParam,
- WXLPARAM lParam)
-{
- return 0;
-}
-
-WXLRESULT wxMDIParentFrame::MSWDefWindowProc(WXUINT message,
- WXWPARAM wParam,
- WXLPARAM lParam)
-{
- return 0;
-}
-
-bool wxMDIParentFrame::MSWTranslateMessage(WXMSG* msg)
-{
- return false;
-}
-
-// ===========================================================================
-// wxMDIChildFrame
-// ===========================================================================
-
-void wxMDIChildFrame::Init()
-{
-}
-
-bool wxMDIChildFrame::Create(wxMDIParentFrame *parent,
- wxWindowID id,
- const wxString& title,
- const wxPoint& pos,
- const wxSize& size,
- long style,
- const wxString& name)
-{
- return false;
-}
-
-wxMDIChildFrame::~wxMDIChildFrame()
-{
-}
-
-// Set the client size (i.e. leave the calculation of borders etc.
-// to wxWidgets)
-void wxMDIChildFrame::DoSetClientSize(int width, int height)
-{
-}
-
-void wxMDIChildFrame::DoGetPosition(int *x, int *y) const
-{
-}
-
-void wxMDIChildFrame::InternalSetMenuBar()
-{
-}
-
-WXHICON wxMDIChildFrame::GetDefaultIcon() const
-{
- // we don't have any standard icons (any more)
- return (WXHICON)0;
-}
-
-// ---------------------------------------------------------------------------
-// MDI operations
-// ---------------------------------------------------------------------------
-
-void wxMDIChildFrame::Maximize(bool maximize)
-{
-}
-
-void wxMDIChildFrame::Restore()
-{
-}
-
-void wxMDIChildFrame::Activate()
-{
-}
-
-// ---------------------------------------------------------------------------
-// MDI window proc and message handlers
-// ---------------------------------------------------------------------------
-
-WXLRESULT wxMDIChildFrame::MSWWindowProc(WXUINT message,
- WXWPARAM wParam,
- WXLPARAM lParam)
-{
- return 0;
-}
-
-bool wxMDIChildFrame::HandleMDIActivate(long WXUNUSED(activate),
- WXHWND hwndAct,
- WXHWND hwndDeact)
-{
- return false;
-}
-
-bool wxMDIChildFrame::HandleWindowPosChanging(void *pos)
-{
- return false;
-}
-
-// ---------------------------------------------------------------------------
-// MDI specific message translation/preprocessing
-// ---------------------------------------------------------------------------
-
-WXLRESULT wxMDIChildFrame::MSWDefWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM lParam)
-{
- return 0;
-}
-
-bool wxMDIChildFrame::MSWTranslateMessage(WXMSG* msg)
-{
- return false;
-}
-
-// ---------------------------------------------------------------------------
-// misc
-// ---------------------------------------------------------------------------
-
-void wxMDIChildFrame::MSWDestroyWindow()
-{
-}
-
-// Change the client window's extended style so we don't get a client edge
-// style when a child is maximised (a double border looks silly.)
-bool wxMDIChildFrame::ResetWindowStyle(void *vrect)
-{
- return false;
-}
-
-// ===========================================================================
-// wxMDIClientWindow: the window of predefined (by Windows) class which
-// contains the child frames
-// ===========================================================================
-
-bool wxMDIClientWindow::CreateClient(wxMDIParentFrame *parent, long style)
-{
- return false;
-}
-
-// Explicitly call default scroll behaviour
-void wxMDIClientWindow::OnScroll(wxScrollEvent& event)
-{
- event.Skip();
-}
-
-void wxMDIClientWindow::DoSetSize(int x, int y, int width, int height, int sizeFlags)
-{
-}
-
-void wxMDIChildFrame::OnIdle(wxIdleEvent& event)
-{
- event.Skip();
-}
-
-// ---------------------------------------------------------------------------
-// non member functions
-// ---------------------------------------------------------------------------
-
-static void MDISetMenu(wxWindow *win, HMENU hmenuFrame, HMENU hmenuWindow)
-{
-}
-
-static void InsertWindowMenu(wxWindow *win, WXHMENU menu, HMENU subMenu)
-{
-}
-
-static void RemoveWindowMenu(wxWindow *win, WXHMENU menu)
-{
-}
-
-static void UnpackMDIActivate(WXWPARAM wParam, WXLPARAM lParam,
- WXWORD *activate, WXHWND *hwndAct, WXHWND *hwndDeact)
-{
-}
-
-#endif // wxUSE_MDI
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/menu.cpp
-// Purpose: wxMenu, wxMenuBar, wxMenuItem
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/12/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
-
-#if wxUSE_MENUS
-
-#include "wx/menu.h"
-
-#ifndef WX_PRECOMP
- #include "wx/frame.h"
- #include "wx/utils.h"
- #include "wx/intl.h"
- #include "wx/log.h"
-#endif
-
-#if wxUSE_OWNER_DRAWN
- #include "wx/ownerdrw.h"
-#endif
-
-#ifdef __WXPALMOS6__
-#include <Loader.h>
-#else // __WXPALMOS5__
-#include <UIResources.h> // MenuRscType
-#endif
-
-#include <Form.h>
-#include <Menu.h>
-
-// ----------------------------------------------------------------------------
-// global variables
-// ----------------------------------------------------------------------------
-
-extern wxMenu *wxCurrentPopupMenu;
-
-// ----------------------------------------------------------------------------
-// constants
-// ----------------------------------------------------------------------------
-
-// the (popup) menu title has this special id
-static const int idMenuTitle = -3;
-
-// ----------------------------------------------------------------------------
-// private functions
-// ----------------------------------------------------------------------------
-
-// ============================================================================
-// implementation
-// ============================================================================
-
-// ---------------------------------------------------------------------------
-// wxMenu construction, adding and removing menu items
-// ---------------------------------------------------------------------------
-
-// Construct a menu with optional title (then use append)
-void wxMenu::Init()
-{
-}
-
-// The wxWindow destructor will take care of deleting the submenus.
-wxMenu::~wxMenu()
-{
-}
-
-void wxMenu::Break()
-{
-}
-
-void wxMenu::Attach(wxMenuBarBase *menubar)
-{
- wxMenuBase::Attach(menubar);
-}
-
-#if wxUSE_ACCEL
-
-int wxMenu::FindAccel(int id) const
-{
- return wxNOT_FOUND;
-}
-
-void wxMenu::UpdateAccel(wxMenuItem *item)
-{
-}
-
-#endif // wxUSE_ACCEL
-
-// append a new item or submenu to the menu
-bool wxMenu::DoInsertOrAppend(wxMenuItem *pItem, size_t pos)
-{
- if ( IsAttached() && GetMenuBar()->IsAttached() )
- {
- // Regenerate the menu resource
- GetMenuBar()->Refresh();
- }
-
- return true;
-}
-
-void wxMenu::EndRadioGroup()
-{
-}
-
-wxMenuItem* wxMenu::DoAppend(wxMenuItem *item)
-{
- wxCHECK_MSG( item, NULL, wxT("NULL item in wxMenu::DoAppend") );
-
- if(!wxMenuBase::DoAppend(item) || !DoInsertOrAppend(item))
- {
- return NULL;
- }
- else if(IsAttached() && GetMenuBar()->IsAttached())
- {
- // Regenerate the menu resource
- GetMenuBar()->Refresh();
- }
-
- return item;
-}
-
-wxMenuItem* wxMenu::DoInsert(size_t pos, wxMenuItem *item)
-{
- if (wxMenuBase::DoInsert(pos, item) && DoInsertOrAppend(item, pos))
- return item;
- else
- return NULL;
-}
-
-wxMenuItem *wxMenu::DoRemove(wxMenuItem *item)
-{
- // we need to find the items position in the child list
- size_t pos;
- wxMenuItemList::compatibility_iterator node = GetMenuItems().GetFirst();
- for ( pos = 0; node; pos++ )
- {
- if ( node->GetData() == item )
- break;
-
- node = node->GetNext();
- }
-
- // DoRemove() (unlike Remove) can only be called for existing item!
- wxCHECK_MSG( node, NULL, wxT("bug in wxMenu::Remove logic") );
-
- // remove the item from the menu
- wxMenuItem *ret=wxMenuBase::DoRemove(item);
-
- if ( IsAttached() && GetMenuBar()->IsAttached() )
- {
- // Regenerate the menu resource
- GetMenuBar()->Refresh();
- }
-
- return ret;
-}
-
-// ---------------------------------------------------------------------------
-// accelerator helpers
-// ---------------------------------------------------------------------------
-
-#if wxUSE_ACCEL
-
-// create the wxAcceleratorEntries for our accels and put them into provided
-// array - return the number of accels we have
-size_t wxMenu::CopyAccels(wxAcceleratorEntry *accels) const
-{
- size_t count = GetAccelCount();
- for ( size_t n = 0; n < count; n++ )
- {
- *accels++ = *m_accels[n];
- }
-
- return count;
-}
-
-#endif // wxUSE_ACCEL
-
-// ---------------------------------------------------------------------------
-// set wxMenu title
-// ---------------------------------------------------------------------------
-
-void wxMenu::SetTitle(const wxString& label)
-{
- m_title = label;
-
- if ( IsAttached() && GetMenuBar()->IsAttached() )
- {
- // Regenerate the menu resource
- GetMenuBar()->Refresh();
- }
-}
-
-// ---------------------------------------------------------------------------
-// event processing
-// ---------------------------------------------------------------------------
-
-bool wxMenu::PalmCommand(WXUINT WXUNUSED(param), WXWORD id)
-{
- return false;
-}
-
-// ---------------------------------------------------------------------------
-// other
-// ---------------------------------------------------------------------------
-
-wxWindow *wxMenu::GetWindow() const
-{
- return NULL;
-}
-
-// ---------------------------------------------------------------------------
-// Menu Bar
-// ---------------------------------------------------------------------------
-
-void wxMenuBar::Init()
-{
-}
-
-wxMenuBar::wxMenuBar()
-{
-}
-
-wxMenuBar::wxMenuBar( long WXUNUSED(style) )
-{
-}
-
-wxMenuBar::wxMenuBar(size_t count, wxMenu *menus[], const wxString titles[], long WXUNUSED(style))
-{
-}
-
-wxMenuBar::~wxMenuBar()
-{
-}
-
-// ---------------------------------------------------------------------------
-// wxMenuBar helpers
-// ---------------------------------------------------------------------------
-
-void wxMenuBar::Refresh()
-{
- wxCHECK_RET( IsAttached(), wxT("can't refresh unattached menubar") );
-
- // Regenerate the menu resource
- LoadMenu();
-}
-
-WXHMENU wxMenuBar::Create()
-{
- return NULL;
-}
-
-int wxMenuBar::PalmPositionForWxMenu(wxMenu *menu, int wxpos)
-{
- return -1;
-}
-
-// ---------------------------------------------------------------------------
-// wxMenuBar functions to work with the top level submenus
-// ---------------------------------------------------------------------------
-
-void wxMenuBar::EnableTop(size_t pos, bool enable)
-{
- // Palm OS does not have support for grayed or disabled items
-}
-
-void wxMenuBar::SetMenuLabel(size_t pos, const wxString& label)
-{
- wxCHECK_RET( pos < GetMenuCount(), wxT("invalid menu index") );
-
- m_titles[pos] = label;
-
- if ( !IsAttached() )
- {
- return;
- }
-
- // Regenerate the menu resource
- Refresh();
-}
-
-wxString wxMenuBar::GetMenuLabel(size_t pos) const
-{
- wxCHECK_MSG( pos < GetMenuCount(), wxEmptyString,
- wxT("invalid menu index in wxMenuBar::GetMenuLabel") );
-
- return m_titles[pos];
-}
-
-// ---------------------------------------------------------------------------
-// wxMenuBar construction
-// ---------------------------------------------------------------------------
-
-wxMenu *wxMenuBar::Replace(size_t pos, wxMenu *menu, const wxString& title)
-{
- wxMenu *menuOld = wxMenuBarBase::Replace(pos, menu, title);
- if ( !menuOld )
- return NULL;
-
- m_titles[pos] = title;
-
- if ( IsAttached() )
- {
- // Regenerate the menu resource
- Refresh();
- }
-
- return menuOld;
-}
-
-bool wxMenuBar::Insert(size_t pos, wxMenu *menu, const wxString& title)
-{
- if ( !wxMenuBarBase::Insert(pos, menu, title) )
- return false;
-
- m_titles.Insert(title, pos);
-
- if ( IsAttached() )
- {
- // Regenerate the menu resource
- Refresh();
- }
-
- return true;
-}
-
-bool wxMenuBar::Append(wxMenu *menu, const wxString& title)
-{
- if ( !wxMenuBarBase::Append(menu, title) )
- return false;
-
- m_titles.Add(title);
-
- if(IsAttached())
- {
- // Regenerate the menu resource
- Refresh();
- }
-
- return true;
-}
-
-wxMenu *wxMenuBar::Remove(size_t pos)
-{
- wxMenu *menu = wxMenuBarBase::Remove(pos);
- if ( !menu )
- return NULL;
-
- m_titles.RemoveAt(pos);
-
- if (IsAttached())
- {
- // Regenerate the menu resource
- Refresh();
- }
-
- return menu;
-}
-
-#if wxUSE_ACCEL
-
-void wxMenuBar::RebuildAccelTable()
-{
-}
-
-#endif // wxUSE_ACCEL
-
-int wxMenuBar::ProcessCommand(int ItemID)
-{
- if(!IsAttached())
- return -1;
-
- int MenuNum=(ItemID/1000)-1;
- int ItemNum=(ItemID-(1000*(MenuNum+1)));
-
- // Should never happen, but it doesn't hurt to check anyway.
- if(MenuNum>GetMenuCount())
- return -1;
-
- // Get the menu
- wxMenu *ActiveMenu=GetMenu(MenuNum);
-
- // Make sure this is a valid item.
- if(ItemNum>ActiveMenu->GetMenuItemCount())
- return -1;
-
- // Get the item
- wxMenuItem *ActiveItem=ActiveMenu->FindItemByPosition(ItemNum);
- int ActiveID=ActiveItem->GetId();
-
- return ActiveID;
-}
-
-/* Palm OS does not have good dynamic menu support. About all you can do with
- * the standard API calls is to add new items to an existing drop-down menu and
- * hide/show items in a drop-down menu. It is impossible to add, hide, or
- * change the label on a drop-down menu.
- *
- * The easiest and simplest way around this limitation is to modify the Palm OS
- * MenuBarType structure directly. This gives limited ability to change the
- * label on a drop-down menu. I have not been able to find a safe way to add,
- * delete, or resize drop-down menus in OS 6.
- *
- * The following routine attempt to work around these limitations present in the
- * Palm OS API to provide limited dynamic menu support. This solution is far
- * from perfect, but the only other option is to wait for PalmSource to add full
- * dynamic menu support, or to recreate the Palm OS menu system from scratch.
- *
- * This system is limited in that no more than 4 drop-down menus are allowed per
- * menu bar, and the label for each drop-down menu is limited to 8 characters of
- * text. However, this menu system should work for most applications.
- *
- * Basically the menu routines select one of four menu bars, depending on
- * whether or not the requested menu bar has one, two, three, or four drop-down
- * menus.
- *
- * These four "template" menu bars contain one, two, three, or four drop-down
- * menus. Each menu has a dummy menu item attached to it to allow the Palm OS
- * MenuAddItem function to add the real items.
- *
- * The labels on the drop-down menus are then replaced with the labels of the
- * real menus.
- *
- * The menu is then attached to the active window and the MenuAddItem API
- * function is called to add the items to each drop-down menu. Finally,
- * MenuHideItem is called to remove the dummy items from each drop-down menu.
- */
-void wxMenuBar::LoadMenu()
-{
- int i=0;
- int j=0;
-#ifdef __WXPALMOS6__
- // Handle to the currently running application database
- DmOpenRef AppDB;
-
- // Get app database reference - needed for some Palm OS Menu API calls.
- SysGetModuleDatabase(SysGetRefNum(), NULL, &AppDB);
-#endif // __WXPALMOS6__
-
- // Get the number of menus
- int NumMenus=GetMenuCount();
-
- // Set up the pointers and handles
- char *PalmOSMenuBarPtr;
- MemHandle PalmOSMenuBar;
-
- // Load the menu template and set up the menu pointers
- if(NumMenus==1)
- {
- PalmOSMenuBar = POS_DmGetResource (AppDB, MenuRscType, 1000);
- PalmOSMenuBarPtr = (char *)MemHandleLock (PalmOSMenuBar);
-
- PalmOSMenuBarPtr += 74;
- }
- else if(NumMenus==2)
- {
- PalmOSMenuBar = POS_DmGetResource (AppDB, MenuRscType, 2000);
- PalmOSMenuBarPtr = (char *)MemHandleLock (PalmOSMenuBar);
-
- PalmOSMenuBarPtr += 116;
- }
- else if(NumMenus==3)
- {
- PalmOSMenuBar = POS_DmGetResource (AppDB, MenuRscType, 3000);
- PalmOSMenuBarPtr = (char *)MemHandleLock (PalmOSMenuBar);
-
- PalmOSMenuBarPtr += 158;
- }
- else
- {
- // We support a maximum of 4 menus, so make sure that do not create
- // more than we can handle.
- NumMenus=4;
-
- PalmOSMenuBar = POS_DmGetResource (AppDB, MenuRscType, 4000);
- PalmOSMenuBarPtr = (char *)MemHandleLock (PalmOSMenuBar);
-
- PalmOSMenuBarPtr += 200;
- }
-
- // Set the proper names for the drop-down triggers.
- for(i=0;i<NumMenus;i++)
- {
- // Clear out the old label
- char buffer[8]={' ',' ',' ',' ',' ',' ',' ',' '};
- MemMove(PalmOSMenuBarPtr,buffer,8);
-
- wxString MenuTitle=m_titles.Item(i);
-
- // Make sure we don't copy more than 8 bytes for the label
- int LengthToCopy = MenuTitle.length();
- if(LengthToCopy > 8)
- LengthToCopy = 8;
-
- MemMove(PalmOSMenuBarPtr,(char*)(&MenuTitle),LengthToCopy);
- PalmOSMenuBarPtr+=11;
- }
-
- // We are done with the menu pointer.
- MemHandleUnlock(PalmOSMenuBar);
- DmReleaseResource(PalmOSMenuBar);
-
- // We must make the menu active before we can add items to the drop-down
- // triggers.
- POS_FrmSetMenu (FrmGetActiveForm(), AppDB, NumMenus * 1000);
-
- /* Add the menu items to the drop-down triggers. This must be done after
- * setting the triggers, because setting the names of drop-down triggers
- * that have a variable number of items requires carefull calculation of
- * the offsets in the MenuBarType structure. Setting the triggers first
- * avoids this.
- */
- for(i=0;i<NumMenus;i++)
- {
- wxMenu *CurrentMenu=GetMenu(i);
-
- for(j=0;j<CurrentMenu->GetMenuItemCount();j++)
- {
- wxMenuItem *CurrentItem=CurrentMenu->FindItemByPosition(j);
- wxString ItemLabel=CurrentItem->GetLabel();
-
- if(CurrentItem->IsSeparator()==true)
- {
- char Separator=MenuSeparatorChar;
- if(j==0)
- MenuAddItem(9000+i,((i*1000)+1000)+j,0x00,&Separator);
- else
- MenuAddItem(((i*1000)+1000)+j-1,((i*1000)+1000)+j,0x00,&Separator);
- }
- else
- {
- if(j==0)
- MenuAddItem(9000+i,((i*1000)+1000)+j,0x00,(char *)(&ItemLabel));
- else
- MenuAddItem(((i*1000)+1000)+j-1,((i*1000)+1000)+j,0x00,(char *)(&ItemLabel));
- }
- }
-
- // Hide the dummy menu item, since we don't need it anymore.
- MenuHideItem(9000+i);
- }
-}
-
-void wxMenuBar::Attach(wxFrame *frame)
-{
- // before attaching preprocess menus to not include wxID_EXIT item
- // as PalmOS guidelines suggest
-
- wxMenuItem *item;
- wxMenu *menu;
- int i;
-
- while( item = FindItem(wxID_EXIT) )
- {
- menu = item->GetMenu();
- if( !menu ) break; // something broken ?
-
- size_t count = menu->GetMenuItemCount();
- if( count == 0 ) break; // something broken ?
-
- // if EXIT is last item in menu
- if( menu->FindItemByPosition( count - 1 ) == item )
- {
- menu->Destroy( item );
-
- // was more than one item?
- // was previous separator ?
- if( count > 2 )
- {
- item = menu->FindItemByPosition( count - 2 );
- if(item && item->IsSeparator())
- menu->Destroy( item );
- }
- }
-
- // if EXIT is first item in menu
- else if( menu->FindItemByPosition( 0 ) == item )
- {
- menu->Destroy( item );
-
- // was more than one item?
- // was previous separator ?
- if( count > 2 )
- {
- item = menu->FindItemByPosition( 0 );
- if(item && item->IsSeparator())
- menu->Destroy( item );
- }
- }
-
- // if EXIT is in the middle but before and after are selectors
- else
- {
- i = 1; // 0 case already done
- while ( (i < count) && (menu->FindItemByPosition( 0 ) != item) )
- {
- i++;
- }
-
- if (i >= count) break;
- if (menu->FindItemByPosition( i ) != item) break;
- menu->Destroy( item );
- item = menu->FindItemByPosition( i );
- if ( item &&
- item->IsSeparator() &&
- menu->FindItemByPosition( i-1 )->IsSeparator() )
- {
- // noe need for two neighbouring separators
- menu->Destroy( item );
- }
- }
- }
-
- // check if we received any empty menu!
- i = 0;
- while(i < GetMenuCount())
- {
- menu = GetMenu(i);
-
- if( menu && (menu->GetMenuItemCount()==0) )
- {
- menu = Remove( i );
- delete menu;
- }
- else
- i++;
- }
-
- wxMenuBarBase::Attach(frame);
-
- LoadMenu();
-}
-
-void wxMenuBar::Detach()
-{
- wxMenuBarBase::Detach();
-}
-
-#endif // wxUSE_MENUS
+++ /dev/null
-///////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/menuitem.cpp
-// Purpose: wxMenuItem implementation
-// 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
-
-#if wxUSE_MENUS
-
-#include "wx/menuitem.h"
-
-#ifndef WX_PRECOMP
- #include "wx/font.h"
- #include "wx/bitmap.h"
- #include "wx/settings.h"
- #include "wx/window.h"
- #include "wx/accel.h"
- #include "wx/string.h"
- #include "wx/log.h"
- #include "wx/menu.h"
-#endif
-
-#if wxUSE_ACCEL
- #include "wx/accel.h"
-#endif // wxUSE_ACCEL
-
-// ---------------------------------------------------------------------------
-// macro
-// ---------------------------------------------------------------------------
-
-// conditional compilation
-#if wxUSE_OWNER_DRAWN
- #define OWNER_DRAWN_ONLY( code ) if ( IsOwnerDrawn() ) code
-#else // !wxUSE_OWNER_DRAWN
- #define OWNER_DRAWN_ONLY( code )
-#endif // wxUSE_OWNER_DRAWN/!wxUSE_OWNER_DRAWN
-
-// ============================================================================
-// implementation
-// ============================================================================
-
-// ----------------------------------------------------------------------------
-// wxMenuItem
-// ----------------------------------------------------------------------------
-
-// ctor & dtor
-// -----------
-
-wxMenuItem::wxMenuItem(wxMenu *pParentMenu,
- int id,
- const wxString& text,
- const wxString& strHelp,
- wxItemKind kind,
- wxMenu *pSubMenu)
- : wxMenuItemBase(pParentMenu, id, text, strHelp, kind, pSubMenu)
-#if wxUSE_OWNER_DRAWN
- , wxOwnerDrawn(text, kind == wxITEM_CHECK, true)
-#endif // owner drawn
-{
-}
-
-wxMenuItem::wxMenuItem(wxMenu *parentMenu,
- int id,
- const wxString& text,
- const wxString& help,
- bool isCheckable,
- wxMenu *subMenu)
- : wxMenuItemBase(parentMenu, id, text, help,
- isCheckable ? wxITEM_CHECK : wxITEM_NORMAL, subMenu)
-#if wxUSE_OWNER_DRAWN
- , wxOwnerDrawn(text, isCheckable, true)
-#endif // owner drawn
-{
-}
-
-void wxMenuItem::Init()
-{
-}
-
-wxMenuItem::~wxMenuItem()
-{
-}
-
-// misc
-// ----
-
-// get item state
-// --------------
-
-bool wxMenuItem::IsChecked() const
-{
- return false;
-}
-
-// radio group stuff
-// -----------------
-
-void wxMenuItem::SetAsRadioGroupStart()
-{
-}
-
-void wxMenuItem::SetRadioGroupStart(int start)
-{
-}
-
-void wxMenuItem::SetRadioGroupEnd(int end)
-{
-}
-
-// change item state
-// -----------------
-
-void wxMenuItem::Enable(bool enable)
-{
-}
-
-void wxMenuItem::Check(bool check)
-{
-}
-
-void wxMenuItem::SetItemLabel(const wxString& text)
-{
-}
-
-void wxMenuItem::SetCheckable(bool checkable)
-{
-}
-
-// ----------------------------------------------------------------------------
-// wxMenuItemBase
-// ----------------------------------------------------------------------------
-
-wxMenuItem *wxMenuItemBase::New(wxMenu *parentMenu,
- int id,
- const wxString& name,
- const wxString& help,
- wxItemKind kind,
- wxMenu *subMenu)
-{
- return new wxMenuItem(parentMenu, id, name, help, kind, subMenu);
-}
-
-#endif // wxUSE_MENUS
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/metafile.cpp
-// Purpose: wxMetafileDC etc.
-// 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/utils.h"
- #include "wx/app.h"
-#endif
-
-#include "wx/metafile.h"
-
-#if wxUSE_METAFILE && !defined(wxMETAFILE_IS_ENH)
-
-#include "wx/clipbrd.h"
-#include "wx/palmos/private.h"
-
-#include <stdio.h>
-#include <string.h>
-
-// ----------------------------------------------------------------------------
-// wxWin macros
-// ----------------------------------------------------------------------------
-
-IMPLEMENT_DYNAMIC_CLASS(wxMetafile, wxObject)
-IMPLEMENT_ABSTRACT_CLASS(wxMetafileDC, wxDC)
-
-// ============================================================================
-// implementation
-// ============================================================================
-
-// ----------------------------------------------------------------------------
-// wxMetafileRefData
-// ----------------------------------------------------------------------------
-
-/*
- * Metafiles
- * Currently, the only purpose for making a metafile is to put
- * it on the clipboard.
- */
-
-wxMetafileRefData::wxMetafileRefData()
-{
-}
-
-wxMetafileRefData::~wxMetafileRefData()
-{
-}
-
-// ----------------------------------------------------------------------------
-// wxMetafile
-// ----------------------------------------------------------------------------
-
-wxMetafile::wxMetafile(const wxString& file)
-{
-}
-
-wxMetafile::~wxMetafile()
-{
-}
-
-bool wxMetafile::SetClipboard(int width, int height)
-{
- return false;
-}
-
-bool wxMetafile::Play(wxDC *dc)
-{
- return false;
-}
-
-void wxMetafile::SetHMETAFILE(WXHANDLE mf)
-{
-}
-
-void wxMetafile::SetWindowsMappingMode(int mm)
-{
-}
-
-// ----------------------------------------------------------------------------
-// Metafile device context
-// ----------------------------------------------------------------------------
-
-// Original constructor that does not takes origin and extent. If you use this,
-// *DO* give origin/extent arguments to wxMakeMetafilePlaceable.
-wxMetafileDC::wxMetafileDC(const wxString& file)
-{
-}
-
-// New constructor that takes origin and extent. If you use this, don't
-// give origin/extent arguments to wxMakeMetafilePlaceable.
-wxMetafileDC::wxMetafileDC(const wxString& file, int xext, int yext, int xorg, int yorg)
-{
-}
-
-wxMetafileDC::~wxMetafileDC()
-{
-}
-
-void wxMetafileDC::GetTextExtent(const wxString& string, long *x, long *y,
- long *descent, long *externalLeading,
- const wxFont *theFont, bool WXUNUSED(use16bit)) const
-{
-}
-
-wxMetafile *wxMetafileDC::Close()
-{
- return NULL;
-}
-
-void wxMetafileDC::SetMapMode(wxMappingMode mode)
-{
-}
-
-// ----------------------------------------------------------------------------
-// wxMakeMetafilePlaceable
-// ----------------------------------------------------------------------------
-struct mfPLACEABLEHEADER {
- DWORD key;
- HANDLE hmf;
- RECT bbox;
- WORD inch;
- DWORD reserved;
- WORD checksum;
-};
-
-/*
- * Pass filename of existing non-placeable metafile, and bounding box.
- * Adds a placeable metafile header, sets the mapping mode to anisotropic,
- * and sets the window origin and extent to mimic the wxMM_TEXT mapping mode.
- *
- */
-
-bool wxMakeMetafilePlaceable(const wxString& filename, float scale)
-{
- return false;
-}
-
-bool wxMakeMetafilePlaceable(const wxString& filename, int x1, int y1, int x2, int y2, float scale, bool useOriginAndExtent)
-{
- return false;
-}
-
-
-#if wxUSE_DRAG_AND_DROP
-
-// ----------------------------------------------------------------------------
-// wxMetafileDataObject
-// ----------------------------------------------------------------------------
-
-size_t wxMetafileDataObject::GetDataSize() const
-{
- return 0;
-}
-
-bool wxMetafileDataObject::GetDataHere(void *buf) const
-{
- return false;
-}
-
-bool wxMetafileDataObject::SetData(size_t WXUNUSED(len), const void *buf)
-{
- return false;
-}
-
-#endif // wxUSE_DRAG_AND_DROP
-
-#endif // wxUSE_METAFILE
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/minifram.cpp
-// Purpose: wxMiniFrame
-// Author: Julian Smart
-// Modified by:
-// Created: 04/01/98
-// RCS-ID: $Id$
-// Copyright: (c) Julian Smart
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-// For compilers that support precompilation, includes "wx.h".
-#include "wx/wxprec.h"
-
-#ifdef __BORLANDC__
-#pragma hdrstop
-#endif
-
-#if wxUSE_MINIFRAME
-
-#include "wx/minifram.h"
-
-IMPLEMENT_DYNAMIC_CLASS(wxMiniFrame, wxFrame)
-
-#endif // wxUSE_MINIFRAME
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/msgdlg.cpp
-// Purpose: wxMessageDialog
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-// For compilers that support precompilation, includes "wx.h".
-#include "wx/wxprec.h"
-
-#ifdef __BORLANDC__
- #pragma hdrstop
-#endif
-
-#ifndef WX_PRECOMP
- #include "wx/app.h"
- #include "wx/utils.h"
- #include "wx/dialog.h"
- #include "wx/msgdlg.h"
-#endif
-
-#ifdef __WXPALMOS6__
-#include <Loader.h>
-#else // __WXPALMOS5__
-#include <UIResources.h> // alertRscType
-#endif
-
-#include <Form.h>
-
-IMPLEMENT_CLASS(wxMessageDialog, wxDialog)
-
-int wxMessageDialog::ShowModal()
-{
- int AlertID=1000;
- int Result=0;
- int wxResult=wxID_OK;
- const long style = GetMessageDialogStyle();
-
-#ifdef __WXPALMOS6__
- // Handle to the currently running application database
- DmOpenRef AppDB;
- SysGetModuleDatabase(SysGetRefNum(), NULL, &AppDB);
-#endif // __WXPALMOS6__
-
- // Translate wx styles into Palm OS styles
- if (style & wxYES_NO)
- {
- if (style & wxCANCEL)
- AlertID=1300; // Yes No Cancel
- else
- AlertID=1200; // Yes No
- }
- if (style & wxOK)
- {
- if (style & wxCANCEL)
- AlertID=1100; // Ok Cancel
- else
- AlertID=1000; // Ok
- }
-
- // Add the icon styles
- switch ( GetEffectiveIcon() )
- {
- case wxICON_ERROR:
- AlertID = AlertID + 1;
- break;
-
- case wxICON_WARNING:
- AlertID = AlertID + 0;
- break;
-
- case wxICON_QUESTION:
- AlertID = AlertID + 3;
- break;
-
- case wxICON_NONE:
- case wxICON_INFORMATION:
- AlertID = AlertID + 2;
- break;
- }
-
- // The Palm OS Dialog API does not support custom titles in a dialog box.
- // So we have to set the title by manipulating the resource.
-
- // Get the alert resource
- char *AlertPtr;
- MemHandle AlertHandle;
- AlertHandle = POS_DmGetResource (AppDB, alertRscType, AlertID);
-
- AlertPtr=(char *)MemHandleLock(AlertHandle);
- AlertPtr+=8;
-
- // Clear out any old title. This must be done with a static array of chars
- // because using MemSet is not supported on resources and could result in
- // crashes or unpredictable behaviour.
- char ClearTitle[25]={' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' '};
- MemMove(AlertPtr,&ClearTitle,25);
-
- // Get the title length and make sure it is not too long
- int TitleLength=m_caption.length();
- if(TitleLength>25)
- TitleLength=25;
-
- // Center the title in the window
- int BufferLength=(25-TitleLength)/2;
- AlertPtr+=BufferLength;
-
- // Copy the title
- MemMove(AlertPtr,m_caption.c_str(),TitleLength);
-
- // Release the resource
- MemHandleUnlock(AlertHandle);
- DmReleaseResource(AlertHandle);
-
- // Display the dialog
- Result = POS_FrmCustomAlert (AppDB, AlertID, m_message.c_str(), "", "");
-
- // Convert the Palm OS result to wxResult
- if(AlertID<1100)
- {
- // Ok
- wxResult=wxID_OK;
- }
- else if(AlertID<1200)
- {
- // Ok Cancel
- if(Result==0)
- wxResult=wxID_OK;
- else
- wxResult=wxID_CANCEL;
- }
- else if(AlertID<1300)
- {
- // Yes No
- if(Result==0)
- wxResult=wxID_YES;
- else
- wxResult=wxID_NO;
- }
- else
- {
- // Yes No Cancel
- if(Result==0)
- wxResult=wxID_YES;
- else if(Result==1)
- wxResult=wxID_NO;
- else
- wxResult=wxID_CANCEL;
- }
-
- return wxResult;
-}
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/nativdlg.cpp
-// Purpose: Native dialog loading code (part of wxWindow)
-// 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 <stdio.h>
-
- #include "wx/wx.h"
-#endif
-
-#include "wx/spinbutt.h"
-
-// ---------------------------------------------------------------------------
-// global functions
-// ---------------------------------------------------------------------------
-
-// ===========================================================================
-// implementation
-// ===========================================================================
-
-bool wxWindow::LoadNativeDialog(wxWindow* parent, wxWindowID& id)
-{
- return false;
-}
-
-bool wxWindow::LoadNativeDialog(wxWindow* parent, const wxString& name)
-{
- return false;
-}
-
-// ---------------------------------------------------------------------------
-// look for child by id
-// ---------------------------------------------------------------------------
-
-wxWindow* wxWindow::GetWindowChild1(wxWindowID id)
-{
- return NULL;
-}
-
-wxWindow* wxWindow::GetWindowChild(wxWindowID id)
-{
- return NULL;
-}
-
-// ---------------------------------------------------------------------------
-// create wxWin window from a native HWND
-// ---------------------------------------------------------------------------
-
-wxWindow* wxWindow::CreateWindowFromWinHandle(wxWindow* parent, WXWINHANDLE handle)
-{
- return NULL;
-}
-
-// Make sure the window style (etc.) reflects the WinHandle style (roughly)
-void wxWindow::AdoptAttributesFromWinHandle(void)
-{
-}
-
+++ /dev/null
-///////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/notebook.cpp
-// Purpose: implementation of wxNotebook
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-///////////////////////////////////////////////////////////////////////////////
-
-// For compilers that support precompilation, includes "wx.h".
-#include "wx/wxprec.h"
-
-#ifdef __BORLANDC__
- #pragma hdrstop
-#endif
-
-#if wxUSE_NOTEBOOK
-
-// wxWidgets
-#ifndef WX_PRECOMP
- #include "wx/string.h"
-#endif // WX_PRECOMP
-
-// ----------------------------------------------------------------------------
-// macros
-// ----------------------------------------------------------------------------
-
-// check that the page index is valid
-#define IS_VALID_PAGE(nPage) ((nPage) < GetPageCount())
-
-// ----------------------------------------------------------------------------
-// event table
-// ----------------------------------------------------------------------------
-
-BEGIN_EVENT_TABLE(wxNotebook, wxBookCtrlBase)
- EVT_NOTEBOOK_PAGE_CHANGED(wxID_ANY, wxNotebook::OnSelChange)
-
- EVT_SIZE(wxNotebook::OnSize)
-
- EVT_NAVIGATION_KEY(wxNotebook::OnNavigationKey)
-END_EVENT_TABLE()
-
-// ============================================================================
-// implementation
-// ============================================================================
-
-// ----------------------------------------------------------------------------
-// wxNotebook construction
-// ----------------------------------------------------------------------------
-
-const wxNotebookPageInfoList& wxNotebook::GetPageInfos() const
-{
- wxNotebookPageInfoList* list;
-
- return m_pageInfos ;
-}
-
-// common part of all ctors
-void wxNotebook::Init()
-{
-}
-
-// default for dynamic class
-wxNotebook::wxNotebook()
-{
-}
-
-// the same arguments as for wxControl
-wxNotebook::wxNotebook(wxWindow *parent,
- wxWindowID id,
- const wxPoint& pos,
- const wxSize& size,
- long style,
- const wxString& name)
-{
-}
-
-// Create() function
-bool wxNotebook::Create(wxWindow *parent,
- wxWindowID id,
- const wxPoint& pos,
- const wxSize& size,
- long style,
- const wxString& name)
-{
- return false;
-}
-
-// ----------------------------------------------------------------------------
-// wxNotebook accessors
-// ----------------------------------------------------------------------------
-
-size_t wxNotebook::GetPageCount() const
-{
- return 0;
-}
-
-int wxNotebook::GetRowCount() const
-{
- return 0;
-}
-
-int wxNotebook::SetSelection(size_t nPage)
-{
- return 0;
-}
-
-int wxNotebook::ChangeSelection(size_t nPage)
-{
- return 0;
-}
-
-bool wxNotebook::SetPageText(size_t nPage, const wxString& strText)
-{
- return false;
-}
-
-wxString wxNotebook::GetPageText(size_t nPage) const
-{
- return wxEmptyString;
-}
-
-int wxNotebook::GetPageImage(size_t nPage) const
-{
- return -1;
-}
-
-bool wxNotebook::SetPageImage(size_t nPage, int nImage)
-{
- return false;
-}
-
-void wxNotebook::SetImageList(wxImageList* imageList)
-{
-}
-
-// ----------------------------------------------------------------------------
-// wxNotebook size settings
-// ----------------------------------------------------------------------------
-
-void wxNotebook::SetPageSize(const wxSize& size)
-{
-}
-
-void wxNotebook::SetPadding(const wxSize& padding)
-{
-}
-
-void wxNotebook::SetTabSize(const wxSize& sz)
-{
-}
-
-wxSize wxNotebook::CalcSizeFromPage(const wxSize& sizePage) const
-{
- return wxSize(0,0);
-}
-
-void wxNotebook::AdjustPageSize(wxNotebookPage *page)
-{
-}
-
-// ----------------------------------------------------------------------------
-// wxNotebook operations
-// ----------------------------------------------------------------------------
-
-// remove one page from the notebook, without deleting
-wxNotebookPage *wxNotebook::DoRemovePage(size_t nPage)
-{
- return NULL;
-}
-
-// remove all pages
-bool wxNotebook::DeleteAllPages()
-{
- return true;
-}
-
-// same as AddPage() but does it at given position
-bool wxNotebook::InsertPage(size_t nPage,
- wxNotebookPage *pPage,
- const wxString& strText,
- bool bSelect,
- int imageId)
-{
- return false;
-}
-
-int wxNotebook::HitTest(const wxPoint& pt, long *flags) const
-{
- return 0;
-}
-
-
-// ----------------------------------------------------------------------------
-// wxNotebook callbacks
-// ----------------------------------------------------------------------------
-
-void wxNotebook::OnSize(wxSizeEvent& event)
-{
-}
-
-void wxNotebook::OnSelChange(wxBookCtrlEvent& event)
-{
-}
-
-void wxNotebook::OnNavigationKey(wxNavigationKeyEvent& event)
-{
-}
-
-// ----------------------------------------------------------------------------
-// wxNotebook base class virtuals
-// ----------------------------------------------------------------------------
-
-#if wxUSE_CONSTRAINTS
-
-// override these 2 functions to do nothing: everything is done in OnSize
-
-void wxNotebook::SetConstraintSizes(bool WXUNUSED(recurse))
-{
-}
-
-bool wxNotebook::DoPhase(int WXUNUSED(nPhase))
-{
- return true;
-}
-
-#endif // wxUSE_CONSTRAINTS
-
-#endif // wxUSE_NOTEBOOK
+++ /dev/null
-///////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/ownerdrw.cpp
-// Purpose: implementation of wxOwnerDrawn class
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-///////////////////////////////////////////////////////////////////////////////
-
-// For compilers that support precompilation, includes "wx.h".
-#include "wx/wxprec.h"
-
-#ifdef __BORLANDC__
- #pragma hdrstop
-#endif
-
-#ifndef WX_PRECOMP
- #include "wx/window.h"
- #include "wx/font.h"
- #include "wx/bitmap.h"
- #include "wx/dcmemory.h"
- #include "wx/menu.h"
- #include "wx/utils.h"
- #include "wx/settings.h"
- #include "wx/menuitem.h"
- #include "wx/module.h"
-#endif
-
-#include "wx/ownerdrw.h"
-#include "wx/fontutil.h"
-
-#if wxUSE_OWNER_DRAWN
-
-class wxMSWSystemMenuFontModule : public wxModule
-{
-public:
-
- virtual bool OnInit()
- {
- ms_systemMenuFont = new wxFont;
- return true;
- }
-
- virtual void OnExit()
- {
- wxDELETE(ms_systemMenuFont);
- }
-
- static wxFont* ms_systemMenuFont;
- static int ms_systemMenuButtonWidth; // windows clean install default
- static int ms_systemMenuHeight; // windows clean install default
-private:
- DECLARE_DYNAMIC_CLASS(wxMSWSystemMenuFontModule)
-};
-
-// these static variables are by the wxMSWSystemMenuFontModule object
-// and reflect the system settings returned by the Win32 API's
-// SystemParametersInfo() call.
-
-wxFont* wxMSWSystemMenuFontModule::ms_systemMenuFont = NULL;
-int wxMSWSystemMenuFontModule::ms_systemMenuButtonWidth = 18; // windows clean install default
-int wxMSWSystemMenuFontModule::ms_systemMenuHeight = 18; // windows clean install default
-
-IMPLEMENT_DYNAMIC_CLASS(wxMSWSystemMenuFontModule, wxModule)
-
-// ============================================================================
-// implementation of wxOwnerDrawn class
-// ============================================================================
-
-// ctor
-// ----
-wxOwnerDrawn::wxOwnerDrawn(const wxString& str,
- bool bCheckable, bool bMenuItem)
- : m_strName(str)
-{
-}
-
-
-// these items will be set during the first invocation of the c'tor,
-// because the values will be determined by checking the system settings,
-// which is a chunk of code
-size_t wxOwnerDrawn::ms_nDefaultMarginWidth = 0;
-size_t wxOwnerDrawn::ms_nLastMarginWidth = 0;
-
-
-// drawing
-// -------
-
-// get size of the item
-// The item size includes the menu string, the accel string,
-// the bitmap and size for a submenu expansion arrow...
-bool wxOwnerDrawn::OnMeasureItem(size_t *pwidth, size_t *pheight)
-{
- return false;
-}
-
-// draw the item
-bool wxOwnerDrawn::OnDrawItem(wxDC& dc,
- const wxRect& rc,
- wxODAction act,
- wxODStatus st)
-{
- return false;
-}
-
-
-#endif // wxUSE_OWNER_DRAWN
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/palette.cpp
-// Purpose: wxPalette
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-// For compilers that support precompilation, includes "wx.h".
-#include "wx/wxprec.h"
-
-#ifdef __BORLANDC__
- #pragma hdrstop
-#endif
-
-#if wxUSE_PALETTE
-
-#include "wx/palette.h"
-
-#ifndef WX_PRECOMP
-#endif
-
-#include "wx/palmos/private.h"
-
-IMPLEMENT_DYNAMIC_CLASS(wxPalette, wxGDIObject)
-
-/*
- * Palette
- *
- */
-
-wxPaletteRefData::wxPaletteRefData(void)
-{
-}
-
-wxPaletteRefData::~wxPaletteRefData(void)
-{
-}
-
-wxPalette::wxPalette(void)
-{
-}
-
-wxPalette::wxPalette(int n, const unsigned char *red, const unsigned char *green, const unsigned char *blue)
-{
-}
-
-wxPalette::~wxPalette(void)
-{
-}
-
-bool wxPalette::FreeResource(bool WXUNUSED(force))
-{
- return false;
-}
-
-bool wxPalette::Create(int n, const unsigned char *red, const unsigned char *green, const unsigned char *blue)
-{
- return false;
-}
-
-int wxPalette::GetPixel(unsigned char red, unsigned char green, unsigned char blue) const
-{
- return wxNOT_FOUND;
-}
-
-bool wxPalette::GetRGB(int index, unsigned char *red, unsigned char *green, unsigned char *blue) const
-{
- return false;
-}
-
-void wxPalette::SetHPALETTE(WXHPALETTE pal)
-{
-}
-
-#endif // wxUSE_PALETTE
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/pen.cpp
-// Purpose: wxPen
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-// For compilers that support precompilation, includes "wx.h".
-#include "wx/wxprec.h"
-
-#ifdef __BORLANDC__
- #pragma hdrstop
-#endif
-
-#include "wx/pen.h"
-
-#ifndef WX_PRECOMP
- #include <stdio.h>
- #include "wx/list.h"
- #include "wx/utils.h"
- #include "wx/app.h"
-#endif
-
-static int wx2msPenStyle(int wx_style);
-
-IMPLEMENT_DYNAMIC_CLASS(wxPen, wxGDIObject)
-
-wxPenRefData::wxPenRefData()
-{
-}
-
-wxPenRefData::wxPenRefData(const wxPenRefData& data)
-{
-}
-
-wxPenRefData::~wxPenRefData()
-{
-}
-
-// Pens
-
-wxPen::wxPen()
-{
-}
-
-wxPen::~wxPen()
-{
-}
-
-// Should implement Create
-wxPen::wxPen(const wxColour& col, int Width, wxPenStyle Style)
-{
-}
-
-wxPen::wxPen(const wxBitmap& stipple, int Width)
-{
-}
-
-bool wxPen::RealizeResource()
-{
- return false;
-}
-
-WXHANDLE wxPen::GetResourceHandle() const
-{
- return 0;
-}
-
-bool wxPen::FreeResource(bool WXUNUSED(force))
-{
- return false;
-}
-
-bool wxPen::IsFree() const
-{
- return false;
-}
-
-void wxPen::SetColour(const wxColour& col)
-{
-}
-
-void wxPen::SetColour(unsigned char r, unsigned char g, unsigned char b)
-{
-}
-
-void wxPen::SetWidth(int Width)
-{
-}
-
-void wxPen::SetStyle(wxPenStyle Style)
-{
-}
-
-void wxPen::SetStipple(const wxBitmap& Stipple)
-{
-}
-
-void wxPen::SetDashes(int nb_dashes, const wxDash *Dash)
-{
-}
-
-void wxPen::SetJoin(wxPenJoin Join)
-{
-}
-
-void wxPen::SetCap(wxPenCap Cap)
-{
-}
-
-wxGDIRefData *wxPen::CreateGDIRefData() const
-{
- return new wxPenRefData();
-}
-
-wxGDIRefData *wxPen::CloneGDIRefData(const wxGDIRefData *data) const
-{
- return new wxPenRefData(*static_cast<const wxPenRefData *>(data));
-}
-
+++ /dev/null
-///////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/popupwin.cpp
-// Purpose: implements wxPopupWindow for Palm OS
-// 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
-
-#if wxUSE_POPUPWIN
-
-#ifndef WX_PRECOMP
-#endif //WX_PRECOMP
-
-#include "wx/popupwin.h"
-
-#include "wx/palmos/private.h" // for GetDesktopWindow()
-
-IMPLEMENT_DYNAMIC_CLASS(wxPopupWindow, wxWindow)
-
-// ============================================================================
-// implementation
-// ============================================================================
-
-bool wxPopupWindow::Create(wxWindow *parent, int flags)
-{
- return false;
-}
-
-void wxPopupWindow::DoGetPosition(int *x, int *y) const
-{
-}
-
-WXDWORD wxPopupWindow::MSWGetStyle(long flags, WXDWORD *exstyle) const
-{
- return 0;
-}
-
-WXHWND wxPopupWindow::MSWGetParent() const
-{
- return (WXHWND) 0;
-}
-
-bool wxPopupWindow::Show(bool show)
-{
- return false;
-}
-
-#endif // #if wxUSE_POPUPWIN
+++ /dev/null
-///////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/prefconf.cpp
-// Purpose: wxPrefConfig implementation
-// Author: Wlodzimierz ABX Skiba
-// Modified by:
-// Created: 28.12.2004
-// RCS-ID: $Id$
-// Copyright: (c) Wlodzimierz Skiba
-// Licence: wxWindows licence
-///////////////////////////////////////////////////////////////////////////////
-
-// For compilers that support precompilation, includes "wx.h".
-#include "wx/wxprec.h"
-
-#ifdef __BORLANDC__
-#pragma hdrstop
-#endif
-
-#ifndef WX_PRECOMP
- #include "wx/string.h"
-#endif //WX_PRECOMP
-
-#if wxUSE_CONFIG && wxUSE_CONFIG_NATIVE
-
-#include "wx/config.h"
-
-// ============================================================================
-// implementation
-// ============================================================================
-
-/*
-
-http://www.palmos.com/dev/support/docs/protein_books/System_Management/PreferenceConcepts.html
-
-This wxPrefConfig class is a wxConfig wrapper around PalmOS Preferences
-functionality. Preferences allow to write any structure into its database so
-wxPrefConfig writes there all entries of single group into one Preference.
-To optimize read/write operations value of preference is cached. Cache is filled
-after each change of the path (including using path to group names in all
-operations) and it is flushed on destructor, any path change on or purpose
-with Flush().
-
-Meaning of styles:
-
- wxCONFIG_USE_LOCAL_FILE => store config in "saved" preferences database
- (not to be backed up during a HotSync operation)
- wxCONFIG_USE_GLOBAL_FILE => store config in "unsaved" preferences database
- (backed up during a HotSync operation)
-
-
-Each Preference is an array of chars. First unsigned char describes
-number N of chars used for Preference size. Next N chars (string) contains
-length of rest of Preference. Preference consists in serie of entries which
-should be read in loop until in reaches end of Preference.
-
- Each entry is an set of chars with following structure:
- 1. name (null terminated)
- 2. type (single char): b,s,g,l,d (see value)
- 3. value
- - for type="b" (bool) it os "0" or "1"
- - for type="s" (string) it is null terminated set of chars
- - for type="g" (subgroup) as for "s" but string is converted to
- uint16_t for id parameter of ::PrefGetAppPreferences()
- - for type="l" (long) as for "s" but string is converted to long
- - for type="d" (double) as for "s" but string is converted to double
- - otherwise it is ""
-
-So all together first Read in group needs 3 reading from Preference:
- 1. take the length N of length
- 2. take the length M of the group content
- 3. take the group content
-and all it is in single Preference to not overload Preferences database.
-As long as each next Read/Write is performed in the same group then none
-access to Preferences is performed. Flushing needs only single writing to
-databease because all 3 parts of Preference can be prepared in memory.
-
-NOTE: wxPrefConfig can read/write only its own entries. It is impossible to
-know structures of Preferences of other non wxW applications.
-
-*/
-
-// ----------------------------------------------------------------------------
-// ctor/dtor
-// ----------------------------------------------------------------------------
-IMPLEMENT_ABSTRACT_CLASS(wxPrefConfig, wxConfigBase)
-
-wxPrefConfig::wxPrefConfig(const wxString& appName, const wxString& vendorName,
- const wxString& strLocal, const wxString& strGlobal,
- long style)
- : wxConfigBase(appName, vendorName, strLocal, strGlobal, style)
-{
-}
-
-// ----------------------------------------------------------------------------
-// path management
-// ----------------------------------------------------------------------------
-
-void wxPrefConfig::SetPath(const wxString& strPath)
-{
-}
-
-// ----------------------------------------------------------------------------
-// enumeration (works only with current group)
-// ----------------------------------------------------------------------------
-
-bool wxPrefConfig::GetFirstGroup(wxString& str, long& lIndex) const
-{
-}
-
-bool wxPrefConfig::GetNextGroup(wxString& str, long& lIndex) const
-{
- /* TODO */
- return false;
-}
-
-bool wxPrefConfig::GetFirstEntry(wxString& str, long& lIndex) const
-{
- /* TODO */
- return false;
-}
-
-bool wxPrefConfig::GetNextEntry(wxString& str, long& lIndex) const
-{
- /* TODO */
- return false;
-}
-
-size_t wxPrefConfig::GetNumberOfEntries(bool WXUNUSED(bRecursive)) const
-{
- /* TODO */
- return 0;
-}
-
-size_t wxPrefConfig::GetNumberOfGroups(bool WXUNUSED(bRecursive)) const
-{
- /* TODO */
- return 0;
-}
-
-// ----------------------------------------------------------------------------
-// tests for existence
-// ----------------------------------------------------------------------------
-
-bool wxPrefConfig::HasGroup(const wxString& key) const
-{
- /* TODO */
- return false;
-}
-
-bool wxPrefConfig::HasEntry(const wxString& key) const
-{
- /* TODO */
- return false;
-}
-
-wxConfigBase::EntryType wxPrefConfig::GetEntryType(const wxString& key) const
-{
- /* TODO */
- return wxConfigBase::Type_Unknown;
-}
-
-// ----------------------------------------------------------------------------
-// reading/writing
-// ----------------------------------------------------------------------------
-
-bool wxPrefConfig::DoReadString(const wxString& key, wxString *pStr) const
-{
- /* TODO */
- return false;
-}
-
-// this exactly reproduces the string version above except for ExpandEnvVars(),
-// we really should avoid this code duplication somehow...
-
-bool wxPrefConfig::DoReadLong(const wxString& key, long *plResult) const
-{
- /* TODO */
- return false;
-}
-
-#if wxUSE_BASE64
-bool wxPrefConfig::DoReadBinary(const wxString& key, wxMemoryBuffer *buf) const
-{
- /* TODO */
- return false;
-}
-#endif // wxUSE_BASE64
-
-bool wxPrefConfig::DoWriteString(const wxString& key, const wxString& szValue)
-{
- /* TODO */
- return false;
-}
-
-bool wxPrefConfig::DoWriteLong(const wxString& key, long lValue)
-{
- /* TODO */
- return false;
-}
-
-#if wxUSE_BASE64
-bool wxPrefConfig::DoWriteBinary(const wxString& key, const wxMemoryBuffer& buf)
-{
- /* TODO */
- return false;
-}
-#endif // wxUSE_BASE64
-
-// ----------------------------------------------------------------------------
-// renaming
-// ----------------------------------------------------------------------------
-
-bool wxPrefConfig::RenameEntry(const wxString& oldName, const wxString& newName)
-{
- /* TODO */
- return false;
-}
-
-bool wxPrefConfig::RenameGroup(const wxString& oldName, const wxString& newName)
-{
- /* TODO */
- return false;
-}
-
-// ----------------------------------------------------------------------------
-// deleting
-// ----------------------------------------------------------------------------
-
-bool wxPrefConfig::DeleteEntry(const wxString& value, bool bGroupIfEmptyAlso)
-{
- /* TODO */
- return false;
-}
-
-bool wxPrefConfig::DeleteGroup(const wxString& key)
-{
- /* TODO */
- return false;
-}
-
-bool wxPrefConfig::DeleteAll()
-{
- /* TODO */
- return false;
-}
-
-#endif // wxUSE_CONFIG && wxUSE_CONFIG_NATIVE
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/printdlg.cpp
-// Purpose: wxPrintDialog, wxPageSetupDialog
-// 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
-
-// Don't use the Windows print dialog if we're in wxUniv mode and using
-// the PostScript architecture
-#if wxUSE_PRINTING_ARCHITECTURE && (!defined(__WXUNIVERSAL__) || !wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW)
-
-#ifndef WX_PRECOMP
- #include "wx/app.h"
- #include "wx/dcprint.h"
-#endif
-
-#include "wx/printdlg.h"
-
-#include "wx/palmos/private.h"
-
-// ---------------------------------------------------------------------------
-// wxWin macros
-// ---------------------------------------------------------------------------
-
- IMPLEMENT_DYNAMIC_CLASS(wxPrintDialog, wxDialog)
- IMPLEMENT_CLASS(wxPageSetupDialog, wxDialog)
-
-// ===========================================================================
-// implementation
-// ===========================================================================
-
-// ---------------------------------------------------------------------------
-// wxPrintDialog
-// ---------------------------------------------------------------------------
-
-wxPrintDialog::wxPrintDialog()
-{
-}
-
-wxPrintDialog::wxPrintDialog(wxWindow *p, wxPrintDialogData* data)
-{
-}
-
-wxPrintDialog::wxPrintDialog(wxWindow *p, wxPrintData* data)
-{
-}
-
-bool wxPrintDialog::Create(wxWindow *p, wxPrintDialogData* data)
-{
- return false;
-}
-
-wxPrintDialog::~wxPrintDialog()
-{
-}
-
-int wxPrintDialog::ShowModal()
-{
- return wxID_CANCEL;
-}
-
-wxDC *wxPrintDialog::GetPrintDC()
-{
- return NULL;
-}
-
-// ---------------------------------------------------------------------------
-// wxPageSetupDialog
-// ---------------------------------------------------------------------------
-
-wxPageSetupDialog::wxPageSetupDialog()
-{
-}
-
-wxPageSetupDialog::wxPageSetupDialog(wxWindow *p, wxPageSetupData *data)
-{
-}
-
-bool wxPageSetupDialog::Create(wxWindow *p, wxPageSetupData *data)
-{
- return false;
-}
-
-wxPageSetupDialog::~wxPageSetupDialog()
-{
-}
-
-int wxPageSetupDialog::ShowModal()
-{
- return wxID_CANCEL;
-}
-
-#endif
- // wxUSE_PRINTING_ARCHITECTURE
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/printpalm.cpp
-// Purpose: wxPalmPrinter framework
-// 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
-
-// Don't use the Windows printer if we're in wxUniv mode and using
-// the PostScript architecture
-#if wxUSE_PRINTING_ARCHITECTURE && (!defined(__WXUNIVERSAL__) || !wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW)
-
-#ifndef WX_PRECOMP
- #include "wx/window.h"
- #include "wx/palmos/private.h"
- #include "wx/utils.h"
- #include "wx/dc.h"
- #include "wx/app.h"
- #include "wx/msgdlg.h"
- #include "wx/intl.h"
- #include "wx/log.h"
- #include "wx/dcprint.h"
-#endif
-
-#include "wx/palmos/printpalm.h"
-#include "wx/printdlg.h"
-#include "wx/palmos/private.h"
-
-// ---------------------------------------------------------------------------
-// private functions
-// ---------------------------------------------------------------------------
-
-// ---------------------------------------------------------------------------
-// wxWin macros
-// ---------------------------------------------------------------------------
-
- IMPLEMENT_DYNAMIC_CLASS(wxPalmPrinter, wxPrinterBase)
- IMPLEMENT_CLASS(wxPalmPrintPreview, wxPrintPreviewBase)
-
-// ===========================================================================
-// implementation
-// ===========================================================================
-
-// ---------------------------------------------------------------------------
-// Printer
-// ---------------------------------------------------------------------------
-
-wxPalmPrinter::wxPalmPrinter(wxPrintDialogData *data)
- : wxPrinterBase(data)
-{
-}
-
-wxPalmPrinter::~wxPalmPrinter()
-{
-}
-
-bool wxPalmPrinter::Print(wxWindow *parent, wxPrintout *printout, bool prompt)
-{
- return false;
-}
-
-wxDC* wxPalmPrinter::PrintDialog(wxWindow *parent)
-{
- wxDC* dc = NULL;
-
- return dc;
-}
-
-bool wxPalmPrinter::Setup(wxWindow *parent)
-{
- return false;
-}
-
-/*
-* Print preview
-*/
-
-wxPalmPrintPreview::wxPalmPrintPreview(wxPrintout *printout,
- wxPrintout *printoutForPrinting,
- wxPrintDialogData *data)
- : wxPrintPreviewBase(printout, printoutForPrinting, data)
-{
-}
-
-wxPalmPrintPreview::wxPalmPrintPreview(wxPrintout *printout,
- wxPrintout *printoutForPrinting,
- wxPrintData *data)
- : wxPrintPreviewBase(printout, printoutForPrinting, data)
-{
-}
-
-wxPalmPrintPreview::~wxPalmPrintPreview()
-{
-}
-
-bool wxPalmPrintPreview::Print(bool interactive)
-{
- return false;
-}
-
-void wxPalmPrintPreview::DetermineScaling()
-{
- // TODO
-}
-
-#endif
- // wxUSE_PRINTING_ARCHITECTURE
+++ /dev/null
-///////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/progdlg.cpp
-// Purpose: wxProgressDialog implementation
-// Author: Wlodzimierz ABX Skiba
-// Modified by:
-// Created: 29.12.2004
-// RCS-ID: $Id$
-// Copyright: (c) Wlodzimierz Skiba
-// Licence: wxWindows licence
-///////////////////////////////////////////////////////////////////////////////
-
-// For compilers that support precompilation, includes "wx.h".
-#include "wx/wxprec.h"
-
-#ifdef __BORLANDC__
- #pragma hdrstop
-#endif
-
-#if wxUSE_PROGRESSDLG
-
-#include "wx/progdlg.h"
-
-#ifndef WX_PRECOMP
- #include "wx/string.h"
- #include "wx/msgdlg.h"
-#endif //WX_PRECOMP
-
-#include <Progress.h>
-#include <SysEvtMgr.h>
-
-IMPLEMENT_CLASS(wxProgressDialog, wxDialog)
-
-static Boolean wxProgressCallback(PrgCallbackData *data)
-{
- if(!data)
- return false;
-
- wxProgressDialog *dialog = (wxProgressDialog *)data->userDataP;
-
- if(!dialog)
- return false;
-
- return dialog->Callback(data);
-}
-
-wxProgressDialog::wxProgressDialog(const wxString &title,
- wxString const &message,
- int maximum,
- wxWindow *parent,
- int style)
- :wxDialog(parent, wxID_ANY, title),
- m_prgFrame(NULL),
- m_msg(message),
- m_cur(0),
- m_max(maximum),
- m_canSkip((style & wxPD_CAN_SKIP )==wxPD_CAN_SKIP)
-{
- wxString prgTitle = title.Mid(0, progressMaxTitle);
-
- m_prgFrame = PrgStartDialog(prgTitle.ToAscii(), wxProgressCallback, this);
-}
-
-wxProgressDialog::~wxProgressDialog()
-{
- if(m_prgFrame)
- {
- PrgStopDialog((ProgressType *)m_prgFrame, false);
- m_prgFrame = NULL;
- }
-}
-
-bool wxProgressDialog::Update(int value, const wxString& newmsg, bool *skip)
-{
- if(!m_prgFrame)
- return false;
- if(!newmsg.empty())
- m_msg = newmsg;
- m_cur = value;
-
- EventType event;
-
- ProgressType *prg = (ProgressType *)m_prgFrame;
- do
- {
- EvtGetEvent(&event, 0);
- Boolean handled = PrgHandleEvent(prg, &event);
- if (!PrgHandleEvent(prg, &event))
- if( PrgUserCancel(prg) )
- return false;
- }
- while(event.eType != sysEventNilEvent);
-
- PrgUpdateDialog(prg, 0, 0, "", true);
-
- m_activeSkip = m_canSkip && true;
-
- return true;
-}
-
-void wxProgressDialog::Resume()
-{
-}
-
-bool wxProgressDialog::Show(bool show)
-{
- return false;
-}
-
-Boolean wxProgressDialog::Callback(void *data)
-{
- PrgCallbackData *palmData = (PrgCallbackData *)data;
- strncpy( palmData->textP, m_msg.ToAscii() , palmData->textLen - 1 );
- palmData->textChanged = true;
-#ifdef __WXPALMOS6__
- palmData->displaySkipBtn = m_canSkip;
-#endif // __WXPALMOS6__
- palmData->barMaxValue = (uint32_t)m_max;
- palmData->barCurValue = (uint32_t)m_cur;
- palmData->delay = (m_max == m_cur);
-
- return true;
-}
-
-#endif // wxUSE_PROGRESSDLG
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/radiobox.cpp
-// Purpose: wxRadioBox implementation
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by: Wlodzimierz ABX Skiba - native wxRadioBox implementation
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne, Wlodzimierz Skiba
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-// ===========================================================================
-// declarations
-// ===========================================================================
-
-// ---------------------------------------------------------------------------
-// headers
-// ---------------------------------------------------------------------------
-
-// For compilers that support precompilation, includes "wx.h".
-#include "wx/wxprec.h"
-
-#ifdef __BORLANDC__
- #pragma hdrstop
-#endif
-
-#if wxUSE_RADIOBOX
-
-#include "wx/radiobox.h"
-
-#ifndef WX_PRECOMP
- #include "wx/bitmap.h"
- #include "wx/brush.h"
- #include "wx/settings.h"
- #include "wx/log.h"
- #include "wx/radiobut.h"
-#endif
-
-#if wxUSE_TOOLTIPS
- #include "wx/tooltip.h"
-#endif // wxUSE_TOOLTIPS
-
-// TODO: wxCONSTRUCTOR
-#if 0 // wxUSE_EXTENDED_RTTI
-WX_DEFINE_FLAGS( wxRadioBoxStyle )
-
-wxBEGIN_FLAGS( wxRadioBoxStyle )
- // new style border flags, we put them first to
- // use them for streaming out
- wxFLAGS_MEMBER(wxBORDER_SIMPLE)
- wxFLAGS_MEMBER(wxBORDER_SUNKEN)
- wxFLAGS_MEMBER(wxBORDER_DOUBLE)
- wxFLAGS_MEMBER(wxBORDER_RAISED)
- wxFLAGS_MEMBER(wxBORDER_STATIC)
- wxFLAGS_MEMBER(wxBORDER_NONE)
-
- // old style border flags
- wxFLAGS_MEMBER(wxSIMPLE_BORDER)
- wxFLAGS_MEMBER(wxSUNKEN_BORDER)
- wxFLAGS_MEMBER(wxDOUBLE_BORDER)
- wxFLAGS_MEMBER(wxRAISED_BORDER)
- wxFLAGS_MEMBER(wxSTATIC_BORDER)
- wxFLAGS_MEMBER(wxBORDER)
-
- // standard window styles
- wxFLAGS_MEMBER(wxTAB_TRAVERSAL)
- wxFLAGS_MEMBER(wxCLIP_CHILDREN)
- wxFLAGS_MEMBER(wxTRANSPARENT_WINDOW)
- wxFLAGS_MEMBER(wxWANTS_CHARS)
- wxFLAGS_MEMBER(wxFULL_REPAINT_ON_RESIZE)
- wxFLAGS_MEMBER(wxALWAYS_SHOW_SB )
- wxFLAGS_MEMBER(wxVSCROLL)
- wxFLAGS_MEMBER(wxHSCROLL)
-
- wxFLAGS_MEMBER(wxRA_SPECIFY_COLS)
- wxFLAGS_MEMBER(wxRA_SPECIFY_ROWS)
-wxEND_FLAGS( wxRadioBoxStyle )
-
-IMPLEMENT_DYNAMIC_CLASS_XTI(wxRadioBox, wxControl,"wx/radiobox.h")
-
-wxBEGIN_PROPERTIES_TABLE(wxRadioBox)
- wxEVENT_PROPERTY( Select , wxEVT_COMMAND_RADIOBOX_SELECTED , wxCommandEvent )
- wxPROPERTY_FLAGS( WindowStyle , wxRadioBoxStyle , long , SetWindowStyleFlag , GetWindowStyleFlag , , 0 /*flags*/ , wxT("Helpstring") , wxT("group")) // style
-wxEND_PROPERTIES_TABLE()
-
-#else
-IMPLEMENT_DYNAMIC_CLASS(wxRadioBox, wxControl)
-#endif
-
-/*
- selection
- content
- label
- dimension
- item
-*/
-
-// ===========================================================================
-// implementation
-// ===========================================================================
-
-// ---------------------------------------------------------------------------
-// wxRadioBox
-// ---------------------------------------------------------------------------
-
-void wxRadioBox::Init()
-{
- m_pos = wxPoint(0,0);
- m_size = wxSize(0,0);
-}
-
-unsigned int wxRadioBox::GetCount() const
-{
- return m_radios.GetCount();
-}
-
-bool wxRadioBox::Create(wxWindow *parent,
- wxWindowID id,
- const wxString& title,
- const wxPoint& pos,
- const wxSize& size,
- int n,
- const wxString choices[],
- int majorDim,
- long style,
- const wxValidator& val,
- const wxString& name)
-{
- // initialize members
- SetMajorDim(majorDim == 0 ? n : majorDim, style);
-
- if ( GetMajorDim() == 0 || n == 0 )
- return false;
-
- // subtype of the native palmOS radio: checkbox or push button?
- const bool use_checkbox = style & wxRA_USE_CHECKBOX;
- const bool use_cols = style & wxRA_SPECIFY_COLS;
-
- // get default size and position for the initial placement
- m_size = size;
- m_pos = pos;
- int minor = n / GetMajorDim();
- if(n % GetMajorDim() > 0)
- minor++;
- if(m_size.x==wxDefaultCoord)
- m_size.x=36*(use_cols?GetMajorDim():minor);
- if(m_size.y==wxDefaultCoord)
- m_size.y=12*(use_cols?minor:GetMajorDim());
- if(m_pos.x==wxDefaultCoord)
- m_pos.x=0;
- if(m_pos.y==wxDefaultCoord)
- m_pos.y=0;
-
- m_label = title;
-
- if(!wxControl::Create(parent, id, m_pos, m_size, style, val, name))
- return false;
-
- int i = 0;
- for ( unsigned int j = 0; j < minor; j++ )
- {
- for ( unsigned int k = 0; k < GetMajorDim(); k++ )
- {
- if(i<n)
- {
- wxPoint start, end;
- start.x = (use_cols ? (k*m_size.x)/GetMajorDim() : (j*m_size.x)/minor);
- start.y = (use_cols ? (j*m_size.y)/minor : (k*m_size.y)/GetMajorDim());
- end.x = (use_cols ? ((k+1)*m_size.x)/GetMajorDim() : ((j+1)*m_size.x)/minor);
- end.y = (use_cols ? ((j+1)*m_size.y)/minor : ((k+1)*m_size.y)/GetMajorDim());
- wxRadioButton* rb = new wxRadioButton();
- rb->SetGroup( id );
- rb->Create(
- this,
- wxID_ANY,
- choices[i],
- start,
- wxSize(end.x-start.x-1,end.y-start.y-1),
- ( n == 0 ? wxRB_GROUP : 0 ) |
- use_checkbox ? wxRB_USE_CHECKBOX : 0
- );
- m_radios.Put(i,rb);
- i++;
- }
- }
- }
-}
-
-bool wxRadioBox::Create(wxWindow *parent,
- wxWindowID id,
- const wxString& title,
- const wxPoint& pos,
- const wxSize& size,
- const wxArrayString& choices,
- int majorDim,
- long style,
- const wxValidator& val,
- const wxString& name)
-{
- wxCArrayString chs(choices);
-
- return Create( parent, id, title, pos, size, chs.GetCount(),
- chs.GetStrings(), majorDim, style, val, name );
-}
-
-wxRadioBox::~wxRadioBox()
-{
-}
-
-wxRadioButton *wxRadioBox::GetRadioButton(int i) const
-{
- return (wxRadioButton *)m_radios.Get(i);
-}
-
-void wxRadioBox::DoGetPosition( int *x, int *y ) const
-{
- *x = m_pos.x;
- *y = m_pos.y;
-}
-
-void wxRadioBox::DoGetSize( int *width, int *height ) const
-{
- *width = m_size.x;
- *height = m_size.y;
-}
-
-void wxRadioBox::DoMoveWindow(int x, int y, int width, int height)
-{
- wxRect oldRect = GetRect();
-
- m_pos.x = x;
- m_pos.y = y;
- m_size.x = width;
- m_size.y = height;
-
- const bool use_cols = HasFlag(wxRA_SPECIFY_COLS);
-
- const unsigned int n = GetCount();
- unsigned int minor = n / GetMajorDim();
- if(n % GetMajorDim() > 0)
- minor++;
-
- unsigned int i = 0;
- for ( unsigned int j = 0; j < minor; j++ )
- {
- for ( unsigned int k = 0; k < GetMajorDim(); k++ )
- {
- if(i<n)
- {
- wxPoint start, end;
- start.x = (use_cols ? (k*m_size.x)/GetMajorDim() : (j*m_size.x)/minor);
- start.y = (use_cols ? (j*m_size.y)/minor : (k*m_size.y)/GetMajorDim());
- end.x = (use_cols ? ((k+1)*m_size.x)/GetMajorDim() : ((j+1)*m_size.x)/minor);
- end.y = (use_cols ? ((j+1)*m_size.y)/minor : ((k+1)*m_size.y)/GetMajorDim());
- wxRadioButton* rb = GetRadioButton(i);
- if(rb)
- {
- rb->SetSize(start.x,start.y,end.x-start.x-1,end.y-start.y-1);
- }
- i++;
- }
- }
- }
-
- // refresh old and new area
- GetParent()->RefreshRect(oldRect.Union(GetRect()));
-}
-
-// get the origin of the client area in the client coordinates
-wxPoint wxRadioBox::GetClientAreaOrigin() const
-{
- return GetPosition();
-}
-
-void wxRadioBox::SetString(unsigned int item, const wxString& label)
-{
- wxRadioButton *btn = GetRadioButton(item);
- if(btn)
- btn->SetLabel(label);
-}
-
-void wxRadioBox::SetSelection(int N)
-{
-}
-
-// Get single selection, for single choice list items
-int wxRadioBox::GetSelection() const
-{
- return 0;
-}
-
-// Find string for position
-wxString wxRadioBox::GetString(unsigned int item) const
-{
- wxRadioButton *btn = GetRadioButton(item);
- if(btn)
- return btn->GetLabel();
- return wxEmptyString;
-}
-
-// ----------------------------------------------------------------------------
-// size calculations
-// ----------------------------------------------------------------------------
-
-wxSize wxRadioBox::GetMaxButtonSize() const
-{
- return wxSize(0,0);
-}
-
-wxSize wxRadioBox::GetTotalButtonSize(const wxSize& sizeBtn) const
-{
- return wxSize(0,0);
-}
-
-wxSize wxRadioBox::DoGetBestSize() const
-{
- return wxSize(0,0);
-}
-
-void wxRadioBox::SetFocus()
-{
-}
-
-// Enable all subcontrols
-bool wxRadioBox::Enable(bool enable)
-{
- for(unsigned int i=0; i<GetCount(); i++)
- Enable(i, enable);
- return true;
-}
-
-// Enable a specific button
-bool wxRadioBox::Enable(unsigned int item, bool enable)
-{
- wxRadioButton *btn = GetRadioButton(item);
- if(btn)
- return btn->Enable(enable);
- return false;
-}
-
-bool wxRadioBox::Show(bool show)
-{
- for(unsigned int i=0; i<GetCount(); i++)
- Show(i, show);
- return true;
-}
-
-// Show a specific button
-bool wxRadioBox::Show(unsigned int item, bool show)
-{
- wxRadioButton *btn = GetRadioButton(item);
- if(btn)
- {
- bool ret = btn->Show(show);
- RefreshRect(btn->GetRect());
- return ret;
- }
- return false;
-}
-
-wxString wxRadioBox::GetLabel()
-{
- return m_label;
-}
-
-void wxRadioBox::SetLabel(const wxString& label)
-{
- m_label = label;
-}
-
-void wxRadioBox::Refresh(bool eraseBack, const wxRect *rect)
-{
- wxRect area = GetRect();
-
- if(rect)
- {
- area.Offset(rect->GetPosition());
- area.SetSize(rect->GetSize());
- }
-
- GetParent()->RefreshRect(area);
-}
-
-void wxRadioBox::Command(wxCommandEvent & event)
-{
-}
-
-void wxRadioBox::SendNotificationEvent()
-{
-}
-
-bool wxRadioBox::SetFont(const wxFont& font)
-{
- return false;
-}
-
-#endif // wxUSE_RADIOBOX
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/radiobut.cpp
-// Purpose: wxRadioButton
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by: Wlodzimierz ABX Skiba - native wxRadioButton implementation
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne, Wlodzimierz Skiba
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-// ============================================================================
-// declarations
-// ============================================================================
-
-// ----------------------------------------------------------------------------
-// headers
-// ----------------------------------------------------------------------------
-
-// For compilers that support precompilation, includes "wx.h".
-#include "wx/wxprec.h"
-
-#ifdef __BORLANDC__
- #pragma hdrstop
-#endif
-
-#if wxUSE_RADIOBTN
-
-#include "wx/radiobut.h"
-
-#ifndef WX_PRECOMP
- #include "wx/settings.h"
- #include "wx/dcscreen.h"
-#endif
-
-#include <Control.h>
-
-// ============================================================================
-// wxRadioButton implementation
-// ============================================================================
-
-// ----------------------------------------------------------------------------
-// wxRadioButton creation
-// ----------------------------------------------------------------------------
-
-void wxRadioButton::Init()
-{
- m_radioStyle = pushButtonCtl;
- m_groupID = 0;
-}
-
-bool wxRadioButton::Create(wxWindow *parent,
- wxWindowID id,
- const wxString& label,
- const wxPoint& pos,
- const wxSize& size,
- long style,
- const wxValidator& validator,
- const wxString& name)
-{
- // replace native push button with native checkbox
- if ( style & wxRB_USE_CHECKBOX )
- m_radioStyle = checkboxCtl;
-
- if(!wxControl::Create(parent, id, pos, size, style, validator, name))
- return false;
-
- return wxControl::PalmCreateControl(
- // be sure only one of two possibilities was taken
- m_radioStyle == checkboxCtl ? checkboxCtl : pushButtonCtl,
- label,
- pos,
- size,
- m_groupID
- );
-}
-
-void wxRadioButton::SetGroup(uint8_t group)
-{
- m_groupID = group;
-}
-
-// ----------------------------------------------------------------------------
-// wxRadioButton functions
-// ----------------------------------------------------------------------------
-
-void wxRadioButton::SetValue(bool value)
-{
- SetBoolValue(value);
-}
-
-bool wxRadioButton::GetValue() const
-{
- return GetBoolValue();
-}
-
-// ----------------------------------------------------------------------------
-// wxRadioButton event processing
-// ----------------------------------------------------------------------------
-
-bool wxRadioButton::SendClickEvent()
-{
- wxCommandEvent event(wxEVT_COMMAND_RADIOBUTTON_SELECTED, GetId());
- event.SetInt(GetValue());
- event.SetEventObject(this);
- return ProcessCommand(event);
-}
-
-void wxRadioButton::Command (wxCommandEvent& event)
-{
-}
-
-// ----------------------------------------------------------------------------
-// wxRadioButton geometry
-// ----------------------------------------------------------------------------
-
-wxSize wxRadioButton::DoGetBestSize() const
-{
- return wxSize(0,0);
-}
-
-#endif // wxUSE_RADIOBTN
-
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/region.cpp
-// Purpose: wxRegion implementation
-// 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
-
-#include "wx/region.h"
-
-#ifndef WX_PRECOMP
- #include "wx/gdicmn.h"
-#endif
-
-IMPLEMENT_DYNAMIC_CLASS(wxRegion, wxGDIObject)
-IMPLEMENT_DYNAMIC_CLASS(wxRegionIterator, wxObject)
-
-// ----------------------------------------------------------------------------
-// wxRegionRefData implementation
-// ----------------------------------------------------------------------------
-
-// ============================================================================
-// wxRegion implementation
-// ============================================================================
-
-// ----------------------------------------------------------------------------
-// ctors and dtor
-// ----------------------------------------------------------------------------
-
-wxRegion::wxRegion()
-{
-}
-
-wxRegion::wxRegion(WXHRGN hRegion)
-{
-}
-
-wxRegion::wxRegion(wxCoord x, wxCoord y, wxCoord w, wxCoord h)
-{
-}
-
-wxRegion::wxRegion(const wxPoint& topLeft, const wxPoint& bottomRight)
-{
-}
-
-wxRegion::wxRegion(const wxRect& rect)
-{
-}
-
-wxRegion::wxRegion(size_t n, const wxPoint *points, wxPolygonFillMode fillStyle)
-{
-}
-
-wxRegion::~wxRegion()
-{
-}
-
-wxGDIRefData *wxRegion::CreateGDIRefData() const
-{
- return NULL;
-}
-
-wxGDIRefData *wxRegion::CloneGDIRefData(const wxGDIRefData *data) const
-{
- return NULL;
-}
-
-// ----------------------------------------------------------------------------
-// wxRegion operations
-// ----------------------------------------------------------------------------
-
-// Clear current region
-void wxRegion::Clear()
-{
-}
-
-bool wxRegion::DoOffset(wxCoord x, wxCoord y)
-{
- return false;
-}
-
-// combine another region with this one
-bool wxRegion::DoCombine(const wxRegion& rgn, wxRegionOp op)
-{
- return false;
-}
-
-// ----------------------------------------------------------------------------
-// wxRegion bounding box
-// ----------------------------------------------------------------------------
-
-// Outer bounds of region
-bool wxRegion::DoGetBox(wxCoord& x, wxCoord& y, wxCoord&w, wxCoord &h) const
-{
- return false;
-}
-
-// Is region empty?
-bool wxRegion::IsEmpty() const
-{
- return true;
-}
-
-bool wxRegion::DoIsEqual(const wxRegion& region) const
-{
- return false;
-}
-
-// ----------------------------------------------------------------------------
-// wxRegion hit testing
-// ----------------------------------------------------------------------------
-
-// Does the region contain the point (x,y)?
-wxRegionContain wxRegion::DoContainsPoint(wxCoord x, wxCoord y) const
-{
- return wxOutRegion;
-}
-
-// Does the region contain the rectangle rect
-wxRegionContain wxRegion::DoContainsRect(const wxRect& rect) const
-{
- return wxOutRegion;
-}
-
-// Get internal region handle
-WXHRGN wxRegion::GetHRGN() const
-{
- return 0;
-}
-
-// ============================================================================
-// wxRegionIterator implementation
-// ============================================================================
-
-// ----------------------------------------------------------------------------
-// wxRegionIterator ctors/dtor
-// ----------------------------------------------------------------------------
-
-void wxRegionIterator::Init()
-{
-}
-
-wxRegionIterator::~wxRegionIterator()
-{
-}
-
-// Initialize iterator for region
-wxRegionIterator::wxRegionIterator(const wxRegion& region)
-{
-}
-
-wxRegionIterator& wxRegionIterator::operator=(const wxRegionIterator& ri)
-{
- return *this;
-}
-
-// ----------------------------------------------------------------------------
-// wxRegionIterator operations
-// ----------------------------------------------------------------------------
-
-// Reset iterator for a new region.
-void wxRegionIterator::Reset(const wxRegion& region)
-{
-}
-
-wxRegionIterator& wxRegionIterator::operator++()
-{
- return *this;
-}
-
-wxRegionIterator wxRegionIterator::operator ++ (int)
-{
- return *this;
-}
-
-// ----------------------------------------------------------------------------
-// wxRegionIterator accessors
-// ----------------------------------------------------------------------------
-
-wxCoord wxRegionIterator::GetX() const
-{
- return 0;
-}
-
-wxCoord wxRegionIterator::GetY() const
-{
- return 0;
-}
-
-wxCoord wxRegionIterator::GetW() const
-{
- return 0;
-}
-
-wxCoord wxRegionIterator::GetH() const
-{
- return 0;
-}
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/scrolbar.cpp
-// Purpose: wxScrollBar
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-// For compilers that support precompilation, includes "wx.h".
-#include "wx/wxprec.h"
-
-#ifdef __BORLANDC__
- #pragma hdrstop
-#endif
-
-#if wxUSE_SCROLLBAR
-
-#include "wx/scrolbar.h"
-
-#ifndef WX_PRECOMP
- #include "wx/utils.h"
- #include "wx/settings.h"
-#endif
-
-#include "wx/palmos/private.h"
-
-// Scrollbar
-bool wxScrollBar::Create(wxWindow *parent, wxWindowID id,
- const wxPoint& pos,
- const wxSize& size, long style,
- const wxValidator& wxVALIDATOR_PARAM(validator),
- const wxString& name)
-{
- return false;
-}
-
-wxScrollBar::~wxScrollBar(void)
-{
-}
-
-bool wxScrollBar::MSWOnScroll(int WXUNUSED(orientation), WXWORD wParam,
- WXWORD pos, WXHWND WXUNUSED(control))
-{
- return false;
-}
-
-void wxScrollBar::SetThumbPosition(int viewStart)
-{
-}
-
-int wxScrollBar::GetThumbPosition(void) const
-{
-}
-
-void wxScrollBar::SetScrollbar(int position, int thumbSize, int range, int pageSize,
- bool refresh)
-{
-}
-
-
-void wxScrollBar::Command(wxCommandEvent& event)
-{
-}
-
-wxSize wxScrollBar::DoGetBestSize() const
-{
- return wxSize(0,0);
-}
-
-#endif // wxUSE_SCROLLBAR
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/settings.cpp
-// Purpose: wxSystemSettingsNative implementation for Palm OS
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by: Wlodzimierz ABX Skiba - native implementation
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne, Wlodzimierz Skiba
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-// ============================================================================
-// declarations
-// ============================================================================
-
-// ----------------------------------------------------------------------------
-// headers
-// ----------------------------------------------------------------------------
-
-// For compilers that support precompilation, includes "wx.h".
-#include "wx/wxprec.h"
-
-#ifdef __BORLANDC__
- #pragma hdrstop
-#endif
-
-#include "wx/settings.h"
-
-#ifndef WX_PRECOMP
- #include "wx/utils.h"
- #include "wx/gdicmn.h"
- #include "wx/module.h"
-#endif
-
-#include "wx/fontutil.h"
-
-#include <UIColor.h>
-
-// ============================================================================
-// implementation
-// ============================================================================
-
-// ----------------------------------------------------------------------------
-// wxSystemSettingsNative
-// ----------------------------------------------------------------------------
-
-// ----------------------------------------------------------------------------
-// colours
-// ----------------------------------------------------------------------------
-
-wxColour wxSystemSettingsNative::GetColour(wxSystemColour index)
-{
- // point to unused entry to mark lack of assignment
- UIColorTableEntries which = UILastColorTableEntry;
-
- switch( index )
- {
- case wxSYS_COLOUR_BACKGROUND:
- case wxSYS_COLOUR_WINDOW:
- which = UIFormFill;
- break;
- case wxSYS_COLOUR_WINDOWFRAME:
- case wxSYS_COLOUR_ACTIVECAPTION:
- which = UIFormFrame;
- break;
- case wxSYS_COLOUR_SCROLLBAR:
- which = UIObjectFill;
- break;
-/*
- case wxSYS_COLOUR_INACTIVECAPTION:
- case wxSYS_COLOUR_MENU:
- case wxSYS_COLOUR_MENUTEXT:
- case wxSYS_COLOUR_WINDOWTEXT:
- case wxSYS_COLOUR_CAPTIONTEXT:
- case wxSYS_COLOUR_ACTIVEBORDER:
- case wxSYS_COLOUR_INACTIVEBORDER:
- case wxSYS_COLOUR_APPWORKSPACE:
- case wxSYS_COLOUR_HIGHLIGHT:
- case wxSYS_COLOUR_LISTBOXHIGHLIGHTTEXT:
- case wxSYS_COLOUR_HIGHLIGHTTEXT:
- case wxSYS_COLOUR_BTNFACE:
- case wxSYS_COLOUR_BTNSHADOW:
- case wxSYS_COLOUR_GRAYTEXT:
- case wxSYS_COLOUR_BTNTEXT:
- case wxSYS_COLOUR_INACTIVECAPTIONTEXT:
- case wxSYS_COLOUR_BTNHIGHLIGHT:
- case wxSYS_COLOUR_3DDKSHADOW:
- case wxSYS_COLOUR_3DLIGHT:
- case wxSYS_COLOUR_INFOTEXT:
- case wxSYS_COLOUR_INFOBK:
- case wxSYS_COLOUR_LISTBOX:
- case wxSYS_COLOUR_HOTLIGHT:
- case wxSYS_COLOUR_GRADIENTACTIVECAPTION:
- case wxSYS_COLOUR_GRADIENTINACTIVECAPTION:
- case wxSYS_COLOUR_MENUHILIGHT:
- case wxSYS_COLOUR_MENUBAR:
-*/
- }
- if ( which == UILastColorTableEntry )
- return wxNullColour;
-
- RGBColorType rgbP;
-
- UIColorGetTableEntryRGB (which,&rgbP);
-
- return wxColour(rgbP.r,rgbP.g,rgbP.b);
-}
-
-// ----------------------------------------------------------------------------
-// fonts
-// ----------------------------------------------------------------------------
-
-wxFont wxCreateFontFromStockObject(int index)
-{
- wxFont font;
- return font;
-}
-
-wxFont wxSystemSettingsNative::GetFont(wxSystemFont index)
-{
- wxFont font;
- return font;
-}
-
-// ----------------------------------------------------------------------------
-// system metrics/features
-// ----------------------------------------------------------------------------
-
-// Get a system metric, e.g. scrollbar size
-int wxSystemSettingsNative::GetMetric(wxSystemMetric index, wxWindow* WXUNUSED(win))
-{
- int metric = -1;
- uint32_t attrP;
-
- switch( index )
- {
- case wxSYS_SCREEN_X:
- WinScreenGetAttribute(winScreenWidth, &attrP);
- metric = attrP;
- break;
-
- case wxSYS_SCREEN_Y:
- WinScreenGetAttribute(winScreenHeight, &attrP);
- metric = attrP;
- break;
- }
-
- return metric;
-}
-
-bool wxSystemSettingsNative::HasFeature(wxSystemFeature index)
-{
- return false;
-}
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/slider.cpp
-// Purpose: wxSlider
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by: Wlodzimierz ABX Skiba - native implementation
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne, Wlodzimierz Skiba
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-// For compilers that support precompilation, includes "wx.h".
-#include "wx/wxprec.h"
-
-#ifdef __BORLANDC__
-#pragma hdrstop
-#endif
-
-#if wxUSE_SLIDER
-
-#include "wx/slider.h"
-
-#ifndef WX_PRECOMP
- #include "wx/utils.h"
- #include "wx/brush.h"
- #include "wx/toplevel.h"
-#endif
-
-#include <Form.h>
-#include <Control.h>
-
-// Slider
-void wxSlider::Init()
-{
- m_oldValue = m_oldPos = 0;
- m_lineSize = 1;
-}
-
-bool wxSlider::Create(wxWindow *parent, wxWindowID id,
- int value, int minValue, int maxValue,
- const wxPoint& pos,
- const wxSize& size, long style,
- const wxValidator& validator,
- const wxString& name)
-{
- // wxSL_AUTOTICKS is ignored - always on
- // wxSL_LABELS is ignored - always off
- // wxSL_LEFT is ignored - always off
- // wxSL_RIGHT is ignored - always off
- // wxSL_TOP is ignored - always off
- // wxSL_SELRANGE is ignored - always off
- // wxSL_VERTICAL is impossible in native form
- wxCHECK_MSG(!(style & wxSL_VERTICAL), false, wxT("non vertical slider on PalmOS"));
-
- if(!wxControl::Create(parent, id, pos, size, style, validator, name))
- return false;
-
- FormType* form = (FormType*)GetParentForm();
- if(form==NULL)
- return false;
-
- m_oldValue = m_oldPos = value;
-
- wxCoord x = pos.x == wxDefaultCoord ? 0 : pos.x,
- y = pos.y == wxDefaultCoord ? 0 : pos.y,
- w = size.x == wxDefaultCoord ? 1 : size.x,
- h = size.y == wxDefaultCoord ? 1 : size.y;
-
- AdjustForParentClientOrigin(x, y);
-
-#ifdef __WXPALMOS6__
- SliderControlType *slider = CtlNewSliderControl (
- (void **)&form,
- GetId(),
- feedbackSliderCtl,
- NULL,
- 0,
- 0,
- x,
- y,
- w,
- h,
- minValue,
- maxValue,
- 1,
- value
- );
-#else // __WXPALMOS5__
- //SliderControlType *CtlNewSliderControl (void **formPP, UInt16 ID, ControlStyleType style, DmResID thumbID,
- // DmResID backgroundID, Coord x, Coord y, Coord width, Coord height, UInt16 minValue, UInt16 maxValue,
- // UInt16 pageSize, UInt16 value);
- SliderControlType *slider = CtlNewSliderControl ((void **)&form,
- GetId(),
- feedbackSliderCtl,//style
- 0,//thumbID
- 0,//backgroundid
- x, y, w, h, minValue, maxValue, 1, value);
-#endif // __WXPALMOS6__/__WXPALMOS5__
-
- if(slider==NULL)
- return false;
-
- SetInitialSize(size);
- Show();
- return true;
-}
-
-wxSlider::~wxSlider()
-{
-}
-
-int wxSlider::GetMin() const
-{
- ControlType *control = (ControlType *)GetObjectPtr();
- if(control==NULL)
- return 0;
- uint16_t ret;
- CtlGetSliderValues(control, &ret, NULL, NULL, NULL);
- return ret;
-}
-
-int wxSlider::GetMax() const
-{
- ControlType *control = (ControlType *)GetObjectPtr();
- if(control==NULL)
- return 0;
- uint16_t ret;
- CtlGetSliderValues(control, NULL, &ret, NULL, NULL);
- return ret;
-}
-
-int wxSlider::GetPageSize() const
-{
- ControlType *control = (ControlType *)GetObjectPtr();
- if(control==NULL)
- return 0;
- uint16_t ret;
- CtlGetSliderValues(control, NULL, NULL, &ret, NULL);
- return ret;
-}
-
-int wxSlider::GetValue() const
-{
- ControlType *control = (ControlType *)GetObjectPtr();
- if(control==NULL)
- return 0;
- uint16_t ret;
- CtlGetSliderValues(control, NULL, NULL, NULL, &ret);
- return ValueInvertOrNot(ret);
-}
-
-void wxSlider::SetValue(int value)
-{
- SetIntValue(ValueInvertOrNot(value));
- m_oldValue = m_oldPos = value;
-}
-
-wxSize wxSlider::DoGetBestSize() const
-{
- // 15 is taken as used in one of official samples
- // 45 is dummy height tripled, any idea what's better ?
- return wxSize(45,15);
-}
-
-
-void wxSlider::SetRange(int WXUNUSED(minValue), int WXUNUSED(maxValue))
-{
- // unsupported feature
-}
-
-void wxSlider::DoSetTickFreq(int WXUNUSED(n))
-{
- // unsupported feature
-}
-
-void wxSlider::SetPageSize(int pageSize)
-{
- ControlType *control = (ControlType *)GetObjectPtr();
- if(control==NULL)
- return;
- uint16_t val = pageSize;
- CtlSetSliderValues(control, NULL, NULL, &val, NULL);
-}
-
-void wxSlider::ClearSel()
-{
- // unsupported feature
-}
-
-void wxSlider::ClearTicks()
-{
- // unsupported feature
-}
-
-void wxSlider::SetLineSize(int lineSize)
-{
- m_lineSize = lineSize;
-}
-
-int wxSlider::GetLineSize() const
-{
- return m_lineSize;
-}
-
-int wxSlider::GetSelEnd() const
-{
- // unsupported feature
- return GetValue();
-}
-
-int wxSlider::GetSelStart() const
-{
- // unsupported feature
- return GetValue();
-}
-
-void wxSlider::SetSelection(int WXUNUSED(minPos), int WXUNUSED(maxPos))
-{
- // unsupported feature
-}
-
-void wxSlider::SetThumbLength(int WXUNUSED(len))
-{
- // unsupported feature
-}
-
-int wxSlider::GetThumbLength() const
-{
- // unsupported feature
- return 0;
-}
-
-int wxSlider::GetTickFreq() const
-{
- // unsupported feature
- return GetPageSize();
-}
-
-void wxSlider::SetTick(int WXUNUSED(tickPos))
-{
- // unsupported feature
-}
-
-// ----------------------------------------------------------------------------
-// helpers
-// ----------------------------------------------------------------------------
-
-bool wxSlider::SendUpdatedEvent()
-{
- m_oldPos = GetValue();
-
- // first thumb event
- wxScrollEvent eventWxTrack(wxEVT_SCROLL_THUMBRELEASE, GetId());
- eventWxTrack.SetPosition(m_oldPos);
- eventWxTrack.SetEventObject(this);
- bool handled = HandleWindowEvent(eventWxTrack);
-
- // then slider event if position changed
- if( m_oldValue != m_oldPos )
- {
- m_oldValue = m_oldPos;
- wxCommandEvent event(wxEVT_COMMAND_SLIDER_UPDATED, GetId());
- event.SetEventObject(this);
- event.SetInt(m_oldPos);
- return ProcessCommand(event);
- }
-
- return handled;
-}
-
-bool wxSlider::SendScrollEvent(WXEVENTPTR event)
-{
- const EventType* palmEvent = (EventType*)event;
- int newPos = ValueInvertOrNot(palmEvent->data.ctlRepeat.value);
- if ( newPos == m_oldPos )
- {
- // nothing changed since last event
- return false;
- }
-
- m_oldPos = newPos;
-
- // first track event
- wxScrollEvent eventWx(wxEVT_SCROLL_THUMBTRACK, GetId());
- eventWx.SetPosition(newPos);
- eventWx.SetEventObject(this);
- return HandleWindowEvent(eventWx);
-}
-
-void wxSlider::Command (wxCommandEvent & event)
-{
-}
-
-#endif // wxUSE_SLIDER
+++ /dev/null
-///////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/snglinst.cpp
-// Purpose: implements wxSingleInstanceChecker class for Win32 using
-// named mutexes
-// 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
-
-#if wxUSE_SNGLINST_CHECKER
-
-#ifndef WX_PRECOMP
- #include "wx/string.h"
- #include "wx/log.h"
-#endif //WX_PRECOMP
-
-#include "wx/snglinst.h"
-
-#include "wx/palmos/private.h"
-
-// ----------------------------------------------------------------------------
-// wxSingleInstanceCheckerImpl: the real implementation class
-// ----------------------------------------------------------------------------
-
-class WXDLLEXPORT wxSingleInstanceCheckerImpl
-{
-public:
- wxSingleInstanceCheckerImpl()
- {
- }
-
- bool Create(const wxString& name)
- {
- return false;
- }
-
- bool WasOpened() const
- {
- return false;
- }
-
- ~wxSingleInstanceCheckerImpl()
- {
- }
-
-private:
- // the result of the CreateMutex() call
- bool m_wasOpened;
-
- // the mutex handle, may be NULL
- HANDLE m_hMutex;
-
- wxDECLARE_NO_COPY_CLASS(wxSingleInstanceCheckerImpl);
-};
-
-// ============================================================================
-// wxSingleInstanceChecker implementation
-// ============================================================================
-
-bool wxSingleInstanceChecker::Create(const wxString& name,
- const wxString& WXUNUSED(path))
-{
- return false;
-}
-
-bool wxSingleInstanceChecker::IsAnotherRunning() const
-{
- return false;
-}
-
-wxSingleInstanceChecker::~wxSingleInstanceChecker()
-{
-}
-
-#endif // wxUSE_SNGLINST_CHECKER
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/sound.cpp
-// Purpose: wxSound
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-// For compilers that support precompilation, includes "wx.h".
-#include "wx/wxprec.h"
-
-#if defined(__BORLANDC__)
-#pragma hdrstop
-#endif
-
-#if wxUSE_SOUND
-
-#ifndef WX_PRECOMP
-#include "wx/wx.h"
-#endif
-
-#include "wx/file.h"
-#include "wx/sound.h"
-#include "wx/palmos/private.h"
-
-wxSound::wxSound()
- : m_waveData(NULL), m_waveLength(0), m_isResource(false)
-{
-}
-
-wxSound::wxSound(const wxString& sFileName, bool isResource)
- : m_waveData(NULL), m_waveLength(0), m_isResource(isResource)
-{
-}
-
-wxSound::wxSound(size_t size, const void* data)
- : m_waveData(NULL), m_waveLength(0), m_isResource(false)
-{
-}
-
-wxSound::~wxSound()
-{
-}
-
-bool wxSound::Create(const wxString& fileName, bool isResource)
-{
- return false;
-}
-
-bool wxSound::Create(size_t size, const void* data)
-{
- return false;
-}
-
-bool wxSound::DoPlay(unsigned flags) const
-{
- return false;
-}
-
-bool wxSound::Free()
-{
- return false;
-}
-
-/*static*/ void wxSound::Stop()
-{
-}
-
-#endif // wxUSE_SOUND
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/spinbutt.cpp
-// Purpose: wxSpinButton
-// 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
-
-#if wxUSE_SPINBTN
-
-#include "wx/spinbutt.h"
-
-#ifndef WX_PRECOMP
- #include "wx/app.h"
-#endif
-
-// ============================================================================
-// implementation
-// ============================================================================
-
-// ----------------------------------------------------------------------------
-// wxWin macros
-// ----------------------------------------------------------------------------
-
-// ----------------------------------------------------------------------------
-// wxSpinButton
-// ----------------------------------------------------------------------------
-
-bool wxSpinButton::Create(wxWindow *parent,
- wxWindowID id,
- const wxPoint& pos,
- const wxSize& size,
- long style,
- const wxString& name)
-{
- return false;
-}
-
-wxSpinButton::~wxSpinButton()
-{
-}
-
-// ----------------------------------------------------------------------------
-// size calculation
-// ----------------------------------------------------------------------------
-
-wxSize wxSpinButton::DoGetBestSize() const
-{
- return wxSize(0,0),
-}
-
-// ----------------------------------------------------------------------------
-// Attributes
-// ----------------------------------------------------------------------------
-
-int wxSpinButton::GetValue() const
-{
- return 0;
-}
-
-void wxSpinButton::SetValue(int val)
-{
-}
-
-void wxSpinButton::SetRange(int minVal, int maxVal)
-{
-}
-
-#endif
- // wxUSE_SPINBTN
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/spinctrl.cpp
-// Purpose: wxSpinCtrl class implementation for Palm OS
-// 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/wx.h"
-#endif
-
-#if wxUSE_SPINCTRL
-
-#if defined(__WIN95__)
-
-#include "wx/spinctrl.h"
-#include "wx/palmos/private.h"
-
-// ----------------------------------------------------------------------------
-// macros
-// ----------------------------------------------------------------------------
-
-BEGIN_EVENT_TABLE(wxSpinCtrl, wxSpinButton)
- EVT_CHAR(wxSpinCtrl::OnChar)
-
- EVT_SET_FOCUS(wxSpinCtrl::OnSetFocus)
-
- EVT_SPIN(-1, wxSpinCtrl::OnSpinChange)
-END_EVENT_TABLE()
-
-#define GetBuddyHwnd() (HWND)(m_hwndBuddy)
-
-// ----------------------------------------------------------------------------
-// constants
-// ----------------------------------------------------------------------------
-
-// the margin between the up-down control and its buddy (can be arbitrary,
-// choose what you like - or may be decide during run-time depending on the
-// font size?)
-static const int MARGIN_BETWEEN = 1;
-
-// ============================================================================
-// implementation
-// ============================================================================
-
-wxArraySpins wxSpinCtrl::ms_allSpins;
-
-/* static */
-wxSpinCtrl *wxSpinCtrl::GetSpinForTextCtrl(WXHWND hwndBuddy)
-{
- return NULL;
-}
-
-// process a WM_COMMAND generated by the buddy text control
-bool wxSpinCtrl::ProcessTextCommand(WXWORD cmd, WXWORD WXUNUSED(id))
-{
- return false;
-}
-
-void wxSpinCtrl::OnChar(wxKeyEvent& event)
-{
-}
-
-void wxSpinCtrl::OnSetFocus(wxFocusEvent& event)
-{
-}
-
-// ----------------------------------------------------------------------------
-// construction
-// ----------------------------------------------------------------------------
-
-bool wxSpinCtrl::Create(wxWindow *parent,
- wxWindowID id,
- const wxString& value,
- const wxPoint& pos,
- const wxSize& size,
- long style,
- int min, int max, int initial,
- const wxString& name)
-{
- return false;
-}
-
-wxSpinCtrl::~wxSpinCtrl()
-{
-}
-
-// ----------------------------------------------------------------------------
-// wxTextCtrl-like methods
-// ----------------------------------------------------------------------------
-
-void wxSpinCtrl::SetValue(const wxString& text)
-{
-}
-
-int wxSpinCtrl::GetValue() const
-{
- return 0;
-}
-
-void wxSpinCtrl::SetSelection(long from, long to)
-{
-}
-
-// ----------------------------------------------------------------------------
-// forward some methods to subcontrols
-// ----------------------------------------------------------------------------
-
-bool wxSpinCtrl::SetFont(const wxFont& font)
-{
- return false;
-}
-
-bool wxSpinCtrl::Show(bool show)
-{
- return false;
-}
-
-bool wxSpinCtrl::Enable(bool enable)
-{
- return false;
-}
-
-void wxSpinCtrl::SetFocus()
-{
-}
-
-// ----------------------------------------------------------------------------
-// event processing
-// ----------------------------------------------------------------------------
-
-void wxSpinCtrl::OnSpinChange(wxSpinEvent& eventSpin)
-{
-}
-
-// ----------------------------------------------------------------------------
-// size calculations
-// ----------------------------------------------------------------------------
-
-wxSize wxSpinCtrl::DoGetBestSize() const
-{
- return wxSize(0,0);
-}
-
-void wxSpinCtrl::DoMoveWindow(int x, int y, int width, int height)
-{
-}
-
-// get total size of the control
-void wxSpinCtrl::DoGetSize(int *x, int *y) const
-{
-}
-
-void wxSpinCtrl::DoGetPosition(int *x, int *y) const
-{
-}
-
-#endif // __WIN95__
-
-#endif
- // wxUSE_SPINCTRL
-
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/statbmp.cpp
-// Purpose: wxStaticBitmap
-// 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
-
-#if wxUSE_STATBMP
-
-#include "wx/statbmp.h"
-
-#ifndef WX_PRECOMP
- #include "wx/icon.h"
- #include "wx/window.h"
-#endif
-
-#include "wx/palmos/private.h"
-
-// ---------------------------------------------------------------------------
-// macors
-// ---------------------------------------------------------------------------
-
-// ===========================================================================
-// implementation
-// ===========================================================================
-
-// ---------------------------------------------------------------------------
-// wxStaticBitmap
-// ---------------------------------------------------------------------------
-
-static wxGDIImage* ConvertImage( const wxGDIImage& bitmap )
-{
- return NULL;
-}
-
-bool wxStaticBitmap::Create(wxWindow *parent,
- wxWindowID id,
- const wxGDIImage& bitmap,
- const wxPoint& pos,
- const wxSize& size,
- long style,
- const wxString& name)
-{
- return false;
-}
-
-wxBorder wxStaticBitmap::GetDefaultBorder() const
-{
- return wxBORDER_NONE;
-}
-
-WXDWORD wxStaticBitmap::MSWGetStyle(long style, WXDWORD *exstyle) const
-{
- return 0;
-}
-
-bool wxStaticBitmap::ImageIsOk() const
-{
- return false;
-}
-
-void wxStaticBitmap::Free()
-{
-}
-
-wxSize wxStaticBitmap::DoGetBestSize() const
-{
- return wxSize(0,0);
-}
-
-void wxStaticBitmap::SetImage( const wxGDIImage* image )
-{
-}
-
-void wxStaticBitmap::SetImageNoCopy( wxGDIImage* image)
-{
-}
-
-// We need this or the control can never be moved e.g. in Dialog Editor.
-WXLRESULT wxStaticBitmap::MSWWindowProc(WXUINT nMsg,
- WXWPARAM wParam,
- WXLPARAM lParam)
-{
- return false;
-}
-
-#endif // wxUSE_STATBMP
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/statbox.cpp
-// Purpose: wxStaticBox
-// 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
-
-#if wxUSE_STATBOX
-
-#ifndef WX_PRECOMP
- #include "wx/app.h"
- #include "wx/dcclient.h"
-#endif
-
-#include "wx/statbox.h"
-
-#include "wx/palmos/private.h"
-
-// ----------------------------------------------------------------------------
-// wxWin macros
-// ----------------------------------------------------------------------------
-
-// ============================================================================
-// implementation
-// ============================================================================
-
-// ----------------------------------------------------------------------------
-// wxStaticBox
-// ----------------------------------------------------------------------------
-
-bool wxStaticBox::Create(wxWindow *parent,
- wxWindowID id,
- const wxString& label,
- const wxPoint& pos,
- const wxSize& size,
- long style,
- const wxString& name)
-{
- return false;
-}
-
-wxSize wxStaticBox::DoGetBestSize() const
-{
- return wxSize(0,0);
-}
-
-WXLRESULT wxStaticBox::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam)
-{
- return 0;
-}
-
-#endif // wxUSE_STATBOX
+++ /dev/null
-///////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/statbrpalm.cpp
-// Purpose: Implementation of wxStatusBar for PalmOS
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by: Wlodzimierz ABX Skiba - transition from faked drawing to native statusbar
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne, Wlodzimierz Skiba
-// Licence: wxWindows licence
-///////////////////////////////////////////////////////////////////////////////
-
-// for compilers that support precompilation, includes "wx.h".
-#include "wx/wxprec.h"
-
-#ifdef __BORLANDC__
- #pragma hdrstop
-#endif
-
-#if wxUSE_NATIVE_STATUSBAR
-
-#include "wx/statusbr.h"
-
-#ifndef WX_PRECOMP
- #include "wx/frame.h"
- #include "wx/settings.h"
- #include "wx/dcclient.h"
- #include "wx/intl.h"
- #include "wx/log.h"
-#endif
-
-#ifdef __WXPALMOS6__
- #include <StatusBar.h>
-#else
- #include <PenInputMgr.h>
-#endif // __WXPALMOS6__
-
-// ----------------------------------------------------------------------------
-// macros
-// ----------------------------------------------------------------------------
-
-// ============================================================================
-// implementation
-// ============================================================================
-
-// ----------------------------------------------------------------------------
-// wxStatusBarPalm class
-// ----------------------------------------------------------------------------
-
-wxStatusBarPalm::wxStatusBarPalm()
-{
- SetParent(NULL);
-}
-
-bool wxStatusBarPalm::Create(wxWindow *parent,
- wxWindowID id,
- long style,
- const wxString& name)
-{
- wxCHECK_MSG( parent, false, wxT("status bar must have a parent") );
-
- StatusTextBuffer = NULL;
-
- SetName(name);
- SetParent(parent);
- SetId( id == wxID_ANY ? NewControlId() : id );
-
- parent->AddChild(this);
-
- SetFieldsCount(1);
-
- return true;
-}
-
-wxStatusBarPalm::~wxStatusBarPalm()
-{
- Show();
-
- DeleteStatusBuffer();
-}
-
-bool wxStatusBarPalm::IsShown() const
-{
- return StatGetAttribute ( statAttrBarVisible , NULL );
-}
-
-bool wxStatusBarPalm::Show( bool show )
-{
- if(show)
- {
- // show it if hidden
- if(IsShown())
- return false;
- status_t rc = StatShow();
- wxCHECK_MSG( rc == errNone, false, wxT("cannot hide status bar") );
- }
- else
- {
- // hide it if shown
- if(!IsShown())
- return false;
- status_t rc = StatHide();
- wxCHECK_MSG( rc == errNone, false, wxT("cannot hide status bar") );
- }
- return true;
-}
-
-void wxStatusBarPalm::SetFieldsCount(int nFields, const int *widths)
-{
- // this is a Windows limitation
- wxASSERT_MSG( (nFields > 0) && (nFields < 255), wxT("too many fields") );
-
- wxStatusBarBase::SetFieldsCount(nFields, widths);
-
- SetFieldsWidth();
-}
-
-void wxStatusBarPalm::SetStatusWidths(int n, const int widths[])
-{
- wxStatusBarBase::SetStatusWidths(n, widths);
-
- SetFieldsWidth();
-}
-
-void wxStatusBarPalm::SetFieldsWidth()
-{
- // clear the status bar
- DeleteStatusBuffer();
-}
-
-void wxStatusBarPalm::DoUpdateStatusText(int nField)
-{
- SetStatusBufferText(strText,nField);
- DrawStatusBar();
-}
-
-void wxStatusBarPalm::DrawStatusBar()
-{
-#if 0
- int i=0;
- int leftPos=0;
- wxArrayInt widthsAbs;
- wxString text;
-
- RectangleType EraseRect;
- EraseRect.topLeft.x=0;
- EraseRect.topLeft.y=160-FntCharHeight()-1;
- EraseRect.extent.x=159;
- EraseRect.extent.y=159;
- WinEraseRectangle(&EraseRect,0);
-
- if(m_nFields>0)
- widthsAbs=CalculateAbsWidths(160 - 2*(m_nFields - 1));
-
- for(i=0;i<m_nFields;i++)
- {
- text=GetStatusBufferText(i);
- WinDrawTruncChars(text,StrLen(text),leftPos,160-FntCharHeight(),widthsAbs[i]);
- leftPos+=widthsAbs[i]+2;
- }
- WinDrawLine(0,160-FntCharHeight()-1,159,160-FntCharHeight()-1);
-#endif
-}
-
-void wxStatusBarPalm::SetStatusBufferText(const wxString& text, int number)
-{
- wxListString* st = GetOrCreateStatusBuffer(number);
-
- wxString tmp1(text);
- wxString* tmp = new wxString(tmp1);
- st->Insert(tmp);
-}
-
-wxString wxStatusBarPalm::GetStatusBufferText(int number)
-{
- wxListString *st = GetStatusBufferStack(number);
- if(st==0)
- return wxEmptyString;
-
- wxListString::compatibility_iterator top = st->GetFirst();
- return(*top->GetData());
-}
-
-wxListString *wxStatusBarPalm::GetOrCreateStatusBuffer(int i)
-{
- if(!StatusTextBuffer)
- {
- StatusTextBuffer = new wxListString*[m_nFields];
-
- size_t j;
- for(j = 0; j < (size_t)m_nFields; ++j) StatusTextBuffer[j] = 0;
- }
-
- if(!StatusTextBuffer[i])
- {
- StatusTextBuffer[i] = new wxListString();
- }
- else
- {
- wxListString *st=StatusTextBuffer[i];
- wxListString::compatibility_iterator top = st->GetFirst();
- delete top->GetData();
- st->Erase(top);
- delete st;
-
- StatusTextBuffer[i] = new wxListString();
- }
-
- return StatusTextBuffer[i];
-}
-
-wxListString *wxStatusBarPalm::GetStatusBufferStack(int i) const
-{
- if(!StatusTextBuffer)
- return 0;
- return StatusTextBuffer[i];
-}
-
-void wxStatusBarPalm::DeleteStatusBuffer()
-{
- if(!StatusTextBuffer)
- {
- return;
- }
-
- for(int i=0;i<m_nFields;i++)
- {
- if(StatusTextBuffer[i])
- {
- wxListString *st=StatusTextBuffer[i];
- wxListString::compatibility_iterator top = st->GetFirst();
- delete top->GetData();
- st->Erase(top);
- delete st;
- StatusTextBuffer[i]=0;
- }
- }
- delete[] m_statusTextStacks;
-}
-
-int wxStatusBarPalm::GetBorderX() const
-{
- return 0;
-}
-
-int wxStatusBarPalm::GetBorderY() const
-{
- return 0;
-}
-
-void wxStatusBarPalm::SetMinHeight(int height)
-{
-}
-
-bool wxStatusBarPalm::GetFieldRect(int i, wxRect& rect) const
-{
-}
-
-void wxStatusBarPalm::DoMoveWindow(int x, int y, int width, int height)
-{
-}
-
-#endif // wxUSE_NATIVE_STATUSBAR
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/statline.cpp
-// Purpose: wxStaticLine class
-// 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
-
-#if wxUSE_STATLINE
-
-#include "wx/statline.h"
-
-#ifndef WX_PRECOMP
- #include "wx/log.h"
-#endif
-
-#include "wx/palmos/private.h"
-
-#ifndef SS_SUNKEN
- #define SS_SUNKEN 0x00001000L
-#endif
-
-#ifndef SS_NOTIFY
- #define SS_NOTIFY 0x00000100L
-#endif
-
-// ============================================================================
-// implementation
-// ============================================================================
-
-// ----------------------------------------------------------------------------
-// wxStaticLine
-// ----------------------------------------------------------------------------
-
-bool wxStaticLine::Create(wxWindow *parent,
- wxWindowID id,
- const wxPoint& pos,
- const wxSize& sizeOrig,
- long style,
- const wxString &name)
-{
- return false;
-}
-
-WXDWORD wxStaticLine::MSWGetStyle(long style, WXDWORD *exstyle) const
-{
- return 0;
-}
-
-#endif // wxUSE_STATLINE
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/stattext.cpp
-// Purpose: wxStaticText
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by: Wlodzimierz ABX Skiba - native wxStaticText implementation
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne, Wlodzimierz Skiba
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-// For compilers that support precompilation, includes "wx.h".
-#include "wx/wxprec.h"
-
-#ifdef __BORLANDC__
- #pragma hdrstop
-#endif
-
-#if wxUSE_STATTEXT
-
-#include "wx/stattext.h"
-
-#ifndef WX_PRECOMP
- #include "wx/event.h"
- #include "wx/app.h"
- #include "wx/brush.h"
-#endif
-
-#include <Field.h>
-
-bool wxStaticText::Create(wxWindow *parent,
- wxWindowID id,
- const wxString& label,
- const wxPoint& pos,
- const wxSize& size,
- long style,
- const wxString& name)
-{
- if(!wxControl::Create(parent, id, pos, size, style, wxDefaultValidator, name))
- return false;
-
- // note that wxALIGN_LEFT is equal to 0 so we shouldn't
- // test for it using & operator
-
- JustificationType align = leftAlign;
-
- if ( style & wxALIGN_CENTRE )
- align = centerAlign ;
- else if ( style & wxALIGN_RIGHT )
- align = rightAlign;
-
- return wxControl::PalmCreateField(label, pos, size, false, false, align);
-}
-
-wxBorder wxStaticText::GetDefaultBorder() const
-{
- return wxBORDER_NONE;
-}
-
-wxSize wxStaticText::DoGetBestSize() const
-{
- return wxSize(0,0);
-}
-
-bool wxStaticText::SetFont(const wxFont& font)
-{
- return false;
-}
-
-#endif // wxUSE_STATTEXT
+++ /dev/null
-/******************************************************************************
- * Name: src/palmos/stdall.c
- * Purpose: the missing functions of Palm OS for wxPalm
- * Author: Yunhui Fu
- * Created: 2007-10-18
- * Modified by:
- * RCS-ID: $Id$
- * Copyright: (c) 2007 Yunhui Fu
- * Licence: wxWindows licence
- ******************************************************************************/
-
-#include <Preferences.h> // Core/System/
-#include <DateTime.h> //Core/System/, DateToAscii() etc.
-#include <TimeMgr.h> //Core/System/, TimGetTicks()
-
-#include "wx/defs.h"
-#define PALMOS_TRACE(msg) ErrFatalErrorInContext(__FILE__, __LINE__, msg)
-
-#if __WXPALMOS6__
-
-#ifdef TARGET_PLATFORM
-#if TARGET_PLATFORM != TARGET_PLATFORM_PALMSIM_WIN32
-void
-exit (int exitno)
-{
-}
-#endif
-#endif
-
-#else
-
-#define SEC_1904_1970 2082844800LU//0x7C25B080 // 0x7C25B080 == 2082844800LU
-
-time_t
-time (time_t *T)
-{
- UInt32 sec;
- // UInt32 TimGetSeconds(void); // seconds since 1/1/1904
- // void TimSetSeconds (UInt32 seconds); // seconds since 1/1/1904
- // UInt32 TimGetTicks(void); // ticks since power on
- sec = TimGetSeconds ();
- if (T) {
- *T = sec - SEC_1904_1970;
- }
- return (sec - SEC_1904_1970);
-}
-
-static struct tm *
-palmtimet2unixtm (const time_t t, struct tm *ptm)
-{
- DateTimeType dt;
- memset (&dt, 0, sizeof (dt));
- memset (ptm, 0, sizeof (*ptm));
- TimSecondsToDateTime (t, &dt);
- ptm->tm_sec = dt.second;
- ptm->tm_min = dt.minute;
- ptm->tm_hour = dt.hour;
- ptm->tm_mday = dt.day;
- ptm->tm_mon = dt.month;
- ptm->tm_year = dt.year;
- ptm->tm_wday = dt.weekDay;
-
- //ptm->tm_wday = DayOfWeek (dt.month, dt.day, dt.year);
- //ptm->tm_mday = DayOfMonth (dt.month, dt.day, dt.year);
- return ptm;
-}
-
-struct tm *
-gmtime_r (const time_t *pt, struct tm *ptm)
-{
- UInt32 utcTime;
- Int16 timeZone = PrefGetPreference(prefTimeZone);
- Int16 daylightSavingAdjustment = PrefGetPreference(prefDaylightSavingAdjustment);
-
- if ((NULL == pt) || (NULL == ptm)) {
- return NULL;
- }
- utcTime = TimTimeZoneToUTC (*pt + SEC_1904_1970, timeZone, daylightSavingAdjustment);
- palmtimet2unixtm (utcTime, ptm);
- return ptm;
-}
-
-struct tm *
-localtime_r (const time_t *pt, struct tm *ptm)
-{
- UInt32 utcTime;
- Int16 timeZone = PrefGetPreference(prefTimeZone);
- Int16 daylightSavingAdjustment = PrefGetPreference(prefDaylightSavingAdjustment);
- if ((NULL == pt) || (NULL == ptm)) {
- return NULL;
- }
- utcTime = TimUTCToTimeZone (*pt + SEC_1904_1970, timeZone, daylightSavingAdjustment);
- palmtimet2unixtm (utcTime, ptm);
- return ptm;
-}
-/*
-static struct tm g_gmtime_info;
-
-struct tm *
-gmtime (const time_t *CLOCK)
-{
- if (NULL == CLOCK) {
- return NULL;
- }
- if (NULL == gmtime_r (CLOCK, &g_gmtime_info)) {
- return NULL;
- }
- return &g_gmtime_info;
-}
-*/
-static struct tm g_localtime_info;
-
-struct tm *
-localtime (const time_t *CLOCK)
-{
- if (NULL == CLOCK) {
- return NULL;
- }
- if (NULL == localtime_r (CLOCK, &g_localtime_info)) {
- return NULL;
- }
- return &g_localtime_info;
-}
-
-static char * g_strftime_wdayconv[][2] = {
- {"Sun", "Sunday"},
- {"Mon", "Monday"},
- {"Tue", "Tuesday"},
- {"Wed", "Wednesday"},
- {"Thu", "Thursday"},
- {"Fri", "Friday"},
- {"Sat", "Saturday"},
-};
-
-static char * g_strftime_monconv[][2] = {
- {"Jan", "January"},
- {"Feb", "Febuary"},
- {"Mar", "March"},
- {"Apr", "April"},
- {"May", "May"},
- {"Jun", "June"},
- {"Jul", "July"},
- {"Aug", "August"},
- {"Sep", "September"},
- {"Oct", "October"},
- {"Nov", "November"},
- {"Dec", "December"},
-};
-#define SFCONV_ABBR 0
-#define SFCONV_FULL 1
-
-size_t
-strftime (char *buf, size_t sz_buf, const char *fmt, const struct tm *ptm)
-{
- char *p;
- char *pret;
- if ((timeStringLength > sz_buf) || (strlen (fmt) < 1)) {
- return 0;
- }
- memset (buf, 0, sz_buf);
- p = fmt;
- pret = buf;
- for (; *p != '\0';) {
- if ('%' == *p) {
- p ++;
- if (*p == '\0') {
- break;
- }
- // FIXME: test the overflow of the buffer
- switch (*p) {
- case 'a':
- strcpy (pret, g_strftime_wdayconv[ptm->tm_wday % 7][SFCONV_ABBR]);
- pret += 3;
- break;
- case 'A':
- strcpy (pret, g_strftime_wdayconv[ptm->tm_wday % 7][SFCONV_FULL]);
- pret += strlen (g_strftime_wdayconv[ptm->tm_wday % 7][SFCONV_FULL]);
- break;
- case 'b':
- strcpy (pret, g_strftime_monconv[ptm->tm_mon % 12][SFCONV_ABBR]);
- pret += 3;
- break;
- case 'B':
- strcpy (pret, g_strftime_monconv[ptm->tm_mon % 12][SFCONV_FULL]);
- pret += strlen (g_strftime_monconv[ptm->tm_mon % 12][SFCONV_FULL]);
- break;
- case 'c':
- strcpy (pret, g_strftime_wdayconv[ptm->tm_wday % 7][SFCONV_ABBR]);
- pret += 3;
- *pret = ' ';
- pret ++;
- strcpy (pret, g_strftime_monconv[ptm->tm_mon % 12][SFCONV_ABBR]);
- pret += 3;
- *pret = ' ';
- pret ++;
- sprintf (pret, "%d %02d:%02d:%02d %d", ptm->tm_mday,
- ptm->tm_hour, ptm->tm_min, ptm->tm_sec, ptm->tm_year);
- pret += strlen (pret);
- break;
- case 'd':
- sprintf (pret, "%02d", ptm->tm_mday % 31);
- pret += 2;
- break;
- case 'H':
- sprintf (pret, "%02d", ptm->tm_hour % 24);
- pret += 2;
- break;
- case 'I':
- sprintf (pret, "%02d", (ptm->tm_hour % 12) + 1);
- pret += 2;
- break;
- case 'j':
- sprintf (pret, "%03d", ptm->tm_year % 400);
- pret += 3;
- break;
- case 'm':
- sprintf (pret, "%02d", (ptm->tm_mon % 12) + 1);
- pret += 2;
- break;
- case 'M':
- sprintf (pret, "%02d", ptm->tm_min % 60);
- pret += 2;
- break;
- case 'p':
- if (ptm->tm_hour > 12) {
- strcpy (pret, "PM");
- break;
- }
- strcpy (pret, "AM");
- pret += 2;
- break;
- case 'S':
- sprintf (pret, "%02d", ptm->tm_sec % 61);
- pret += 2;
- break;
- case 'U':
- // FIXME: Week number with the first Sunday as the first day of week one (00-53)
- sprintf (pret, "%02d", ptm->tm_yday / 7);
- pret += 2;
- break;
- case 'w':
- sprintf (pret, "%d", ptm->tm_wday % 7);
- pret += 1;
- break;
- case 'W':
- // FIXME: Week number with the first Sunday as the first day of week one (00-53)
- sprintf (pret, "%02d", ptm->tm_yday / 7);
- pret += 2;
- break;
- case 'x':
- sprintf (pret, "%02d/%02d/%02d",
- ptm->tm_mon, ptm->tm_mday, ptm->tm_year - 1900);
- pret += strlen (pret);
- break;
- case 'X':
- sprintf (pret, "%02d:%02d:%02d",
- ptm->tm_hour, ptm->tm_min, ptm->tm_sec);
- pret += strlen (pret);
- break;
- case 'y':
- sprintf (pret, "%02d", ptm->tm_year - 1900);
- pret += 2;
- break;
- case 'Y':
- sprintf (pret, "%02d", ptm->tm_year);
- pret += strlen (pret);
- break;
- case 'Z':
- {
- LmLocaleType ll;
- ll.language = lmAnyLanguage;
- ll.country = 0;
- TimeZoneToAscii (ptm->tm_gmtoff, &ll, pret);
- }
- pret += strlen (pret);
- break;
- case '%':
- *pret = *p;
- pret ++;
- break;
- }
- } else {
- *pret = *p;
- pret ++;
- }
- p ++;
- }
- return 0;
-}
-
-time_t
-mktime (struct tm *ptm)
-{
- DateTimeType dt;
- if (NULL == ptm) {
- return 0;
- }
- memset (&dt, 0, sizeof (dt));
- dt.second = ptm->tm_sec;
- dt.minute = ptm->tm_min;
- dt.hour = ptm->tm_hour;
- dt.day = ptm->tm_mday;
- dt.month = ptm->tm_mon;
- dt.year = ptm->tm_year;
- dt.weekDay = ptm->tm_wday;
- return TimDateTimeToSeconds (&dt);
-}
-
-int
-vsscanf (const char *s, const char *format, va_list param)
-{
- return -1;
-}
-
-FILE * fopen (const char *_name, const char *_type) {return NULL;}
-int fclose (FILE *fp) {return 0;}
-size_t fread (void *buf, size_t _size, size_t _n, FILE *fp) {return 0;}
-size_t fwrite (const void *buf , size_t _size, size_t _n, FILE *fp) {return 0;}
-int fseek (FILE *fp, long offset, int whence) {return -1;}
-long ftell (FILE *fp) {return -1;}
-int feof (FILE *fp) {return -1;}
-int ferror (FILE *fp) {return -1;}
-void clearerr (FILE *fp) {}
-
-#endif // __WXPALMOS6__
-
-#define _BIT_ALPHA 0X0001
-#define _BIT_BLANK 0X0002
-#define _BIT_CNTRL 0X0004
-#define _BIT_DIGIT 0X0008
-#define _BIT_GRAPH 0X0010
-#define _BIT_LOWER 0X0020
-#define _BIT_PRINT 0X0040
-#define _BIT_PUNCT 0X0080
-#define _BIT_SPACE 0X0100
-#define _BIT_UPPER 0X0200
-#define _BIT_XDIGIT 0X0400
-
-int iswalnum(wint_t C) {return 0;}
-int iswalpha(wint_t C) {return 0;}
-int iswcntrl(wint_t C) {return 0;}
-int iswdigit(wint_t C) {return 0;}
-int iswgraph(wint_t C) {return 0;}
-int iswlower(wint_t C) {return 0;}
-int iswprint(wint_t C) {return 0;}
-int iswpunct(wint_t C) {return 0;}
-int iswspace(wint_t C) {return 0;}
-int iswupper(wint_t C) {return 0;}
-int iswxdigit(wint_t C) {return 0;}
-
-wint_t towlower(wint_t C) {return 0;}
-wint_t towupper(wint_t C) {return 0;}
-size_t wcsftime(wchar_t *strDest, size_t maxsize, const wchar_t *format, const struct tm *timeptr) {return 0;}
-
-size_t
-wcslen (const wchar_t * str)
-{
- size_t i;
- for (i = 0; str[i] != 0; i ++);
- return i;
-}
-
-wchar_t *
-wcscpy (wchar_t * dst, const wchar_t * src)
-{
- size_t len;
- len = wcslen (src);
- if (len < 1) {
- return NULL;
- }
- memmove (dst, src, len * sizeof (wchar_t));
- dst[len] = 0;
- return dst;
-}
-
-wchar_t *
-wcsncpy (wchar_t * dst, const wchar_t * src, size_t len_max)
-{
- size_t len;
- len = wcslen (src);
- if (len < 1) {
- return NULL;
- }
- if (len_max < len + 1) {
- len = len_max - 1;
- }
- if (len > 0) {
- memmove (dst, src, len * sizeof (wchar_t));
- }
- dst[len] = 0;
- return dst;
-}
-
-wchar_t *
-wcscat (wchar_t * dst, const wchar_t * src)
-{
- size_t len_dst;
- len_dst = wcslen (dst);
- return wcscpy (dst + len_dst, src);
-}
-
-wchar_t *
-wcsncat (wchar_t * dst, const wchar_t * src, size_t n)
-{
- size_t len_dst;
- len_dst = wcslen (dst);
- return wcsncpy (dst + len_dst, src, n);
-}
-
-#define SYS_IS_BIGENDIAN 0
-
-#if SYS_IS_BIGENDIAN
-#define _wcmcmp(a,b,len) memcmp((a),(b),(len) * sizeof (wchar_t))
-#else // SYS_IS_BIGENDIAN
-int
-_wcmcmp (const wchar_t * str1, const wchar_t * str2, size_t len)
-{
- size_t i;
- for (i = 0; i < len; i ++) {
- if (str1[i] == str2[i]) {
- continue;
- } else if (str1[i] < str2[i]) {
- return -1;
- }
- return 1;
- }
- return 0;
-}
-#endif // SYS_IS_BIGENDIAN
-
-int
-wcscmp (const wchar_t * str1, const wchar_t * str2)
-{
- int ret;
- size_t len;
- size_t len1;
- size_t len2;
- len1 = wcslen (str1);
- len2 = wcslen (str2);
- len = len1;
- if (len > len2) {
- len = len2;
- }
- ret = _wcmcmp (str1, str2, len);
- if (0 == ret) {
- if (len1 > len2) {
- return -1;
- } else if (len1 == len2) {
- return 0;
- }
- return 1;
- }
- return ret;
-}
-
-int
-wcsncmp (const wchar_t * str1, const wchar_t * str2, size_t n)
-{
- int ret;
- size_t len;
- size_t len1;
- size_t len2;
- len1 = wcslen (str1);
- len2 = wcslen (str2);
- len = len1;
- if (len > len2) {
- len = len2;
- }
- if (len > n) {
- len = n;
- }
- ret = _wcmcmp (str1, str2, len);
- if (0 == ret) {
- if (len >= n) {
- return 0;
- }
- if (len1 > len2) {
- return -1;
- } else if (len1 == len2) {
- return 0;
- }
- return 1;
- }
- return ret;
-}
-
-wchar_t *
-wcschr (const wchar_t * str, const wchar_t chr)
-{
- wchar_t * str2 = (wchar_t *)str;
- size_t i;
- size_t len;
- len = wcslen (str2);
- for (i = 0; i < len; i ++) {
- if (str2[i] == chr) {
- str2 += i;
- return str2;
- }
- }
- return NULL;
-}
-
-int wcscoll (const wchar_t *str1, const wchar_t * str2) {return wcscmp(str1, str2);}
-
-/*
- * wcsxfrm: Transfom the wide-char str2 and place the result into the str1,
- * return the length of the wide-char, return -1 on error.
- */
-size_t
-wcsxfrm (wchar_t * str1, const wchar_t * str2, size_t n)
-{
- wcsncpy (str1, str2, n);
- return wcslen (str1);
-}
-
-wchar_t *
-wcsrchr (const wchar_t * str, wchar_t chr)
-{
- wchar_t * str2 = (wchar_t *)str;
- ssize_t i;
- i = wcslen (str2);
- for (; i >= 0; i ++) {
- if (str2[i] == chr) {
- str2 += i;
- return str2;
- }
- }
- return NULL;
-}
-
-wchar_t *
-wcspbrk (const wchar_t * str, const wchar_t * set)
-{
- wchar_t * str2 = (wchar_t *)str;
- size_t i;
- size_t j;
- size_t len;
- size_t len_set;
- len = wcslen (str2);
- len_set = wcslen (set);
- for (i = 0; i < len; i ++) {
- for (j = 0; j < len_set; j ++) {
- if (str2[i] == set[j]) {
- str2 += i;
- return str2;
- }
- }
- }
- return NULL;
-}
-
-/*
- * wcsspn: compute the maxinum initial segment of the wide-char str which consists entirely of wide-char codes from the set.
- * returnt he length of the initial substring of str
- * examples:
- * str="13134abcde", set="1234567890", wcsspn(str,set)==5
- * str="abcde", set="1234567890", wcsspn(str,set)==0
- */
-size_t
-wcsspn (const wchar_t * str, const wchar_t * set)
-{
- size_t i;
- size_t j;
- size_t len;
- size_t len_set;
- len = wcslen (str);
- len_set = wcslen (set);
- for (i = 0; i < len; i ++) {
- for (j = 0; j < len_set; j ++) {
- if (str[i] == set[j]) {
- break;
- }
- }
- if (j >= len_set) {
- return i;
- }
- }
- return i;
-}
-
-/*
- * wcscspn: determines the length of the initial segment of str which consists entirely of characters not found in set.
- * examples:
- * str="13134abcde", set="1234567890", wcsspn(str,set)==0
- * str="abcde123", set="1234567890", wcsspn(str,set)==5
-*/
-size_t
-wcscspn (const wchar_t * str, const wchar_t * set)
-{
- size_t i;
- size_t j;
- size_t len;
- size_t len_set;
- len = wcslen (str);
- len_set = wcslen (set);
- for (i = 0; i < len; i ++) {
- for (j = 0; j < len_set; j ++) {
- if (str[i] == set[j]) {
- break;
- }
- }
- if (j < len_set) {
- return i;
- }
- }
- return i;
-}
-
-wchar_t *
-wcsstr (const wchar_t * str, const wchar_t * pat)
-{
- // TODO: improvement the alg for search
- wchar_t *p;
- p = wcschr (str, pat[0]);
- for (; NULL != p;) {
- if (0 == wcscmp (p, pat)) {
- return p;
- }
- p = wcschr (p, pat[0]);
- }
- return NULL;
-}
-
-wchar_t *
-wcstok (wchar_t * str, const wchar_t * set, wchar_t ** a)
-{
- wchar_t * p;
- if (NULL == str) {
- if (NULL == a) {
- return NULL;
- }
- str = *a;
- }
- if (NULL == str) {
- return NULL;
- }
- p = wcspbrk (str, set);
- if (NULL == p) {
- return NULL;
- }
- *p = 0;
- *a = p;
- return str;
-}
-
-#define iswblank iswspace
-//#define ULONG_MAX INT_MAX
-unsigned long
-wcstoul (const wchar_t *nptr, wchar_t **endptr, int base)
-{
- int flg_overflow;
- //int val_remain;
- unsigned long val_ch;
- unsigned long val_old;
- unsigned long val;
- /* check the base */
- if ((1 == base) || (base > 36) || (base < 0)) {
- // error
- return 0;
- }
- // skip blank
- while (iswblank (*nptr)) {nptr ++;}
- if (0 == *nptr) {
- return 0;
- }
- if (0 == base) {
- // auto detect
- switch (*nptr) {
- case '0':
- if (('x' == *(nptr + 1)) || ('X' == *(nptr + 1))) {
- base = 16;
- nptr += 2;
- } else {
- nptr += 1;
- base = 8;
- }
- break;
- case '1':
- case '2':
- case '3':
- case '4':
- case '5':
- case '6':
- case '7':
- case '8':
- case '9':
- base = 10;
- break;
- }
- } else {
- if (16 == base) {
- // detect if it has '0x' or '0X'
- if (('0' == *nptr) && (('x' == *(nptr + 1)) || ('x' == *(nptr + 1)))) {
- nptr += 2;
- }
- }
- }
- if (0 == base) {
- // error
- return 0;
- }
- val = 0;
- val_old = 0;
- flg_overflow = 0;
- //val_remain = ULONG_MAX % base;
- for (; '\0' != *nptr; nptr ++) {
- val_ch = *nptr;
- if (('0' <= val_ch) && (val_ch <= '9')) {
- val_ch -= '0';
- } else if (('a' <= val_ch) && (val_ch <= 'z')) {
- val_ch = val_ch - 'a' + 10;
- } else if (('A' <= val_ch) && (val_ch <= 'Z')) {
- val_ch = val_ch - 'A' + 10;
- } else {
- // val_ch = base + 1;
- break;
- }
- if (val_ch >= base) {
- break;
- }
- if (flg_overflow) continue;
- val_old = val;
- val *= base;
- val += val_ch;
- if (val_old > val) {
- flg_overflow = 1;
- }
- }
- if (flg_overflow) {
- val = ULONG_MAX;
- }
- if (0L != endptr) {
- *endptr = (wchar_t *)nptr;
- }
- return val;
-}
-
-long
-wcstol (const wchar_t * str, wchar_t ** end, int base)
-{
- int sign = 0;
- unsigned long val0;
- long val;
- wchar_t ch;
- // skip blank
- for (; iswblank (*str); str ++) {
- }
- for (ch = *str; (ch == '-') || (ch == '+'); str ++) {
- }
- // the sign
- if ('-' == ch) {
- sign = 1;
- str ++;
- }
- val0 = wcstoul (str, end, base);
- if (val0 >= LONG_MAX) {
- // overflow
- val = LONG_MAX;
- if (sign) {
- val = LONG_MIN;
- }
- } else {
- val = val0;
- if (sign) {
- val = -val0;
- }
- }
- return val;
-}
-
-double
-wcstod (const wchar_t * str, wchar_t ** end)
-{
- double val;
- double mantissa;
- unsigned long divisor;
- unsigned long power;
- int sign;
- int sign_power;
- wchar_t *pend;
- wchar_t ch;
- // skip blank
- for (; iswblank (*str); str ++) {
- }
- for (ch = *str; (ch == '-') || (ch == '+'); str ++) {
- }
- // the sign
- sign = 0;
- if ('-' == ch) {
- sign = 1;
- str ++;
- }
- // skip leading zero
- for (; '0' == (*str); str ++) {
- }
- val = 0.0;
- mantissa = 0.0;
- divisor = 0;
- power = 0.0;
- // integer part
- for (ch = *str; ('0' <= ch) && (ch <= '9'); str ++) {
- ch -= '0';
- val *= 10;
- val += ch;
- }
- // floating point & mantissa
- if ('.' == *str) {
- str ++;
- for (ch = *str; ('0' <= ch) && (ch <= '9'); str ++) {
- ch -= '0';
- mantissa *= 10.0;
- mantissa += ch;
- divisor ++;
- }
- }
- for (; divisor > 0; divisor --) {
- mantissa /= 10.0;
- }
- val += mantissa;
- sign_power = 0;
- if (('e' == *str) || ('E' == *str)) {
- str ++;
- if ('-' == ch) {
- sign_power = 1;
- str ++;
- }
- pend = NULL;
- power = wcstoul (str, &pend, 10);
- if (NULL != pend) {
- str = pend;
- }
- }
- if (power > 0) {
- if (sign_power) {
- for (; power > 0; power --) {
- val /= 10.0;
- }
- } else {
- for (; power > 0; power --) {
- val *= 10.0;
- }
- }
- }
- if (sign) {
- val = - val;
- }
- if (end) {
- *end = (wchar_t *)str;
- }
- return val;
-}
-
-char * setlocale (int category, const char *locale) {return NULL;}
-
-int
-eof (int fd)
-{
- return 0;
-}
-
-int
-remove (const char *fn)
-{
- return svfs_filedelete (fn);
-}
-
-// access(): check access permissions of a file or pathname
-// R_OK: read permission
-// W_OK: write permission
-// X_OK: execute/search permission
-// F_OK: existence test
-//All components of the pathname path are checked for access permissions (including F_OK)
-int access(const char *path, int amode) {return amode;}
-
-off_t lseek(int fildes, off_t offset, int whence) {return 0;}
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////
-// File: src/palmos/taskbar.cpp
-// Purpose: Implements wxTaskBarIcon class for manipulating icons on
-// the task bar.
-// Author: Julian Smart
-// Modified by: Vaclav Slavik
-// Created: 24/3/98
-// RCS-ID: $Id$
-// Copyright: (c)
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////
-
-// For compilers that support precompilation, includes "wx.h".
-#include "wx/wxprec.h"
-
-#ifdef __BORLANDC__
- #pragma hdrstop
-#endif
-
-#if wxUSE_TASKBARICON
-
-#ifndef WX_PRECOMP
- #include "wx/window.h"
- #include "wx/frame.h"
- #include "wx/utils.h"
- #include "wx/menu.h"
-#endif
-
-#if defined(__WIN95__)
-
-#include <string.h>
-#include "wx/taskbar.h"
-
-IMPLEMENT_DYNAMIC_CLASS(wxTaskBarIcon, wxEvtHandler)
-
-// ============================================================================
-// implementation
-// ============================================================================
-
-// ----------------------------------------------------------------------------
-// wxTaskBarIconWindow: helper window
-// ----------------------------------------------------------------------------
-
-// NB: this class serves two purposes:
-// 1. win32 needs a HWND associated with taskbar icon, this provides it
-// 2. we need wxTopLevelWindow so that the app doesn't exit when
-// last frame is closed but there still is a taskbar icon
-class wxTaskBarIconWindow : public wxFrame
-{
-public:
- wxTaskBarIconWindow(wxTaskBarIcon *icon)
- : wxFrame(NULL, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0),
- m_icon(icon)
- {
- }
-
- WXLRESULT MSWWindowProc(WXUINT msg,
- WXWPARAM wParam, WXLPARAM lParam)
- {
- return 0;
- }
-
-private:
- wxTaskBarIcon *m_icon;
-};
-
-// ----------------------------------------------------------------------------
-// wxTaskBarIcon
-// ----------------------------------------------------------------------------
-
-wxTaskBarIcon::wxTaskBarIcon()
-{
-}
-
-wxTaskBarIcon::~wxTaskBarIcon()
-{
-}
-
-// Operations
-bool wxTaskBarIcon::SetIcon(const wxIcon& icon, const wxString& tooltip)
-{
- return false;
-}
-
-bool wxTaskBarIcon::RemoveIcon()
-{
- return false;
-}
-
-bool wxTaskBarIcon::PopupMenu(wxMenu *menu)
-{
- return false;
-}
-
-void wxTaskBarIcon::RegisterWindowMessages()
-{
-}
-
-// ----------------------------------------------------------------------------
-// wxTaskBarIcon window proc
-// ----------------------------------------------------------------------------
-
-long wxTaskBarIcon::WindowProc(unsigned int msg,
- unsigned int WXUNUSED(wParam),
- long lParam)
-{
- return 0;
-}
-
-#endif // __WIN95__
-
-#endif // wxUSE_TASKBARICON
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/textctrl.cpp
-// Purpose: wxTextCtrl
-// 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
-
-#if wxUSE_TEXTCTRL
-
-#include "wx/textctrl.h"
-
-#ifndef WX_PRECOMP
- #include "wx/settings.h"
- #include "wx/brush.h"
- #include "wx/utils.h"
- #include "wx/intl.h"
- #include "wx/log.h"
- #include "wx/app.h"
- #include "wx/menu.h"
- #include "wx/module.h"
-#endif
-
-#if wxUSE_CLIPBOARD
- #include "wx/clipbrd.h"
-#endif
-
-#include "wx/textfile.h"
-
-#include <string.h>
-
-#if wxUSE_RICHEDIT
-
-#include "wx/palmos/missing.h"
-
-#endif // wxUSE_RICHEDIT
-
-// ----------------------------------------------------------------------------
-// private classes
-// ----------------------------------------------------------------------------
-
-#if wxUSE_RICHEDIT
-
-// this module initializes RichEdit DLL(s) if needed
-class wxRichEditModule : public wxModule
-{
-public:
- virtual bool OnInit();
- virtual void OnExit();
-
- // load the richedit DLL of at least of required version
- static bool Load(int version = 1);
-
-private:
- // the handles to richedit 1.0 and 2.0 (or 3.0) DLLs
- static HINSTANCE ms_hRichEdit[2];
-
- DECLARE_DYNAMIC_CLASS(wxRichEditModule)
-};
-
-HINSTANCE wxRichEditModule::ms_hRichEdit[2] = { NULL, NULL };
-
-IMPLEMENT_DYNAMIC_CLASS(wxRichEditModule, wxModule)
-
-#endif // wxUSE_RICHEDIT
-
-// ----------------------------------------------------------------------------
-// event tables and other macros
-// ----------------------------------------------------------------------------
-
-BEGIN_EVENT_TABLE(wxTextCtrl, wxTextCtrlBase)
- EVT_CHAR(wxTextCtrl::OnChar)
- EVT_DROP_FILES(wxTextCtrl::OnDropFiles)
-
-#if wxUSE_RICHEDIT
- EVT_RIGHT_UP(wxTextCtrl::OnRightClick)
-#endif
-
- EVT_MENU(wxID_CUT, wxTextCtrl::OnCut)
- EVT_MENU(wxID_COPY, wxTextCtrl::OnCopy)
- EVT_MENU(wxID_PASTE, wxTextCtrl::OnPaste)
- EVT_MENU(wxID_UNDO, wxTextCtrl::OnUndo)
- EVT_MENU(wxID_REDO, wxTextCtrl::OnRedo)
- EVT_MENU(wxID_CLEAR, wxTextCtrl::OnDelete)
- EVT_MENU(wxID_SELECTALL, wxTextCtrl::OnSelectAll)
-
- EVT_UPDATE_UI(wxID_CUT, wxTextCtrl::OnUpdateCut)
- EVT_UPDATE_UI(wxID_COPY, wxTextCtrl::OnUpdateCopy)
- EVT_UPDATE_UI(wxID_PASTE, wxTextCtrl::OnUpdatePaste)
- EVT_UPDATE_UI(wxID_UNDO, wxTextCtrl::OnUpdateUndo)
- EVT_UPDATE_UI(wxID_REDO, wxTextCtrl::OnUpdateRedo)
- EVT_UPDATE_UI(wxID_CLEAR, wxTextCtrl::OnUpdateDelete)
- EVT_UPDATE_UI(wxID_SELECTALL, wxTextCtrl::OnUpdateSelectAll)
-
- EVT_SET_FOCUS(wxTextCtrl::OnSetFocus)
-END_EVENT_TABLE()
-
-// ============================================================================
-// implementation
-// ============================================================================
-
-// ----------------------------------------------------------------------------
-// creation
-// ----------------------------------------------------------------------------
-
-void wxTextCtrl::Init()
-{
-}
-
-wxTextCtrl::~wxTextCtrl()
-{
-}
-
-bool wxTextCtrl::Create(wxWindow *parent, wxWindowID id,
- const wxString& value,
- const wxPoint& pos,
- const wxSize& size,
- long style,
- const wxValidator& validator,
- const wxString& name)
-{
- return false;
-}
-
-// ----------------------------------------------------------------------------
-// set/get the controls text
-// ----------------------------------------------------------------------------
-
-wxString wxTextCtrl::GetValue() const
-{
- wxString res;
- return res;
-}
-
-wxString wxTextCtrl::GetRange(long from, long to) const
-{
- wxString res;
- return res;
-}
-
-void wxTextCtrl::DoSetValue(const wxString& value, int flags)
-{
-}
-
-void wxTextCtrl::WriteText(const wxString& value)
-{
-}
-
-void wxTextCtrl::DoWriteText(const wxString& text, int flags)
-{
-}
-
-void wxTextCtrl::AppendText(const wxString& text)
-{
-}
-
-void wxTextCtrl::Clear()
-{
-}
-
-// ----------------------------------------------------------------------------
-// Clipboard operations
-// ----------------------------------------------------------------------------
-
-void wxTextCtrl::Copy()
-{
-}
-
-void wxTextCtrl::Cut()
-{
-}
-
-void wxTextCtrl::Paste()
-{
-}
-
-bool wxTextCtrl::CanCopy() const
-{
- return false;
-}
-
-bool wxTextCtrl::CanCut() const
-{
- return false;
-}
-
-bool wxTextCtrl::CanPaste() const
-{
- return false;
-}
-
-// ----------------------------------------------------------------------------
-// Accessors
-// ----------------------------------------------------------------------------
-
-void wxTextCtrl::SetEditable(bool editable)
-{
-}
-
-void wxTextCtrl::SetInsertionPoint(long pos)
-{
-}
-
-void wxTextCtrl::SetInsertionPointEnd()
-{
-}
-
-long wxTextCtrl::GetInsertionPoint() const
-{
- return 0;
-}
-
-wxTextPos wxTextCtrl::GetLastPosition() const
-{
- return 0;
-}
-
-// If the return values from and to are the same, there is no
-// selection.
-void wxTextCtrl::GetSelection(long* from, long* to) const
-{
-}
-
-bool wxTextCtrl::IsEditable() const
-{
- return false;
-}
-
-// ----------------------------------------------------------------------------
-// selection
-// ----------------------------------------------------------------------------
-
-void wxTextCtrl::SetSelection(long from, long to)
-{
-}
-
-void wxTextCtrl::DoSetSelection(long from, long to, int flags)
-{
-}
-
-// ----------------------------------------------------------------------------
-// Working with files
-// ----------------------------------------------------------------------------
-
-bool wxTextCtrl::DoLoadFile(const wxString& file, int fileType)
-{
- return false;
-}
-
-// ----------------------------------------------------------------------------
-// Editing
-// ----------------------------------------------------------------------------
-
-void wxTextCtrl::Replace(long from, long to, const wxString& value)
-{
-}
-
-void wxTextCtrl::Remove(long from, long to)
-{
-}
-
-bool wxTextCtrl::IsModified() const
-{
- return false;
-}
-
-void wxTextCtrl::MarkDirty()
-{
-}
-
-void wxTextCtrl::DiscardEdits()
-{
-}
-
-int wxTextCtrl::GetNumberOfLines() const
-{
- return 0;
-}
-
-// ----------------------------------------------------------------------------
-// Positions <-> coords
-// ----------------------------------------------------------------------------
-
-long wxTextCtrl::XYToPosition(long x, long y) const
-{
- return 0;
-}
-
-bool wxTextCtrl::PositionToXY(long pos, long *x, long *y) const
-{
- return false;
-}
-
-wxTextCtrlHitTestResult
-wxTextCtrl::HitTest(const wxPoint& pt, long *pos) const
-{
- return wxTE_HT_UNKNOWN;
-}
-
-// ----------------------------------------------------------------------------
-//
-// ----------------------------------------------------------------------------
-
-void wxTextCtrl::ShowPosition(long pos)
-{
-}
-
-long wxTextCtrl::GetLengthOfLineContainingPos(long pos) const
-{
- return 0;
-}
-
-int wxTextCtrl::GetLineLength(long lineNo) const
-{
- return 0;
-}
-
-wxString wxTextCtrl::GetLineText(long lineNo) const
-{
- wxString str;
-
- return str;
-}
-
-void wxTextCtrl::SetMaxLength(unsigned long len)
-{
-}
-
-// ----------------------------------------------------------------------------
-// Undo/redo
-// ----------------------------------------------------------------------------
-
-void wxTextCtrl::Undo()
-{
-}
-
-void wxTextCtrl::Redo()
-{
-}
-
-bool wxTextCtrl::CanUndo() const
-{
- return false;
-}
-
-bool wxTextCtrl::CanRedo() const
-{
- return false;
-}
-
-// ----------------------------------------------------------------------------
-// caret handling (Windows only)
-// ----------------------------------------------------------------------------
-
-bool wxTextCtrl::ShowNativeCaret(bool show)
-{
- return false;
-}
-
-// ----------------------------------------------------------------------------
-// implemenation details
-// ----------------------------------------------------------------------------
-
-void wxTextCtrl::Command(wxCommandEvent & event)
-{
-}
-
-void wxTextCtrl::OnDropFiles(wxDropFilesEvent& event)
-{
-}
-
-// ----------------------------------------------------------------------------
-// kbd input processing
-// ----------------------------------------------------------------------------
-
-void wxTextCtrl::OnChar(wxKeyEvent& event)
-{
-}
-
-// ----------------------------------------------------------------------------
-// text control event processing
-// ----------------------------------------------------------------------------
-
-bool wxTextCtrl::SendUpdateEvent()
-{
- return false;
-}
-
-bool wxTextCtrl::AdjustSpaceLimit()
-{
- return false;
-}
-
-wxSize wxTextCtrl::DoGetBestSize() const
-{
- return wxSize(0,0);
-}
-
-// ----------------------------------------------------------------------------
-// standard handlers for standard edit menu events
-// ----------------------------------------------------------------------------
-
-void wxTextCtrl::OnCut(wxCommandEvent& WXUNUSED(event))
-{
-}
-
-void wxTextCtrl::OnCopy(wxCommandEvent& WXUNUSED(event))
-{
-}
-
-void wxTextCtrl::OnPaste(wxCommandEvent& WXUNUSED(event))
-{
-}
-
-void wxTextCtrl::OnUndo(wxCommandEvent& WXUNUSED(event))
-{
-}
-
-void wxTextCtrl::OnRedo(wxCommandEvent& WXUNUSED(event))
-{
-}
-
-void wxTextCtrl::OnDelete(wxCommandEvent& WXUNUSED(event))
-{
-}
-
-void wxTextCtrl::OnSelectAll(wxCommandEvent& WXUNUSED(event))
-{
-}
-
-void wxTextCtrl::OnUpdateCut(wxUpdateUIEvent& event)
-{
-}
-
-void wxTextCtrl::OnUpdateCopy(wxUpdateUIEvent& event)
-{
-}
-
-void wxTextCtrl::OnUpdatePaste(wxUpdateUIEvent& event)
-{
-}
-
-void wxTextCtrl::OnUpdateUndo(wxUpdateUIEvent& event)
-{
-}
-
-void wxTextCtrl::OnUpdateRedo(wxUpdateUIEvent& event)
-{
-}
-
-void wxTextCtrl::OnUpdateDelete(wxUpdateUIEvent& event)
-{
-}
-
-void wxTextCtrl::OnUpdateSelectAll(wxUpdateUIEvent& event)
-{
-}
-
-void wxTextCtrl::OnSetFocus(wxFocusEvent& WXUNUSED(event))
-{
-}
-
-wxVisualAttributes wxTextCtrl::GetDefaultAttributes() const
-{
- wxVisualAttributes attrs;
- attrs.font = wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT);
- attrs.colFg = wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOWTEXT);
- attrs.colBg = wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW); //white
- return attrs;
-}
-
-bool wxTextCtrl::EmulateKeyPress(const wxKeyEvent& rEvent)
-{
- return false;
-}
-bool wxTextCtrl::CanApplyThemeBorder() const
-{
- return false;
-}
-bool wxTextCtrl::IsEmpty() const
-{
- return false;
-}
-bool wxTextCtrl::AcceptsFocusFromKeyboard() const
-{
- return false;
-}
-void wxTextCtrl::AdoptAttributesFromHWND()
-{
-}
-void wxTextCtrl::SetWindowStyleFlag(long lStyle)
-{
-}
-
-// the rest of the file only deals with the rich edit controls
-#if wxUSE_RICHEDIT
-
-// ----------------------------------------------------------------------------
-// EN_LINK processing
-// ----------------------------------------------------------------------------
-
-bool wxTextCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result)
-{
- return false;
-}
-
-// ----------------------------------------------------------------------------
-// colour setting for the rich edit controls
-// ----------------------------------------------------------------------------
-
-bool wxTextCtrl::SetBackgroundColour(const wxColour& colour)
-{
- return false;
-}
-
-bool wxTextCtrl::SetForegroundColour(const wxColour& colour)
-{
- return false;
-}
-
-// ----------------------------------------------------------------------------
-// wxRichEditModule
-// ----------------------------------------------------------------------------
-
-bool wxRichEditModule::OnInit()
-{
- return false;
-}
-
-void wxRichEditModule::OnExit()
-{
-}
-
-/* static */
-bool wxRichEditModule::Load(int version)
-{
- return false;
-}
-
-#endif // wxUSE_RICHEDIT
-
-// ----------------------------------------------------------------------------
-// styling support for rich edit controls
-// ----------------------------------------------------------------------------
-
-#if wxUSE_RICHEDIT
-
-bool wxTextCtrl::SetStyle(long start, long end, const wxTextAttr& style)
-{
- return false;
-}
-
-bool wxTextCtrl::SetDefaultStyle(const wxTextAttr& style)
-{
- return false;
-}
-
-bool wxTextCtrl::GetStyle(long position, wxTextAttr& style)
-{
- return false;
-}
-
-#endif // wxUSE_RICHEDIT
-
-#endif // wxUSE_TEXTCTRL
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/tglbtn.cpp
-// Purpose: Definition of the wxToggleButton class, which implements a
-// toggle button.
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by: Wlodzimierz ABX Skiba - native implementation
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne, Wlodzimierz Skiba
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-// ============================================================================
-// declatations
-// ============================================================================
-
-// ----------------------------------------------------------------------------
-// headers
-// ----------------------------------------------------------------------------
-
-#include "wx/wxprec.h"
-
-#ifdef __BORLANDC__
- #pragma hdrstop
-#endif
-
-#if wxUSE_TOGGLEBTN
-
-#include "wx/tglbtn.h"
-
-#ifndef WX_PRECOMP
- #include "wx/button.h"
- #include "wx/brush.h"
- #include "wx/dcscreen.h"
- #include "wx/settings.h"
-
- #include "wx/log.h"
-#endif // WX_PRECOMP
-
-#include <Control.h>
-
-// ----------------------------------------------------------------------------
-// macros
-// ----------------------------------------------------------------------------
-
-IMPLEMENT_DYNAMIC_CLASS(wxToggleButton, wxControl)
-wxDEFINE_EVENT( wxEVT_COMMAND_TOGGLEBUTTON_CLICKED, wxCommandEvent );
-
-// ============================================================================
-// implementation
-// ============================================================================
-
-// ----------------------------------------------------------------------------
-// wxToggleButton
-// ----------------------------------------------------------------------------
-
-// Single check box item
-bool wxToggleButton::Create(wxWindow *parent, wxWindowID id,
- const wxString& label,
- const wxPoint& pos,
- const wxSize& size, long style,
- const wxValidator& validator,
- const wxString& name)
-{
- if(!wxControl::Create(parent, id, pos, size, style, validator, name))
- return false;
-
- return wxControl::PalmCreateControl(pushButtonCtl, label, pos, size);
-}
-
-wxBorder wxToggleButton::GetDefaultBorder() const
-{
- return wxBORDER_NONE;
-}
-
-wxSize wxToggleButton::DoGetBestSize() const
-{
- return wxSize(0,0);
-}
-
-void wxToggleButton::SetValue(bool val)
-{
- SetBoolValue(val);
-}
-
-bool wxToggleButton::GetValue() const
-{
- return GetBoolValue();
-}
-
-bool wxToggleButton::SendClickEvent()
-{
- wxCommandEvent event(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED, GetId());
- event.SetInt(GetValue());
- event.SetEventObject(this);
- return ProcessCommand(event);
-}
-
-void wxToggleButton::Command(wxCommandEvent & event)
-{
-}
-
-#endif // wxUSE_TOGGLEBTN
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/thread.cpp
-// Purpose: wxThread Implementation
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-// ----------------------------------------------------------------------------
-// headers
-// ----------------------------------------------------------------------------
-
-// For compilers that support precompilation, includes "wx.h".
-#include "wx/wxprec.h"
-
-#if defined(__BORLANDC__)
- #pragma hdrstop
-#endif
-
-#if wxUSE_THREADS
-
-#include "wx/thread.h"
-
-#ifndef WX_PRECOMP
- #include "wx/intl.h"
- #include "wx/app.h"
- #include "wx/module.h"
-#endif
-
-#include "wx/apptrait.h"
-
-#include "wx/palmos/private.h"
-#include "wx/palmos/missing.h"
-
-// must have this symbol defined to get _beginthread/_endthread declarations
-#ifndef _MT
- #define _MT
-#endif
-
-#if defined(__BORLANDC__)
- #if !defined(__MT__)
- // I can't set -tWM in the IDE (anyone?) so have to do this
- #define __MT__
- #endif
-
- #if !defined(__MFC_COMPAT__)
- // Needed to know about _beginthreadex etc..
- #define __MFC_COMPAT__
- #endif
-#endif // BC++
-
-// define wxUSE_BEGIN_THREAD if the compiler has _beginthreadex() function
-// which should be used instead of Win32 ::CreateThread() if possible
-#if defined(__VISUALC__) || \
- (defined(__BORLANDC__) && (__BORLANDC__ >= 0x500)) || \
- (defined(__GNUG__) && defined(__MSVCRT__)) || \
- defined(__WATCOMC__) || defined(__MWERKS__)
-
-#ifndef __WXWINCE__
- #undef wxUSE_BEGIN_THREAD
- #define wxUSE_BEGIN_THREAD
-#endif
-
-#endif
-
-#ifdef wxUSE_BEGIN_THREAD
- // the return type of the thread function entry point
- typedef unsigned THREAD_RETVAL;
-
- // the calling convention of the thread function entry point
- #define THREAD_CALLCONV __stdcall
-#else
- // the settings for CreateThread()
- typedef DWORD THREAD_RETVAL;
- #define THREAD_CALLCONV WINAPI
-#endif
-
-// ----------------------------------------------------------------------------
-// constants
-// ----------------------------------------------------------------------------
-
-// the possible states of the thread ("=>" shows all possible transitions from
-// this state)
-enum wxThreadState
-{
- STATE_NEW, // didn't start execution yet (=> RUNNING)
- STATE_RUNNING, // thread is running (=> PAUSED, CANCELED)
- STATE_PAUSED, // thread is temporarily suspended (=> RUNNING)
- STATE_CANCELED, // thread should terminate a.s.a.p. (=> EXITED)
- STATE_EXITED // thread is terminating
-};
-
-// ----------------------------------------------------------------------------
-// this module globals
-// ----------------------------------------------------------------------------
-
-// TLS index of the slot where we store the pointer to the current thread
-static DWORD gs_tlsThisThread = 0xFFFFFFFF;
-
-// id of the main thread - the one which can call GUI functions without first
-// calling wxMutexGuiEnter()
-static DWORD gs_idMainThread = 0;
-
-// if it's false, some secondary thread is holding the GUI lock
-static bool gs_bGuiOwnedByMainThread = true;
-
-// critical section which controls access to all GUI functions: any secondary
-// thread (i.e. except the main one) must enter this crit section before doing
-// any GUI calls
-static wxCriticalSection *gs_critsectGui = NULL;
-
-// critical section which protects gs_nWaitingForGui variable
-static wxCriticalSection *gs_critsectWaitingForGui = NULL;
-
-// critical section which serializes WinThreadStart() and WaitForTerminate()
-// (this is a potential bottleneck, we use a single crit sect for all threads
-// in the system, but normally time spent inside it should be quite short)
-static wxCriticalSection *gs_critsectThreadDelete = NULL;
-
-// number of threads waiting for GUI in wxMutexGuiEnter()
-static size_t gs_nWaitingForGui = 0;
-
-// are we waiting for a thread termination?
-static bool gs_waitingForThread = false;
-
-// ============================================================================
-// Windows implementation of thread and related classes
-// ============================================================================
-
-// ----------------------------------------------------------------------------
-// wxCriticalSection
-// ----------------------------------------------------------------------------
-
-wxCriticalSection::wxCriticalSection()
-{
-}
-
-wxCriticalSection::~wxCriticalSection()
-{
-}
-
-void wxCriticalSection::Enter()
-{
-}
-
-bool wxCriticalSection::TryEnter()
-{
- return false;
-}
-
-void wxCriticalSection::Leave()
-{
-}
-
-// ----------------------------------------------------------------------------
-// wxMutex
-// ----------------------------------------------------------------------------
-
-class wxMutexInternal
-{
-public:
- wxMutexInternal(wxMutexType mutexType);
- ~wxMutexInternal();
-
- bool IsOk() const { return m_mutex != NULL; }
-
- wxMutexError Lock() { return LockTimeout(INFINITE); }
- wxMutexError TryLock() { return LockTimeout(0); }
- wxMutexError Unlock();
-
-private:
- wxMutexError LockTimeout(DWORD milliseconds);
-
- HANDLE m_mutex;
-
- wxDECLARE_NO_COPY_CLASS(wxMutexInternal);
-};
-
-// all mutexes are recursive under Win32 so we don't use mutexType
-wxMutexInternal::wxMutexInternal(wxMutexType WXUNUSED(mutexType))
-{
-}
-
-wxMutexInternal::~wxMutexInternal()
-{
-}
-
-wxMutexError wxMutexInternal::LockTimeout(DWORD milliseconds)
-{
- return wxMUTEX_NO_ERROR;
-}
-
-wxMutexError wxMutexInternal::Unlock()
-{
- return wxMUTEX_NO_ERROR;
-}
-
-// --------------------------------------------------------------------------
-// wxSemaphore
-// --------------------------------------------------------------------------
-
-// a trivial wrapper around Win32 semaphore
-class wxSemaphoreInternal
-{
-public:
- wxSemaphoreInternal(int initialcount, int maxcount);
- ~wxSemaphoreInternal();
-
- bool IsOk() const { return m_semaphore != NULL; }
-
- wxSemaError Wait() { return WaitTimeout(INFINITE); }
-
- wxSemaError TryWait()
- {
- wxSemaError rc = WaitTimeout(0);
- if ( rc == wxSEMA_TIMEOUT )
- rc = wxSEMA_BUSY;
-
- return rc;
- }
-
- wxSemaError WaitTimeout(unsigned long milliseconds);
-
- wxSemaError Post();
-
-private:
- HANDLE m_semaphore;
-
- wxDECLARE_NO_COPY_CLASS(wxSemaphoreInternal);
-};
-
-wxSemaphoreInternal::wxSemaphoreInternal(int initialcount, int maxcount)
-{
-}
-
-wxSemaphoreInternal::~wxSemaphoreInternal()
-{
-}
-
-wxSemaError wxSemaphoreInternal::WaitTimeout(unsigned long milliseconds)
-{
- return wxSEMA_NO_ERROR;
-}
-
-wxSemaError wxSemaphoreInternal::Post()
-{
- return wxSEMA_NO_ERROR;
-}
-
-// ----------------------------------------------------------------------------
-// wxThread implementation
-// ----------------------------------------------------------------------------
-
-// wxThreadInternal class
-// ----------------------
-
-class wxThreadInternal
-{
-public:
- wxThreadInternal(wxThread *thread)
- {
- m_thread = thread;
- m_hThread = 0;
- m_state = STATE_NEW;
- m_priority = WXTHREAD_DEFAULT_PRIORITY;
- m_nRef = 1;
- }
-
- ~wxThreadInternal()
- {
- Free();
- }
-
- void Free()
- {
- if ( m_hThread )
- {
- if ( !::CloseHandle(m_hThread) )
- {
- wxLogLastError(wxT("CloseHandle(thread)"));
- }
-
- m_hThread = 0;
- }
- }
-
- // create a new (suspended) thread (for the given thread object)
- bool Create(wxThread *thread, unsigned int stackSize);
-
- // wait for the thread to terminate, either by itself, or by asking it
- // (politely, this is not Kill()!) to do it
- wxThreadError WaitForTerminate(wxCriticalSection& cs,
- wxThread::ExitCode *pRc,
- wxThread *threadToDelete = NULL);
-
- // kill the thread unconditionally
- wxThreadError Kill();
-
- // suspend/resume/terminate
- bool Suspend();
- bool Resume();
- void Cancel() { m_state = STATE_CANCELED; }
-
- // thread state
- void SetState(wxThreadState state) { m_state = state; }
- wxThreadState GetState() const { return m_state; }
-
- // thread priority
- void SetPriority(unsigned int priority);
- unsigned int GetPriority() const { return m_priority; }
-
- // thread handle and id
- HANDLE GetHandle() const { return m_hThread; }
- DWORD GetId() const { return m_tid; }
-
- // thread function
- static THREAD_RETVAL THREAD_CALLCONV WinThreadStart(void *thread);
-
- void KeepAlive()
- {
- if ( m_thread->IsDetached() )
- ::InterlockedIncrement(&m_nRef);
- }
-
- void LetDie()
- {
- if ( m_thread->IsDetached() && !::InterlockedDecrement(&m_nRef) )
- delete m_thread;
- }
-
-private:
- // the thread we're associated with
- wxThread *m_thread;
-
- HANDLE m_hThread; // handle of the thread
- wxThreadState m_state; // state, see wxThreadState enum
- unsigned int m_priority; // thread priority in "wx" units
- DWORD m_tid; // thread id
-
- // number of threads which need this thread to remain alive, when the count
- // reaches 0 we kill the owning wxThread -- and die ourselves with it
- LONG m_nRef;
-
- wxDECLARE_NO_COPY_CLASS(wxThreadInternal);
-};
-
-// small class which keeps a thread alive during its lifetime
-class wxThreadKeepAlive
-{
-public:
- wxThreadKeepAlive(wxThreadInternal& thrImpl) : m_thrImpl(thrImpl)
- { m_thrImpl.KeepAlive(); }
- ~wxThreadKeepAlive()
- { m_thrImpl.LetDie(); }
-
-private:
- wxThreadInternal& m_thrImpl;
-};
-
-
-THREAD_RETVAL THREAD_CALLCONV wxThreadInternal::WinThreadStart(void *param)
-{
- THREAD_RETVAL rc;
-
- return rc;
-}
-
-void wxThreadInternal::SetPriority(unsigned int priority)
-{
-}
-
-bool wxThreadInternal::Create(wxThread *thread, unsigned int stackSize)
-{
- return false;
-}
-
-wxThreadError wxThreadInternal::Kill()
-{
- return wxTHREAD_NO_ERROR;
-}
-
-wxThreadError
-wxThreadInternal::WaitForTerminate(wxCriticalSection& cs,
- wxThread::ExitCode *pRc,
- wxThread *threadToDelete)
-{
- return wxTHREAD_NO_ERROR;
-}
-
-bool wxThreadInternal::Suspend()
-{
- return true;
-}
-
-bool wxThreadInternal::Resume()
-{
- return true;
-}
-
-// static functions
-// ----------------
-
-wxThread *wxThread::This()
-{
- return NULL;
-}
-
-bool wxThread::IsMain()
-{
- return true;
-}
-
-void wxThread::Yield()
-{
-}
-
-int wxThread::GetCPUCount()
-{
- return 1;
-}
-
-unsigned long wxThread::GetCurrentId()
-{
- return 0;
-}
-
-bool wxThread::SetConcurrency(size_t level)
-{
- return true;
-}
-
-// ctor and dtor
-// -------------
-
-wxThread::wxThread(wxThreadKind kind)
-{
-}
-
-wxThread::~wxThread()
-{
-}
-
-// create/start thread
-// -------------------
-
-wxThreadError wxThread::Create(unsigned int stackSize)
-{
- return wxTHREAD_NO_ERROR;
-}
-
-wxThreadError wxThread::Run()
-{
- return wxTHREAD_RUNNING;
-}
-
-// suspend/resume thread
-// ---------------------
-
-wxThreadError wxThread::Pause()
-{
- return wxTHREAD_NO_ERROR;
-}
-
-wxThreadError wxThread::Resume()
-{
- return wxTHREAD_NO_ERROR;
-}
-
-// stopping thread
-// ---------------
-
-wxThread::ExitCode wxThread::Wait(wxThreadWait WXUNUSED(waitMode))
-{
- return 0;
-}
-
-wxThreadError wxThread::Delete(ExitCode *pRc, wxThreadWait WXUNUSED(waitMode))
-{
- return wxTHREAD_NO_ERROR;
-}
-
-wxThreadError wxThread::Kill()
-{
- return wxTHREAD_NO_ERROR;
-}
-
-void wxThread::Exit(ExitCode status)
-{
-}
-
-// priority setting
-// ----------------
-
-void wxThread::SetPriority(unsigned int prio)
-{
-}
-
-unsigned int wxThread::GetPriority() const
-{
- return 1;
-}
-
-unsigned long wxThread::GetId() const
-{
- return 0;
-}
-
-bool wxThread::IsRunning() const
-{
- return true;
-}
-
-bool wxThread::IsAlive() const
-{
- return true;
-}
-
-bool wxThread::IsPaused() const
-{
- return false;
-}
-
-bool wxThread::TestDestroy()
-{
- return true;
-}
-
-// ----------------------------------------------------------------------------
-// Automatic initialization for thread module
-// ----------------------------------------------------------------------------
-
-class wxThreadModule : public wxModule
-{
-public:
- virtual bool OnInit();
- virtual void OnExit();
-
-private:
- DECLARE_DYNAMIC_CLASS(wxThreadModule)
-};
-
-IMPLEMENT_DYNAMIC_CLASS(wxThreadModule, wxModule)
-
-bool wxThreadModule::OnInit()
-{
- return true;
-}
-
-void wxThreadModule::OnExit()
-{
-}
-
-// ----------------------------------------------------------------------------
-// under Windows, these functions are implemented using a critical section and
-// not a mutex, so the names are a bit confusing
-// ----------------------------------------------------------------------------
-
-void wxMutexGuiEnterImpl()
-{
-}
-
-void wxMutexGuiLeaveImpl()
-{
-}
-
-void WXDLLIMPEXP_BASE wxMutexGuiLeaveOrEnter()
-{
-}
-
-bool WXDLLIMPEXP_BASE wxGuiOwnedByMainThread()
-{
- return true;
-}
-
-// wake up the main thread if it's in ::GetMessage()
-void WXDLLIMPEXP_BASE wxWakeUpMainThread()
-{
-}
-
-bool WXDLLIMPEXP_BASE wxIsWaitingForThread()
-{
- return false;
-}
-
-// ----------------------------------------------------------------------------
-// include common implementation code
-// ----------------------------------------------------------------------------
-
-#include "wx/thrimpl.cpp"
-
-#endif // wxUSE_THREADS
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/timer.cpp
-// Purpose: wxTimer implementation
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by:
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-// For compilers that support precompilation, includes "wx.h".
-#include "wx/wxprec.h"
-
-#ifdef __BORLANDC__
- #pragma hdrstop
-#endif
-
-#if wxUSE_TIMER
-
-#include "wx/palmos/private/timer.h"
-
-#ifndef WX_PRECOMP
- #include "wx/list.h"
- #include "wx/window.h"
- #include "wx/event.h"
- #include "wx/app.h"
- #include "wx/intl.h"
- #include "wx/log.h"
- #include "wx/hashmap.h"
-#endif
-
-// ----------------------------------------------------------------------------
-// private globals
-// ----------------------------------------------------------------------------
-
-// define a hash containing all the timers: it is indexed by timer id and
-// contains the corresponding timer
-WX_DECLARE_HASH_MAP(unsigned long, wxPalmOSTimerImpl*, wxIntegerHash, wxIntegerEqual,
- wxTimerMap);
-
-static wxTimerMap g_timerMap;
-
-// ----------------------------------------------------------------------------
-// private functions
-// ----------------------------------------------------------------------------
-
-// ============================================================================
-// implementation
-// ============================================================================
-
-// ----------------------------------------------------------------------------
-// wxTimer class
-// ----------------------------------------------------------------------------
-
-void wxPalmOSTimerImpl::Init()
-{
-}
-
-wxPalmOSTimerImpl::~wxPalmOSTimerImpl()
-{
-}
-
-bool wxPalmOSTimerImpl::Start(int milliseconds, bool oneShot)
-{
- return false;
-}
-
-void wxPalmOSTimerImpl::Stop()
-{
-}
-
-// ----------------------------------------------------------------------------
-// private functions
-// ----------------------------------------------------------------------------
-
-void wxProcessTimer(wxPalmOSTimerImpl& timer)
-{
-}
-
-#endif // wxUSE_TIMER
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/toolbar.cpp
-// Purpose: wxToolBar
-// 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
-
-#if wxUSE_TOOLBAR && wxUSE_TOOLBAR_NATIVE
-
-#include "wx/toolbar.h"
-
-#ifndef WX_PRECOMP
- #include "wx/dynarray.h"
- #include "wx/frame.h"
- #include "wx/log.h"
- #include "wx/intl.h"
- #include "wx/settings.h"
- #include "wx/bitmap.h"
- #include "wx/dcmemory.h"
- #include "wx/control.h"
- #include "wx/app.h" // for GetComCtl32Version
-#endif
-
-#include "wx/sysopt.h"
-
-#include "wx/palmos/private.h"
-
-#include "wx/palmos/wrapcctl.h"
-
-// ----------------------------------------------------------------------------
-// conditional compilation
-// ----------------------------------------------------------------------------
-
-// wxWidgets previously always considered that toolbar buttons have light grey
-// (0xc0c0c0) background and so ignored any bitmap masks - however, this
-// doesn't work with XPMs which then appear to have black background. To make
-// this work, we must respect the bitmap masks - which we do now. This should
-// be ok in any case, but to restore 100% compatible with the old version
-// behaviour, you can set this to 0.
-#define USE_BITMAP_MASKS 1
-
-// ----------------------------------------------------------------------------
-// constants
-// ----------------------------------------------------------------------------
-
-// ----------------------------------------------------------------------------
-// wxWin macros
-// ----------------------------------------------------------------------------
-
-IMPLEMENT_DYNAMIC_CLASS(wxToolBar, wxControl)
-
-/*
- TOOLBAR PROPERTIES
- tool
- bitmap
- bitmap2
- tooltip
- longhelp
- radio (bool)
- toggle (bool)
- separator
- style ( wxNO_BORDER | wxTB_HORIZONTAL)
- bitmapsize
- margins
- packing
- separation
-
- dontattachtoframe
-*/
-
-BEGIN_EVENT_TABLE(wxToolBar, wxToolBarBase)
- EVT_MOUSE_EVENTS(wxToolBar::OnMouseEvent)
-END_EVENT_TABLE()
-
-// ----------------------------------------------------------------------------
-// private classes
-// ----------------------------------------------------------------------------
-
-class wxToolBarTool : public wxToolBarToolBase
-{
-public:
- wxToolBarTool(wxToolBar *tbar,
- int id,
- const wxString& label,
- const wxBitmap& bmpNormal,
- const wxBitmap& bmpDisabled,
- wxItemKind kind,
- wxObject *clientData,
- const wxString& shortHelp,
- const wxString& longHelp)
- : wxToolBarToolBase(tbar, id, label, bmpNormal, bmpDisabled, kind,
- clientData, shortHelp, longHelp)
- {
- }
-
- wxToolBarTool(wxToolBar *tbar, wxControl *control, const wxString& label)
- : wxToolBarToolBase(tbar, control, label)
- {
- }
-
- virtual void SetLabel(const wxString& label)
- {
- }
-
- // set/get the number of separators which we use to cover the space used by
- // a control in the toolbar
- void SetSeparatorsCount(size_t count) { m_nSepCount = count; }
- size_t GetSeparatorsCount() const { return m_nSepCount; }
-
-private:
- size_t m_nSepCount;
-
- wxDECLARE_NO_COPY_CLASS(wxToolBarTool);
-};
-
-
-// ============================================================================
-// implementation
-// ============================================================================
-
-// ----------------------------------------------------------------------------
-// wxToolBarTool
-// ----------------------------------------------------------------------------
-
-wxToolBarToolBase *wxToolBar::CreateTool(int id,
- const wxString& label,
- const wxBitmap& bmpNormal,
- const wxBitmap& bmpDisabled,
- wxItemKind kind,
- wxObject *clientData,
- const wxString& shortHelp,
- const wxString& longHelp)
-{
- return new wxToolBarTool(this, id, label, bmpNormal, bmpDisabled, kind,
- clientData, shortHelp, longHelp);
-}
-
-wxToolBarToolBase *
-wxToolBar::CreateTool(wxControl *control, const wxString& label)
-{
- return new wxToolBarTool(this, control, label);
-}
-
-// ----------------------------------------------------------------------------
-// wxToolBar construction
-// ----------------------------------------------------------------------------
-
-void wxToolBar::Init()
-{
-}
-
-bool wxToolBar::Create(wxWindow *parent,
- wxWindowID id,
- const wxPoint& pos,
- const wxSize& size,
- long style,
- const wxString& name)
-{
- return false;
-}
-
-void wxToolBar::Recreate()
-{
-}
-
-wxToolBar::~wxToolBar()
-{
-}
-
-wxSize wxToolBar::DoGetBestSize() const
-{
- return wxSize(0,0);
-}
-
-// ----------------------------------------------------------------------------
-// adding/removing tools
-// ----------------------------------------------------------------------------
-
-bool wxToolBar::DoInsertTool(size_t WXUNUSED(pos), wxToolBarToolBase *tool)
-{
- return false;
-}
-
-bool wxToolBar::DoDeleteTool(size_t pos, wxToolBarToolBase *tool)
-{
- return false;
-}
-
-bool wxToolBar::Realize()
-{
- return false;
-}
-
-// ----------------------------------------------------------------------------
-// toolbar geometry
-// ----------------------------------------------------------------------------
-
-void wxToolBar::SetToolBitmapSize(const wxSize& size)
-{
-}
-
-void wxToolBar::SetRows(int nRows)
-{
-}
-
-// The button size is bigger than the bitmap size
-wxSize wxToolBar::GetToolSize() const
-{
- return wxSize(0,0);
-}
-
-static
-wxToolBarToolBase *GetItemSkippingDummySpacers(const wxToolBarToolsList& tools,
- size_t index )
-{
- return 0;
-}
-
-wxToolBarToolBase *wxToolBar::FindToolForPosition(wxCoord x, wxCoord y) const
-{
- return NULL;
-}
-
-void wxToolBar::UpdateSize()
-{
-}
-
-// ----------------------------------------------------------------------------
-// tool state
-// ----------------------------------------------------------------------------
-
-void wxToolBar::DoEnableTool(wxToolBarToolBase *tool, bool enable)
-{
-}
-
-void wxToolBar::DoToggleTool(wxToolBarToolBase *tool, bool toggle)
-{
-}
-
-void wxToolBar::DoSetToggle(wxToolBarToolBase *WXUNUSED(tool), bool WXUNUSED(toggle))
-{
-}
-
-// ----------------------------------------------------------------------------
-// event handlers
-// ----------------------------------------------------------------------------
-
-void wxToolBar::OnMouseEvent(wxMouseEvent& event)
-{
-}
-
-#endif // wxUSE_TOOLBAR
+++ /dev/null
-///////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/tooltip.cpp
-// Purpose: wxToolTip class implementation for Palm OS
-// 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
-// ----------------------------------------------------------------------------
-
-#include "wx/wxprec.h"
-
-#ifdef __BORLANDC__
- #pragma hdrstop
-#endif
-
-#ifndef WX_PRECOMP
- #include "wx/wx.h"
-#endif
-
-#if wxUSE_TOOLTIPS
-
-#include "wx/tooltip.h"
-#include "wx/palmos/private.h"
-
-#include "wx/palmos/wrapcctl.h"
-
-// VZ: normally, the trick with subclassing the tooltip control and processing
-// TTM_WINDOWFROMPOINT should work but, somehow, it doesn't. I leave the
-// code here for now (but it's not compiled) in case we need it later.
-//
-// For now I use an ugly workaround and process TTN_NEEDTEXT directly in
-// radio button wnd proc - fixing TTM_WINDOWFROMPOINT code would be nice
-// because it would then work for all controls, not only radioboxes but for
-// now I don't understand what's wrong with it...
-#define wxUSE_TTM_WINDOWFROMPOINT 0
-
-// ----------------------------------------------------------------------------
-// global variables
-// ----------------------------------------------------------------------------
-
-// the tooltip parent window
-WXHWND wxToolTip::ms_hwndTT = (WXHWND)NULL;
-
-#if wxUSE_TTM_WINDOWFROMPOINT
-
-// the tooltip window proc
-static WNDPROC gs_wndprocToolTip = (WNDPROC)NULL;
-
-#endif // wxUSE_TTM_WINDOWFROMPOINT
-
-// ----------------------------------------------------------------------------
-// private classes
-// ----------------------------------------------------------------------------
-
-// ----------------------------------------------------------------------------
-// private functions
-// ----------------------------------------------------------------------------
-
-// send a message to the tooltip control
-inline LRESULT SendTooltipMessage(WXHWND hwnd,
- UINT msg,
- WPARAM wParam,
- void *lParam)
-{
- return 0;
-}
-
-// send a message to all existing tooltip controls
-static void SendTooltipMessageToAll(WXHWND hwnd,
- UINT msg,
- WPARAM wParam,
- LPARAM lParam)
-{
-}
-
-// ============================================================================
-// implementation
-// ============================================================================
-
-// ----------------------------------------------------------------------------
-// static functions
-// ----------------------------------------------------------------------------
-
-void wxToolTip::Enable(bool flag)
-{
-}
-
-void wxToolTip::SetDelay(long milliseconds)
-{
-}
-
-void wxToolTip::SetAutoPop( long WXUNUSED(milliseconds) )
-{
-}
-
-void wxToolTip::SetReshow( long WXUNUSED(milliseconds) )
-{
-}
-
-// ---------------------------------------------------------------------------
-// implementation helpers
-// ---------------------------------------------------------------------------
-
-// create the tooltip ctrl for our parent frame if it doesn't exist yet
-WXHWND wxToolTip::GetToolTipCtrl()
-{
- return (WXHWND) 0;
-}
-
-void wxToolTip::RelayEvent(WXMSG *msg)
-{
-}
-
-// ----------------------------------------------------------------------------
-// ctor & dtor
-// ----------------------------------------------------------------------------
-
-IMPLEMENT_ABSTRACT_CLASS(wxToolTip, wxObject)
-
-wxToolTip::wxToolTip(const wxString &tip)
- : m_text(tip)
-{
-}
-
-wxToolTip::~wxToolTip()
-{
-}
-
-// ----------------------------------------------------------------------------
-// others
-// ----------------------------------------------------------------------------
-
-void wxToolTip::Remove()
-{
-}
-
-void wxToolTip::Add(WXHWND hWnd)
-{
-}
-
-void wxToolTip::SetWindow(wxWindow *win)
-{
-}
-
-void wxToolTip::SetTip(const wxString& tip)
-{
-}
-
-#endif // wxUSE_TOOLTIPS
+++ /dev/null
-///////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/toplevel.cpp
-// Purpose: implements wxTopLevelWindow for Palm OS
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by: Wlodzimierz ABX Skiba - more than minimal functionality
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne <wbo@freeshell.org>, Wlodzimierz Skiba
-// Licence: wxWindows licence
-///////////////////////////////////////////////////////////////////////////////
-
-// ============================================================================
-// declarations
-// ============================================================================
-
-// ----------------------------------------------------------------------------
-// headers
-// ----------------------------------------------------------------------------
-
-// For compilers that support precompilation, includes "wx.h".
-#include "wx/wxprec.h"
-
-#ifdef __BORLANDC__
- #pragma hdrstop
-#endif
-
-#include "wx/toplevel.h"
-
-#ifndef WX_PRECOMP
- #include "wx/app.h"
- #include "wx/dialog.h"
- #include "wx/string.h"
- #include "wx/log.h"
- #include "wx/intl.h"
- #include "wx/frame.h"
- #include "wx/containr.h" // wxSetFocusToChild()
- #include "wx/button.h"
- #include "wx/checkbox.h"
- #include "wx/radiobut.h"
- #include "wx/slider.h"
- #include "wx/module.h"
-#endif //WX_PRECOMP
-
-#include "wx/display.h"
-
-// controls for sending select event
-#include "wx/tglbtn.h"
-#include "wx/datectrl.h"
-
-#include <Window.h>
-#include <Form.h>
-
-// ----------------------------------------------------------------------------
-// globals
-// ----------------------------------------------------------------------------
-
-// the name of the default wxWidgets class
-extern const wxChar *wxCanvasClassName;
-
-// Pointer to the currently active frame for the form event handler.
-wxTopLevelWindowPalm* ActiveParentFrame;
-
-static Boolean FrameFormHandleEvent(EventType *event);
-
-// ============================================================================
-// wxTopLevelWindowPalm implementation
-// ============================================================================
-
-BEGIN_EVENT_TABLE(wxTopLevelWindowPalm, wxTopLevelWindowBase)
- EVT_ACTIVATE(wxTopLevelWindowPalm::OnActivate)
-END_EVENT_TABLE()
-
-// ----------------------------------------------------------------------------
-// wxTopLevelWindowPalm creation
-// ----------------------------------------------------------------------------
-
-void wxTopLevelWindowPalm::Init()
-{
-}
-
-WXDWORD wxTopLevelWindowPalm::PalmGetStyle(long style, WXDWORD *exflags) const
-{
- return 0;
-}
-
-bool wxTopLevelWindowPalm::Create(wxWindow *parent,
- wxWindowID id,
- const wxString& title,
- const wxPoint& pos,
- const wxSize& size,
- long style,
- const wxString& name)
-{
- // this is a check for limitation mentioned before FrameFormHandleEvent() code
- if(wxTopLevelWindows.GetCount() > 0) {
- return false;
- }
-
- ActiveParentFrame=NULL;
-
- wxTopLevelWindows.Append(this);
-
- if ( parent ) {
- parent->AddChild(this);
- }
-
- SetId( id == wxID_ANY ? NewControlId() : id );
-
-#ifdef __WXPALMOS6__
- WinConstraintsType constraints;
- memset(&constraints, 0, sizeof(WinConstraintsType));
- // position
- constraints.x_pos = ( pos.x == wxDefaultCoord ) ? winUndefConstraint : pos.x;
- constraints.y_pos = ( pos.y == wxDefaultCoord ) ? winUndefConstraint : pos.y;
- // size
- constraints.x_min = winUndefConstraint;
- constraints.x_max = winMaxConstraint;
- constraints.x_pref = ( size.x == wxDefaultCoord ) ? winUndefConstraint : size.x;
- constraints.y_min = winUndefConstraint;
- constraints.y_max = winMaxConstraint;
- constraints.y_pref = ( size.y == wxDefaultCoord ) ? winUndefConstraint : size.y;
- FrameForm = FrmNewFormWithConstraints(
- GetId(),
- title.c_str(),
- winFlagBackBuffer,
- &constraints,
- 0,
- NULL,
- 0,
- NULL,
- 0
- );
-#else // __WXPALMOS5__
-#define winUndefConstraint 0xFFFF
-#define winMaxConstraint 288
- // FormType *FrmNewForm (UInt16 formID, const Char *titleStrP, Coord x, Coord y, Coord width, Coord height,
- // Boolean modal, UInt16 defaultButton, UInt16 helpRscID, UInt16 menuRscID);
- FrameForm = FrmNewForm (GetId(), title.c_str(),
- (( pos.x == wxDefaultCoord ) ? winUndefConstraint : pos.x),
- (( pos.y == wxDefaultCoord ) ? winUndefConstraint : pos.y),
- winMaxConstraint, winMaxConstraint,
- false, 0, 0, 0);
-#endif
- if(NULL == FrameForm) {
- return false;
- }
-
- FrmSetEventHandler((FormType *)FrameForm, FrameFormHandleEvent);
-
- FrmSetActiveForm((FormType *)FrameForm);
-
- ActiveParentFrame=this;
-
- return true;
-}
-
-wxTopLevelWindowPalm::~wxTopLevelWindowPalm()
-{
-}
-
-// ---------------------------------------------------------------------------
-// implementation
-// ---------------------------------------------------------------------------
-
-WXWINHANDLE wxTopLevelWindowPalm::GetWinHandle() const
-{
- FormType *form = (FormType *)GetForm();
- if(form)
- return FrmGetWindowHandle(form);
- return NULL;
-}
-
-// ----------------------------------------------------------------------------
-// wxTopLevelWindowPalm showing
-// ----------------------------------------------------------------------------
-
-void wxTopLevelWindowPalm::DoShowWindow(int nShowCmd)
-{
-}
-
-bool wxTopLevelWindowPalm::Show(bool show)
-{
- if (true != show) {
- return true;
- }
- FrmDrawForm((FormType *)FrameForm);
-
- wxPaintEvent event(m_windowId);
- event.SetEventObject(this);
- HandleWindowEvent(event);
-
- return true;
-}
-
-// ----------------------------------------------------------------------------
-// wxTopLevelWindowPalm maximize/minimize
-// ----------------------------------------------------------------------------
-
-void wxTopLevelWindowPalm::Maximize(bool maximize)
-{
-}
-
-bool wxTopLevelWindowPalm::IsMaximized() const
-{
- return false;
-}
-
-void wxTopLevelWindowPalm::Iconize(bool iconize)
-{
-}
-
-bool wxTopLevelWindowPalm::IsIconized() const
-{
- return false;
-}
-
-void wxTopLevelWindowPalm::Restore()
-{
-}
-
-void wxTopLevelWindowPalm::DoGetSize( int *width, int *height ) const
-{
- RectangleType rect;
- FrmGetFormBounds( (FormType *)GetForm() , &rect );
- if(width)
- *width = rect.extent.x;
- if(height)
- *height = rect.extent.y;
-}
-
-// ----------------------------------------------------------------------------
-// wxTopLevelWindowPalm fullscreen
-// ----------------------------------------------------------------------------
-
-bool wxTopLevelWindowPalm::ShowFullScreen(bool show, long style)
-{
- return false;
-}
-
-// ----------------------------------------------------------------------------
-// wxTopLevelWindowPalm misc
-// ----------------------------------------------------------------------------
-
-void wxTopLevelWindowPalm::SetTitle( const wxString& WXUNUSED(title))
-{
-}
-
-wxString wxTopLevelWindowPalm::GetTitle() const
-{
- return wxEmptyString;
-}
-
-void wxTopLevelWindowPalm::SetIcons(const wxIconBundle& icons)
-{
-}
-
-bool wxTopLevelWindowPalm::EnableCloseButton(bool enable)
-{
- return false;
-}
-
-WXFORMPTR wxTopLevelWindowPalm::GetForm() const
-{
- return FrmGetActiveForm();
-}
-
-bool wxTopLevelWindowPalm::SetShape(const wxRegion& region)
-{
- return false;
-}
-
-// ----------------------------------------------------------------------------
-// wxTopLevelWindow native event handling
-// ----------------------------------------------------------------------------
-
-bool wxTopLevelWindowPalm::HandleControlSelect(WXEVENTPTR event)
-{
- const EventType *palmEvent = (EventType *)event;
- const int id = palmEvent->data.ctlSelect.controlID;
-
- wxWindow* win = FindWindowById(id,this);
- if(win==NULL)
- return false;
-
-#if wxUSE_BUTTON
- wxButton* button = wxDynamicCast(win,wxButton);
- if(button)
- return button->SendClickEvent();
-#endif // wxUSE_BUTTON
-
-#if wxUSE_CHECKBOX
- wxCheckBox* checkbox = wxDynamicCast(win,wxCheckBox);
- if(checkbox)
- return checkbox->SendClickEvent();
-#endif // wxUSE_CHECKBOX
-
-#if wxUSE_TOGGLEBTN
- wxToggleButton* toggle = wxDynamicCast(win,wxToggleButton);
- if(toggle)
- return toggle->SendClickEvent();
-#endif // wxUSE_TOGGLEBTN
-
-#if wxUSE_RADIOBTN
- wxRadioButton* radio = wxDynamicCast(win,wxRadioButton);
- if(radio)
- return radio->SendClickEvent();
-#endif // wxUSE_RADIOBTN
-
-#if wxUSE_DATEPICKCTRL
- wxDatePickerCtrl* datepicker = wxDynamicCast(win,wxDatePickerCtrl);
- if(datepicker)
- return datepicker->SendClickEvent();
-#endif // wxUSE_DATEPICKCTRL
-
-#if wxUSE_SLIDER
- wxSlider* slider = wxDynamicCast(win,wxSlider);
- if(slider)
- return slider->SendUpdatedEvent();
-#endif // wxUSE_SLIDER
-
- return false;
-}
-
-bool wxTopLevelWindowPalm::HandleControlRepeat(WXEVENTPTR event)
-{
- const EventType *palmEvent = (EventType *)event;
- const int id = palmEvent->data.ctlRepeat.controlID;
-
- wxWindow* win = FindWindowById(id, this);
- if(win==NULL)
- return false;
-
-#if wxUSE_SLIDER
- wxSlider* slider = wxDynamicCast(win,wxSlider);
- if(slider)
- return slider->SendScrollEvent(event);
-#endif // wxUSE_SLIDER
-
- return false;
-}
-
-bool wxTopLevelWindowPalm::HandleSize(WXEVENTPTR event)
-{
-#ifdef __WXPALMOS6__
- const EventType *palmEvent = (EventType *)event;
- wxSize newSize(palmEvent->data.winResized.newBounds.extent.x,
- palmEvent->data.winResized.newBounds.extent.y);
- wxSizeEvent eventWx(newSize,GetId());
- eventWx.SetEventObject(this);
- return HandleWindowEvent(eventWx);
-#else // __WXPALMOS5__
- return false;
-#endif
-
-}
-
-void wxTopLevelWindowPalm::OnActivate(wxActivateEvent& event)
-{
-}
-
-/* Palm OS Event handler for the window
- *
- * This function *must* be located outside of the wxTopLevelWindow class because
- * the Palm OS API expects a standalone C function as a callback. You cannot
- * pass a pointer to a member function of a C++ class as a callback because the
- * prototypes don't match. (A member function has a hidden "this" pointer as
- * its first parameter).
- *
- * This event handler uses a global pointer to the current wxFrame to process
- * the events generated by the Palm OS form API. I know this is ugly, but right
- * now I can't think of any other way to deal with this problem. If someone
- * finds a better solution, please let me know. My email address is
- * wbo@freeshell.org
- */
-static Boolean FrameFormHandleEvent(EventType *event)
-{
- // frame and tlw point to the same object but they are for convenience
- // of calling proper structure withiout later dynamic typcasting
- wxFrame* frame = wxDynamicCast(ActiveParentFrame,wxFrame);
- wxTopLevelWindowPalm* tlw = ActiveParentFrame;
- Boolean handled = false;
-
- switch (event->eType) {
- case ctlSelectEvent:
- handled = tlw->HandleControlSelect(event);
- break;
- case ctlRepeatEvent:
- handled = tlw->HandleControlRepeat(event);
- break;
-#ifdef __WXPALMOS6__
- case winResizedEvent:
- handled = tlw->HandleSize(event);
- break;
-#endif // __WXPALMOS6__
-#if wxUSE_MENUS_NATIVE
- case menuOpenEvent:
- handled = frame->HandleMenuOpen();
- break;
- case menuEvent:
- handled = frame->HandleMenuSelect(event);
- break;
-#endif
- default:
- break;
- }
-
- return handled;
-}
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/treectrl.cpp
-// Purpose: wxTreeCtrl
-// 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
-
-#if wxUSE_TREECTRL
-
-#include "wx/treectrl.h"
-
-#ifndef WX_PRECOMP
- #include "wx/dynarray.h"
- #include "wx/log.h"
- #include "wx/app.h"
- #include "wx/settings.h"
-#endif
-
-#include "wx/imaglist.h"
-
-// macros to hide the cast ugliness
-// --------------------------------
-
-// ptr is the real item id, i.e. wxTreeItemId::m_pItem
-#define HITEM_PTR(ptr) (HTREEITEM)(ptr)
-
-// item here is a wxTreeItemId
-#define HITEM(item) HITEM_PTR((item).m_pItem)
-
-// the native control doesn't support multiple selections under MSW and we
-// have 2 ways to emulate them: either using TVS_CHECKBOXES style and let
-// checkboxes be the selection status (checked == selected) or by really
-// emulating everything, i.e. intercepting mouse and key events &c. The first
-// approach is much easier but doesn't work with comctl32.dll < 4.71 and also
-// looks quite ugly.
-#define wxUSE_CHECKBOXES_IN_MULTI_SEL_TREE 0
-
-// ----------------------------------------------------------------------------
-// private functions
-// ----------------------------------------------------------------------------
-
-// ----------------------------------------------------------------------------
-// private classes
-// ----------------------------------------------------------------------------
-
-// ----------------------------------------------------------------------------
-// wxWin macros
-// ----------------------------------------------------------------------------
-
-// ----------------------------------------------------------------------------
-// constants
-// ----------------------------------------------------------------------------
-
-// indices in gs_expandEvents table below
-enum
-{
- IDX_COLLAPSE,
- IDX_EXPAND,
- IDX_WHAT_MAX
-};
-
-enum
-{
- IDX_DONE,
- IDX_DOING,
- IDX_HOW_MAX
-};
-
-// handy table for sending events - it has to be initialized during run-time
-// now so can't be const any more
-static /* const */ wxEventType gs_expandEvents[IDX_WHAT_MAX][IDX_HOW_MAX];
-
-/*
- but logically it's a const table with the following entries:
-=
-{
- { wxEVT_COMMAND_TREE_ITEM_COLLAPSED, wxEVT_COMMAND_TREE_ITEM_COLLAPSING },
- { wxEVT_COMMAND_TREE_ITEM_EXPANDED, wxEVT_COMMAND_TREE_ITEM_EXPANDING }
-};
-*/
-
-// ============================================================================
-// implementation
-// ============================================================================
-
-// ----------------------------------------------------------------------------
-// construction and destruction
-// ----------------------------------------------------------------------------
-
-void wxTreeCtrl::Init()
-{
-}
-
-bool wxTreeCtrl::Create(wxWindow *parent,
- wxWindowID id,
- const wxPoint& pos,
- const wxSize& size,
- long style,
- const wxValidator& validator,
- const wxString& name)
-{
- return false;
-}
-
-wxTreeCtrl::~wxTreeCtrl()
-{
-}
-
-// ----------------------------------------------------------------------------
-// accessors
-// ----------------------------------------------------------------------------
-
-/* static */ wxVisualAttributes
-wxTreeCtrl::GetClassDefaultAttributes(wxWindowVariant variant)
-{
- wxVisualAttributes attrs;
-
- return attrs;
-}
-
-
-// simple wrappers which add error checking in debug mode
-
-bool wxTreeCtrl::DoGetItem(wxTreeViewItem* tvItem) const
-{
- return false;
-}
-
-void wxTreeCtrl::DoSetItem(wxTreeViewItem* tvItem)
-{
-}
-
-unsigned int wxTreeCtrl::GetCount() const
-{
- // TODO
- return 0;
-}
-
-unsigned int wxTreeCtrl::GetIndent() const
-{
- return 0;
-}
-
-void wxTreeCtrl::SetIndent(unsigned int indent)
-{
-}
-
-wxImageList *wxTreeCtrl::GetImageList() const
-{
- return m_imageListNormal;
-}
-
-wxImageList *wxTreeCtrl::GetStateImageList() const
-{
- return m_imageListState;
-}
-
-void wxTreeCtrl::SetAnyImageList(wxImageList *imageList, int which)
-{
-}
-
-void wxTreeCtrl::SetImageList(wxImageList *imageList)
-{
-}
-
-void wxTreeCtrl::SetStateImageList(wxImageList *imageList)
-{
-}
-
-void wxTreeCtrl::AssignImageList(wxImageList *imageList)
-{
-}
-
-void wxTreeCtrl::AssignStateImageList(wxImageList *imageList)
-{
-}
-
-size_t wxTreeCtrl::GetChildrenCount(const wxTreeItemId& item,
- bool recursively) const
-{
- return 0;
-}
-
-// ----------------------------------------------------------------------------
-// control colours
-// ----------------------------------------------------------------------------
-
-bool wxTreeCtrl::SetBackgroundColour(const wxColour &colour)
-{
- return false;
-}
-
-bool wxTreeCtrl::SetForegroundColour(const wxColour &colour)
-{
- return false;
-}
-
-// ----------------------------------------------------------------------------
-// Item access
-// ----------------------------------------------------------------------------
-
-wxString wxTreeCtrl::GetItemText(const wxTreeItemId& item) const
-{
- return wxString(wxT(""));
-}
-
-void wxTreeCtrl::SetItemText(const wxTreeItemId& item, const wxString& text)
-{
-}
-
-int wxTreeCtrl::DoGetItemImageFromData(const wxTreeItemId& item,
- wxTreeItemIcon which) const
-{
- return -1;
-}
-
-void wxTreeCtrl::DoSetItemImageFromData(const wxTreeItemId& item,
- int image,
- wxTreeItemIcon which) const
-{
-}
-
-void wxTreeCtrl::DoSetItemImages(const wxTreeItemId& item,
- int image,
- int imageSel)
-{
-}
-
-int wxTreeCtrl::GetItemImage(const wxTreeItemId& item,
- wxTreeItemIcon which) const
-{
- return -1;
-}
-
-void wxTreeCtrl::SetItemImage(const wxTreeItemId& item, int image,
- wxTreeItemIcon which)
-{
-}
-
-wxTreeItemData *wxTreeCtrl::GetItemData(const wxTreeItemId& item) const
-{
- return NULL;
-}
-
-void wxTreeCtrl::SetItemData(const wxTreeItemId& item, wxTreeItemData *data)
-{
-}
-
-void wxTreeCtrl::SetIndirectItemData(const wxTreeItemId& item,
- wxTreeItemIndirectData *data)
-{
-}
-
-bool wxTreeCtrl::HasIndirectData(const wxTreeItemId& item) const
-{
- return false;
-}
-
-void wxTreeCtrl::SetItemHasChildren(const wxTreeItemId& item, bool has)
-{
-}
-
-void wxTreeCtrl::SetItemBold(const wxTreeItemId& item, bool bold)
-{
-}
-
-void wxTreeCtrl::SetItemDropHighlight(const wxTreeItemId& item, bool highlight)
-{
-}
-
-void wxTreeCtrl::RefreshItem(const wxTreeItemId& item)
-{
-}
-
-wxColour wxTreeCtrl::GetItemTextColour(const wxTreeItemId& item) const
-{
- return wxNullColour;
-}
-
-wxColour wxTreeCtrl::GetItemBackgroundColour(const wxTreeItemId& item) const
-{
- return wxNullColour;
-}
-
-wxFont wxTreeCtrl::GetItemFont(const wxTreeItemId& item) const
-{
- return wxNullFont;
-}
-
-void wxTreeCtrl::SetItemTextColour(const wxTreeItemId& item,
- const wxColour& col)
-{
-}
-
-void wxTreeCtrl::SetItemBackgroundColour(const wxTreeItemId& item,
- const wxColour& col)
-{
-}
-
-void wxTreeCtrl::SetItemFont(const wxTreeItemId& item, const wxFont& font)
-{
-}
-
-// ----------------------------------------------------------------------------
-// Item status
-// ----------------------------------------------------------------------------
-
-bool wxTreeCtrl::IsVisible(const wxTreeItemId& item) const
-{
- return false;
-}
-
-bool wxTreeCtrl::ItemHasChildren(const wxTreeItemId& item) const
-{
- return false;
-}
-
-bool wxTreeCtrl::IsExpanded(const wxTreeItemId& item) const
-{
- return false;
-}
-
-bool wxTreeCtrl::IsSelected(const wxTreeItemId& item) const
-{
- return false;
-}
-
-bool wxTreeCtrl::IsBold(const wxTreeItemId& item) const
-{
- return false;
-}
-
-// ----------------------------------------------------------------------------
-// navigation
-// ----------------------------------------------------------------------------
-
-wxTreeItemId wxTreeCtrl::GetRootItem() const
-{
- return wxTreeItemId();
-}
-
-wxTreeItemId wxTreeCtrl::GetSelection() const
-{
- return 0;
-}
-
-wxTreeItemId wxTreeCtrl::GetItemParent(const wxTreeItemId& item) const
-{
- return 0;
-}
-
-wxTreeItemId wxTreeCtrl::GetFirstChild(const wxTreeItemId& item,
- wxTreeItemIdValue& cookie) const
-{
- return 0;
-}
-
-wxTreeItemId wxTreeCtrl::GetNextChild(const wxTreeItemId& WXUNUSED(item),
- wxTreeItemIdValue& cookie) const
-{
- return 0;
-}
-
-wxTreeItemId wxTreeCtrl::GetLastChild(const wxTreeItemId& item) const
-{
- return 0;
-}
-
-wxTreeItemId wxTreeCtrl::GetNextSibling(const wxTreeItemId& item) const
-{
- return 0;
-}
-
-wxTreeItemId wxTreeCtrl::GetPrevSibling(const wxTreeItemId& item) const
-{
- return 0;
-}
-
-wxTreeItemId wxTreeCtrl::GetFirstVisibleItem() const
-{
- return 0;
-}
-
-wxTreeItemId wxTreeCtrl::GetNextVisible(const wxTreeItemId& item) const
-{
- return 0;
-}
-
-wxTreeItemId wxTreeCtrl::GetPrevVisible(const wxTreeItemId& item) const
-{
- return 0;
-}
-
-// ----------------------------------------------------------------------------
-// multiple selections emulation
-// ----------------------------------------------------------------------------
-
-bool wxTreeCtrl::IsItemChecked(const wxTreeItemId& item) const
-{
- return false;
-}
-
-void wxTreeCtrl::SetItemCheck(const wxTreeItemId& item, bool check)
-{
-}
-
-size_t wxTreeCtrl::GetSelections(wxArrayTreeItemIds& selections) const
-{
- return 0;
-}
-
-// ----------------------------------------------------------------------------
-// Usual operations
-// ----------------------------------------------------------------------------
-
-wxTreeItemId wxTreeCtrl::DoInsertItem(const wxTreeItemId& parent,
- wxTreeItemId hInsertAfter,
- const wxString& text,
- int image, int selectedImage,
- wxTreeItemData *data)
-{
- return 0;
-}
-
-wxTreeItemId wxTreeCtrl::AddRoot(const wxString& text,
- int image, int selectedImage,
- wxTreeItemData *data)
-{
- return 0;
-}
-
-wxTreeItemId wxTreeCtrl::PrependItem(const wxTreeItemId& parent,
- const wxString& text,
- int image, int selectedImage,
- wxTreeItemData *data)
-{
- return 0;
-}
-
-wxTreeItemId wxTreeCtrl::InsertItem(const wxTreeItemId& parent,
- const wxTreeItemId& idPrevious,
- const wxString& text,
- int image, int selectedImage,
- wxTreeItemData *data)
-{
- return 0;
-}
-
-wxTreeItemId wxTreeCtrl::InsertItem(const wxTreeItemId& parent,
- size_t index,
- const wxString& text,
- int image, int selectedImage,
- wxTreeItemData *data)
-{
- return 0;
-}
-
-wxTreeItemId wxTreeCtrl::AppendItem(const wxTreeItemId& parent,
- const wxString& text,
- int image, int selectedImage,
- wxTreeItemData *data)
-{
- return 0;
-}
-
-void wxTreeCtrl::Delete(const wxTreeItemId& item)
-{
-}
-
-// delete all children (but don't delete the item itself)
-void wxTreeCtrl::DeleteChildren(const wxTreeItemId& item)
-{
-}
-
-void wxTreeCtrl::DeleteAllItems()
-{
-}
-
-void wxTreeCtrl::DoExpand(const wxTreeItemId& item, int flag)
-{
-}
-
-void wxTreeCtrl::Expand(const wxTreeItemId& item)
-{
-}
-
-void wxTreeCtrl::Collapse(const wxTreeItemId& item)
-{
-}
-
-void wxTreeCtrl::CollapseAndReset(const wxTreeItemId& item)
-{
-}
-
-void wxTreeCtrl::Toggle(const wxTreeItemId& item)
-{
-}
-
-void wxTreeCtrl::Unselect()
-{
-}
-
-void wxTreeCtrl::UnselectAll()
-{
-}
-
-void wxTreeCtrl::SelectItem(const wxTreeItemId& item, bool select)
-{
-}
-
-void wxTreeCtrl::UnselectItem(const wxTreeItemId& item)
-{
-}
-
-void wxTreeCtrl::ToggleItemSelection(const wxTreeItemId& item)
-{
-}
-
-void wxTreeCtrl::EnsureVisible(const wxTreeItemId& item)
-{
-}
-
-void wxTreeCtrl::ScrollTo(const wxTreeItemId& item)
-{
-}
-
-wxTextCtrl *wxTreeCtrl::GetEditControl() const
-{
- return NULL;
-}
-
-void wxTreeCtrl::DeleteTextCtrl()
-{
-}
-
-wxTextCtrl* wxTreeCtrl::EditLabel(const wxTreeItemId& item,
- wxClassInfo* textControlClass)
-{
- return NULL;
-}
-
-// End label editing, optionally cancelling the edit
-void wxTreeCtrl::EndEditLabel(const wxTreeItemId& WXUNUSED(item), bool discardChanges)
-{
-}
-
-wxTreeItemId wxTreeCtrl::HitTest(const wxPoint& point, int& flags)
-{
- return 0;
-}
-
-bool wxTreeCtrl::GetBoundingRect(const wxTreeItemId& item,
- wxRect& rect,
- bool textOnly) const
-{
- return false;
-}
-
-// ----------------------------------------------------------------------------
-// sorting stuff
-// ----------------------------------------------------------------------------
-
-/*
-// this is just a tiny namespace which is friend to wxTreeCtrl and so can use
-// functions such as IsDataIndirect()
-class wxTreeSortHelper
-{
-public:
- static int CALLBACK Compare(LPARAM data1, LPARAM data2, LPARAM tree);
-
-private:
- static wxTreeItemId GetIdFromData(LPARAM lParam)
- {
- return ((wxTreeItemParam*)lParam)->GetItem();
- }
-};
-
-int CALLBACK wxTreeSortHelper::Compare(LPARAM pItem1,
- LPARAM pItem2,
- LPARAM htree)
-{
- wxCHECK_MSG( pItem1 && pItem2, 0,
- wxT("sorting tree without data doesn't make sense") );
-
- wxTreeCtrl *tree = (wxTreeCtrl *)htree;
-
- return tree->OnCompareItems(GetIdFromData(tree, pItem1),
- GetIdFromData(tree, pItem2));
-}
-*/
-int wxTreeCtrl::OnCompareItems(const wxTreeItemId& item1,
- const wxTreeItemId& item2)
-{
- return wxStrcmp(GetItemText(item1), GetItemText(item2));
-}
-
-void wxTreeCtrl::SortChildren(const wxTreeItemId& item)
-{
- wxCHECK_RET( item.IsOk(), wxT("invalid tree item") );
-
-}
-
-// ----------------------------------------------------------------------------
-// State control.
-// ----------------------------------------------------------------------------
-
-// why do they define INDEXTOSTATEIMAGEMASK but not the inverse?
-#define STATEIMAGEMASKTOINDEX(state) (((state) & TVIS_STATEIMAGEMASK) >> 12)
-
-void wxTreeCtrl::SetState(const wxTreeItemId& node, int state)
-{
-}
-
-int wxTreeCtrl::GetState(const wxTreeItemId& node)
-{
- return 0;
-}
-
-#endif // wxUSE_TREECTRL
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/utils.cpp
-// Purpose: Various utilities
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by: Wlodzimierz ABX Skiba - real functionality
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne, Wlodzimierz Skiba
-// 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/utils.h"
- #include "wx/app.h"
- #include "wx/intl.h"
- #include "wx/log.h"
- #include "wx/timer.h"
-#endif //WX_PRECOMP
-
-#include "wx/apptrait.h"
-#include "wx/dynload.h"
-#include "wx/confbase.h"
-#include "wx/power.h"
-
-#include <PalmTypes.h>
-#include <MemoryMgr.h>
-#include <DLServer.h>
-#include <SoundMgr.h>
-#include <SystemMgr.h> // SysDoze()...
-#include <SysUtils.h>
-
-#ifdef __WXPALMOS6__
-extern void SysReset (void);
-extern UInt32 SysTaskID (void);
-#endif
-
-// ============================================================================
-// implementation
-// ============================================================================
-
-// ----------------------------------------------------------------------------
-// get host name and related
-// ----------------------------------------------------------------------------
-
-// Get hostname only (without domain name)
-bool wxGetHostName(wxChar *buf, int maxSize)
-{
- return false;
-}
-
-// get full hostname (with domain name if possible)
-bool wxGetFullHostName(wxChar *buf, int maxSize)
-{
- return false;
-}
-
-// Get user ID e.g. jacs
-bool wxGetUserId(wxChar *buf, int maxSize)
-{
- return wxGetUserName(buf, maxSize);
-}
-
-// Get user name e.g. Julian Smart
-bool wxGetUserName(wxChar *buf, int maxSize)
-{
- *buf = wxT('\0');
-
- // buffer allocation
- MemHandle handle = MemHandleNew(maxSize-1);
- if( handle == NULL )
- return false;
-
- // lock the buffer
- char *id = (char *)MemHandleLock(handle);
- if( id == NULL )
- return false;
-
- // get user's name
- if( DlkGetSyncInfo(NULL, NULL, NULL, id, NULL, NULL) != errNone )
- {
- MemPtrUnlock(id);
- return false;
- }
-
- wxStrlcpy(buf, wxSafeConvertMB2WX(id), maxSize);
-
- // free the buffer
- MemPtrUnlock(id);
-
- return true;
-}
-
-const wxChar* wxGetHomeDir(wxString *pstr)
-{
- if (NULL != pstr) {
- *pstr = "/palmos";
- }
- return wxT("/palmos");
-}
-
-wxString wxGetUserHome(const wxString& WXUNUSED(user))
-{
- return wxString("/palmos");
-}
-
-bool wxGetDiskSpace(const wxString& path, wxDiskspaceSize_t *pTotal, wxDiskspaceSize_t *pFree)
-{
- return false;
-}
-
-// ----------------------------------------------------------------------------
-// env vars
-// ----------------------------------------------------------------------------
-
-bool wxGetEnv(const wxString& var, wxString *value)
-{
- return false;
-}
-
-#if ! WXWIN_COMPATIBILITY_2_8
-bool wxSetEnv(const wxString& var, const wxChar *value)
-{
- return false;
-}
-#endif // ! WXWIN_COMPATIBILITY_2_8
-
-bool wxUnsetEnv(const wxString& var)
-{
- return false;
-}
-
-// ----------------------------------------------------------------------------
-// process management
-// ----------------------------------------------------------------------------
-
-int wxKill(long pid, wxSignal sig, wxKillError *krc, int flags)
-{
- return 0;
-}
-
-// Execute a program in an Interactive Shell
-bool wxShell(const wxString& command)
-{
- return false;
-}
-
-// Shutdown or reboot the PC
-bool wxShutdown(wxShutdownFlags wFlags)
-{
- switch (wFlags) {
- case wxSHUTDOWN_POWEROFF:
- // TODO: turn off lamps
-#ifdef __WXPALMOS6__
- //extern void SysReset (void);
- //extern UInt32 SysTaskID (void);
- #define SysReset()
- #define SysTaskID() (0)
- SysSleep ();
-#else
- //SysSleep (false, false);// undocument API
- SysDoze (true);
-#endif
- break;
- case wxSHUTDOWN_REBOOT:
- SysReset ();
- break;
- }
- return false;
-}
-
-// ----------------------------------------------------------------------------
-// power management
-// ----------------------------------------------------------------------------
-
-wxPowerType wxGetPowerType()
-{
- //SysBatteryKind kind;
- //POS_SysBatteryInfo (false, NULL, NULL, NULL, NULL, NULL, &kind, NULL);
- //return wxPOWER_SOCKET;
- return wxPOWER_BATTERY;
-}
-
-wxBatteryState wxGetBatteryState()
-{
- //#include "SystemMgr.h"
- UInt8 percent;
- POS_SysBatteryInfo (false, NULL, NULL, NULL, NULL, NULL, NULL, &percent);
- if (percent < 3)
- return wxBATTERY_SHUTDOWN_STATE;
- else if (percent < 5)
- return wxBATTERY_CRITICAL_STATE;
- else if (percent < 15)
- return wxBATTERY_LOW_STATE;
- //return wxBATTERY_UNKNOWN_STATE;
- return wxBATTERY_NORMAL_STATE;
-}
-
-// ----------------------------------------------------------------------------
-// misc
-// ----------------------------------------------------------------------------
-
-// Get free memory in bytes, or -1 if cannot determine amount (e.g. on UNIX)
-wxMemorySize wxGetFreeMemory()
-{
- uint32_t freeTotal = 0;
- uint32_t freeHeap;
- uint32_t freeChunk;
-
- // executed twice: for the dynamic heap, and for the non-secure RAM storage heap
- for ( uint16_t i = 0; i < POS_MemNumRAMHeaps(); i ++)
- {
- status_t err = MemHeapFreeBytes(i, &freeHeap, &freeChunk);
- if( err != errNone )
- return -1;
- freeTotal+=freeHeap;
- }
-
- return (wxMemorySize)freeTotal;
-}
-
-unsigned long wxGetProcessId()
-{
- return SysTaskID ();
-}
-
-// Emit a beeeeeep
-void wxBell()
-{
- SndPlaySystemSound(sndWarning);
-}
-
-bool wxIsPlatform64Bit()
-{
- return false;
-}
-
-wxString wxGetOsDescription()
-{
- wxString strOS = wxT("PalmOS");
-
- //err = FtrGet(sysFtrCreator, sysFtrNumROMVersion, &romVersion);
- //if (romVersion >= 0x02000000) v20 = true;
- char *version = SysGetOSVersionString();
- if(version)
- {
- wxString str = wxString::FromAscii(version);
- MemPtrFree(version);
- if(!str.empty())
- {
- strOS << _(" ") << str;
- }
- }
-
- return strOS;
-}
-
-wxOperatingSystemId wxGetOsVersion(int *verMaj, int *verMin)
-{
- // TODO
- return wxOS_PALM_OS;
-}
-
-// ----------------------------------------------------------------------------
-// sleep functions
-// ----------------------------------------------------------------------------
-
-void wxMilliSleep(unsigned long milliseconds)
-{
- UInt16 ticks_sec;
- Int32 delay;
- ticks_sec = SysTicksPerSecond ();
- delay = milliseconds * ticks_sec / 1000;
- if (delay > 0) {
- SysTaskDelay (delay);
- }
-}
-
-void wxMicroSleep(unsigned long microseconds)
-{
- UInt16 ticks_sec;
- Int32 delay;
- ticks_sec = SysTicksPerSecond ();
- delay = microseconds * ticks_sec / 1000000;
- if (delay > 0) {
- SysTaskDelay (delay);
- }
-}
-
-void wxSleep(int nSecs)
-{
- UInt16 ticks_sec;
- Int32 delay;
- ticks_sec = SysTicksPerSecond ();
- delay = nSecs * ticks_sec;
- if (delay > 0) {
- SysTaskDelay (delay);
- }
-}
-
-// ----------------------------------------------------------------------------
-// font encoding <-> Win32 codepage conversion functions
-// ----------------------------------------------------------------------------
-
-extern WXDLLIMPEXP_BASE long wxEncodingToCharset(wxFontEncoding encoding)
-{
- return 0;
-}
-
-// we have 2 versions of wxCharsetToCodepage(): the old one which directly
-// looks up the vlaues in the registry and the new one which is more
-// politically correct and has more chances to work on other Windows versions
-// as well but the old version is still needed for !wxUSE_FONTMAP case
-#if wxUSE_FONTMAP
-
-#include "wx/fontmap.h"
-
-extern WXDLLIMPEXP_BASE long wxEncodingToCodepage(wxFontEncoding encoding)
-{
- return 0;
-}
-
-extern long wxCharsetToCodepage(const wxChar *name)
-{
- return 0;
-}
-
-#else // !wxUSE_FONTMAP
-
-// this should work if Internet Exploiter is installed
-extern long wxCharsetToCodepage(const wxChar *name)
-{
- return 0;
-}
-
-#endif // wxUSE_FONTMAP/!wxUSE_FONTMAP
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/utilsexec.cpp
-// Purpose: wxExecute implementation for PalmOS
-// 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/utils.h"
- #include "wx/app.h"
- #include "wx/intl.h"
- #include "wx/log.h"
- #if wxUSE_STREAMS
- #include "wx/stream.h"
- #endif
- #include "wx/module.h"
-#endif
-
-#include "wx/process.h"
-
-#include "wx/apptrait.h"
-
-#include <ctype.h>
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
-#if wxUSE_IPC
- #include "wx/dde.h" // for WX_DDE hack in wxExecute
-#endif // wxUSE_IPC
-
-// ----------------------------------------------------------------------------
-// constants
-// ----------------------------------------------------------------------------
-
-// ----------------------------------------------------------------------------
-// this module globals
-// ----------------------------------------------------------------------------
-
-// we need to create a hidden window to receive the process termination
-// notifications and for this we need a (Win) class name for it which we will
-// register the first time it's needed
-static const wxChar *wxMSWEXEC_WNDCLASSNAME = wxT("_wxExecute_Internal_Class");
-static const wxChar *gs_classForHiddenWindow = NULL;
-
-// ----------------------------------------------------------------------------
-// private types
-// ----------------------------------------------------------------------------
-
-// ============================================================================
-// implementation
-// ============================================================================
-
-// ============================================================================
-// wxExecute functions family
-// ============================================================================
-
-#if wxUSE_IPC
-
-// connect to the given server via DDE and ask it to execute the command
-static bool wxExecuteDDE(const wxString& ddeServer,
- const wxString& ddeTopic,
- const wxString& ddeCommand)
-{
- return false;
-}
-
-#endif // wxUSE_IPC
-
-long wxExecute(const wxString& cmd, int flags, wxProcess *handler,
- const wxExecuteEnv *env)
-{
- return 0;
-}
-
-long wxExecute(wxChar **argv, int flags, wxProcess *handler,
- const wxExecuteEnv *env)
-{
- return 0;
-}
+++ /dev/null
-///////////////////////////////////////////////////////////////////////////////
-// 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
-// ============================================================================
-
-// ---------------------------------------------------------------------------
-// helper functions for showing a "busy" cursor
-// ---------------------------------------------------------------------------
-
-static int gs_wxBusyCursorCount = 0;
-
-// Set the cursor to the busy cursor for all windows
-void wxBeginBusyCursor(const 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)
-{
-}
+++ /dev/null
-///////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/volume.cpp
-// Purpose: wxFSVolume - encapsulates system volume information
-// 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
-// ----------------------------------------------------------------------------
-
-#include "wx/wxprec.h"
-
-#ifdef __BORLANDC__
- #pragma hdrstop
-#endif
-
-#if wxUSE_FSVOLUME
-
-#include "wx/volume.h"
-
-#ifndef WX_PRECOMP
- #if wxUSE_GUI
- #include "wx/icon.h"
- #endif
- #include "wx/intl.h"
- #include "wx/arrstr.h"
- #include "wx/hashmap.h"
-#endif // WX_PRECOMP
-
-#include <VFSMgr.h>
-#ifdef __WXPALMOS6__
-#include <PalmTypesCompatibility.h>
-#else
-#include <PalmCompatibility.h>
-#endif
-
-#if wxUSE_BASE
-
-//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-// Globals/Statics
-//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-static long s_cancelSearch = FALSE;
-
-struct FileInfo
-{
- FileInfo(unsigned flag=0, wxFSVolumeKind type=wxFS_VOL_OTHER) :
- m_flags(flag), m_type(type) {}
-
- FileInfo(const FileInfo& other) { *this = other; }
- FileInfo& operator=(const FileInfo& other)
- {
- m_flags = other.m_flags;
- m_type = other.m_type;
- return *this;
- }
-
- unsigned m_flags;
- wxFSVolumeKind m_type;
-};
-
-WX_DECLARE_STRING_HASH_MAP(FileInfo, FileInfoMap);
-
-// Cygwin bug (?) destructor for global s_fileInfo is called twice...
-static FileInfoMap& GetFileInfoMap()
-{
- static FileInfoMap s_fileInfo(25);
-
- return s_fileInfo;
-}
-#define s_fileInfo (GetFileInfoMap())
-
-//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-// Local helper functions.
-//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-
-//=============================================================================
-// Function: GetBasicFlags
-// Purpose: Set basic flags, primarily wxFS_VOL_REMOTE and wxFS_VOL_REMOVABLE.
-// Notes: - Local and mapped drives are mounted by definition. We have no
-// way to determine mounted status of network drives, so assume that
-// all drives are mounted, and let the caller decide otherwise.
-// - Other flags are 'best guess' from type of drive. The system will
-// not report the file attributes with any degree of accuracy.
-//=============================================================================
-static unsigned GetBasicFlags(const wxChar* filename)
-{
- unsigned flags = wxFS_VOL_MOUNTED;
-
- return flags;
-} // GetBasicFlags
-
-//=============================================================================
-// Function: FilteredAdd
-// Purpose: Add a file to the list if it meets the filter requirement.
-// Notes: - See GetBasicFlags for remarks about the Mounted flag.
-//=============================================================================
-static bool FilteredAdd(wxArrayString& list, const wxChar* filename,
- unsigned flagsSet, unsigned flagsUnset)
-{
- return false;
-} // FilteredAdd
-
-//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-// wxFSVolume
-//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-
-//=============================================================================
-// Function: GetVolumes
-// Purpose: Generate and return a list of all volumes (drives) available.
-// Notes:
-//=============================================================================
-wxArrayString wxFSVolumeBase::GetVolumes(int flagsSet, int flagsUnset)
-{
- wxArrayString list;
-
- UInt16 refNum;
- UInt32 it = vfsIteratorStart;
-
- while (it != vfsIteratorStop)
- {
- status_t err = VFSVolumeEnumerate(&refNum, &it);
- if (err == errNone)
- {
- // manual: "Volume labels can be up to 255 characters long."
- char label[256];
- err = VFSVolumeGetLabel(refNum,label,256);
- if (err == errNone)
- {
- list.Add(wxString::FromAscii(label));
- }
- }
-
- if (err != errNone)
- break;
- }
-
- return list;
-} // GetVolumes
-
-//=============================================================================
-// Function: CancelSearch
-// Purpose: Instruct an active search to stop.
-// Notes: - This will only sensibly be called by a thread other than the one
-// performing the search. This is the only thread-safe function
-// provided by the class.
-//=============================================================================
-void wxFSVolumeBase::CancelSearch()
-{
-} // CancelSearch
-
-//=============================================================================
-// Function: constructor
-// Purpose: default constructor
-//=============================================================================
-wxFSVolumeBase::wxFSVolumeBase()
-{
-} // wxVolume
-
-//=============================================================================
-// Function: constructor
-// Purpose: constructor that calls Create
-//=============================================================================
-wxFSVolumeBase::wxFSVolumeBase(const wxString& name)
-{
-} // wxVolume
-
-//=============================================================================
-// Function: Create
-// Purpose: Finds, logs in, etc. to the request volume.
-//=============================================================================
-bool wxFSVolumeBase::Create(const wxString& name)
-{
- return false;
-} // Create
-
-//=============================================================================
-// Function: IsOk
-// Purpose: returns true if the volume is legal.
-// Notes: For fixed disks, it must exist. For removable disks, it must also
-// be present. For Network Shares, it must also be logged in, etc.
-//=============================================================================
-bool wxFSVolumeBase::IsOk() const
-{
- return false;
-} // IsOk
-
-//=============================================================================
-// Function: GetKind
-// Purpose: Return the type of the volume.
-//=============================================================================
-wxFSVolumeKind wxFSVolumeBase::GetKind() const
-{
- return wxFS_VOL_OTHER;
-}
-
-//=============================================================================
-// Function: GetFlags
-// Purpose: Return the caches flags for this volume.
-// Notes: - Returns -1 if no flags were cached.
-//=============================================================================
-int wxFSVolumeBase::GetFlags() const
-{
- return -1;
-} // GetFlags
-
-#endif // wxUSE_BASE
-
-// ============================================================================
-// wxFSVolume
-// ============================================================================
-
-#if wxUSE_GUI
-
-void wxFSVolume::InitIcons()
-{
-}
-
-//=============================================================================
-// Function: GetIcon
-// Purpose: return the requested icon.
-//=============================================================================
-
-wxIcon wxFSVolume::GetIcon(wxFSIconType type) const
-{
- return m_icons[type];
-} // GetIcon
-
-#endif // wxUSE_GUI
-
-#endif // wxUSE_FSVOLUME
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// Name: src/palmos/window.cpp
-// Purpose: wxWindow
-// Author: William Osborne - minimal working wxPalmOS port
-// Modified by: Wlodzimierz ABX Skiba - more than minimal functionality
-// Created: 10/13/04
-// RCS-ID: $Id$
-// Copyright: (c) William Osborne, Wlodzimierz Skiba
-// Licence: wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-// ===========================================================================
-// declarations
-// ===========================================================================
-
-// ---------------------------------------------------------------------------
-// headers
-// ---------------------------------------------------------------------------
-
-// For compilers that support precompilation, includes "wx.h".
-#include "wx/wxprec.h"
-
-#ifdef __BORLANDC__
- #pragma hdrstop
-#endif
-
-#include "wx/window.h"
-
-#ifndef WX_PRECOMP
- #include "wx/accel.h"
- #include "wx/menu.h"
- #include "wx/dc.h"
- #include "wx/dcclient.h"
- #include "wx/dcmemory.h"
- #include "wx/utils.h"
- #include "wx/app.h"
- #include "wx/layout.h"
- #include "wx/dialog.h"
- #include "wx/frame.h"
- #include "wx/listbox.h"
- #include "wx/button.h"
- #include "wx/msgdlg.h"
- #include "wx/settings.h"
- #include "wx/statbox.h"
- #include "wx/intl.h"
- #include "wx/log.h"
- #include "wx/textctrl.h"
- #include "wx/menuitem.h"
- #include "wx/module.h"
-#endif
-
-#if wxUSE_OWNER_DRAWN && !defined(__WXUNIVERSAL__)
- #include "wx/ownerdrw.h"
-#endif
-
-#if wxUSE_DRAG_AND_DROP
- #include "wx/dnd.h"
-#endif
-
-#if wxUSE_ACCESSIBILITY
- #include "wx/access.h"
-#endif
-
-#if wxUSE_TOOLTIPS
- #include "wx/tooltip.h"
-#endif
-
-#if wxUSE_CARET
- #include "wx/caret.h"
-#endif // wxUSE_CARET
-
-#if wxUSE_SPINCTRL
- #include "wx/spinctrl.h"
-#endif // wxUSE_SPINCTRL
-
-#include "wx/notebook.h"
-#include "wx/listctrl.h"
-
-#ifndef __WXUNIVERSAL__
-#include <Window.h>
-
-// ---------------------------------------------------------------------------
-// global variables
-// ---------------------------------------------------------------------------
-
-// ---------------------------------------------------------------------------
-// private functions
-// ---------------------------------------------------------------------------
-
-// ---------------------------------------------------------------------------
-// event tables
-// ---------------------------------------------------------------------------
-
-// in wxUniv/Palm this class is abstract because it doesn't have DoPopupMenu()
-// method
-#ifdef __WXUNIVERSAL__
- IMPLEMENT_ABSTRACT_CLASS(wxWindowPalm, wxWindowBase)
-#endif // __WXUNIVERSAL__
-
-BEGIN_EVENT_TABLE(wxWindowPalm, wxWindowBase)
- EVT_ERASE_BACKGROUND(wxWindowPalm::OnEraseBackground)
- EVT_INIT_DIALOG(wxWindowPalm::OnInitDialog)
-END_EVENT_TABLE()
-
-// ===========================================================================
-// implementation
-// ===========================================================================
-
-// ---------------------------------------------------------------------------
-// wxWindow utility functions
-// ---------------------------------------------------------------------------
-
-// Find an item given the MS Windows id
-wxWindow *wxWindowPalm::FindItem(long id) const
-{
- return NULL;
-}
-
-// Find an item given the MS Windows handle
-wxWindow *wxWindowPalm::FindItemByWinHandle(WXWINHANDLE handle, bool controlOnly) const
-{
- // TODO
- return NULL;
-}
-
-bool wxGetKeyState(wxKeyCode key)
-{
- wxASSERT_MSG(key != WXK_LBUTTON && key != WXK_RBUTTON && key !=
- WXK_MBUTTON, wxT("can't use wxGetKeyState() for mouse buttons"));
-
- // TODO
-
- return false;
-}
-
-// ----------------------------------------------------------------------------
-// constructors and such
-// ----------------------------------------------------------------------------
-
-void wxWindowPalm::Init()
-{
- m_hWnd = 0;
-}
-
-// Destructor
-wxWindowPalm::~wxWindowPalm()
-{
-}
-
-// real construction (Init() must have been called before!)
-bool wxWindowPalm::Create(wxWindow *parent,
- wxWindowID id,
- const wxPoint& pos,
- const wxSize& size,
- long style,
- const wxString& name)
-{
- wxCHECK_MSG( parent, false, wxT("can't create wxWindow without parent") );
-
- if ( !CreateBase(parent, id, pos, size, style, wxDefaultValidator, name) )
- return false;
-
- parent->AddChild(this);
-
- InheritAttributes();
-
- return true;
-}
-
-WXFORMPTR wxWindowPalm::GetFormPtr()
-{
- return FrameForm;
-}
-void wxWindowPalm::SetFormPtr(WXFORMPTR FormPtr)
-{
- FrameForm = FormPtr;
-}
-
-// ---------------------------------------------------------------------------
-// basic operations
-// ---------------------------------------------------------------------------
-
-void wxWindowPalm::SetFocus()
-{
-}
-
-void wxWindowPalm::SetFocusFromKbd()
-{
-}
-
-// Get the window with the focus
-wxWindow *wxWindowBase::DoFindFocus()
-{
- return NULL;
-}
-
-bool wxWindowPalm::Enable(bool enable)
-{
- return false;
-}
-
-bool wxWindowPalm::Show(bool show)
-{
- return false;
-}
-
-// Raise the window to the top of the Z order
-void wxWindowPalm::Raise()
-{
-}
-
-// Lower the window to the bottom of the Z order
-void wxWindowPalm::Lower()
-{
-}
-
-void wxWindowPalm::SetLabel( const wxString& WXUNUSED(label))
-{
-}
-
-wxString wxWindowPalm::GetLabel() const
-{
- return wxEmptyString;
-}
-
-void wxWindowPalm::DoCaptureMouse()
-{
-}
-
-void wxWindowPalm::DoReleaseMouse()
-{
-}
-
-/* static */ wxWindow *wxWindowBase::GetCapture()
-{
- return NULL;
-}
-
-bool wxWindowPalm::SetFont(const wxFont& font)
-{
- return false;
-}
-bool wxWindowPalm::SetCursor(const wxCursor& cursor)
-{
- return false;
-}
-
-void wxWindowPalm::WarpPointer (int x, int y)
-{
-}
-
-// ---------------------------------------------------------------------------
-// scrolling stuff
-// ---------------------------------------------------------------------------
-
-// convert wxHORIZONTAL/wxVERTICAL to SB_HORZ/SB_VERT
-static inline int wxDirToWinStyle(int orient)
-{
- return 0;
-}
-
-int wxWindowPalm::GetScrollPos(int orient) const
-{
- return 0;
-}
-
-// This now returns the whole range, not just the number
-// of positions that we can scroll.
-int wxWindowPalm::GetScrollRange(int orient) const
-{
- return 0;
-}
-
-int wxWindowPalm::GetScrollThumb(int orient) const
-{
- return 0;
-}
-
-void wxWindowPalm::SetScrollPos(int orient, int pos, bool refresh)
-{
-}
-
-// New function that will replace some of the above.
-void wxWindowPalm::SetScrollbar(int orient,
- int pos,
- int pageSize,
- int range,
- bool refresh)
-{
-}
-
-void wxWindowPalm::ScrollWindow(int dx, int dy, const wxRect *prect)
-{
-}
-
-bool wxWindowPalm::ScrollLines(int lines)
-{
- return false;
-}
-
-bool wxWindowPalm::ScrollPages(int pages)
-{
- return false;
-}
-
-// ----------------------------------------------------------------------------
-// Style handling
-// ----------------------------------------------------------------------------
-
-WXDWORD wxWindowPalm::PalmGetStyle(long flags, WXDWORD *exstyle) const
-{
- return 0;
-}
-
-// Setup background and foreground colours correctly
-void wxWindowPalm::SetupColours()
-{
-}
-
-void wxWindowPalm::OnInternalIdle()
-{
-}
-
-// Set this window to be the child of 'parent'.
-bool wxWindowPalm::Reparent(wxWindowBase *parent)
-{
- return false;
-}
-
-void wxWindowPalm::Refresh(bool eraseBack, const wxRect *rect)
-{
- WinHandle handle = (WinHandle)GetHWND();
- if(handle)
- {
-#ifdef __WXPALMOS6__
- if(rect)
- {
- RectangleType dirtyRect;
- dirtyRect.topLeft.x = rect->GetX() - 1;
- dirtyRect.topLeft.y = rect->GetY() - 1;
- dirtyRect.extent.x = rect->GetWidth() + 1;
- dirtyRect.extent.y = rect->GetHeight() + 1;
- WinInvalidateRect(handle, &dirtyRect);
- }
- else
- {
- WinInvalidateWindow(handle);
- }
-#else // __WXPALMOS5__
- WinSetActiveWindow (handle);
-#endif
-
- }
-}
-
-void wxWindowPalm::Update()
-{
-}
-
-// ---------------------------------------------------------------------------
-// drag and drop
-// ---------------------------------------------------------------------------
-
-
-#if wxUSE_DRAG_AND_DROP
-void wxWindowPalm::SetDropTarget(wxDropTarget *pDropTarget)
-{
-}
-#endif // wxUSE_DRAG_AND_DROP
-
-// old style file-manager drag&drop support: we retain the old-style
-// DragAcceptFiles in parallel with SetDropTarget.
-void wxWindowPalm::DragAcceptFiles(bool accept)
-{
-}
-
-// ----------------------------------------------------------------------------
-// tooltips
-// ----------------------------------------------------------------------------
-
-#if wxUSE_TOOLTIPS
-
-void wxWindowPalm::DoSetToolTip(wxToolTip *tooltip)
-{
-}
-
-#endif // wxUSE_TOOLTIPS
-
-// ---------------------------------------------------------------------------
-// moving and resizing
-// ---------------------------------------------------------------------------
-
-// Get total size
-void wxWindowPalm::DoGetSize(int *x, int *y) const
-{
-}
-
-// Get size *available for subwindows* i.e. excluding menu bar etc.
-void wxWindowPalm::DoGetClientSize(int *x, int *y) const
-{
-}
-
-void wxWindowPalm::DoGetPosition(int *x, int *y) const
-{
- if(x)
- *x = 0;
- if(y)
- *y = 0;
-}
-
-void wxWindowPalm::DoScreenToClient(int *x, int *y) const
-{
-}
-
-void wxWindowPalm::DoClientToScreen(int *x, int *y) const
-{
-}
-
-void wxWindowPalm::DoMoveWindow(int x, int y, int width, int height)
-{
-}
-
-// set the size of the window: if the dimensions are positive, just use them,
-// but if any of them is equal to -1, it means that we must find the value for
-// it ourselves (unless sizeFlags contains wxSIZE_ALLOW_MINUS_ONE flag, in
-// which case -1 is a valid value for x and y)
-//
-// If sizeFlags contains wxSIZE_AUTO_WIDTH/HEIGHT flags (default), we calculate
-// the width/height to best suit our contents, otherwise we reuse the current
-// width/height
-void wxWindowPalm::DoSetSize(int x, int y, int width, int height, int sizeFlags)
-{
- // get the current size and position...
- int currentX, currentY;
- GetPosition(¤tX, ¤tY);
- int currentW,currentH;
- GetSize(¤tW, ¤tH);
-
- // ... and don't do anything (avoiding flicker) if it's already ok
- if ( x == currentX && y == currentY &&
- width == currentW && height == currentH )
- {
- return;
- }
-
- if ( x == wxDefaultCoord && !(sizeFlags & wxSIZE_ALLOW_MINUS_ONE) )
- x = currentX;
- if ( y == wxDefaultCoord && !(sizeFlags & wxSIZE_ALLOW_MINUS_ONE) )
- y = currentY;
-
- AdjustForParentClientOrigin(x, y, sizeFlags);
-
- wxSize size = wxDefaultSize;
- if ( width == wxDefaultCoord )
- {
- if ( sizeFlags & wxSIZE_AUTO_WIDTH )
- {
- size = DoGetBestSize();
- width = size.x;
- }
- else
- {
- // just take the current one
- width = currentW;
- }
- }
-
- if ( height == wxDefaultCoord )
- {
- if ( sizeFlags & wxSIZE_AUTO_HEIGHT )
- {
- if ( size.x == wxDefaultCoord )
- {
- size = DoGetBestSize();
- }
- //else: already called DoGetBestSize() above
-
- height = size.y;
- }
- else
- {
- // just take the current one
- height = currentH;
- }
- }
-
- DoMoveWindow(x, y, width, height);
-}
-
-void wxWindowPalm::DoSetClientSize(int width, int height)
-{
-}
-
-// ---------------------------------------------------------------------------
-// text metrics
-// ---------------------------------------------------------------------------
-
-int wxWindowPalm::GetCharHeight() const
-{
- return 0;
-}
-
-int wxWindowPalm::GetCharWidth() const
-{
- return 0;
-}
-
-void wxWindowPalm::DoGetTextExtent(const wxString& string,
- int *x, int *y,
- int *descent,
- int *externalLeading,
- const wxFont *theFont) const
-{
-}
-
-// ---------------------------------------------------------------------------
-// popup menu
-// ---------------------------------------------------------------------------
-
-#if wxUSE_MENUS_NATIVE
-
-// yield for WM_COMMAND events only, i.e. process all WM_COMMANDs in the queue
-// immediately, without waiting for the next event loop iteration
-//
-// NB: this function should probably be made public later as it can almost
-// surely replace wxYield() elsewhere as well
-static void wxYieldForCommandsOnly()
-{
-}
-
-bool wxWindowPalm::DoPopupMenu(wxMenu *menu, int x, int y)
-{
- return false;
-}
-
-#endif // wxUSE_MENUS_NATIVE
-
-// ----------------------------------------------------------------------------
-// wxWindow <-> HWND map
-// ----------------------------------------------------------------------------
-
-wxWinHashTable *wxWinHandleHash = NULL;
-
-wxWindow *wxFindWinFromWinHandle(WXWINHANDLE handle)
-{
- // TODO
- return NULL;
-}
-
-void wxRemoveHandleAssociation(wxWindowPalm *win)
-{
-}
-
-// ----------------------------------------------------------------------------
-// various Palm specific class dependent functions
-// ----------------------------------------------------------------------------
-
-bool wxWindowPalm::PalmGetCreateWindowCoords(const wxPoint& pos,
- const wxSize& size,
- int& x, int& y,
- int& w, int& h) const
-{
- return false;
-}
-
-bool wxWindowPalm::PalmCreate(const wxChar *wclass,
- const wxChar *title,
- const wxPoint& pos,
- const wxSize& size,
- WXDWORD style,
- WXDWORD extendedStyle)
-{
- return false;
-}
-
-// ===========================================================================
-// Palm message handlers
-// ===========================================================================
-
-// ---------------------------------------------------------------------------
-// painting
-// ---------------------------------------------------------------------------
-
-// Can be called from an application's OnPaint handler
-void wxWindowPalm::OnPaint(wxPaintEvent& event)
-{
-}
-
-void wxWindowPalm::OnEraseBackground(wxEraseEvent& event)
-{
-}
-
-// ---------------------------------------------------------------------------
-// moving and resizing
-// ---------------------------------------------------------------------------
-
-bool wxWindowPalm::HandleMove(int x, int y)
-{
- return false;
-}
-
-bool wxWindowPalm::HandleMoving(wxRect& rect)
-{
- return false;
-}
-
-// ---------------------------------------------------------------------------
-// joystick
-// ---------------------------------------------------------------------------
-
-bool wxWindowPalm::HandleJoystickEvent(WXUINT msg, int x, int y, WXUINT flags)
-{
- return false;
-}
-
-// ---------------------------------------------------------------------------
-// scrolling
-// ---------------------------------------------------------------------------
-
-bool wxWindowPalm::PalmOnScroll(int orientation, WXWORD wParam,
- WXWORD pos, WXWINHANDLE control)
-{
- // TODO
- return false;
-}
-
-// ===========================================================================
-// global functions
-// ===========================================================================
-
-void wxGetCharSize(WXWINHANDLE wnd, int *x, int *y, const wxFont *the_font)
-{
- // TODO
-}
-
-#if wxUSE_HOTKEY
-
-bool wxWindowPalm::RegisterHotKey(int hotkeyId, int modifiers, int keycode)
-{
- return false;
-}
-
-bool wxWindowPalm::UnregisterHotKey(int hotkeyId)
-{
- return false;
-}
-#endif // # __WXUNIVERSAL__
-#endif // wxUSE_HOTKEY
wxObject *control = m_instance;
-#if !defined(__WXUNIVERSAL__) && !defined(__WXMOTIF__) && !defined(__WXPALMOS__) && !defined(__WXPM__) && !(defined(__WXGTK__) && !defined(__WXGTK20__))
+#if !defined(__WXUNIVERSAL__) && !defined(__WXMOTIF__) && !defined(__WXPM__) && !(defined(__WXGTK__) && !defined(__WXGTK20__))
if (m_class == wxT("wxBitmapToggleButton"))
{
button->SetValue(GetBool( wxT("checked")));
}
-#if !defined(__WXUNIVERSAL__) && !defined(__WXMOTIF__) && !defined(__WXPALMOS__) && !defined(__WXPM__) && !(defined(__WXGTK__) && !defined(__WXGTK20__))
+#if !defined(__WXUNIVERSAL__) && !defined(__WXMOTIF__) && !defined(__WXPM__) && !(defined(__WXGTK__) && !defined(__WXGTK20__))
void wxToggleButtonXmlHandler::DoCreateBitmapToggleButton(wxObject *control)
{
wxBitmapToggleButton *button = wxDynamicCast(control, wxBitmapToggleButton);