Committed William Osborne's wxPalmOS port

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29996 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2004-10-19 13:40:30 +00:00
parent 698b34facd
commit ffecfa5aeb
260 changed files with 40716 additions and 44 deletions
+22
View File
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<cdtproject id="org.eclipse.cdt.make.core.make">
<extension id="org.eclipse.cdt.make.core.MakeScannerProvider" point="org.eclipse.cdt.core.ScannerInfoProvider"/>
<extension id="org.eclipse.cdt.core.Elf" point="org.eclipse.cdt.core.BinaryParser"/>
<data>
<item id="org.eclipse.cdt.make.core.makeScannerInfo">
<includePath path="$(SDK6_LOCATION)headers"/>
<includePath path="$(SDK6_LOCATION)headers\EntryNums"/>
<includePath path="$(SDK6_LOCATION)headers\posix"/>
<includePath path="$(SDK6_LOCATION)headers\posix\arm"/>
<includePath path="$(SDK6_LOCATION)headers\posix\arpa"/>
<includePath path="$(SDK6_LOCATION)headers\posix\machine"/>
<includePath path="$(SDK6_LOCATION)headers\posix\machine\arm"/>
<includePath path="$(SDK6_LOCATION)headers\posix\machine\x86"/>
<includePath path="$(SDK6_LOCATION)headers\posix\net"/>
<includePath path="$(SDK6_LOCATION)headers\posix\netinet"/>
<includePath path="$(SDK6_LOCATION)headers\posix\sys"/>
<includePath path="$(SDK6_LOCATION)headers\streams"/>
<definedSymbol symbol="__arm__"/>
</item>
</data>
</cdtproject>
+126
View File
@@ -0,0 +1,126 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>wxWidgets</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>com.palmsource.eclipse.palmoscore.palmOSMakeBuilder</name>
<arguments>
<dictionary>
<key>CREATOR_ID</key>
<value>STRT</value>
</dictionary>
<dictionary>
<key>DB_HIDDEN</key>
<value>false</value>
</dictionary>
<dictionary>
<key>TARGET</key>
<value>Simulator</value>
</dictionary>
<dictionary>
<key>DB_TYPE</key>
<value>appl</value>
</dictionary>
<dictionary>
<key>VERSION</key>
<value>1</value>
</dictionary>
<dictionary>
<key>SDK</key>
<value>com.palmsource.eclipse.sdk.palmos6</value>
</dictionary>
<dictionary>
<key>DB_RESET_INSTALL</key>
<value>false</value>
</dictionary>
<dictionary>
<key>APP_NAME</key>
<value>wxWidgets</value>
</dictionary>
<dictionary>
<key>PROJECT_NAME</key>
<value>wxWidgets</value>
</dictionary>
<dictionary>
<key>OS_API</key>
<value>Protein</value>
</dictionary>
<dictionary>
<key>PROJECT_TYPE</key>
<value>appl</value>
</dictionary>
<dictionary>
<key>DB_BACKUP</key>
<value>true</value>
</dictionary>
<dictionary>
<key>DB_PREVENT_COPY</key>
<value>false</value>
</dictionary>
<dictionary>
<key>DEBUG_OR_RELEASE</key>
<value>Debug</value>
</dictionary>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.cdt.make.core.makeBuilder</name>
<arguments>
<dictionary>
<key>org.eclipse.cdt.core.errorOutputParser</key>
<value>org.eclipse.cdt.core.GCCErrorParser;org.eclipse.cdt.core.GASErrorParser;org.eclipse.cdt.core.GLDErrorParser;org.eclipse.cdt.core.MakeErrorParser;org.eclipse.cdt.core.VCErrorParser;</value>
</dictionary>
<dictionary>
<key>org.eclipse.cdt.make.core.fullBuildTarget</key>
<value>clean all</value>
</dictionary>
<dictionary>
<key>org.eclipse.cdt.make.core.incrementalBuildTarget</key>
<value>all</value>
</dictionary>
<dictionary>
<key>org.eclipse.cdt.make.core.enableAutoBuild</key>
<value>false</value>
</dictionary>
<dictionary>
<key>org.eclipse.cdt.make.core.buildLocation</key>
<value></value>
</dictionary>
<dictionary>
<key>org.eclipse.cdt.make.core.useDefaultBuildCmd</key>
<value>true</value>
</dictionary>
<dictionary>
<key>org.eclipse.cdt.make.core.buildCommand</key>
<value>make</value>
</dictionary>
<dictionary>
<key>org.eclipse.cdt.make.core.enableFullBuild</key>
<value>true</value>
</dictionary>
<dictionary>
<key>org.eclipse.cdt.make.core.enabledIncrementalBuild</key>
<value>true</value>
</dictionary>
<dictionary>
<key>org.eclipse.cdt.make.core.autoBuildTarget</key>
<value>all</value>
</dictionary>
<dictionary>
<key>org.eclipse.cdt.make.core.stopOnError</key>
<value>false</value>
</dictionary>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>com.palmsource.eclipse.palmos6dev.palmOSProteinNature</nature>
<nature>com.palmsource.eclipse.palmoscore.palmOSNature</nature>
<nature>org.eclipse.cdt.core.cnature</nature>
<nature>org.eclipse.cdt.make.core.makeNature</nature>
<nature>org.eclipse.cdt.core.ccnature</nature>
</natures>
</projectDescription>
+72
View File
@@ -0,0 +1,72 @@
# This file auto-generated by Palm OS Make builder. Don't modify directly!!!
# This value is unescaped. Either quote the value or escape special characters when you use it.
ifeq ($(TOOLS_DIR), )
TOOLS_DIR = C:/Program Files/PalmSource/Palm OS Developer Suite/PalmOSTools/
endif
# This value is unescaped. Either quote the value or escape special characters when you use it.
ifeq ($(SDK_LOCATION), )
SDK_LOCATION = C:/Program Files/PalmSource/Palm OS Developer Suite/sdk-6/
endif
ifeq ($(SDK_VERSION), )
SDK_VERSION = sdk-6
endif
ifeq ($(CREATOR_ID), )
CREATOR_ID = STRT
endif
ifeq ($(DB_HIDDEN), )
DB_HIDDEN = false
endif
ifeq ($(TARGET), )
TARGET = Simulator
endif
ifeq ($(DB_TYPE), )
DB_TYPE = appl
endif
ifeq ($(VERSION), )
VERSION = 1
endif
ifeq ($(DB_RESET_INSTALL), )
DB_RESET_INSTALL = false
endif
ifeq ($(SDK), )
SDK = com.palmsource.eclipse.sdk.palmos6
endif
ifeq ($(APP_NAME), )
APP_NAME = wxWidgets
endif
ifeq ($(OS_API), )
OS_API = Protein
endif
ifeq ($(PROJECT_NAME), )
PROJECT_NAME = wxWidgets
endif
ifeq ($(PROJECT_TYPE), )
PROJECT_TYPE = appl
endif
ifeq ($(DB_BACKUP), )
DB_BACKUP = true
endif
ifeq ($(DB_PREVENT_COPY), )
DB_PREVENT_COPY = false
endif
ifeq ($(DEBUG_OR_RELEASE), )
DEBUG_OR_RELEASE = Debug
endif
+456
View File
@@ -0,0 +1,456 @@
## --------------------------------------------------------------------------
# Palm OS Generic Protein Makefile for Eclipse v1.0.0
#
# Fill in this file to specify your project and the source that you want
# to build, and the settings involved in the build. The makefile-engine.mk
# will then do the hard work of the makefile and dependency handling.
#
# After starting a new project, please remember the following steps...
# 1. Add all sources and resources in SOURCES and RESOURCES
# 2. Review the other settings as needed.
#
## --------------------------------------------------------------------------
SHELL = /bin/sh
## conditionally include an auto-generated.mk for dynamic definitions
-include auto-generated.mk
## --------------------------------------------------------------------------
# Set up the artifact name.
# The database name and other file names are based on the application name
## --------------------------------------------------------------------------
ARTIFACT_NAME = wxWidgets
EMPTY =
SPACE =$(EMPTY) $(EMPTY)
ESCAPED_ARTIFACT_NAME = $(subst $(SPACE),\ ,$(ARTIFACT_NAME))
PROJECT_NAME = wxWidgets
PRC_NAME = wxWidgets.prc
## --------------------------------------------------------------------------
# Sources and Resources and Definition files
# List all the sources (.c/.cpp), resources (.xrd), and definition file (.sld)
# in your project. Use project relative path names with forward slashes
# (src/code.cpp). Please do not use spaces in directory or file names.
#
# A note about XRD resource files: If you have existing .rsrc or .rcp files,
# refer to the documentation for the GenerateXRD tool to convert them into
# XRD files for use with all Palm OS SDKs.
## --------------------------------------------------------------------------
# TODO: Update all sources and resources
SOURCES = ../../samples/minimal/minimal.cpp \
../../src/common/accesscmn.cpp \
../../src/common/appbase.cpp \
../../src/common/appcmn.cpp \
../../src/common/artprov.cpp \
../../src/common/artstd.cpp \
../../src/common/bmpbase.cpp \
../../src/common/bookctrl.cpp \
../../src/common/choiccmn.cpp \
../../src/common/clipcmn.cpp \
../../src/common/clntdata.cpp \
../../src/common/cmdproc.cpp \
../../src/common/cmndata.cpp \
../../src/common/config.cpp \
../../src/common/containr.cpp \
../../src/common/cshelp.cpp \
../../src/common/ctrlcmn.cpp \
../../src/common/ctrlsub.cpp \
../../src/common/datacmn.cpp \
../../src/common/datetime.cpp \
../../src/common/datstrm.cpp \
../../src/common/db.cpp \
../../src/common/dbgrid.cpp \
../../src/common/dbtable.cpp \
../../src/common/dcbase.cpp \
../../src/common/dircmn.cpp \
../../src/common/dlgcmn.cpp \
../../src/common/dndcmn.cpp \
../../src/common/dobjcmn.cpp \
../../src/common/docmdi.cpp \
../../src/common/docview.cpp \
../../src/common/dpycmn.cpp \
../../src/common/dseldlg.cpp \
../../src/common/dynarray.cpp \
../../src/common/dynlib.cpp \
../../src/common/dynload.cpp \
../../src/common/effects.cpp \
../../src/common/encconv.cpp \
../../src/common/event.cpp \
../../src/common/fddlgcmn.cpp \
../../src/common/ffile.cpp \
../../src/common/file.cpp \
../../src/common/fileconf.cpp \
../../src/common/filesys.cpp \
../../src/common/fldlgcmn.cpp \
../../src/common/fmapbase.cpp \
../../src/common/fontcmn.cpp \
../../src/common/fontmap.cpp \
../../src/common/framecmn.cpp \
../../src/common/fs_inet.cpp \
../../src/common/fs_mem.cpp \
../../src/common/fs_zip.cpp \
../../src/common/ftp.cpp \
../../src/common/gaugecmn.cpp \
../../src/common/gbsizer.cpp \
../../src/common/gdicmn.cpp \
../../src/common/geometry.cpp \
../../src/common/gifdecod.cpp \
../../src/common/hash.cpp \
../../src/common/hashmap.cpp \
../../src/common/helpbase.cpp \
../../src/common/http.cpp \
../../src/common/iconbndl.cpp \
../../src/common/imagall.cpp \
../../src/common/imagbmp.cpp \
../../src/common/image.cpp \
../../src/common/imagfill.cpp \
../../src/common/imaggif.cpp \
../../src/common/imagiff.cpp \
../../src/common/imagjpeg.cpp \
../../src/common/imagpcx.cpp \
../../src/common/imagpng.cpp \
../../src/common/imagpnm.cpp \
../../src/common/imagtiff.cpp \
../../src/common/imagxpm.cpp \
../../src/common/init.cpp \
../../src/common/intl.cpp \
../../src/common/ipcbase.cpp \
../../src/common/layout.cpp \
../../src/common/lboxcmn.cpp \
../../src/common/list.cpp \
../../src/common/log.cpp \
../../src/common/longlong.cpp \
../../src/common/matrix.cpp \
../../src/common/memory.cpp \
../../src/common/menucmn.cpp \
../../src/common/mimecmn.cpp \
../../src/common/module.cpp \
../../src/common/msgout.cpp \
../../src/common/mstream.cpp \
../../src/common/nbkbase.cpp \
../../src/common/object.cpp \
../../src/common/paper.cpp \
../../src/common/popupcmn.cpp \
../../src/common/prntbase.cpp \
../../src/common/process.cpp \
../../src/common/protocol.cpp \
../../src/common/quantize.cpp \
../../src/common/radiocmn.cpp \
../../src/common/regex.cpp \
../../src/common/rendcmn.cpp \
../../src/common/rgncmn.cpp \
../../src/common/sckaddr.cpp \
../../src/common/sckfile.cpp \
../../src/common/sckipc.cpp \
../../src/common/sckstrm.cpp \
../../src/common/settcmn.cpp \
../../src/common/sizer.cpp \
../../src/common/socket.cpp \
../../src/common/statbar.cpp \
../../src/common/strconv.cpp \
../../src/common/stream.cpp \
../../src/common/string.cpp \
../../src/common/sysopt.cpp \
../../src/common/taskbarcmn.cpp \
../../src/common/tbarbase.cpp \
../../src/common/textbuf.cpp \
../../src/common/textcmn.cpp \
../../src/common/textfile.cpp \
../../src/common/timercmn.cpp \
../../src/common/tokenzr.cpp \
../../src/common/toplvcmn.cpp \
../../src/common/treebase.cpp \
../../src/common/txtstrm.cpp \
../../src/common/url.cpp \
../../src/common/utilscmn.cpp \
../../src/common/valgen.cpp \
../../src/common/validate.cpp \
../../src/common/valtext.cpp \
../../src/common/variant.cpp \
../../src/common/wfstream.cpp \
../../src/common/wincmn.cpp \
../../src/common/wxchar.cpp \
../../src/common/xpmdecod.cpp \
../../src/common/xti.cpp \
../../src/common/xtistrm.cpp \
../../src/common/xtixml.cpp \
../../src/common/zipstrm.cpp \
../../src/common/zstream.cpp \
../../src/generic/renderg.cpp \
../../src/generic/statusbr.cpp \
../../src/palmos/accel.cpp \
../../src/palmos/app.cpp \
../../src/palmos/base.cpp \
../../src/palmos/bitmap.cpp \
../../src/palmos/bmpbuttn.cpp \
../../src/palmos/brush.cpp \
../../src/palmos/button.cpp \
../../src/palmos/caret.cpp \
../../src/palmos/checkbox.cpp \
../../src/palmos/checklst.cpp \
../../src/palmos/choice.cpp \
../../src/palmos/clipbrd.cpp \
../../src/palmos/colordlg.cpp \
../../src/palmos/colour.cpp \
../../src/palmos/combobox.cpp \
../../src/palmos/control.cpp \
../../src/palmos/crashrpt.cpp \
../../src/palmos/cursor.cpp \
../../src/palmos/data.cpp \
../../src/palmos/dc.cpp \
../../src/palmos/dcclient.cpp \
../../src/palmos/dcmemory.cpp \
../../src/palmos/dcprint.cpp \
../../src/palmos/dcscreen.cpp \
../../src/palmos/dialog.cpp \
../../src/palmos/dialup.cpp \
../../src/palmos/dib.cpp \
../../src/palmos/dir.cpp \
../../src/palmos/dirdlg.cpp \
../../src/palmos/display.cpp \
../../src/palmos/dragimag.cpp \
../../src/palmos/dummy.cpp \
../../src/palmos/enhmeta.cpp \
../../src/palmos/evtloop.cpp \
../../src/palmos/fdrepdlg.cpp \
../../src/palmos/filedlg.cpp \
../../src/palmos/font.cpp \
../../src/palmos/fontdlg.cpp \
../../src/palmos/fontenum.cpp \
../../src/palmos/fontutil.cpp \
../../src/palmos/frame.cpp \
../../src/palmos/gauge.cpp \
../../src/palmos/gdiimage.cpp \
../../src/palmos/gdiobj.cpp \
../../src/palmos/glcanvas.cpp \
../../src/palmos/help.cpp \
../../src/palmos/icon.cpp \
../../src/palmos/imaglist.cpp \
../../src/palmos/iniconf.cpp \
../../src/palmos/joystick.cpp \
../../src/palmos/listbox.cpp \
../../src/palmos/listctrl.cpp \
../../src/palmos/main.cpp \
../../src/palmos/mdi.cpp \
../../src/palmos/menu.cpp \
../../src/palmos/menuitem.cpp \
../../src/palmos/metafile.cpp \
../../src/palmos/mimetype.cpp \
../../src/palmos/minifram.cpp \
../../src/palmos/msgdlg.cpp \
../../src/palmos/mslu.cpp \
../../src/palmos/nativdlg.cpp \
../../src/palmos/notebook.cpp \
../../src/palmos/ownerdrw.cpp \
../../src/palmos/palette.cpp \
../../src/palmos/pen.cpp \
../../src/palmos/popupwin.cpp \
../../src/palmos/printdlg.cpp \
../../src/palmos/printpalm.cpp \
../../src/palmos/radiobox.cpp \
../../src/palmos/radiobut.cpp \
../../src/palmos/regconf.cpp \
../../src/palmos/region.cpp \
../../src/palmos/registry.cpp \
../../src/palmos/renderer.cpp \
../../src/palmos/scrolbar.cpp \
../../src/palmos/settings.cpp \
../../src/palmos/slider.cpp \
../../src/palmos/snglinst.cpp \
../../src/palmos/sound.cpp \
../../src/palmos/spinbutt.cpp \
../../src/palmos/spinctrl.cpp \
../../src/palmos/statbmp.cpp \
../../src/palmos/statbox.cpp \
../../src/palmos/statusbar.cpp \
../../src/palmos/statline.cpp \
../../src/palmos/stattext.cpp \
../../src/palmos/taskbar.cpp \
../../src/palmos/toolbar.cpp \
../../src/palmos/textctrl.cpp \
../../src/palmos/tglbtn.cpp \
../../src/palmos/thread.cpp \
../../src/palmos/timer.cpp \
../../src/palmos/tooltip.cpp \
../../src/palmos/toplevel.cpp \
../../src/palmos/treectrl.cpp \
../../src/palmos/utils.cpp \
../../src/palmos/utilsexc.cpp \
../../src/palmos/utilsgui.cpp \
../../src/palmos/volume.cpp \
../../src/palmos/window.cpp
RESOURCES = ../../include/wx/palmos/wxWidgets.xrd ../../include/wx/palmos/Version.xrd
DEFS_FILE = ../../include/wx/palmos/wxWidgets.def
SLD_FILE = ../../include/wx/palmos/wxWidgets.sld
## --------------------------------------------------------------------------
# Review Database information
# Register Creator ID at: http://dev.palmos.com/creatorid/
## --------------------------------------------------------------------------
CREATOR_ID = bapp
DB_TYPE = appl
DATABASE_RESET =
DATABASE_BACKUP = -b
DATABASE_HIDDEN =
DATABASE_PROTECT =
DATABASE_VERSION = 1
LOCALE = enUS
DATABASE_NAME = $(APP_NAME)
## --------------------------------------------------------------------------
# Choose SDK
# Supported values:
# sdk-6
## --------------------------------------------------------------------------
SDK_VERSION = sdk-6
ifeq ($(SDK_LOCATION),)
SDK_LOCATION=../../
endif
## --------------------------------------------------------------------------
# Build Settings
# Review the following for your needs.
# The default settings build with debug information and no optimization and
# a target platform of an actual device.
## --------------------------------------------------------------------------
#
# Set Debug or Release configuration for this project via the project
# properties (right-click on the project and select Properties).
#
DEBUG_OR_RELEASE=Debug
#
# Set the target platform for the build; either Device or Simulator
# Use Device as a target for emulator builds.
#
TARGET_PLATFORM=Simulator
# Specify the level of optimization that you want:
# NONE, SOME, FULL, INTRAPROCEDURAL, INTERPROCEDURAL, INLINING.
# Leave blank to select FULL for release builds, and NONE for
# debug builds.
# INTRAPROCEDURAL, INTERPROCEDURAL, INLINING are applicable to
# device builds only; simulator builds will translate those levels
# to FULL.
OPTIMIZE_LEVEL = NONE
# Specify warning level
# NONE = suppress all warnings
# ALL = enable all warnings
# <undefined> = default warnings
WARNING_LEVEL =
# Specify exception handling support
# true = enable it
# false = don't enable it
ENABLE_EXCEPTION_HANDLING=true
# List additional libraries to link with
# (Full or project relative path)
ADDITIONAL_LINK_LIBRARIES =
ADDITIONAL_SIM_LINK_LIBRARIES =
# Additional paths to look for #include "header"
# (Source file directories are automatically included)
# Please note that both local and system include paths should
# either use "cygwin" syntax or if in Windows syntax the should
# be quoted. ie: ../MyLibrary/headers or "C:\Source\MyLibrary\headers"
# Additionally, you must explicly specify the "-I" prior to each
# path included in this variable. Spaces are used to separate
# each path from each other.
LOCAL_INCLUDE_PATHS = -Irsc -I../../include
LOCAL_SIM_INCLUDE_PATHS = -Irsc -I../../include
# Additional paths to look for #include <header>
# (Palm OS SDK directories are automatically included)
# Additionally, you must explicly specify the "-I" prior to each
# path included in this variable. Spaces are used to separate
# each path from each other.
SYSTEM_INCLUDE_PATHS =
SYSTEM_SIM_INCLUDE_PATHS =
# Specify any needed preprocessor symbols.
# If you set DEFINES to "ASSERTLEVEL=1", the compiler will see "-DASSERTLEVEL=1"
# (separate individual entries with spaces)
DEFINES =
SIM_DEFINES =
# Specify additional compiler flags for all files
ADDITIONAL_COMPILER_FLAGS =
ADDITIONAL_SIM_COMPILER_FLAGS =
# Specify additional linker flags
ADDITIONAL_LINKER_FLAGS =
ADDITIONAL_SIM_LINKER_FLAGS =
# Specify additional archival flags (for static libraries)
ADDITIONAL_AR_FLAGS =
ADDITIONAL_SIM_AR_FLAGS =
# Tools Directory
# Normally you wouldn't want to override this since the necessary tools
# are in the PATH. But if you experimenting with other tools, then
# reset the directory here
# If overridden, end with a trailing '/'
ifeq ($(TOOLS_DIR), )
TOOLS_DIR = ../../../PalmOSTools/
endif
## --------------------------------------------------------------------------
# Resource Settings
## --------------------------------------------------------------------------
# Specify the target text encoding
# LATIN, JAPANESE, SIMPLIFIED_CHINESE
TEXTENCODING = LATIN
# Specify error levels for locale and text encoding
# NOCHECK
# STRICT
# <default>
LOCALE_CHECKING =
# Specific if encoding should be checked
# FALSE, TRUE
STRICT_ENCODING = FALSE
## --------------------------------------------------------------------------
# Output Settings
## --------------------------------------------------------------------------
# Modify if you want object and output files to be in different locations
# (However, please note that all three object directories must be different
# for the makefile engine to properly operate.)
# OUTPUT_DIR is the "main" output directory, where all linked and binary objects
# will be put.
DEBUG_DEVICE_OUTPUT_DIR := DebugDevice
RELEASE_DEVICE_OUTPUT_DIR := ReleaseDevice
DEBUG_SIMULATOR_OUTPUT_DIR := DebugSim
RELEASE_SIMULATOR_OUTPUT_DIR := ReleaseSim
RSC_OBJ_DIR := ResourceObjs
## --------------------------------------------------------------------------
# Makefiles
## --------------------------------------------------------------------------
## include the makefile engine
include makefile-engine.mk
## conditionally include your own custom.mk for your specific overrides or definitions
## this is useful if you don't want to use the auto-generated.mk values
## for some reason
-include custom.mk
File diff suppressed because it is too large Load Diff
+66
View File
@@ -0,0 +1,66 @@
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.wxwindows.org/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
+3 -1
View File
@@ -561,7 +561,9 @@ protected:
// ----------------------------------------------------------------------------
#if wxUSE_GUI
#if defined(__WXMSW__)
#if defined(__PALMOS__)
#include "wx/palmos/app.h"
#elif defined(__WXMSW__)
#include "wx/msw/app.h"
#elif defined(__WXMOTIF__)
#include "wx/motif/app.h"
+6 -2
View File
@@ -134,7 +134,9 @@ public:
// NB: test for __UNIX__ before __WXMAC__ as under Darwin we want to use the
// Unix code (and otherwise __UNIX__ wouldn't be defined)
#if defined(__WXMSW__)
#if defined(__PALMOS__)
#include "wx/palmos/apptbase.h"
#elif defined(__WXMSW__)
#include "wx/msw/apptbase.h"
#elif defined(__UNIX__) && !defined(__EMX__)
#include "wx/unix/apptbase.h"
@@ -217,7 +219,9 @@ public:
// include the platform-specific version of the classes above
// ----------------------------------------------------------------------------
#if defined(__WXMSW__)
#if defined(__PALMOS__)
#include "wx/palmos/apptrait.h"
#elif defined(__WXMSW__)
#include "wx/msw/apptrait.h"
#elif defined(__UNIX__) && !defined(__EMX__)
#include "wx/unix/apptrait.h"
+3 -1
View File
@@ -163,7 +163,9 @@ protected:
};
#endif
#if defined(__WXMSW__)
#if defined(__PALMOS__)
#include "wx/palmos/bitmap.h"
#elif defined(__WXMSW__)
#include "wx/msw/bitmap.h"
#elif defined(__WXMOTIF__)
#include "wx/x11/bitmap.h"
+3 -1
View File
@@ -1,7 +1,9 @@
#ifndef _WX_BRUSH_H_BASE_
#define _WX_BRUSH_H_BASE_
#if defined(__WXMSW__)
#if defined(__PALMOS__)
#include "wx/palmos/brush.h"
#elif defined(__WXMSW__)
#include "wx/msw/brush.h"
#elif defined(__WXMOTIF__) || defined(__WXX11__)
#include "wx/x11/brush.h"
+3 -1
View File
@@ -15,7 +15,9 @@
Compiler-specific checking.
*/
#if defined(__WXMSW__)
#if defined(__PALMOS__)
# include "wx/palmos/chkconf.h"
#elif defined(__WXMSW__)
# include "wx/msw/chkconf.h"
#elif defined(__WXMAC__)
# include "wx/mac/chkconf.h"
+3 -1
View File
@@ -1,7 +1,9 @@
#ifndef _WX_COLOUR_H_BASE_
#define _WX_COLOUR_H_BASE_
#if defined(__WXMSW__)
#if defined(__PALMOS__)
#include "wx/palmos/colour.h"
#elif defined(__WXMSW__)
#include "wx/msw/colour.h"
#elif defined(__WXMOTIF__)
#include "wx/motif/colour.h"
+2
View File
@@ -100,6 +100,8 @@ protected:
#if defined(__WXUNIVERSAL__)
#include "wx/univ/control.h"
#elif defined(__PALMOS__)
#include "wx/palmos/control.h"
#elif defined(__WXMSW__)
#include "wx/msw/control.h"
#elif defined(__WXMOTIF__)
+3 -1
View File
@@ -1,7 +1,9 @@
#ifndef _WX_CURSOR_H_BASE_
#define _WX_CURSOR_H_BASE_
#if defined(__WXMSW__)
#if defined(__PALMOS__)
#include "wx/palmos/cursor.h"
#elif defined(__WXMSW__)
#include "wx/msw/cursor.h"
#elif defined(__WXMOTIF__)
#include "wx/motif/cursor.h"
+3 -1
View File
@@ -786,7 +786,9 @@ private:
// now include the declaration of wxDC class
// ----------------------------------------------------------------------------
#if defined(__WXMSW__)
#if defined(__PALMOS__)
#include "wx/palmos/dc.h"
#elif defined(__WXMSW__)
#include "wx/msw/dc.h"
#elif defined(__WXMOTIF__)
#include "wx/motif/dc.h"
+3 -1
View File
@@ -1,7 +1,9 @@
#ifndef _WX_DCCLIENT_H_BASE_
#define _WX_DCCLIENT_H_BASE_
#if defined(__WXMSW__)
#if defined(__PALMOS__)
#include "wx/palmos/dcclient.h"
#elif defined(__WXMSW__)
#include "wx/msw/dcclient.h"
#elif defined(__WXMOTIF__)
#include "wx/motif/dcclient.h"
+3 -1
View File
@@ -1,7 +1,9 @@
#ifndef _WX_DCMEMORY_H_BASE_
#define _WX_DCMEMORY_H_BASE_
#if defined(__WXMSW__)
#if defined(__PALMOS__)
#include "wx/palmos/dcmemory.h"
#elif defined(__WXMSW__)
#include "wx/msw/dcmemory.h"
#elif defined(__WXMOTIF__)
#include "wx/motif/dcmemory.h"
+3 -1
View File
@@ -1,7 +1,9 @@
#ifndef _WX_DCPRINT_H_BASE_
#define _WX_DCPRINT_H_BASE_
#if defined(__WXMSW__)
#if defined(__PALMOS__)
#include "wx/palmos/dcprint.h"
#elif defined(__WXMSW__)
#include "wx/msw/dcprint.h"
#endif
#if defined(__WXPM__)
+3 -1
View File
@@ -1,7 +1,9 @@
#ifndef _WX_DCSCREEN_H_BASE_
#define _WX_DCSCREEN_H_BASE_
#if defined(__WXMSW__)
#if defined(__PALMOS__)
#include "wx/palmos/dcscreen.h"
#elif defined(__WXMSW__)
#include "wx/msw/dcscreen.h"
#elif defined(__WXMOTIF__)
#include "wx/motif/dcscreen.h"
+3 -1
View File
@@ -71,7 +71,9 @@ protected:
#if defined(__WXUNIVERSAL__) && !defined(__WXMICROWIN__)
#include "wx/univ/dialog.h"
#else
#if defined(__WXMSW__)
#if defined(__PALMOS__)
#include "wx/palmos/dialog.h"
#elif defined(__WXMSW__)
#include "wx/msw/dialog.h"
#elif defined(__WXMOTIF__)
#include "wx/motif/dialog.h"
+2 -1
View File
@@ -35,6 +35,7 @@
struct WXDLLEXPORT wxNativeEncodingInfo
{
wxString facename; // may be empty meaning "any"
#ifndef __PALMOS__
wxFontEncoding encoding; // so that we know what this struct represents
#if defined(__WXMSW__) || \
@@ -60,7 +61,7 @@ struct WXDLLEXPORT wxNativeEncodingInfo
#else
#error "Unsupported toolkit"
#endif
#endif
// 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);
+3 -1
View File
@@ -72,7 +72,9 @@ protected:
// can sometimes be very useful (e.g. under MSW this is necessary for
// integration with MFC) but currently this is done for MSW only, other ports
// should follow a.s.a.p.
#ifdef __WXMSW__
#if defined(__PALMOS__)
#include "wx/palmos/evtloop.h"
#elif defined(__WXMSW__)
#include "wx/msw/evtloop.h"
#else
+3 -1
View File
@@ -174,7 +174,9 @@ enum wxSeekMode
// detect compilers which have support for huge files (currently only
// Digital Mars doesn't)
#ifndef __PALMOS__
#include "wx/msw/private.h"
#endif
#undef wxHAS_HUGE_FILES
#if defined(__MINGW32__)
@@ -300,7 +302,7 @@ enum wxSeekMode
#endif
// constants (unless already defined by the user code)
#if !defined(__BORLANDC__) && !defined(__WATCOMC__)
#if !defined(__BORLANDC__) && !defined(__WATCOMC__) && !defined(__PALMOS__)
#ifndef O_RDONLY
#define O_RDONLY _O_RDONLY
#define O_WRONLY _O_WRONLY
+3 -1
View File
@@ -231,7 +231,9 @@ private:
};
// include the real class declaration
#if defined(__WXMSW__)
#if defined(__PALMOS__)
#include "wx/palmos/font.h"
#elif defined(__WXMSW__)
#include "wx/msw/font.h"
#elif defined(__WXMOTIF__)
#include "wx/motif/font.h"
+2 -2
View File
@@ -26,7 +26,7 @@
#include "wx/font.h" // for wxFont and wxFontEncoding
#if defined(__WXMSW__)
#if defined(__WXMSW__) && !defined(__PALMOS__)
#include "wx/msw/wrapwin.h"
#endif
@@ -109,7 +109,7 @@ public:
// set the XFLD
void SetXFontName(const wxString& xFontName);
#elif defined(__WXMSW__)
#elif defined(__WXMSW__) && !defined(__PALMOS__)
LOGFONT lf;
#elif defined(__WXPM__)
// OS/2 native structures that define a font
+3 -1
View File
@@ -250,7 +250,9 @@ protected:
#if defined(__WXUNIVERSAL__) // && !defined(__WXMICROWIN__)
#include "wx/univ/frame.h"
#else // !__WXUNIVERSAL__
#if defined(__WXMSW__)
#if defined(__PALMOS__)
#include "wx/palmos/frame.h"
#elif defined(__WXMSW__)
#include "wx/msw/frame.h"
#elif defined(__WXGTK__)
#include "wx/gtk/frame.h"
+3 -1
View File
@@ -1,7 +1,9 @@
#ifndef _WX_GDIOBJ_H_BASE_
#define _WX_GDIOBJ_H_BASE_
#if defined(__WXMSW__)
#if defined(__PALMOS__)
#include "wx/palmos/gdiobj.h"
#elif defined(__WXMSW__)
#include "wx/msw/gdiobj.h"
#elif defined(__WXMOTIF__)
#include "wx/motif/gdiobj.h"
+4
View File
@@ -9,6 +9,10 @@
#include "wx/msw/wince/helpwce.h"
#define wxHelpController wxWinceHelpController
#elif defined(__PALMOS__)
#include "wx/palmos/help.h"
#define wxHelpController wxPalmHelpController
#elif defined(__WXMSW__)
#include "wx/msw/helpwin.h"
+3 -1
View File
@@ -3,7 +3,9 @@
#include "wx/iconloc.h"
#if defined(__WXMSW__)
#if defined(__PALMOS__)
#include "wx/palmos/icon.h"
#elif defined(__WXMSW__)
#include "wx/msw/icon.h"
#elif defined(__WXMOTIF__)
#include "wx/motif/icon.h"
+2
View File
@@ -498,6 +498,8 @@ protected:
#else // !wxUSE_BASE_CLASSES_ONLY
#if defined(__WXUNIVERSAL__)
#include "wx/univ/menu.h"
#elif defined(__PALMOS__)
#include "wx/palmos/menu.h"
#elif defined(__WXMSW__)
#include "wx/msw/menu.h"
#elif defined(__WXMOTIF__)
+2
View File
@@ -155,6 +155,8 @@ private:
#else // !wxUSE_BASE_CLASSES_ONLY
#if defined(__WXUNIVERSAL__)
#include "wx/univ/menuitem.h"
#elif defined(__PALMOS__)
#include "wx/palmos/menuitem.h"
#elif defined(__WXMSW__)
#include "wx/msw/menuitem.h"
#elif defined(__WXMOTIF__)
+8
View File
@@ -21,7 +21,11 @@
#if defined(__WXMSW__)
#if wxUSE_ENH_METAFILE
#if defined(__PALMOS__)
#include "wx/palmos/enhmeta.h"
#else
#include "wx/msw/enhmeta.h"
#endif
// map all metafile classes to enh metafile
#if !wxUSE_WIN_METAFILES_ALWAYS
@@ -34,8 +38,12 @@
#define wxMETAFILE_IS_ENH
#endif // wxUSE_WIN_METAFILES_ALWAYS
#else // !wxUSE_ENH_METAFILE
#if defined(__PALMOS__)
#include "wx/palmos/metafile.h"
#else
#include "wx/msw/metafile.h"
#endif
#endif
#elif defined(__WXPM__)
#include "wx/os2/metafile.h"
#elif defined(__WXMAC__)
+3 -1
View File
@@ -1,7 +1,9 @@
#ifndef _WX_MINIFRAM_H_BASE_
#define _WX_MINIFRAMH_BASE_
#if defined(__WXMSW__)
#if defined(__PALMOS__)
#include "wx/palmos/minifram.h"
#elif defined(__WXMSW__)
#include "wx/msw/minifram.h"
#elif defined(__WXMOTIF__)
#include "wx/motif/minifram.h"
+2
View File
@@ -7,6 +7,8 @@
#if defined(__WXUNIVERSAL__) || defined(__WXGPE__)
#include "wx/generic/msgdlgg.h"
#elif defined(__PALMOS__)
#include "wx/palmos/msgdlg.h"
#elif defined(__WXMSW__)
#include "wx/msw/msgdlg.h"
#elif defined(__WXMOTIF__)
+94
View File
@@ -0,0 +1,94 @@
// 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
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

+9
View File
@@ -0,0 +1,9 @@
<?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>
+58
View File
@@ -0,0 +1,58 @@
/////////////////////////////////////////////////////////////////////////////
// Name: wx/palmos/accel.h
// Purpose: wxAcceleratorTable class
// Author: William Osborne
// Modified by:
// Created: 10/13/04
// RCS-ID: $Id:
// Copyright: (c) William Osborne
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#ifndef _WX_ACCEL_H_
#define _WX_ACCEL_H_
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma interface "accel.h"
#endif
// ----------------------------------------------------------------------------
// the accel table has all accelerators for a given window or menu
// ----------------------------------------------------------------------------
class WXDLLEXPORT wxAcceleratorTable : public wxObject
{
public:
// default ctor
wxAcceleratorTable();
// copy ctor
wxAcceleratorTable(const wxAcceleratorTable& accel) { Ref(accel); }
// load from .rc resource (Windows specific)
wxAcceleratorTable(const wxString& resource);
// initialize from array
wxAcceleratorTable(int n, const wxAcceleratorEntry entries[]);
virtual ~wxAcceleratorTable();
wxAcceleratorTable& operator = (const wxAcceleratorTable& accel) { if ( *this != accel ) Ref(accel); return *this; }
bool operator==(const wxAcceleratorTable& accel) const
{ return m_refData == accel.m_refData; } // FIXME: this is wrong (VZ)
bool operator!=(const wxAcceleratorTable& accel) const
{ return !(*this == accel); }
bool Ok() 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_
+117
View File
@@ -0,0 +1,117 @@
/////////////////////////////////////////////////////////////////////////////
// Name: app.h
// Purpose: wxApp class
// Author: William Osborne
// Modified by:
// Created: 10/17/04
// RCS-ID: $Id:
// Copyright: (c) William Osborne
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#ifndef _WX_APP_H_
#define _WX_APP_H_
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma interface "app.h"
#endif
#include "wx/event.h"
#include "wx/icon.h"
class WXDLLIMPEXP_CORE wxFrame;
class WXDLLIMPEXP_CORE wxWindow;
class WXDLLIMPEXP_CORE wxApp;
class WXDLLIMPEXP_CORE wxKeyEvent;
class WXDLLIMPEXP_BASE wxLog;
// Represents the application. Derive OnInit and declare
// a new App object to start application
class WXDLLEXPORT 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 bool Yield(bool onlyIfNeeded = false);
virtual void WakeUpIdle();
virtual void SetPrintMode(int mode) { m_printMode = mode; }
virtual int GetPrintMode() const { return m_printMode; }
// implementation only
void OnIdle(wxIdleEvent& event);
void OnEndSession(wxCloseEvent& event);
void OnQueryEndSession(wxCloseEvent& event);
#if wxUSE_EXCEPTIONS
virtual bool OnExceptionInMainLoop();
#endif // wxUSE_EXCEPTIONS
// deprecated functions, use wxEventLoop directly instead
#if WXWIN_COMPATIBILITY_2_4
wxDEPRECATED( void DoMessage(WXMSG *pMsg) );
wxDEPRECATED( bool DoMessage() );
wxDEPRECATED( bool ProcessMessage(WXMSG* pMsg) );
#endif // WXWIN_COMPATIBILITY_2_4
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()
DECLARE_NO_COPY_CLASS(wxApp)
};
// ----------------------------------------------------------------------------
// Palm OS specific wxEntry() overload and IMPLEMENT_WXWIN_MAIN definition
// ----------------------------------------------------------------------------
#ifndef SW_SHOWNORMAL
#define SW_SHOWNORMAL 1
#endif
extern int WXDLLEXPORT
wxEntry();
#include <PalmOS.h>
#define IMPLEMENT_WXWIN_MAIN \
uint32_t PilotMain(uint16_t cmd, MemPtr cmdPBP, uint16_t launchFlags) \
{ \
switch (cmd) { \
case sysAppLaunchCmdNormalLaunch: \
wxEntry(); \
break; \
default: \
break; \
} \
return errNone; \
}
#endif // _WX_APP_H_
+54
View File
@@ -0,0 +1,54 @@
///////////////////////////////////////////////////////////////////////////////
// Name: wx/palmos/apptbase.h
// Purpose: declaration of wxAppTraits for Palm OS
// Author: William Osborne
// 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: the MSW version adds extra hooks needed by MSW-only code
// ----------------------------------------------------------------------------
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;
// process pending Windows messages, even in console app
virtual void AlwaysYield() = 0;
// called after starting to wait for the child termination, the parameter
// is the return value of BeforeChildWaitLoop()
virtual void AfterChildWaitLoop(void *data) = 0;
// 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;
// other miscellaneous helpers
// ---------------------------
// under MSW this function returns same version for both console and GUI
// applications so we can implement it directly in the base class and only
// override it wxGUIAppTraits to fill in toolkit information
virtual wxToolkitInfo& GetToolkitInfo();
};
#endif // _WX_PALMOS_APPTBASE_H_
+45
View File
@@ -0,0 +1,45 @@
///////////////////////////////////////////////////////////////////////////////
// Name: wx/palmos/apptrait.h
// Purpose: class implementing wxAppTraits for Palm OS
// Author: William Osborne
// Modified by:
// Created: 10/13/04
// RCS-ID: $Id:
// Copyright: (c) William Osborne
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
#ifndef _WX_MSW_APPTRAIT_H_
#define _WX_MSW_APPTRAIT_H_
// ----------------------------------------------------------------------------
// wxGUI/ConsoleAppTraits: must derive from wxAppTraits, not wxAppTraitsBase
// ----------------------------------------------------------------------------
class WXDLLIMPEXP_BASE wxConsoleAppTraits : public wxConsoleAppTraitsBase
{
public:
virtual void *BeforeChildWaitLoop();
virtual void AlwaysYield();
virtual void AfterChildWaitLoop(void *data);
virtual bool DoMessageFromThreadWait();
};
#if wxUSE_GUI
class WXDLLIMPEXP_CORE wxGUIAppTraits : public wxGUIAppTraitsBase
{
public:
virtual void *BeforeChildWaitLoop();
virtual void AlwaysYield();
virtual void AfterChildWaitLoop(void *data);
virtual bool DoMessageFromThreadWait();
virtual wxToolkitInfo& GetToolkitInfo();
};
#endif // wxUSE_GUI
#endif // _WX_MSW_APPTRAIT_H_
+293
View File
@@ -0,0 +1,293 @@
/////////////////////////////////////////////////////////////////////////////
// Name: wx/palmos/bitmap.h
// Purpose: wxBitmap class
// Author: William Osborne
// Modified by:
// Created: 10/13/04
// RCS-ID: $Id:
// Copyright: (c) William Osborne
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#ifndef _WX_BITMAP_H_
#define _WX_BITMAP_H_
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma interface "bitmap.h"
#endif
#include "wx/palmos/gdiimage.h"
#include "wx/gdicmn.h"
#include "wx/palette.h"
class WXDLLEXPORT wxBitmap;
class WXDLLEXPORT wxBitmapHandler;
class WXDLLEXPORT wxBitmapRefData;
class WXDLLEXPORT wxControl;
class WXDLLEXPORT wxCursor;
class WXDLLEXPORT wxDC;
#if wxUSE_WXDIB
class WXDLLEXPORT wxDIB;
#endif
class WXDLLEXPORT wxIcon;
class WXDLLEXPORT wxImage;
class WXDLLEXPORT wxMask;
class WXDLLEXPORT wxPalette;
class WXDLLEXPORT wxPixelDataBase;
// ----------------------------------------------------------------------------
// wxBitmap: a mono or colour bitmap
// ----------------------------------------------------------------------------
class WXDLLEXPORT wxBitmap : public wxGDIImage
{
public:
// default ctor creates an invalid bitmap, you must Create() it later
wxBitmap() { Init(); }
// Copy constructors
wxBitmap(const wxBitmap& bitmap) { Init(); Ref(bitmap); }
// Initialize with raw data
wxBitmap(const char bits[], int width, int height, int depth = 1);
// Initialize with XPM data
wxBitmap(const char **data) { CreateFromXpm(data); }
wxBitmap(char **data) { CreateFromXpm((const char **)data); }
// Load a file or resource
wxBitmap(const wxString& name, wxBitmapType type = wxBITMAP_TYPE_BMP_RESOURCE);
// New constructor for generalised creation from data
wxBitmap(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);
// 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 wxBitmap& bitmap)
{
if ( m_refData != bitmap.m_refData )
Ref(bitmap);
return *this;
}
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;
#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 = -1);
virtual bool Create(int width, int height, const wxDC& dc);
virtual bool Create(void *data, long type, int width, int height, int depth = 1);
virtual bool LoadFile(const wxString& name, long type = wxBITMAP_TYPE_BMP_RESOURCE);
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);
bool operator==(const wxBitmap& bitmap) const { return m_refData == bitmap.m_refData; }
bool operator!=(const wxBitmap& bitmap) const { return m_refData != bitmap.m_refData; }
// these functions are internal and shouldn't be used, they risk to
// disappear in the future
bool HasAlpha() const;
void UseAlpha();
#if WXWIN_COMPATIBILITY_2_4
// these functions do nothing and are only there for backwards
// compatibility
wxDEPRECATED( int GetQuality() const );
wxDEPRECATED( void SetQuality(int quality) );
#endif // WXWIN_COMPATIBILITY_2_4
// implementation only from now on
// -------------------------------
public:
void SetHBITMAP(WXHBITMAP bmp) { SetHandle((WXHANDLE)bmp); }
WXHBITMAP GetHBITMAP() const { return (WXHBITMAP)GetHandle(); }
#ifdef __WXDEBUG__
void SetSelectedInto(wxDC *dc);
wxDC *GetSelectedInto() const;
#endif // __WXDEBUG__
protected:
// common part of all ctors
void Init();
virtual wxGDIImageRefData *CreateData() const;
// creates the bitmap from XPM data, supposed to be called from ctor
bool CreateFromXpm(const char **bits);
// 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:
#ifdef __WIN32__
// common part of CopyFromIcon/CopyFromCursor for Win32
bool CopyFromIconOrCursor(const wxGDIImage& icon);
#endif // __WIN32__
DECLARE_DYNAMIC_CLASS(wxBitmap)
};
// ----------------------------------------------------------------------------
// wxMask: a mono bitmap used for drawing bitmaps transparently.
// ----------------------------------------------------------------------------
class WXDLLEXPORT 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 WXDLLEXPORT 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,
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,
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_
+65
View File
@@ -0,0 +1,65 @@
/////////////////////////////////////////////////////////////////////////////
// Name: bmpbuttn.h
// Purpose: wxBitmapButton class
// Author: William Osborne
// Modified by:
// Created: 10/13/04
// RCS-ID: $Id:
// Copyright: (c) William Osborne
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#ifndef _WX_BMPBUTTN_H_
#define _WX_BMPBUTTN_H_
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma interface "bmpbuttn.h"
#endif
#include "wx/button.h"
#include "wx/bitmap.h"
#define wxDEFAULT_BUTTON_MARGIN 4
class WXDLLEXPORT 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 SetDefault();
virtual bool MSWOnDraw(WXDRAWITEMSTRUCT *item);
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_
+65
View File
@@ -0,0 +1,65 @@
/////////////////////////////////////////////////////////////////////////////
// Name: wx/palmos/brush.h
// Purpose: wxBrush class
// Author: William Osborne
// Modified by:
// Created: 10/13/04
// RCS-ID: $Id:
// Copyright: (c) William Osborne
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#ifndef _WX_BRUSH_H_
#define _WX_BRUSH_H_
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma interface "brush.h"
#endif
#include "wx/gdicmn.h"
#include "wx/gdiobj.h"
#include "wx/bitmap.h"
class WXDLLEXPORT wxBrush;
// ----------------------------------------------------------------------------
// wxBrush
// ----------------------------------------------------------------------------
class WXDLLEXPORT wxBrush : public wxGDIObject
{
public:
wxBrush();
wxBrush(const wxColour& col, int style = wxSOLID);
wxBrush(const wxBitmap& stipple);
wxBrush(const wxBrush& brush) { Ref(brush); }
virtual ~wxBrush();
virtual void SetColour(const wxColour& col);
virtual void SetColour(unsigned char r, unsigned char g, unsigned char b);
virtual void SetStyle(int style);
virtual void SetStipple(const wxBitmap& stipple);
wxBrush& operator=(const wxBrush& brush);
bool operator==(const wxBrush& brush) const;
bool operator!=(const wxBrush& brush) const { return !(*this == brush); }
wxColour GetColour() const;
int GetStyle() const;
wxBitmap *GetStipple() const;
bool Ok() const { return m_refData != NULL; }
// return the HBRUSH for this brush
virtual WXHANDLE GetResourceHandle() const;
protected:
virtual wxObjectRefData *CreateRefData() const;
virtual wxObjectRefData *CloneRefData(const wxObjectRefData *data) const;
private:
DECLARE_DYNAMIC_CLASS(wxBrush)
};
#endif
// _WX_BRUSH_H_
+94
View File
@@ -0,0 +1,94 @@
/////////////////////////////////////////////////////////////////////////////
// Name: wx/palmos/button.h
// Purpose: wxButton class
// Author: William Osborne
// Modified by:
// Created: 10/13/04
// RCS-ID: $Id:
// Copyright: (c) William Osborne
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#ifndef _WX_BUTTON_H_
#define _WX_BUTTON_H_
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma interface "button.h"
#endif
// ----------------------------------------------------------------------------
// Pushbutton
// ----------------------------------------------------------------------------
class WXDLLEXPORT wxButton : public wxButtonBase
{
public:
wxButton() { }
wxButton(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)
{
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 void SetDefault();
// implementation from now on
virtual void Command(wxCommandEvent& event);
virtual WXLRESULT MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam);
virtual bool MSWCommand(WXUINT param, WXWORD id);
virtual void ApplyParentThemeBackground(const wxColour& bg)
{
// avoide switching into owner-drawn mode
wxControl::SetBackgroundColour(bg);
}
#ifdef __WIN32__
// coloured buttons support
virtual bool SetBackgroundColour(const wxColour &colour);
virtual bool SetForegroundColour(const wxColour &colour);
virtual bool MSWOnDraw(WXDRAWITEMSTRUCT *item);
private:
void MakeOwnerDrawn();
#endif // __WIN32__
protected:
// send a notification event, return TRUE if processed
bool SendClickEvent();
// 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;
virtual WXDWORD MSWGetStyle(long style, WXDWORD *exstyle) const ;
private:
DECLARE_DYNAMIC_CLASS_NO_COPY(wxButton)
};
#endif
// _WX_BUTTON_H_
+68
View File
@@ -0,0 +1,68 @@
///////////////////////////////////////////////////////////////////////////////
// Name: palmos/caret.h
// Purpose: wxCaret class - the Palm OS implementation of wxCaret
// Author: William Osborne
// Modified by:
// Created: 10/13/04
// RCS-ID: $Id:
// Copyright: (c) William Osborne
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
#ifndef _WX_CARET_H_
#define _WX_CARET_H_
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma interface "caret.h"
#endif
class WXDLLEXPORT 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;
DECLARE_NO_COPY_CLASS(wxCaret)
};
#endif // _WX_CARET_H_
+65
View File
@@ -0,0 +1,65 @@
/////////////////////////////////////////////////////////////////////////////
// Name: wx/palmos/checkbox.h
// Purpose: wxCheckBox class
// Author: William Osborne
// Modified by:
// Created: 10/13/04
// RCS-ID: $Id:
// Copyright: (c) William Osborne
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#ifndef _WX_CHECKBOX_H_
#define _WX_CHECKBOX_H_
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma interface "checkbox.h"
#endif
// Checkbox item (single checkbox)
class WXDLLEXPORT 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 SetLabel(const wxString& label);
virtual bool MSWCommand(WXUINT param, WXWORD id);
virtual void Command(wxCommandEvent& event);
protected:
virtual wxSize DoGetBestSize() const;
virtual void DoSet3StateValue(wxCheckBoxState value);
virtual wxCheckBoxState DoGet3StateValue() const;
private:
DECLARE_DYNAMIC_CLASS_NO_COPY(wxCheckBox)
};
#endif
// _WX_CHECKBOX_H_
+98
View File
@@ -0,0 +1,98 @@
///////////////////////////////////////////////////////////////////////////////
// Name: checklst.h
// Purpose: wxCheckListBox class - a listbox with checkable items
// Author: William Osborne
// Modified by:
// Created: 10/13/04
// RCS-ID: $Id:
// Copyright: (c) William Osborne
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
#ifndef __CHECKLST__H_
#define __CHECKLST__H_
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma interface "checklst.h"
#endif
#if !wxUSE_OWNER_DRAWN
#error "wxCheckListBox class requires owner-drawn functionality."
#endif
class WXDLLEXPORT wxOwnerDrawn;
class WXDLLEXPORT wxCheckListBoxItem; // fwd decl, defined in checklst.cpp
class WXDLLEXPORT 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(int n);
virtual bool SetFont( const wxFont &font );
// items may be checked
virtual bool IsChecked(size_t uiIndex) const;
virtual void Check(size_t 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
+118
View File
@@ -0,0 +1,118 @@
/*
* Name: wx/palmos/chkconf.h
* Purpose: Compiler-specific configuration checking
* Author: William Osborne
* Modified by:
* 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 don't work for some compilers
*/
/*
* If using PostScript-in-MSW in Univ, must enable PostScript
*/
#if defined(__WXUNIVERSAL__) && wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW && !wxUSE_POSTSCRIPT
#undef wxUSE_POSTSCRIPT
#define wxUSE_POSTSCRIPT 1
#endif
#ifndef wxUSE_NORLANDER_HEADERS
#if (defined(__WATCOMC__) && (__WATCOMC__ >= 1200)) || defined(__WINE__) || ((defined(__MINGW32__) || defined(__CYGWIN__)) && ((__GNUC__>2) ||((__GNUC__==2) && (__GNUC_MINOR__>=95))))
# define wxUSE_NORLANDER_HEADERS 1
#else
# define wxUSE_NORLANDER_HEADERS 0
#endif
#endif
/*
* GCC does not have SEH (__try/__catch)
*/
#if defined(__GNUG__)
#undef wxUSE_ON_FATAL_EXCEPTION
#define wxUSE_ON_FATAL_EXCEPTION 0
#endif
/*
* wxUSE_DEBUG_NEW_ALWAYS doesn't work with CodeWarrior
*/
#if defined(__MWERKS__)
#undef wxUSE_DEBUG_NEW_ALWAYS
#define wxUSE_DEBUG_NEW_ALWAYS 0
#endif
#if defined(__GNUWIN32__)
/* These don't work as expected for mingw32 and cygwin32 */
#undef wxUSE_MEMORY_TRACING
#define wxUSE_MEMORY_TRACING 0
#undef wxUSE_GLOBAL_MEMORY_OPERATORS
#define wxUSE_GLOBAL_MEMORY_OPERATORS 0
#undef wxUSE_DEBUG_NEW_ALWAYS
#define wxUSE_DEBUG_NEW_ALWAYS 0
/* Cygwin betas don't have wcslen */
#if defined(__CYGWIN__) || defined(__CYGWIN32__)
# if ! ((__GNUC__>2) ||((__GNUC__==2) && (__GNUC_MINOR__>=95)))
# undef wxUSE_WCHAR_T
# define wxUSE_WCHAR_T 0
# endif
#endif
#endif
/* __GNUWIN32__ */
/* MFC duplicates these operators */
#if wxUSE_MFC
#undef wxUSE_GLOBAL_MEMORY_OPERATORS
#define wxUSE_GLOBAL_MEMORY_OPERATORS 0
#undef wxUSE_DEBUG_NEW_ALWAYS
#define wxUSE_DEBUG_NEW_ALWAYS 0
#endif
/* wxUSE_MFC */
#if (defined(__GNUWIN32__) && !wxUSE_NORLANDER_HEADERS)
/* GnuWin32 doesn't have appropriate headers for e.g. IUnknown. */
#undef wxUSE_DRAG_AND_DROP
#define wxUSE_DRAG_AND_DROP 0
#endif
#if !wxUSE_OWNER_DRAWN
#undef wxUSE_CHECKLISTBOX
#define wxUSE_CHECKLISTBOX 0
#endif
#if defined(__BORLANDC__) && (__BORLANDC__ < 0x500)
/* BC++ 4.0 can't compile JPEG library */
#undef wxUSE_LIBJPEG
#define wxUSE_LIBJPEG 0
#endif
/* wxUSE_DEBUG_NEW_ALWAYS = 1 not compatible with BC++ in DLL mode */
#if defined(__BORLANDC__) && (defined(WXMAKINGDLL) || defined(WXUSINGDLL))
#undef wxUSE_DEBUG_NEW_ALWAYS
#define wxUSE_DEBUG_NEW_ALWAYS 0
#endif
#if defined(__WXMSW__) && (defined(__WATCOMC__) && __WATCOMC__ < 1200)
#undef wxUSE_WCHAR_T
#define wxUSE_WCHAR_T 0
#endif
#endif
/* _WX_PALMOS_CHKCONF_H_ */

Some files were not shown because too many files have changed in this diff Show More