Compare commits
7 Commits
OLD_CONFIG
...
NEW_CONFIG
Author | SHA1 | Date | |
---|---|---|---|
|
26b3895c31 | ||
|
e96ddf25ad | ||
|
9a648dc916 | ||
|
7b46ecac64 | ||
|
bcf1fa6bb4 | ||
|
8429bec1e8 | ||
|
2f2aa6287b |
2
Makefile
2
Makefile
@@ -58,7 +58,7 @@ user::
|
|||||||
makefiles:: recreate
|
makefiles:: recreate
|
||||||
Makefiles:: recreate
|
Makefiles:: recreate
|
||||||
recreate::
|
recreate::
|
||||||
@install/unix/setup/general/createall
|
@setup/general/createall
|
||||||
|
|
||||||
# the following ones define what needs to be done to distribute the
|
# the following ones define what needs to be done to distribute the
|
||||||
# library and its components
|
# library and its components
|
||||||
|
0
install/unix/config.sub → config.sub
vendored
0
install/unix/config.sub → config.sub
vendored
2426
install/unix/configure → configure
vendored
2426
install/unix/configure → configure
vendored
File diff suppressed because it is too large
Load Diff
@@ -14,9 +14,9 @@ AC_DEFUN(AM_PATH_GTK,
|
|||||||
[dnl
|
[dnl
|
||||||
dnl Get the cflags and libraries from the gtk-config script
|
dnl Get the cflags and libraries from the gtk-config script
|
||||||
dnl
|
dnl
|
||||||
AC_ARG_WITH(gtk-prefix,[ --with-gtk-prefix=PFX Prefix where GTK is installed (optional)],
|
AC_ARG_WITH(gtk-prefix,[**--with-gtk-prefix=PFX Prefix where GTK is installed],
|
||||||
gtk_config_prefix="$withval", gtk_config_prefix="")
|
gtk_config_prefix="$withval", gtk_config_prefix="")
|
||||||
AC_ARG_WITH(gtk-exec-prefix,[ --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)],
|
AC_ARG_WITH(gtk-exec-prefix,[**--with-gtk-exec-prefix=PFX Exec prefix where GTK is installed],
|
||||||
gtk_config_exec_prefix="$withval", gtk_config_exec_prefix="")
|
gtk_config_exec_prefix="$withval", gtk_config_exec_prefix="")
|
||||||
|
|
||||||
if test x$gtk_config_exec_prefix != x ; then
|
if test x$gtk_config_exec_prefix != x ; then
|
||||||
@@ -226,9 +226,7 @@ dnl ------------------------------------------------------------------------
|
|||||||
dnl Set base directory
|
dnl Set base directory
|
||||||
dnl ------------------------------------------------------------------------
|
dnl ------------------------------------------------------------------------
|
||||||
|
|
||||||
cd ../..
|
|
||||||
WXBASEDIR=`pwd`
|
WXBASEDIR=`pwd`
|
||||||
cd install/unix
|
|
||||||
AC_SUBST(WXBASEDIR)
|
AC_SUBST(WXBASEDIR)
|
||||||
|
|
||||||
dnl ------------------------------------------------------------------------
|
dnl ------------------------------------------------------------------------
|
||||||
@@ -655,62 +653,70 @@ DEFAULT_USE_DEBUG_FLAG=0
|
|||||||
DEFAULT_USE_DEBUG_INFO=0
|
DEFAULT_USE_DEBUG_INFO=0
|
||||||
DEFAULT_USE_MEM_TRACING=0
|
DEFAULT_USE_MEM_TRACING=0
|
||||||
DEFAULT_USE_DMALLOC=0
|
DEFAULT_USE_DMALLOC=0
|
||||||
|
DEFAULT_USE_APPLE_IEEE=1
|
||||||
|
DEFAULT_USE_IOSTREAMH=1
|
||||||
|
|
||||||
DEFAULT_USE_ZLIB=1
|
DEFAULT_USE_ZLIB=1
|
||||||
DEFAULT_USE_GDK_IMLIB=1
|
DEFAULT_USE_GDK_IMLIB=1
|
||||||
DEFAULT_USE_LIBPNG=1
|
DEFAULT_USE_LIBPNG=1
|
||||||
DEFAULT_USE_ODBC=1
|
DEFAULT_USE_ODBC=1
|
||||||
|
|
||||||
DEFAULT_USE_APPLE_IEEE=1
|
|
||||||
DEFAULT_USE_STORABLE_CLASSES=1
|
|
||||||
DEFAULT_USE_AUTOTRANS=1
|
|
||||||
DEFAULT_USE_AFM_FOR_POSTSCRIPT=1
|
|
||||||
DEFAULT_WX_NORMALIZED_PS_FONTS=1
|
|
||||||
|
|
||||||
DEFAULT_USE_IOSTREAMH=1
|
|
||||||
|
|
||||||
DEFAULT_USE_OPENGL=0
|
|
||||||
|
|
||||||
DEFAULT_USE_WXCONFIG=1
|
|
||||||
DEFAULT_USE_POSTSCRIPT=1
|
|
||||||
DEFAULT_USE_IPC=1
|
|
||||||
DEFAULT_USE_RESOURCES=1
|
|
||||||
DEFAULT_USE_TIMEDATE=1
|
|
||||||
DEFAULT_USE_FRACTION=1
|
|
||||||
DEFAULT_USE_CONSTRAINTS=1
|
|
||||||
DEFAULT_USE_TOOLBAR=1
|
|
||||||
DEFAULT_USE_GAUGE=1
|
DEFAULT_USE_GAUGE=1
|
||||||
DEFAULT_USE_SCROLLBAR=1
|
DEFAULT_USE_SCROLLBAR=1
|
||||||
|
DEFAULT_USE_LISTCTRL=1
|
||||||
|
DEFAULT_USE_TREECTRL=1
|
||||||
|
DEFAULT_USE_GRID=1
|
||||||
|
DEFAULT_USE_TAB_DIALOG=1
|
||||||
|
DEFAULT_USE_NOTEBOOK=1
|
||||||
|
|
||||||
|
DEFAULT_USE_TIMEDATE=1
|
||||||
|
DEFAULT_USE_FRACTION=1
|
||||||
|
DEFAULT_USE_LOG=1
|
||||||
|
DEFAULT_USE_INTL=1
|
||||||
|
DEFAULT_USE_CONFIG=1
|
||||||
|
DEFAULT_USE_STREAMS=1
|
||||||
|
DEFAULT_USE_SERIAL=1
|
||||||
|
DEFAULT_USE_FILE=1
|
||||||
|
DEFAULT_USE_TEXTFILE=1
|
||||||
|
|
||||||
|
DEFAULT_USE_AFM_FOR_POSTSCRIPT=1
|
||||||
|
DEFAULT_WX_NORMALIZED_PS_FONTS=1
|
||||||
|
DEFAULT_USE_POSTSCRIPT=1
|
||||||
|
|
||||||
|
DEFAULT_USE_IPC=1
|
||||||
|
DEFAULT_USE_RESOURCES=1
|
||||||
|
DEFAULT_USE_CONSTRAINTS=1
|
||||||
|
DEFAULT_USE_CLIPBOARD=0
|
||||||
|
DEFAULT_USE_DND=1
|
||||||
|
|
||||||
|
DEFAULT_USE_MDI_ARCHITECTURE=1
|
||||||
DEFAULT_USE_DOC_VIEW_ARCHITECTURE=1
|
DEFAULT_USE_DOC_VIEW_ARCHITECTURE=1
|
||||||
DEFAULT_USE_PRINTING_ARCHITECTURE=1
|
DEFAULT_USE_PRINTING_ARCHITECTURE=1
|
||||||
|
|
||||||
|
DEFAULT_USE_PROLOGIO=1
|
||||||
|
DEFAULT_USE_WX_RESOURCES=1
|
||||||
|
DEFAULT_USE_RPC=0
|
||||||
|
|
||||||
|
DEFAULT_USE_OPENGL=0
|
||||||
DEFAULT_USE_METAFILE=0
|
DEFAULT_USE_METAFILE=0
|
||||||
DEFAULT_USE_HELP=0
|
|
||||||
DEFAULT_USE_CLIPBOARD=0
|
|
||||||
DEFAULT_USE_VLBOX=0
|
|
||||||
DEFAULT_USE_WXGRAPH=0
|
DEFAULT_USE_WXGRAPH=0
|
||||||
DEFAULT_USE_WXTREE=0
|
DEFAULT_USE_WXTREE=0
|
||||||
DEFAULT_USE_ENHANCED_DIALOG=0
|
DEFAULT_USE_HELP=0
|
||||||
|
|
||||||
DEFAULT_USE_FORM=0
|
|
||||||
DEFAULT_USE_PROLOGIO=1
|
|
||||||
DEFAULT_USE_RPC=0
|
|
||||||
DEFAULT_USE_WX_RESOURCES=1
|
|
||||||
|
|
||||||
dnl ----------------------------------------------------------------
|
dnl ----------------------------------------------------------------
|
||||||
dnl toolkit options
|
dnl toolkit options
|
||||||
dnl ----------------------------------------------------------------
|
dnl ----------------------------------------------------------------
|
||||||
|
|
||||||
AC_OVERRIDES(gtk,gtk,
|
AC_OVERRIDES(gtk,gtk,
|
||||||
**--with-gtk use GTK,
|
**--with-gtk use GTK,
|
||||||
USE_GTK)
|
USE_GTK)
|
||||||
|
|
||||||
AC_OVERRIDES(qt,qt,
|
AC_OVERRIDES(qt,qt,
|
||||||
**--with-qt use Qt,
|
**--with-qt use Qt,
|
||||||
USE_QT)
|
USE_QT)
|
||||||
|
|
||||||
AC_OVERRIDES(motif,motif,
|
AC_OVERRIDES(motif,motif,
|
||||||
**--with-motif use Motif/Lesstif,
|
**--with-motif use Motif/Lesstif,
|
||||||
USE_MOTIF)
|
USE_MOTIF)
|
||||||
|
|
||||||
dnl ----------------------------------------------------------------
|
dnl ----------------------------------------------------------------
|
||||||
@@ -722,7 +728,7 @@ AC_OVERRIDES(shared,shared,
|
|||||||
USE_SHARED)
|
USE_SHARED)
|
||||||
|
|
||||||
AC_OVERRIDES(optimise,optimise,
|
AC_OVERRIDES(optimise,optimise,
|
||||||
**--with-optimise create optimised code,
|
**--with-optimise create optimised code,
|
||||||
USE_OPTIMISE)
|
USE_OPTIMISE)
|
||||||
|
|
||||||
AC_OVERRIDES(debug_flag,debug_flag,
|
AC_OVERRIDES(debug_flag,debug_flag,
|
||||||
@@ -730,7 +736,7 @@ AC_OVERRIDES(debug_flag,debug_flag,
|
|||||||
USE_DEBUG_FLAG)
|
USE_DEBUG_FLAG)
|
||||||
|
|
||||||
AC_OVERRIDES(debug_info,debug_info,
|
AC_OVERRIDES(debug_info,debug_info,
|
||||||
**--with-debug_info create code with debuging information included,
|
**--with-debug_info create code with debuging information,
|
||||||
USE_DEBUG_INFO)
|
USE_DEBUG_INFO)
|
||||||
|
|
||||||
AC_OVERRIDES(mem_tracing,mem_tracing,
|
AC_OVERRIDES(mem_tracing,mem_tracing,
|
||||||
@@ -738,19 +744,23 @@ AC_OVERRIDES(mem_tracing,mem_tracing,
|
|||||||
USE_MEM_TRACING)
|
USE_MEM_TRACING)
|
||||||
|
|
||||||
AC_OVERRIDES(dmalloc,dmalloc,
|
AC_OVERRIDES(dmalloc,dmalloc,
|
||||||
**--with-dmalloc use dmalloc memory debug library (www.letters.com/dmalloc/),
|
**--with-dmalloc use dmalloc memory debug library (www.letters.com/dmalloc/),
|
||||||
USE_DMALLOC)
|
USE_DMALLOC)
|
||||||
|
|
||||||
AC_OVERRIDES(profile,profile,
|
AC_OVERRIDES(profile,profile,
|
||||||
**--with-profile create code with profiling information included,
|
**--with-profile create code with profiling information,
|
||||||
USE_PROFILE)
|
USE_PROFILE)
|
||||||
|
|
||||||
|
AC_OVERRIDES(apple_ieee, apple_ieee,
|
||||||
|
**--with_apple_ieee use the Apple IEEE codec,
|
||||||
|
USE_APPLE_IEEE)
|
||||||
|
|
||||||
dnl ----------------------------------------------------------------
|
dnl ----------------------------------------------------------------
|
||||||
dnl user options for libraries (no choice yet)
|
dnl user options for libraries
|
||||||
dnl ----------------------------------------------------------------
|
dnl ----------------------------------------------------------------
|
||||||
|
|
||||||
AC_OVERRIDES(zlib,zlib,
|
AC_OVERRIDES(zlib,zlib,
|
||||||
**--with-zlib use zlib (LZW comression),
|
**--with-zlib use zlib for LZW comression,
|
||||||
USE_ZLIB)
|
USE_ZLIB)
|
||||||
|
|
||||||
AC_OVERRIDES(gdk_imlib,gdk_imlib,
|
AC_OVERRIDES(gdk_imlib,gdk_imlib,
|
||||||
@@ -762,28 +772,88 @@ AC_OVERRIDES(libpng,libpng,
|
|||||||
USE_LIBPNG)
|
USE_LIBPNG)
|
||||||
|
|
||||||
AC_OVERRIDES(odbc,odbc,
|
AC_OVERRIDES(odbc,odbc,
|
||||||
**--with-odbc use iODBC,
|
**--with-odbc use iODBC and wxODBC classes,
|
||||||
USE_ODBC)
|
USE_ODBC)
|
||||||
|
|
||||||
AC_OVERRIDES(opengl,opengl,
|
AC_OVERRIDES(opengl,opengl,
|
||||||
**--with-opengl use opengl (OpenGL or Mesa),
|
**--with-opengl use OpenGL (or Mesa),
|
||||||
USE_OPENGL)
|
USE_OPENGL)
|
||||||
|
|
||||||
dnl ----------------------------------------------------------------
|
dnl ----------------------------------------------------------------
|
||||||
dnl user options for code features (no choice yet)
|
dnl user options for GUI control classes
|
||||||
dnl ----------------------------------------------------------------
|
dnl ----------------------------------------------------------------
|
||||||
|
|
||||||
AC_OVERRIDES(apple_ieee, apple_ieee,
|
AC_OVERRIDES(gauge,gauge,
|
||||||
**--with_apple_ieee use the Apple IEEE codec,
|
**--with-gauge use wxGauge class,
|
||||||
USE_APPLE_IEEE)
|
USE_GAUGE)
|
||||||
|
|
||||||
AC_OVERRIDES(storable,storable,
|
AC_OVERRIDES(scrollbar,scrollbar,
|
||||||
**--with-storable use storable classes,
|
**--with-scrollbar use wxScrollbar class,
|
||||||
USE_STORABLE_CLASSES)
|
USE_SCROLLBAR)
|
||||||
|
|
||||||
AC_OVERRIDES(autotrans,autotrans,
|
AC_OVERRIDES(listctrl,listctrl,
|
||||||
**--with-autotrans use gettext automatic translation,
|
**--with-listctrl use wxListCtrl class,
|
||||||
USE_AUTOTRANS)
|
USE_LISTCTRL)
|
||||||
|
|
||||||
|
AC_OVERRIDES(treectrl,treectrl,
|
||||||
|
**--with-treectrl use wxTreeCtrl class,
|
||||||
|
USE_TREECTRL)
|
||||||
|
|
||||||
|
AC_OVERRIDES(grid,grid,
|
||||||
|
**--with-grid use wxGrid class,
|
||||||
|
USE_GRID)
|
||||||
|
|
||||||
|
AC_OVERRIDES(tab_dialog,tab_dialog,
|
||||||
|
**--with-tab_dialog use wxTabDia class,
|
||||||
|
USE_TAB_DIALOG)
|
||||||
|
|
||||||
|
AC_OVERRIDES(notebook,notebook,
|
||||||
|
**--with-notebook use wxNotebook class,
|
||||||
|
USE_NOTEBOOK)
|
||||||
|
|
||||||
|
dnl ----------------------------------------------------------------
|
||||||
|
dnl user options for non-GUI classes
|
||||||
|
dnl ----------------------------------------------------------------
|
||||||
|
|
||||||
|
AC_OVERRIDES(timedate, timedate,
|
||||||
|
**--with-timedate use wxTime and wxDate classes,
|
||||||
|
USE_TIMEDATE)
|
||||||
|
|
||||||
|
AC_OVERRIDES(fraction,fraction,
|
||||||
|
**--with-fraction use wxFraction class,
|
||||||
|
USE_FRACTION)
|
||||||
|
|
||||||
|
AC_OVERRIDES(log,log,
|
||||||
|
**--with-log use logging system,
|
||||||
|
USE_LOG)
|
||||||
|
|
||||||
|
AC_OVERRIDES(intl,intl,
|
||||||
|
**--with-intl use internationalization system,
|
||||||
|
USE_INTL)
|
||||||
|
|
||||||
|
AC_OVERRIDES(config,config,
|
||||||
|
**--with-config use wxConfig class,
|
||||||
|
USE_CONFIG)
|
||||||
|
|
||||||
|
AC_OVERRIDES(streams,streams,
|
||||||
|
**--with-streams use wxStream etc classes,
|
||||||
|
USE_STREAMS)
|
||||||
|
|
||||||
|
AC_OVERRIDES(serial,serial,
|
||||||
|
**--with-serial use class serialization,
|
||||||
|
USE_SERIAL)
|
||||||
|
|
||||||
|
AC_OVERRIDES(file,file,
|
||||||
|
**--with-file use wxFile class,
|
||||||
|
USE_FILE)
|
||||||
|
|
||||||
|
AC_OVERRIDES(textfile,textfile,
|
||||||
|
**--with-textfile use wxTextFile class,
|
||||||
|
USE_TEXTFILE)
|
||||||
|
|
||||||
|
dnl ----------------------------------------------------------------
|
||||||
|
dnl user options for PostScript
|
||||||
|
dnl ----------------------------------------------------------------
|
||||||
|
|
||||||
AC_OVERRIDES(afmfonts,afmfonts,
|
AC_OVERRIDES(afmfonts,afmfonts,
|
||||||
**--with-afmfonts use Adobe Font Metric Font table,
|
**--with-afmfonts use Adobe Font Metric Font table,
|
||||||
@@ -793,81 +863,57 @@ AC_OVERRIDES(normalized, normalized,
|
|||||||
**--with-PS-normalized use normalized PS fonts,
|
**--with-PS-normalized use normalized PS fonts,
|
||||||
WX_NORMALIZED_PS_FONTS)
|
WX_NORMALIZED_PS_FONTS)
|
||||||
|
|
||||||
AC_OVERRIDES(rpc,RPC,
|
AC_OVERRIDES(postscript, postscript,
|
||||||
**--with-rpc use RPC,
|
**--with-postscript use wxPostscriptDC device context,
|
||||||
USE_RPC)
|
USE_POSTSCRIPT)
|
||||||
|
|
||||||
|
dnl ----------------------------------------------------------------
|
||||||
|
dnl user options for Prolog and Resources
|
||||||
|
dnl ----------------------------------------------------------------
|
||||||
|
|
||||||
AC_OVERRIDES(wxresources,wxresources,
|
AC_OVERRIDES(wxresources,wxresources,
|
||||||
**--with-wxresources use wxresources,
|
**--with-wxresources use wxWindows's resources,
|
||||||
USE_WX_RESOURCES)
|
USE_WX_RESOURCES)
|
||||||
|
|
||||||
AC_OVERRIDES(prologio,prologio,
|
AC_OVERRIDES(prologio,prologio,
|
||||||
**--with-prologio use prologio,
|
**--with-prologio use Prolog IO library,
|
||||||
USE_PROLOGIO)
|
USE_PROLOGIO)
|
||||||
|
|
||||||
AC_OVERRIDES(postscript, postscript,
|
AC_OVERRIDES(rpc,RPC,
|
||||||
**--with-postscript use postscript-device-context,
|
**--with-rpc use Prolog's remote procedure calls,
|
||||||
USE_POSTSCRIPT)
|
USE_RPC)
|
||||||
|
|
||||||
AC_OVERRIDES(wxconfig, wxconfig,
|
dnl ----------------------------------------------------------------
|
||||||
**--with-wxconfig use wxconfig,
|
dnl user options for misc stuff
|
||||||
USE_WXCONFIG)
|
dnl ----------------------------------------------------------------
|
||||||
|
|
||||||
AC_OVERRIDES(metafile, metafile,
|
|
||||||
**--with-metafile use metafile,
|
|
||||||
USE_METAFILE)
|
|
||||||
|
|
||||||
AC_OVERRIDES(form,form,
|
|
||||||
**--with-form use form,
|
|
||||||
USE_FORM)
|
|
||||||
|
|
||||||
AC_OVERRIDES(help,help,
|
|
||||||
**--with-help use help,
|
|
||||||
USE_HELP)
|
|
||||||
|
|
||||||
AC_OVERRIDES(ipc,IPC,
|
AC_OVERRIDES(ipc,IPC,
|
||||||
**--with-ipc use ipc,
|
**--with-ipc use interprocess communication (wxSocket etc.),
|
||||||
USE_IPC)
|
USE_IPC)
|
||||||
|
|
||||||
AC_OVERRIDES(enhanceddialog,enhanced dialog,
|
|
||||||
**--with-enhanceddialog use enhanced dialog,
|
|
||||||
USE_ENHANCED_DIALOG)
|
|
||||||
|
|
||||||
AC_OVERRIDES(resources,resources,
|
AC_OVERRIDES(resources,resources,
|
||||||
**--with-resources use resources,
|
**--with-resources use X resources for saving information,
|
||||||
USE_RESOURCES)
|
USE_RESOURCES)
|
||||||
|
|
||||||
AC_OVERRIDES(clipboard,clipboard,
|
AC_OVERRIDES(clipboard,clipboard,
|
||||||
**--with-clipboard use clipboard,
|
**--with-clipboard use wxClipboard classes,
|
||||||
USE_CLIPBOARD)
|
USE_CLIPBOARD)
|
||||||
|
|
||||||
AC_OVERRIDES(timedate, timedate,
|
AC_OVERRIDES(dnd,dnd,
|
||||||
**--with-timedate use timedate,
|
**--with-dnd use Drag'n'Drop classes,
|
||||||
USE_TIMEDATE)
|
USE_DND)
|
||||||
|
|
||||||
AC_OVERRIDES(fraction,fraction,
|
|
||||||
**--with-fraction use fraction,
|
|
||||||
USE_FRACTION)
|
|
||||||
|
|
||||||
AC_OVERRIDES(constraints,constrains,
|
AC_OVERRIDES(constraints,constrains,
|
||||||
**--with-constraints use constraints,
|
**--with-constraints use layout-constraints system,
|
||||||
USE_CONSTRAINTS)
|
USE_CONSTRAINTS)
|
||||||
|
|
||||||
AC_OVERRIDES(toolbar,toolbar,
|
dnl ----------------------------------------------------------------
|
||||||
**--with-toolbar use toolbar,
|
dnl user options for architectures
|
||||||
USE_TOOLBAR)
|
dnl ----------------------------------------------------------------
|
||||||
|
|
||||||
AC_OVERRIDES(gauge,gauge,
|
AC_OVERRIDES(mdi,mdi,
|
||||||
**--with-gauge use gauge,
|
**--with-mdi use multiple document interface architecture,
|
||||||
USE_GAUGE)
|
USE_MDI_ARCHITECTURE)
|
||||||
|
|
||||||
AC_OVERRIDES(vllist,vllist,
|
|
||||||
**--with-vlbox use virtual list box,
|
|
||||||
USE_VLBOX)
|
|
||||||
|
|
||||||
AC_OVERRIDES(scrollbar,scrollbar,
|
|
||||||
**--with-scrollbar use scrollbar,
|
|
||||||
USE_SCROLLBAR)
|
|
||||||
|
|
||||||
AC_OVERRIDES(docview,docview,
|
AC_OVERRIDES(docview,docview,
|
||||||
**--with-docview use document view architecture,
|
**--with-docview use document view architecture,
|
||||||
@@ -877,20 +923,28 @@ AC_OVERRIDES(printarch,printarch,
|
|||||||
**--with-printarch use printing architecture,
|
**--with-printarch use printing architecture,
|
||||||
USE_PRINTING_ARCHITECTURE)
|
USE_PRINTING_ARCHITECTURE)
|
||||||
|
|
||||||
AC_OVERRIDES(typetree,typetree,
|
dnl ----------------------------------------------------------------
|
||||||
**--with-typetree use typetree,
|
dnl user options with no effect yet
|
||||||
USE_TYPETREE)
|
dnl ----------------------------------------------------------------
|
||||||
|
dnl
|
||||||
AC_OVERRIDES(wxgraph,wxgraph,
|
dnl AC_OVERRIDES(metafile, metafile,
|
||||||
**--with-wxgraph use wxgraph,
|
dnl **--with-metafile use metafile (no effect),
|
||||||
USE_WXGRAPH)
|
dnl USE_METAFILE)
|
||||||
|
dnl
|
||||||
AC_OVERRIDES(wxtree,wxtree,
|
dnl AC_OVERRIDES(help,help,
|
||||||
**--with-wxtree use wxtree,
|
dnl **--with-help use help (no effect),
|
||||||
USE_WXTREE)
|
dnl USE_HELP)
|
||||||
|
dnl
|
||||||
|
dnl AC_OVERRIDES(wxgraph,wxgraph,
|
||||||
|
dnl **--with-wxgraph use wxgraph (no effect),
|
||||||
|
dnl USE_WXGRAPH)
|
||||||
|
dnl
|
||||||
|
dnl AC_OVERRIDES(wxtree,wxtree,
|
||||||
|
dnl **--with-wxtree use wxtree (no effect),
|
||||||
|
dnl USE_WXTREE)
|
||||||
|
dnl
|
||||||
dnl AC_OVERRIDES(package,message,helpmessage,variable)
|
dnl AC_OVERRIDES(package,message,helpmessage,variable)
|
||||||
|
dnl
|
||||||
dnl ----------------------------------------------------------------
|
dnl ----------------------------------------------------------------
|
||||||
dnl Unix, obviously
|
dnl Unix, obviously
|
||||||
dnl ----------------------------------------------------------------
|
dnl ----------------------------------------------------------------
|
||||||
@@ -989,47 +1043,9 @@ AC_SUBST(TOOLKIT_DEF)
|
|||||||
AC_SUBST(MAKEINCLUDE)
|
AC_SUBST(MAKEINCLUDE)
|
||||||
|
|
||||||
dnl ----------------------------------------------------------------
|
dnl ----------------------------------------------------------------
|
||||||
dnl register changes for Makefiles (via substit) and setup.h
|
dnl Register compile options for makefiles and setup.h
|
||||||
dnl ----------------------------------------------------------------
|
dnl ----------------------------------------------------------------
|
||||||
|
|
||||||
ZLIB=NONE
|
|
||||||
if test "$USE_ZLIB" = 1 ; then
|
|
||||||
ZLIB="ZLIB"
|
|
||||||
fi
|
|
||||||
|
|
||||||
GDK_IMLIB=NONE
|
|
||||||
if test "$USE_GDK_IMLIB" = 1 ; then
|
|
||||||
GDK_IMLIB="GDK_IMLIB"
|
|
||||||
fi
|
|
||||||
|
|
||||||
LIBPNG=NONE
|
|
||||||
if test "$USE_LIBPNG" = 1 ; then
|
|
||||||
LIBPNG="LIBPNG"
|
|
||||||
fi
|
|
||||||
|
|
||||||
ODBC=NONE
|
|
||||||
if test "$USE_ODBC" = 1 ; then
|
|
||||||
ODBC="ODBC"
|
|
||||||
fi
|
|
||||||
|
|
||||||
APPLE_IEEE=NONE
|
|
||||||
if test "$USE_APPLE_IEEE" = 1 ; then
|
|
||||||
APPLE_IEEE="APPLE_IEEE"
|
|
||||||
AC_DEFINE_UNQUOTED(USE_APPLE_IEEE,$USE_APPLE_IEEE)
|
|
||||||
fi
|
|
||||||
|
|
||||||
STORABLE=NONE
|
|
||||||
if test "$USE_STORABLE_CLASSES" = 1 ; then
|
|
||||||
STORABLE="STORABLE"
|
|
||||||
AC_DEFINE_UNQUOTED(USE_STORABLE_CLASSES,$USE_STORABLE_CLASSES)
|
|
||||||
fi
|
|
||||||
|
|
||||||
AUTOTRANS=NONE
|
|
||||||
if test "$USE_AUTOTRANS" = 1 ; then
|
|
||||||
AUTOTRANS="AUTOTRANS"
|
|
||||||
AC_DEFINE_UNQUOTED(USE_AUTOTRANS,$USE_AUTOTRANS)
|
|
||||||
fi
|
|
||||||
|
|
||||||
WXDEBUG=
|
WXDEBUG=
|
||||||
if test "$USE_DEBUG_INFO" = 1 ; then
|
if test "$USE_DEBUG_INFO" = 1 ; then
|
||||||
WXDEBUG="-g -O0"
|
WXDEBUG="-g -O0"
|
||||||
@@ -1077,44 +1093,179 @@ else
|
|||||||
fi
|
fi
|
||||||
AC_SUBST(OPTIMISE)
|
AC_SUBST(OPTIMISE)
|
||||||
|
|
||||||
|
APPLE_IEEE=NONE
|
||||||
|
if test "$USE_APPLE_IEEE" = 1 ; then
|
||||||
|
APPLE_IEEE="APPLE_IEEE"
|
||||||
|
AC_DEFINE_UNQUOTED(USE_APPLE_IEEE,$USE_APPLE_IEEE)
|
||||||
|
fi
|
||||||
|
|
||||||
USE_IOSTREAMH=$DEFAULT_USE_IOSTREAMH
|
USE_IOSTREAMH=$DEFAULT_USE_IOSTREAMH
|
||||||
AC_DEFINE_UNQUOTED(USE_IOSTREAMH,$USE_IOSTREAMH)
|
AC_DEFINE_UNQUOTED(USE_IOSTREAMH,$USE_IOSTREAMH)
|
||||||
|
|
||||||
RPC=NONE
|
dnl ----------------------------------------------------------------
|
||||||
|
dnl Register library options for makefiles and setup.h
|
||||||
|
dnl ----------------------------------------------------------------
|
||||||
|
|
||||||
|
if test "$USE_ZLIB" = 1 ; then
|
||||||
|
AC_DEFINE_UNQUOTED(USE_ZLIB,$USE_ZLIB)
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$USE_GDK_IMLIB" = 1 ; then
|
||||||
|
AC_DEFINE_UNQUOTED(USE_GDK_IMLIB,$USE_GDK_IMLIB)
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$USE_LIBPNG" = 1 ; then
|
||||||
|
AC_DEFINE_UNQUOTED(USE_LIBPNG,$USE_LIBPNG)
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$USE_ODBC" = 1 ; then
|
||||||
|
AC_DEFINE_UNQUOTED(USE_ODBC,$USE_ODBC)
|
||||||
|
fi
|
||||||
|
|
||||||
|
dnl ----------------------------------------------------------------
|
||||||
|
dnl Register GUI-control options for makefiles and setup.h
|
||||||
|
dnl ----------------------------------------------------------------
|
||||||
|
|
||||||
|
if test "$USE_GAUGE" = 1 ; then
|
||||||
|
AC_DEFINE_UNQUOTED(USE_GAUGE,$USE_GAUGE)
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$USE_SCROLLBAR" = 1 ; then
|
||||||
|
AC_DEFINE_UNQUOTED(USE_SCROLLBAR,$USE_SCROLLBAR)
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$USE_LISTCTRL" = 1 ; then
|
||||||
|
AC_DEFINE_UNQUOTED(USE_LISTCTRL,$USE_LISTCTRL)
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$USE_TREECTRL" = 1 ; then
|
||||||
|
AC_DEFINE_UNQUOTED(USE_TREECTRL,$USE_TREECTRL)
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$USE_GRID" = 1 ; then
|
||||||
|
AC_DEFINE_UNQUOTED(USE_GRID,$USE_GRID)
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$USE_TAB_DIALOG" = 1 ; then
|
||||||
|
AC_DEFINE_UNQUOTED(USE_TAB_DIALOG,$USE_TAB_DIALOG)
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$USE_NOTEBOOK" = 1 ; then
|
||||||
|
AC_DEFINE_UNQUOTED(USE_NOTEBOOK,$USE_NOTEBOOK)
|
||||||
|
fi
|
||||||
|
|
||||||
|
dnl ----------------------------------------------------------------
|
||||||
|
dnl Register non-GUI class options for makefiles and setup.h
|
||||||
|
dnl ----------------------------------------------------------------
|
||||||
|
|
||||||
|
if test "$USE_CONFIG" = 1 ; then
|
||||||
|
AC_DEFINE_UNQUOTED(USE_CONFIG,$USE_CONFIG)
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$USE_TIMEDATE" = 1 ; then
|
||||||
|
AC_DEFINE_UNQUOTED(USE_TIMEDATE,$USE_TIMEDATE)
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$USE_FRACTION" = 1 ; then
|
||||||
|
AC_DEFINE_UNQUOTED(USE_FRACTION,$USE_FRACTION)
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$USE_LOG" = 1 ; then
|
||||||
|
AC_DEFINE_UNQUOTED(USE_LOG,$USE_LOG)
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$USE_INTL" = 1 ; then
|
||||||
|
AC_DEFINE_UNQUOTED(USE_INTL,$USE_INTL)
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$USE_STREAMS" = 1 ; then
|
||||||
|
AC_DEFINE_UNQUOTED(USE_STREAMS,$USE_STREAMS)
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$USE_SERIAL" = 1 ; then
|
||||||
|
AC_DEFINE_UNQUOTED(USE_SERIAL,$USE_SERIAL)
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$USE_FILE" = 1 ; then
|
||||||
|
AC_DEFINE_UNQUOTED(USE_FILE,$USE_FILE)
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$USE_TEXTFILE" = 1 ; then
|
||||||
|
AC_DEFINE_UNQUOTED(USE_TEXTFILE,$USE_TEXTFILE)
|
||||||
|
fi
|
||||||
|
|
||||||
|
dnl ----------------------------------------------------------------
|
||||||
|
dnl Register Prolog and Resources options for makefiles and setup.h
|
||||||
|
dnl ----------------------------------------------------------------
|
||||||
|
|
||||||
if test "$USE_RPC" = 1 ; then
|
if test "$USE_RPC" = 1 ; then
|
||||||
RPC="RPC"
|
|
||||||
AC_DEFINE_UNQUOTED(USE_RPC,$USE_RPC)
|
AC_DEFINE_UNQUOTED(USE_RPC,$USE_RPC)
|
||||||
fi
|
fi
|
||||||
AC_SUBST(RPC)
|
|
||||||
|
|
||||||
WXRESOURCES=NONE
|
|
||||||
if test "$USE_WX_RESOURCES" = 1 ; then
|
if test "$USE_WX_RESOURCES" = 1 ; then
|
||||||
WXRESOURCES="WXRESOURCES"
|
|
||||||
AC_DEFINE_UNQUOTED(USE_WX_RESOURCES,$USE_WX_RESOURCES)
|
AC_DEFINE_UNQUOTED(USE_WX_RESOURCES,$USE_WX_RESOURCES)
|
||||||
fi
|
fi
|
||||||
AC_SUBST(WXRESOURCES)
|
|
||||||
|
|
||||||
PROLOGIO=NONE
|
|
||||||
PROLOGIOSRC=NONE
|
|
||||||
if test "$USE_PROLOGIO" = 1 ; then
|
if test "$USE_PROLOGIO" = 1 ; then
|
||||||
PROLOGIO="PROLOGIO"
|
|
||||||
PROLOGIOSRC="PROLOGIOSRC"
|
|
||||||
AC_DEFINE_UNQUOTED(USE_PROLOGIO)
|
AC_DEFINE_UNQUOTED(USE_PROLOGIO)
|
||||||
fi
|
fi
|
||||||
AC_SUBST(PROLOGIO)
|
|
||||||
AC_SUBST(PROLOGIOSRC)
|
|
||||||
|
|
||||||
POSTSCRIPTDC=NONE
|
dnl ----------------------------------------------------------------
|
||||||
|
dnl Register PostScript options for makefiles and setup.h
|
||||||
|
dnl ----------------------------------------------------------------
|
||||||
|
|
||||||
if test "$USE_POSTSCRIPT" = 1 ; then
|
if test "$USE_POSTSCRIPT" = 1 ; then
|
||||||
POSTSCRIPTDC="POSTSCRIPTDC"
|
|
||||||
AC_DEFINE_UNQUOTED(USE_POSTSCRIPT)
|
AC_DEFINE_UNQUOTED(USE_POSTSCRIPT)
|
||||||
fi
|
fi
|
||||||
AC_SUBST(POSTSCRIPTDC)
|
|
||||||
|
|
||||||
if test "$USE_WXCONFIG" = 1 ; then
|
AC_DEFINE_UNQUOTED(USE_AFM_FOR_POSTSCRIPT,$USE_AFM_FOR_POSTSCRIPT)
|
||||||
AC_DEFINE_UNQUOTED(USE_WXCONFIG,$USE_WXCONFIG)
|
|
||||||
|
AC_DEFINE_UNQUOTED(WX_NORMALIZED_PS_FONTS,$WX_NORMALIZED_PS_FONTS)
|
||||||
|
|
||||||
|
dnl ----------------------------------------------------------------
|
||||||
|
dnl Register architecture options for makefiles and setup.h
|
||||||
|
dnl ----------------------------------------------------------------
|
||||||
|
|
||||||
|
if test "$USE_MDI_ARCHITECTURE" = 1 ; then
|
||||||
|
AC_DEFINE_UNQUOTED(USE_MDI_ARCHITECTURE,$USE_MDI_ARCHITECTURE)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if test "$USE_DOC_VIEW_ARCHITECTURE" = 1 ; then
|
||||||
|
AC_DEFINE_UNQUOTED(USE_DOC_VIEW_ARCHITECTURE,$USE_DOC_VIEW_ARCHITECTURE)
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$USE_PRINTING_ARCHITECTURE" = 1 ; then
|
||||||
|
AC_DEFINE_UNQUOTED(USE_PRINTING_ARCHITECTURE,$USE_PRINTING_ARCHITECTURE)
|
||||||
|
fi
|
||||||
|
|
||||||
|
dnl ----------------------------------------------------------------
|
||||||
|
dnl Register misc options for makefiles and setup.h
|
||||||
|
dnl ----------------------------------------------------------------
|
||||||
|
|
||||||
|
if test "$USE_IPC" = 1 ; then
|
||||||
|
AC_DEFINE_UNQUOTED(USE_IPC)
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$USE_RESOURCES" = 1 ; then
|
||||||
|
AC_DEFINE_UNQUOTED(USE_RESOURCES,$USE_RESOURCES)
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$USE_CLIPBOARD" = 1 ; then
|
||||||
|
AC_DEFINE_UNQUOTED(USE_CLIPBOARD,$USE_CLIPBOARD)
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$USE_DND" = 1 ; then
|
||||||
|
AC_DEFINE_UNQUOTED(USE_DND,$USE_DND)
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$USE_CONSTRAINTS" = 1 ; then
|
||||||
|
AC_DEFINE_UNQUOTED(USE_CONSTRAINTS,$USE_CONSTRAINTS)
|
||||||
|
fi
|
||||||
|
|
||||||
|
dnl ----------------------------------------------------------------
|
||||||
|
dnl No effect
|
||||||
|
dnl ----------------------------------------------------------------
|
||||||
|
|
||||||
METAFILE=NONE
|
METAFILE=NONE
|
||||||
if test "$USE_METAFILE" = 1 ; then
|
if test "$USE_METAFILE" = 1 ; then
|
||||||
METAFILE="METAFILE"
|
METAFILE="METAFILE"
|
||||||
@@ -1122,13 +1273,6 @@ if test "$USE_METAFILE" = 1 ; then
|
|||||||
fi
|
fi
|
||||||
AC_SUBST(METAFILE)
|
AC_SUBST(METAFILE)
|
||||||
|
|
||||||
FORM=NONE
|
|
||||||
if test "$USE_FORM" = 1 ; then
|
|
||||||
FORM="FORM"
|
|
||||||
AC_DEFINE_UNQUOTED(USE_FORM,$USE_FORM)
|
|
||||||
fi
|
|
||||||
AC_SUBST(FORM)
|
|
||||||
|
|
||||||
HELP=NONE
|
HELP=NONE
|
||||||
if test "$USE_HELP" = 1 ; then
|
if test "$USE_HELP" = 1 ; then
|
||||||
HELP="HELP"
|
HELP="HELP"
|
||||||
@@ -1136,105 +1280,6 @@ if test "$USE_HELP" = 1 ; then
|
|||||||
fi
|
fi
|
||||||
AC_SUBST(HELP)
|
AC_SUBST(HELP)
|
||||||
|
|
||||||
IPC=NONE
|
|
||||||
if test "$USE_IPC" = 1 ; then
|
|
||||||
IPC="IPC"
|
|
||||||
AC_DEFINE_UNQUOTED(USE_IPC)
|
|
||||||
fi
|
|
||||||
AC_SUBST(IPC)
|
|
||||||
|
|
||||||
ENHDIALOGBOX=NONE
|
|
||||||
if test "$USE_ENHANCED_DIALOG" = 1 ; then
|
|
||||||
ENHDIALOGBOX="ENHDIALOGBOX"
|
|
||||||
AC_DEFINE_UNQUOTED(USE_ENHANCED_DIALOG,$USE_ENHANCED_DIALOG)
|
|
||||||
fi
|
|
||||||
AC_SUBST(ENHDIALOGBOX)
|
|
||||||
|
|
||||||
XRESOURCES=NONE
|
|
||||||
if test "$USE_RESOURCES" = 1 ; then
|
|
||||||
XRESOURCES="XRESOURCES"
|
|
||||||
AC_DEFINE_UNQUOTED(USE_RESOURCES,$USE_RESOURCES)
|
|
||||||
fi
|
|
||||||
AC_SUBST(XRESOURCES)
|
|
||||||
|
|
||||||
CLIPBOARD=NONE
|
|
||||||
if test "$USE_CLIPBOARD" = 1 ; then
|
|
||||||
CLIPBOARD="CLIPBOARD"
|
|
||||||
AC_DEFINE_UNQUOTED(USE_CLIPBOARD,$USE_CLIPBOARD)
|
|
||||||
fi
|
|
||||||
AC_SUBST(CLIPBOARD)
|
|
||||||
|
|
||||||
CONSTRAINTS=NONE
|
|
||||||
if test "$USE_CONSTRAINTS" = 1 ; then
|
|
||||||
CONSTRAINTS="CONSTRAINTS"
|
|
||||||
AC_DEFINE_UNQUOTED(USE_CONSTRAINTS,$USE_CONSTRAINTS)
|
|
||||||
fi
|
|
||||||
AC_SUBST(CONSTRAINTS)
|
|
||||||
|
|
||||||
TIMEDATE=NONE
|
|
||||||
if test "$USE_TIMEDATE" = 1 ; then
|
|
||||||
TIMEDATE="TIMEDATE"
|
|
||||||
AC_DEFINE_UNQUOTED(USE_TIMEDATE,$USE_TIMEDATE)
|
|
||||||
fi
|
|
||||||
AC_SUBST(TIMEDATE)
|
|
||||||
|
|
||||||
FRACTION=NONE
|
|
||||||
if test "$USE_FRACTION" = 1 ; then
|
|
||||||
FRACTION="FRACTION"
|
|
||||||
AC_DEFINE_UNQUOTED(USE_FRACTION,$USE_FRACTION)
|
|
||||||
fi
|
|
||||||
AC_SUBST(FRACTION)
|
|
||||||
|
|
||||||
TOOLBAR=NONE
|
|
||||||
if test "$USE_TOOLBAR" = 1 ; then
|
|
||||||
TOOLBAR="TOOLBAR"
|
|
||||||
AC_DEFINE_UNQUOTED(USE_TOOLBAR,$USE_TOOLBAR)
|
|
||||||
AC_DEFINE_UNQUOTED(USE_XT_TOOLBAR,$USE_XT_TOOLBAR)
|
|
||||||
fi
|
|
||||||
AC_SUBST(TOOLBAR)
|
|
||||||
|
|
||||||
GAUGE=NONE
|
|
||||||
if test "$USE_GAUGE" = 1 ; then
|
|
||||||
GAUGE="GAUGE"
|
|
||||||
AC_SUBST(GAUGE)
|
|
||||||
AC_DEFINE_UNQUOTED(USE_GAUGE,$USE_GAUGE)
|
|
||||||
fi
|
|
||||||
|
|
||||||
VIRLISTBOX=NONE
|
|
||||||
if test "$USE_VLBOX" = 1 ; then
|
|
||||||
VIRTLISTBOX="VIRLISTBOX"
|
|
||||||
AC_DEFINE_UNQUOTED(USE_VIRLISTBOX,$USE_VIRLISTBOX)
|
|
||||||
fi
|
|
||||||
AC_SUBST(VIRLISTBOX)
|
|
||||||
|
|
||||||
SCROLLBAR=NONE
|
|
||||||
if test "$USE_SCROLLBAR" = 1 ; then
|
|
||||||
SCROLLBAR="SCROLLBAR"
|
|
||||||
AC_DEFINE_UNQUOTED(USE_SCROLLBAR,$USE_SCROLLBAR)
|
|
||||||
fi
|
|
||||||
AC_SUBST(SCROLLBAR)
|
|
||||||
|
|
||||||
DOCVIEW=NONE
|
|
||||||
if test "$USE_DOC_VIEW_ARCHITECTURE" = 1 ; then
|
|
||||||
DOCVIEW="DOCVIEW"
|
|
||||||
AC_DEFINE_UNQUOTED(USE_DOC_VIEW_ARCHITECTURE,$USE_DOC_VIEW_ARCHITECTURE)
|
|
||||||
fi
|
|
||||||
AC_SUBST(DOCVIEW)
|
|
||||||
|
|
||||||
PRINTPREVIEW=NONE
|
|
||||||
if test "$USE_PRINTING_ARCHITECTURE" = 1 ; then
|
|
||||||
PRINTPREVIEW="PRINTPREVIEW"
|
|
||||||
AC_DEFINE_UNQUOTED(USE_PRINTING_ARCHITECTURE,$USE_PRINTING_ARCHITECTURE)
|
|
||||||
fi
|
|
||||||
AC_SUBST(PRINTPREVIEW)
|
|
||||||
|
|
||||||
TYPETREE=NONE
|
|
||||||
if test "$USE_TYPETREE" = 1 ; then
|
|
||||||
TYPETREE="TYPETREE"
|
|
||||||
AC_DEFINE_UNQUOTED(USE_TYPETREE,$USE_TYPETREE)
|
|
||||||
fi
|
|
||||||
AC_SUBST(TYPETREE)
|
|
||||||
|
|
||||||
WXGRAPH=NONE
|
WXGRAPH=NONE
|
||||||
if test "$USE_WXGRAPH" = 1 ; then
|
if test "$USE_WXGRAPH" = 1 ; then
|
||||||
WXGRAPH="WXGRAPH"
|
WXGRAPH="WXGRAPH"
|
||||||
@@ -1254,10 +1299,6 @@ if test "$USE_OPENGL" = 1 ; then
|
|||||||
GLCANVAS="GLCANVAS"
|
GLCANVAS="GLCANVAS"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_DEFINE_UNQUOTED(USE_AFM_FOR_POSTSCRIPT,$USE_AFM_FOR_POSTSCRIPT)
|
|
||||||
|
|
||||||
AC_DEFINE_UNQUOTED(WX_NORMALIZED_PS_FONTS,$WX_NORMALIZED_PS_FONTS)
|
|
||||||
|
|
||||||
dnl ----------------------------------------------------------------
|
dnl ----------------------------------------------------------------
|
||||||
dnl select dynamic loader (used by iODBC to load drivers)
|
dnl select dynamic loader (used by iODBC to load drivers)
|
||||||
dnl ----------------------------------------------------------------
|
dnl ----------------------------------------------------------------
|
||||||
@@ -1275,7 +1316,7 @@ THREADS_LINK=""
|
|||||||
UNIX_THREAD=""
|
UNIX_THREAD=""
|
||||||
|
|
||||||
AC_ARG_WITH(threads,
|
AC_ARG_WITH(threads,
|
||||||
[ --without-threads Force disabling threads ],
|
[**--without-threads Force disabling threads ],
|
||||||
[USE_THREADS="$withval"])
|
[USE_THREADS="$withval"])
|
||||||
|
|
||||||
if test "$USE_THREADS" = "1"; then
|
if test "$USE_THREADS" = "1"; then
|
||||||
@@ -1364,125 +1405,6 @@ if test "$USE_OPENGL" = 1; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dnl ----------------------------------------------------------------
|
|
||||||
dnl search for gdk_imlib
|
|
||||||
dnl ----------------------------------------------------------------
|
|
||||||
dnl
|
|
||||||
dnl GDK_IMLIB_INCLUDE=
|
|
||||||
dnl GDK_IMLIB_LIBRARY=
|
|
||||||
dnl GDK_IMLIB_LINK=
|
|
||||||
dnl
|
|
||||||
if test "$USE_GDK_IMLIB" = 1; then
|
|
||||||
dnl AC_MSG_CHECKING(for gdk_imlib includes)
|
|
||||||
dnl AC_PATH_FIND_INCLUDES($SEARCH_INCLUDE,gdk_imlib.h)
|
|
||||||
dnl if test "$ac_find_includes" != "" ; then
|
|
||||||
dnl dnl GDK_IMLIB_INCLUDE="-I$ac_find_includes"
|
|
||||||
dnl AC_MSG_RESULT(found $ac_find_includes)
|
|
||||||
dnl AC_MSG_CHECKING(for gdk_imlib library)
|
|
||||||
dnl AC_PATH_FIND_LIBRARIES($SEARCH_LIB,gdk_imlib)
|
|
||||||
dnl if test "$ac_find_libraries" != "" ; then
|
|
||||||
dnl AC_INCLUDE_PATH_EXIST($ac_find_includes,$CHECK_INCLUDE)
|
|
||||||
dnl AC_LINK_PATH_EXIST($ac_find_libraries,$CHECK_LIB)
|
|
||||||
dnl CHECK_LINK="$CHECK_INCLUDE $ac_path_to_link"
|
|
||||||
dnl CHECK_INCLUDE="$CHECK_INCLUDE $ac_path_to_include"
|
|
||||||
dnl GDK_IMLIB_LIBRARY="$ac_path_to_link"
|
|
||||||
dnl GDK_IMLIB_INCLUDE="$ac_path_to_include"
|
|
||||||
dnl GDK_IMLIB_LINK="-lgdk_imlib"
|
|
||||||
dnl AC_MSG_RESULT(found gdk_imlib at $ac_find_libraries)
|
|
||||||
dnl else
|
|
||||||
dnl AC_MSG_ERROR(no)
|
|
||||||
dnl fi
|
|
||||||
dnl else
|
|
||||||
dnl AC_MSG_ERROR(no)
|
|
||||||
dnl fi
|
|
||||||
AC_DEFINE_UNQUOTED(USE_GDK_IMLIB,$USE_GDK_IMLIB)
|
|
||||||
fi
|
|
||||||
dnl AC_SUBST(GDK_IMLIB_INCLUDE)
|
|
||||||
dnl AC_SUBST(GDK_IMLIB_LIBRARY)
|
|
||||||
dnl AC_SUBST(GDK_IMLIB_LINK)
|
|
||||||
|
|
||||||
dnl ----------------------------------------------------------------
|
|
||||||
dnl search for zlib
|
|
||||||
dnl ----------------------------------------------------------------
|
|
||||||
dnl
|
|
||||||
dnl ZLIB_INCLUDE=
|
|
||||||
dnl ZLIB_LINK=
|
|
||||||
dnl
|
|
||||||
if test "$USE_ZLIB" = 1; then
|
|
||||||
dnl AC_MSG_CHECKING(for zlib includes)
|
|
||||||
dnl AC_PATH_FIND_INCLUDES($SEARCH_INCLUDE,zlib.h)
|
|
||||||
dnl if test "$ac_find_includes" != "" ; then
|
|
||||||
dnl AC_MSG_RESULT(found $ac_find_includes)
|
|
||||||
dnl AC_MSG_CHECKING(for zlib library)
|
|
||||||
dnl AC_PATH_FIND_LIBRARIES($SEARCH_LIB,z)
|
|
||||||
dnl if test "$ac_find_libraries" != "" ; then
|
|
||||||
dnl AC_INCLUDE_PATH_EXIST($ac_find_includes,$CHECK_INCLUDE)
|
|
||||||
dnl AC_LINK_PATH_EXIST($ac_find_libraries,$CHECK_LIB)
|
|
||||||
dnl CHECK_LINK="$CHECK_INCLUDE $ac_path_to_link"
|
|
||||||
dnl CHECK_INCLUDE="$CHECK_INCLUDE $ac_path_to_include"
|
|
||||||
dnl ZLIB_INCLUDE="$ac_path_to_include"
|
|
||||||
dnl ZLIB_LINK="-lz"
|
|
||||||
dnl AC_MSG_RESULT(found zlib at $ac_find_libraries)
|
|
||||||
dnl else
|
|
||||||
dnl AC_MSG_ERROR(no)
|
|
||||||
dnl fi
|
|
||||||
dnl else
|
|
||||||
dnl AC_MSG_ERROR(no)
|
|
||||||
dnl fi
|
|
||||||
AC_DEFINE_UNQUOTED(USE_ZLIB,$USE_ZLIB)
|
|
||||||
fi
|
|
||||||
dnl AC_SUBST(ZLIB_INCLUDE)
|
|
||||||
dnl AC_SUBST(ZLIB_LIBRARY)
|
|
||||||
dnl AC_SUBST(ZLIB_LINK)
|
|
||||||
|
|
||||||
dnl ----------------------------------------------------------------
|
|
||||||
dnl search for libpng
|
|
||||||
dnl ----------------------------------------------------------------
|
|
||||||
dnl
|
|
||||||
dnl LIBPNG_INCLUDE=
|
|
||||||
dnl LIBPNG_LIBRARY=
|
|
||||||
dnl LIBPNG_LINK=
|
|
||||||
dnl
|
|
||||||
if test "$USE_LIBPNG" = 1; then
|
|
||||||
dnl AC_MSG_CHECKING(for libpng includes)
|
|
||||||
dnl AC_PATH_FIND_INCLUDES($SEARCH_INCLUDE,png.h)
|
|
||||||
dnl if test "$ac_find_includes" != "" ; then
|
|
||||||
dnl AC_MSG_RESULT(found $ac_find_includes)
|
|
||||||
dnl AC_MSG_CHECKING(for libpng library)
|
|
||||||
dnl AC_PATH_FIND_LIBRARIES($SEARCH_LIB,png)
|
|
||||||
dnl if test "$ac_find_libraries" != "" ; then
|
|
||||||
dnl AC_INCLUDE_PATH_EXIST($ac_find_includes,$CHECK_INCLUDE)
|
|
||||||
dnl AC_LINK_PATH_EXIST($ac_find_libraries,$CHECK_LIB)
|
|
||||||
dnl CHECK_LINK="$CHECK_INCLUDE $ac_path_to_link"
|
|
||||||
dnl CHECK_INCLUDE="$CHECK_INCLUDE $ac_path_to_include"
|
|
||||||
dnl LIBPNG_LIBRARY="$ac_path_to_link"
|
|
||||||
dnl LIBPNG_INCLUDE="$ac_path_to_include"
|
|
||||||
dnl LIBPNG_LINK="-lpng"
|
|
||||||
dnl AC_MSG_RESULT(found libpng at $ac_find_libraries)
|
|
||||||
dnl else
|
|
||||||
dnl AC_MSG_RESULT(no)
|
|
||||||
dnl fi
|
|
||||||
dnl else
|
|
||||||
dnl AC_MSG_ERROR(no)
|
|
||||||
dnl fi
|
|
||||||
AC_DEFINE_UNQUOTED(USE_LIBPNG,$USE_LIBPNG)
|
|
||||||
fi
|
|
||||||
dnl AC_SUBST(LIBPNG_INCLUDE)
|
|
||||||
dnl AC_SUBST(LIBPNG_LIBRARY)
|
|
||||||
dnl AC_SUBST(LIBPNG_LINK)
|
|
||||||
|
|
||||||
dnl ----------------------------------------------------------------
|
|
||||||
dnl search for iODBC
|
|
||||||
dnl ----------------------------------------------------------------
|
|
||||||
dnl
|
|
||||||
if test "$USE_ODBC" = 1; then
|
|
||||||
AC_DEFINE_UNQUOTED(USE_ODBC,$USE_ODBC)
|
|
||||||
fi
|
|
||||||
|
|
||||||
dnl ----------------------------------------------------------------
|
|
||||||
dnl search for Python
|
|
||||||
dnl ----------------------------------------------------------------
|
|
||||||
|
|
||||||
dnl ----------------------------------------------------------------
|
dnl ----------------------------------------------------------------
|
||||||
dnl left-over
|
dnl left-over
|
||||||
dnl ----------------------------------------------------------------
|
dnl ----------------------------------------------------------------
|
||||||
@@ -1623,9 +1545,8 @@ dnl ------------------------------------------------------------------------
|
|||||||
|
|
||||||
dnl add OS to list of configured
|
dnl add OS to list of configured
|
||||||
echo $OS >> system.list
|
echo $OS >> system.list
|
||||||
echo $OS >> ../../system.list
|
|
||||||
|
|
||||||
AC_CONFIG_HEADER(./setup/setup.h:./setup/setup.hin)
|
AC_CONFIG_HEADER(./setup/setup.h:./setup/setup.hin)
|
||||||
AC_OUTPUT(./setup/substit,)
|
AC_OUTPUT(./setup/substit,./setup/general/createall)
|
||||||
|
|
||||||
AC_OVERRIDES_DONE
|
AC_OVERRIDES_DONE
|
@@ -23,9 +23,9 @@
|
|||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
// it won't compile without it anyhow
|
// it won't compile without it anyhow
|
||||||
#ifndef USE_WXCONFIG
|
#ifndef USE_CONFIG
|
||||||
#error "Please define USE_WXCONFIG or remove config.cpp from your makefile"
|
#error "Please define USE_CONFIG or remove config.cpp from your makefile"
|
||||||
#endif // USE_WXCONFIG
|
#endif // USE_CONFIG
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// constants
|
// constants
|
||||||
@@ -112,9 +112,9 @@ public:
|
|||||||
// Not all args will always be used by derived classes, but
|
// Not all args will always be used by derived classes, but
|
||||||
// including them all in each class ensures compatibility.
|
// including them all in each class ensures compatibility.
|
||||||
// If appName is empty, uses wxApp name
|
// If appName is empty, uses wxApp name
|
||||||
wxConfigBase(const wxString& appName = wxEmptyString, const wxString& vendorName = wxEmptyString,
|
wxConfigBase(const wxString& appName = "", const wxString& vendorName = "",
|
||||||
const wxString& localFilename = wxEmptyString, const wxString& globalFilename = wxEmptyString,
|
const wxString& localFilename = "", const wxString& globalFilename = "",
|
||||||
long style = 0);
|
long style = 0);
|
||||||
|
|
||||||
// empty but ensures that dtor of all derived classes is virtual
|
// empty but ensures that dtor of all derived classes is virtual
|
||||||
virtual ~wxConfigBase() { }
|
virtual ~wxConfigBase() { }
|
||||||
@@ -155,7 +155,7 @@ public:
|
|||||||
virtual bool Read(const wxString& key, wxString *pStr) const = 0;
|
virtual bool Read(const wxString& key, wxString *pStr) const = 0;
|
||||||
virtual bool Read(const wxString& key, wxString *pStr, const wxString& defVal) const;
|
virtual bool Read(const wxString& key, wxString *pStr, const wxString& defVal) const;
|
||||||
|
|
||||||
virtual wxString Read(const wxString& key, const wxString& defVal) const;
|
virtual wxString Read(const wxString& key, const wxString& defVal = "") const;
|
||||||
|
|
||||||
virtual bool Read(const wxString& key, long *pl) const = 0;
|
virtual bool Read(const wxString& key, long *pl) const = 0;
|
||||||
virtual bool Read(const wxString& key, long *pl, long defVal) const;
|
virtual bool Read(const wxString& key, long *pl, long defVal) const;
|
||||||
|
@@ -26,9 +26,9 @@
|
|||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
// it won't compile without it anyhow
|
// it won't compile without it anyhow
|
||||||
#ifndef USE_WXCONFIG
|
#ifndef USE_CONFIG
|
||||||
#error "Please define USE_WXCONFIG or remove fileconf.cpp from your makefile"
|
#error "Please define USE_CONFIG or remove fileconf.cpp from your makefile"
|
||||||
#endif // USE_WXCONFIG
|
#endif // USE_CONFIG
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// wxFileConfig
|
// wxFileConfig
|
||||||
@@ -133,9 +133,9 @@ public:
|
|||||||
|
|
||||||
// New constructor: one size fits all. Specify wxCONFIG_USE_LOCAL_FILE
|
// New constructor: one size fits all. Specify wxCONFIG_USE_LOCAL_FILE
|
||||||
// or wxCONFIG_USE_GLOBAL_FILE to say which files should be used.
|
// or wxCONFIG_USE_GLOBAL_FILE to say which files should be used.
|
||||||
wxFileConfig(const wxString& appName, const wxString& vendorName = wxEmptyString,
|
wxFileConfig(const wxString& appName, const wxString& vendorName = "",
|
||||||
const wxString& localFilename = wxEmptyString, const wxString& globalFilename = wxEmptyString,
|
const wxString& localFilename = "", const wxString& globalFilename = "",
|
||||||
long style = wxCONFIG_USE_LOCAL_FILE);
|
long style = wxCONFIG_USE_LOCAL_FILE);
|
||||||
|
|
||||||
// dtor will save unsaved data
|
// dtor will save unsaved data
|
||||||
virtual ~wxFileConfig();
|
virtual ~wxFileConfig();
|
||||||
@@ -155,18 +155,6 @@ public:
|
|||||||
virtual bool HasGroup(const wxString& strName) const;
|
virtual bool HasGroup(const wxString& strName) const;
|
||||||
virtual bool HasEntry(const wxString& strName) const;
|
virtual bool HasEntry(const wxString& strName) const;
|
||||||
|
|
||||||
#if 0
|
|
||||||
virtual bool Read(wxString *pstr, const char *szKey,
|
|
||||||
const char *szDefault = 0) const;
|
|
||||||
virtual const char *Read(const char *szKey,
|
|
||||||
const char *szDefault = 0) const;
|
|
||||||
virtual bool Read(long *pl, const char *szKey, long lDefault) const;
|
|
||||||
virtual long Read(const char *szKey, long lDefault) const
|
|
||||||
{ return wxConfigBase::Read(szKey, lDefault); }
|
|
||||||
virtual bool Write(const char *szKey, const char *szValue);
|
|
||||||
virtual bool Write(const char *szKey, long lValue);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
virtual bool Read(const wxString& key, wxString *pStr) const;
|
virtual bool Read(const wxString& key, wxString *pStr) const;
|
||||||
virtual bool Read(const wxString& key, wxString *pStr, const wxString& defValue) const;
|
virtual bool Read(const wxString& key, wxString *pStr, const wxString& defValue) const;
|
||||||
virtual bool Read(const wxString& key, long *pl) const;
|
virtual bool Read(const wxString& key, long *pl) const;
|
||||||
|
106
include/wx/gtk/accel.h
Normal file
106
include/wx/gtk/accel.h
Normal file
@@ -0,0 +1,106 @@
|
|||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
// Name: accel.h
|
||||||
|
// Purpose: wxAcceleratorTable class
|
||||||
|
// Author: Robert
|
||||||
|
// Modified by:
|
||||||
|
// RCS-ID:
|
||||||
|
// Copyright: (c) Robert Roebling
|
||||||
|
// Licence: wxWindows licence
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifndef __GTKACCELH__
|
||||||
|
#define __GTKACCELH__
|
||||||
|
|
||||||
|
#ifdef __GNUG__
|
||||||
|
#pragma interface "accel.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include "wx/defs.h"
|
||||||
|
#include "wx/object.h"
|
||||||
|
#include "wx/event.h"
|
||||||
|
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
// classes
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
class wxAcceleratorEntry;
|
||||||
|
class wxAcceleratorTable;
|
||||||
|
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
// constants
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
extern wxAcceleratorTable wxNullAcceleratorTable;
|
||||||
|
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
// constants
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
// Hold Ctrl key down
|
||||||
|
#define wxACCEL_ALT 0x01
|
||||||
|
|
||||||
|
// Hold Ctrl key down
|
||||||
|
#define wxACCEL_CTRL 0x02
|
||||||
|
|
||||||
|
// Hold Shift key down
|
||||||
|
#define wxACCEL_SHIFT 0x04
|
||||||
|
|
||||||
|
// Hold no other key
|
||||||
|
#define wxACCEL_NORMAL 0x00
|
||||||
|
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
// wxAcceleratorEntry
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
class wxAcceleratorEntry
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
wxAcceleratorEntry(int flags = 0, int keyCode = 0, int cmd = 0)
|
||||||
|
{ m_flags = flags; m_keyCode = keyCode; m_command = cmd; }
|
||||||
|
|
||||||
|
inline void Set(int flags, int keyCode, int cmd)
|
||||||
|
{ m_flags = flags; m_keyCode = keyCode; m_command = cmd; }
|
||||||
|
|
||||||
|
inline int GetFlags() const { return m_flags; }
|
||||||
|
inline int GetKeyCode() const { return m_keyCode; }
|
||||||
|
inline int GetCommand() const { return m_command; }
|
||||||
|
|
||||||
|
int m_flags;
|
||||||
|
int m_keyCode; // ASCII or virtual keycode
|
||||||
|
int m_command; // Command id to generate
|
||||||
|
};
|
||||||
|
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
// wxAcceleratorTable
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
class wxAcceleratorTable: public wxObject
|
||||||
|
{
|
||||||
|
DECLARE_DYNAMIC_CLASS(wxAcceleratorTable)
|
||||||
|
|
||||||
|
public:
|
||||||
|
wxAcceleratorTable();
|
||||||
|
wxAcceleratorTable(int n, wxAcceleratorEntry entries[] );
|
||||||
|
~wxAcceleratorTable();
|
||||||
|
|
||||||
|
inline wxAcceleratorTable(const wxAcceleratorTable& accel)
|
||||||
|
{ Ref(accel); }
|
||||||
|
inline wxAcceleratorTable(const wxAcceleratorTable* accel)
|
||||||
|
{ if (accel) Ref(*accel); }
|
||||||
|
inline wxAcceleratorTable& operator = (const wxAcceleratorTable& accel)
|
||||||
|
{ if (*this == accel) return (*this); Ref(accel); return *this; }
|
||||||
|
inline bool operator == (const wxAcceleratorTable& accel)
|
||||||
|
{ return m_refData == accel.m_refData; }
|
||||||
|
inline bool operator != (const wxAcceleratorTable& accel)
|
||||||
|
{ return m_refData != accel.m_refData; }
|
||||||
|
|
||||||
|
bool Ok() const;
|
||||||
|
|
||||||
|
// private:
|
||||||
|
|
||||||
|
int GetCommand( wxKeyEvent &event );
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
@@ -15,6 +15,7 @@
|
|||||||
#pragma interface
|
#pragma interface
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "wx/defs.h"
|
||||||
#include "wx/window.h"
|
#include "wx/window.h"
|
||||||
#include "wx/frame.h"
|
#include "wx/frame.h"
|
||||||
|
|
||||||
|
@@ -66,11 +66,6 @@ public:
|
|||||||
virtual void GetClientSize( int *width, int *height ) const;
|
virtual void GetClientSize( int *width, int *height ) const;
|
||||||
virtual void SetClientSize( int const width, int const height );
|
virtual void SetClientSize( int const width, int const height );
|
||||||
|
|
||||||
// set minimal/maxmimal size for the frame
|
|
||||||
virtual void SetSizeHints(int minW, int minH,
|
|
||||||
int maxW = -1, int maxH = -1,
|
|
||||||
int incW = -1, int incH = -1 );
|
|
||||||
|
|
||||||
virtual wxStatusBar* CreateStatusBar(int number=1, long style = wxST_SIZEGRIP, wxWindowID id = 0,
|
virtual wxStatusBar* CreateStatusBar(int number=1, long style = wxST_SIZEGRIP, wxWindowID id = 0,
|
||||||
const wxString& name = "statusBar");
|
const wxString& name = "statusBar");
|
||||||
virtual wxStatusBar *OnCreateStatusBar( int number, long style, wxWindowID id,
|
virtual wxStatusBar *OnCreateStatusBar( int number, long style, wxWindowID id,
|
||||||
|
@@ -89,11 +89,46 @@ class wxRegion : public wxGDIObject
|
|||||||
|
|
||||||
wxRegionContain Contains( long x, long y ) const;
|
wxRegionContain Contains( long x, long y ) const;
|
||||||
wxRegionContain Contains( long x, long y, long w, long h ) const;
|
wxRegionContain Contains( long x, long y, long w, long h ) const;
|
||||||
|
wxRegionContain Contains(const wxPoint& pt) const;
|
||||||
|
wxRegionContain Contains(const wxRect& rect) const;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
wxList *GetRectList() const;
|
||||||
GdkRegion *GetRegion(void) const;
|
GdkRegion *GetRegion(void) const;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
class wxRegionIterator: public wxObject
|
||||||
|
{
|
||||||
|
DECLARE_DYNAMIC_CLASS(wxRegionIterator);
|
||||||
|
|
||||||
|
public:
|
||||||
|
|
||||||
|
wxRegionIterator(void);
|
||||||
|
wxRegionIterator(const wxRegion& region);
|
||||||
|
|
||||||
|
void Reset(void) { m_current = 0; }
|
||||||
|
void Reset(const wxRegion& region);
|
||||||
|
|
||||||
|
operator bool (void) const;
|
||||||
|
bool HaveRects(void) const;
|
||||||
|
|
||||||
|
void operator ++ (void);
|
||||||
|
void operator ++ (int);
|
||||||
|
|
||||||
|
long GetX(void) const;
|
||||||
|
long GetY(void) const;
|
||||||
|
long GetW(void) const;
|
||||||
|
long GetWidth(void) const { return GetW(); }
|
||||||
|
long GetH(void) const;
|
||||||
|
long GetHeight(void) const { return GetH(); }
|
||||||
|
|
||||||
|
private:
|
||||||
|
|
||||||
|
long m_current;
|
||||||
|
wxRegion m_region;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
// __REGIONH__
|
// __REGIONH__
|
||||||
|
@@ -133,8 +133,6 @@ class wxToolBar: public wxControl
|
|||||||
|
|
||||||
GtkToolbar *m_toolbar;
|
GtkToolbar *m_toolbar;
|
||||||
wxList m_tools;
|
wxList m_tools;
|
||||||
|
|
||||||
DECLARE_EVENT_TABLE()
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -26,6 +26,7 @@
|
|||||||
#include "wx/dc.h"
|
#include "wx/dc.h"
|
||||||
#include "wx/region.h"
|
#include "wx/region.h"
|
||||||
#include "wx/dnd.h"
|
#include "wx/dnd.h"
|
||||||
|
#include "wx/accel.h"
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
// global data
|
// global data
|
||||||
@@ -77,8 +78,10 @@ public:
|
|||||||
const wxString& name = wxPanelNameStr);
|
const wxString& name = wxPanelNameStr);
|
||||||
virtual ~wxWindow();
|
virtual ~wxWindow();
|
||||||
|
|
||||||
virtual bool LoadFromResource(wxWindow *parent, const wxString& resourceName, const wxResourceTable *table = (const wxResourceTable *) NULL);
|
virtual bool LoadFromResource( wxWindow *parent, const wxString& resourceName,
|
||||||
virtual wxControl *CreateItem(const wxItemResource *childResource, const wxResourceTable *table = (const wxResourceTable *) NULL);
|
const wxResourceTable *table = (const wxResourceTable *) NULL);
|
||||||
|
virtual wxControl *CreateItem( const wxItemResource *childResource,
|
||||||
|
const wxResourceTable *table = (const wxResourceTable *) NULL);
|
||||||
|
|
||||||
bool Close( bool force = FALSE );
|
bool Close( bool force = FALSE );
|
||||||
virtual bool Destroy();
|
virtual bool Destroy();
|
||||||
@@ -97,9 +100,8 @@ public:
|
|||||||
virtual void Centre( int direction = wxHORIZONTAL );
|
virtual void Centre( int direction = wxHORIZONTAL );
|
||||||
inline void Center(int direction = wxHORIZONTAL) { Centre(direction); }
|
inline void Center(int direction = wxHORIZONTAL) { Centre(direction); }
|
||||||
virtual void Fit();
|
virtual void Fit();
|
||||||
// set minimal/maxmimal size for the frame
|
|
||||||
virtual void SetSizeHints( int WXUNUSED(minW), int WXUNUSED(minH), int WXUNUSED(maxW),
|
virtual void SetSizeHints( int minW, int minH, int maxW = -1, int maxH = -1, int incW = -1, int incH = -1 );
|
||||||
int WXUNUSED(maxH), int WXUNUSED(incW), int WXUNUSED(incH) ) { }
|
|
||||||
|
|
||||||
void OnSize( wxSizeEvent &event );
|
void OnSize( wxSizeEvent &event );
|
||||||
void OnIdle( wxIdleEvent& event );
|
void OnIdle( wxIdleEvent& event );
|
||||||
@@ -132,6 +134,9 @@ public:
|
|||||||
virtual wxValidator *GetValidator();
|
virtual wxValidator *GetValidator();
|
||||||
virtual void SetValidator( const wxValidator &validator );
|
virtual void SetValidator( const wxValidator &validator );
|
||||||
|
|
||||||
|
virtual void SetAcceleratorTable( const wxAcceleratorTable& accel );
|
||||||
|
virtual wxAcceleratorTable *GetAcceleratorTable() { return &m_acceleratorTable; }
|
||||||
|
|
||||||
bool IsBeingDeleted();
|
bool IsBeingDeleted();
|
||||||
|
|
||||||
void SetId( wxWindowID id );
|
void SetId( wxWindowID id );
|
||||||
@@ -141,8 +146,12 @@ public:
|
|||||||
|
|
||||||
virtual void Refresh( bool eraseBackground = TRUE, const wxRect *rect = (const wxRect *) NULL );
|
virtual void Refresh( bool eraseBackground = TRUE, const wxRect *rect = (const wxRect *) NULL );
|
||||||
virtual void Clear();
|
virtual void Clear();
|
||||||
virtual bool IsExposed( long x, long y );
|
|
||||||
virtual bool IsExposed( long x, long y, long width, long height );
|
virtual wxRegion GetUpdateRegion() const;
|
||||||
|
virtual bool IsExposed(int x, int y) const;
|
||||||
|
virtual bool IsExposed(int x, int y, int w, int h) const;
|
||||||
|
virtual bool IsExposed(const wxPoint& pt) const;
|
||||||
|
virtual bool IsExposed(const wxRect& rect) const;
|
||||||
|
|
||||||
virtual wxColour GetBackgroundColour() const;
|
virtual wxColour GetBackgroundColour() const;
|
||||||
virtual void SetBackgroundColour( const wxColour &colour );
|
virtual void SetBackgroundColour( const wxColour &colour );
|
||||||
@@ -208,11 +217,6 @@ public:
|
|||||||
virtual void SetDropTarget( wxDropTarget *dropTarget );
|
virtual void SetDropTarget( wxDropTarget *dropTarget );
|
||||||
virtual wxDropTarget *GetDropTarget() const;
|
virtual wxDropTarget *GetDropTarget() const;
|
||||||
|
|
||||||
//private:
|
|
||||||
virtual GtkWidget* GetConnectWidget(void);
|
|
||||||
virtual bool IsOwnGtkWindow( GdkWindow *window );
|
|
||||||
|
|
||||||
public:
|
|
||||||
virtual void SetScrollbar( int orient, int pos, int thumbVisible,
|
virtual void SetScrollbar( int orient, int pos, int thumbVisible,
|
||||||
int range, bool refresh = TRUE );
|
int range, bool refresh = TRUE );
|
||||||
virtual void SetScrollPos( int orient, int pos, bool refresh = TRUE );
|
virtual void SetScrollPos( int orient, int pos, bool refresh = TRUE );
|
||||||
@@ -221,15 +225,14 @@ public:
|
|||||||
virtual int GetScrollRange( int orient ) const;
|
virtual int GetScrollRange( int orient ) const;
|
||||||
virtual void ScrollWindow( int dx, int dy, const wxRect* rect = (wxRect *) NULL );
|
virtual void ScrollWindow( int dx, int dy, const wxRect* rect = (wxRect *) NULL );
|
||||||
|
|
||||||
// return FALSE from here if the window doesn't want the focus
|
|
||||||
virtual bool AcceptsFocus() const;
|
virtual bool AcceptsFocus() const;
|
||||||
|
|
||||||
// update the UI state (called from OnIdle)
|
|
||||||
void UpdateWindowUI();
|
void UpdateWindowUI();
|
||||||
|
|
||||||
|
|
||||||
public: // cannot get private going yet
|
public: // cannot get private going yet
|
||||||
|
|
||||||
|
virtual GtkWidget* GetConnectWidget(void);
|
||||||
|
virtual bool IsOwnGtkWindow( GdkWindow *window );
|
||||||
|
|
||||||
void PreCreation( wxWindow *parent, wxWindowID id, const wxPoint &pos,
|
void PreCreation( wxWindow *parent, wxWindowID id, const wxPoint &pos,
|
||||||
const wxSize &size, long style, const wxString &name );
|
const wxSize &size, long style, const wxString &name );
|
||||||
void PostCreation();
|
void PostCreation();
|
||||||
@@ -237,45 +240,48 @@ public: // cannot get private going yet
|
|||||||
virtual void ImplementSetSize();
|
virtual void ImplementSetSize();
|
||||||
virtual void ImplementSetPosition();
|
virtual void ImplementSetPosition();
|
||||||
|
|
||||||
wxWindow *m_parent;
|
wxWindow *m_parent;
|
||||||
wxList m_children;
|
wxList m_children;
|
||||||
int m_x,m_y;
|
int m_x,m_y;
|
||||||
int m_width,m_height;
|
int m_width,m_height;
|
||||||
int m_retCode;
|
int m_minWidth,m_minHeight;
|
||||||
wxEvtHandler *m_eventHandler;
|
int m_maxWidth,m_maxHeight;
|
||||||
wxValidator *m_windowValidator;
|
int m_retCode;
|
||||||
wxDropTarget *m_pDropTarget;
|
wxEvtHandler *m_eventHandler;
|
||||||
wxWindowID m_windowId;
|
wxValidator *m_windowValidator;
|
||||||
wxCursor *m_cursor;
|
wxDropTarget *m_pDropTarget;
|
||||||
wxFont m_font;
|
wxWindowID m_windowId;
|
||||||
wxColour m_backgroundColour;
|
wxCursor *m_cursor;
|
||||||
wxColour m_defaultBackgroundColour;
|
wxFont m_font;
|
||||||
wxColour m_foregroundColour ;
|
wxColour m_backgroundColour;
|
||||||
wxColour m_defaultForegroundColour;
|
wxColour m_defaultBackgroundColour;
|
||||||
wxRegion m_updateRegion;
|
wxColour m_foregroundColour ;
|
||||||
long m_windowStyle;
|
wxColour m_defaultForegroundColour;
|
||||||
bool m_isShown;
|
wxRegion m_updateRegion;
|
||||||
bool m_isEnabled;
|
long m_windowStyle;
|
||||||
wxString m_windowName;
|
bool m_isShown;
|
||||||
|
bool m_isEnabled;
|
||||||
|
wxString m_windowName;
|
||||||
|
wxAcceleratorTable m_acceleratorTable;
|
||||||
|
|
||||||
GtkWidget *m_widget;
|
GtkWidget *m_widget;
|
||||||
GtkWidget *m_wxwindow;
|
GtkWidget *m_wxwindow;
|
||||||
GtkAdjustment *m_hAdjust,*m_vAdjust;
|
GtkAdjustment *m_hAdjust,*m_vAdjust;
|
||||||
float m_oldHorizontalPos;
|
float m_oldHorizontalPos;
|
||||||
float m_oldVerticalPos;
|
float m_oldVerticalPos;
|
||||||
bool m_needParent;
|
bool m_needParent;
|
||||||
bool m_hasScrolling;
|
bool m_hasScrolling;
|
||||||
bool m_hasVMT;
|
bool m_hasVMT;
|
||||||
bool m_sizeSet;
|
bool m_sizeSet;
|
||||||
bool m_resizing;
|
bool m_resizing;
|
||||||
|
|
||||||
public: // Layout section
|
public:
|
||||||
|
|
||||||
wxLayoutConstraints * m_constraints;
|
wxLayoutConstraints *m_constraints;
|
||||||
wxList * m_constraintsInvolvedIn;
|
wxList *m_constraintsInvolvedIn;
|
||||||
wxSizer * m_windowSizer;
|
wxSizer *m_windowSizer;
|
||||||
wxWindow * m_sizerParent;
|
wxWindow *m_sizerParent;
|
||||||
bool m_autoLayout;
|
bool m_autoLayout;
|
||||||
|
|
||||||
wxLayoutConstraints *GetConstraints() const;
|
wxLayoutConstraints *GetConstraints() const;
|
||||||
void SetConstraints( wxLayoutConstraints *constraints );
|
void SetConstraints( wxLayoutConstraints *constraints );
|
||||||
|
106
include/wx/gtk1/accel.h
Normal file
106
include/wx/gtk1/accel.h
Normal file
@@ -0,0 +1,106 @@
|
|||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
// Name: accel.h
|
||||||
|
// Purpose: wxAcceleratorTable class
|
||||||
|
// Author: Robert
|
||||||
|
// Modified by:
|
||||||
|
// RCS-ID:
|
||||||
|
// Copyright: (c) Robert Roebling
|
||||||
|
// Licence: wxWindows licence
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifndef __GTKACCELH__
|
||||||
|
#define __GTKACCELH__
|
||||||
|
|
||||||
|
#ifdef __GNUG__
|
||||||
|
#pragma interface "accel.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include "wx/defs.h"
|
||||||
|
#include "wx/object.h"
|
||||||
|
#include "wx/event.h"
|
||||||
|
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
// classes
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
class wxAcceleratorEntry;
|
||||||
|
class wxAcceleratorTable;
|
||||||
|
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
// constants
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
extern wxAcceleratorTable wxNullAcceleratorTable;
|
||||||
|
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
// constants
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
// Hold Ctrl key down
|
||||||
|
#define wxACCEL_ALT 0x01
|
||||||
|
|
||||||
|
// Hold Ctrl key down
|
||||||
|
#define wxACCEL_CTRL 0x02
|
||||||
|
|
||||||
|
// Hold Shift key down
|
||||||
|
#define wxACCEL_SHIFT 0x04
|
||||||
|
|
||||||
|
// Hold no other key
|
||||||
|
#define wxACCEL_NORMAL 0x00
|
||||||
|
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
// wxAcceleratorEntry
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
class wxAcceleratorEntry
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
wxAcceleratorEntry(int flags = 0, int keyCode = 0, int cmd = 0)
|
||||||
|
{ m_flags = flags; m_keyCode = keyCode; m_command = cmd; }
|
||||||
|
|
||||||
|
inline void Set(int flags, int keyCode, int cmd)
|
||||||
|
{ m_flags = flags; m_keyCode = keyCode; m_command = cmd; }
|
||||||
|
|
||||||
|
inline int GetFlags() const { return m_flags; }
|
||||||
|
inline int GetKeyCode() const { return m_keyCode; }
|
||||||
|
inline int GetCommand() const { return m_command; }
|
||||||
|
|
||||||
|
int m_flags;
|
||||||
|
int m_keyCode; // ASCII or virtual keycode
|
||||||
|
int m_command; // Command id to generate
|
||||||
|
};
|
||||||
|
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
// wxAcceleratorTable
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
class wxAcceleratorTable: public wxObject
|
||||||
|
{
|
||||||
|
DECLARE_DYNAMIC_CLASS(wxAcceleratorTable)
|
||||||
|
|
||||||
|
public:
|
||||||
|
wxAcceleratorTable();
|
||||||
|
wxAcceleratorTable(int n, wxAcceleratorEntry entries[] );
|
||||||
|
~wxAcceleratorTable();
|
||||||
|
|
||||||
|
inline wxAcceleratorTable(const wxAcceleratorTable& accel)
|
||||||
|
{ Ref(accel); }
|
||||||
|
inline wxAcceleratorTable(const wxAcceleratorTable* accel)
|
||||||
|
{ if (accel) Ref(*accel); }
|
||||||
|
inline wxAcceleratorTable& operator = (const wxAcceleratorTable& accel)
|
||||||
|
{ if (*this == accel) return (*this); Ref(accel); return *this; }
|
||||||
|
inline bool operator == (const wxAcceleratorTable& accel)
|
||||||
|
{ return m_refData == accel.m_refData; }
|
||||||
|
inline bool operator != (const wxAcceleratorTable& accel)
|
||||||
|
{ return m_refData != accel.m_refData; }
|
||||||
|
|
||||||
|
bool Ok() const;
|
||||||
|
|
||||||
|
// private:
|
||||||
|
|
||||||
|
int GetCommand( wxKeyEvent &event );
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
@@ -15,6 +15,7 @@
|
|||||||
#pragma interface
|
#pragma interface
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "wx/defs.h"
|
||||||
#include "wx/window.h"
|
#include "wx/window.h"
|
||||||
#include "wx/frame.h"
|
#include "wx/frame.h"
|
||||||
|
|
||||||
|
@@ -66,11 +66,6 @@ public:
|
|||||||
virtual void GetClientSize( int *width, int *height ) const;
|
virtual void GetClientSize( int *width, int *height ) const;
|
||||||
virtual void SetClientSize( int const width, int const height );
|
virtual void SetClientSize( int const width, int const height );
|
||||||
|
|
||||||
// set minimal/maxmimal size for the frame
|
|
||||||
virtual void SetSizeHints(int minW, int minH,
|
|
||||||
int maxW = -1, int maxH = -1,
|
|
||||||
int incW = -1, int incH = -1 );
|
|
||||||
|
|
||||||
virtual wxStatusBar* CreateStatusBar(int number=1, long style = wxST_SIZEGRIP, wxWindowID id = 0,
|
virtual wxStatusBar* CreateStatusBar(int number=1, long style = wxST_SIZEGRIP, wxWindowID id = 0,
|
||||||
const wxString& name = "statusBar");
|
const wxString& name = "statusBar");
|
||||||
virtual wxStatusBar *OnCreateStatusBar( int number, long style, wxWindowID id,
|
virtual wxStatusBar *OnCreateStatusBar( int number, long style, wxWindowID id,
|
||||||
|
@@ -89,11 +89,46 @@ class wxRegion : public wxGDIObject
|
|||||||
|
|
||||||
wxRegionContain Contains( long x, long y ) const;
|
wxRegionContain Contains( long x, long y ) const;
|
||||||
wxRegionContain Contains( long x, long y, long w, long h ) const;
|
wxRegionContain Contains( long x, long y, long w, long h ) const;
|
||||||
|
wxRegionContain Contains(const wxPoint& pt) const;
|
||||||
|
wxRegionContain Contains(const wxRect& rect) const;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
wxList *GetRectList() const;
|
||||||
GdkRegion *GetRegion(void) const;
|
GdkRegion *GetRegion(void) const;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
class wxRegionIterator: public wxObject
|
||||||
|
{
|
||||||
|
DECLARE_DYNAMIC_CLASS(wxRegionIterator);
|
||||||
|
|
||||||
|
public:
|
||||||
|
|
||||||
|
wxRegionIterator(void);
|
||||||
|
wxRegionIterator(const wxRegion& region);
|
||||||
|
|
||||||
|
void Reset(void) { m_current = 0; }
|
||||||
|
void Reset(const wxRegion& region);
|
||||||
|
|
||||||
|
operator bool (void) const;
|
||||||
|
bool HaveRects(void) const;
|
||||||
|
|
||||||
|
void operator ++ (void);
|
||||||
|
void operator ++ (int);
|
||||||
|
|
||||||
|
long GetX(void) const;
|
||||||
|
long GetY(void) const;
|
||||||
|
long GetW(void) const;
|
||||||
|
long GetWidth(void) const { return GetW(); }
|
||||||
|
long GetH(void) const;
|
||||||
|
long GetHeight(void) const { return GetH(); }
|
||||||
|
|
||||||
|
private:
|
||||||
|
|
||||||
|
long m_current;
|
||||||
|
wxRegion m_region;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
// __REGIONH__
|
// __REGIONH__
|
||||||
|
@@ -133,8 +133,6 @@ class wxToolBar: public wxControl
|
|||||||
|
|
||||||
GtkToolbar *m_toolbar;
|
GtkToolbar *m_toolbar;
|
||||||
wxList m_tools;
|
wxList m_tools;
|
||||||
|
|
||||||
DECLARE_EVENT_TABLE()
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -26,6 +26,7 @@
|
|||||||
#include "wx/dc.h"
|
#include "wx/dc.h"
|
||||||
#include "wx/region.h"
|
#include "wx/region.h"
|
||||||
#include "wx/dnd.h"
|
#include "wx/dnd.h"
|
||||||
|
#include "wx/accel.h"
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
// global data
|
// global data
|
||||||
@@ -77,8 +78,10 @@ public:
|
|||||||
const wxString& name = wxPanelNameStr);
|
const wxString& name = wxPanelNameStr);
|
||||||
virtual ~wxWindow();
|
virtual ~wxWindow();
|
||||||
|
|
||||||
virtual bool LoadFromResource(wxWindow *parent, const wxString& resourceName, const wxResourceTable *table = (const wxResourceTable *) NULL);
|
virtual bool LoadFromResource( wxWindow *parent, const wxString& resourceName,
|
||||||
virtual wxControl *CreateItem(const wxItemResource *childResource, const wxResourceTable *table = (const wxResourceTable *) NULL);
|
const wxResourceTable *table = (const wxResourceTable *) NULL);
|
||||||
|
virtual wxControl *CreateItem( const wxItemResource *childResource,
|
||||||
|
const wxResourceTable *table = (const wxResourceTable *) NULL);
|
||||||
|
|
||||||
bool Close( bool force = FALSE );
|
bool Close( bool force = FALSE );
|
||||||
virtual bool Destroy();
|
virtual bool Destroy();
|
||||||
@@ -97,9 +100,8 @@ public:
|
|||||||
virtual void Centre( int direction = wxHORIZONTAL );
|
virtual void Centre( int direction = wxHORIZONTAL );
|
||||||
inline void Center(int direction = wxHORIZONTAL) { Centre(direction); }
|
inline void Center(int direction = wxHORIZONTAL) { Centre(direction); }
|
||||||
virtual void Fit();
|
virtual void Fit();
|
||||||
// set minimal/maxmimal size for the frame
|
|
||||||
virtual void SetSizeHints( int WXUNUSED(minW), int WXUNUSED(minH), int WXUNUSED(maxW),
|
virtual void SetSizeHints( int minW, int minH, int maxW = -1, int maxH = -1, int incW = -1, int incH = -1 );
|
||||||
int WXUNUSED(maxH), int WXUNUSED(incW), int WXUNUSED(incH) ) { }
|
|
||||||
|
|
||||||
void OnSize( wxSizeEvent &event );
|
void OnSize( wxSizeEvent &event );
|
||||||
void OnIdle( wxIdleEvent& event );
|
void OnIdle( wxIdleEvent& event );
|
||||||
@@ -132,6 +134,9 @@ public:
|
|||||||
virtual wxValidator *GetValidator();
|
virtual wxValidator *GetValidator();
|
||||||
virtual void SetValidator( const wxValidator &validator );
|
virtual void SetValidator( const wxValidator &validator );
|
||||||
|
|
||||||
|
virtual void SetAcceleratorTable( const wxAcceleratorTable& accel );
|
||||||
|
virtual wxAcceleratorTable *GetAcceleratorTable() { return &m_acceleratorTable; }
|
||||||
|
|
||||||
bool IsBeingDeleted();
|
bool IsBeingDeleted();
|
||||||
|
|
||||||
void SetId( wxWindowID id );
|
void SetId( wxWindowID id );
|
||||||
@@ -141,8 +146,12 @@ public:
|
|||||||
|
|
||||||
virtual void Refresh( bool eraseBackground = TRUE, const wxRect *rect = (const wxRect *) NULL );
|
virtual void Refresh( bool eraseBackground = TRUE, const wxRect *rect = (const wxRect *) NULL );
|
||||||
virtual void Clear();
|
virtual void Clear();
|
||||||
virtual bool IsExposed( long x, long y );
|
|
||||||
virtual bool IsExposed( long x, long y, long width, long height );
|
virtual wxRegion GetUpdateRegion() const;
|
||||||
|
virtual bool IsExposed(int x, int y) const;
|
||||||
|
virtual bool IsExposed(int x, int y, int w, int h) const;
|
||||||
|
virtual bool IsExposed(const wxPoint& pt) const;
|
||||||
|
virtual bool IsExposed(const wxRect& rect) const;
|
||||||
|
|
||||||
virtual wxColour GetBackgroundColour() const;
|
virtual wxColour GetBackgroundColour() const;
|
||||||
virtual void SetBackgroundColour( const wxColour &colour );
|
virtual void SetBackgroundColour( const wxColour &colour );
|
||||||
@@ -208,11 +217,6 @@ public:
|
|||||||
virtual void SetDropTarget( wxDropTarget *dropTarget );
|
virtual void SetDropTarget( wxDropTarget *dropTarget );
|
||||||
virtual wxDropTarget *GetDropTarget() const;
|
virtual wxDropTarget *GetDropTarget() const;
|
||||||
|
|
||||||
//private:
|
|
||||||
virtual GtkWidget* GetConnectWidget(void);
|
|
||||||
virtual bool IsOwnGtkWindow( GdkWindow *window );
|
|
||||||
|
|
||||||
public:
|
|
||||||
virtual void SetScrollbar( int orient, int pos, int thumbVisible,
|
virtual void SetScrollbar( int orient, int pos, int thumbVisible,
|
||||||
int range, bool refresh = TRUE );
|
int range, bool refresh = TRUE );
|
||||||
virtual void SetScrollPos( int orient, int pos, bool refresh = TRUE );
|
virtual void SetScrollPos( int orient, int pos, bool refresh = TRUE );
|
||||||
@@ -221,15 +225,14 @@ public:
|
|||||||
virtual int GetScrollRange( int orient ) const;
|
virtual int GetScrollRange( int orient ) const;
|
||||||
virtual void ScrollWindow( int dx, int dy, const wxRect* rect = (wxRect *) NULL );
|
virtual void ScrollWindow( int dx, int dy, const wxRect* rect = (wxRect *) NULL );
|
||||||
|
|
||||||
// return FALSE from here if the window doesn't want the focus
|
|
||||||
virtual bool AcceptsFocus() const;
|
virtual bool AcceptsFocus() const;
|
||||||
|
|
||||||
// update the UI state (called from OnIdle)
|
|
||||||
void UpdateWindowUI();
|
void UpdateWindowUI();
|
||||||
|
|
||||||
|
|
||||||
public: // cannot get private going yet
|
public: // cannot get private going yet
|
||||||
|
|
||||||
|
virtual GtkWidget* GetConnectWidget(void);
|
||||||
|
virtual bool IsOwnGtkWindow( GdkWindow *window );
|
||||||
|
|
||||||
void PreCreation( wxWindow *parent, wxWindowID id, const wxPoint &pos,
|
void PreCreation( wxWindow *parent, wxWindowID id, const wxPoint &pos,
|
||||||
const wxSize &size, long style, const wxString &name );
|
const wxSize &size, long style, const wxString &name );
|
||||||
void PostCreation();
|
void PostCreation();
|
||||||
@@ -237,45 +240,48 @@ public: // cannot get private going yet
|
|||||||
virtual void ImplementSetSize();
|
virtual void ImplementSetSize();
|
||||||
virtual void ImplementSetPosition();
|
virtual void ImplementSetPosition();
|
||||||
|
|
||||||
wxWindow *m_parent;
|
wxWindow *m_parent;
|
||||||
wxList m_children;
|
wxList m_children;
|
||||||
int m_x,m_y;
|
int m_x,m_y;
|
||||||
int m_width,m_height;
|
int m_width,m_height;
|
||||||
int m_retCode;
|
int m_minWidth,m_minHeight;
|
||||||
wxEvtHandler *m_eventHandler;
|
int m_maxWidth,m_maxHeight;
|
||||||
wxValidator *m_windowValidator;
|
int m_retCode;
|
||||||
wxDropTarget *m_pDropTarget;
|
wxEvtHandler *m_eventHandler;
|
||||||
wxWindowID m_windowId;
|
wxValidator *m_windowValidator;
|
||||||
wxCursor *m_cursor;
|
wxDropTarget *m_pDropTarget;
|
||||||
wxFont m_font;
|
wxWindowID m_windowId;
|
||||||
wxColour m_backgroundColour;
|
wxCursor *m_cursor;
|
||||||
wxColour m_defaultBackgroundColour;
|
wxFont m_font;
|
||||||
wxColour m_foregroundColour ;
|
wxColour m_backgroundColour;
|
||||||
wxColour m_defaultForegroundColour;
|
wxColour m_defaultBackgroundColour;
|
||||||
wxRegion m_updateRegion;
|
wxColour m_foregroundColour ;
|
||||||
long m_windowStyle;
|
wxColour m_defaultForegroundColour;
|
||||||
bool m_isShown;
|
wxRegion m_updateRegion;
|
||||||
bool m_isEnabled;
|
long m_windowStyle;
|
||||||
wxString m_windowName;
|
bool m_isShown;
|
||||||
|
bool m_isEnabled;
|
||||||
|
wxString m_windowName;
|
||||||
|
wxAcceleratorTable m_acceleratorTable;
|
||||||
|
|
||||||
GtkWidget *m_widget;
|
GtkWidget *m_widget;
|
||||||
GtkWidget *m_wxwindow;
|
GtkWidget *m_wxwindow;
|
||||||
GtkAdjustment *m_hAdjust,*m_vAdjust;
|
GtkAdjustment *m_hAdjust,*m_vAdjust;
|
||||||
float m_oldHorizontalPos;
|
float m_oldHorizontalPos;
|
||||||
float m_oldVerticalPos;
|
float m_oldVerticalPos;
|
||||||
bool m_needParent;
|
bool m_needParent;
|
||||||
bool m_hasScrolling;
|
bool m_hasScrolling;
|
||||||
bool m_hasVMT;
|
bool m_hasVMT;
|
||||||
bool m_sizeSet;
|
bool m_sizeSet;
|
||||||
bool m_resizing;
|
bool m_resizing;
|
||||||
|
|
||||||
public: // Layout section
|
public:
|
||||||
|
|
||||||
wxLayoutConstraints * m_constraints;
|
wxLayoutConstraints *m_constraints;
|
||||||
wxList * m_constraintsInvolvedIn;
|
wxList *m_constraintsInvolvedIn;
|
||||||
wxSizer * m_windowSizer;
|
wxSizer *m_windowSizer;
|
||||||
wxWindow * m_sizerParent;
|
wxWindow *m_sizerParent;
|
||||||
bool m_autoLayout;
|
bool m_autoLayout;
|
||||||
|
|
||||||
wxLayoutConstraints *GetConstraints() const;
|
wxLayoutConstraints *GetConstraints() const;
|
||||||
void SetConstraints( wxLayoutConstraints *constraints );
|
void SetConstraints( wxLayoutConstraints *constraints );
|
||||||
|
@@ -197,6 +197,19 @@ public:
|
|||||||
inline wxDC *GetSelectedInto(void) const { return (M_BITMAPDATA ? M_BITMAPDATA->m_selectedInto : NULL); }
|
inline wxDC *GetSelectedInto(void) const { return (M_BITMAPDATA ? M_BITMAPDATA->m_selectedInto : NULL); }
|
||||||
bool FreeResource(bool force = FALSE);
|
bool FreeResource(bool force = FALSE);
|
||||||
|
|
||||||
|
// Creates a bitmap that matches the device context's depth, from
|
||||||
|
// an arbitray bitmap. At present, the original bitmap must have an
|
||||||
|
// associated palette. (TODO: use a default palette if no palette exists.)
|
||||||
|
// This function is necessary for you to Blit an arbitrary bitmap (which may have
|
||||||
|
// the wrong depth). wxDC::SelectObject will compare the depth of the bitmap
|
||||||
|
// with the DC's depth, and create a new bitmap if the depths differ.
|
||||||
|
// Eventually we should perhaps make this a public API function so that
|
||||||
|
// an app can efficiently produce bitmaps of the correct depth.
|
||||||
|
// The Windows solution is to use SetDibBits to blit an arbotrary DIB directly to a DC, but
|
||||||
|
// this is too Windows-specific, hence this solution of quietly converting the wxBitmap.
|
||||||
|
// Contributed by Frederic Villeneuve <frederic.villeneuve@natinst.com>
|
||||||
|
wxBitmap GetBitmapForDC(wxDC& dc) const;
|
||||||
|
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
// _WX_BITMAP_H_
|
// _WX_BITMAP_H_
|
||||||
|
@@ -261,6 +261,10 @@ public:
|
|||||||
GetClippingBox(&x, &y, &w, &h); rect.x = x; rect.y = y; rect.width = w; rect.height = h;
|
GetClippingBox(&x, &y, &w, &h); rect.x = x; rect.y = y; rect.width = w; rect.height = h;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// This should probably be made available on other platforms
|
||||||
|
int wxDC::GetDepth(void) const ;
|
||||||
|
|
||||||
|
// Implementation
|
||||||
virtual void SetRop(WXHDC cdc);
|
virtual void SetRop(WXHDC cdc);
|
||||||
virtual void DoClipping(WXHDC cdc);
|
virtual void DoClipping(WXHDC cdc);
|
||||||
virtual void SelectOldObjects(WXHDC dc);
|
virtual void SelectOldObjects(WXHDC dc);
|
||||||
|
@@ -78,7 +78,7 @@ class WXDLLEXPORT wxClassInfo
|
|||||||
|
|
||||||
wxObject* WXDLLEXPORT wxCreateDynamicObject(char *name);
|
wxObject* WXDLLEXPORT wxCreateDynamicObject(char *name);
|
||||||
|
|
||||||
#ifdef USE_STORABLE_CLASSES
|
#ifdef USE_SERIAL
|
||||||
wxObject* WXDLLEXPORT wxCreateStoredObject( wxInputStream& stream );
|
wxObject* WXDLLEXPORT wxCreateStoredObject( wxInputStream& stream );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -183,7 +183,7 @@ class WXDLLEXPORT wxObject
|
|||||||
virtual void Dump(ostream& str);
|
virtual void Dump(ostream& str);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef USE_STORABLE_CLASSES
|
#ifdef USE_SERIAL
|
||||||
virtual void StoreObject( wxObjectOutputStream &stream );
|
virtual void StoreObject( wxObjectOutputStream &stream );
|
||||||
virtual void LoadObject( wxObjectInputStream &stream );
|
virtual void LoadObject( wxObjectInputStream &stream );
|
||||||
#endif
|
#endif
|
||||||
@@ -199,7 +199,7 @@ class WXDLLEXPORT wxObject
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
wxObjectRefData *m_refData;
|
wxObjectRefData *m_refData;
|
||||||
#ifdef USE_STORABLE_CLASSES
|
#ifdef USE_SERIAL
|
||||||
wxObject_Serialize *m_serialObj;
|
wxObject_Serialize *m_serialObj;
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
@@ -19,7 +19,7 @@
|
|||||||
#elif defined(__WXSTUBS__)
|
#elif defined(__WXSTUBS__)
|
||||||
#include "wx/stubs/setup.h"
|
#include "wx/stubs/setup.h"
|
||||||
#elif defined(__WXGTK__)
|
#elif defined(__WXGTK__)
|
||||||
#include "wx/../../install/unix/setup/setup.h"
|
#include "wx/../../setup/setup.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -65,7 +65,7 @@
|
|||||||
#include "wx/dirdlg.h"
|
#include "wx/dirdlg.h"
|
||||||
#include "wx/cmndata.h"
|
#include "wx/cmndata.h"
|
||||||
#include "wx/intl.h"
|
#include "wx/intl.h"
|
||||||
#ifdef USE_STORABLE_CLASSES
|
#ifdef USE_SERIAL
|
||||||
#include "wx/objstrm.h"
|
#include "wx/objstrm.h"
|
||||||
#include "wx/serbase.h"
|
#include "wx/serbase.h"
|
||||||
#endif
|
#endif
|
||||||
|
@@ -1,410 +0,0 @@
|
|||||||
* General
|
|
||||||
----------
|
|
||||||
|
|
||||||
The Unix variants of wxWindows use GNU configure. If you have problems
|
|
||||||
with your make use GNU make instead.
|
|
||||||
|
|
||||||
Read my homepage at
|
|
||||||
|
|
||||||
http://www.freiburg.linux.de/~wxxt
|
|
||||||
|
|
||||||
for newest information.
|
|
||||||
|
|
||||||
* GUI libraries
|
|
||||||
-----------------------
|
|
||||||
|
|
||||||
wxWindows requires a GUI toolkit to be installed. Does that make
|
|
||||||
sense? So far only the GTK is supported, but we hope to provide
|
|
||||||
the choice between GTK, Qt, Motif/Lesstif in the not so distant
|
|
||||||
future.
|
|
||||||
|
|
||||||
You can get the newest version of the GTK from the GTK homepage
|
|
||||||
at
|
|
||||||
http://www.gtk.org
|
|
||||||
|
|
||||||
The newest versin of Qt can be downloaded for free from the Trolltec's
|
|
||||||
site at
|
|
||||||
http://www.troll.no
|
|
||||||
|
|
||||||
Lesstif can be downloaded from their site
|
|
||||||
at
|
|
||||||
http://www.lesstif.org
|
|
||||||
|
|
||||||
If you want to develop using Motif, you need to buy it, unless it comes
|
|
||||||
with your operating system such as all commercial Unices, as well as
|
|
||||||
RedHat's, SuSe's and probably other's Linux Motif editions.
|
|
||||||
|
|
||||||
* Additional libraries
|
|
||||||
-----------------------
|
|
||||||
|
|
||||||
There will be a few more features of wxWindows, which will
|
|
||||||
require further libraries (on some platforms). These
|
|
||||||
features will be optional. I hope to teach configure
|
|
||||||
to check that out automatically.
|
|
||||||
|
|
||||||
Thread support:
|
|
||||||
|
|
||||||
Requires pthreads under Linux with glibc 2. pthreads are
|
|
||||||
always present on such systems, so just compile, unless
|
|
||||||
you have RedHat 5.0, which has a broken combination of
|
|
||||||
glibc 2 and X. In this case, you have to run configure
|
|
||||||
with "--without-threads".
|
|
||||||
|
|
||||||
Requires PCthreads under Linux with libc 5. If you
|
|
||||||
haven't installed pcthreads, there will be no thread
|
|
||||||
support in wxWindows, but the library will compile.
|
|
||||||
|
|
||||||
Requires Posix threads on commercial Unix system,
|
|
||||||
which are always present. Just compile.
|
|
||||||
|
|
||||||
On SGI Irix we first look for sprocs, then pthreads and
|
|
||||||
use the last one found.
|
|
||||||
|
|
||||||
Python scripting language support:
|
|
||||||
|
|
||||||
Requires Python. Soon to come.
|
|
||||||
|
|
||||||
* Other things to do
|
|
||||||
-----------------------------
|
|
||||||
|
|
||||||
wxGTK and wxMotif/wxLesstif require the built-in
|
|
||||||
ImLib/GdkImlib to be configured. For that purpose
|
|
||||||
copy the two files from /misc/imlib to your
|
|
||||||
home directory and rename "imrc" -> ".imrc".
|
|
||||||
You may also edit imrc by hand as you like.
|
|
||||||
The palette file is required when using
|
|
||||||
wxWindows in 256-colour mode.
|
|
||||||
|
|
||||||
If you want to use wxWindows's ODBC support, you'll have
|
|
||||||
to create a .odbc.ini file. The readme file in
|
|
||||||
~/src/iodbc tells you what to do.
|
|
||||||
|
|
||||||
|
|
||||||
* Create your configuration
|
|
||||||
-----------------------------
|
|
||||||
|
|
||||||
This must be done in /install/unix
|
|
||||||
|
|
||||||
Usage:
|
|
||||||
./configure options
|
|
||||||
|
|
||||||
If you want to use system's C and C++ compiler,
|
|
||||||
set environment variables CC and CCC as
|
|
||||||
|
|
||||||
% setenv CC cc
|
|
||||||
% setenv CCC CC
|
|
||||||
% ./configure options
|
|
||||||
|
|
||||||
Using the SGI native compilers, it is recommended that you
|
|
||||||
also set CFLAGS and CXXFLAGS before running configure. These
|
|
||||||
should be set to :
|
|
||||||
|
|
||||||
CFLAGS="-mips3 -n32"
|
|
||||||
CXXFLAGS="-mips3 -n32"
|
|
||||||
|
|
||||||
This is essential if you want to use the resultant binaries
|
|
||||||
on any other machine than the one it was compiled on. If you
|
|
||||||
have a 64bit machine (Octane) you should also do this to ensure
|
|
||||||
you don't accidently build the libraries as 64bit (which is
|
|
||||||
untested).
|
|
||||||
|
|
||||||
The SGI native compiler support has only been tested on Irix 6.5.
|
|
||||||
|
|
||||||
to see all the options please use:
|
|
||||||
|
|
||||||
./configure --help
|
|
||||||
|
|
||||||
The basic philosophy is that if you want to use different
|
|
||||||
configurations, like a debug and a release version,
|
|
||||||
or use the same source tree on different systems,
|
|
||||||
you have only to change the environment variable OSTYPE.
|
|
||||||
(Sadly this variable is not set by default on some systems
|
|
||||||
in some shells - on SGI's for example). So you will have to
|
|
||||||
set it there. This variable HAS to be set before starting
|
|
||||||
configure, so that it knows which system it tries to
|
|
||||||
configure for.
|
|
||||||
|
|
||||||
Configure will complain if the system variable OSTYPE has
|
|
||||||
not been defined. And Make in some circumstances as well...
|
|
||||||
|
|
||||||
|
|
||||||
* General options
|
|
||||||
-------------------
|
|
||||||
|
|
||||||
Obviously, you have to choose a toolkit. You must do this by
|
|
||||||
running configure with either of
|
|
||||||
|
|
||||||
--with-gtk Use the GIMP ToolKit (GTK)
|
|
||||||
|
|
||||||
--with-qt Use Qt from TrollTec
|
|
||||||
|
|
||||||
--with-motif Use either Motif or Lesstif
|
|
||||||
Configure will look for both.
|
|
||||||
|
|
||||||
The following options handle the kind of library you want to build.
|
|
||||||
|
|
||||||
--without-threads Compile without thread support.
|
|
||||||
|
|
||||||
--with-shared Create shared libraries.
|
|
||||||
|
|
||||||
--without-optimise Do not optimise the code.
|
|
||||||
|
|
||||||
--with-profile Add profiling info to the object
|
|
||||||
files. Currently broken, I think.
|
|
||||||
|
|
||||||
--with-mem_tracing Add built-in memory tracing.
|
|
||||||
This doesn't work well with gcc.
|
|
||||||
|
|
||||||
--with-dmalloc Use the dmalloc memory debugger.
|
|
||||||
Read more at www.letters.com/dmalloc/
|
|
||||||
|
|
||||||
--with-debug_info Add debug info to object files and
|
|
||||||
executables.
|
|
||||||
|
|
||||||
--with-debug_flag Define __DEBUG__ and __WXDEBUG__ when
|
|
||||||
compiling.
|
|
||||||
|
|
||||||
* Feature Options
|
|
||||||
-------------------
|
|
||||||
|
|
||||||
When using the Windows version of wxWindows, it is possible
|
|
||||||
to edit the file /include/wx/msw/setup.h in order to enable
|
|
||||||
or disable some features of wxWindows so that the resulting
|
|
||||||
binaries get smaller.
|
|
||||||
|
|
||||||
As I don't yet care for binary size and target mainly at
|
|
||||||
producing a shared library, wxWindows's configure system auto-
|
|
||||||
matically enables all features, as long as they are already
|
|
||||||
implemented.
|
|
||||||
|
|
||||||
* Compiling
|
|
||||||
-------------
|
|
||||||
|
|
||||||
The following must be done in the base directory (e.g. ~/wxGTK
|
|
||||||
or ~/wxWin)
|
|
||||||
|
|
||||||
First you have to create all makefiles in all subdirectories:
|
|
||||||
|
|
||||||
make Makefiles
|
|
||||||
|
|
||||||
Dependencies are generated automatically using
|
|
||||||
|
|
||||||
make depend
|
|
||||||
|
|
||||||
(For some reason, this doesn't seem to work completely.)
|
|
||||||
|
|
||||||
Now the makefiles are created you can compile everything is as simple
|
|
||||||
as typing:
|
|
||||||
|
|
||||||
make
|
|
||||||
|
|
||||||
make yourself some coffee, as it will try to compile
|
|
||||||
ALL the files in this distribution.
|
|
||||||
|
|
||||||
if you want to be more selective:
|
|
||||||
|
|
||||||
make src will build only the base libraries
|
|
||||||
make utils will build the utils
|
|
||||||
make samples will build the samples
|
|
||||||
make other will build the other samples
|
|
||||||
make user will build the files in the directory other
|
|
||||||
|
|
||||||
Depending on the configuration of some files, the libraries
|
|
||||||
and binaries will be placed in different directories.
|
|
||||||
The "global" binaries and libraries will be placed in:
|
|
||||||
|
|
||||||
bin/$(OSTYPE) and
|
|
||||||
lib/$(OSTYPE) respectively
|
|
||||||
|
|
||||||
"local" binaries and libraries will be placed in:
|
|
||||||
|
|
||||||
(basedir of that application)/$(OSTYPE).
|
|
||||||
|
|
||||||
This is also the place where all the object-files will go.
|
|
||||||
|
|
||||||
If you want to conserve disk space by removing unnecessary
|
|
||||||
object-files:
|
|
||||||
|
|
||||||
make clean_obj
|
|
||||||
|
|
||||||
will do the work for you.
|
|
||||||
|
|
||||||
* Creating a new Project
|
|
||||||
--------------------------
|
|
||||||
|
|
||||||
I propose to put all contributed programs in the directory
|
|
||||||
"~/wxWin/user", with a directory of its own.
|
|
||||||
|
|
||||||
This directory then should include the following files:
|
|
||||||
|
|
||||||
Makefile (You can copy this one from any application in samples
|
|
||||||
probably you will not need to edit this one. There is
|
|
||||||
only one case where you might be interested in changing
|
|
||||||
this file, but about that see later.)
|
|
||||||
Makefile.in (This is the base application-Makefile template, from
|
|
||||||
which the actual Makefile for each system is created.
|
|
||||||
More about this later)
|
|
||||||
|
|
||||||
put ALL your source code along with all the other stuff you need for
|
|
||||||
your application in this directory (subdirectories are welcome).
|
|
||||||
|
|
||||||
** Something about Makefiles
|
|
||||||
------------------------------
|
|
||||||
|
|
||||||
On general principle it should only contain ONE line, which is as follows:
|
|
||||||
|
|
||||||
include ../../src/unix/setup/general/makeapp
|
|
||||||
|
|
||||||
this will include all the necessary definitions for creating the applications
|
|
||||||
|
|
||||||
the only case where you might want to add another line is the following:
|
|
||||||
this version of configure also supports creation of source archives of the
|
|
||||||
application for easy distribution and updates to newer version of wxWindows.
|
|
||||||
For this purpose all files in the application-directory will be put into
|
|
||||||
a gziped tar-file in the full notation user/<your application>/*
|
|
||||||
if you want to include some other files that you want "more visible", like
|
|
||||||
a README.<yourApp> or a shell script for easy
|
|
||||||
compilation/installation/distribution, then you have to add a variable
|
|
||||||
|
|
||||||
DISTRIBUTE_ADDITIONAL=<your files>
|
|
||||||
|
|
||||||
to the Makefile.
|
|
||||||
So it would look like this:
|
|
||||||
|
|
||||||
DISTRIBUTE_ADDITIONAL=README.TheApp
|
|
||||||
include ../../src/unix/setup/general/makeapp
|
|
||||||
|
|
||||||
As we have already talked about distribution the command to create a
|
|
||||||
distribution is:
|
|
||||||
|
|
||||||
make distrib
|
|
||||||
|
|
||||||
NOTE: If you are in the base directory of wxWindows it will create
|
|
||||||
distribution packages for wxWindows as well as for all packages in the
|
|
||||||
user directory.
|
|
||||||
So if you want to create only packages for the files in user,
|
|
||||||
then go to the directory other and type:
|
|
||||||
|
|
||||||
make distrib
|
|
||||||
|
|
||||||
or if you only want one application to be created then
|
|
||||||
enter the specific directory and type there:
|
|
||||||
make distrib
|
|
||||||
|
|
||||||
All the distribution files will be put in the directory
|
|
||||||
distrib at the base of the wxWindows-tree (where also configure
|
|
||||||
and template.mak can be found).
|
|
||||||
|
|
||||||
** Something about Makefile.in
|
|
||||||
--------------------------------
|
|
||||||
|
|
||||||
As you have already seen with Makefile, configure makes a lot of use
|
|
||||||
if the include statement in make to keep the Makefiles as simple as
|
|
||||||
possible.
|
|
||||||
|
|
||||||
So basically there are only variables to define and then a include command.
|
|
||||||
Exception to this rule is if you have special rules for some stuff...
|
|
||||||
These rules should go AFTER the include statement!!!
|
|
||||||
|
|
||||||
so the general header looks like this:
|
|
||||||
|
|
||||||
# wxWindows base directory
|
|
||||||
WXBASEDIR=@WXBASEDIR@
|
|
||||||
# set the OS type for compilation
|
|
||||||
OS=@OS@
|
|
||||||
# compile a library only
|
|
||||||
RULE=bin
|
|
||||||
|
|
||||||
and the general footer will look like this:
|
|
||||||
|
|
||||||
# include the definitions now
|
|
||||||
include ../../../template.mak
|
|
||||||
|
|
||||||
the key variable is RULE, which defines what make should create
|
|
||||||
in this directory.
|
|
||||||
|
|
||||||
here are some examples:
|
|
||||||
|
|
||||||
RULE description
|
|
||||||
===========================================================================
|
|
||||||
bin creates a local binary (for a global binary prefix bin with g)
|
|
||||||
additional variables needed:
|
|
||||||
BIN_TARGET this gives the name of your application
|
|
||||||
BIN_OBJ this gives the object files needed to
|
|
||||||
link the application
|
|
||||||
optional variables are:
|
|
||||||
BIN_SRC this gives the list of c/c++ files for
|
|
||||||
which dependencies will be checked.
|
|
||||||
(This can be achieved with: make depend)
|
|
||||||
BIN_LINK this gives commands for additional
|
|
||||||
libraries needed to link the application
|
|
||||||
---------------------------------------------------------------------------
|
|
||||||
bin2 creates two local binaries (for global binaries prefix bin2 with g)
|
|
||||||
in addition to the variables specified above you MUST also
|
|
||||||
provide the same variables with BIN2_ instead of BIN_
|
|
||||||
---------------------------------------------------------------------------
|
|
||||||
lib creates a local library (for a global binary prefix bin with g)
|
|
||||||
additional variables needed:
|
|
||||||
LIB_TARGET this gives the name of your library
|
|
||||||
LIB_OBJ this gives the object files needed for
|
|
||||||
the library to be build.
|
|
||||||
optional variables are:
|
|
||||||
LIB_SRC this gives the list of c/c++ files for
|
|
||||||
which dependencies will be checked.
|
|
||||||
libbin and libgbin are also possible and will need in addition
|
|
||||||
the variables from bin
|
|
||||||
---------------------------------------------------------------------------
|
|
||||||
gslib is similar to lib, but it creates a shared library if the system
|
|
||||||
supports it.
|
|
||||||
additional variables needed:
|
|
||||||
LIB_MAJOR major number of the shared library
|
|
||||||
LIB_MINOR minor number of the shared library
|
|
||||||
---------------------------------------------------------------------------
|
|
||||||
other additional variables:
|
|
||||||
|
|
||||||
ADD_COMPILE define additional includes/defines that
|
|
||||||
are needed to compile the object files
|
|
||||||
(if you need to reference some directory
|
|
||||||
utils - like wxGrid -, then please
|
|
||||||
reference them with the variables defined
|
|
||||||
in template.mak - e.g.: $(SRCDIR),$(UTILS),
|
|
||||||
$(SAMPLES),$(OTHERS))
|
|
||||||
|
|
||||||
NEEDED_DEFINES lists all the defines that HAVE to be set in
|
|
||||||
/include/wx/setup.h to compile correctly.
|
|
||||||
|
|
||||||
SRC_DIR lists all directories that are needed to
|
|
||||||
compile. (i.e: lists all the directories,
|
|
||||||
where there are source-files.) But it is
|
|
||||||
also needed to clean an object and for
|
|
||||||
machines, for which make does not support
|
|
||||||
VPATH
|
|
||||||
|
|
||||||
currently there are the following compiling rules provided:
|
|
||||||
object files are created for the following file extensions:
|
|
||||||
.c .cc .cpp
|
|
||||||
|
|
||||||
Please have a closer look at the Makefiles in this distribution.
|
|
||||||
|
|
||||||
* Platforms configure is working with
|
|
||||||
---------------------------------------
|
|
||||||
|
|
||||||
Please report build succes on any machine. Especially non-
|
|
||||||
Linux operating systems (which I don't have).
|
|
||||||
|
|
||||||
Original author of the autoconf system for wxxt-1.66 and for this INSTALL
|
|
||||||
file:
|
|
||||||
|
|
||||||
Martin Sperl sperl@dsn.ast.univie.ac.at
|
|
||||||
|
|
||||||
Ported to wxGTK 0.1:
|
|
||||||
|
|
||||||
Wolfram Gloger wmglo@dent.med.uni-muenchen.de
|
|
||||||
|
|
||||||
Thanks alot to both of them.
|
|
||||||
|
|
||||||
In the hope that it will be useful,
|
|
||||||
|
|
||||||
Robert Roebling roebling@sun2.ruf.uni-freiburg.de
|
|
||||||
|
|
||||||
|
|
@@ -1,250 +0,0 @@
|
|||||||
#! /bin/sh
|
|
||||||
#
|
|
||||||
# install - install a program, script, or datafile
|
|
||||||
# This comes from X11R5 (mit/util/scripts/install.sh).
|
|
||||||
#
|
|
||||||
# Copyright 1991 by the Massachusetts Institute of Technology
|
|
||||||
#
|
|
||||||
# Permission to use, copy, modify, distribute, and sell this software and its
|
|
||||||
# documentation for any purpose is hereby granted without fee, provided that
|
|
||||||
# the above copyright notice appear in all copies and that both that
|
|
||||||
# copyright notice and this permission notice appear in supporting
|
|
||||||
# documentation, and that the name of M.I.T. not be used in advertising or
|
|
||||||
# publicity pertaining to distribution of the software without specific,
|
|
||||||
# written prior permission. M.I.T. makes no representations about the
|
|
||||||
# suitability of this software for any purpose. It is provided "as is"
|
|
||||||
# without express or implied warranty.
|
|
||||||
#
|
|
||||||
# Calling this script install-sh is preferred over install.sh, to prevent
|
|
||||||
# `make' implicit rules from creating a file called install from it
|
|
||||||
# when there is no Makefile.
|
|
||||||
#
|
|
||||||
# This script is compatible with the BSD install script, but was written
|
|
||||||
# from scratch. It can only install one file at a time, a restriction
|
|
||||||
# shared with many OS's install programs.
|
|
||||||
|
|
||||||
|
|
||||||
# set DOITPROG to echo to test this script
|
|
||||||
|
|
||||||
# Don't use :- since 4.3BSD and earlier shells don't like it.
|
|
||||||
doit="${DOITPROG-}"
|
|
||||||
|
|
||||||
|
|
||||||
# put in absolute paths if you don't have them in your path; or use env. vars.
|
|
||||||
|
|
||||||
mvprog="${MVPROG-mv}"
|
|
||||||
cpprog="${CPPROG-cp}"
|
|
||||||
chmodprog="${CHMODPROG-chmod}"
|
|
||||||
chownprog="${CHOWNPROG-chown}"
|
|
||||||
chgrpprog="${CHGRPPROG-chgrp}"
|
|
||||||
stripprog="${STRIPPROG-strip}"
|
|
||||||
rmprog="${RMPROG-rm}"
|
|
||||||
mkdirprog="${MKDIRPROG-mkdir}"
|
|
||||||
|
|
||||||
transformbasename=""
|
|
||||||
transform_arg=""
|
|
||||||
instcmd="$mvprog"
|
|
||||||
chmodcmd="$chmodprog 0755"
|
|
||||||
chowncmd=""
|
|
||||||
chgrpcmd=""
|
|
||||||
stripcmd=""
|
|
||||||
rmcmd="$rmprog -f"
|
|
||||||
mvcmd="$mvprog"
|
|
||||||
src=""
|
|
||||||
dst=""
|
|
||||||
dir_arg=""
|
|
||||||
|
|
||||||
while [ x"$1" != x ]; do
|
|
||||||
case $1 in
|
|
||||||
-c) instcmd="$cpprog"
|
|
||||||
shift
|
|
||||||
continue;;
|
|
||||||
|
|
||||||
-d) dir_arg=true
|
|
||||||
shift
|
|
||||||
continue;;
|
|
||||||
|
|
||||||
-m) chmodcmd="$chmodprog $2"
|
|
||||||
shift
|
|
||||||
shift
|
|
||||||
continue;;
|
|
||||||
|
|
||||||
-o) chowncmd="$chownprog $2"
|
|
||||||
shift
|
|
||||||
shift
|
|
||||||
continue;;
|
|
||||||
|
|
||||||
-g) chgrpcmd="$chgrpprog $2"
|
|
||||||
shift
|
|
||||||
shift
|
|
||||||
continue;;
|
|
||||||
|
|
||||||
-s) stripcmd="$stripprog"
|
|
||||||
shift
|
|
||||||
continue;;
|
|
||||||
|
|
||||||
-t=*) transformarg=`echo $1 | sed 's/-t=//'`
|
|
||||||
shift
|
|
||||||
continue;;
|
|
||||||
|
|
||||||
-b=*) transformbasename=`echo $1 | sed 's/-b=//'`
|
|
||||||
shift
|
|
||||||
continue;;
|
|
||||||
|
|
||||||
*) if [ x"$src" = x ]
|
|
||||||
then
|
|
||||||
src=$1
|
|
||||||
else
|
|
||||||
# this colon is to work around a 386BSD /bin/sh bug
|
|
||||||
:
|
|
||||||
dst=$1
|
|
||||||
fi
|
|
||||||
shift
|
|
||||||
continue;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
if [ x"$src" = x ]
|
|
||||||
then
|
|
||||||
echo "install: no input file specified"
|
|
||||||
exit 1
|
|
||||||
else
|
|
||||||
true
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ x"$dir_arg" != x ]; then
|
|
||||||
dst=$src
|
|
||||||
src=""
|
|
||||||
|
|
||||||
if [ -d $dst ]; then
|
|
||||||
instcmd=:
|
|
||||||
else
|
|
||||||
instcmd=mkdir
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
|
|
||||||
# Waiting for this to be detected by the "$instcmd $src $dsttmp" command
|
|
||||||
# might cause directories to be created, which would be especially bad
|
|
||||||
# if $src (and thus $dsttmp) contains '*'.
|
|
||||||
|
|
||||||
if [ -f $src -o -d $src ]
|
|
||||||
then
|
|
||||||
true
|
|
||||||
else
|
|
||||||
echo "install: $src does not exist"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ x"$dst" = x ]
|
|
||||||
then
|
|
||||||
echo "install: no destination specified"
|
|
||||||
exit 1
|
|
||||||
else
|
|
||||||
true
|
|
||||||
fi
|
|
||||||
|
|
||||||
# If destination is a directory, append the input filename; if your system
|
|
||||||
# does not like double slashes in filenames, you may need to add some logic
|
|
||||||
|
|
||||||
if [ -d $dst ]
|
|
||||||
then
|
|
||||||
dst="$dst"/`basename $src`
|
|
||||||
else
|
|
||||||
true
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
## this sed command emulates the dirname command
|
|
||||||
dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
|
|
||||||
|
|
||||||
# Make sure that the destination directory exists.
|
|
||||||
# this part is taken from Noah Friedman's mkinstalldirs script
|
|
||||||
|
|
||||||
# Skip lots of stat calls in the usual case.
|
|
||||||
if [ ! -d "$dstdir" ]; then
|
|
||||||
defaultIFS='
|
|
||||||
'
|
|
||||||
IFS="${IFS-${defaultIFS}}"
|
|
||||||
|
|
||||||
oIFS="${IFS}"
|
|
||||||
# Some sh's can't handle IFS=/ for some reason.
|
|
||||||
IFS='%'
|
|
||||||
set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'`
|
|
||||||
IFS="${oIFS}"
|
|
||||||
|
|
||||||
pathcomp=''
|
|
||||||
|
|
||||||
while [ $# -ne 0 ] ; do
|
|
||||||
pathcomp="${pathcomp}${1}"
|
|
||||||
shift
|
|
||||||
|
|
||||||
if [ ! -d "${pathcomp}" ] ;
|
|
||||||
then
|
|
||||||
$mkdirprog "${pathcomp}"
|
|
||||||
else
|
|
||||||
true
|
|
||||||
fi
|
|
||||||
|
|
||||||
pathcomp="${pathcomp}/"
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ x"$dir_arg" != x ]
|
|
||||||
then
|
|
||||||
$doit $instcmd $dst &&
|
|
||||||
|
|
||||||
if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi &&
|
|
||||||
if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi &&
|
|
||||||
if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi &&
|
|
||||||
if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi
|
|
||||||
else
|
|
||||||
|
|
||||||
# If we're going to rename the final executable, determine the name now.
|
|
||||||
|
|
||||||
if [ x"$transformarg" = x ]
|
|
||||||
then
|
|
||||||
dstfile=`basename $dst`
|
|
||||||
else
|
|
||||||
dstfile=`basename $dst $transformbasename |
|
|
||||||
sed $transformarg`$transformbasename
|
|
||||||
fi
|
|
||||||
|
|
||||||
# don't allow the sed command to completely eliminate the filename
|
|
||||||
|
|
||||||
if [ x"$dstfile" = x ]
|
|
||||||
then
|
|
||||||
dstfile=`basename $dst`
|
|
||||||
else
|
|
||||||
true
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Make a temp file name in the proper directory.
|
|
||||||
|
|
||||||
dsttmp=$dstdir/#inst.$$#
|
|
||||||
|
|
||||||
# Move or copy the file name to the temp name
|
|
||||||
|
|
||||||
$doit $instcmd $src $dsttmp &&
|
|
||||||
|
|
||||||
trap "rm -f ${dsttmp}" 0 &&
|
|
||||||
|
|
||||||
# and set any options; do chmod last to preserve setuid bits
|
|
||||||
|
|
||||||
# If any of these fail, we abort the whole thing. If we want to
|
|
||||||
# ignore errors from any of these, just make sure not to ignore
|
|
||||||
# errors from the above "$doit $instcmd $src $dsttmp" command.
|
|
||||||
|
|
||||||
if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi &&
|
|
||||||
if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi &&
|
|
||||||
if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi &&
|
|
||||||
if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi &&
|
|
||||||
|
|
||||||
# Now rename the file to the real destination.
|
|
||||||
|
|
||||||
$doit $rmcmd -f $dstdir/$dstfile &&
|
|
||||||
$doit $mvcmd $dsttmp $dstdir/$dstfile
|
|
||||||
|
|
||||||
fi &&
|
|
||||||
|
|
||||||
|
|
||||||
exit 0
|
|
@@ -1 +1 @@
|
|||||||
include ../install/unix/setup/general/makedirs
|
include ../setup/general/makedirs
|
||||||
|
@@ -1 +1 @@
|
|||||||
include ../../install/unix/setup/general/makeapp
|
include ../../setup/general/makeapp
|
||||||
|
@@ -1 +1 @@
|
|||||||
include ../../install/unix/setup/general/makeapp
|
include ../../setup/general/makeapp
|
||||||
|
@@ -1 +1 @@
|
|||||||
include ../../install/unix/setup/general/makeapp
|
include ../../setup/general/makeapp
|
||||||
|
@@ -1 +1 @@
|
|||||||
include ../../install/unix/setup/general/makeapp
|
include ../../setup/general/makeapp
|
||||||
|
@@ -1 +1 @@
|
|||||||
include ../../install/unix/setup/general/makeapp
|
include ../../setup/general/makeapp
|
||||||
|
@@ -1 +1 @@
|
|||||||
include ../../install/unix/setup/general/makeapp
|
include ../../setup/general/makeapp
|
||||||
|
@@ -1 +1 @@
|
|||||||
include ../../install/unix/setup/general/makeapp
|
include ../../setup/general/makeapp
|
||||||
|
@@ -1,113 +0,0 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
// Name: minimal.cpp
|
|
||||||
// Purpose: Dynamic events wxWindows sample
|
|
||||||
// Author: Julian Smart
|
|
||||||
// Modified by:
|
|
||||||
// Created: 04/01/98
|
|
||||||
// RCS-ID: $Id$
|
|
||||||
// Copyright: (c) Julian Smart and Markus Holzem
|
|
||||||
// Licence: wxWindows license
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
#ifdef __GNUG__
|
|
||||||
#pragma implementation "minimal.cpp"
|
|
||||||
#pragma interface "minimal.cpp"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// For compilers that support precompilation, includes "wx/wx.h".
|
|
||||||
#include "wx/wxprec.h"
|
|
||||||
|
|
||||||
#ifdef __BORLANDC__
|
|
||||||
#pragma hdrstop
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef WX_PRECOMP
|
|
||||||
#include "wx/wx.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __WXGTK__
|
|
||||||
#include "mondrian.xpm"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// Define a new application type
|
|
||||||
class MyApp: public wxApp
|
|
||||||
{ public:
|
|
||||||
bool OnInit(void);
|
|
||||||
};
|
|
||||||
|
|
||||||
// Define a new frame type
|
|
||||||
class MyFrame: public wxFrame
|
|
||||||
{ public:
|
|
||||||
MyFrame(wxFrame *frame, char *title, int x, int y, int w, int h);
|
|
||||||
|
|
||||||
public:
|
|
||||||
void OnQuit(wxCommandEvent& event);
|
|
||||||
void OnAbout(wxCommandEvent& event);
|
|
||||||
bool OnClose(void) { return TRUE; }
|
|
||||||
};
|
|
||||||
|
|
||||||
// ID for the menu commands
|
|
||||||
#define MINIMAL_QUIT 1
|
|
||||||
#define MINIMAL_TEXT 101
|
|
||||||
#define MINIMAL_ABOUT 102
|
|
||||||
|
|
||||||
// Create a new application object
|
|
||||||
IMPLEMENT_APP (MyApp)
|
|
||||||
|
|
||||||
// `Main program' equivalent, creating windows and returning main app frame
|
|
||||||
bool MyApp::OnInit(void)
|
|
||||||
{
|
|
||||||
// Create the main frame window
|
|
||||||
MyFrame *frame = new MyFrame((wxFrame *) NULL, (char *) "Minimal wxWindows App", 50, 50, 450, 340);
|
|
||||||
|
|
||||||
frame->Connect( MINIMAL_QUIT, -1, wxEVT_COMMAND_MENU_SELECTED, (wxObjectEventFunction)MyFrame::OnQuit );
|
|
||||||
frame->Connect( MINIMAL_ABOUT, -1, wxEVT_COMMAND_MENU_SELECTED, (wxObjectEventFunction)MyFrame::OnAbout );
|
|
||||||
|
|
||||||
// Give it an icon
|
|
||||||
#ifdef __WXMSW__
|
|
||||||
frame->SetIcon(wxIcon("mondrian"));
|
|
||||||
#else
|
|
||||||
frame->SetIcon(wxIcon(mondrian_xpm));
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// Make a menubar
|
|
||||||
wxMenu *file_menu = new wxMenu;
|
|
||||||
|
|
||||||
file_menu->Append(MINIMAL_ABOUT, "&About");
|
|
||||||
file_menu->Append(MINIMAL_QUIT, "E&xit");
|
|
||||||
wxMenuBar *menu_bar = new wxMenuBar;
|
|
||||||
menu_bar->Append(file_menu, "&File");
|
|
||||||
frame->SetMenuBar(menu_bar);
|
|
||||||
|
|
||||||
// Make a panel with a message
|
|
||||||
wxPanel *panel = new wxPanel(frame, -1, wxPoint(0, 0), wxSize(400, 200), wxTAB_TRAVERSAL);
|
|
||||||
|
|
||||||
(void)new wxStaticText(panel, 311, "Hello!", wxPoint(10, 10), wxSize(-1, -1), 0);
|
|
||||||
|
|
||||||
// Show the frame
|
|
||||||
frame->Show(TRUE);
|
|
||||||
|
|
||||||
SetTopWindow(frame);
|
|
||||||
|
|
||||||
return TRUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
// My frame constructor
|
|
||||||
MyFrame::MyFrame(wxFrame *frame, char *title, int x, int y, int w, int h):
|
|
||||||
wxFrame(frame, -1, title, wxPoint(x, y), wxSize(w, h))
|
|
||||||
{}
|
|
||||||
|
|
||||||
void MyFrame::OnQuit(wxCommandEvent& WXUNUSED(event) )
|
|
||||||
{
|
|
||||||
Close(TRUE);
|
|
||||||
}
|
|
||||||
|
|
||||||
void MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event) )
|
|
||||||
{
|
|
||||||
wxMessageDialog dialog(this, "This is a minimal sample\nA second line in the message box",
|
|
||||||
"About Minimal", wxYES_NO|wxCANCEL);
|
|
||||||
|
|
||||||
dialog.ShowModal();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
@@ -1 +1 @@
|
|||||||
include ../../install/unix/setup/general/makeapp
|
include ../../setup/general/makeapp
|
||||||
|
@@ -1 +1 @@
|
|||||||
include ../../install/unix/setup/general/makeapp
|
include ../../setup/general/makeapp
|
||||||
|
@@ -1 +1 @@
|
|||||||
include ../../install/unix/setup/general/makeapp
|
include ../../setup/general/makeapp
|
||||||
|
@@ -1 +1 @@
|
|||||||
include ../../install/unix/setup/general/makeapp
|
include ../../setup/general/makeapp
|
||||||
|
@@ -1 +1 @@
|
|||||||
include ../../install/unix/setup/general/makeapp
|
include ../../setup/general/makeapp
|
||||||
|
@@ -1 +1 @@
|
|||||||
include ../../install/unix/setup/general/makeapp
|
include ../../setup/general/makeapp
|
||||||
|
@@ -1 +1 @@
|
|||||||
include ../../install/unix/setup/general/makeapp
|
include ../../setup/general/makeapp
|
||||||
|
@@ -1 +1 @@
|
|||||||
include ../../install/unix/setup/general/makeapp
|
include ../../setup/general/makeapp
|
||||||
|
@@ -1 +1 @@
|
|||||||
include ../../install/unix/setup/general/makeapp
|
include ../../setup/general/makeapp
|
||||||
|
@@ -1 +1 @@
|
|||||||
include ../../install/unix/setup/general/makeapp
|
include ../../setup/general/makeapp
|
||||||
|
@@ -1 +1 @@
|
|||||||
include ../../install/unix/setup/general/makeapp
|
include ../../setup/general/makeapp
|
||||||
|
@@ -1 +1 @@
|
|||||||
include ../../install/unix/setup/general/makeapp
|
include ../../setup/general/makeapp
|
||||||
|
@@ -1 +1 @@
|
|||||||
include ../../install/unix/setup/general/makeapp
|
include ../../setup/general/makeapp
|
||||||
|
@@ -1 +1 @@
|
|||||||
include ../../install/unix/setup/general/makeapp
|
include ../../setup/general/makeapp
|
||||||
|
@@ -1 +1 @@
|
|||||||
include ../../install/unix/setup/general/makeapp
|
include ../../setup/general/makeapp
|
||||||
|
@@ -1 +1 @@
|
|||||||
include ../../install/unix/setup/general/makeapp
|
include ../../setup/general/makeapp
|
||||||
|
@@ -1 +1 @@
|
|||||||
include ../../install/unix/setup/general/makeapp
|
include ../../setup/general/makeapp
|
||||||
|
@@ -55,19 +55,19 @@ ALL_DIR="$SRC_DIR $SAMPLES_DIR $UTILS_DIR $USER_DIR"
|
|||||||
echo Creating for: $OS
|
echo Creating for: $OS
|
||||||
|
|
||||||
# create defaults
|
# create defaults
|
||||||
if test ! -d install/unix/setup/$OS; then
|
if test ! -d setup/$OS; then
|
||||||
mkdir install/unix/setup/$OS
|
mkdir setup/$OS
|
||||||
fi
|
fi
|
||||||
|
|
||||||
SUBSTFILE=install/unix/setup/$OS/substit
|
SUBSTFILE=setup/$OS/substit
|
||||||
|
|
||||||
# the substit file first
|
# the substit file first
|
||||||
if test -f install/unix/setup/substit ; then
|
if test -f setup/substit ; then
|
||||||
cat install/unix/setup/substit | sed "s/*/@/g" > $SUBSTFILE;
|
cat setup/substit | sed "s/*/@/g" > $SUBSTFILE;
|
||||||
rm -f install/unix/setup/substit
|
rm -f setup/substit
|
||||||
fi
|
fi
|
||||||
# now the template file
|
# now the template file
|
||||||
cat install/unix/setup/maketmpl.in | sed -f $SUBSTFILE > install/unix/setup/$OS/maketmpl
|
cat setup/maketmpl.in | sed -f $SUBSTFILE > setup/$OS/maketmpl
|
||||||
|
|
||||||
# now the config header file
|
# now the config header file
|
||||||
#if test -f setup/wx_setup.h ; then
|
#if test -f setup/wx_setup.h ; then
|
@@ -1,18 +1,14 @@
|
|||||||
/* wx_setup.h
|
/* setup.h
|
||||||
This file is in the public domain.
|
|
||||||
|
|
||||||
Descriptive text for the C preprocessor macros that
|
Do not edit this file. It is autogenerated by configure.
|
||||||
the distributed Autoconf macros can define.
|
|
||||||
No software package will use all of them; autoheader copies the ones
|
|
||||||
your configure.in uses into your configuration header file templates.
|
|
||||||
|
|
||||||
The entries are in sort -df order: alphabetical, case insensitive,
|
|
||||||
ignoring punctuation (such as underscores). Although this order
|
|
||||||
can split up related entries, it makes it easier to check whether
|
|
||||||
a given entry is in the file.
|
|
||||||
|
|
||||||
Leave the following blank line there!! Autoheader needs it. */
|
Leave the following blank line there!! Autoheader needs it. */
|
||||||
|
|
||||||
|
|
||||||
|
// ------------------------------------------------------------------------
|
||||||
|
// Features as requested by configure
|
||||||
|
// ------------------------------------------------------------------------
|
||||||
|
|
||||||
#ifndef __GTKSETUPH__
|
#ifndef __GTKSETUPH__
|
||||||
#define __GTKSETUPH__
|
#define __GTKSETUPH__
|
||||||
|
|
||||||
@@ -42,6 +38,10 @@
|
|||||||
#undef __ULTRIX__
|
#undef __ULTRIX__
|
||||||
#undef __DATA_GENERAL__
|
#undef __DATA_GENERAL__
|
||||||
|
|
||||||
|
//------------------------------------------------------------------------
|
||||||
|
// library options
|
||||||
|
//------------------------------------------------------------------------
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Use zlib
|
* Use zlib
|
||||||
*/
|
*/
|
||||||
@@ -62,48 +62,155 @@
|
|||||||
* Use Threads
|
* Use Threads
|
||||||
*/
|
*/
|
||||||
#undef USE_THREADS
|
#undef USE_THREADS
|
||||||
|
|
||||||
|
//------------------------------------------------------------------------
|
||||||
|
// GUI control options
|
||||||
|
//------------------------------------------------------------------------
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Use storable classes
|
* Use gauge item
|
||||||
*/
|
*/
|
||||||
#undef USE_STORABLE_CLASSES
|
#undef USE_GAUGE
|
||||||
/*
|
/*
|
||||||
* Use automatic translation via gettext() in wxTString
|
* Use scrollbar item
|
||||||
*/
|
*/
|
||||||
#undef USE_AUTOTRANS
|
#undef USE_SCROLLBAR
|
||||||
|
/*
|
||||||
|
* Use notebook item
|
||||||
|
*/
|
||||||
|
#undef USE_NOTEBOOK
|
||||||
|
/*
|
||||||
|
* Use listctrl item
|
||||||
|
*/
|
||||||
|
#undef USE_LISTCTRL
|
||||||
|
/*
|
||||||
|
* Use treectrl item
|
||||||
|
*/
|
||||||
|
#undef USE_TREECTRL
|
||||||
|
/*
|
||||||
|
* Use grid item
|
||||||
|
*/
|
||||||
|
#undef USE_GRID
|
||||||
|
/*
|
||||||
|
* Use tab dialog item
|
||||||
|
*/
|
||||||
|
#undef USE_TAB_DIALOG
|
||||||
|
|
||||||
|
//------------------------------------------------------------------------
|
||||||
|
// non-GUI options
|
||||||
|
//------------------------------------------------------------------------
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Use fraction class
|
||||||
|
*/
|
||||||
|
#undef USE_FRACTION
|
||||||
|
/*
|
||||||
|
* Use time and date classes
|
||||||
|
*/
|
||||||
|
#undef USE_TIMEDATE
|
||||||
|
/*
|
||||||
|
* Use config system
|
||||||
|
*/
|
||||||
|
#undef USE_CONFIG
|
||||||
|
/*
|
||||||
|
* Use intl system
|
||||||
|
*/
|
||||||
|
#undef USE_INTL
|
||||||
|
/*
|
||||||
|
* Use streams
|
||||||
|
*/
|
||||||
|
#undef USE_STREAMS
|
||||||
|
/*
|
||||||
|
* Use wxFile
|
||||||
|
*/
|
||||||
|
#undef USE_FILE
|
||||||
|
/*
|
||||||
|
* Use wxTextFile
|
||||||
|
*/
|
||||||
|
#undef USE_TEXTFILE
|
||||||
|
/*
|
||||||
|
* Use class serialization
|
||||||
|
*/
|
||||||
|
#undef USE_SERIAL
|
||||||
|
|
||||||
|
//------------------------------------------------------------------------
|
||||||
|
// PS options
|
||||||
|
//------------------------------------------------------------------------
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Use font metric files in GetTextExtent for wxPostScriptDC
|
* Use font metric files in GetTextExtent for wxPostScriptDC
|
||||||
* Use consistent PostScript fonts for AFM and printing (!)
|
* Use consistent PostScript fonts for AFM and printing (!)
|
||||||
*/
|
*/
|
||||||
#undef USE_AFM_FOR_POSTSCRIPT
|
#undef USE_AFM_FOR_POSTSCRIPT
|
||||||
#undef WX_NORMALIZED_PS_FONTS
|
#undef WX_NORMALIZED_PS_FONTS
|
||||||
|
/*
|
||||||
|
* Use PostScript device context
|
||||||
|
*/
|
||||||
|
#undef USE_POSTSCRIPT
|
||||||
|
|
||||||
|
//------------------------------------------------------------------------
|
||||||
|
// misc options
|
||||||
|
//------------------------------------------------------------------------
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Use Interprocess communication
|
||||||
|
*/
|
||||||
|
#undef USE_IPC
|
||||||
|
/*
|
||||||
|
* Use wxGetResource & wxWriteResource (change .Xdefaults)
|
||||||
|
*/
|
||||||
|
#undef USE_RESOURCES
|
||||||
/*
|
/*
|
||||||
* Use clipboard
|
* Use clipboard
|
||||||
*/
|
*/
|
||||||
#undef USE_CLIPBOARD
|
#undef USE_CLIPBOARD
|
||||||
|
/*
|
||||||
|
* Use dnd
|
||||||
|
*/
|
||||||
|
#undef USE_DND
|
||||||
/*
|
/*
|
||||||
* Use wxWindows layout constraint system
|
* Use wxWindows layout constraint system
|
||||||
*/
|
*/
|
||||||
#undef USE_CONSTRAINTS
|
#undef USE_CONSTRAINTS
|
||||||
|
|
||||||
|
//------------------------------------------------------------------------
|
||||||
|
// architecture options
|
||||||
|
//------------------------------------------------------------------------
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Use the mdi architecture
|
||||||
|
*/
|
||||||
|
#undef USE_MDI_ARCHITECTURE
|
||||||
/*
|
/*
|
||||||
* Use the document/view architecture
|
* Use the document/view architecture
|
||||||
*/
|
*/
|
||||||
#undef USE_DOC_VIEW_ARCHITECTURE
|
#undef USE_DOC_VIEW_ARCHITECTURE
|
||||||
/*
|
/*
|
||||||
* Use enhanced dialog
|
* Use the print/preview architecture
|
||||||
*/
|
*/
|
||||||
#undef USE_ENHANCED_DIALOG
|
#undef USE_PRINTING_ARCHITECTURE
|
||||||
|
|
||||||
|
//------------------------------------------------------------------------
|
||||||
|
// Prolog and wxWindows' resource system options
|
||||||
|
//------------------------------------------------------------------------
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Use Form panel item placement
|
* Use Prolog IO
|
||||||
*/
|
*/
|
||||||
#undef USE_FORM
|
#undef USE_PROLOGIO
|
||||||
/*
|
/*
|
||||||
* Use fraction class
|
* Use Remote Procedure Call (Needs USE_IPC and USE_PROLOGIO)
|
||||||
*/
|
*/
|
||||||
#undef USE_FRACTION
|
#undef USE_RPC
|
||||||
/*
|
/*
|
||||||
* Use gauge item
|
* Use wxWindows resource loading (.wxr-files) (Needs USE_PROLOGIO 1)
|
||||||
*/
|
*/
|
||||||
#undef USE_GAUGE
|
#undef USE_WX_RESOURCES
|
||||||
|
|
||||||
|
//------------------------------------------------------------------------
|
||||||
|
// the rest
|
||||||
|
//------------------------------------------------------------------------
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Implement a GLCanvas class as an interface to OpenGL, using the GLX
|
* Implement a GLCanvas class as an interface to OpenGL, using the GLX
|
||||||
* extension to the X11 protocol. You can use the (free) Mesa library
|
* extension to the X11 protocol. You can use the (free) Mesa library
|
||||||
@@ -118,63 +225,10 @@
|
|||||||
* Use iostream.h rather than iostream
|
* Use iostream.h rather than iostream
|
||||||
*/
|
*/
|
||||||
#undef USE_IOSTREAMH
|
#undef USE_IOSTREAMH
|
||||||
/*
|
|
||||||
* Use Interprocess communication
|
|
||||||
*/
|
|
||||||
#undef USE_IPC
|
|
||||||
/*
|
/*
|
||||||
* Use Metafile and Metafile device context
|
* Use Metafile and Metafile device context
|
||||||
*/
|
*/
|
||||||
#undef USE_METAFILE
|
#undef USE_METAFILE
|
||||||
/*
|
|
||||||
* Use PostScript device context
|
|
||||||
*/
|
|
||||||
#undef USE_POSTSCRIPT
|
|
||||||
/*
|
|
||||||
* Use wxConfig system
|
|
||||||
*/
|
|
||||||
#undef USE_WXCONFIG
|
|
||||||
/*
|
|
||||||
* Use the print/preview architecture
|
|
||||||
*/
|
|
||||||
#undef USE_PRINTING_ARCHITECTURE
|
|
||||||
/*
|
|
||||||
* Use Prolog IO
|
|
||||||
*/
|
|
||||||
#undef USE_PROLOGIO
|
|
||||||
/*
|
|
||||||
* Use Remote Procedure Call (Needs USE_IPC and USE_PROLOGIO)
|
|
||||||
*/
|
|
||||||
#undef USE_RPC
|
|
||||||
/*
|
|
||||||
* Use wxGetResource & wxWriteResource (change .Xdefaults)
|
|
||||||
*/
|
|
||||||
#undef USE_RESOURCES
|
|
||||||
/*
|
|
||||||
* Use scrollbar item
|
|
||||||
*/
|
|
||||||
#undef USE_SCROLLBAR
|
|
||||||
/*
|
|
||||||
* Use time and date classes
|
|
||||||
*/
|
|
||||||
#undef USE_TIMEDATE
|
|
||||||
/*
|
|
||||||
* Use toolbar, use Xt port toolbar (3D look)
|
|
||||||
*/
|
|
||||||
#undef USE_TOOLBAR
|
|
||||||
#undef USE_XT_TOOLBAR
|
|
||||||
/*
|
|
||||||
* Enables old type checking mechanism (wxSubType)
|
|
||||||
*/
|
|
||||||
#undef USE_TYPETREE
|
|
||||||
/*
|
|
||||||
* Use virtual list box item
|
|
||||||
*/
|
|
||||||
#undef USE_VLBOX
|
|
||||||
/*
|
|
||||||
* Use wxWindows resource loading (.wxr-files) (Needs USE_PROLOGIO 1)
|
|
||||||
*/
|
|
||||||
#undef USE_WX_RESOURCES
|
|
||||||
/*
|
/*
|
||||||
* Use wxGraph
|
* Use wxGraph
|
||||||
*/
|
*/
|
||||||
@@ -182,15 +236,11 @@
|
|||||||
/*
|
/*
|
||||||
* Use wxTree
|
* Use wxTree
|
||||||
*/
|
*/
|
||||||
|
#undef USE_WXTREE
|
||||||
/*
|
/*
|
||||||
* Use Apple Ieee-double converter
|
* Use Apple Ieee-double converter
|
||||||
*/
|
*/
|
||||||
#undef USE_APPLE_IEEE
|
#undef USE_APPLE_IEEE
|
||||||
|
|
||||||
/********************** DO NOT CHANGE BELOW THIS POINT **********************/
|
|
||||||
|
|
||||||
/**************************** WXDEBUGGING FEATURES ****************************/
|
|
||||||
|
|
||||||
/* Compatibility with 1.66 API.
|
/* Compatibility with 1.66 API.
|
||||||
Level 0: no backward compatibility, all new features
|
Level 0: no backward compatibility, all new features
|
||||||
Level 1: wxDC, OnSize (etc.) compatibility, but
|
Level 1: wxDC, OnSize (etc.) compatibility, but
|
||||||
@@ -220,9 +270,14 @@
|
|||||||
* Matthews garbage collection (used for MrEd?)
|
* Matthews garbage collection (used for MrEd?)
|
||||||
*/
|
*/
|
||||||
#define WXGARBAGE_COLLECTION_ON 0
|
#define WXGARBAGE_COLLECTION_ON 0
|
||||||
|
/*
|
||||||
/**************************** COMPILER FEATURES *****************************/
|
* Use splines
|
||||||
|
*/
|
||||||
|
#define USE_SPLINES 1
|
||||||
|
/*
|
||||||
|
* USE_DYNAMIC_CLASSES is TRUE for the Xt port
|
||||||
|
*/
|
||||||
|
#define USE_DYNAMIC_CLASSES 1
|
||||||
/*
|
/*
|
||||||
* Disable this if your compiler can't cope
|
* Disable this if your compiler can't cope
|
||||||
* with omission of prototype parameters.
|
* with omission of prototype parameters.
|
||||||
@@ -239,47 +294,9 @@
|
|||||||
*/
|
*/
|
||||||
#define CONST_COMPATIBILITY 0
|
#define CONST_COMPATIBILITY 0
|
||||||
|
|
||||||
/************************ WINDOWS 3.1 COMPATIBILITY *************************/
|
// ------------------------------------------------------------------------
|
||||||
|
// System-specific stuff
|
||||||
/*
|
// ------------------------------------------------------------------------
|
||||||
* Normalize X drawing code to behave exactly as MSW.
|
|
||||||
*/
|
|
||||||
#define WX_STANDARD_GRAPHICS 0
|
|
||||||
|
|
||||||
/******************* other stuff **********************************/
|
|
||||||
/*
|
|
||||||
* Support image loading for wxBitmap (wxImage is needed for this)
|
|
||||||
*/
|
|
||||||
#define USE_IMAGE_LOADING 0
|
|
||||||
#define WXIMAGE_INCLUDE "../../utils/image/src/wx_image.h"
|
|
||||||
/*
|
|
||||||
* Use splines
|
|
||||||
*/
|
|
||||||
#define USE_SPLINES 1
|
|
||||||
|
|
||||||
/*
|
|
||||||
* USE_DYNAMIC_CLASSES is TRUE for the Xt port
|
|
||||||
*/
|
|
||||||
#define USE_DYNAMIC_CLASSES 1
|
|
||||||
/*
|
|
||||||
* USE_EXTENDED_STATICS is FALSE for the Xt port
|
|
||||||
*/
|
|
||||||
#define USE_EXTENDED_STATICS 0
|
|
||||||
|
|
||||||
/*************************** IMAKEFILE EVALUATIOS ***************************/
|
|
||||||
|
|
||||||
#if USE_XPM
|
|
||||||
#define USE_XPM_IN_X 1
|
|
||||||
#else
|
|
||||||
#define USE_XPM_IN_X 0
|
|
||||||
#endif
|
|
||||||
#if USE_IMAGE_LOADING
|
|
||||||
#define USE_IMAGE_LOADING_IN_X 1
|
|
||||||
#else
|
|
||||||
#define USE_IMAGE_LOADING_IN_X 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* here comes the system-specific stuff */
|
|
||||||
|
|
||||||
/* acconfig.h
|
/* acconfig.h
|
||||||
This file is in the public domain.
|
This file is in the public domain.
|
@@ -44,33 +44,5 @@ s|*TOOLKIT_DEF*|@TOOLKIT_DEF@|g
|
|||||||
s|*THREADS*|@THREADS@|g
|
s|*THREADS*|@THREADS@|g
|
||||||
s|*THREADS_LINK*|@THREADS_LINK@|g
|
s|*THREADS_LINK*|@THREADS_LINK@|g
|
||||||
s|*EXTRA_LINK*|@EXTRA_LINK@|g
|
s|*EXTRA_LINK*|@EXTRA_LINK@|g
|
||||||
s|*WXSTRING*|@WXSTRING@|g
|
|
||||||
s|*TYPETREE*|@TYPETREE@|g
|
|
||||||
s|*METAFILE*|@METAFILE@|g
|
|
||||||
s|*POSTSCRIPTDC*|@POSTSCRIPTDC@|g
|
|
||||||
s|*WXGRAPH*|@WXGRAPH@|g
|
|
||||||
s|*WXTREE*|@WXTREE@|g
|
|
||||||
s|*DOCVIEW*|@DOCVIEW@|g
|
|
||||||
s|*FORM*|@FORM@|g
|
|
||||||
s|*PRINTPREVIEW*|@PRINTPREVIEW@|g
|
|
||||||
s|*IPC*|@IPC@|g
|
|
||||||
s|*HELP*|@HELP@|g
|
|
||||||
s|*CLIPBOARD*|@CLIPBOARD@|g
|
|
||||||
s|*TIMEDATE*|@TIMEDATE@|g
|
|
||||||
s|*FRACTION*|@FRACTION@|g
|
|
||||||
s|*PROLOGIO*|@PROLOGIO@|g
|
|
||||||
s|*PROLOGIOSRC*|@PROLOGIOSRC@|g
|
|
||||||
s|*ENHDIALOGBOX*|@ENHDIALOGBOX@|g
|
|
||||||
s|*GAUGE*|@GAUGE@|g
|
|
||||||
s|*GLCANVAS*|@GLCANVAS@|g
|
|
||||||
s|*LAYOUT*|@LAYOUT@|g
|
|
||||||
s|*WXRESOURCES*|@WXRESOURCES@|g
|
|
||||||
s|*XRESOURCES*|@XRESOURCES@|g
|
|
||||||
s|*SCROLLBAR*|@SCROLLBAR@|g
|
|
||||||
s|*STATICITEMS*|@STATICITEMS@|g
|
|
||||||
s|*TOOLBAR*|@TOOLBAR@|g
|
|
||||||
s|*CONSTRAINTS*|@CONSTRAINTS@|g
|
|
||||||
s|*RPC*|@RPC@|g
|
|
||||||
s|*VIRLISTBOX*|@VIRLISTBOX@|g
|
|
||||||
s|*GTK_JOYSTICK*|@GTK_JOYSTICK@|g
|
s|*GTK_JOYSTICK*|@GTK_JOYSTICK@|g
|
||||||
s|*UNIX_THREAD*|@UNIX_THREAD@|g
|
s|*UNIX_THREAD*|@UNIX_THREAD@|g
|
@@ -1 +1 @@
|
|||||||
include ../install/unix/setup/general/makeapp
|
include ../setup/general/makeapp
|
||||||
|
@@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
#ifndef WX_PRECOMP
|
#ifndef WX_PRECOMP
|
||||||
#include "wx/hash.h"
|
#include "wx/hash.h"
|
||||||
#ifdef USE_STORABLE_CLASSES
|
#ifdef USE_SERIAL
|
||||||
#include "wx/objstrm.h"
|
#include "wx/objstrm.h"
|
||||||
#include "wx/serbase.h"
|
#include "wx/serbase.h"
|
||||||
#endif
|
#endif
|
||||||
@@ -53,7 +53,7 @@ wxHashTable wxClassInfo::classTable(wxKEY_STRING);
|
|||||||
wxObject::wxObject(void)
|
wxObject::wxObject(void)
|
||||||
{
|
{
|
||||||
m_refData = (wxObjectRefData *) NULL;
|
m_refData = (wxObjectRefData *) NULL;
|
||||||
#ifdef USE_STORABLE_CLASSES
|
#ifdef USE_SERIAL
|
||||||
m_serialObj = (wxObject_Serialize *)NULL;
|
m_serialObj = (wxObject_Serialize *)NULL;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
@@ -61,7 +61,7 @@ wxObject::wxObject(void)
|
|||||||
wxObject::~wxObject(void)
|
wxObject::~wxObject(void)
|
||||||
{
|
{
|
||||||
UnRef();
|
UnRef();
|
||||||
#ifdef USE_STORABLE_CLASSES
|
#ifdef USE_SERIAL
|
||||||
if (m_serialObj)
|
if (m_serialObj)
|
||||||
delete m_serialObj;
|
delete m_serialObj;
|
||||||
#endif
|
#endif
|
||||||
@@ -228,7 +228,7 @@ wxObject *wxCreateDynamicObject(char *name)
|
|||||||
return info->CreateObject();
|
return info->CreateObject();
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef USE_STORABLE_CLASSES
|
#ifdef USE_SERIAL
|
||||||
|
|
||||||
#include "wx/serbase.h"
|
#include "wx/serbase.h"
|
||||||
#include "wx/dynlib.h"
|
#include "wx/dynlib.h"
|
||||||
|
@@ -54,6 +54,7 @@ LIB_CPP_SRC=\
|
|||||||
common/valtext.cpp \
|
common/valtext.cpp \
|
||||||
common/wxexpr.cpp \
|
common/wxexpr.cpp \
|
||||||
\
|
\
|
||||||
|
gtk/accel.cpp \
|
||||||
gtk/app.cpp \
|
gtk/app.cpp \
|
||||||
gtk/bitmap.cpp \
|
gtk/bitmap.cpp \
|
||||||
gtk/bmpbuttn.cpp \
|
gtk/bmpbuttn.cpp \
|
||||||
|
80
src/gtk/accel.cpp
Normal file
80
src/gtk/accel.cpp
Normal file
@@ -0,0 +1,80 @@
|
|||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
// Name: accel.cpp
|
||||||
|
// Purpose:
|
||||||
|
// Author: Robert Roebling
|
||||||
|
// Id:
|
||||||
|
// Copyright: (c) 1998 Robert Roebling
|
||||||
|
// Licence: wxWindows licence
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifdef __GNUG__
|
||||||
|
#pragma implementation "accel.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include "wx/accel.h"
|
||||||
|
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
// wxAcceleratorTable
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
class wxAccelRefData: public wxObjectRefData
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
wxAccelRefData(void);
|
||||||
|
|
||||||
|
wxList m_accels;
|
||||||
|
};
|
||||||
|
|
||||||
|
wxAccelRefData::wxAccelRefData(void)
|
||||||
|
{
|
||||||
|
m_accels.DeleteContents( TRUE );
|
||||||
|
}
|
||||||
|
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#define M_ACCELDATA ((wxAccelRefData *)m_refData)
|
||||||
|
|
||||||
|
IMPLEMENT_DYNAMIC_CLASS(wxAcceleratorTable,wxObject)
|
||||||
|
|
||||||
|
wxAcceleratorTable::wxAcceleratorTable()
|
||||||
|
{
|
||||||
|
m_refData = new wxAccelRefData();
|
||||||
|
}
|
||||||
|
|
||||||
|
wxAcceleratorTable::wxAcceleratorTable( int n, wxAcceleratorEntry entries[] )
|
||||||
|
{
|
||||||
|
m_refData = new wxAccelRefData();
|
||||||
|
for (int i = 0; i < n; i++)
|
||||||
|
{
|
||||||
|
M_ACCELDATA->m_accels.Append( (wxObject*)
|
||||||
|
new wxAcceleratorEntry( entries[n].GetFlags(), entries[n].GetKeyCode(), entries[n].GetCommand() ) );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
wxAcceleratorTable::~wxAcceleratorTable()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
bool wxAcceleratorTable::Ok() const
|
||||||
|
{
|
||||||
|
return (m_refData != NULL);
|
||||||
|
}
|
||||||
|
|
||||||
|
int wxAcceleratorTable::GetCommand( wxKeyEvent &event )
|
||||||
|
{
|
||||||
|
wxNode *node = M_ACCELDATA->m_accels.First();
|
||||||
|
while (node)
|
||||||
|
{
|
||||||
|
wxAcceleratorEntry *entry = (wxAcceleratorEntry*)node->Data();
|
||||||
|
if ((event.m_keyCode == entry->GetKeyCode()) &&
|
||||||
|
(((entry->GetFlags() & wxACCEL_CTRL) == 0) || event.ControlDown()) &&
|
||||||
|
(((entry->GetFlags() & wxACCEL_SHIFT) == 0) || event.ShiftDown()) &&
|
||||||
|
(((entry->GetFlags() & wxACCEL_ALT) == 0) || event.AltDown() || event.MetaDown()))
|
||||||
|
return entry->GetCommand();
|
||||||
|
node = node->Next();
|
||||||
|
}
|
||||||
|
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user