Added a few files; fixed some warnings and wxMotif compile problems

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1534 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
1999-01-31 18:47:10 +00:00
parent e2cad35228
commit 8870c26ecb
21 changed files with 220 additions and 76 deletions

View File

@@ -2,9 +2,9 @@ utils/glcanvas/docs/*.*
utils/glcanvas/win/*.cpp utils/glcanvas/win/*.cpp
utils/glcanvas/win/*.h utils/glcanvas/win/*.h
utils/glcanvas/win/make*.* utils/glcanvas/win/make*.*
utils/glcanvas/src/*.cpp utils/glcanvas/gtk/*.cpp
utils/glcanvas/src/*.h utils/glcanvas/gtk/*.h
utils/glcanvas/src/make*.* utils/glcanvas/gtk/make*.*
utils/glcanvas/motif/*.cpp utils/glcanvas/motif/*.cpp
utils/glcanvas/motif/*.h utils/glcanvas/motif/*.h
utils/glcanvas/motif/make*.* utils/glcanvas/motif/make*.*

View File

@@ -11,6 +11,7 @@ wxGTK.spec
docs/gtk/*.html docs/gtk/*.html
docs/gtk/*.txt docs/gtk/*.txt
docs/gtk/makewxgtk
include/wx/gtk/*.h include/wx/gtk/*.h
include/install-sh include/install-sh

View File

@@ -46,7 +46,7 @@ include/wx/motif/*.h
include/install-sh include/install-sh
docs/motif/*.txt docs/motif/*.txt
docs/motif/makewx docs/motif/makewxmotif
lib/dummy lib/dummy

View File

@@ -1,11 +1,15 @@
wxWindows 2.0 Change Log wxWindows 2 Change Log
------------------------ ----------------------
Beta 3, January 1999 Beta 3, January 31st 1999
-------------------- -------------------------
wxGTK: wxGTK:
- wxClipboard/DnD API changes (still in progress).
- wxToolTip class added.
- Miscellaneous fixes.
wxMSW: wxMSW:
- wxRegConfig DeleteAll bug fixed. - wxRegConfig DeleteAll bug fixed.
@@ -13,6 +17,7 @@ wxMSW:
- TWIN32 support added. - TWIN32 support added.
- Renamed VC++ makefiles from .nt to .vc, and - Renamed VC++ makefiles from .nt to .vc, and
factored out program/library settings. factored out program/library settings.
- Fixed wxIniConfig bug.
wxMotif: wxMotif:

11
docs/gtk/makewxgtk Normal file
View File

@@ -0,0 +1,11 @@
# makewxgtk
# Sets permissions (in case we extracted wxGTK from zip files)
# and makes wxGTK.
# Call from top-level wxWindows directory.
# Note that this uses standard (but commonly-used) configure options;
# if you're feeling brave, you may wish to compile with threads.
# -- Julian Smart
chmod a+x configure config.sub config.guess setup/general/* setup/shared/*
./configure --with-shared --with-gtk --with-debug_flag --with-debug_info --without-threads -without-odbc
make makefiles
make

View File

@@ -19,14 +19,39 @@ COMPILING USING CONFIGURE
you can follow the following steps to use the simpler (but you can follow the following steps to use the simpler (but
less automatic) makefile system. If using configure, the less automatic) makefile system. If using configure, the
following script should make the library and samples, when following script should make the library and samples, when
run from the top-level wxWindows directory (see also 'makewx' run from the top-level wxWindows directory (see also 'makewxmotif'
in this directory): in this directory). Make this script executable with the command
chmod a+x makewxmotif.
# Make wxMotif using the configure system -------:x-----Cut here-----:x-----
chmod a+x configure config.sub setup/general/* config.guess setup/shared/* # makewxmotif
./configure --with-shared --with-motif --with-debug_flag \ # Sets permissions (in case we extracted wxMotif from zip files)
--with-debug_info --without-threads # and makes wxMotif.
# Call from top-level wxWindows directory.
# Note that this uses standard (but commonly-used) configure options;
# if you're feeling brave, you may wish to compile with threads.
# -- Julian Smart
chmod a+x configure config.sub config.guess setup/general/* setup/shared/*
./configure --with-shared --with-motif --without-gtk --with-debug_flag --with-debug_info --without-threads
make makefiles
make make
-------:x-----Cut here-----:x-----
This script will build wxMotif using shared libraries.
- Change directory to a sample e.g. samples/minimal, and type make.
The binary will end up under the Linux (or other appropriate) subdirectory.
- To build an application outside the wxWindows hierarchy, you can
use `wx-config --cflags` when compiling source files and `wx-config --libs`
when linking, where wx-config is in the wxWindows root directory.
These invocations return the appropriate flags for the compiler.
- When compiling certain utilities such as Dialog Editor, you may find
that the makefile refers to wx-config as above. Unless you have used
"make install" to install wxWindows, wx-config won't be found, so
either edit the makefile to hard-wire the flags, or place wx-config
where it will be found by the makefile.
COMPILING USING MAKEFILES COMPILING USING MAKEFILES
@@ -41,8 +66,6 @@ COMPILING USING MAKEFILES
export WXWIN=/home/jacs/wx2 export WXWIN=/home/jacs/wx2
Later, there will be a better makefile system
and/or alternate make.env files as per wxWindows 1.68.
Please feel free to contribute settings files for your environment. Please feel free to contribute settings files for your environment.
- Change directory to src/motif and type: - Change directory to src/motif and type:
@@ -50,7 +73,10 @@ COMPILING USING MAKEFILES
make -f makefile.unx motif make -f makefile.unx motif
This should make the library libwx_motif.a in the lib This should make the library libwx_motif.a in the lib
directory. directory. Note that this makefile system does not build shared
libraries, only static ones (that is, the wxWindows library will be
linked statically; to see remaining dependencies on shared libraries,
type e.g. ldd minimal_motif).
- Make a sample, such as the minimal sample: - Make a sample, such as the minimal sample:
@@ -63,13 +89,13 @@ Notes:
------ ------
- Better installation and makefile systems are - Better installation and makefile systems are
required. Although the wxGTK config system can be used to make required. A revised configure system is in preparation.
wxMotif and samples, it can't easily be made to work
with applications outside the wxWindows hierarchy. Hence the
simple makefile system.
- Debugging mode is switched on by default. To compile in non-debug - Debugging mode is switched on by default. To compile in non-debug
mode, remove the -D__WXDEBUG__ switch in make.env. mode, remove the -D__WXDEBUG__ switch in make.env (or if using the
configure system, change --with-debug_flag to --without_debug_flag
and --with-debug_info to --without-debug_info in the makewxmotif
script).
- Some classes can be switched off in include/wx/motif/setup.h, - Some classes can be switched off in include/wx/motif/setup.h,
if you are having trouble with a particular file. However, if you are having trouble with a particular file. However,
@@ -106,5 +132,5 @@ Notes:
wxwin-users@wx.dent.med.uni-muenchen.de wxwin-users@wx.dent.med.uni-muenchen.de
Julian Smart, December 1998. Julian Smart, January 1999.
julian.smart@ukonline.co.uk julian.smart@ukonline.co.uk

View File

@@ -1,5 +0,0 @@
# Make wxMotif using the configure system
chmod a+x configure config.sub setup/general/* config.guess setup/shared/*
./configure --with-shared --with-motif --with-debug_flag --with-debug_info --without-threads
make

11
docs/motif/makewxmotif Normal file
View File

@@ -0,0 +1,11 @@
# makewxmotif
# Sets permissions (in case we extracted wxMotif from zip files)
# and makes wxMotif.
# Call from top-level wxWindows directory.
# Note that this uses standard (but commonly-used) configure options;
# if you're feeling brave, you may wish to compile with threads.
# -- Julian Smart
chmod a+x configure config.sub config.guess setup/general/* setup/shared/*
./configure --with-shared --with-motif --without-gtk --with-debug_flag --with-debug_info --without-threads
make makefiles
make

View File

@@ -25,11 +25,18 @@ Unarchive the required files plus any optional documentation
files into a suitable directory such as c:\wx. Alter your files into a suitable directory such as c:\wx. Alter your
WXWIN environment variable to point to this directory. WXWIN environment variable to point to this directory.
Other add-on packages are available from the wxWindows Web site, such as:
- glcanvas.zip. Use OpenGL in a wxWindows window.
- ogl3.zip. Object Graphics Library: build network diagrams, CASE tools etc.
- tex2rtf3.zip. Tex2RTF: create Windows Help, HTML, and Word RTF files from
the same document source.
Compilation Compilation
----------- -----------
At present, wxWindows compiles with VC++ 4.0/5.0/6.0, At present, wxWindows compiles with VC++ 4.0/5.0/6.0,
BC++ 4.5/5.0, Gnu-Win32 b19/b20, and Mingw32. It may compile BC++ 4.5/5.0, Cygwin b19/b20, and Mingw32. It may compile
with 16-bit compilers (BC++ and VC++ 1.5) but this hasn't with 16-bit compilers (BC++ and VC++ 1.5) but this hasn't
been tested lately. been tested lately.
@@ -181,26 +188,29 @@ the debugging version of the library is 90MB, with samples coming in
at 40MB :-) However, wxWindows at least makes a good test suite for at 40MB :-) However, wxWindows at least makes a good test suite for
improving the compiler. improving the compiler.
Gnu-Win32 b19/b20/Mingw32 compilation Cygwin b19/b20/Mingw32 compilation
------------------------------------- ----------------------------------
wxWindows 2.0 supports Gnu-Win32/Cygwin b19, b20, Mingw32, and Mingw32/EGCS. wxWindows 2.0 supports Cygwin (formerly GnuWin32) b19, b20, Mingw32, and Mingw32/EGCS.
Thanks are due to Keith Garry Boyce (garp@opustel.com) and Cygnus for making Thanks are due to Keith Garry Boyce (garp@opustel.com) and Cygnus for making
it all possible. it all possible.
From wxWindows 2.0 beta 9, both Gnu-Win32 and Mingw32 (the minimal From wxWindows 2.0 beta 9, both Cygwin and Mingw32 (the minimal
distribution of Gnu-Win32) can be used with the same makefiles. distribution of Cygwin) can be used with the same makefiles.
Here are the steps required: Here are the steps required:
- Retrieve and install the latest beta of Gnu-Win32, or Mingw32, as per the - Retrieve and install the latest beta of Cygwin, or Mingw32, as per the
instructions with either of these packages. instructions with either of these packages.
- If using Mingw32 (including the EGCS variant), you need some - If using Mingw32 (including the EGCS variant), you need some
extra files to use the wxWindows makefiles. You can find these extra files to use the wxWindows makefiles. You can find these
files in ports/mingw32 on the ftp site or CD-ROM, as extra.zip. files in ports/mingw32 on the ftp site or CD-ROM, as extra.zip.
These should be extracted to the Mingw32 directory. These should be extracted to the Mingw32 directory.
If you have already have downloaded bison, flex, make, rm, mv
from elsewhere, you won't need this.
IMPORTANT: also see mingw32.txt in this directory (docs/msw) IMPORTANT: also see mingw32.txt in this directory (docs/msw)
about a fix that has to be applied to a Mingw32 header file. about a fix that has to be applied to a Mingw32 header file.
@@ -208,14 +218,16 @@ Here are the steps required:
to set up appropriate variables, if necessary mounting drives. to set up appropriate variables, if necessary mounting drives.
Run it before compiling. Run it before compiling.
- For Gnu-Win32, make sure there's a \tmp directory on your - For Cygwin, make sure there's a \tmp directory on your
Windows drive or bison will crash. Windows drive or bison will crash.
- Edit wx/src/makeg95.env and search for MINGW32. Take note of - Edit wx/src/makeg95.env and search for MINGW32. Take note of
the comments for adjusting settings to suit Gnu-Win32 or the comments for adjusting settings to suit Cygwin or
Mingw32. Basically, this is just a case of adding the __MINGW32__ symbol Mingw32. Basically, this is just a case of adding the __MINGW32__ symbol
to OPTIONS for Mingw32, or removing it for Cygnus Gnu-Win32. to OPTIONS for Mingw32, or removing it for Cygnus Cygwin.
For Mingw32/EGCS, add both __MINGW32__ and __EGCS__. For Mingw32/EGCS, add both __MINGW32__ and __EGCS__.
You may need to remove -loldnames from WINLIBS for Mingw32, or add it for
Cygwin.
- Mingw32 may not support winsock.h, so comment out - Mingw32 may not support winsock.h, so comment out
socket-related files in src/msw/makefile.g95. socket-related files in src/msw/makefile.g95.
@@ -229,7 +241,7 @@ Here are the steps required:
- Use the 'strip' command to reduce executable size. - Use the 'strip' command to reduce executable size.
- With Cygnus Gnu-Win32, you can invoke gdb --nw myfile.exe to - With Cygnus Cygwin, you can invoke gdb --nw myfile.exe to
debug an executable. If there are memory leaks, they will be debug an executable. If there are memory leaks, they will be
flagged when the program quits. flagged when the program quits.
@@ -244,7 +256,7 @@ Gotchas:
- libwx.a is 48 MB or more - but much less if compiled with no - libwx.a is 48 MB or more - but much less if compiled with no
debug info (-g0) and level 4 optimization (-O4). debug info (-g0) and level 4 optimization (-O4).
- install.exe doesn't have built-in decompression because lzexpand.lib - install.exe doesn't have built-in decompression because lzexpand.lib
isn't available with Gnu-Win32. However, you can use it with external isn't available with Cygwin. However, you can use it with external
decompression utilities. decompression utilities.
- Doesn't compile src/msw/ole files, so no drag and drop. - Doesn't compile src/msw/ole files, so no drag and drop.
@@ -268,8 +280,11 @@ a tool for writing products with.
Use makefile.twn in much the same way as makefile.g95, as Use makefile.twn in much the same way as makefile.g95, as
described above. Not all sample makefiles are supplied yet. described above. Not all sample makefiles are supplied yet.
Notes For some reason, I found I had to copy TWIN32's Windows resource
----- compiler (rc) to the current working directory for it to be found.
General Notes
-------------
- Debugging: under Windows 95, debugging output isn't output in - Debugging: under Windows 95, debugging output isn't output in
the same way that it is under NT or Windows 3.1. Set the same way that it is under NT or Windows 3.1. Set

View File

@@ -1,7 +1,7 @@
wxWindows 2.0 wxWindows 2 beta 3
------------- ------------------
Welcome to wxWindows 2.0, a sophisticated cross-platform C++ Welcome to wxWindows 2, a sophisticated cross-platform C++
framework for writing advanced GUI applications using (where framework for writing advanced GUI applications using (where
possible) the native controls. possible) the native controls.
@@ -21,11 +21,14 @@ important documents and samples.
Platforms supported Platforms supported
------------------- -------------------
wxWindows 2.0 currently supports the following platforms: wxWindows 2 currently supports the following platforms:
- Windows 3.1, Windows 95/98, Windows NT - Windows 3.1, Windows 95/98, Windows NT
- Unix with Motif/Lesstif - Most Unix variants with Motif/Lesstif
- Unix with GTK+ - Most Unix variants with GTK+
Most popular C++ compilers are supported; see the release notes
(available via docs/html/index.htm) for details.
Files Files
----- -----
@@ -49,7 +52,7 @@ wx200cw.zip Metrowerks CodeWarrior project files
Installation Installation
------------ ------------
wxWindows 2.0 needs to be compiled before you can test out wxWindows 2 needs to be compiled before you can test out
the samples or write your own applications. the samples or write your own applications.
For installation information, please see the install.txt file For installation information, please see the install.txt file
in the individual directories: in the individual directories:
@@ -80,7 +83,7 @@ commercial applications using wxWindows.
Documentation Documentation
------------- -------------
See docs/changes.txt for a history of changes to wxWindows 2.0. See docs/changes.txt for a history of changes to wxWindows 2.
See docs/html/index.htm for an HTML index of the major documents. See docs/html/index.htm for an HTML index of the major documents.
The Windows help files are located in docs/winhelp. The Windows help files are located in docs/winhelp.
@@ -91,7 +94,7 @@ Further information
The wxWindows Web site is located at: The wxWindows Web site is located at:
http://wxwin.home.ml.org http://www.wxwindows.org
The wxGTK Web site (with further wxGTK-specific fiels and The wxGTK Web site (with further wxGTK-specific fiels and
information) is located at: information) is located at:
@@ -106,7 +109,7 @@ A wxWindows CD-ROM with the latest distribution plus an HTML
front-end and hundreds of MB of compilers, utilities and other front-end and hundreds of MB of compilers, utilities and other
material may be ordered from the CD-ROM page: material may be ordered from the CD-ROM page:
http://wxwin.home.ml.org/cdrom http://www.wxwindows.org/cdrom.htm
or contact Julian Smart <julian.smart@ukonline.co.uk>. or contact Julian Smart <julian.smart@ukonline.co.uk>.

View File

@@ -11,10 +11,12 @@
#ifndef _WX_WX_SERBASEH_H__ #ifndef _WX_WX_SERBASEH_H__
#define _WX_WX_SERBASEH_H__ #define _WX_WX_SERBASEH_H__
#include <wx/setup.h>
#include <wx/dynlib.h> #include <wx/dynlib.h>
#define WXSERIAL(classname) classname##_Serialize #define WXSERIAL(classname) classname##_Serialize
#if wxUSE_SERIAL
class wxObject_Serialize : public wxObject { class wxObject_Serialize : public wxObject {
DECLARE_DYNAMIC_CLASS(wxObject_Serialize) DECLARE_DYNAMIC_CLASS(wxObject_Serialize)
public: public:
@@ -27,6 +29,8 @@ class wxObject_Serialize : public wxObject {
protected: protected:
wxObject *m_object; wxObject *m_object;
}; };
#endif
// wxUSE_SERIAL
#define DECLARE_SERIAL_CLASS(classname, parent) \ #define DECLARE_SERIAL_CLASS(classname, parent) \
@@ -54,7 +58,10 @@ IMPLEMENT_DYNAMIC_CLASS(classname##_Serialize, parent##_Serialize)
#define IMPLEMENT_ALIAS_SERIAL_CLASS(classname, parent) \ #define IMPLEMENT_ALIAS_SERIAL_CLASS(classname, parent) \
IMPLEMENT_DYNAMIC_CLASS(classname##_Serialize, parent##_Serialize) IMPLEMENT_DYNAMIC_CLASS(classname##_Serialize, parent##_Serialize)
#if wxUSE_SERIAL
DECLARE_SERIAL_CLASS(wxList, wxObject) DECLARE_SERIAL_CLASS(wxList, wxObject)
DECLARE_SERIAL_CLASS(wxHashTable, wxObject) DECLARE_SERIAL_CLASS(wxHashTable, wxObject)
#endif
// wxUSE_SERIAL
#endif #endif

View File

@@ -507,15 +507,9 @@ public:
enum caseCompare {exact, ignoreCase}; enum caseCompare {exact, ignoreCase};
// values for first parameter of Strip function // values for first parameter of Strip function
enum stripType {leading = 0x1, trailing = 0x2, both = 0x3}; enum stripType {leading = 0x1, trailing = 0x2, both = 0x3};
// use Printf() // use Printf()
inline int sprintf(const char *pszFormat, ...) int sprintf(const char *pszFormat, ...);
{
va_list argptr;
va_start(argptr, pszFormat);
int iLen = PrintfV(pszFormat, argptr);
va_end(argptr);
return iLen;
}
// use Cmp() // use Cmp()
inline int CompareTo(const char* psz, caseCompare cmp = exact) const inline int CompareTo(const char* psz, caseCompare cmp = exact) const

View File

@@ -0,0 +1,43 @@
#
# File: makefile.unx
# Author: Julian Smart
# Created: 1993
# Updated:
# Copyright: (c) 1993, AIAI, University of Edinburgh
#
# "%W% %G%"
#
# Makefile for dialogs example (UNIX).
WXDIR = ../..
# All common UNIX compiler flags and options are now in
# this central makefile.
include $(WXDIR)/src/maketwin.env
OBJECTS = $(OBJDIR)/dialogs.$(OBJSUFF) $(OBJDIR)/dialogs_resources.$(OBJSUFF)
all: $(OBJDIR) dialogs$(GUISUFFIX)$(EXESUFF)
wx:
$(OBJDIR):
mkdir $(OBJDIR)
dialogs$(GUISUFFIX)$(EXESUFF): $(OBJECTS) $(WXLIB)
$(CC) $(LDFLAGS) -o dialogs$(GUISUFFIX)$(EXESUFF) $(OBJECTS) $(LDLIBS)
$(OBJDIR)/dialogs.$(OBJSUFF): dialogs.$(SRCSUFF)
$(CC) -c $(CPPFLAGS) -o $@ dialogs.$(SRCSUFF)
dialogs_resources.c: dialogs.rc
$(RESCOMP) $(RCINPUTSWITCH) dialogs.rc $(RCOUTPUTSWITCH) dialogs_resources.c $(RESFLAGS)
$(OBJDIR)/dialogs_resources.$(OBJSUFF): dialogs_resources.c
$(CC) -c $(CPPFLAGS) -o $@ dialogs_resources.c
#$(OBJDIR)/dialogs_resources.o: dialogs.rc
# $(RESCOMP) $(RCINPUTSWITCH) dialogs.rc $(RCOUTPUTSWITCH) $(OBJDIR)/dialogs_resources.o $(RESFLAGS)
clean:
rm -f $(OBJECTS) dialogs$(GUISUFFIX).exe core *.rsc *.res

View File

@@ -1099,6 +1099,15 @@ wxString wxString::Upper() const
// convert to lower case, return the copy of the string // convert to lower case, return the copy of the string
wxString wxString::Lower() const { wxString s(*this); return s.MakeLower(); } wxString wxString::Lower() const { wxString s(*this); return s.MakeLower(); }
int wxString::sprintf(const char *pszFormat, ...)
{
va_list argptr;
va_start(argptr, pszFormat);
int iLen = PrintfV(pszFormat, argptr);
va_end(argptr);
return iLen;
}
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
// standard C++ library string functions // standard C++ library string functions
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------

View File

@@ -136,7 +136,7 @@ bool wxGetLocalTime(long *timeZone, int *dstObserved)
struct tm *tp; struct tm *tp;
time(&t0); time(&t0);
tp = localtime(&t0); tp = localtime(&t0);
*timeZone = timezone; // tp->tm_gmtoff; // ??? *timeZone = _timezone; // tp->tm_gmtoff; // ???
*dstObserved = tp->tm_isdst; *dstObserved = tp->tm_isdst;
#elif defined(__MINGW32__) #elif defined(__MINGW32__)
time_t t0; time_t t0;

View File

@@ -36,7 +36,7 @@ CCLEX=gcc
MAKE=make MAKE=make
# LEX # LEX
LEX=flex -t -L LEX=flex # -t -L
# YACC. yacc or bison # YACC. yacc or bison
# YACC=yacc # YACC=yacc
@@ -54,7 +54,7 @@ RESFLAGS=$(RCINCSWITCH) $(WXDIR)/include $(RCDEFSWITCH) __WIN32__ $(RCDEFSWITCH)
########################## Compiler flags ############################# ########################## Compiler flags #############################
# Miscellaneous compiler options # Miscellaneous compiler options
OPTIONS= # -D__MINGW32__ # -D__EGCS__ OPTIONS= -D__EGCS__ # -D__MINGW32__
# Debugging information # Debugging information
# AIX: comment out. # AIX: comment out.
@@ -113,8 +113,8 @@ COMPPATHS=
WINLIBS=-lstdc++ -lgcc \ WINLIBS=-lstdc++ -lgcc \
-lwinspool -lwinmm -lshell32 -loldnames \ -lwinspool -lwinmm -lshell32 \
-lcomctl32 -lctl3d32 -lodbc32 -ladvapi32 -lcomctl32 -lctl3d32 -lodbc32 -ladvapi32 # -loldnames
# Shouldn't need to change these... # Shouldn't need to change these...
WXSRC=$(WXDIR)/src/msw WXSRC=$(WXDIR)/src/msw

View File

@@ -1,11 +1,15 @@
REM REM
REM replace g:\egcs-mingw32 with whatever your installation root may be. REM replace k:\mingw32 with whatever your installation root may be.
REM REM
path C:\WINDOWS;C:\WINDOWS\COMMAND;g:\egcs-mingw32\bin;c:\bin path C:\WINDOWS;C:\WINDOWS\COMMAND;k:\mingw32\bin;c:\bin
SET GCC_EXEC_PREFIX=g:\egcs-mingw32\lib\gcc-lib\ SET GCC_EXEC_PREFIX=k:\mingw32\lib\gcc-lib\
set BISON_SIMPLE=g:\egcs-mingw32\share\bison.simple set BISON_SIMPLE=k:\mingw32\share\bison.simple
set BISON_HAIRY=g:\egcs-mingw32\share\bison.hairy set BISON_HAIRY=k:\mingw32\share\bison.hairy
set C_INCLUDE_PATH=k:\MINGW32\include
set CPLUS_INCLUDE_PATH=k:\MINGW32\include\g++;g:\MINGW32\include
set LIBRARY_PATH=k:\MINGW32\lib
set GCC_EXEC_PREFIX=k:\MINGW32\lib\gcc-lib\
rem 4DOS users only... rem 4DOS users only...
unalias make unalias make

View File

@@ -107,7 +107,6 @@ LIB_CPP_SRC=\
motif/msgdlg.cpp \ motif/msgdlg.cpp \
motif/palette.cpp \ motif/palette.cpp \
motif/pen.cpp \ motif/pen.cpp \
motif/print.cpp \
motif/radiobox.cpp \ motif/radiobox.cpp \
motif/radiobut.cpp \ motif/radiobut.cpp \
motif/region.cpp \ motif/region.cpp \

View File

@@ -217,6 +217,20 @@ void wxDropSource::UnregisterWindow(void)
} }
#endif #endif
wxPrivateDropTarget::wxPrivateDropTarget()
{
m_id = wxTheApp->GetAppName();
}
size_t wxPrivateDropTarget::GetFormatCount() const
{
return 1;
}
wxDataFormat wxPrivateDropTarget::GetFormat(size_t n) const
{
return wxDF_INVALID;
}
#endif #endif
// wxUSE_DRAG_AND_DROP // wxUSE_DRAG_AND_DROP

View File

@@ -102,10 +102,10 @@ wxAcceleratorTable::wxAcceleratorTable(const wxString& resource)
extern int wxCharCodeWXToMSW(int id, bool *isVirtual); extern int wxCharCodeWXToMSW(int id, bool *isVirtual);
// Create from an array // Create from an array
#if !defined(__WIN16__) && !defined(__TWIN32__)
wxAcceleratorTable::wxAcceleratorTable(int n, const wxAcceleratorEntry entries[]) wxAcceleratorTable::wxAcceleratorTable(int n, const wxAcceleratorEntry entries[])
{ {
// Not available in WIN16 // Not available in WIN16
#if !defined(__WIN16__) && !defined(__TWIN32__)
m_refData = new wxAcceleratorRefData; m_refData = new wxAcceleratorRefData;
ACCEL* arr = new ACCEL[n]; ACCEL* arr = new ACCEL[n];
@@ -135,8 +135,12 @@ wxAcceleratorTable::wxAcceleratorTable(int n, const wxAcceleratorEntry entries[]
delete[] arr; delete[] arr;
M_ACCELDATA->m_ok = (M_ACCELDATA->m_hAccel != 0); M_ACCELDATA->m_ok = (M_ACCELDATA->m_hAccel != 0);
#endif
} }
#else
wxAcceleratorTable::wxAcceleratorTable(int WXUNUSED(n), const wxAcceleratorEntry WXUNUSED(entries)[])
{
}
#endif
bool wxAcceleratorTable::Ok(void) const bool wxAcceleratorTable::Ok(void) const
{ {

View File

@@ -279,10 +279,13 @@ $(COMMDIR)/y_tab.$(OBJSUFF): $(COMMDIR)/y_tab.c $(COMMDIR)/lex_yy.c
# problems with lex_yy.c. See also note about LEX_SCANNER # problems with lex_yy.c. See also note about LEX_SCANNER
# above. # above.
$(COMMDIR)/lex_yy.c: $(COMMDIR)/lexer.l $(COMMDIR)/lex_yy.c: $(COMMDIR)/lexer.l
$(LEX) $(COMMDIR)/lexer.l > $(COMMDIR)/lex_yy.c $(LEX) -L -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l
# The following may be required for some versions of LEX/FLEX # Try one of these if the above line doesn't work.
# $(LEX) -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l # Alternative syntax (1)
# $(LEX) -t -L $(COMMDIR)/lexer.l > $(COMMDIR)/lex_yy.c
# Alternative syntax (2)
# $(LEX) -L -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l
# sed -e "s/BUFSIZ/5000/g" < lex.yy.c | \ # sed -e "s/BUFSIZ/5000/g" < lex.yy.c | \
# sed -e "s/yyoutput(c)/void yyoutput(c)/g" | \ # sed -e "s/yyoutput(c)/void yyoutput(c)/g" | \