Compare commits
109 Commits
BEFORE_LIB
...
wxPy-2-1-5
Author | SHA1 | Date | |
---|---|---|---|
|
0acf57d2cf | ||
|
07cb3fd3d1 | ||
|
60a15c9b7b | ||
|
d5a07b9ec9 | ||
|
46c3e3d92a | ||
|
d1b15f03b8 | ||
|
147bc49159 | ||
|
4c61bdabd6 | ||
|
27d029c722 | ||
|
738f9e5a12 | ||
|
d66d3ce6dd | ||
|
75f11ad7ca | ||
|
b782f2e0f6 | ||
|
2083616e16 | ||
|
1b231e235b | ||
|
622ea7838d | ||
|
db98870d82 | ||
|
247e5b1632 | ||
|
bf0c00c6e8 | ||
|
fb9010ed40 | ||
|
89be8239db | ||
|
2726c66d5b | ||
|
5e4ff78a96 | ||
|
783ff666e0 | ||
|
bc29c5e0e1 | ||
|
06c0fba410 | ||
|
21422dd796 | ||
|
7e94145827 | ||
|
a091d18c61 | ||
|
e115e77131 | ||
|
2a6277d4f2 | ||
|
de87c35312 | ||
|
307f16e829 | ||
|
ca43a38c0f | ||
|
a79fa1ed13 | ||
|
272cd5dddb | ||
|
3156ba6ea6 | ||
|
45016e1a6b | ||
|
ed673c6a48 | ||
|
2136a764e5 | ||
|
44174280e5 | ||
|
223d09f6b5 | ||
|
b4a2ab728b | ||
|
fcc228b31e | ||
|
85f3749fd2 | ||
|
0371a69143 | ||
|
89aea7b0ef | ||
|
fbfe0e6a88 | ||
|
ae920857a7 | ||
|
ccba72313c | ||
|
86e7822245 | ||
|
4f63da7e98 | ||
|
f40dc1e275 | ||
|
9b5801d640 | ||
|
167b96c2ad | ||
|
6147ee3451 | ||
|
e1ea357c67 | ||
|
bbfa03228a | ||
|
48115f4a69 | ||
|
1475671a66 | ||
|
e9f2ef9429 | ||
|
c4684a42c8 | ||
|
39a7c7e167 | ||
|
00ded55423 | ||
|
2b37dc19c5 | ||
|
3976f6a846 | ||
|
a2115c88f3 | ||
|
9b64e79868 | ||
|
7c4eef7a75 | ||
|
3806d8a9f6 | ||
|
65d7ddc4eb | ||
|
d604ea3355 | ||
|
66242c8007 | ||
|
21802234df | ||
|
134d79dca7 | ||
|
2690830ea0 | ||
|
28d00598b3 | ||
|
934d4f8d8c | ||
|
7bf5436263 | ||
|
cdb5168095 | ||
|
b540eb2bee | ||
|
07818da861 | ||
|
3766781218 | ||
|
6768c790de | ||
|
064f8bf6f8 | ||
|
74697a5713 | ||
|
e87d60c93b | ||
|
a181ac202f | ||
|
e685e57bbd | ||
|
13971833d8 | ||
|
8f17924e73 | ||
|
f0261a7246 | ||
|
91233253ec | ||
|
f85afd4e46 | ||
|
10434f3c24 | ||
|
e442cc0d9d | ||
|
704d25e2a3 | ||
|
f0a56ab0c3 | ||
|
f7a11f8c8e | ||
|
fe8aa971c4 | ||
|
a20cd16ca0 | ||
|
aee3892569 | ||
|
d6d2b6ae8f | ||
|
27476f7368 | ||
|
1bd1d102fd | ||
|
73974df1f9 | ||
|
e90c1d2a19 | ||
|
9841339c74 | ||
|
1d61ebaca1 |
28
BuildCVS.txt
28
BuildCVS.txt
@@ -35,7 +35,25 @@ and its make.exe).
|
|||||||
-> Set your path so that it includes the directory
|
-> Set your path so that it includes the directory
|
||||||
where your compiler and tools reside
|
where your compiler and tools reside
|
||||||
|
|
||||||
|
b-2) Using Mingw32 with gcc-2.95 and Anders Norlander's
|
||||||
|
Win32 headers
|
||||||
|
|
||||||
|
Using the newer gcc-2.95/Noralander header combination
|
||||||
|
will allow you to compile more of the MSW code, such
|
||||||
|
as OLE and Drag-n-Drop.
|
||||||
|
|
||||||
|
Instructions are similar to those for Regular Mingw32 except
|
||||||
|
|
||||||
|
->Get the compiler from
|
||||||
|
ftp://ftp.xraylith.wisc.edu/pub/khan/gnu-win32/mingw32/gcc-2.95/
|
||||||
|
|
||||||
|
->patch the gcc headers with info in wxWin\Mingw32-gcc295.patches.
|
||||||
|
PLEASE APPLY THESE PATCHES BY HAND! There are apparently a few
|
||||||
|
different versions of the headers floating around.
|
||||||
|
|
||||||
|
->copy wxWin\src\makeg295.env to wxWin\src\makeg95.env
|
||||||
|
|
||||||
|
|
||||||
c) Build instructions
|
c) Build instructions
|
||||||
|
|
||||||
-> Assumming that you installed the wxWindows sources
|
-> Assumming that you installed the wxWindows sources
|
||||||
@@ -44,7 +62,7 @@ c) Build instructions
|
|||||||
to c:\wxWin\include\wx\msw\setup.h
|
to c:\wxWin\include\wx\msw\setup.h
|
||||||
-> Edit c:\wxWin\include\wx\msw\setup.h so that
|
-> Edit c:\wxWin\include\wx\msw\setup.h so that
|
||||||
most features are enabled (i.e. defined to 1) with
|
most features are enabled (i.e. defined to 1) with
|
||||||
#define wxUSE_ODBC 0
|
#define wxUSE_ODBC 0
|
||||||
#define wxUSE_SOCKETS 0
|
#define wxUSE_SOCKETS 0
|
||||||
#define wxUSE_HTML 1
|
#define wxUSE_HTML 1
|
||||||
#define wxUSE_THREADS 1
|
#define wxUSE_THREADS 1
|
||||||
@@ -58,9 +76,13 @@ c) Build instructions
|
|||||||
|
|
||||||
and iostreams ares disabled with
|
and iostreams ares disabled with
|
||||||
#define wxUSE_STD_IOSTREAM 0
|
#define wxUSE_STD_IOSTREAM 0
|
||||||
|
|
||||||
|
note: ODBC and SOCKETS can be 1 for gcc-2.95
|
||||||
|
|
||||||
-> type: cd c:\wxWin\src\msw
|
-> type: cd c:\wxWin\src\msw
|
||||||
-> type: make -f makefile.g95 (if using GNU tools)
|
-> type: make -f makefile.g95 (if using GNU tools)
|
||||||
or type: make -f makefile.vc (if using MS VC++)
|
or type: make -f makefile.g295 (if using Mingw32/gcc-2.95)
|
||||||
|
or type: make -f makefile.vc (if using MS VC++)
|
||||||
|
|
||||||
|
|
||||||
II) Unix ports
|
II) Unix ports
|
||||||
|
184
Makefile.in
184
Makefile.in
@@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# This file was automatically generated by tmake at 15:20, 1999/10/04
|
# This file was automatically generated by tmake at 09:29, 1999/10/11
|
||||||
# DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE UNX.T!
|
# DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE UNX.T!
|
||||||
|
|
||||||
#
|
#
|
||||||
@@ -44,8 +44,9 @@ VP6 = @top_srcdir@/src/html
|
|||||||
VP7 = @top_srcdir@/src/png
|
VP7 = @top_srcdir@/src/png
|
||||||
VP8 = @top_srcdir@/src/jpeg
|
VP8 = @top_srcdir@/src/jpeg
|
||||||
VP9 = @top_srcdir@/src/zlib
|
VP9 = @top_srcdir@/src/zlib
|
||||||
|
VP10 = @top_srcdir@/src/iodbc
|
||||||
|
|
||||||
VPATH = $(VP1):$(VP2):$(VP3):$(VP4):$(VP5):$(VP6):$(VP7):$(VP8):$(VP9)
|
VPATH = $(VP1):$(VP2):$(VP3):$(VP4):$(VP5):$(VP6):$(VP7):$(VP8):$(VP9):$(VP10)
|
||||||
|
|
||||||
top_srcdir = @top_srcdir@
|
top_srcdir = @top_srcdir@
|
||||||
prefix = @prefix@
|
prefix = @prefix@
|
||||||
@@ -125,6 +126,43 @@ DISTDIR = ./_dist_dir/wx$(TOOLKIT)
|
|||||||
|
|
||||||
############################## Files ##################################
|
############################## Files ##################################
|
||||||
|
|
||||||
|
BASE_HEADERS = \
|
||||||
|
app.h \
|
||||||
|
date.h \
|
||||||
|
debug.h \
|
||||||
|
defs.h \
|
||||||
|
dynarray.h \
|
||||||
|
dynlib.h \
|
||||||
|
event.h \
|
||||||
|
ffile.h \
|
||||||
|
file.h \
|
||||||
|
fileconf.h \
|
||||||
|
hash.h \
|
||||||
|
intl.h \
|
||||||
|
list.h \
|
||||||
|
log.h \
|
||||||
|
longlong.h \
|
||||||
|
mimetype.h \
|
||||||
|
module.h \
|
||||||
|
object.h \
|
||||||
|
process.h \
|
||||||
|
setup.h \
|
||||||
|
strconv.h \
|
||||||
|
stream.h \
|
||||||
|
string.h \
|
||||||
|
textfile.h \
|
||||||
|
thread.h \
|
||||||
|
time.h \
|
||||||
|
timer.h \
|
||||||
|
tokenzr.h \
|
||||||
|
txtstrm.h \
|
||||||
|
utils.h \
|
||||||
|
variant.h \
|
||||||
|
version.h \
|
||||||
|
wx.h \
|
||||||
|
wxchar.h \
|
||||||
|
wxprec.h
|
||||||
|
|
||||||
WX_HEADERS = \
|
WX_HEADERS = \
|
||||||
accel.h \
|
accel.h \
|
||||||
app.h \
|
app.h \
|
||||||
@@ -526,7 +564,7 @@ GENERIC_HEADERS = \
|
|||||||
generic/dirdlgg.h \
|
generic/dirdlgg.h \
|
||||||
generic/filedlgg.h \
|
generic/filedlgg.h \
|
||||||
generic/fontdlgg.h \
|
generic/fontdlgg.h \
|
||||||
generic/gridg.h \
|
generic/grid.h \
|
||||||
generic/helpext.h \
|
generic/helpext.h \
|
||||||
generic/helphtml.h \
|
generic/helphtml.h \
|
||||||
generic/helpwxht.h \
|
generic/helpwxht.h \
|
||||||
@@ -577,7 +615,7 @@ GTK_GENERICOBJS = \
|
|||||||
dcpsg.o \
|
dcpsg.o \
|
||||||
dirdlgg.o \
|
dirdlgg.o \
|
||||||
filedlgg.o \
|
filedlgg.o \
|
||||||
gridg.o \
|
grid.o \
|
||||||
helphtml.o \
|
helphtml.o \
|
||||||
helpwxht.o \
|
helpwxht.o \
|
||||||
imaglist.o \
|
imaglist.o \
|
||||||
@@ -610,7 +648,7 @@ GTK_GENERICDEPS = \
|
|||||||
dcpsg.d \
|
dcpsg.d \
|
||||||
dirdlgg.d \
|
dirdlgg.d \
|
||||||
filedlgg.d \
|
filedlgg.d \
|
||||||
gridg.d \
|
grid.d \
|
||||||
helphtml.d \
|
helphtml.d \
|
||||||
helpwxht.d \
|
helpwxht.d \
|
||||||
imaglist.d \
|
imaglist.d \
|
||||||
@@ -854,6 +892,7 @@ GTK_GUIOBJS = \
|
|||||||
settings.o \
|
settings.o \
|
||||||
slider.o \
|
slider.o \
|
||||||
spinbutt.o \
|
spinbutt.o \
|
||||||
|
spinctrl.o \
|
||||||
statbmp.o \
|
statbmp.o \
|
||||||
statbox.o \
|
statbox.o \
|
||||||
statline.o \
|
statline.o \
|
||||||
@@ -913,6 +952,7 @@ GTK_GUIDEPS = \
|
|||||||
settings.d \
|
settings.d \
|
||||||
slider.d \
|
slider.d \
|
||||||
spinbutt.d \
|
spinbutt.d \
|
||||||
|
spinctrl.d \
|
||||||
statbmp.d \
|
statbmp.d \
|
||||||
statbox.d \
|
statbox.d \
|
||||||
statline.d \
|
statline.d \
|
||||||
@@ -935,7 +975,7 @@ MOTIF_GENERICOBJS = \
|
|||||||
dcpsg.o \
|
dcpsg.o \
|
||||||
dirdlgg.o \
|
dirdlgg.o \
|
||||||
fontdlgg.o \
|
fontdlgg.o \
|
||||||
gridg.o \
|
grid.o \
|
||||||
helphtml.o \
|
helphtml.o \
|
||||||
helpwxht.o \
|
helpwxht.o \
|
||||||
helpxlp.o \
|
helpxlp.o \
|
||||||
@@ -972,7 +1012,7 @@ MOTIF_GENERICDEPS = \
|
|||||||
dcpsg.d \
|
dcpsg.d \
|
||||||
dirdlgg.d \
|
dirdlgg.d \
|
||||||
fontdlgg.d \
|
fontdlgg.d \
|
||||||
gridg.d \
|
grid.d \
|
||||||
helphtml.d \
|
helphtml.d \
|
||||||
helpwxht.d \
|
helpwxht.d \
|
||||||
helpxlp.d \
|
helpxlp.d \
|
||||||
@@ -1297,7 +1337,7 @@ MSW_GENERICOBJS = \
|
|||||||
busyinfo.o \
|
busyinfo.o \
|
||||||
choicdgg.o \
|
choicdgg.o \
|
||||||
dirdlgg.o \
|
dirdlgg.o \
|
||||||
gridg.o \
|
grid.o \
|
||||||
laywin.o \
|
laywin.o \
|
||||||
logg.o \
|
logg.o \
|
||||||
numdlgg.o \
|
numdlgg.o \
|
||||||
@@ -1319,7 +1359,7 @@ MSW_GENERICDEPS = \
|
|||||||
busyinfo.d \
|
busyinfo.d \
|
||||||
choicdgg.d \
|
choicdgg.d \
|
||||||
dirdlgg.d \
|
dirdlgg.d \
|
||||||
gridg.d \
|
grid.d \
|
||||||
laywin.d \
|
laywin.d \
|
||||||
logg.d \
|
logg.d \
|
||||||
numdlgg.d \
|
numdlgg.d \
|
||||||
@@ -1389,6 +1429,7 @@ MSW_COMMONOBJS = \
|
|||||||
mstream.o \
|
mstream.o \
|
||||||
object.o \
|
object.o \
|
||||||
objstrm.o \
|
objstrm.o \
|
||||||
|
odbc.o \
|
||||||
paper.o \
|
paper.o \
|
||||||
prntbase.o \
|
prntbase.o \
|
||||||
process.o \
|
process.o \
|
||||||
@@ -1478,6 +1519,7 @@ MSW_COMMONDEPS = \
|
|||||||
mstream.d \
|
mstream.d \
|
||||||
object.d \
|
object.d \
|
||||||
objstrm.d \
|
objstrm.d \
|
||||||
|
odbc.d \
|
||||||
paper.d \
|
paper.d \
|
||||||
prntbase.d \
|
prntbase.d \
|
||||||
process.d \
|
process.d \
|
||||||
@@ -1687,6 +1729,74 @@ MSW_GUIDEPS = \
|
|||||||
window.d \
|
window.d \
|
||||||
xpmhand.d
|
xpmhand.d
|
||||||
|
|
||||||
|
BASE_OBJS = \
|
||||||
|
config.o \
|
||||||
|
date.o \
|
||||||
|
dynarray.o \
|
||||||
|
dynlib.o \
|
||||||
|
event.o \
|
||||||
|
extended.o \
|
||||||
|
ffile.o \
|
||||||
|
file.o \
|
||||||
|
fileconf.o \
|
||||||
|
filefn.o \
|
||||||
|
filesys.o \
|
||||||
|
hash.o \
|
||||||
|
init.o \
|
||||||
|
intl.o \
|
||||||
|
list.o \
|
||||||
|
log.o \
|
||||||
|
mimetype.o \
|
||||||
|
module.o \
|
||||||
|
object.o \
|
||||||
|
process.o \
|
||||||
|
strconv.o \
|
||||||
|
stream.o \
|
||||||
|
string.o \
|
||||||
|
textfile.o \
|
||||||
|
time.o \
|
||||||
|
timercmn.o \
|
||||||
|
tokenzr.o \
|
||||||
|
txtstrm.o \
|
||||||
|
utilscmn.o \
|
||||||
|
variant.o \
|
||||||
|
wxchar.o \
|
||||||
|
utilsunx.o
|
||||||
|
|
||||||
|
BASE_DEPS = \
|
||||||
|
config.d \
|
||||||
|
date.d \
|
||||||
|
dynarray.d \
|
||||||
|
dynlib.d \
|
||||||
|
event.d \
|
||||||
|
extended.d \
|
||||||
|
ffile.d \
|
||||||
|
file.d \
|
||||||
|
fileconf.d \
|
||||||
|
filefn.d \
|
||||||
|
filesys.d \
|
||||||
|
hash.d \
|
||||||
|
init.d \
|
||||||
|
intl.d \
|
||||||
|
list.d \
|
||||||
|
log.d \
|
||||||
|
mimetype.d \
|
||||||
|
module.d \
|
||||||
|
object.d \
|
||||||
|
process.d \
|
||||||
|
strconv.d \
|
||||||
|
stream.d \
|
||||||
|
string.d \
|
||||||
|
textfile.d \
|
||||||
|
time.d \
|
||||||
|
timercmn.d \
|
||||||
|
tokenzr.d \
|
||||||
|
txtstrm.d \
|
||||||
|
utilscmn.d \
|
||||||
|
variant.d \
|
||||||
|
wxchar.d \
|
||||||
|
utilsunx.d
|
||||||
|
|
||||||
HTMLOBJS = \
|
HTMLOBJS = \
|
||||||
helpctrl.o \
|
helpctrl.o \
|
||||||
helpdata.o \
|
helpdata.o \
|
||||||
@@ -1727,13 +1837,13 @@ HTMLDEPS = \
|
|||||||
search.d \
|
search.d \
|
||||||
winpars.d
|
winpars.d
|
||||||
|
|
||||||
UNIXOBJS = \
|
UNIX_OBJS = \
|
||||||
dialup.o \
|
dialup.o \
|
||||||
gsocket.o \
|
gsocket.o \
|
||||||
threadpsx.o \
|
threadpsx.o \
|
||||||
utilsunx.o
|
utilsunx.o
|
||||||
|
|
||||||
UNIXDEPS = \
|
UNIX_DEPS = \
|
||||||
dialup.d \
|
dialup.d \
|
||||||
gsocket.d \
|
gsocket.d \
|
||||||
threadpsx.d \
|
threadpsx.d \
|
||||||
@@ -1821,16 +1931,40 @@ JPEGOBJS = \
|
|||||||
jquant2.o \
|
jquant2.o \
|
||||||
jdmerge.o
|
jdmerge.o
|
||||||
|
|
||||||
|
IODBCOBJS = \
|
||||||
|
catalog.o \
|
||||||
|
connect.o \
|
||||||
|
dlf.o \
|
||||||
|
dlproc.o \
|
||||||
|
execute.o \
|
||||||
|
fetch.o \
|
||||||
|
hdbc.o \
|
||||||
|
henv.o \
|
||||||
|
herr.o \
|
||||||
|
hstmt.o \
|
||||||
|
info.o \
|
||||||
|
itrace.o \
|
||||||
|
misc.o \
|
||||||
|
prepare.o \
|
||||||
|
result.o
|
||||||
|
|
||||||
OBJECTS = $(@GUIOBJS@) $(@COMMONOBJS@) $(@GENERICOBJS@) $(@UNIXOBJS@) $(HTMLOBJS) \
|
GUIOBJS = @GUIOBJS@
|
||||||
$(JPEGOBJS) $(PNGOBJS) $(ZLIBOBJS)
|
GUIDEPS = @GUIDEPS@
|
||||||
|
GUIHEADERS = @GUIHEADERS@
|
||||||
|
COMMONOBJS = @COMMONOBJS@
|
||||||
|
COMMONDEPS = @COMMONDEPS@
|
||||||
|
GENERICOBJS = @GENERICOBJS@
|
||||||
|
GENERICDEPS = @GENERICDEPS@
|
||||||
|
UNIXOBJS = @UNIXOBJS@
|
||||||
|
UNIXDEPS = @UNIXDEPS@
|
||||||
|
|
||||||
DEPFILES = $(@GUIDEPS@) $(@COMMONDEPS@) $(@GENERICDEPS@) $(UNIXDEPS) $(HTMLDEPS)
|
OBJECTS = @ALL_OBJECTS@ $(IODBCOBJS)
|
||||||
|
|
||||||
HEADERS = $(@GUIHEADERS@) $(HTML_HEADERS) $(UNIX_HEADERS) $(PROTOCOL_HEADERS) \
|
DEPFILES = @ALL_DEPFILES@
|
||||||
$(GENERIC_HEADERS) $(WX_HEADERS)
|
|
||||||
|
|
||||||
all: @WX_CREATE_LINKS@
|
HEADERS = @ALL_HEADERS@
|
||||||
|
|
||||||
|
all: @WX_ALL@
|
||||||
|
|
||||||
@WX_LIBRARY_NAME_STATIC@: $(OBJECTS)
|
@WX_LIBRARY_NAME_STATIC@: $(OBJECTS)
|
||||||
@$(INSTALL) -d ./lib
|
@$(INSTALL) -d ./lib
|
||||||
@@ -1841,7 +1975,7 @@ all: @WX_CREATE_LINKS@
|
|||||||
@$(INSTALL) -d ./lib
|
@$(INSTALL) -d ./lib
|
||||||
$(SHARED_LD) ./lib/$@ $(OBJECTS) $(EXTRALIBS)
|
$(SHARED_LD) ./lib/$@ $(OBJECTS) $(EXTRALIBS)
|
||||||
|
|
||||||
CREATE_LINKS: @WX_TARGET_LIBRARY@
|
CREATE_LINKS: @WX_LIBRARY_NAME_SHARED@
|
||||||
@$(RM) ./lib/@WX_LIBRARY_LINK1@
|
@$(RM) ./lib/@WX_LIBRARY_LINK1@
|
||||||
@$(RM) ./lib/@WX_LIBRARY_LINK2@
|
@$(RM) ./lib/@WX_LIBRARY_LINK2@
|
||||||
@$(RM) ./lib/@WX_LIBRARY_LINK3@
|
@$(RM) ./lib/@WX_LIBRARY_LINK3@
|
||||||
@@ -1849,13 +1983,13 @@ CREATE_LINKS: @WX_TARGET_LIBRARY@
|
|||||||
$(LN_S) @WX_TARGET_LIBRARY@ ./lib/@WX_LIBRARY_LINK2@
|
$(LN_S) @WX_TARGET_LIBRARY@ ./lib/@WX_LIBRARY_LINK2@
|
||||||
$(LN_S) @WX_TARGET_LIBRARY@ ./lib/@WX_LIBRARY_LINK3@
|
$(LN_S) @WX_TARGET_LIBRARY@ ./lib/@WX_LIBRARY_LINK3@
|
||||||
|
|
||||||
CREATE_INSTALLED_LINKS: $(libdir)/@WX_TARGET_LIBRARY@
|
CREATE_INSTALLED_LINKS: $(libdir)/@WX_LIBRARY_NAME_SHARED@
|
||||||
$(RM) $(libdir)/@WX_LIBRARY_LINK1@
|
$(RM) $(libdir)/@WX_LIBRARY_LINK1@
|
||||||
$(RM) $(libdir)/@WX_LIBRARY_LINK2@
|
$(RM) $(libdir)/@WX_LIBRARY_LINK2@
|
||||||
$(RM) $(libdir)/@WX_LIBRARY_LINK3@
|
$(RM) $(libdir)/@WX_LIBRARY_LINK3@
|
||||||
$(LN_S) @WX_TARGET_LIBRARY@ $(libdir)/@WX_LIBRARY_LINK1@
|
$(LN_S) @WX_LIBRARY_NAME_SHARED@ $(libdir)/@WX_LIBRARY_LINK1@
|
||||||
$(LN_S) @WX_TARGET_LIBRARY@ $(libdir)/@WX_LIBRARY_LINK2@
|
$(LN_S) @WX_LIBRARY_NAME_SHARED@ $(libdir)/@WX_LIBRARY_LINK2@
|
||||||
$(LN_S) @WX_TARGET_LIBRARY@ $(libdir)/@WX_LIBRARY_LINK3@
|
$(LN_S) @WX_LIBRARY_NAME_SHARED@ $(libdir)/@WX_LIBRARY_LINK3@
|
||||||
|
|
||||||
$(OBJECTS): $(WXDIR)/include/wx/defs.h $(WXDIR)/include/wx/object.h $(WXDIR)/include/wx/setup.h
|
$(OBJECTS): $(WXDIR)/include/wx/defs.h $(WXDIR)/include/wx/object.h $(WXDIR)/include/wx/setup.h
|
||||||
|
|
||||||
@@ -1932,7 +2066,7 @@ write_message:
|
|||||||
@echo " Read the wxWindows Licence on licencing conditions."
|
@echo " Read the wxWindows Licence on licencing conditions."
|
||||||
@echo " "
|
@echo " "
|
||||||
|
|
||||||
install: preinstall @WX_CREATE_INSTALLED_LINKS@ write_message
|
install: preinstall @WX_ALL_INSTALLED@ write_message
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
@echo " "
|
@echo " "
|
||||||
@@ -2198,6 +2332,10 @@ SAMPLES_DIST:
|
|||||||
cp $(SAMPDIR)/minimal/Makefile.in $(DISTDIR)/samples/minimal
|
cp $(SAMPDIR)/minimal/Makefile.in $(DISTDIR)/samples/minimal
|
||||||
cp $(SAMPDIR)/minimal/*.cpp $(DISTDIR)/samples/minimal
|
cp $(SAMPDIR)/minimal/*.cpp $(DISTDIR)/samples/minimal
|
||||||
cp $(SAMPDIR)/minimal/*.xpm $(DISTDIR)/samples/minimal
|
cp $(SAMPDIR)/minimal/*.xpm $(DISTDIR)/samples/minimal
|
||||||
|
mkdir $(DISTDIR)/samples/newgrid
|
||||||
|
cp $(SAMPDIR)/newgrid/Makefile.in $(DISTDIR)/samples/newgrid
|
||||||
|
cp $(SAMPDIR)/newgrid/*.cpp $(DISTDIR)/samples/newgrid
|
||||||
|
cp $(SAMPDIR)/newgrid/*.h $(DISTDIR)/samples/newgrid
|
||||||
mkdir $(DISTDIR)/samples/notebook
|
mkdir $(DISTDIR)/samples/notebook
|
||||||
cp $(SAMPDIR)/notebook/Makefile.in $(DISTDIR)/samples/notebook
|
cp $(SAMPDIR)/notebook/Makefile.in $(DISTDIR)/samples/notebook
|
||||||
cp $(SAMPDIR)/notebook/*.cpp $(DISTDIR)/samples/notebook
|
cp $(SAMPDIR)/notebook/*.cpp $(DISTDIR)/samples/notebook
|
||||||
|
603
configure.in
603
configure.in
@@ -64,8 +64,8 @@ main ()
|
|||||||
if (gtk_minor_version == 1) return FALSE;
|
if (gtk_minor_version == 1) return FALSE;
|
||||||
|
|
||||||
return !((gtk_major_version > major) ||
|
return !((gtk_major_version > major) ||
|
||||||
((gtk_major_version == major) && (gtk_minor_version > minor)) ||
|
((gtk_major_version == major) && (gtk_minor_version > minor)) ||
|
||||||
((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
|
((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
|
||||||
}
|
}
|
||||||
],, no_gtk=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
|
],, no_gtk=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
|
||||||
CFLAGS="$ac_save_CFLAGS"
|
CFLAGS="$ac_save_CFLAGS"
|
||||||
@@ -446,7 +446,7 @@ dnl WX_INTERFACE_AGE = 0
|
|||||||
|
|
||||||
WX_MAJOR_VERSION_NUMBER=2
|
WX_MAJOR_VERSION_NUMBER=2
|
||||||
WX_MINOR_VERSION_NUMBER=1
|
WX_MINOR_VERSION_NUMBER=1
|
||||||
WX_RELEASE_NUMBER=0
|
WX_RELEASE_NUMBER=10
|
||||||
|
|
||||||
WX_INTERFACE_AGE=0
|
WX_INTERFACE_AGE=0
|
||||||
WX_BINARY_AGE=0
|
WX_BINARY_AGE=0
|
||||||
@@ -723,6 +723,7 @@ if test $DEBUG_CONFIGURE = 1; then
|
|||||||
DEFAULT_wxUSE_COMBOBOX=no
|
DEFAULT_wxUSE_COMBOBOX=no
|
||||||
DEFAULT_wxUSE_GAUGE=no
|
DEFAULT_wxUSE_GAUGE=no
|
||||||
DEFAULT_wxUSE_GRID=no
|
DEFAULT_wxUSE_GRID=no
|
||||||
|
DEFAULT_wxUSE_NEW_GRID=no
|
||||||
DEFAULT_wxUSE_IMAGLIST=no
|
DEFAULT_wxUSE_IMAGLIST=no
|
||||||
DEFAULT_wxUSE_LISTBOX=no
|
DEFAULT_wxUSE_LISTBOX=no
|
||||||
DEFAULT_wxUSE_LISTCTRL=no
|
DEFAULT_wxUSE_LISTCTRL=no
|
||||||
@@ -744,7 +745,7 @@ if test $DEBUG_CONFIGURE = 1; then
|
|||||||
|
|
||||||
DEFAULT_wxUSE_UNICODE=no
|
DEFAULT_wxUSE_UNICODE=no
|
||||||
DEFAULT_wxUSE_WCSRTOMBS=no
|
DEFAULT_wxUSE_WCSRTOMBS=no
|
||||||
|
|
||||||
DEFAULT_wxUSE_GIF=no
|
DEFAULT_wxUSE_GIF=no
|
||||||
DEFAULT_wxUSE_PCX=no
|
DEFAULT_wxUSE_PCX=no
|
||||||
DEFAULT_wxUSE_PNM=no
|
DEFAULT_wxUSE_PNM=no
|
||||||
@@ -773,7 +774,7 @@ else
|
|||||||
DEFAULT_wxUSE_ZLIB=yes
|
DEFAULT_wxUSE_ZLIB=yes
|
||||||
DEFAULT_wxUSE_LIBPNG=yes
|
DEFAULT_wxUSE_LIBPNG=yes
|
||||||
DEFAULT_wxUSE_LIBJPEG=yes
|
DEFAULT_wxUSE_LIBJPEG=yes
|
||||||
DEFAULT_wxUSE_ODBC=no
|
DEFAULT_wxUSE_ODBC=yes
|
||||||
|
|
||||||
DEFAULT_wxUSE_STD_IOSTREAM=no
|
DEFAULT_wxUSE_STD_IOSTREAM=no
|
||||||
DEFAULT_wxUSE_FILE=yes
|
DEFAULT_wxUSE_FILE=yes
|
||||||
@@ -834,6 +835,7 @@ else
|
|||||||
DEFAULT_wxUSE_COMBOBOX=yes
|
DEFAULT_wxUSE_COMBOBOX=yes
|
||||||
DEFAULT_wxUSE_GAUGE=yes
|
DEFAULT_wxUSE_GAUGE=yes
|
||||||
DEFAULT_wxUSE_GRID=yes
|
DEFAULT_wxUSE_GRID=yes
|
||||||
|
DEFAULT_wxUSE_NEW_GRID=yes
|
||||||
DEFAULT_wxUSE_IMAGLIST=yes
|
DEFAULT_wxUSE_IMAGLIST=yes
|
||||||
DEFAULT_wxUSE_LISTBOX=yes
|
DEFAULT_wxUSE_LISTBOX=yes
|
||||||
DEFAULT_wxUSE_LISTCTRL=yes
|
DEFAULT_wxUSE_LISTCTRL=yes
|
||||||
@@ -855,7 +857,7 @@ else
|
|||||||
|
|
||||||
DEFAULT_wxUSE_UNICODE=no
|
DEFAULT_wxUSE_UNICODE=no
|
||||||
DEFAULT_wxUSE_WCSRTOMBS=no
|
DEFAULT_wxUSE_WCSRTOMBS=no
|
||||||
|
|
||||||
DEFAULT_wxUSE_GIF=yes
|
DEFAULT_wxUSE_GIF=yes
|
||||||
DEFAULT_wxUSE_PCX=yes
|
DEFAULT_wxUSE_PCX=yes
|
||||||
DEFAULT_wxUSE_PNM=yes
|
DEFAULT_wxUSE_PNM=yes
|
||||||
@@ -880,6 +882,86 @@ for toolkit in `echo $ALL_TOOLKITS`; do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
dnl ---------------------------------------------------------------------------
|
||||||
|
dnl --disable-gui will build only non-GUI part of wxWindows: check for this
|
||||||
|
dnl first to disable many other switches if it's given
|
||||||
|
dnl
|
||||||
|
dnl NB: this is still in testing stage, don't use if you don't know what you're
|
||||||
|
dnl doing
|
||||||
|
dnl ---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
WX_ARG_ENABLE(gui, [ --enable-gui use GUI classes], wxUSE_GUI)
|
||||||
|
|
||||||
|
dnl disable everything GUI related then
|
||||||
|
if test "$wxUSE_GUI" = "no"; then
|
||||||
|
DEFAULT_wxUSE_ZLIB=no
|
||||||
|
DEFAULT_wxUSE_LIBPNG=no
|
||||||
|
DEFAULT_wxUSE_LIBJPEG=no
|
||||||
|
DEFAULT_wxUSE_SOCKETS=no
|
||||||
|
DEFAULT_wxUSE_JOYSTICK=no
|
||||||
|
DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
|
||||||
|
DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
|
||||||
|
DEFAULT_wxUSE_POSTSCRIPT=no
|
||||||
|
DEFAULT_wxUSE_X_RESOURCES=no
|
||||||
|
DEFAULT_wxUSE_CLIPBOARD=no
|
||||||
|
DEFAULT_wxUSE_TOOLTIPS=no
|
||||||
|
DEFAULT_wxUSE_DRAG_AND_DROP=no
|
||||||
|
DEFAULT_wxUSE_SPLINES=no
|
||||||
|
DEFAULT_wxUSE_MDI_ARCHITECTURE=no
|
||||||
|
DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
|
||||||
|
DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
|
||||||
|
DEFAULT_wxUSE_PROLOGIO=no
|
||||||
|
DEFAULT_wxUSE_RESOURCES=no
|
||||||
|
DEFAULT_wxUSE_CONSTRAINTS=no
|
||||||
|
DEFAULT_wxUSE_IPC=no
|
||||||
|
DEFAULT_wxUSE_HELP=no
|
||||||
|
DEFAULT_wxUSE_WXTREE=no
|
||||||
|
DEFAULT_wxUSE_METAFILE=no
|
||||||
|
DEFAULT_wxUSE_COMMONDLGS=no
|
||||||
|
DEFAULT_wxUSE_DIRDLG=no
|
||||||
|
DEFAULT_wxUSE_TEXTDLG=no
|
||||||
|
DEFAULT_wxUSE_STARTUP_TIPS=no
|
||||||
|
DEFAULT_wxUSE_PROGRESSDLG=no
|
||||||
|
DEFAULT_wxUSE_MINIFRAME=no
|
||||||
|
DEFAULT_wxUSE_HTML=no
|
||||||
|
DEFAULT_wxUSE_FS_INET=no
|
||||||
|
DEFAULT_wxUSE_FS_ZIP=no
|
||||||
|
DEFAULT_wxUSE_BUSYINFO=no
|
||||||
|
DEFAULT_wxUSE_ZIPSTREAM=no
|
||||||
|
DEFAULT_wxUSE_VALIDATORS=yes
|
||||||
|
DEFAULT_wxUSE_ACCEL=no
|
||||||
|
DEFAULT_wxUSE_CARET=no
|
||||||
|
DEFAULT_wxUSE_BMPBUTTON=no
|
||||||
|
DEFAULT_wxUSE_CHECKBOX=no
|
||||||
|
DEFAULT_wxUSE_CHECKLST=no
|
||||||
|
DEFAULT_wxUSE_CHOICE=yes
|
||||||
|
DEFAULT_wxUSE_COMBOBOX=no
|
||||||
|
DEFAULT_wxUSE_GAUGE=no
|
||||||
|
DEFAULT_wxUSE_GRID=no
|
||||||
|
DEFAULT_wxUSE_NEW_GRID=no
|
||||||
|
DEFAULT_wxUSE_IMAGLIST=no
|
||||||
|
DEFAULT_wxUSE_LISTBOX=no
|
||||||
|
DEFAULT_wxUSE_LISTCTRL=no
|
||||||
|
DEFAULT_wxUSE_NOTEBOOK=no
|
||||||
|
DEFAULT_wxUSE_RADIOBOX=no
|
||||||
|
DEFAULT_wxUSE_RADIOBTN=no
|
||||||
|
DEFAULT_wxUSE_SASH=no
|
||||||
|
DEFAULT_wxUSE_SCROLLBAR=no
|
||||||
|
DEFAULT_wxUSE_SLIDER=no
|
||||||
|
DEFAULT_wxUSE_SPINBTN=no
|
||||||
|
DEFAULT_wxUSE_SPLITTER=no
|
||||||
|
DEFAULT_wxUSE_STATBMP=no
|
||||||
|
DEFAULT_wxUSE_STATBOX=no
|
||||||
|
DEFAULT_wxUSE_STATLINE=no
|
||||||
|
DEFAULT_wxUSE_STATUSBAR=yes
|
||||||
|
DEFAULT_wxUSE_TABDIALOG=no
|
||||||
|
DEFAULT_wxUSE_TOOLBAR=no
|
||||||
|
DEFAULT_wxUSE_TREECTRL=no
|
||||||
|
DEFAULT_wxUSE_GIF=no
|
||||||
|
DEFAULT_wxUSE_PCX=no
|
||||||
|
DEFAULT_wxUSE_PNM=no
|
||||||
|
fi
|
||||||
|
|
||||||
AC_ARG_WITH(gtk, [ --with-gtk use GTK+], [wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1])
|
AC_ARG_WITH(gtk, [ --with-gtk use GTK+], [wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1])
|
||||||
AC_ARG_WITH(motif, [ --with-motif use Motif/Lesstif], [wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1])
|
AC_ARG_WITH(motif, [ --with-motif use Motif/Lesstif], [wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1])
|
||||||
AC_ARG_WITH(wine, [ --with-wine use WINE], [wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1])
|
AC_ARG_WITH(wine, [ --with-wine use WINE], [wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1])
|
||||||
@@ -929,15 +1011,6 @@ WX_ARG_ENABLE(no_exceptions, [ --enable-no_exceptions create code without exce
|
|||||||
WX_ARG_ENABLE(permissive, [ --enable-permissive compile code disregarding strict ANSI], wxUSE_PERMISSIVE)
|
WX_ARG_ENABLE(permissive, [ --enable-permissive compile code disregarding strict ANSI], wxUSE_PERMISSIVE)
|
||||||
WX_ARG_ENABLE(no_deps, [ --enable-no_deps create code without dependency information], wxUSE_NO_DEPS)
|
WX_ARG_ENABLE(no_deps, [ --enable-no_deps create code without dependency information], wxUSE_NO_DEPS)
|
||||||
|
|
||||||
dnl ---------------------------------------------------------------------------
|
|
||||||
dnl --disable-gui will build only non-GUI part of wxWindows
|
|
||||||
dnl
|
|
||||||
dnl NB: this is still in testing stage, don't use if you don't know what you're
|
|
||||||
dnl doing
|
|
||||||
dnl ---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
WX_ARG_ENABLE(gui, [ --enable-gui use GUI classes], wxUSE_GUI)
|
|
||||||
|
|
||||||
dnl ---------------------------------------------------------------------------
|
dnl ---------------------------------------------------------------------------
|
||||||
dnl (small) optional non GUI classes
|
dnl (small) optional non GUI classes
|
||||||
dnl ---------------------------------------------------------------------------
|
dnl ---------------------------------------------------------------------------
|
||||||
@@ -1029,6 +1102,7 @@ if test "$wxUSE_CONTROLS" = "yes"; then
|
|||||||
DEFAULT_wxUSE_CHOICE=yes
|
DEFAULT_wxUSE_CHOICE=yes
|
||||||
DEFAULT_wxUSE_GAUGE=yes
|
DEFAULT_wxUSE_GAUGE=yes
|
||||||
DEFAULT_wxUSE_GRID=yes
|
DEFAULT_wxUSE_GRID=yes
|
||||||
|
DEFAULT_wxUSE_NEW_GRID=yes
|
||||||
DEFAULT_wxUSE_IMAGLIST=yes
|
DEFAULT_wxUSE_IMAGLIST=yes
|
||||||
DEFAULT_wxUSE_LISTBOX=yes
|
DEFAULT_wxUSE_LISTBOX=yes
|
||||||
DEFAULT_wxUSE_LISTCTRL=yes
|
DEFAULT_wxUSE_LISTCTRL=yes
|
||||||
@@ -1058,6 +1132,7 @@ elif test "$wxUSE_CONTROLS" = "no"; then
|
|||||||
DEFAULT_wxUSE_CHOICE=no
|
DEFAULT_wxUSE_CHOICE=no
|
||||||
DEFAULT_wxUSE_GAUGE=no
|
DEFAULT_wxUSE_GAUGE=no
|
||||||
DEFAULT_wxUSE_GRID=no
|
DEFAULT_wxUSE_GRID=no
|
||||||
|
DEFAULT_wxUSE_NEW_GRID=no
|
||||||
DEFAULT_wxUSE_IMAGLIST=no
|
DEFAULT_wxUSE_IMAGLIST=no
|
||||||
DEFAULT_wxUSE_LISTBOX=no
|
DEFAULT_wxUSE_LISTBOX=no
|
||||||
DEFAULT_wxUSE_LISTCTRL=no
|
DEFAULT_wxUSE_LISTCTRL=no
|
||||||
@@ -1088,6 +1163,7 @@ WX_ARG_ENABLE(choice, [ --enable-choice use wxChoice class], wxUSE
|
|||||||
WX_ARG_ENABLE(combobox, [ --enable-combobox use wxComboBox classes], wxUSE_COMBOBOX)
|
WX_ARG_ENABLE(combobox, [ --enable-combobox use wxComboBox classes], wxUSE_COMBOBOX)
|
||||||
WX_ARG_ENABLE(gauge, [ --enable-gauge use wxGauge class], wxUSE_GAUGE)
|
WX_ARG_ENABLE(gauge, [ --enable-gauge use wxGauge class], wxUSE_GAUGE)
|
||||||
WX_ARG_ENABLE(grid, [ --enable-grid use wxGrid class], wxUSE_GRID)
|
WX_ARG_ENABLE(grid, [ --enable-grid use wxGrid class], wxUSE_GRID)
|
||||||
|
WX_ARG_ENABLE(newgrid, [ --enable-newgrid use new wxGrid class], wxUSE_NEW_GRID)
|
||||||
WX_ARG_ENABLE(imaglist, [ --enable-imaglist use wxImageList class], wxUSE_IMAGLIST)
|
WX_ARG_ENABLE(imaglist, [ --enable-imaglist use wxImageList class], wxUSE_IMAGLIST)
|
||||||
WX_ARG_ENABLE(listbox, [ --enable-listbox use wxListBox class], wxUSE_LISTBOX)
|
WX_ARG_ENABLE(listbox, [ --enable-listbox use wxListBox class], wxUSE_LISTBOX)
|
||||||
WX_ARG_ENABLE(listctrl, [ --enable-listctrl use wxListCtrl class], wxUSE_LISTCTRL)
|
WX_ARG_ENABLE(listctrl, [ --enable-listctrl use wxListCtrl class], wxUSE_LISTCTRL)
|
||||||
@@ -1139,6 +1215,8 @@ dnl we have a default one
|
|||||||
|
|
||||||
AC_MSG_CHECKING(for toolkit)
|
AC_MSG_CHECKING(for toolkit)
|
||||||
|
|
||||||
|
if test "$wxUSE_GUI" = "yes"; then
|
||||||
|
|
||||||
if test "$TOOLKIT_GIVEN" = 1; then
|
if test "$TOOLKIT_GIVEN" = 1; then
|
||||||
dnl convert "yes" to 1 and "no" to 0
|
dnl convert "yes" to 1 and "no" to 0
|
||||||
for toolkit in `echo $ALL_TOOLKITS`; do
|
for toolkit in `echo $ALL_TOOLKITS`; do
|
||||||
@@ -1187,6 +1265,11 @@ for toolkit in `echo $ALL_TOOLKITS`; do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
dnl from "if wxUSE_GUI"
|
||||||
|
else
|
||||||
|
AC_MSG_RESULT(base only)
|
||||||
|
fi
|
||||||
|
|
||||||
dnl ---------------------------------------------------------------------------
|
dnl ---------------------------------------------------------------------------
|
||||||
dnl Checks for programs
|
dnl Checks for programs
|
||||||
dnl ---------------------------------------------------------------------------
|
dnl ---------------------------------------------------------------------------
|
||||||
@@ -1390,6 +1473,8 @@ dnl ----------------------------------------------------------------
|
|||||||
dnl search for toolkit (widget sets)
|
dnl search for toolkit (widget sets)
|
||||||
dnl ----------------------------------------------------------------
|
dnl ----------------------------------------------------------------
|
||||||
|
|
||||||
|
if test "$wxUSE_GUI" = "yes"; then
|
||||||
|
|
||||||
TOOLKIT=
|
TOOLKIT=
|
||||||
TOOLKIT_INCLUDE=
|
TOOLKIT_INCLUDE=
|
||||||
|
|
||||||
@@ -1409,14 +1494,14 @@ PROGRAM_EXT=
|
|||||||
|
|
||||||
if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
|
if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
|
||||||
if test "$cross_compiling" = "yes" ; then
|
if test "$cross_compiling" = "yes" ; then
|
||||||
AC_MSG_WARN(Cross compiling --- skipping windows.h check)
|
AC_MSG_WARN(Cross compiling --- skipping windows.h check)
|
||||||
else
|
else
|
||||||
AC_MSG_CHECKING(for Windows headers)
|
AC_MSG_CHECKING(for Windows headers)
|
||||||
WX_PATH_FIND_INCLUDES($SEARCH_INCLUDE, windows.h)
|
WX_PATH_FIND_INCLUDES($SEARCH_INCLUDE, windows.h)
|
||||||
if test "$ac_find_includes" != "" ; then
|
if test "$ac_find_includes" != "" ; then
|
||||||
AC_MSG_RESULT(found $ac_find_includes)
|
AC_MSG_RESULT(found $ac_find_includes)
|
||||||
TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
|
TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
|
||||||
else
|
else
|
||||||
AC_MSG_RESULT(no)
|
AC_MSG_RESULT(no)
|
||||||
AC_MSG_ERROR(please set CFLAGS to contain the location of windows.h)
|
AC_MSG_ERROR(please set CFLAGS to contain the location of windows.h)
|
||||||
fi
|
fi
|
||||||
@@ -1429,10 +1514,10 @@ if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
|
|||||||
|
|
||||||
TOOLKIT=MSW
|
TOOLKIT=MSW
|
||||||
|
|
||||||
GUIOBJS=MSW_GUIOBJS
|
GUIOBJS="\$(MSW_GUIOBJS)"
|
||||||
GUIHEADERS=MSW_HEADERS
|
GUIHEADERS="\$(MSW_HEADERS)"
|
||||||
COMMONOBJS=MSW_COMMONOBJS
|
COMMONOBJS="\$(MSW_COMMONOBJS)"
|
||||||
GENERICOBJS=MSW_GENERICOBJS
|
GENERICOBJS="\$(MSW_GENERICOBJS)"
|
||||||
UNIXOBJS=
|
UNIXOBJS=
|
||||||
GUIDIST=MSW_DIST
|
GUIDIST=MSW_DIST
|
||||||
PROGRAM_EXT=.exe
|
PROGRAM_EXT=.exe
|
||||||
@@ -1450,14 +1535,14 @@ if test "$wxUSE_GTK" = 1; then
|
|||||||
GUI_TK_LIBRARY="$GTK_LIBS"
|
GUI_TK_LIBRARY="$GTK_LIBS"
|
||||||
TOOLKIT=GTK
|
TOOLKIT=GTK
|
||||||
|
|
||||||
GUIHEADERS=GTK_HEADERS
|
GUIOBJS="\$(GTK_GUIOBJS)"
|
||||||
GUIOBJS=GTK_GUIOBJS
|
GUIHEADERS="\$(GTK_HEADERS)"
|
||||||
COMMONOBJS=GTK_COMMONOBJS
|
COMMONOBJS="\$(GTK_COMMONOBJS)"
|
||||||
GENERICOBJS=GTK_GENERICOBJS
|
GENERICOBJS="\$(GTK_GENERICOBJS)"
|
||||||
GUIDEPS=GTK_GUIDEPS
|
GUIDEPS="\$(GTK_GUIDEPS)"
|
||||||
COMMONDEPS=GTK_COMMONDEPS
|
COMMONDEPS="\$(GTK_COMMONDEPS)"
|
||||||
GENERICDEPS=GTK_GENERICDEPS
|
GENERICDEPS="\$(GTK_GENERICDEPS)"
|
||||||
UNIXOBJS=UNIXOBJS
|
UNIXOBJS="\$(UNIX_OBJS)"
|
||||||
GUIDIST=GTK_DIST
|
GUIDIST=GTK_DIST
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -1501,14 +1586,14 @@ if test "$wxUSE_WINE" = 1; then
|
|||||||
WXWINE=1
|
WXWINE=1
|
||||||
TOOLKIT=MSW
|
TOOLKIT=MSW
|
||||||
|
|
||||||
GUIHEADERS=MSW_HEADERS
|
GUIHEADERS="\$(MSW_HEADERS)"
|
||||||
GUIOBJS=MSW_GUIOBJS
|
GUIOBJS="\$(MSW_GUIOBJS)"
|
||||||
COMMONOBJS=MSW_COMMONOBJS
|
COMMONOBJS="\$(MSW_COMMONOBJS)"
|
||||||
GENERICOBJS=MSW_GENERICOBJS
|
GENERICOBJS="\$(MSW_GENERICOBJS)"
|
||||||
GUIDEPS=MSW_GUIDEPS
|
GUIDEPS="\$(MSW_GUIDEPS)"
|
||||||
COMMONDEPS=MSW_COMMONDEPS
|
COMMONDEPS="\$(MSW_COMMONDEPS)"
|
||||||
GENERICDEPS=MSW_GENERICDEPS
|
GENERICDEPS="\$(MSW_GENERICDEPS)"
|
||||||
UNIXOBJS=UNIXOBJS
|
UNIXOBJS="\$(UNIX_OBJS)"
|
||||||
GUIDIST=MSW_DIST
|
GUIDIST=MSW_DIST
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -1576,24 +1661,17 @@ if test "$wxUSE_MOTIF" = 1; then
|
|||||||
GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
|
GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
|
||||||
TOOLKIT=MOTIF
|
TOOLKIT=MOTIF
|
||||||
|
|
||||||
GUIHEADERS=MOTIF_HEADERS
|
GUIHEADERS="\$(MOTIF_HEADERS)"
|
||||||
GUIOBJS=MOTIF_GUIOBJS
|
GUIOBJS="\$(MOTIF_GUIOBJS)"
|
||||||
COMMONOBJS=MOTIF_COMMONOBJS
|
COMMONOBJS="\$(MOTIF_COMMONOBJS)"
|
||||||
GENERICOBJS=MOTIF_GENERICOBJS
|
GENERICOBJS="\$(MOTIF_GENERICOBJS)"
|
||||||
GUIDEPS=MOTIF_GUIDEPS
|
GUIDEPS="\$(MOTIF_GUIDEPS)"
|
||||||
COMMONDEPS=MOTIF_COMMONDEPS
|
COMMONDEPS="\$(MOTIF_COMMONDEPS)"
|
||||||
GENERICDEPS=MOTIF_GENERICDEPS
|
GENERICDEPS="\$(MOTIF_GENERICDEPS)"
|
||||||
UNIXOBJS=UNIXOBJS
|
UNIXOBJS="\$(UNIX_OBJS)"
|
||||||
GUIDIST=MOTIF_DIST
|
GUIDIST=MOTIF_DIST
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dnl someone explicitly added -ldl to the list of libraries for these targets -
|
|
||||||
dnl I don't know why has this been done, but let's respect this - with the
|
|
||||||
dnl exception of the systems which don't have libdl at all (VZ)
|
|
||||||
if test "$wxUSE_GTK" = 1 || test "$wxUSE_MOTIF" = 1 || test "$wxUSE_WINE" = 1; then
|
|
||||||
AC_CHECK_LIB(dl, main, GUI_TK_LIBRARY="$GUI_TK_LIBRARY -ldl")
|
|
||||||
fi
|
|
||||||
|
|
||||||
dnl the name of the directory where the files for this toolkit live
|
dnl the name of the directory where the files for this toolkit live
|
||||||
TOOLKIT_DIR=`echo ${TOOLKIT} | tr "A-Z" "a-z"`
|
TOOLKIT_DIR=`echo ${TOOLKIT} | tr "A-Z" "a-z"`
|
||||||
|
|
||||||
@@ -1603,112 +1681,134 @@ TOOLKIT_DEF="-D__WX${TOOLKIT}__"
|
|||||||
dnl the name of the (libtool) library
|
dnl the name of the (libtool) library
|
||||||
WX_LIBRARY="wx_${TOOLKIT_DIR}"
|
WX_LIBRARY="wx_${TOOLKIT_DIR}"
|
||||||
|
|
||||||
|
dnl the sources, their dependenices and the headers
|
||||||
|
ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS) \$(JPEGOBJS) \$(PNGOBJS) \$(ZLIBOBJS)"
|
||||||
|
ALL_DEPFILES="\$(GUIDEPS) \$(COMMONDEPS) \$(GENERICDEPS) \$(UNIXDEPS) \$(HTMLDEPS)"
|
||||||
|
ALL_HEADERS="\$(GUIHEADERS) \$(HTML_HEADERS) \$(UNIX_HEADERS) \$(PROTOCOL_HEADERS) \$(GENERIC_HEADERS) \$(WX_HEADERS)"
|
||||||
|
else
|
||||||
|
dnl leave all TOOLKIT_XXX vars empty
|
||||||
|
|
||||||
|
dnl the sources, their dependenices and the headers
|
||||||
|
ALL_OBJECTS="\$(BASE_OBJS)"
|
||||||
|
ALL_DEPFILES="\${BASE_DEPS}"
|
||||||
|
ALL_HEADERS="\${BASE_HEADERS}"
|
||||||
|
|
||||||
|
dnl building wxBase only
|
||||||
|
WX_LIBRARY="wxbase"
|
||||||
|
fi
|
||||||
|
|
||||||
dnl the name of the (libtool) library
|
dnl the name of the (libtool) library
|
||||||
WX_LIBRARY_NAME="libwx_${TOOLKIT_DIR}.la"
|
WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
|
||||||
|
|
||||||
dnl the name of the static library
|
dnl the name of the static library
|
||||||
WX_LIBRARY_NAME_STATIC="libwx_${TOOLKIT_DIR}.a"
|
WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
|
||||||
|
|
||||||
dnl the name of the shared library
|
dnl the name of the shared library
|
||||||
WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_DIR}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
|
WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
|
||||||
|
|
||||||
dnl the name of the links to the shared library
|
dnl the name of the links to the shared library
|
||||||
WX_LIBRARY_LINK1="libwx_${TOOLKIT_DIR}-${WX_RELEASE}.so.${WX_CURRENT}"
|
WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
|
||||||
WX_LIBRARY_LINK2="libwx_${TOOLKIT_DIR}-${WX_RELEASE}.so"
|
WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
|
||||||
WX_LIBRARY_LINK3="libwx_${TOOLKIT_DIR}.so"
|
WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
|
||||||
|
|
||||||
dnl shared library settings
|
dnl shared library settings
|
||||||
SHARED_LD=
|
SHARED_LD=
|
||||||
PIC_FLAG=
|
PIC_FLAG=
|
||||||
WX_CREATE_LINKS=
|
WX_ALL=
|
||||||
|
WX_ALL_INSTALLED=
|
||||||
|
|
||||||
if test "$wxUSE_SHARED" = "yes"; then
|
if test "$wxUSE_SHARED" = "yes"; then
|
||||||
dnl set target to shared
|
dnl set target to shared
|
||||||
WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
|
WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
|
||||||
|
|
||||||
case "${host}" in
|
case "${host}" in
|
||||||
*-hp-hpux* )
|
*-hp-hpux* )
|
||||||
WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_DIR}.sl"
|
WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_DIR}.sl"
|
||||||
SHARED_LD="${CXX} -b -o"
|
SHARED_LD="${CXX} -b -o"
|
||||||
PIC_FLAG="+Z"
|
PIC_FLAG="+Z"
|
||||||
;;
|
WX_ALL=${WX_LIBRARY_NAME_SHARED}
|
||||||
*-*-linux* )
|
;;
|
||||||
SHARED_LD="${CC} -shared -o"
|
*-*-linux* )
|
||||||
PIC_FLAG="-fPIC"
|
SHARED_LD="${CC} -shared -o"
|
||||||
WX_CREATE_INSTALLED_LINKS="CREATE_INSTALLED_LINKS"
|
PIC_FLAG="-fPIC"
|
||||||
WX_CREATE_LINKS="CREATE_LINKS"
|
WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
|
||||||
;;
|
WX_ALL="CREATE_LINKS"
|
||||||
*-*-irix5* | *-*-irix6* )
|
;;
|
||||||
if test "$GCC" = yes ; then
|
*-*-irix5* | *-*-irix6* )
|
||||||
SHARED_LD="${CC} -shared -o"
|
if test "$GCC" = yes ; then
|
||||||
PIC_FLAG="-fPIC"
|
SHARED_LD="${CC} -shared -o"
|
||||||
else
|
PIC_FLAG="-fPIC"
|
||||||
SHARED_LD="${CXX} -shared -o"
|
else
|
||||||
fi
|
SHARED_LD="${CXX} -shared -o"
|
||||||
WX_CREATE_INSTALLED_LINKS="CREATE_INSTALLED_LINKS"
|
fi
|
||||||
WX_CREATE_LINKS="CREATE_LINKS"
|
WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
|
||||||
;;
|
WX_ALL="CREATE_LINKS"
|
||||||
*-*-solaris2* )
|
;;
|
||||||
if test "$GCC" = yes ; then
|
*-*-solaris2* )
|
||||||
SHARED_LD="${CC} -shared -o"
|
if test "$GCC" = yes ; then
|
||||||
PIC_FLAG="-fPIC"
|
SHARED_LD="${CC} -shared -o"
|
||||||
else
|
PIC_FLAG="-fPIC"
|
||||||
SHARED_LD="${CXX} -G -o"
|
else
|
||||||
PIC_FLAG="PIC"
|
SHARED_LD="${CXX} -G -o"
|
||||||
fi
|
PIC_FLAG="PIC"
|
||||||
WX_CREATE_INSTALLED_LINKS="CREATE_INSTALLED_LINKS"
|
fi
|
||||||
WX_CREATE_LINKS="CREATE_LINKS"
|
WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
|
||||||
;;
|
WX_ALL="CREATE_LINKS"
|
||||||
*-*-sunos4* )
|
;;
|
||||||
SHARED_LD="${CC} -shared -o"
|
*-*-sunos4* )
|
||||||
PIC_FLAG="-fPIC"
|
SHARED_LD="${CC} -shared -o"
|
||||||
WX_CREATE_INSTALLED_LINKS="CREATE_INSTALLED_LINKS"
|
PIC_FLAG="-fPIC"
|
||||||
WX_CREATE_LINKS="CREATE_LINKS"
|
WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
|
||||||
;;
|
WX_ALL="CREATE_LINKS"
|
||||||
*-*-freebsd* | *-*-netbsd*)
|
;;
|
||||||
SHARED_LD="${CC} -shared -o"
|
*-*-freebsd* | *-*-netbsd*)
|
||||||
PIC_FLAG="-fPIC"
|
SHARED_LD="${CC} -shared -o"
|
||||||
WX_CREATE_INSTALLED_LINKS="CREATE_INSTALLED_LINKS"
|
PIC_FLAG="-fPIC"
|
||||||
WX_CREATE_LINKS="CREATE_LINKS"
|
WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
|
||||||
;;
|
WX_ALL="CREATE_LINKS"
|
||||||
*-*-osf* )
|
;;
|
||||||
SHARED_LD="${CXX} -shared -o"
|
*-*-osf* )
|
||||||
PIC_FLAG="-fPIC"
|
SHARED_LD="${CXX} -shared -o"
|
||||||
WX_CREATE_INSTALLED_LINKS="CREATE_INSTALLED_LINKS"
|
PIC_FLAG="-fPIC"
|
||||||
WX_CREATE_LINKS="CREATE_LINKS"
|
WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
|
||||||
;;
|
WX_ALL="CREATE_LINKS"
|
||||||
*-*-dgux5* )
|
;;
|
||||||
SHARED_LD="${CXX} -shared -o"
|
*-*-dgux5* )
|
||||||
PIC_FLAG="-fPIC"
|
SHARED_LD="${CXX} -shared -o"
|
||||||
WX_CREATE_INSTALLED_LINKS="CREATE_INSTALLED_LINKS"
|
PIC_FLAG="-fPIC"
|
||||||
WX_CREATE_LINKS="CREATE_LINKS"
|
WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
|
||||||
;;
|
WX_ALL="CREATE_LINKS"
|
||||||
*-*-sysv5* )
|
;;
|
||||||
SHARED_LD="${CC} -shared -o"
|
*-*-sysv5* )
|
||||||
PIC_FLAG="-fPIC"
|
SHARED_LD="${CC} -shared -o"
|
||||||
WX_CREATE_INSTALLED_LINKS="CREATE_INSTALLED_LINKS"
|
PIC_FLAG="-fPIC"
|
||||||
WX_CREATE_LINKS="CREATE_LINKS"
|
WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
|
||||||
;;
|
WX_ALL="CREATE_LINKS"
|
||||||
*-*-aix* )
|
;;
|
||||||
SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
|
*-*-aix* )
|
||||||
;;
|
SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
|
||||||
*-*-cygwin32* )
|
WX_ALL=${WX_LIBRARY_NAME_SHARED}
|
||||||
dnl only static for now
|
;;
|
||||||
WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
|
*-*-cygwin32* )
|
||||||
;;
|
dnl only static for now
|
||||||
*-*-mingw32* )
|
WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
|
||||||
dnl only static for now
|
WX_ALL="${WX_LIBRARY_NAME_STATIC}"
|
||||||
WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
|
;;
|
||||||
;;
|
*-*-mingw32* )
|
||||||
*-pc-os2_emx )
|
dnl only static for now
|
||||||
;;
|
WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
|
||||||
*)
|
WX_ALL="${WX_LIBRARY_NAME_STATIC}"
|
||||||
AC_MSG_ERROR(unknown system type ${host}.)
|
;;
|
||||||
esac
|
*-pc-os2_emx )
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
AC_MSG_ERROR(unknown system type ${host}.)
|
||||||
|
esac
|
||||||
|
|
||||||
else
|
else
|
||||||
dnl set target to static
|
dnl set target to static
|
||||||
WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
|
WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
|
||||||
|
WX_ALL="${WX_LIBRARY_NAME_STATIC}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dnl ------------------------------------------------------------------------
|
dnl ------------------------------------------------------------------------
|
||||||
@@ -1725,8 +1825,11 @@ dnl defines HAVE_WCSTR_H
|
|||||||
AC_CHECK_HEADERS(wcstr.h)
|
AC_CHECK_HEADERS(wcstr.h)
|
||||||
dnl defines HAVE_FNMATCH_H
|
dnl defines HAVE_FNMATCH_H
|
||||||
AC_CHECK_HEADERS(fnmatch.h)
|
AC_CHECK_HEADERS(fnmatch.h)
|
||||||
dnl defines HAVE_X11_XKBLIB_H
|
|
||||||
AC_CHECK_HEADERS(X11/XKBlib.h)
|
if test "$wxUSE_GUI" = "yes"; then
|
||||||
|
dnl defines HAVE_X11_XKBLIB_H
|
||||||
|
AC_CHECK_HEADERS(X11/XKBlib.h)
|
||||||
|
fi
|
||||||
|
|
||||||
dnl ---------------------------------------------------------------------------
|
dnl ---------------------------------------------------------------------------
|
||||||
dnl Checks for typedefs
|
dnl Checks for typedefs
|
||||||
@@ -1863,6 +1966,9 @@ AC_CHECK_FUNCS(nanosleep, AC_DEFINE(HAVE_NANOSLEEP), [
|
|||||||
dnl check for uname (POSIX) and gethostname (BSD)
|
dnl check for uname (POSIX) and gethostname (BSD)
|
||||||
AC_CHECK_FUNCS(uname gethostname, break)
|
AC_CHECK_FUNCS(uname gethostname, break)
|
||||||
|
|
||||||
|
dnl check for MT-safe version of strtok
|
||||||
|
AC_CHECK_FUNCS(strtok_r)
|
||||||
|
|
||||||
dnl check for inet_addr, inet_aton, ...
|
dnl check for inet_addr, inet_aton, ...
|
||||||
AC_CHECK_FUNCS(inet_addr)
|
AC_CHECK_FUNCS(inet_addr)
|
||||||
AC_CHECK_FUNCS(inet_aton)
|
AC_CHECK_FUNCS(inet_aton)
|
||||||
@@ -2051,10 +2157,10 @@ fi
|
|||||||
DEP_INFO_FLAGS=
|
DEP_INFO_FLAGS=
|
||||||
if test "$GCC" = yes ; then
|
if test "$GCC" = yes ; then
|
||||||
if test "$wxUSE_NO_RTTI" = "yes" ; then
|
if test "$wxUSE_NO_RTTI" = "yes" ; then
|
||||||
WXDEBUG_DEFINE="$WXDEBUG_DEFINE -fno-rtti"
|
WXDEBUG_DEFINE="$WXDEBUG_DEFINE -fno-rtti"
|
||||||
fi
|
fi
|
||||||
if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
|
if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
|
||||||
WXDEBUG_DEFINE="$WXDEBUG_DEFINE -fno-exceptions"
|
WXDEBUG_DEFINE="$WXDEBUG_DEFINE -fno-exceptions"
|
||||||
fi
|
fi
|
||||||
if test "$wxUSE_PERMISSIVE" = "yes" ; then
|
if test "$wxUSE_PERMISSIVE" = "yes" ; then
|
||||||
CFLAGS="${CFLAGS} -fpermissive"
|
CFLAGS="${CFLAGS} -fpermissive"
|
||||||
@@ -2228,14 +2334,9 @@ if test "$wxUSE_LONGLONG" = "yes"; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if test "$wxUSE_SOCKETS" = "yes" ; then
|
if test "$wxUSE_SOCKETS" = "yes" ; then
|
||||||
if test "$wxUSE_THREADS" = "yes" ; then
|
AC_DEFINE(wxUSE_SOCKETS)
|
||||||
AC_DEFINE(wxUSE_SOCKETS)
|
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wxsocket"
|
||||||
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wxsocket"
|
INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
|
||||||
INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
|
|
||||||
else
|
|
||||||
AC_MSG_WARN(Socket classes require --with-threads and won't be compiled without it)
|
|
||||||
wxUSE_SOCKETS=0
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
|
if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
|
||||||
@@ -2299,22 +2400,39 @@ HAVE_DL_FUNCS=0
|
|||||||
HAVE_SHL_FUNCS=0
|
HAVE_SHL_FUNCS=0
|
||||||
if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
|
if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
|
||||||
dnl the test is a bit complicated because we check for dlopen() both with
|
dnl the test is a bit complicated because we check for dlopen() both with
|
||||||
dnl and without -ldl
|
dnl and without -ldl and we also try to find shl_load() if there is no
|
||||||
|
dnl dlopen() on this system
|
||||||
AC_CHECK_FUNCS(dlopen,
|
AC_CHECK_FUNCS(dlopen,
|
||||||
[AC_DEFINE(HAVE_DLOPEN) HAVE_DL_FUNCS=1],
|
[
|
||||||
[AC_CHECK_LIB(dl, dlopen,
|
AC_DEFINE(HAVE_DLOPEN)
|
||||||
[AC_DEFINE(HAVE_DLOPEN) HAVE_DL_FUNCS=1])])
|
HAVE_DL_FUNCS=1
|
||||||
AC_CHECK_FUNCS( shl_load,
|
],
|
||||||
[AC_DEFINE(HAVE_SHL_LOAD) HAVE_DL_FUNCS=1 HAVE_SHL_FUNCS=1])
|
[
|
||||||
|
AC_CHECK_LIB(dl, dlopen,
|
||||||
|
[
|
||||||
|
AC_DEFINE(HAVE_DLOPEN)
|
||||||
|
HAVE_DL_FUNCS=1
|
||||||
|
LIBS="$LIBS -ldl"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
AC_CHECK_FUNCS(shl_load,
|
||||||
|
[
|
||||||
|
AC_DEFINE(HAVE_SHL_LOAD)
|
||||||
|
HAVE_SHL_FUNCS=1
|
||||||
|
])
|
||||||
|
])
|
||||||
|
])
|
||||||
|
|
||||||
if test "$HAVE_DL_FUNCS" = 0; then
|
if test "$HAVE_DL_FUNCS" = 0; then
|
||||||
if test "$USE_UNIX" = 1; then
|
if test "$HAVE_SHL_FUNCS" = 0; then
|
||||||
AC_MSG_WARN("--with-dynlib and --with-odbc will be disabled due to missing shared library support")
|
if test "$USE_UNIX" = 1; then
|
||||||
wxUSE_ODBC=no
|
AC_MSG_WARN("--with-dynlib and --with-odbc will be disabled due to missing shared library support")
|
||||||
wxUSE_DYNLIB_CLASS=no
|
wxUSE_ODBC=no
|
||||||
else
|
wxUSE_DYNLIB_CLASS=no
|
||||||
AC_MSG_WARN("Cannot check dynlib requirements on non-Unix platforms. dynlib remains enabled.")
|
else
|
||||||
fi
|
AC_MSG_WARN("Cannot check dynlib requirements on non-Unix platforms. dynlib remains enabled.")
|
||||||
|
fi
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -2345,6 +2463,7 @@ dnl ----------------------------------------------------------------
|
|||||||
IODBC_C_SRC=""
|
IODBC_C_SRC=""
|
||||||
if test "$wxUSE_ODBC" = "yes" ; then
|
if test "$wxUSE_ODBC" = "yes" ; then
|
||||||
AC_DEFINE(wxUSE_ODBC)
|
AC_DEFINE(wxUSE_ODBC)
|
||||||
|
WXODBCFLAG="-D_IODBC_"
|
||||||
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
|
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -2429,13 +2548,13 @@ if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
|
|||||||
if test "$wxUSE_GTK" = 1; then
|
if test "$wxUSE_GTK" = 1; then
|
||||||
if test "$WXGTK12" != 1; then
|
if test "$WXGTK12" != 1; then
|
||||||
AC_MSG_WARN([Drag and drop is only supported under GTK+ 1.2])
|
AC_MSG_WARN([Drag and drop is only supported under GTK+ 1.2])
|
||||||
wxUSE_DRAG_AND_DROP=no
|
wxUSE_DRAG_AND_DROP=no
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "$wxUSE_MOTIF" = 1; then
|
if test "$wxUSE_MOTIF" = 1; then
|
||||||
AC_MSG_WARN([Drag and drop is not yet supported under Motif])
|
AC_MSG_WARN([Drag and drop is not yet supported under Motif])
|
||||||
wxUSE_DRAG_AND_DROP=no
|
wxUSE_DRAG_AND_DROP=no
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
|
if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
|
||||||
@@ -2491,6 +2610,11 @@ if test "$wxUSE_GRID" = "yes"; then
|
|||||||
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
|
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if test "$wxUSE_NEW_GRID" = "yes"; then
|
||||||
|
AC_DEFINE(wxUSE_NEW_GRID)
|
||||||
|
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
|
||||||
|
fi
|
||||||
|
|
||||||
if test "$wxUSE_IMAGLIST" = "yes"; then
|
if test "$wxUSE_IMAGLIST" = "yes"; then
|
||||||
AC_DEFINE(wxUSE_IMAGLIST)
|
AC_DEFINE(wxUSE_IMAGLIST)
|
||||||
fi
|
fi
|
||||||
@@ -2556,7 +2680,7 @@ if test "$wxUSE_STATLINE" = "yes"; then
|
|||||||
if test "$wxUSE_WINE" = 1 ; then
|
if test "$wxUSE_WINE" = 1 ; then
|
||||||
AC_MSG_WARN([wxStaticLine is not supported under WINE])
|
AC_MSG_WARN([wxStaticLine is not supported under WINE])
|
||||||
else
|
else
|
||||||
AC_DEFINE(wxUSE_STATLINE)
|
AC_DEFINE(wxUSE_STATLINE)
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -2672,16 +2796,13 @@ dnl ---------------------------------------------------------------------------
|
|||||||
dnl Output the makefiles and such from the results found above
|
dnl Output the makefiles and such from the results found above
|
||||||
dnl ---------------------------------------------------------------------------
|
dnl ---------------------------------------------------------------------------
|
||||||
|
|
||||||
dnl if we add wxUSE_GUI in the future, it might be handy to separate the libs
|
|
||||||
dnl into GUI and non-GUI parts
|
|
||||||
GUILIBS="$GUI_TK_LIBRARY $OPENGL_LINK $LIBPNG_LINK $ZLIB_LINK $TOOLKIT_LINK"
|
GUILIBS="$GUI_TK_LIBRARY $OPENGL_LINK $LIBPNG_LINK $ZLIB_LINK $TOOLKIT_LINK"
|
||||||
|
|
||||||
dnl all additional libraries (except wxWindows itself) we link with
|
dnl all additional libraries (except wxWindows itself) we link with
|
||||||
EXTRA_LIBS="$LIBS $POSIX4_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $GUILIBS"
|
EXTRA_LIBS="$LIBS $POSIX4_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK"
|
||||||
|
if test "$wxUSE_GUI" = "yes"; then
|
||||||
dnl all the libraries needed to link wxWindows programs (when the library is not
|
EXTRA_LIBS="$EXTRA_LIBS $GUILIBS"
|
||||||
dnl yet installed)
|
fi
|
||||||
LIBS="\${top_builddir}/src/${TOOLKIT_DIR}/${WX_LIBRARY_NAME} $EXTRA_LIBS"
|
|
||||||
|
|
||||||
dnl all the libraries needed to link wxWindows programs when using the
|
dnl all the libraries needed to link wxWindows programs when using the
|
||||||
dnl makefile system without libtool
|
dnl makefile system without libtool
|
||||||
@@ -2694,11 +2815,11 @@ dnl C/C++ compiler options used to compile wxWindows
|
|||||||
if test "$GXX" = yes ; then
|
if test "$GXX" = yes ; then
|
||||||
dnl CXXWARNINGS="-Wall -W -Wcast-qual -Werror"
|
dnl CXXWARNINGS="-Wall -W -Wcast-qual -Werror"
|
||||||
CXXWARNINGS="-Wall"
|
CXXWARNINGS="-Wall"
|
||||||
dnl there is one weird warning in docview.h:71 which prevents me from doing
|
dnl FIXME: there is one weird warning in docview.h:71 which prevents me from
|
||||||
dnl this...
|
dnl doing this... (VZ)
|
||||||
dnl CXXWARNINGS="-Wall -Werror"
|
dnl CXXWARNINGS="-Wall -Werror"
|
||||||
fi
|
fi
|
||||||
EXTRA_CFLAGS="$WXDEBUG $PROFILE $OPTIMISE $INCLUDES"
|
EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
|
||||||
|
|
||||||
CPPFLAGS="-I\${top_srcdir}/include $CPPFLAGS"
|
CPPFLAGS="-I\${top_srcdir}/include $CPPFLAGS"
|
||||||
CFLAGS="$CFLAGS $EXTRA_CFLAGS"
|
CFLAGS="$CFLAGS $EXTRA_CFLAGS"
|
||||||
@@ -2712,6 +2833,8 @@ if test "$wxUSE_GUI" = "yes"; then
|
|||||||
dnl mfc, nativdlg, oleauto, ownerdrw, proplist
|
dnl mfc, nativdlg, oleauto, ownerdrw, proplist
|
||||||
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS bombs controls dialogs drawing dynamic \
|
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS bombs controls dialogs drawing dynamic \
|
||||||
forty fractal image wxpoem"
|
forty fractal image wxpoem"
|
||||||
|
else
|
||||||
|
SAMPLES_SUBDIRS=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dnl for convenience, sort the samples in alphabetical order
|
dnl for convenience, sort the samples in alphabetical order
|
||||||
@@ -2735,8 +2858,8 @@ AC_SUBST(WX_LIBRARY_LINK3)
|
|||||||
AC_SUBST(PROGRAM_EXT)
|
AC_SUBST(PROGRAM_EXT)
|
||||||
|
|
||||||
dnl are we supposed to create the links?
|
dnl are we supposed to create the links?
|
||||||
AC_SUBST(WX_CREATE_LINKS)
|
AC_SUBST(WX_ALL)
|
||||||
AC_SUBST(WX_CREATE_INSTALLED_LINKS)
|
AC_SUBST(WX_ALL_INSTALLED)
|
||||||
|
|
||||||
AC_SUBST(SHARED_LD)
|
AC_SUBST(SHARED_LD)
|
||||||
AC_SUBST(PIC_FLAG)
|
AC_SUBST(PIC_FLAG)
|
||||||
@@ -2760,6 +2883,10 @@ AC_SUBST(GUIDEPS)
|
|||||||
AC_SUBST(COMMONDEPS)
|
AC_SUBST(COMMONDEPS)
|
||||||
AC_SUBST(GENERICDEPS)
|
AC_SUBST(GENERICDEPS)
|
||||||
AC_SUBST(UNIXOBJS)
|
AC_SUBST(UNIXOBJS)
|
||||||
|
AC_SUBST(UNIXDEPS)
|
||||||
|
AC_SUBST(ALL_OBJECTS)
|
||||||
|
AC_SUBST(ALL_DEPFILES)
|
||||||
|
AC_SUBST(ALL_HEADERS)
|
||||||
AC_SUBST(GUIDIST)
|
AC_SUBST(GUIDIST)
|
||||||
|
|
||||||
dnl additional subdirectories where we will build
|
dnl additional subdirectories where we will build
|
||||||
@@ -2797,9 +2924,9 @@ dnl (the original file name may be overriden by appending another name after a
|
|||||||
dnl colon)
|
dnl colon)
|
||||||
AC_OUTPUT([
|
AC_OUTPUT([
|
||||||
wx-config
|
wx-config
|
||||||
src/make.env
|
src/make.env
|
||||||
src/makeprog.env
|
src/makeprog.env
|
||||||
src/makelib.env
|
src/makelib.env
|
||||||
Makefile
|
Makefile
|
||||||
samples/Makefile
|
samples/Makefile
|
||||||
samples/bombs/Makefile
|
samples/bombs/Makefile
|
||||||
@@ -2807,63 +2934,67 @@ AC_OUTPUT([
|
|||||||
samples/checklst/Makefile
|
samples/checklst/Makefile
|
||||||
samples/config/Makefile
|
samples/config/Makefile
|
||||||
samples/controls/Makefile
|
samples/controls/Makefile
|
||||||
samples/dialogs/Makefile
|
samples/db/Makefile
|
||||||
samples/docview/Makefile
|
samples/dialogs/Makefile
|
||||||
samples/docvwmdi/Makefile
|
samples/docview/Makefile
|
||||||
samples/dnd/Makefile
|
samples/docvwmdi/Makefile
|
||||||
samples/drawing/Makefile
|
samples/dnd/Makefile
|
||||||
samples/dynamic/Makefile
|
samples/drawing/Makefile
|
||||||
samples/image/Makefile
|
samples/dynamic/Makefile
|
||||||
samples/internat/Makefile
|
samples/image/Makefile
|
||||||
samples/layout/Makefile
|
samples/internat/Makefile
|
||||||
samples/listctrl/Makefile
|
samples/layout/Makefile
|
||||||
samples/mdi/Makefile
|
samples/listctrl/Makefile
|
||||||
samples/minifram/Makefile
|
samples/mdi/Makefile
|
||||||
|
samples/minifram/Makefile
|
||||||
samples/minimal/Makefile
|
samples/minimal/Makefile
|
||||||
samples/notebook/Makefile
|
samples/nettest/Makefile
|
||||||
|
samples/newgrid/Makefile
|
||||||
|
samples/notebook/Makefile
|
||||||
samples/printing/Makefile
|
samples/printing/Makefile
|
||||||
samples/proplist/Makefile
|
samples/proplist/Makefile
|
||||||
samples/sashtest/Makefile
|
samples/richedit/Makefile
|
||||||
samples/scroll/Makefile
|
samples/sashtest/Makefile
|
||||||
samples/splitter/Makefile
|
samples/scroll/Makefile
|
||||||
samples/text/Makefile
|
samples/splitter/Makefile
|
||||||
samples/thread/Makefile
|
samples/text/Makefile
|
||||||
samples/toolbar/Makefile
|
samples/thread/Makefile
|
||||||
samples/treectrl/Makefile
|
samples/toolbar/Makefile
|
||||||
samples/typetest/Makefile
|
samples/treectrl/Makefile
|
||||||
samples/validate/Makefile
|
samples/typetest/Makefile
|
||||||
samples/wxpoem/Makefile
|
samples/validate/Makefile
|
||||||
samples/wxsocket/Makefile
|
samples/wxpoem/Makefile
|
||||||
samples/wizard/Makefile
|
samples/wxsocket/Makefile
|
||||||
samples/html/Makefile
|
samples/wizard/Makefile
|
||||||
samples/html/about/Makefile
|
samples/html/Makefile
|
||||||
samples/html/help/Makefile
|
samples/html/about/Makefile
|
||||||
samples/html/printing/Makefile
|
samples/html/help/Makefile
|
||||||
samples/html/test/Makefile
|
samples/html/printing/Makefile
|
||||||
samples/html/zip/Makefile
|
samples/html/test/Makefile
|
||||||
samples/html/virtual/Makefile
|
samples/html/zip/Makefile
|
||||||
samples/html/widget/Makefile
|
samples/html/virtual/Makefile
|
||||||
utils/Makefile
|
samples/html/widget/Makefile
|
||||||
utils/wxMMedia2/Makefile
|
utils/Makefile
|
||||||
utils/wxMMedia2/lib/Makefile
|
utils/wxMMedia2/Makefile
|
||||||
utils/wxMMedia2/sample/Makefile
|
utils/wxMMedia2/lib/Makefile
|
||||||
utils/glcanvas/Makefile
|
utils/wxMMedia2/sample/Makefile
|
||||||
utils/glcanvas/${GL_TOOLKIT_DIR}/Makefile
|
utils/glcanvas/Makefile
|
||||||
utils/ogl/Makefile
|
utils/glcanvas/${GL_TOOLKIT_DIR}/Makefile
|
||||||
utils/ogl/src/Makefile
|
utils/ogl/Makefile
|
||||||
|
utils/ogl/src/Makefile
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
chmod +x wx-config
|
chmod +x wx-config
|
||||||
if test ! -d include; then
|
if test ! -d include; then
|
||||||
mkdir include
|
mkdir include
|
||||||
fi
|
fi
|
||||||
if test ! -d include/wx; then
|
if test ! -d include/wx; then
|
||||||
mkdir include/wx
|
mkdir include/wx
|
||||||
fi
|
fi
|
||||||
if test ! -d include/wx/${TOOLKIT_DIR}; then
|
if test ! -d include/wx/${TOOLKIT_DIR}; then
|
||||||
mkdir include/wx/${TOOLKIT_DIR}
|
mkdir include/wx/${TOOLKIT_DIR}
|
||||||
fi
|
fi
|
||||||
cp -f setup.h include/wx/${TOOLKIT_DIR}/setup.h
|
cp -f setup.h include/wx/${TOOLKIT_DIR}/setup.h
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
LN_S="${ac_cv_prog_LN_S}"
|
LN_S="${ac_cv_prog_LN_S}"
|
||||||
|
@@ -28,6 +28,8 @@
|
|||||||
# compiler, &c)
|
# compiler, &c)
|
||||||
#
|
#
|
||||||
# Known flags:
|
# Known flags:
|
||||||
|
# B makes part of the base library too
|
||||||
|
# BO only for the base library
|
||||||
# 16 a generic file implementing Win32 control for Win16
|
# 16 a generic file implementing Win32 control for Win16
|
||||||
# 32 only can be compiled under Win32
|
# 32 only can be compiled under Win32
|
||||||
# PS PostScript related file, normally not compiled under Windows
|
# PS PostScript related file, normally not compiled under Windows
|
||||||
@@ -37,10 +39,11 @@
|
|||||||
# S Socket file (currently doesn't compile under Win16 nor with GNU)
|
# S Socket file (currently doesn't compile under Win16 nor with GNU)
|
||||||
# R Not required for the GTK port
|
# R Not required for the GTK port
|
||||||
# X Not required for the Motif port
|
# X Not required for the Motif port
|
||||||
|
#
|
||||||
# WX Base header
|
# WX Base header
|
||||||
# GTK GTK header
|
# GTK GTK header
|
||||||
# MSW MSW header
|
# MSW MSW header
|
||||||
# MAC Mac header
|
# MAC Mac header
|
||||||
# MOT Motif header
|
# MOT Motif header
|
||||||
# PM OS/2 header
|
# PM OS/2 header
|
||||||
# GEN Generic header
|
# GEN Generic header
|
||||||
@@ -59,7 +62,7 @@ dcpsg.cpp G U
|
|||||||
dirdlgg.cpp G 16
|
dirdlgg.cpp G 16
|
||||||
fontdlgg.cpp G G,R
|
fontdlgg.cpp G G,R
|
||||||
filedlgg.cpp G U,X
|
filedlgg.cpp G U,X
|
||||||
gridg.cpp G
|
grid.cpp G
|
||||||
helphtml.cpp G G
|
helphtml.cpp G G
|
||||||
helpwxht.cpp G G
|
helpwxht.cpp G G
|
||||||
helpxlp.cpp G G,R
|
helpxlp.cpp G G,R
|
||||||
@@ -90,9 +93,9 @@ wizard.cpp G
|
|||||||
|
|
||||||
choiccmn.cpp C R
|
choiccmn.cpp C R
|
||||||
cmndata.cpp C
|
cmndata.cpp C
|
||||||
config.cpp C
|
config.cpp C B
|
||||||
ctrlcmn.cpp C R
|
ctrlcmn.cpp C R
|
||||||
date.cpp C
|
date.cpp C B
|
||||||
datstrm.cpp C
|
datstrm.cpp C
|
||||||
db.cpp C
|
db.cpp C
|
||||||
dbtable.cpp C
|
dbtable.cpp C
|
||||||
@@ -100,15 +103,15 @@ dcbase.cpp C
|
|||||||
dlgcmn.cpp C
|
dlgcmn.cpp C
|
||||||
docmdi.cpp C
|
docmdi.cpp C
|
||||||
docview.cpp C
|
docview.cpp C
|
||||||
dynarray.cpp C
|
dynarray.cpp C B
|
||||||
dynlib.cpp C
|
dynlib.cpp C B
|
||||||
event.cpp C
|
event.cpp C B
|
||||||
extended.c C
|
extended.c C B
|
||||||
ffile.cpp C
|
ffile.cpp C B
|
||||||
file.cpp C
|
file.cpp C B
|
||||||
fileconf.cpp C
|
fileconf.cpp C B
|
||||||
filefn.cpp C
|
filefn.cpp C B
|
||||||
filesys.cpp C
|
filesys.cpp C B
|
||||||
fontcmn.cpp C
|
fontcmn.cpp C
|
||||||
framecmn.cpp C
|
framecmn.cpp C
|
||||||
fs_inet.cpp C
|
fs_inet.cpp C
|
||||||
@@ -116,7 +119,7 @@ fs_zip.cpp C
|
|||||||
ftp.cpp C S
|
ftp.cpp C S
|
||||||
gdicmn.cpp C
|
gdicmn.cpp C
|
||||||
gifdecod.cpp C
|
gifdecod.cpp C
|
||||||
hash.cpp C
|
hash.cpp C B
|
||||||
helpbase.cpp C
|
helpbase.cpp C
|
||||||
http.cpp C S
|
http.cpp C S
|
||||||
imagbmp.cpp C
|
imagbmp.cpp C
|
||||||
@@ -127,21 +130,22 @@ imagjpeg.cpp C 32
|
|||||||
imagpcx.cpp C 32
|
imagpcx.cpp C 32
|
||||||
imagpng.cpp C 32
|
imagpng.cpp C 32
|
||||||
imagpnm.cpp C 32
|
imagpnm.cpp C 32
|
||||||
intl.cpp C
|
init.cpp C B,BO
|
||||||
|
intl.cpp C B
|
||||||
ipcbase.cpp C
|
ipcbase.cpp C
|
||||||
layout.cpp C
|
layout.cpp C
|
||||||
list.cpp C
|
list.cpp C B
|
||||||
log.cpp C
|
log.cpp C B
|
||||||
memory.cpp C
|
memory.cpp C
|
||||||
mimetype.cpp C 32
|
mimetype.cpp C 32,B
|
||||||
module.cpp C
|
module.cpp C B
|
||||||
mstream.cpp C
|
mstream.cpp C
|
||||||
object.cpp C
|
object.cpp C B
|
||||||
objstrm.cpp C
|
objstrm.cpp C
|
||||||
odbc.cpp C R
|
odbc.cpp C R
|
||||||
paper.cpp C
|
paper.cpp C
|
||||||
prntbase.cpp C
|
prntbase.cpp C
|
||||||
process.cpp C 32
|
process.cpp C 32,B
|
||||||
protocol.cpp C S
|
protocol.cpp C S
|
||||||
resource.cpp C
|
resource.cpp C
|
||||||
sckaddr.cpp C S
|
sckaddr.cpp C S
|
||||||
@@ -151,27 +155,27 @@ sckstrm.cpp C S
|
|||||||
serbase.cpp C
|
serbase.cpp C
|
||||||
sizer.cpp C
|
sizer.cpp C
|
||||||
socket.cpp C S
|
socket.cpp C S
|
||||||
stream.cpp C
|
stream.cpp C B
|
||||||
strconv.cpp C
|
strconv.cpp C B
|
||||||
string.cpp C
|
string.cpp C B
|
||||||
tbarbase.cpp C
|
tbarbase.cpp C
|
||||||
tbarsmpl.cpp C
|
tbarsmpl.cpp C
|
||||||
textcmn.cpp C
|
textcmn.cpp C
|
||||||
textfile.cpp C
|
textfile.cpp C B
|
||||||
time.cpp C
|
time.cpp C B
|
||||||
timercmn.cpp C
|
timercmn.cpp C B
|
||||||
tokenzr.cpp C
|
tokenzr.cpp C B
|
||||||
txtstrm.cpp C
|
txtstrm.cpp C B
|
||||||
unzip.c C
|
unzip.c C
|
||||||
url.cpp C S
|
url.cpp C S
|
||||||
utilscmn.cpp C
|
utilscmn.cpp C B
|
||||||
valgen.cpp C
|
valgen.cpp C
|
||||||
validate.cpp C
|
validate.cpp C
|
||||||
valtext.cpp C
|
valtext.cpp C
|
||||||
variant.cpp C
|
variant.cpp C B
|
||||||
wfstream.cpp C
|
wfstream.cpp C
|
||||||
wincmn.cpp C
|
wincmn.cpp C
|
||||||
wxchar.cpp C
|
wxchar.cpp C B
|
||||||
wxexpr.cpp C
|
wxexpr.cpp C
|
||||||
zipstrm.cpp C
|
zipstrm.cpp C
|
||||||
zstream.cpp C
|
zstream.cpp C
|
||||||
@@ -272,8 +276,9 @@ window.cpp M
|
|||||||
xpmhand.cpp M
|
xpmhand.cpp M
|
||||||
gsocket.c M S
|
gsocket.c M S
|
||||||
|
|
||||||
|
dialup.cpp U
|
||||||
threadpsx.cpp U
|
threadpsx.cpp U
|
||||||
utilsunx.cpp U
|
utilsunx.cpp U B
|
||||||
gsocket.c U
|
gsocket.c U
|
||||||
|
|
||||||
gsockgtk.c R
|
gsockgtk.c R
|
||||||
@@ -321,6 +326,7 @@ scrolbar.cpp R
|
|||||||
settings.cpp R
|
settings.cpp R
|
||||||
slider.cpp R
|
slider.cpp R
|
||||||
spinbutt.cpp R
|
spinbutt.cpp R
|
||||||
|
spinctrl.cpp R
|
||||||
statbmp.cpp R
|
statbmp.cpp R
|
||||||
statbox.cpp R
|
statbox.cpp R
|
||||||
statline.cpp R
|
statline.cpp R
|
||||||
@@ -410,7 +416,7 @@ search.cpp H
|
|||||||
arrimpl.cpp W
|
arrimpl.cpp W
|
||||||
listimpl.cpp W
|
listimpl.cpp W
|
||||||
accel.h W
|
accel.h W
|
||||||
app.h W
|
app.h W B
|
||||||
bitmap.h W
|
bitmap.h W
|
||||||
bmpbuttn.h W
|
bmpbuttn.h W
|
||||||
brush.h W
|
brush.h W
|
||||||
@@ -432,7 +438,7 @@ config.h W
|
|||||||
control.h W
|
control.h W
|
||||||
cursor.h W
|
cursor.h W
|
||||||
dataobj.h W
|
dataobj.h W
|
||||||
date.h W
|
date.h W B
|
||||||
datstrm.h W
|
datstrm.h W
|
||||||
db.h W
|
db.h W
|
||||||
dbtable.h W
|
dbtable.h W
|
||||||
@@ -443,21 +449,21 @@ dcprint.h W
|
|||||||
dcps.h W
|
dcps.h W
|
||||||
dcscreen.h W
|
dcscreen.h W
|
||||||
dde.h W
|
dde.h W
|
||||||
debug.h W
|
debug.h W B
|
||||||
defs.h W
|
defs.h W B
|
||||||
dialog.h W
|
dialog.h W
|
||||||
dirdlg.h W
|
dirdlg.h W
|
||||||
dnd.h W
|
dnd.h W
|
||||||
docmdi.h W
|
docmdi.h W
|
||||||
docview.h W
|
docview.h W
|
||||||
dragimag.h W
|
dragimag.h W
|
||||||
dynarray.h W
|
dynarray.h W B
|
||||||
dynlib.h W
|
dynlib.h W B
|
||||||
event.h W
|
event.h W B
|
||||||
expr.h W
|
expr.h W
|
||||||
ffile.h W
|
ffile.h W B
|
||||||
file.h W
|
file.h W B
|
||||||
fileconf.h W
|
fileconf.h W B
|
||||||
filedlg.h W
|
filedlg.h W
|
||||||
filefn.h W
|
filefn.h W
|
||||||
filesys.h W
|
filesys.h W
|
||||||
@@ -472,7 +478,7 @@ gdiobj.h W
|
|||||||
gifdecod.h W
|
gifdecod.h W
|
||||||
grid.h W
|
grid.h W
|
||||||
gsocket.h W
|
gsocket.h W
|
||||||
hash.h W
|
hash.h W B
|
||||||
help.h W
|
help.h W
|
||||||
helpbase.h W
|
helpbase.h W
|
||||||
helphtml.h W
|
helphtml.h W
|
||||||
@@ -481,30 +487,30 @@ helpxlp.h W
|
|||||||
icon.h W
|
icon.h W
|
||||||
image.h W
|
image.h W
|
||||||
imaglist.h W
|
imaglist.h W
|
||||||
intl.h W
|
intl.h W B
|
||||||
ioswrap.h W
|
ioswrap.h W
|
||||||
ipcbase.h W
|
ipcbase.h W
|
||||||
joystick.h W
|
joystick.h W
|
||||||
layout.h W
|
layout.h W
|
||||||
laywin.h W
|
laywin.h W
|
||||||
list.h W
|
list.h W B
|
||||||
listbox.h W
|
listbox.h W
|
||||||
listctrl.h W
|
listctrl.h W
|
||||||
log.h W
|
log.h W B
|
||||||
longlong.h W
|
longlong.h W B
|
||||||
matrix.h W
|
matrix.h W
|
||||||
mdi.h W
|
mdi.h W
|
||||||
memory.h W
|
memory.h W
|
||||||
menu.h W
|
menu.h W
|
||||||
menuitem.h W
|
menuitem.h W
|
||||||
metafile.h W
|
metafile.h W
|
||||||
mimetype.h W
|
mimetype.h W B
|
||||||
minifram.h W
|
minifram.h W
|
||||||
module.h W
|
module.h W B
|
||||||
msgdlg.h W
|
msgdlg.h W
|
||||||
mstream.h W
|
mstream.h W
|
||||||
notebook.h W
|
notebook.h W
|
||||||
object.h W
|
object.h W B
|
||||||
objstrm.h W
|
objstrm.h W
|
||||||
odbc.h W
|
odbc.h W
|
||||||
ownerdrw.h W
|
ownerdrw.h W
|
||||||
@@ -516,7 +522,7 @@ pnghand.h W
|
|||||||
print.h W
|
print.h W
|
||||||
printdlg.h W
|
printdlg.h W
|
||||||
prntbase.h W
|
prntbase.h W
|
||||||
process.h W
|
process.h W B
|
||||||
progdlg.h W
|
progdlg.h W
|
||||||
prop.h W
|
prop.h W
|
||||||
propform.h W
|
propform.h W
|
||||||
@@ -533,7 +539,7 @@ scrolbar.h W
|
|||||||
scrolwin.h W
|
scrolwin.h W
|
||||||
serbase.h W
|
serbase.h W
|
||||||
settings.h W
|
settings.h W
|
||||||
setup.h W
|
setup.h W B
|
||||||
sizer.h W
|
sizer.h W
|
||||||
slider.h W
|
slider.h W
|
||||||
socket.h W
|
socket.h W
|
||||||
@@ -544,9 +550,9 @@ statbox.h W
|
|||||||
statline.h W
|
statline.h W
|
||||||
stattext.h W
|
stattext.h W
|
||||||
statusbr.h W
|
statusbr.h W
|
||||||
strconv.h W
|
strconv.h W B
|
||||||
stream.h W
|
stream.h W B
|
||||||
string.h W
|
string.h W B
|
||||||
tab.h W
|
tab.h W
|
||||||
tabctrl.h W
|
tabctrl.h W
|
||||||
taskbar.h W
|
taskbar.h W
|
||||||
@@ -556,35 +562,35 @@ tbarmsw.h W
|
|||||||
tbarsmpl.h W
|
tbarsmpl.h W
|
||||||
textctrl.h W
|
textctrl.h W
|
||||||
textdlg.h W
|
textdlg.h W
|
||||||
textfile.h W
|
textfile.h W B
|
||||||
txtstrm.h W
|
txtstrm.h W B
|
||||||
thread.h W
|
thread.h W B
|
||||||
time.h W
|
time.h W B
|
||||||
timer.h W
|
timer.h W B
|
||||||
tipdlg.h W
|
tipdlg.h W
|
||||||
tokenzr.h W
|
tokenzr.h W B
|
||||||
toolbar.h W
|
toolbar.h W
|
||||||
tooltip.h W
|
tooltip.h W
|
||||||
treectrl.h W
|
treectrl.h W
|
||||||
types.h W
|
types.h W
|
||||||
url.h W
|
url.h W
|
||||||
utils.h W
|
utils.h W B
|
||||||
valgen.h W
|
valgen.h W
|
||||||
validate.h W
|
validate.h W
|
||||||
valtext.h W
|
valtext.h W
|
||||||
variant.h W
|
variant.h W B
|
||||||
version.h W
|
version.h W B
|
||||||
wave.h W
|
wave.h W
|
||||||
wfstream.h W
|
wfstream.h W
|
||||||
window.h W
|
window.h W
|
||||||
wx.h W
|
wx.h W B
|
||||||
wx_cw.h W
|
wx_cw.h W
|
||||||
wx_cw_cm.h W
|
wx_cw_cm.h W
|
||||||
wx_cw_d.h W
|
wx_cw_d.h W
|
||||||
wxchar.h W
|
wxchar.h W B
|
||||||
wxexpr.h W
|
wxexpr.h W
|
||||||
wxhtml.h W
|
wxhtml.h W
|
||||||
wxprec.h W
|
wxprec.h W B
|
||||||
xpmhand.h W
|
xpmhand.h W
|
||||||
zipstrm.h W
|
zipstrm.h W
|
||||||
zstream.h W
|
zstream.h W
|
||||||
@@ -846,7 +852,7 @@ dcpsg.h N
|
|||||||
dirdlgg.h N
|
dirdlgg.h N
|
||||||
fontdlgg.h N
|
fontdlgg.h N
|
||||||
filedlgg.h N
|
filedlgg.h N
|
||||||
gridg.h N
|
grid.h N
|
||||||
helpext.h N
|
helpext.h N
|
||||||
helpwxht.h N
|
helpwxht.h N
|
||||||
helphtml.h N
|
helphtml.h N
|
||||||
|
@@ -51,36 +51,32 @@
|
|||||||
#! Common
|
#! Common
|
||||||
|
|
||||||
foreach $file (sort keys %wxCommon) {
|
foreach $file (sort keys %wxCommon) {
|
||||||
next if $wxCommon{$file} =~ /\bR\b/;
|
($fileobj = $file) =~ s/cp?p?$/\o/;
|
||||||
|
($filedep = $file) =~ s/cp?p?$/\d/;
|
||||||
|
|
||||||
$file2 = $file;
|
#! 'B' flag means that the file makes part of wxBase too
|
||||||
$file =~ s/cp?p?$/\o/;
|
if ( $wxCommon{$file} =~ /\bB\b/ ) {
|
||||||
$file2 =~ s/cp?p?$/\d/;
|
$project{"BASE_OBJS"} .= $fileobj . " ";
|
||||||
$project{"WXGTK_COMMONOBJS"} .= $file . " ";
|
$project{"BASE_DEPS"} .= $filedep . " ";
|
||||||
$project{"WXGTK_COMMONDEPS"} .= $file2 . " "
|
}
|
||||||
}
|
|
||||||
|
|
||||||
foreach $file (sort keys %wxCommon) {
|
#! if it's the wxBase-only file, nothing more to do with it
|
||||||
next if $wxCommon{$file} =~ /\bX\b/;
|
next if $wxCommon{$file} =~ /\bBO\b/;
|
||||||
|
|
||||||
$file2 = $file;
|
if ( $wxCommon{$file} !~ /\bR\b/ ) { #! unless not for GTK
|
||||||
$file =~ s/cp?p?$/\o/;
|
$project{"WXGTK_COMMONOBJS"} .= $fileobj . " ";
|
||||||
$file2 =~ s/cp?p?$/\d/;
|
$project{"WXGTK_COMMONDEPS"} .= $filedep . " "
|
||||||
$project{"WXMOTIF_COMMONOBJS"} .= $file . " ";
|
}
|
||||||
$project{"WXMOTIF_COMMONDEPS"} .= $file2 . " "
|
if ( $wxCommon{$file} !~ /\bX\b/ ) { #! unless not for Motif
|
||||||
}
|
$project{"WXMOTIF_COMMONOBJS"} .= $fileobj . " ";
|
||||||
|
$project{"WXMOTIF_COMMONDEPS"} .= $filedep . " "
|
||||||
|
}
|
||||||
|
|
||||||
foreach $file (sort keys %wxCommon) {
|
#! ODBC needs extra files (sql*.h) so not compiled by default.
|
||||||
next if $wxCommon{$file} =~ /\b(16)\b/;
|
if ( (file !~ /^odbc\./) && ($wxCommon{$file} !~ /\b(16)\b/) ) {
|
||||||
|
$project{"WXMSW_COMMONOBJS"} .= $fileobj . " ";
|
||||||
#! needs extra files (sql*.h) so not compiled by default.
|
$project{"WXMSW_COMMONDEPS"} .= $filedep . " "
|
||||||
next if $file =~ /^odbc\./;
|
}
|
||||||
|
|
||||||
$file2 = $file;
|
|
||||||
$file =~ s/cp?p?$/\o/;
|
|
||||||
$file2 =~ s/cp?p?$/\d/;
|
|
||||||
$project{"WXMSW_COMMONOBJS"} .= $file . " ";
|
|
||||||
$project{"WXMSW_COMMONDEPS"} .= $file2 . " "
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#! GUI
|
#! GUI
|
||||||
@@ -127,17 +123,24 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
foreach $file (sort keys %wxUNIX) {
|
foreach $file (sort keys %wxUNIX) {
|
||||||
$file2 = $file;
|
($fileobj = $file) =~ s/cp?p?$/\o/;
|
||||||
$file =~ s/cp?p?$/\o/;
|
($filedep = $file) =~ s/cp?p?$/\d/;
|
||||||
$file2 =~ s/cp?p?$/\d/;
|
|
||||||
$project{"WXUNIXOBJS"} .= $file . " ";
|
#! 'B' flag means that the file makes part of wxBase too
|
||||||
$project{"WXUNIXDEPS"} .= $file2 . " "
|
if ( $wxUNIX{$file} =~ /\bB\b/ ) {
|
||||||
|
$project{"BASE_OBJS"} .= $fileobj . " ";
|
||||||
|
$project{"BASE_DEPS"} .= $filedep . " "
|
||||||
|
}
|
||||||
|
|
||||||
|
$project{"WXUNIX_OBJS"} .= $fileobj . " ";
|
||||||
|
$project{"WXUNIX_DEPS"} .= $filedep . " "
|
||||||
}
|
}
|
||||||
|
|
||||||
#! headers
|
#! headers
|
||||||
|
|
||||||
foreach $file (sort keys %wxWXINCLUDE) {
|
foreach $file (sort keys %wxWXINCLUDE) {
|
||||||
$project{"WX_HEADERS"} .= $file . " "
|
$project{"WX_HEADERS"} .= $file . " ";
|
||||||
|
$project{"BASE_HEADERS"} .= $file . " " if $wxWXINCLUDE{$file} =~ /\bB\b/;
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach $file (sort keys %wxGENERICINCLUDE) {
|
foreach $file (sort keys %wxGENERICINCLUDE) {
|
||||||
@@ -214,8 +217,9 @@ VP6 = @top_srcdir@/src/html
|
|||||||
VP7 = @top_srcdir@/src/png
|
VP7 = @top_srcdir@/src/png
|
||||||
VP8 = @top_srcdir@/src/jpeg
|
VP8 = @top_srcdir@/src/jpeg
|
||||||
VP9 = @top_srcdir@/src/zlib
|
VP9 = @top_srcdir@/src/zlib
|
||||||
|
VP10 = @top_srcdir@/src/iodbc
|
||||||
|
|
||||||
VPATH = $(VP1):$(VP2):$(VP3):$(VP4):$(VP5):$(VP6):$(VP7):$(VP8):$(VP9)
|
VPATH = $(VP1):$(VP2):$(VP3):$(VP4):$(VP5):$(VP6):$(VP7):$(VP8):$(VP9):$(VP10)
|
||||||
|
|
||||||
top_srcdir = @top_srcdir@
|
top_srcdir = @top_srcdir@
|
||||||
prefix = @prefix@
|
prefix = @prefix@
|
||||||
@@ -295,6 +299,9 @@ DISTDIR = ./_dist_dir/wx$(TOOLKIT)
|
|||||||
|
|
||||||
############################## Files ##################################
|
############################## Files ##################################
|
||||||
|
|
||||||
|
BASE_HEADERS = \
|
||||||
|
#$ ExpandList("BASE_HEADERS");
|
||||||
|
|
||||||
WX_HEADERS = \
|
WX_HEADERS = \
|
||||||
#$ ExpandList("WX_HEADERS");
|
#$ ExpandList("WX_HEADERS");
|
||||||
|
|
||||||
@@ -381,17 +388,23 @@ MSW_GUIOBJS = \
|
|||||||
MSW_GUIDEPS = \
|
MSW_GUIDEPS = \
|
||||||
#$ ExpandList("WXMSW_GUIDEPS");
|
#$ ExpandList("WXMSW_GUIDEPS");
|
||||||
|
|
||||||
|
BASE_OBJS = \
|
||||||
|
#$ ExpandList("BASE_OBJS");
|
||||||
|
|
||||||
|
BASE_DEPS = \
|
||||||
|
#$ ExpandList("BASE_DEPS");
|
||||||
|
|
||||||
HTMLOBJS = \
|
HTMLOBJS = \
|
||||||
#$ ExpandList("WXHTMLOBJS");
|
#$ ExpandList("WXHTMLOBJS");
|
||||||
|
|
||||||
HTMLDEPS = \
|
HTMLDEPS = \
|
||||||
#$ ExpandList("WXHTMLDEPS");
|
#$ ExpandList("WXHTMLDEPS");
|
||||||
|
|
||||||
UNIXOBJS = \
|
UNIX_OBJS = \
|
||||||
#$ ExpandList("WXUNIXOBJS");
|
#$ ExpandList("WXUNIX_OBJS");
|
||||||
|
|
||||||
UNIXDEPS = \
|
UNIX_DEPS = \
|
||||||
#$ ExpandList("WXUNIXDEPS");
|
#$ ExpandList("WXUNIX_DEPS");
|
||||||
|
|
||||||
ZLIBOBJS = \
|
ZLIBOBJS = \
|
||||||
adler32.o \
|
adler32.o \
|
||||||
@@ -475,16 +488,40 @@ JPEGOBJS = \
|
|||||||
jquant2.o \
|
jquant2.o \
|
||||||
jdmerge.o
|
jdmerge.o
|
||||||
|
|
||||||
|
IODBCOBJS = \
|
||||||
|
catalog.o \
|
||||||
|
connect.o \
|
||||||
|
dlf.o \
|
||||||
|
dlproc.o \
|
||||||
|
execute.o \
|
||||||
|
fetch.o \
|
||||||
|
hdbc.o \
|
||||||
|
henv.o \
|
||||||
|
herr.o \
|
||||||
|
hstmt.o \
|
||||||
|
info.o \
|
||||||
|
itrace.o \
|
||||||
|
misc.o \
|
||||||
|
prepare.o \
|
||||||
|
result.o
|
||||||
|
|
||||||
OBJECTS = $(@GUIOBJS@) $(@COMMONOBJS@) $(@GENERICOBJS@) $(@UNIXOBJS@) $(HTMLOBJS) \
|
GUIOBJS = @GUIOBJS@
|
||||||
$(JPEGOBJS) $(PNGOBJS) $(ZLIBOBJS)
|
GUIDEPS = @GUIDEPS@
|
||||||
|
GUIHEADERS = @GUIHEADERS@
|
||||||
|
COMMONOBJS = @COMMONOBJS@
|
||||||
|
COMMONDEPS = @COMMONDEPS@
|
||||||
|
GENERICOBJS = @GENERICOBJS@
|
||||||
|
GENERICDEPS = @GENERICDEPS@
|
||||||
|
UNIXOBJS = @UNIXOBJS@
|
||||||
|
UNIXDEPS = @UNIXDEPS@
|
||||||
|
|
||||||
DEPFILES = $(@GUIDEPS@) $(@COMMONDEPS@) $(@GENERICDEPS@) $(UNIXDEPS) $(HTMLDEPS)
|
OBJECTS = @ALL_OBJECTS@ $(IODBCOBJS)
|
||||||
|
|
||||||
HEADERS = $(@GUIHEADERS@) $(HTML_HEADERS) $(UNIX_HEADERS) $(PROTOCOL_HEADERS) \
|
DEPFILES = @ALL_DEPFILES@
|
||||||
$(GENERIC_HEADERS) $(WX_HEADERS)
|
|
||||||
|
|
||||||
all: @WX_CREATE_LINKS@
|
HEADERS = @ALL_HEADERS@
|
||||||
|
|
||||||
|
all: @WX_ALL@
|
||||||
|
|
||||||
@WX_LIBRARY_NAME_STATIC@: $(OBJECTS)
|
@WX_LIBRARY_NAME_STATIC@: $(OBJECTS)
|
||||||
@$(INSTALL) -d ./lib
|
@$(INSTALL) -d ./lib
|
||||||
@@ -495,7 +532,7 @@ all: @WX_CREATE_LINKS@
|
|||||||
@$(INSTALL) -d ./lib
|
@$(INSTALL) -d ./lib
|
||||||
$(SHARED_LD) ./lib/$@ $(OBJECTS) $(EXTRALIBS)
|
$(SHARED_LD) ./lib/$@ $(OBJECTS) $(EXTRALIBS)
|
||||||
|
|
||||||
CREATE_LINKS: @WX_TARGET_LIBRARY@
|
CREATE_LINKS: @WX_LIBRARY_NAME_SHARED@
|
||||||
@$(RM) ./lib/@WX_LIBRARY_LINK1@
|
@$(RM) ./lib/@WX_LIBRARY_LINK1@
|
||||||
@$(RM) ./lib/@WX_LIBRARY_LINK2@
|
@$(RM) ./lib/@WX_LIBRARY_LINK2@
|
||||||
@$(RM) ./lib/@WX_LIBRARY_LINK3@
|
@$(RM) ./lib/@WX_LIBRARY_LINK3@
|
||||||
@@ -503,13 +540,13 @@ CREATE_LINKS: @WX_TARGET_LIBRARY@
|
|||||||
$(LN_S) @WX_TARGET_LIBRARY@ ./lib/@WX_LIBRARY_LINK2@
|
$(LN_S) @WX_TARGET_LIBRARY@ ./lib/@WX_LIBRARY_LINK2@
|
||||||
$(LN_S) @WX_TARGET_LIBRARY@ ./lib/@WX_LIBRARY_LINK3@
|
$(LN_S) @WX_TARGET_LIBRARY@ ./lib/@WX_LIBRARY_LINK3@
|
||||||
|
|
||||||
CREATE_INSTALLED_LINKS: $(libdir)/@WX_TARGET_LIBRARY@
|
CREATE_INSTALLED_LINKS: $(libdir)/@WX_LIBRARY_NAME_SHARED@
|
||||||
$(RM) $(libdir)/@WX_LIBRARY_LINK1@
|
$(RM) $(libdir)/@WX_LIBRARY_LINK1@
|
||||||
$(RM) $(libdir)/@WX_LIBRARY_LINK2@
|
$(RM) $(libdir)/@WX_LIBRARY_LINK2@
|
||||||
$(RM) $(libdir)/@WX_LIBRARY_LINK3@
|
$(RM) $(libdir)/@WX_LIBRARY_LINK3@
|
||||||
$(LN_S) @WX_TARGET_LIBRARY@ $(libdir)/@WX_LIBRARY_LINK1@
|
$(LN_S) @WX_LIBRARY_NAME_SHARED@ $(libdir)/@WX_LIBRARY_LINK1@
|
||||||
$(LN_S) @WX_TARGET_LIBRARY@ $(libdir)/@WX_LIBRARY_LINK2@
|
$(LN_S) @WX_LIBRARY_NAME_SHARED@ $(libdir)/@WX_LIBRARY_LINK2@
|
||||||
$(LN_S) @WX_TARGET_LIBRARY@ $(libdir)/@WX_LIBRARY_LINK3@
|
$(LN_S) @WX_LIBRARY_NAME_SHARED@ $(libdir)/@WX_LIBRARY_LINK3@
|
||||||
|
|
||||||
$(OBJECTS): $(WXDIR)/include/wx/defs.h $(WXDIR)/include/wx/object.h $(WXDIR)/include/wx/setup.h
|
$(OBJECTS): $(WXDIR)/include/wx/defs.h $(WXDIR)/include/wx/object.h $(WXDIR)/include/wx/setup.h
|
||||||
|
|
||||||
@@ -586,7 +623,7 @@ write_message:
|
|||||||
@echo " Read the wxWindows Licence on licencing conditions."
|
@echo " Read the wxWindows Licence on licencing conditions."
|
||||||
@echo " "
|
@echo " "
|
||||||
|
|
||||||
install: preinstall @WX_CREATE_INSTALLED_LINKS@ write_message
|
install: preinstall @WX_ALL_INSTALLED@ write_message
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
@echo " "
|
@echo " "
|
||||||
@@ -852,6 +889,10 @@ SAMPLES_DIST:
|
|||||||
cp $(SAMPDIR)/minimal/Makefile.in $(DISTDIR)/samples/minimal
|
cp $(SAMPDIR)/minimal/Makefile.in $(DISTDIR)/samples/minimal
|
||||||
cp $(SAMPDIR)/minimal/*.cpp $(DISTDIR)/samples/minimal
|
cp $(SAMPDIR)/minimal/*.cpp $(DISTDIR)/samples/minimal
|
||||||
cp $(SAMPDIR)/minimal/*.xpm $(DISTDIR)/samples/minimal
|
cp $(SAMPDIR)/minimal/*.xpm $(DISTDIR)/samples/minimal
|
||||||
|
mkdir $(DISTDIR)/samples/newgrid
|
||||||
|
cp $(SAMPDIR)/newgrid/Makefile.in $(DISTDIR)/samples/newgrid
|
||||||
|
cp $(SAMPDIR)/newgrid/*.cpp $(DISTDIR)/samples/newgrid
|
||||||
|
cp $(SAMPDIR)/newgrid/*.h $(DISTDIR)/samples/newgrid
|
||||||
mkdir $(DISTDIR)/samples/notebook
|
mkdir $(DISTDIR)/samples/notebook
|
||||||
cp $(SAMPDIR)/notebook/Makefile.in $(DISTDIR)/samples/notebook
|
cp $(SAMPDIR)/notebook/Makefile.in $(DISTDIR)/samples/notebook
|
||||||
cp $(SAMPDIR)/notebook/*.cpp $(DISTDIR)/samples/notebook
|
cp $(SAMPDIR)/notebook/*.cpp $(DISTDIR)/samples/notebook
|
||||||
|
@@ -290,7 +290,7 @@ $(CPPFLAGS2) /c $(COMMDIR)\unzip.c /Fo$@
|
|||||||
|
|
||||||
png:
|
png:
|
||||||
cd $(WXDIR)\src\png
|
cd $(WXDIR)\src\png
|
||||||
nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL)
|
nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG)
|
||||||
cd $(WXDIR)\src\msw
|
cd $(WXDIR)\src\msw
|
||||||
|
|
||||||
clean_png:
|
clean_png:
|
||||||
@@ -300,7 +300,7 @@ clean_png:
|
|||||||
|
|
||||||
zlib:
|
zlib:
|
||||||
cd $(WXDIR)\src\zlib
|
cd $(WXDIR)\src\zlib
|
||||||
nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL)
|
nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG)
|
||||||
cd $(WXDIR)\src\msw
|
cd $(WXDIR)\src\msw
|
||||||
|
|
||||||
clean_zlib:
|
clean_zlib:
|
||||||
@@ -310,7 +310,7 @@ clean_zlib:
|
|||||||
|
|
||||||
jpeg:
|
jpeg:
|
||||||
cd $(WXDIR)\src\jpeg
|
cd $(WXDIR)\src\jpeg
|
||||||
nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) all
|
nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG) all
|
||||||
cd $(WXDIR)\src\msw
|
cd $(WXDIR)\src\msw
|
||||||
|
|
||||||
clean_jpeg:
|
clean_jpeg:
|
||||||
@@ -320,7 +320,7 @@ clean_jpeg:
|
|||||||
|
|
||||||
xpm:
|
xpm:
|
||||||
cd $(WXDIR)\src\xpm
|
cd $(WXDIR)\src\xpm
|
||||||
nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL)
|
nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG)
|
||||||
cd $(WXDIR)\src\msw
|
cd $(WXDIR)\src\msw
|
||||||
|
|
||||||
clean_xpm:
|
clean_xpm:
|
||||||
|
@@ -19,6 +19,7 @@
|
|||||||
|
|
||||||
foreach $file (sort keys %wxCommon) {
|
foreach $file (sort keys %wxCommon) {
|
||||||
next if $wxCommon{$file} =~ /\b16\b/;
|
next if $wxCommon{$file} =~ /\b16\b/;
|
||||||
|
next if $wxCommon{$file} =~ /\bBO\b/;
|
||||||
|
|
||||||
my $tag = $file =~ /\.c$/ ? "WXCSRCS" : "WXCOMMONSRCS";
|
my $tag = $file =~ /\.c$/ ? "WXCSRCS" : "WXCOMMONSRCS";
|
||||||
$project{$tag} .= $file . " "
|
$project{$tag} .= $file . " "
|
||||||
@@ -27,7 +28,9 @@
|
|||||||
foreach $file (sort keys %wxMSW) {
|
foreach $file (sort keys %wxMSW) {
|
||||||
next if $wxMSW{$file} =~ /\b16\b/;
|
next if $wxMSW{$file} =~ /\b16\b/;
|
||||||
|
|
||||||
my $tag = $wxMSW{$file} =~ /\bO\b/ ? "WXOLESRCS" : "WXMSWSRCS";
|
my $tag;
|
||||||
|
if ( $wxMSW{$file} =~ /\bO\b/ ) { $tag = "WXOLESRCS" }
|
||||||
|
else { $tag = $file =~ /\.c$/ ? "WXMSWCSRCS" : "WXMSWSRCS" }
|
||||||
$project{$tag} .= $file . " "
|
$project{$tag} .= $file . " "
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -130,6 +133,7 @@ SOURCE=.\src\msw\dummy.cpp
|
|||||||
#$ ExpandGlue("WXGENERICSRCS", "# Begin Source File\n\nSOURCE=.\\src\\generic\\", "\n# End Source File\n# Begin Source File\n\nSOURCE=.\\src\\generic\\", "\n# End Source File\n");
|
#$ ExpandGlue("WXGENERICSRCS", "# Begin Source File\n\nSOURCE=.\\src\\generic\\", "\n# End Source File\n# Begin Source File\n\nSOURCE=.\\src\\generic\\", "\n# End Source File\n");
|
||||||
#$ ExpandGlue("WXCOMMONSRCS", "# Begin Source File\n\nSOURCE=.\\src\\common\\", "\n# End Source File\n# Begin Source File\n\nSOURCE=.\\src\\common\\", "\n# End Source File\n");
|
#$ ExpandGlue("WXCOMMONSRCS", "# Begin Source File\n\nSOURCE=.\\src\\common\\", "\n# End Source File\n# Begin Source File\n\nSOURCE=.\\src\\common\\", "\n# End Source File\n");
|
||||||
#$ ExpandGlue("WXCSRCS", "# Begin Source File\n\nSOURCE=.\\src\\common\\", "\n# SUBTRACT CPP /YX /Yc /Yu\n# End Source File\n# Begin Source File\n\nSOURCE=.\\src\\common\\", "\n# SUBTRACT CPP /YX /Yc /Yu\n# End Source File\n");
|
#$ ExpandGlue("WXCSRCS", "# Begin Source File\n\nSOURCE=.\\src\\common\\", "\n# SUBTRACT CPP /YX /Yc /Yu\n# End Source File\n# Begin Source File\n\nSOURCE=.\\src\\common\\", "\n# SUBTRACT CPP /YX /Yc /Yu\n# End Source File\n");
|
||||||
|
#$ ExpandGlue("WXMSWCSRCS", "# Begin Source File\n\nSOURCE=.\\src\\msw\\", "\n# SUBTRACT CPP /YX /Yc /Yu\n# End Source File\n# Begin Source File\n\nSOURCE=.\\src\\common\\", "\n# SUBTRACT CPP /YX /Yc /Yu\n# End Source File\n");
|
||||||
#$ ExpandGlue("WXHTMLSRCS", "# Begin Source File\n\nSOURCE=.\\src\\html\\", "\n# End Source File\n# Begin Source File\n\nSOURCE=.\\src\\html\\", "\n# End Source File\n");
|
#$ ExpandGlue("WXHTMLSRCS", "# Begin Source File\n\nSOURCE=.\\src\\html\\", "\n# End Source File\n# Begin Source File\n\nSOURCE=.\\src\\html\\", "\n# End Source File\n");
|
||||||
|
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
@@ -5,6 +5,9 @@ src/wxvc6.dsw
|
|||||||
src/wxvc_dll.dsp
|
src/wxvc_dll.dsp
|
||||||
src/wxvc_dll.dsw
|
src/wxvc_dll.dsw
|
||||||
|
|
||||||
|
src/jpeg/jpeg.dsp
|
||||||
|
src/jpeg/jpeg.dsw
|
||||||
|
|
||||||
samples/checklst/ChecklstVC.dsp
|
samples/checklst/ChecklstVC.dsp
|
||||||
samples/checklst/ChecklstVC.dsw
|
samples/checklst/ChecklstVC.dsw
|
||||||
|
|
||||||
|
@@ -1,4 +1,78 @@
|
|||||||
|
|
||||||
|
25th October '99: My birthday, wxWindows 2.1.10 released
|
||||||
|
|
||||||
|
Enlightment has struck the majority of the developers and
|
||||||
|
they have chosen ti use the Linux kernel numbering scheme
|
||||||
|
for wxWindows from now on. This means that the next stable
|
||||||
|
release will be called wxWindows 2.2.X, development snapshots
|
||||||
|
will be called 2.1.X.
|
||||||
|
|
||||||
|
A lot of discussion has been wasted on how to maintain a
|
||||||
|
once released stable version will be maintained. It was
|
||||||
|
almost universally agreed that only a commercial entity
|
||||||
|
will have the motivation ($$$) to do that - so far there
|
||||||
|
is no wxWindows Inc.
|
||||||
|
|
||||||
|
Support for GTK 1.0 has been dropped.
|
||||||
|
|
||||||
|
Many build fixes for various platforms have been applied,
|
||||||
|
try again, poor HP-UX and *BSD users, but don't reckon
|
||||||
|
with immediate success.
|
||||||
|
|
||||||
|
My total rewrite of the wxWindows underlying GTK widget
|
||||||
|
has turned scrolling including subwindows from barely
|
||||||
|
functional to pretty and fast.
|
||||||
|
|
||||||
|
wxSocket and Co. have been improved up to the point of
|
||||||
|
calling it a rewrite. It works on wxMSW now too and
|
||||||
|
seems pretty stable, but testing is still welcome.
|
||||||
|
|
||||||
|
The ODBC classes contributed by Remstar Inc. have been
|
||||||
|
overhauled (incl the sample) and have been tested with
|
||||||
|
all relevant SQL databases (even DBase). For that reason
|
||||||
|
I have reawakened the iODBC code from wxGTK 2.0 so you
|
||||||
|
can now use wxODBC from wxMSW and wxGTK.
|
||||||
|
|
||||||
|
Several printing things fixed.
|
||||||
|
|
||||||
|
HTML widget and its wxWindows' help system based upon
|
||||||
|
it have been reorganized and improved for easier use
|
||||||
|
from Python and C++.
|
||||||
|
|
||||||
|
wxSpinCtrl added. Like a wxSpinButton and a wxTextCtrl.
|
||||||
|
|
||||||
|
Changed the beaviour of the popular new wxFileDialog to
|
||||||
|
not forget the once typed file name when changing the
|
||||||
|
directory.
|
||||||
|
|
||||||
|
Implemented the wxSIMPLE_BORDER flag (simple black line
|
||||||
|
without shadow affect).
|
||||||
|
|
||||||
|
Michael is writing a complete rewrite of the antiquated
|
||||||
|
wxGrid. This is still work-in-progress and might not make
|
||||||
|
it into wxWindows 2.2, we'll see. Help would be welcome
|
||||||
|
to make that happen.
|
||||||
|
|
||||||
|
Made wxMenu code lose less memory, also added wxMenu::Delete().
|
||||||
|
|
||||||
|
Added code to send wxActivateEvent to MDI windows.
|
||||||
|
|
||||||
|
Vadim added configure things to compile wxWindows without any
|
||||||
|
GUI library. This is probably work in progress. He'll also add
|
||||||
|
a wxFontEnumerator class and has enhanced wxFont to make use
|
||||||
|
of char-encodings.
|
||||||
|
|
||||||
|
wxSlider, wxWindow, wxScrollBar now emit the correct events
|
||||||
|
for scrolling (like page up, line up etc) instead of just
|
||||||
|
"thumb-track" as before.
|
||||||
|
|
||||||
|
Corrected bug in Reparent() code.
|
||||||
|
|
||||||
|
A handler to read PCX file (in most variants) has been added.
|
||||||
|
|
||||||
|
A number of problems with compressed and socket streams have
|
||||||
|
been solved.
|
||||||
|
|
||||||
28th August '99: Ninth wxGTK 2.1 snapshot released
|
28th August '99: Ninth wxGTK 2.1 snapshot released
|
||||||
|
|
||||||
As the old makefile system didn't work, I trashed it and wrote
|
As the old makefile system didn't work, I trashed it and wrote
|
||||||
|
@@ -116,6 +116,7 @@ combined base/GUI library for GUI applications only.
|
|||||||
<li>Release date: c. July 2nd, 2000
|
<li>Release date: c. July 2nd, 2000
|
||||||
<li>Unicode compilation working in wxGTK and wxMSW.
|
<li>Unicode compilation working in wxGTK and wxMSW.
|
||||||
<li>wxDateTime class.
|
<li>wxDateTime class.
|
||||||
|
<li>Regular expressions support.
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<P>
|
<P>
|
||||||
|
@@ -50,6 +50,7 @@ C++ portability guide</A> by David Williams.
|
|||||||
<LI><A HREF="#no_stl">Don't use STL</A></LI>
|
<LI><A HREF="#no_stl">Don't use STL</A></LI>
|
||||||
<LI><A HREF="#no_fordecl">Don't declare variables inside <TT>for()</TT></A></LI>
|
<LI><A HREF="#no_fordecl">Don't declare variables inside <TT>for()</TT></A></LI>
|
||||||
<LI><A HREF="#no_nestedclasses">Don't use nested classes</A></LI>
|
<LI><A HREF="#no_nestedclasses">Don't use nested classes</A></LI>
|
||||||
|
<LI><A HREF="#no_ternarywithobjects">Use ternary operator ?: carefully</A></LI>
|
||||||
</OL>
|
</OL>
|
||||||
<BR>
|
<BR>
|
||||||
<LI>General recommendations</LI>
|
<LI>General recommendations</LI>
|
||||||
@@ -332,6 +333,25 @@ you can try the following:
|
|||||||
<P>A nice side effect is that you don't need to recompile all the files
|
<P>A nice side effect is that you don't need to recompile all the files
|
||||||
including the header if you change the PrivateLibClass declaration (it's
|
including the header if you change the PrivateLibClass declaration (it's
|
||||||
an example of a more general interface/implementation separation idea).
|
an example of a more general interface/implementation separation idea).
|
||||||
|
|
||||||
|
<P><LI><A NAME="no_ternarywithobjects"></A><B>Use ternary operator ?: carefully</B></LI><P>
|
||||||
|
The ternary operator <TT>?:</TT> shouldn't be used with objects (i.e. if any
|
||||||
|
of its operands are objects) because some compilers (notable Borland C++) fail
|
||||||
|
to compile such code.
|
||||||
|
<P><U>Workaround</U>: use <TT>if/else</TT> instead.
|
||||||
|
<PRE>
|
||||||
|
wxString s1, s2;
|
||||||
|
|
||||||
|
// Borland C++ won't compile the line below
|
||||||
|
wxString s = s1.Len() < s2.Len() ? s1 : s2;
|
||||||
|
|
||||||
|
// but any C++ compiler will compile this
|
||||||
|
wxString s;
|
||||||
|
if ( s1.Len() < s2.Len() )
|
||||||
|
s = s1;
|
||||||
|
else
|
||||||
|
s = s2;
|
||||||
|
</PRE>
|
||||||
</OL>
|
</OL>
|
||||||
|
|
||||||
<BR>
|
<BR>
|
||||||
|
@@ -418,6 +418,9 @@ Gets the current pen (see \helpref{wxDC::SetPen}{wxdcsetpen}).
|
|||||||
Sets {\it colour} to the colour at the specified location. Windows only; an X implementation
|
Sets {\it colour} to the colour at the specified location. Windows only; an X implementation
|
||||||
is being worked on. Not available for wxPostScriptDC or wxMetafileDC.
|
is being worked on. Not available for wxPostScriptDC or wxMetafileDC.
|
||||||
|
|
||||||
|
\pythonnote{For wxPython the wxColour value is returned and is not
|
||||||
|
required as a parameter.}
|
||||||
|
|
||||||
\membersection{wxDC::GetSize}\label{wxdcgetsize}
|
\membersection{wxDC::GetSize}\label{wxdcgetsize}
|
||||||
|
|
||||||
\func{void}{GetSize}{\param{long *}{width}, \param{long *}{height}}
|
\func{void}{GetSize}{\param{long *}{width}, \param{long *}{height}}
|
||||||
|
@@ -118,9 +118,9 @@ Gets the pointer to the next handler in the chain.
|
|||||||
|
|
||||||
\wxheading{See also}
|
\wxheading{See also}
|
||||||
|
|
||||||
|
\helpref{wxEvtHandler::SetNextHandler}{wxevthandlersetnexthandler},\rtfsp
|
||||||
\helpref{wxEvtHandler::GetPreviousHandler}{wxevthandlergetprevioushandler},\rtfsp
|
\helpref{wxEvtHandler::GetPreviousHandler}{wxevthandlergetprevioushandler},\rtfsp
|
||||||
\helpref{wxEvtHandler::SetPreviousHandler}{wxevthandlersetprevioushandler},\rtfsp
|
\helpref{wxEvtHandler::SetPreviousHandler}{wxevthandlersetprevioushandler},\rtfsp
|
||||||
\helpref{wxEvtHandler::SetNextHandler}{wxevthandlersetnexthandler},\rtfsp
|
|
||||||
\helpref{wxWindow::PushEventHandler}{wxwindowpusheventhandler},\rtfsp
|
\helpref{wxWindow::PushEventHandler}{wxwindowpusheventhandler},\rtfsp
|
||||||
\helpref{wxWindow::PopEventHandler}{wxwindowpopeventhandler}
|
\helpref{wxWindow::PopEventHandler}{wxwindowpopeventhandler}
|
||||||
|
|
||||||
@@ -132,9 +132,9 @@ Gets the pointer to the previous handler in the chain.
|
|||||||
|
|
||||||
\wxheading{See also}
|
\wxheading{See also}
|
||||||
|
|
||||||
\helpref{wxEvtHandler::GetPreviousHandler}{wxevthandlergetprevioushandler},\rtfsp
|
|
||||||
\helpref{wxEvtHandler::SetPreviousHandler}{wxevthandlersetprevioushandler},\rtfsp
|
|
||||||
\helpref{wxEvtHandler::SetPreviousHandler}{wxevthandlersetprevioushandler},\rtfsp
|
\helpref{wxEvtHandler::SetPreviousHandler}{wxevthandlersetprevioushandler},\rtfsp
|
||||||
|
\helpref{wxEvtHandler::GetNextHandler}{wxevthandlergetnexthandler},\rtfsp
|
||||||
|
\helpref{wxEvtHandler::SetNextHandler}{wxevthandlersetnexthandler},\rtfsp
|
||||||
\helpref{wxWindow::PushEventHandler}{wxwindowpusheventhandler},\rtfsp
|
\helpref{wxWindow::PushEventHandler}{wxwindowpusheventhandler},\rtfsp
|
||||||
\helpref{wxWindow::PopEventHandler}{wxwindowpopeventhandler}
|
\helpref{wxWindow::PopEventHandler}{wxwindowpopeventhandler}
|
||||||
|
|
||||||
|
@@ -7,7 +7,8 @@ is selected, the previous selection is removed) or multiple selection
|
|||||||
(clicking an item toggles the item on or off independently of other
|
(clicking an item toggles the item on or off independently of other
|
||||||
selections).
|
selections).
|
||||||
|
|
||||||
List box elements are numbered from zero.
|
List box elements are numbered from zero. Their number is limited in
|
||||||
|
some platforms (e.g. ca. 2000 on GTK).
|
||||||
|
|
||||||
A listbox callback gets an event wxEVT\_COMMAND\_LISTBOX\_SELECT for single clicks, and
|
A listbox callback gets an event wxEVT\_COMMAND\_LISTBOX\_SELECT for single clicks, and
|
||||||
wxEVT\_COMMAND\_LISTBOX\_DOUBLE\_CLICKED for double clicks.
|
wxEVT\_COMMAND\_LISTBOX\_DOUBLE\_CLICKED for double clicks.
|
||||||
|
@@ -376,6 +376,10 @@ giving details in {\it flags}. {\it flags} will be a combination of the followin
|
|||||||
wxLIST\_HITTEST\_ONITEMSTATEICON.}
|
wxLIST\_HITTEST\_ONITEMSTATEICON.}
|
||||||
\end{twocollist}
|
\end{twocollist}
|
||||||
|
|
||||||
|
\pythonnote{A tuple of values is returned in the wxPython version of
|
||||||
|
thsi method. The first value is the item id and the second is the
|
||||||
|
flags value mentioned above.}
|
||||||
|
|
||||||
\membersection{wxListCtrl::InsertColumn}\label{wxlistctrlinsertcolumn}
|
\membersection{wxListCtrl::InsertColumn}\label{wxlistctrlinsertcolumn}
|
||||||
|
|
||||||
\func{long}{InsertColumn}{\param{long }{col}, \param{wxListItem\& }{info}}
|
\func{long}{InsertColumn}{\param{long }{col}, \param{wxListItem\& }{info}}
|
||||||
|
@@ -52,6 +52,7 @@ empty, {\it HasPendingMessages()} is also provided which allows to explicitly
|
|||||||
verify it.
|
verify it.
|
||||||
|
|
||||||
\helpref{Flush}{wxlogflush}\\
|
\helpref{Flush}{wxlogflush}\\
|
||||||
|
\helpref{FlushActive}{wxlogflushactive}\\
|
||||||
\helpref{HasPendingMessages}{haspendingmessages}
|
\helpref{HasPendingMessages}{haspendingmessages}
|
||||||
|
|
||||||
\membersection{Customization}\label{wxlogcustomization}
|
\membersection{Customization}\label{wxlogcustomization}
|
||||||
@@ -142,6 +143,16 @@ currently. (Almost) for internal use only.
|
|||||||
Shows all the messages currently in buffer and clears it. If the buffer
|
Shows all the messages currently in buffer and clears it. If the buffer
|
||||||
is already empty, nothing happens.
|
is already empty, nothing happens.
|
||||||
|
|
||||||
|
\membersection{wxLog::FlushActive}\label{wxlogflushactive}
|
||||||
|
|
||||||
|
\func{static void}{FlushActive}{\void}
|
||||||
|
|
||||||
|
Flushes the current log target if any, does nothing if there is none.
|
||||||
|
|
||||||
|
See also:
|
||||||
|
|
||||||
|
\helpref{Flush}{wxlogflush}
|
||||||
|
|
||||||
\membersection{wxLog::HasPendingMessages}\label{haspendingmessages}
|
\membersection{wxLog::HasPendingMessages}\label{haspendingmessages}
|
||||||
|
|
||||||
\constfunc{bool}{HasPendingMessages}{\void}
|
\constfunc{bool}{HasPendingMessages}{\void}
|
||||||
|
@@ -117,25 +117,27 @@ instead of showing a dialog. Windows only.
|
|||||||
|
|
||||||
\constfunc{wxPoint}{GetMarginTopLeft}{\void}
|
\constfunc{wxPoint}{GetMarginTopLeft}{\void}
|
||||||
|
|
||||||
Returns the left (x) and top (y) margins.
|
Returns the left (x) and top (y) margins in millimetres.
|
||||||
|
|
||||||
\membersection{wxPageSetupDialogData::GetMarginBottomRight}\label{wxpagesetupdialogdatagetmarginbottomright}
|
\membersection{wxPageSetupDialogData::GetMarginBottomRight}\label{wxpagesetupdialogdatagetmarginbottomright}
|
||||||
|
|
||||||
\constfunc{wxPoint}{GetMarginBottomRight}{\void}
|
\constfunc{wxPoint}{GetMarginBottomRight}{\void}
|
||||||
|
|
||||||
Returns the right (x) and bottom (y) margins.
|
Returns the right (x) and bottom (y) margins in millimetres.
|
||||||
|
|
||||||
\membersection{wxPageSetupDialogData::GetMinMarginTopLeft}\label{wxpagesetupdialogdatagetminmargintopleft}
|
\membersection{wxPageSetupDialogData::GetMinMarginTopLeft}\label{wxpagesetupdialogdatagetminmargintopleft}
|
||||||
|
|
||||||
\constfunc{wxPoint}{GetMinMarginTopLeft}{\void}
|
\constfunc{wxPoint}{GetMinMarginTopLeft}{\void}
|
||||||
|
|
||||||
Returns the left (x) and top (y) minimum margins the user can enter (Windows only).
|
Returns the left (x) and top (y) minimum margins the user can enter (Windows only). Units
|
||||||
|
are in millimetres
|
||||||
|
|
||||||
\membersection{wxPageSetupDialogData::GetMinMarginBottomRight}\label{wxpagesetupdialogdatagetminmarginbottomright}
|
\membersection{wxPageSetupDialogData::GetMinMarginBottomRight}\label{wxpagesetupdialogdatagetminmarginbottomright}
|
||||||
|
|
||||||
\constfunc{wxPoint}{GetMinMarginBottomRight}{\void}
|
\constfunc{wxPoint}{GetMinMarginBottomRight}{\void}
|
||||||
|
|
||||||
Returns the right (x) and bottom (y) minimum margins the user can enter (Windows only).
|
Returns the right (x) and bottom (y) minimum margins the user can enter (Windows only). Units
|
||||||
|
are in millimetres
|
||||||
|
|
||||||
\membersection{wxPageSetupDialogData::GetPaperId}\label{wxpagesetupdialogdatagetpaperid}
|
\membersection{wxPageSetupDialogData::GetPaperId}\label{wxpagesetupdialogdatagetpaperid}
|
||||||
|
|
||||||
@@ -169,31 +171,33 @@ instead of showing a dialog. Windows only.
|
|||||||
\func{void}{SetDefaultMinMargins}{\param{bool}{ flag}}
|
\func{void}{SetDefaultMinMargins}{\param{bool}{ flag}}
|
||||||
|
|
||||||
Pass TRUE if the page setup dialog will take its minimum margin values from the currently
|
Pass TRUE if the page setup dialog will take its minimum margin values from the currently
|
||||||
selected printer properties. Windows only.
|
selected printer properties. Windows only. Units are in millimetres
|
||||||
|
|
||||||
\membersection{wxPageSetupDialogData::SetMarginTopLeft}\label{wxpagesetupdialogdatasetmargintopleft}
|
\membersection{wxPageSetupDialogData::SetMarginTopLeft}\label{wxpagesetupdialogdatasetmargintopleft}
|
||||||
|
|
||||||
\func{void}{GetMarginTopLeft}{\param{const wxPoint\& }{pt}}
|
\func{void}{GetMarginTopLeft}{\param{const wxPoint\& }{pt}}
|
||||||
|
|
||||||
Sets the left (x) and top (y) margins.
|
Sets the left (x) and top (y) margins in millimetres.
|
||||||
|
|
||||||
\membersection{wxPageSetupDialogData::SetMarginBottomRight}\label{wxpagesetupdialogdatasetmarginbottomright}
|
\membersection{wxPageSetupDialogData::SetMarginBottomRight}\label{wxpagesetupdialogdatasetmarginbottomright}
|
||||||
|
|
||||||
\func{void}{SetMarginBottomRight}{\param{const wxPoint\& }{pt}}
|
\func{void}{SetMarginBottomRight}{\param{const wxPoint\& }{pt}}
|
||||||
|
|
||||||
Sets the right (x) and bottom (y) margins.
|
Sets the right (x) and bottom (y) margins in millimetres.
|
||||||
|
|
||||||
\membersection{wxPageSetupDialogData::SetMinMarginTopLeft}\label{wxpagesetupdialogdatasetminmargintopleft}
|
\membersection{wxPageSetupDialogData::SetMinMarginTopLeft}\label{wxpagesetupdialogdatasetminmargintopleft}
|
||||||
|
|
||||||
\func{void}{SetMinMarginTopLeft}{\param{const wxPoint\& }{pt}}
|
\func{void}{SetMinMarginTopLeft}{\param{const wxPoint\& }{pt}}
|
||||||
|
|
||||||
Sets the left (x) and top (y) minimum margins the user can enter (Windows only).
|
Sets the left (x) and top (y) minimum margins the user can enter (Windows only). Units are
|
||||||
|
in millimetres.
|
||||||
|
|
||||||
\membersection{wxPageSetupDialogData::SetMinMarginBottomRight}\label{wxpagesetupdialogdatasetminmarginbottomright}
|
\membersection{wxPageSetupDialogData::SetMinMarginBottomRight}\label{wxpagesetupdialogdatasetminmarginbottomright}
|
||||||
|
|
||||||
\func{void}{SetMinMarginBottomRight}{\param{const wxPoint\& }{pt}}
|
\func{void}{SetMinMarginBottomRight}{\param{const wxPoint\& }{pt}}
|
||||||
|
|
||||||
Sets the right (x) and bottom (y) minimum margins the user can enter (Windows only).
|
Sets the right (x) and bottom (y) minimum margins the user can enter (Windows only). Units are
|
||||||
|
in millimetres.
|
||||||
|
|
||||||
\membersection{wxPageSetupDialogData::SetPaperId}\label{wxpagesetupdialogdatasetpaperid}
|
\membersection{wxPageSetupDialogData::SetPaperId}\label{wxpagesetupdialogdatasetpaperid}
|
||||||
|
|
||||||
@@ -285,4 +289,3 @@ Returns the \helpref{page setup data}{wxpagesetupdialogdata} associated with the
|
|||||||
Shows the dialog, returning wxID\_OK if the user pressed OK, and wxID\_CANCEL
|
Shows the dialog, returning wxID\_OK if the user pressed OK, and wxID\_CANCEL
|
||||||
otherwise.
|
otherwise.
|
||||||
|
|
||||||
|
|
||||||
|
@@ -14,6 +14,12 @@ If you don't wish to calculate your own scrolling, you must call PrepareDC when
|
|||||||
within OnDraw, to set the device origin for the device context according to the current
|
within OnDraw, to set the device origin for the device context according to the current
|
||||||
scroll position.
|
scroll position.
|
||||||
|
|
||||||
|
Note that the underlying system knows nothing about scrolling coordinates, so that all system
|
||||||
|
functions (mouse events, expose events, refresh calls etc) as well as the position of subwindows
|
||||||
|
are relative to the "physical" origin of the scrolled window. If the user insert a child window at
|
||||||
|
position (10,10) and scrolls the window down 100 pixels (moving the child window out of the visible
|
||||||
|
area), the child window will report a position of (10,-90).
|
||||||
|
|
||||||
\wxheading{Derived from}
|
\wxheading{Derived from}
|
||||||
|
|
||||||
\helpref{wxPanel}{wxpanel}\\
|
\helpref{wxPanel}{wxpanel}\\
|
||||||
@@ -139,7 +145,9 @@ Enable or disable physical scrolling in the given direction. Physical
|
|||||||
scrolling is the physical transfer of bits up or down the
|
scrolling is the physical transfer of bits up or down the
|
||||||
screen when a scroll event occurs. If the application scrolls by a
|
screen when a scroll event occurs. If the application scrolls by a
|
||||||
variable amount (e.g. if there are different font sizes) then physical
|
variable amount (e.g. if there are different font sizes) then physical
|
||||||
scrolling will not work, and you should switch it off.
|
scrolling will not work, and you should switch it off. Note that you
|
||||||
|
will have to reposition child windows yourself, if physical scrolling
|
||||||
|
is disabled.
|
||||||
|
|
||||||
\wxheading{Parameters}
|
\wxheading{Parameters}
|
||||||
|
|
||||||
|
@@ -9,6 +9,7 @@ This chapter contains a selection of topic overviews.
|
|||||||
\input tcontain.tex
|
\input tcontain.tex
|
||||||
\input tlog.tex
|
\input tlog.tex
|
||||||
\input tconfig.tex
|
\input tconfig.tex
|
||||||
|
\input tunicode.tex
|
||||||
\input tbitmap.tex
|
\input tbitmap.tex
|
||||||
\input tdialog.tex
|
\input tdialog.tex
|
||||||
\input tfont.tex
|
\input tfont.tex
|
||||||
|
@@ -47,6 +47,7 @@ be compiled either in ANSI (traditional) mode or in the Unicode one.
|
|||||||
|
|
||||||
This can be achieved quite simply by using the means provided by wxWindows.
|
This can be achieved quite simply by using the means provided by wxWindows.
|
||||||
Basicly, there are only a few things to watch out for:
|
Basicly, there are only a few things to watch out for:
|
||||||
|
|
||||||
\begin{itemize}
|
\begin{itemize}
|
||||||
\item Character type ({\tt char} or {\tt wchar\_t})
|
\item Character type ({\tt char} or {\tt wchar\_t})
|
||||||
\item Literal strings (i.e. {\tt "Hello, world!"} or {\tt '*'})
|
\item Literal strings (i.e. {\tt "Hello, world!"} or {\tt '*'})
|
||||||
@@ -125,6 +126,7 @@ don't forget to enclose all string literals inside {\tt T()} macro, your
|
|||||||
program automatically becomes (almost) Unicode compliant!
|
program automatically becomes (almost) Unicode compliant!
|
||||||
|
|
||||||
Just let us state once again the rules:
|
Just let us state once again the rules:
|
||||||
|
|
||||||
\begin{itemize}
|
\begin{itemize}
|
||||||
\item Always use {\tt wxChar} instead of {\tt char}
|
\item Always use {\tt wxChar} instead of {\tt char}
|
||||||
\item Always enclose literal string constants in {\tt T()} macro unless
|
\item Always enclose literal string constants in {\tt T()} macro unless
|
||||||
@@ -154,3 +156,5 @@ useful, is \helpref{wc\_str()}{wxstringwcstr} function which always returns
|
|||||||
the Unicode string.
|
the Unicode string.
|
||||||
|
|
||||||
% TODO describe fn_str(), wx_str(), wxCharBuf classes, ...
|
% TODO describe fn_str(), wx_str(), wxCharBuf classes, ...
|
||||||
|
% Please remember to put a blank line at the end of each file! (Tex2RTF 'issue')
|
||||||
|
|
||||||
|
@@ -28,10 +28,10 @@ window class or on all platforms.
|
|||||||
\twocolwidtha{5cm}%
|
\twocolwidtha{5cm}%
|
||||||
\begin{twocollist}\itemsep=0pt
|
\begin{twocollist}\itemsep=0pt
|
||||||
\twocolitem{\windowstyle{wxSIMPLE\_BORDER}}{Displays a thin border around the window. wxBORDER is the old name
|
\twocolitem{\windowstyle{wxSIMPLE\_BORDER}}{Displays a thin border around the window. wxBORDER is the old name
|
||||||
for this style. Windows only. }
|
for this style. }
|
||||||
\twocolitem{\windowstyle{wxDOUBLE\_BORDER}}{Displays a double border. Windows only.}
|
\twocolitem{\windowstyle{wxDOUBLE\_BORDER}}{Displays a double border. Windows only.}
|
||||||
\twocolitem{\windowstyle{wxSUNKEN\_BORDER}}{Displays a sunken border.}
|
\twocolitem{\windowstyle{wxSUNKEN\_BORDER}}{Displays a sunken border.}
|
||||||
\twocolitem{\windowstyle{wxRAISED\_BORDER}}{Displays a raised border.}
|
\twocolitem{\windowstyle{wxRAISED\_BORDER}}{Displays a raised border. GTK only. }
|
||||||
\twocolitem{\windowstyle{wxSTATIC\_BORDER}}{Displays a border suitable for a static control. Windows only. }
|
\twocolitem{\windowstyle{wxSTATIC\_BORDER}}{Displays a border suitable for a static control. Windows only. }
|
||||||
\twocolitem{\windowstyle{wxTRANSPARENT\_WINDOW}}{The window is transparent, that is, it will not receive paint
|
\twocolitem{\windowstyle{wxTRANSPARENT\_WINDOW}}{The window is transparent, that is, it will not receive paint
|
||||||
events. Windows only.}
|
events. Windows only.}
|
||||||
|
@@ -365,10 +365,11 @@ as possible to the C++ spec over time.
|
|||||||
\item \helpref{wxBitmapButton}{wxbitmapbutton}
|
\item \helpref{wxBitmapButton}{wxbitmapbutton}
|
||||||
\item \helpref{wxBitmap}{wxbitmap}
|
\item \helpref{wxBitmap}{wxbitmap}
|
||||||
\item wxBMPHandler
|
\item wxBMPHandler
|
||||||
\item \helpref{wxBoxSizer}{wxBoxSizer}
|
\item \helpref{wxBoxSizer}{wxboxsizer}
|
||||||
\item \helpref{wxBrush}{wxbrush}
|
\item \helpref{wxBrush}{wxbrush}
|
||||||
\item \helpref{wxButton}{wxbutton}
|
\item \helpref{wxButton}{wxbutton}
|
||||||
\item \helpref{wxCalculateLayoutEvent}{wxcalculatelayoutevent}
|
\item \helpref{wxCalculateLayoutEvent}{wxcalculatelayoutevent}
|
||||||
|
\item wxCaret
|
||||||
\item \helpref{wxCheckBox}{wxcheckbox}
|
\item \helpref{wxCheckBox}{wxcheckbox}
|
||||||
\item \helpref{wxCheckListBox}{wxchecklistbox}
|
\item \helpref{wxCheckListBox}{wxchecklistbox}
|
||||||
\item \helpref{wxChoice}{wxchoice}
|
\item \helpref{wxChoice}{wxchoice}
|
||||||
@@ -401,14 +402,14 @@ as possible to the C++ spec over time.
|
|||||||
\item wxGridCell
|
\item wxGridCell
|
||||||
\item wxGridEvent
|
\item wxGridEvent
|
||||||
\item \helpref{wxGrid}{wxgrid}
|
\item \helpref{wxGrid}{wxgrid}
|
||||||
\item \helpref{wxHtmlCell}{wxHtmlCell}
|
\item \helpref{wxHtmlCell}{wxhtmlcell}
|
||||||
\item \helpref{wxHtmlContainerCell}{wxHtmlContainerCell}
|
\item \helpref{wxHtmlContainerCell}{wxhtmlcontainercell}
|
||||||
\item \helpref{wxHtmlParser}{wxHtmlParser}
|
\item \helpref{wxHtmlParser}{wxhtmlparser}
|
||||||
\item \helpref{wxHtmlTagHandler}{wxHtmlTagHandler}
|
\item \helpref{wxHtmlTagHandler}{wxhtmltaghandler}
|
||||||
\item \helpref{wxHtmlTag}{wxHtmlTag}
|
\item \helpref{wxHtmlTag}{wxhtmltag}
|
||||||
\item \helpref{wxHtmlWinParser}{wxHtmlWinParser}
|
\item \helpref{wxHtmlWinParser}{wxhtmlwinparser}
|
||||||
\item \helpref{wxHtmlWinTagHandler}{wxHtmlWinTagHandler}
|
\item \helpref{wxHtmlWinTagHandler}{wxhtmlwintaghandler}
|
||||||
\item \helpref{wxHtmlWindow}{wxHtmlWindow}
|
\item \helpref{wxHtmlWindow}{wxhtmlwindow}
|
||||||
\item wxIconizeEvent
|
\item wxIconizeEvent
|
||||||
\item \helpref{wxIcon}{wxicon}
|
\item \helpref{wxIcon}{wxicon}
|
||||||
\item \helpref{wxIdleEvent}{wxidleevent}
|
\item \helpref{wxIdleEvent}{wxidleevent}
|
||||||
@@ -480,7 +481,7 @@ as possible to the C++ spec over time.
|
|||||||
\item \helpref{wxSingleChoiceDialog}{wxsinglechoicedialog}
|
\item \helpref{wxSingleChoiceDialog}{wxsinglechoicedialog}
|
||||||
\item \helpref{wxSizeEvent}{wxsizeevent}
|
\item \helpref{wxSizeEvent}{wxsizeevent}
|
||||||
\item \helpref{wxSize}{wxsize}
|
\item \helpref{wxSize}{wxsize}
|
||||||
\item \helpref{wxSizer}{wxSizer}
|
\item \helpref{wxSizer}{wxsizer}
|
||||||
\item wxSizerItem
|
\item wxSizerItem
|
||||||
\item \helpref{wxSlider}{wxslider}
|
\item \helpref{wxSlider}{wxslider}
|
||||||
\item \helpref{wxSpinButton}{wxspinbutton}
|
\item \helpref{wxSpinButton}{wxspinbutton}
|
||||||
@@ -488,7 +489,7 @@ as possible to the C++ spec over time.
|
|||||||
\item \helpref{wxSplitterWindow}{wxsplitterwindow}
|
\item \helpref{wxSplitterWindow}{wxsplitterwindow}
|
||||||
\item \helpref{wxStaticBitmap}{wxstaticbitmap}
|
\item \helpref{wxStaticBitmap}{wxstaticbitmap}
|
||||||
\item \helpref{wxStaticBox}{wxstaticbox}
|
\item \helpref{wxStaticBox}{wxstaticbox}
|
||||||
\item \helpref{wxStaticBoxSizer}{wxStaticBoxSizer}
|
\item \helpref{wxStaticBoxSizer}{wxstaticboxsizer}
|
||||||
\item wxStaticLine
|
\item wxStaticLine
|
||||||
\item \helpref{wxStaticText}{wxstatictext}
|
\item \helpref{wxStaticText}{wxstatictext}
|
||||||
\item \helpref{wxStatusBar}{wxstatusbar}
|
\item \helpref{wxStatusBar}{wxstatusbar}
|
||||||
|
@@ -92,7 +92,12 @@ Using project files:
|
|||||||
src/Release/wxvc.lib. The project file src/wxvc_dll.dsp
|
src/Release/wxvc.lib. The project file src/wxvc_dll.dsp
|
||||||
will make a DLL version of wxWindow, which will go in
|
will make a DLL version of wxWindow, which will go in
|
||||||
src/DebugDLL/wxvc.[lib,dll] and src/ReleaseDLL/wxvc.[lib,dll].
|
src/DebugDLL/wxvc.[lib,dll] and src/ReleaseDLL/wxvc.[lib,dll].
|
||||||
3. Open a sample project file, choose a configuration, and compile.
|
3. If you want to use JPEG in your application (such as the image
|
||||||
|
sample), open src/jpeg/jpeg.dsp (VC++ 6 only) and compile in
|
||||||
|
Debug and Release configurations. If you have VC++ 5 or
|
||||||
|
earlier, use makefile.vc, but you may only have one set of object
|
||||||
|
files at a time in use (debug or release).
|
||||||
|
4. Open a sample project file, choose a configuration, and compile.
|
||||||
The project files don't use precompiled headers, to save
|
The project files don't use precompiled headers, to save
|
||||||
space, but you can switch PCH compiling on for greater speed.
|
space, but you can switch PCH compiling on for greater speed.
|
||||||
|
|
||||||
@@ -110,8 +115,10 @@ Using makefiles:
|
|||||||
|
|
||||||
to make the wxWindows core library without debug information
|
to make the wxWindows core library without debug information
|
||||||
(wx\lib\wx.lib).
|
(wx\lib\wx.lib).
|
||||||
|
3. If you wish to use JPEG in your applications, do the same
|
||||||
3. Change directory to wx\samples and type 'nmake -f makefile.vc'
|
procedure in src\jpeg but add the 'all' target to the
|
||||||
|
command line.
|
||||||
|
4. Change directory to wx\samples and type 'nmake -f makefile.vc'
|
||||||
to make all the samples. You can also make them individually.
|
to make all the samples. You can also make them individually.
|
||||||
|
|
||||||
Notes:
|
Notes:
|
||||||
|
@@ -37,7 +37,9 @@
|
|||||||
|
|
||||||
#include "wx/event.h" // for the base class
|
#include "wx/event.h" // for the base class
|
||||||
|
|
||||||
#include "wx/window.h" // for wxTopLevelWindows
|
#if wxUSE_GUI
|
||||||
|
#include "wx/window.h" // for wxTopLevelWindows
|
||||||
|
#endif // wxUSE_GUI
|
||||||
|
|
||||||
#if wxUSE_LOG
|
#if wxUSE_LOG
|
||||||
#include "wx/log.h"
|
#include "wx/log.h"
|
||||||
@@ -64,22 +66,33 @@ public:
|
|||||||
// prevents the program from continuing - it's a good place to create
|
// prevents the program from continuing - it's a good place to create
|
||||||
// the top level program window and return TRUE.
|
// the top level program window and return TRUE.
|
||||||
//
|
//
|
||||||
// Override: always.
|
// Override: always in GUI application, rarely in console ones.
|
||||||
|
#if wxUSE_GUI
|
||||||
virtual bool OnInit() { return FALSE; };
|
virtual bool OnInit() { return FALSE; };
|
||||||
|
#else // !GUI
|
||||||
|
virtual bool OnInit() { return TRUE; };
|
||||||
|
#endif // wxUSE_GUI
|
||||||
|
|
||||||
|
#if wxUSE_GUI
|
||||||
// a platform-dependent version of OnInit(): the code here is likely to
|
// a platform-dependent version of OnInit(): the code here is likely to
|
||||||
// depend on the toolkit. default version does nothing.
|
// depend on the toolkit. default version does nothing.
|
||||||
//
|
//
|
||||||
// Override: rarely.
|
// Override: rarely.
|
||||||
virtual bool OnInitGui() { return TRUE; }
|
virtual bool OnInitGui() { return TRUE; }
|
||||||
|
#endif // wxUSE_GUI
|
||||||
|
|
||||||
// called to start program execution - the default version just enters
|
// called to start program execution - the default version just enters
|
||||||
// the main GUI loop in which events are received and processed until
|
// the main GUI loop in which events are received and processed until
|
||||||
// the last window is not deleted (if GetExitOnFrameDelete) or
|
// the last window is not deleted (if GetExitOnFrameDelete) or
|
||||||
// ExitMainLoop() is called.
|
// ExitMainLoop() is called. In console mode programs, the execution
|
||||||
|
// of the program really starts here
|
||||||
//
|
//
|
||||||
// Override: rarely.
|
// Override: rarely in GUI applications, always in console ones.
|
||||||
|
#if wxUSE_GUI
|
||||||
virtual int OnRun() { return MainLoop(); };
|
virtual int OnRun() { return MainLoop(); };
|
||||||
|
#else // !GUI
|
||||||
|
virtual int OnRun() = 0;
|
||||||
|
#endif // wxUSE_GUI
|
||||||
|
|
||||||
// called after the main loop termination. This is a good place for
|
// called after the main loop termination. This is a good place for
|
||||||
// cleaning up (it may be too late in dtor) and is also useful if you
|
// cleaning up (it may be too late in dtor) and is also useful if you
|
||||||
@@ -102,6 +115,7 @@ public:
|
|||||||
// the worker functions - usually not used directly by the user code
|
// the worker functions - usually not used directly by the user code
|
||||||
// -----------------------------------------------------------------
|
// -----------------------------------------------------------------
|
||||||
|
|
||||||
|
#if wxUSE_GUI
|
||||||
// execute the main GUI loop, the function returns when the loop ends
|
// execute the main GUI loop, the function returns when the loop ends
|
||||||
virtual int MainLoop() = 0;
|
virtual int MainLoop() = 0;
|
||||||
|
|
||||||
@@ -118,6 +132,7 @@ public:
|
|||||||
// process the first event in the event queue (blocks until an event
|
// process the first event in the event queue (blocks until an event
|
||||||
// apperas if there are none currently)
|
// apperas if there are none currently)
|
||||||
virtual void Dispatch() = 0;
|
virtual void Dispatch() = 0;
|
||||||
|
#endif // wxUSE_GUI
|
||||||
|
|
||||||
// application info: name, description, vendor
|
// application info: name, description, vendor
|
||||||
// -------------------------------------------
|
// -------------------------------------------
|
||||||
@@ -144,6 +159,7 @@ public:
|
|||||||
const wxString& GetVendorName() const { return m_vendorName; }
|
const wxString& GetVendorName() const { return m_vendorName; }
|
||||||
void SetVendorName(const wxString& name) { m_vendorName = name; }
|
void SetVendorName(const wxString& name) { m_vendorName = name; }
|
||||||
|
|
||||||
|
#if wxUSE_GUI
|
||||||
// top level window functions
|
// top level window functions
|
||||||
// --------------------------
|
// --------------------------
|
||||||
|
|
||||||
@@ -171,6 +187,8 @@ public:
|
|||||||
void SetExitOnFrameDelete(bool flag) { m_exitOnFrameDelete = flag; }
|
void SetExitOnFrameDelete(bool flag) { m_exitOnFrameDelete = flag; }
|
||||||
bool GetExitOnFrameDelete() const { return m_exitOnFrameDelete; }
|
bool GetExitOnFrameDelete() const { return m_exitOnFrameDelete; }
|
||||||
|
|
||||||
|
#endif // wxUSE_GUI
|
||||||
|
|
||||||
// miscellaneous customization functions
|
// miscellaneous customization functions
|
||||||
// -------------------------------------
|
// -------------------------------------
|
||||||
|
|
||||||
@@ -179,10 +197,15 @@ public:
|
|||||||
// user-defined class (default implementation creates a wxLogGui
|
// user-defined class (default implementation creates a wxLogGui
|
||||||
// object) - this log object is used by default by all wxLogXXX()
|
// object) - this log object is used by default by all wxLogXXX()
|
||||||
// functions.
|
// functions.
|
||||||
virtual wxLog *CreateLogTarget() { return new wxLogGui; }
|
virtual wxLog *CreateLogTarget()
|
||||||
|
#if wxUSE_GUI
|
||||||
|
{ return new wxLogGui; }
|
||||||
|
#else // !GUI
|
||||||
|
{ return new wxLogStderr; }
|
||||||
|
#endif // wxUSE_GUI
|
||||||
#endif // wxUSE_LOG
|
#endif // wxUSE_LOG
|
||||||
|
|
||||||
|
#if wxUSE_GUI
|
||||||
// get the standard icon used by wxWin dialogs - this allows the user
|
// get the standard icon used by wxWin dialogs - this allows the user
|
||||||
// to customize the standard dialogs. The 'which' parameter is one of
|
// to customize the standard dialogs. The 'which' parameter is one of
|
||||||
// wxICON_XXX values
|
// wxICON_XXX values
|
||||||
@@ -198,6 +221,7 @@ public:
|
|||||||
// printing.
|
// printing.
|
||||||
virtual void SetPrintMode(int WXUNUSED(mode)) { }
|
virtual void SetPrintMode(int WXUNUSED(mode)) { }
|
||||||
int GetPrintMode() const { return wxPRINT_POSTSCRIPT; }
|
int GetPrintMode() const { return wxPRINT_POSTSCRIPT; }
|
||||||
|
#endif // wxUSE_GUI
|
||||||
|
|
||||||
// implementation only from now on
|
// implementation only from now on
|
||||||
// -------------------------------
|
// -------------------------------
|
||||||
@@ -228,29 +252,35 @@ protected:
|
|||||||
// TRUE if the application wants to get debug output
|
// TRUE if the application wants to get debug output
|
||||||
bool m_wantDebugOutput;
|
bool m_wantDebugOutput;
|
||||||
|
|
||||||
|
#if wxUSE_GUI
|
||||||
// the main top level window - may be NULL
|
// the main top level window - may be NULL
|
||||||
wxWindow *m_topWindow;
|
wxWindow *m_topWindow;
|
||||||
|
#endif // wxUSE_GUI
|
||||||
};
|
};
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// now include the declaration of the real class
|
// now include the declaration of the real class
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
#if defined(__WXMSW__)
|
#if wxUSE_GUI
|
||||||
#include "wx/msw/app.h"
|
#if defined(__WXMSW__)
|
||||||
#elif defined(__WXMOTIF__)
|
#include "wx/msw/app.h"
|
||||||
#include "wx/motif/app.h"
|
#elif defined(__WXMOTIF__)
|
||||||
#elif defined(__WXQT__)
|
#include "wx/motif/app.h"
|
||||||
#include "wx/qt/app.h"
|
#elif defined(__WXQT__)
|
||||||
#elif defined(__WXGTK__)
|
#include "wx/qt/app.h"
|
||||||
#include "wx/gtk/app.h"
|
#elif defined(__WXGTK__)
|
||||||
#elif defined(__WXMAC__)
|
#include "wx/gtk/app.h"
|
||||||
#include "wx/mac/app.h"
|
#elif defined(__WXMAC__)
|
||||||
#elif defined(__WXPM__)
|
#include "wx/mac/app.h"
|
||||||
#include "wx/os2/app.h"
|
#elif defined(__WXPM__)
|
||||||
#elif defined(__WXSTUBS__)
|
#include "wx/os2/app.h"
|
||||||
#include "wx/stubs/app.h"
|
#elif defined(__WXSTUBS__)
|
||||||
#endif
|
#include "wx/stubs/app.h"
|
||||||
|
#endif
|
||||||
|
#else // !GUI
|
||||||
|
typedef wxAppBase wxApp;
|
||||||
|
#endif // GUI/!GUI
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// the global data
|
// the global data
|
||||||
@@ -266,11 +296,34 @@ WXDLLEXPORT_DATA(extern wxApp*) wxTheApp;
|
|||||||
// global functions
|
// global functions
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
// event loop related functions only work in GUI programs
|
||||||
|
// ------------------------------------------------------
|
||||||
|
|
||||||
|
#if wxUSE_GUI
|
||||||
|
|
||||||
// Force an exit from main loop
|
// Force an exit from main loop
|
||||||
void WXDLLEXPORT wxExit();
|
extern void WXDLLEXPORT wxExit();
|
||||||
|
|
||||||
// Yield to other apps/messages
|
// Yield to other apps/messages
|
||||||
bool WXDLLEXPORT wxYield();
|
extern bool WXDLLEXPORT wxYield();
|
||||||
|
|
||||||
|
#endif // wxUSE_GUI
|
||||||
|
|
||||||
|
// console applications may avoid using DECLARE_APP and IMPLEMENT_APP macros
|
||||||
|
// and call these functions instead at the program startup and termination
|
||||||
|
// -------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#if wxUSE_NOGUI
|
||||||
|
|
||||||
|
// initialize the library (may be called as many times as needed, but each
|
||||||
|
// call to wxInitialize() must be matched by wxUninitialize())
|
||||||
|
extern bool WXDLLEXPORT wxInitialize();
|
||||||
|
|
||||||
|
// clean up - the library can't be used any more after the last call to
|
||||||
|
// wxUninitialize()
|
||||||
|
extern void WXDLLEXPORT wxUninitialize();
|
||||||
|
|
||||||
|
#endif // wxUSE_NOGUI
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// macros for dynamic creation of the application object
|
// macros for dynamic creation of the application object
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
// Name: listimpl.cpp
|
// Name: listimpl.cpp
|
||||||
// Purpose: helper file for implementation of dynamic lists
|
// Purpose: helper file for implementation of dynamic lists
|
||||||
// Author: Vadim Zeitlin
|
// Author: Vadim Zeitlin
|
||||||
// Modified by:
|
// Modified by:
|
||||||
// Created: 16.10.97
|
// Created: 16.10.97
|
||||||
// RCS-ID: $Id$
|
// RCS-ID: $Id$
|
||||||
// Copyright: (c) 1997 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
|
// Copyright: (c) 1997 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
|
||||||
@@ -20,6 +20,9 @@
|
|||||||
* 4) WX_DEFINE_OBJARRAY *
|
* 4) WX_DEFINE_OBJARRAY *
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
|
// needed to resolve the conflict between global T and macro parameter T
|
||||||
|
#define _WX_ERROR_REMOVE2(x) wxT("bad index in " #x "::Remove()")
|
||||||
|
|
||||||
// macro implements remaining (not inline) methods of template list
|
// macro implements remaining (not inline) methods of template list
|
||||||
// (it's private to this file)
|
// (it's private to this file)
|
||||||
#undef _DEFINE_OBJARRAY
|
#undef _DEFINE_OBJARRAY
|
||||||
@@ -58,7 +61,7 @@ void name::Empty() \
|
|||||||
\
|
\
|
||||||
void name::Remove(size_t uiIndex) \
|
void name::Remove(size_t uiIndex) \
|
||||||
{ \
|
{ \
|
||||||
wxCHECK_RET( uiIndex < Count(), _T("bad index in " #name "::Remove()") ); \
|
wxCHECK_RET( uiIndex < Count(), _WX_ERROR_REMOVE2(name) ); \
|
||||||
\
|
\
|
||||||
delete (T*)wxBaseArray::Item(uiIndex); \
|
delete (T*)wxBaseArray::Item(uiIndex); \
|
||||||
\
|
\
|
||||||
@@ -99,8 +102,8 @@ int name::Index(const T& Item, bool bFromEnd) const \
|
|||||||
} \
|
} \
|
||||||
} \
|
} \
|
||||||
\
|
\
|
||||||
return wxNOT_FOUND; \
|
return wxNOT_FOUND; \
|
||||||
}
|
}
|
||||||
|
|
||||||
// redefine the macro so that now it will generate the class implementation
|
// redefine the macro so that now it will generate the class implementation
|
||||||
// old value would provoke a compile-time error if this file is not included
|
// old value would provoke a compile-time error if this file is not included
|
||||||
|
@@ -15,6 +15,7 @@
|
|||||||
#define _WX_BUFFER_H
|
#define _WX_BUFFER_H
|
||||||
|
|
||||||
#include "wx/wxchar.h"
|
#include "wx/wxchar.h"
|
||||||
|
|
||||||
#include <string.h> // strdup
|
#include <string.h> // strdup
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
@@ -27,14 +28,14 @@ class wxCharBuffer
|
|||||||
public:
|
public:
|
||||||
wxCharBuffer(const char *str)
|
wxCharBuffer(const char *str)
|
||||||
{
|
{
|
||||||
wxASSERT_MSG( str, _T("NULL string in wxCharBuffer") );
|
wxASSERT_MSG( str, wxT("NULL string in wxCharBuffer") );
|
||||||
|
|
||||||
m_str = str ? strdup(str) : (char *)NULL;
|
m_str = str ? strdup(str) : (char *)NULL;
|
||||||
}
|
}
|
||||||
wxCharBuffer(size_t len)
|
wxCharBuffer(size_t len)
|
||||||
{
|
{
|
||||||
m_str = (char *)malloc(len+1);
|
m_str = (char *)malloc(len+1);
|
||||||
m_str[len] = '\0';
|
m_str[len] = '\0';
|
||||||
}
|
}
|
||||||
// no need to check for NULL, free() does it
|
// no need to check for NULL, free() does it
|
||||||
~wxCharBuffer() { free(m_str); }
|
~wxCharBuffer() { free(m_str); }
|
||||||
@@ -66,7 +67,7 @@ class wxWCharBuffer
|
|||||||
public:
|
public:
|
||||||
wxWCharBuffer(const wchar_t *wcs)
|
wxWCharBuffer(const wchar_t *wcs)
|
||||||
{
|
{
|
||||||
wxASSERT_MSG( wcs, _T("NULL string in wxWCharBuffer") );
|
wxASSERT_MSG( wcs, wxT("NULL string in wxWCharBuffer") );
|
||||||
|
|
||||||
if (wcs) {
|
if (wcs) {
|
||||||
size_t siz = (wcslen(wcs)+1)*sizeof(wchar_t);
|
size_t siz = (wcslen(wcs)+1)*sizeof(wchar_t);
|
||||||
@@ -78,7 +79,7 @@ public:
|
|||||||
wxWCharBuffer(size_t len)
|
wxWCharBuffer(size_t len)
|
||||||
{
|
{
|
||||||
m_wcs = (wchar_t *)malloc((len+1)*sizeof(wchar_t));
|
m_wcs = (wchar_t *)malloc((len+1)*sizeof(wchar_t));
|
||||||
m_wcs[len] = L'\0';
|
m_wcs[len] = L'\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
// no need to check for NULL, free() does it
|
// no need to check for NULL, free() does it
|
||||||
@@ -100,23 +101,23 @@ public:
|
|||||||
|
|
||||||
operator const wchar_t *() const { return m_wcs; }
|
operator const wchar_t *() const { return m_wcs; }
|
||||||
wchar_t operator[](size_t n) const { return m_wcs[n]; }
|
wchar_t operator[](size_t n) const { return m_wcs[n]; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
wchar_t *m_wcs;
|
wchar_t *m_wcs;
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if wxUSE_UNICODE
|
#if wxUSE_UNICODE
|
||||||
#define wxMB2WXbuf wxWCharBuffer
|
#define wxMB2WXbuf wxWCharBuffer
|
||||||
#define wxWX2MBbuf wxCharBuffer
|
#define wxWX2MBbuf wxCharBuffer
|
||||||
#define wxWC2WXbuf wxChar*
|
#define wxWC2WXbuf wxChar*
|
||||||
#define wxWX2WCbuf wxChar*
|
#define wxWX2WCbuf wxChar*
|
||||||
#else
|
#else // ANSI
|
||||||
#define wxMB2WXbuf wxChar*
|
#define wxMB2WXbuf wxChar*
|
||||||
#define wxWX2MBbuf wxChar*
|
#define wxWX2MBbuf wxChar*
|
||||||
#define wxWC2WXbuf wxCharBuffer
|
#define wxWC2WXbuf wxCharBuffer
|
||||||
#define wxWX2WCbuf wxWCharBuffer
|
#define wxWX2WCbuf wxWCharBuffer
|
||||||
#endif
|
#endif // Unicode/ANSI
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// template class for any kind of data
|
// template class for any kind of data
|
||||||
|
191
include/wx/db.h
191
include/wx/db.h
@@ -5,13 +5,20 @@
|
|||||||
// source such as opening and closing the data source.
|
// source such as opening and closing the data source.
|
||||||
// Author: Doug Card
|
// Author: Doug Card
|
||||||
// Modified by:
|
// Modified by:
|
||||||
// Mods: Dec, 1998: Added support for SQL statement logging and database
|
// Mods: Dec, 1998:
|
||||||
// cataloging
|
// -Added support for SQL statement logging and database cataloging
|
||||||
|
// April, 1999
|
||||||
|
// -Added QUERY_ONLY mode support to reduce default number of cursors
|
||||||
|
// -Added additional SQL logging code
|
||||||
|
// -Added DEBUG-ONLY tracking of Ctable objects to detect orphaned DB connections
|
||||||
|
// -Set ODBC option to only read committed writes to the DB so all
|
||||||
|
// databases operate the same in that respect
|
||||||
|
//
|
||||||
// Created: 9.96
|
// Created: 9.96
|
||||||
// RCS-ID: $Id$
|
// RCS-ID: $Id$
|
||||||
// Copyright: (c) 1996 Remstar International, Inc.
|
// Copyright: (c) 1996 Remstar International, Inc.
|
||||||
// Licence: wxWindows licence, plus:
|
// Licence: wxWindows licence, plus:
|
||||||
// Notice: This class library and its intellectual design are free of charge for use,
|
// Notice: This class library and its intellectual design are free of charge for use,
|
||||||
// modification, enhancement, debugging under the following conditions:
|
// modification, enhancement, debugging under the following conditions:
|
||||||
// 1) These classes may only be used as part of the implementation of a
|
// 1) These classes may only be used as part of the implementation of a
|
||||||
// wxWindows-based application
|
// wxWindows-based application
|
||||||
@@ -30,54 +37,85 @@
|
|||||||
|
|
||||||
#ifndef DB_DOT_H
|
#ifndef DB_DOT_H
|
||||||
#define DB_DOT_H
|
#define DB_DOT_H
|
||||||
|
|
||||||
#ifdef __GNUG__
|
// Use this line for wxWindows v1.x
|
||||||
#pragma interface "db.h"
|
//#include "wx_ver.h"
|
||||||
|
// Use this line for wxWindows v2.x
|
||||||
|
#include "wx/version.h"
|
||||||
|
|
||||||
|
#if wxMAJOR_VERSION == 2
|
||||||
|
#ifdef __GNUG__
|
||||||
|
#pragma interface "db.h"
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__WXMSW__) || defined(WIN32)
|
#if defined(wx_msw) || defined(__WXMSW__) || defined(WIN32)
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef _IODBC_
|
||||||
|
#if wxMAJOR_VERSION == 2
|
||||||
|
extern "C" {
|
||||||
|
#include "../../src/iodbc/isql.h"
|
||||||
|
#include "../../src/iodbc/isqlext.h"
|
||||||
|
}
|
||||||
|
#else // version == 1
|
||||||
|
extern "C" {
|
||||||
|
#include "iodbc.h"
|
||||||
|
#include "isqlext.h"
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
typedef float SFLOAT;
|
||||||
|
typedef double SDOUBLE;
|
||||||
|
typedef unsigned int UINT;
|
||||||
|
#define ULONG UDWORD
|
||||||
|
#else // msw
|
||||||
|
#define ODBCVER 0x0250
|
||||||
|
#include <sql.h>
|
||||||
|
#include <sqlext.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __WXGTK__
|
#ifdef __UNIX__
|
||||||
|
# ifndef strnicmp
|
||||||
extern "C" {
|
# define strnicmp strncasecmp
|
||||||
#include "../../src/iodbc/isql.h"
|
# endif
|
||||||
#include "../../src/iodbc/isqlext.h"
|
# ifndef stricmp
|
||||||
typedef float SFLOAT;
|
# define stricmp strcasecmp
|
||||||
typedef double SDOUBLE;
|
# endif
|
||||||
typedef unsigned int UINT;
|
#else
|
||||||
#define ULONG UDWORD
|
# include <io.h>
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
#else
|
|
||||||
|
|
||||||
#define ODBCVER 0x0250
|
|
||||||
#include <sql.h>
|
|
||||||
#include <sqlext.h>
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
enum enumDummy {enumDum1};
|
enum enumDummy {enumDum1};
|
||||||
|
|
||||||
#define SQL_C_BOOLEAN (sizeof(int) == 2 ? SQL_C_USHORT : SQL_C_ULONG)
|
#define SQL_C_BOOLEAN(datatype) (sizeof(datatype) == 1 ? SQL_C_UTINYINT : (sizeof(datatype) == 2 ? SQL_C_USHORT : SQL_C_ULONG))
|
||||||
#define SQL_C_ENUM (sizeof(enumDummy) == 2 ? SQL_C_USHORT : SQL_C_ULONG) //glt 2-21-97
|
// #define SQL_C_BOOLEAN (sizeof(Bool) == 2 ? SQL_C_USHORT : SQL_C_ULONG)
|
||||||
|
|
||||||
|
#define SQL_C_ENUM (sizeof(enumDummy) == 2 ? SQL_C_USHORT : SQL_C_ULONG)
|
||||||
|
|
||||||
|
#ifndef TRUE
|
||||||
|
#define TRUE 1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef FALSE
|
||||||
|
#define FALSE 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
const int DB_PATH_MAX = 254;
|
||||||
|
|
||||||
// Database Globals
|
// Database Globals
|
||||||
const int DB_TYPE_NAME_LEN = 40;
|
const int DB_TYPE_NAME_LEN = 40;
|
||||||
const int DB_MAX_STATEMENT_LEN = 2048;
|
const int DB_MAX_STATEMENT_LEN = 2048;
|
||||||
const int DB_MAX_WHERE_CLAUSE_LEN = 1024;
|
const int DB_MAX_WHERE_CLAUSE_LEN = 1024;
|
||||||
const int DB_MAX_ERROR_MSG_LEN = 512;
|
const int DB_MAX_ERROR_MSG_LEN = 512;
|
||||||
const int DB_MAX_ERROR_HISTORY = 5;
|
const int DB_MAX_ERROR_HISTORY = 5;
|
||||||
const int DB_MAX_TABLE_NAME_LEN = 128;
|
const int DB_MAX_TABLE_NAME_LEN = 128;
|
||||||
const int DB_MAX_COLUMN_NAME_LEN = 128;
|
const int DB_MAX_COLUMN_NAME_LEN = 128;
|
||||||
|
|
||||||
const int DB_DATA_TYPE_VARCHAR = 1;
|
const int DB_DATA_TYPE_VARCHAR = 1;
|
||||||
const int DB_DATA_TYPE_INTEGER = 2;
|
const int DB_DATA_TYPE_INTEGER = 2;
|
||||||
const int DB_DATA_TYPE_FLOAT = 3;
|
const int DB_DATA_TYPE_FLOAT = 3;
|
||||||
const int DB_DATA_TYPE_DATE = 4;
|
const int DB_DATA_TYPE_DATE = 4;
|
||||||
|
|
||||||
const int DB_SELECT_KEYFIELDS = 1;
|
const int DB_SELECT_KEYFIELDS = 1;
|
||||||
const int DB_SELECT_WHERE = 2;
|
const int DB_SELECT_WHERE = 2;
|
||||||
@@ -92,14 +130,7 @@ const int DB_DEL_WHERE = 2;
|
|||||||
const int DB_DEL_MATCHING = 3;
|
const int DB_DEL_MATCHING = 3;
|
||||||
|
|
||||||
const int DB_WHERE_KEYFIELDS = 1;
|
const int DB_WHERE_KEYFIELDS = 1;
|
||||||
const int DB_WHERE_MATCHING = 2;
|
const int DB_WHERE_MATCHING = 2;
|
||||||
|
|
||||||
const int DB_CURSOR0 = 0;
|
|
||||||
const int DB_CURSOR1 = 1;
|
|
||||||
const int DB_CURSOR2 = 2;
|
|
||||||
//const int DB_CURSOR3 = 3;
|
|
||||||
//const int DB_CURSOR4 = 4;
|
|
||||||
//const int DB_CURSOR5 = 5;
|
|
||||||
|
|
||||||
const int DB_GRANT_SELECT = 1;
|
const int DB_GRANT_SELECT = 1;
|
||||||
const int DB_GRANT_INSERT = 2;
|
const int DB_GRANT_INSERT = 2;
|
||||||
@@ -110,8 +141,8 @@ const int DB_GRANT_ALL = DB_GRANT_SELECT | DB_GRANT_INSERT | DB_GRANT_UPDA
|
|||||||
// ODBC Error codes (derived from ODBC SqlState codes)
|
// ODBC Error codes (derived from ODBC SqlState codes)
|
||||||
enum ODBC_ERRORS
|
enum ODBC_ERRORS
|
||||||
{
|
{
|
||||||
DB_FAILURE = 0,
|
DB_FAILURE = 0,
|
||||||
DB_SUCCESS = 1,
|
DB_SUCCESS = 1,
|
||||||
DB_ERR_NOT_IN_USE,
|
DB_ERR_NOT_IN_USE,
|
||||||
DB_ERR_GENERAL_WARNING, // SqlState = '01000'
|
DB_ERR_GENERAL_WARNING, // SqlState = '01000'
|
||||||
DB_ERR_DISCONNECT_ERROR, // SqlState = '01002'
|
DB_ERR_DISCONNECT_ERROR, // SqlState = '01002'
|
||||||
@@ -207,9 +238,15 @@ enum ODBC_ERRORS
|
|||||||
struct DbStuff
|
struct DbStuff
|
||||||
{
|
{
|
||||||
HENV Henv;
|
HENV Henv;
|
||||||
char Dsn[SQL_MAX_DSN_LENGTH+1]; // Data Source Name
|
char Dsn[SQL_MAX_DSN_LENGTH+1]; // Data Source Name
|
||||||
char Uid[20]; // User ID
|
char Uid[20+1]; // User ID
|
||||||
char AuthStr[20]; // Authorization string (password)
|
char AuthStr[20+1]; // Authorization string (password)
|
||||||
|
|
||||||
|
char description[SQL_MAX_DSN_LENGTH+1]; // Not sure what the max length is
|
||||||
|
char fileType[SQL_MAX_DSN_LENGTH+1]; // Not sure what the max length is
|
||||||
|
|
||||||
|
// Optionals needed for some databases like dBase
|
||||||
|
char defaultDir[DB_PATH_MAX]; // Directory that db file resides in
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
@@ -236,6 +273,30 @@ enum sqlLog
|
|||||||
sqlLogON
|
sqlLogON
|
||||||
};
|
};
|
||||||
|
|
||||||
|
enum dbms
|
||||||
|
{
|
||||||
|
dbmsUNIDENTIFIED,
|
||||||
|
dbmsORACLE,
|
||||||
|
dbmsSYBASE_ASA, // Adaptive Server Anywhere
|
||||||
|
dbmsSYBASE_ASE, // Adaptive Server Enterprise
|
||||||
|
dbmsMS_SQL_SERVER,
|
||||||
|
dbmsMY_SQL,
|
||||||
|
dbmsPOSTGRES,
|
||||||
|
dbmsACCESS,
|
||||||
|
dbmsDBASE
|
||||||
|
};
|
||||||
|
|
||||||
|
typedef enum dbms DBMS;
|
||||||
|
|
||||||
|
// The wxDB::errorList is copied to this variable when the wxDB object
|
||||||
|
// is closed. This way, the error list is still available after the
|
||||||
|
// database object is closed. This is necessary if the database
|
||||||
|
// connection fails so the calling application can show the operator
|
||||||
|
// why the connection failed. Note: as each wxDB object is closed, it
|
||||||
|
// will overwrite the errors of the previously destroyed wxDB object in
|
||||||
|
// this variable.
|
||||||
|
extern char DBerrorList[DB_MAX_ERROR_HISTORY][DB_MAX_ERROR_MSG_LEN];
|
||||||
|
|
||||||
class WXDLLEXPORT wxDB
|
class WXDLLEXPORT wxDB
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
@@ -261,7 +322,7 @@ public:
|
|||||||
struct
|
struct
|
||||||
{
|
{
|
||||||
char dbmsName[40]; // Name of the dbms product
|
char dbmsName[40]; // Name of the dbms product
|
||||||
char dbmsVer[40]; // Version # of the dbms product
|
char dbmsVer[64]; // Version # of the dbms product
|
||||||
char driverName[40]; // Driver name
|
char driverName[40]; // Driver name
|
||||||
char odbcVer[60]; // ODBC version of the driver
|
char odbcVer[60]; // ODBC version of the driver
|
||||||
char drvMgrOdbcVer[60]; // ODBC version of the driver manager
|
char drvMgrOdbcVer[60]; // ODBC version of the driver manager
|
||||||
@@ -308,6 +369,9 @@ public:
|
|||||||
//Error reporting mode
|
//Error reporting mode
|
||||||
bool silent;
|
bool silent;
|
||||||
|
|
||||||
|
// Number of Ctable objects connected to this db object
|
||||||
|
unsigned int nTables;
|
||||||
|
|
||||||
// Inf. about logical data types VARCHAR, INTEGER, FLOAT and DATE.
|
// Inf. about logical data types VARCHAR, INTEGER, FLOAT and DATE.
|
||||||
// This inf. is obtained from the ODBC driver by use of the
|
// This inf. is obtained from the ODBC driver by use of the
|
||||||
// SQLGetTypeInfo() function. The key piece of inf. is the
|
// SQLGetTypeInfo() function. The key piece of inf. is the
|
||||||
@@ -324,24 +388,28 @@ public:
|
|||||||
bool DispAllErrors(HENV aHenv, HDBC aHdbc = SQL_NULL_HDBC, HSTMT aHstmt = SQL_NULL_HSTMT);
|
bool DispAllErrors(HENV aHenv, HDBC aHdbc = SQL_NULL_HDBC, HSTMT aHstmt = SQL_NULL_HSTMT);
|
||||||
bool GetNextError(HENV aHenv, HDBC aHdbc = SQL_NULL_HDBC, HSTMT aHstmt = SQL_NULL_HSTMT);
|
bool GetNextError(HENV aHenv, HDBC aHdbc = SQL_NULL_HDBC, HSTMT aHstmt = SQL_NULL_HSTMT);
|
||||||
void DispNextError(void);
|
void DispNextError(void);
|
||||||
bool CreateView(char *viewName, char *colList, char *pSqlStmt);
|
bool CreateView(char *viewName, char *colList, char *pSqlStmt, bool attemptDrop=TRUE);
|
||||||
|
bool DropView(char *viewName);
|
||||||
bool ExecSql(char *pSqlStmt);
|
bool ExecSql(char *pSqlStmt);
|
||||||
|
bool GetNext(void);
|
||||||
|
bool GetData(UWORD colNo, SWORD cType, PTR pData, SDWORD maxLen, SDWORD FAR *cbReturned);
|
||||||
bool Grant(int privileges, char *tableName, char *userList = "PUBLIC");
|
bool Grant(int privileges, char *tableName, char *userList = "PUBLIC");
|
||||||
int TranslateSqlState(char *SQLState);
|
int TranslateSqlState(char *SQLState);
|
||||||
bool Catalog(char *userID, char *fileName = "Catalog.txt");
|
bool Catalog(char *userID, char *fileName = "Catalog.txt");
|
||||||
CcolInf *GetColumns(char *tableName[]);
|
CcolInf *GetColumns(char *tableName[], char *userID=NULL);
|
||||||
char *GetDatabaseName(void) {return dbInf.dbmsName;}
|
char *GetDatabaseName(void) {return dbInf.dbmsName;}
|
||||||
char *GetDataSource(void) {return dsn;}
|
char *GetDataSource(void) {return dsn;}
|
||||||
char *GetUsername(void) {return uid;}
|
char *GetUsername(void) {return uid;}
|
||||||
char *GetPassword(void) {return authStr;}
|
char *GetPassword(void) {return authStr;}
|
||||||
bool IsOpen(void) {return dbIsOpen;}
|
bool IsOpen(void) {return dbIsOpen;}
|
||||||
HENV GetHENV(void) {return henv;}
|
HENV GetHENV(void) {return henv;}
|
||||||
HDBC GetHDBC(void) {return hdbc;}
|
HDBC GetHDBC(void) {return hdbc;}
|
||||||
HSTMT GetHSTMT(void) {return hstmt;}
|
HSTMT GetHSTMT(void) {return hstmt;}
|
||||||
bool TableExists(char *tableName); // Table name can refer to a table, view, alias or synonym
|
bool TableExists(char *tableName, char *userID=NULL, char *path=NULL); // Table name can refer to a table, view, alias or synonym
|
||||||
void LogError(char *errMsg, char *SQLState = 0) {logError(errMsg, SQLState);}
|
void LogError(char *errMsg, char *SQLState = 0) {logError(errMsg, SQLState);}
|
||||||
bool SqlLog(enum sqlLog state, char *filename = "sqllog.txt", bool append = FALSE);
|
bool SqlLog(enum sqlLog state, char *filename = "sqllog.txt", bool append = FALSE);
|
||||||
bool WriteSqlLog(char *logMsg);
|
bool WriteSqlLog(char *logMsg);
|
||||||
|
DBMS Dbms(void);
|
||||||
|
|
||||||
}; // wxDB
|
}; // wxDB
|
||||||
|
|
||||||
@@ -359,6 +427,18 @@ struct DbList
|
|||||||
DbList *PtrNext; // Pointer to next item in the list
|
DbList *PtrNext; // Pointer to next item in the list
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
#if __WXDEBUG__ > 0
|
||||||
|
#include "wx/object.h"
|
||||||
|
class CstructTablesInUse : public wxObject
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
const char *tableName;
|
||||||
|
ULONG tableID;
|
||||||
|
class wxDB *pDb;
|
||||||
|
}; // CstructTablesInUse
|
||||||
|
#endif
|
||||||
|
|
||||||
// The following routines allow a user to get new database connections, free them
|
// The following routines allow a user to get new database connections, free them
|
||||||
// for other code segments to use, or close all of them when the application has
|
// for other code segments to use, or close all of them when the application has
|
||||||
// completed.
|
// completed.
|
||||||
@@ -368,6 +448,9 @@ bool WXDLLEXPORT FreeDbConnection(wxDB *pDb);
|
|||||||
void WXDLLEXPORT CloseDbConnections(void);
|
void WXDLLEXPORT CloseDbConnections(void);
|
||||||
int WXDLLEXPORT NumberDbConnectionsInUse(void);
|
int WXDLLEXPORT NumberDbConnectionsInUse(void);
|
||||||
|
|
||||||
|
// This function sets the sql log state for all open wxDB objects
|
||||||
|
bool SqlLog(enum sqlLog state, char *filename = "sqllog.txt");
|
||||||
|
|
||||||
// This routine allows you to query a driver manager
|
// This routine allows you to query a driver manager
|
||||||
// for a list of available datasources. Call this routine
|
// for a list of available datasources. Call this routine
|
||||||
// the first time using SQL_FETCH_FIRST. Continue to call it
|
// the first time using SQL_FETCH_FIRST. Continue to call it
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
// Name: table.h
|
// Name: dbtable.h
|
||||||
// Purpose: Declaration of the wxTable class.
|
// Purpose: Declaration of the wxTable class.
|
||||||
// Author: Doug Card
|
// Author: Doug Card
|
||||||
// Modified by:
|
// Modified by:
|
||||||
@@ -23,16 +23,30 @@
|
|||||||
// SYNOPSIS STOP
|
// SYNOPSIS STOP
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef TABLE_DOT_H
|
#ifndef DBTABLE_DOT_H
|
||||||
#define TABLE_DOT_H
|
#define DBTABLE_DOT_H
|
||||||
|
|
||||||
#ifdef __GNUG__
|
// Use this line for wxWindows v1.x
|
||||||
#pragma interface "dbtable.h"
|
//#include "wx_ver.h"
|
||||||
|
// Use this line for wxWindows v2.x
|
||||||
|
#include "wx/version.h"
|
||||||
|
|
||||||
|
#if wxMAJOR_VERSION == 2
|
||||||
|
#ifdef __GNUG__
|
||||||
|
#pragma interface "dbtable.h"
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "wx/db.h"
|
#if wxMAJOR_VERSION == 2
|
||||||
|
#include "wx/db.h"
|
||||||
|
#else
|
||||||
|
#include "db.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
const int ROWID_LEN = 24; // 18 is the max, 24 is in case it gets larger
|
const int ROWID_LEN = 24; // 18 is the max, 24 is in case it gets larger
|
||||||
|
const int DEFAULT_CURSOR = 0;
|
||||||
|
const bool QUERY_ONLY = TRUE;
|
||||||
|
const bool DISABLE_VIEW = TRUE;
|
||||||
|
|
||||||
// The following class is used to define a column of a table.
|
// The following class is used to define a column of a table.
|
||||||
// The wxTable constructor will dynamically allocate as many of
|
// The wxTable constructor will dynamically allocate as many of
|
||||||
@@ -46,7 +60,7 @@ const int ROWID_LEN = 24; // 18 is the max, 24 is in case it gets larger
|
|||||||
class WXDLLEXPORT CcolDef
|
class WXDLLEXPORT CcolDef
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
char ColName[DB_MAX_COLUMN_NAME_LEN+1]; // Column Name glt 4/19/97 added one for the null terminator
|
char ColName[DB_MAX_COLUMN_NAME_LEN+1]; // Column Name
|
||||||
int DbDataType; // Logical Data Type; e.g. DB_DATA_TYPE_INTEGER
|
int DbDataType; // Logical Data Type; e.g. DB_DATA_TYPE_INTEGER
|
||||||
int SqlCtype; // C data type; e.g. SQL_C_LONG
|
int SqlCtype; // C data type; e.g. SQL_C_LONG
|
||||||
void *PtrDataObj; // Address of the data object
|
void *PtrDataObj; // Address of the data object
|
||||||
@@ -56,13 +70,14 @@ public:
|
|||||||
bool InsertAllowed; // Specifies whether this column should be included in an INSERT statement
|
bool InsertAllowed; // Specifies whether this column should be included in an INSERT statement
|
||||||
bool DerivedCol; // Specifies whether this column is a derived value
|
bool DerivedCol; // Specifies whether this column is a derived value
|
||||||
SDWORD CbValue; // Internal use only!!!
|
SDWORD CbValue; // Internal use only!!!
|
||||||
|
bool Null; // NOT FULLY IMPLEMENTED - Allows NULL values in Inserts and Updates
|
||||||
}; // CcolDef
|
}; // CcolDef
|
||||||
|
|
||||||
// This structure is used when creating secondary indexes.
|
// This structure is used when creating secondary indexes.
|
||||||
class WXDLLEXPORT CidxDef
|
class WXDLLEXPORT CidxDef
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
char ColName[DB_MAX_COLUMN_NAME_LEN+1]; // Column Name glt 4/19/97 added one for the null terminator
|
char ColName[DB_MAX_COLUMN_NAME_LEN+1];
|
||||||
bool Ascending;
|
bool Ascending;
|
||||||
}; // CidxDef
|
}; // CidxDef
|
||||||
|
|
||||||
@@ -70,8 +85,10 @@ class WXDLLEXPORT wxTable
|
|||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
ULONG tableID; // Used for debugging. This can help to match up mismatched constructors/destructors
|
||||||
|
|
||||||
// Private member variables
|
// Private member variables
|
||||||
int currCursorNo;
|
UDWORD cursorType;
|
||||||
|
|
||||||
// Private member functions
|
// Private member functions
|
||||||
bool bindInsertParams(void);
|
bool bindInsertParams(void);
|
||||||
@@ -91,17 +108,20 @@ public:
|
|||||||
HENV henv; // ODBC Environment handle
|
HENV henv; // ODBC Environment handle
|
||||||
HDBC hdbc; // ODBC DB Connection handle
|
HDBC hdbc; // ODBC DB Connection handle
|
||||||
HSTMT hstmt; // ODBC Statement handle
|
HSTMT hstmt; // ODBC Statement handle
|
||||||
// HSTMT c0, c1, c2, c3, c4, c5; // Cursors 0 through 5
|
HSTMT *hstmtDefault; // Default cursor
|
||||||
HSTMT c0, c1, c2; // Limited to Cursors 0 through 2 for now
|
|
||||||
HSTMT hstmtInsert; // ODBC Statement handle used specifically for inserts
|
HSTMT hstmtInsert; // ODBC Statement handle used specifically for inserts
|
||||||
HSTMT hstmtDelete; // ODBC Statement handle used specifically for deletes
|
HSTMT hstmtDelete; // ODBC Statement handle used specifically for deletes
|
||||||
HSTMT hstmtUpdate; // ODBC Statement handle used specifically for updates
|
HSTMT hstmtUpdate; // ODBC Statement handle used specifically for updates
|
||||||
HSTMT hstmtCount; // ODBC Statement handle used specifically for COUNT(*)
|
HSTMT hstmtInternal; // ODBC Statement handle used internally only
|
||||||
|
HSTMT *hstmtCount; // ODBC Statement handle used by Count() function (No binding of columns)
|
||||||
|
|
||||||
// Table Inf.
|
// Table Inf.
|
||||||
char tableName[DB_MAX_TABLE_NAME_LEN+1]; // Table name
|
char tableName[DB_MAX_TABLE_NAME_LEN+1]; // Table name
|
||||||
char queryTableName[DB_MAX_TABLE_NAME_LEN+1]; // Query Table Name
|
char queryTableName[DB_MAX_TABLE_NAME_LEN+1]; // Query Table Name
|
||||||
int noCols; // # of columns in the table
|
int noCols; // # of columns in the table
|
||||||
|
bool queryOnly; // Query Only, no inserts, updates or deletes
|
||||||
|
|
||||||
|
char tablePath[DB_PATH_MAX]; // needed for dBase tables
|
||||||
|
|
||||||
// Column Definitions
|
// Column Definitions
|
||||||
CcolDef *colDefs; // Array of CcolDef structures
|
CcolDef *colDefs; // Array of CcolDef structures
|
||||||
@@ -109,17 +129,20 @@ public:
|
|||||||
// Where, Order By and From clauses
|
// Where, Order By and From clauses
|
||||||
char *where; // Standard SQL where clause, minus the word WHERE
|
char *where; // Standard SQL where clause, minus the word WHERE
|
||||||
char *orderBy; // Standard SQL order by clause, minus the ORDER BY
|
char *orderBy; // Standard SQL order by clause, minus the ORDER BY
|
||||||
char *from; // Allows for joins in a Ctable::Query(). Format: ",tbl,tbl..."
|
char *from; // Allows for joins in a wxTable::Query(). Format: ",tbl,tbl..."
|
||||||
|
|
||||||
// Flags
|
// Flags
|
||||||
bool selectForUpdate;
|
bool selectForUpdate;
|
||||||
|
|
||||||
// Public member functions
|
// Public member functions
|
||||||
wxTable(wxDB *pwxDB, const char *tblName, const int nCols, const char *qryTblName = 0);
|
wxTable(wxDB *pwxDB, const char *tblName, const int nCols,
|
||||||
|
const char *qryTblName = 0, bool qryOnly = !QUERY_ONLY, char *tblPath=NULL);
|
||||||
virtual ~wxTable();
|
virtual ~wxTable();
|
||||||
bool Open(void);
|
bool Open(void);
|
||||||
bool CreateTable(void);
|
bool CreateTable(bool attemptDrop=TRUE);
|
||||||
bool CreateIndex(char * idxName, bool unique, int noIdxCols, CidxDef *pIdxDefs);
|
bool DropTable(void);
|
||||||
|
bool CreateIndex(char * idxName, bool unique, int noIdxCols, CidxDef *pIdxDefs, bool attemptDrop=TRUE);
|
||||||
|
bool DropIndex(char * idxName);
|
||||||
bool CloseCursor(HSTMT cursor);
|
bool CloseCursor(HSTMT cursor);
|
||||||
int Insert(void);
|
int Insert(void);
|
||||||
bool Update(void);
|
bool Update(void);
|
||||||
@@ -154,11 +177,19 @@ public:
|
|||||||
void SetColDefs (int index, char *fieldName, int dataType, void *pData, int cType,
|
void SetColDefs (int index, char *fieldName, int dataType, void *pData, int cType,
|
||||||
int size, bool keyField = FALSE, bool upd = TRUE,
|
int size, bool keyField = FALSE, bool upd = TRUE,
|
||||||
bool insAllow = TRUE, bool derivedCol = FALSE);
|
bool insAllow = TRUE, bool derivedCol = FALSE);
|
||||||
bool SetCursor(int cursorNo = DB_CURSOR0);
|
HSTMT *NewCursor(bool setCursor = FALSE, bool bindColumns = TRUE);
|
||||||
int GetCursor(void) { return(currCursorNo); }
|
bool DeleteCursor(HSTMT *hstmtDel);
|
||||||
|
void SetCursor(HSTMT *hstmtActivate = (void **) DEFAULT_CURSOR);
|
||||||
|
HSTMT GetCursor(void) { return(hstmt); }
|
||||||
ULONG Count(void);
|
ULONG Count(void);
|
||||||
int DB_STATUS(void) { return(pDb->DB_STATUS); }
|
int DB_STATUS(void) { return(pDb->DB_STATUS); }
|
||||||
bool Refresh(void);
|
bool Refresh(void);
|
||||||
|
bool SetNull(int colNo);
|
||||||
|
bool SetNull(char *colName);
|
||||||
|
|
||||||
|
#if __WXDEBUG__ > 0
|
||||||
|
ULONG GetTableID() { return tableID; };
|
||||||
|
#endif
|
||||||
|
|
||||||
}; // wxTable
|
}; // wxTable
|
||||||
|
|
||||||
|
@@ -1,12 +1,12 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
// Name: debug.h
|
// Name: wx/debug.h
|
||||||
// Purpose: Misc debug functions and macros
|
// Purpose: Misc debug functions and macros
|
||||||
// Author: Vadim Zeitlin
|
// Author: Vadim Zeitlin
|
||||||
// Modified by:
|
// Modified by:
|
||||||
// Created: 29/01/98
|
// Created: 29/01/98
|
||||||
// RCS-ID: $Id$
|
// RCS-ID: $Id$
|
||||||
// Copyright: (c) 1998 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
|
// Copyright: (c) 1998 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
|
||||||
// Licence: wxWindows license
|
// Licence: wxWindows license
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#ifndef _WX_DEBUG_H_
|
#ifndef _WX_DEBUG_H_
|
||||||
@@ -16,24 +16,19 @@
|
|||||||
|
|
||||||
#include "wx/wxchar.h"
|
#include "wx/wxchar.h"
|
||||||
|
|
||||||
#ifndef __TFILE__
|
|
||||||
#define __XFILE__(x) _T(x)
|
|
||||||
#define __TFILE__ __XFILE__(__FILE__)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
/**
|
/**
|
||||||
@name Debugging macros
|
@name Debugging macros
|
||||||
|
|
||||||
All debugging macros rely on ASSERT() which in turn calls user-defined
|
All debugging macros rely on ASSERT() which in turn calls user-defined
|
||||||
OnAssert() function. To keep things simple, it's called even when the
|
OnAssert() function. To keep things simple, it's called even when the
|
||||||
expression is TRUE (i.e. everything is ok) and by default does nothing: just
|
expression is TRUE (i.e. everything is ok) and by default does nothing: just
|
||||||
returns the same value back. But if you redefine it to do something more sexy
|
returns the same value back. But if you redefine it to do something more sexy
|
||||||
(popping up a message box in your favourite GUI, sending you e-mail or
|
(popping up a message box in your favourite GUI, sending you e-mail or
|
||||||
whatever) it will affect all ASSERTs, FAILs and CHECKs in your code.
|
whatever) it will affect all ASSERTs, FAILs and CHECKs in your code.
|
||||||
<BR>
|
<BR>
|
||||||
<BR>
|
<BR>
|
||||||
<b>Warning</b>: if you don't like advices on programming style, don't read
|
<b>Warning</b>: if you don't like advices on programming style, don't read
|
||||||
further! ;-)
|
further! ;-)
|
||||||
<BR>
|
<BR>
|
||||||
<BR>
|
<BR>
|
||||||
@@ -94,13 +89,13 @@
|
|||||||
|
|
||||||
// NB: these macros work also in release mode!
|
// NB: these macros work also in release mode!
|
||||||
|
|
||||||
/**
|
/**
|
||||||
These macros must be used only in invalid situation: for example, an
|
These macros must be used only in invalid situation: for example, an
|
||||||
invalid parameter (NULL pointer) is passed to a function. Instead of
|
invalid parameter (NULL pointer) is passed to a function. Instead of
|
||||||
dereferencing it and causing core dump the function might try using
|
dereferencing it and causing core dump the function might try using
|
||||||
CHECK( p != NULL ) or CHECK( p != NULL, return LogError("p is NULL!!") )
|
CHECK( p != NULL ) or CHECK( p != NULL, return LogError("p is NULL!!") )
|
||||||
|
|
||||||
@name Macros which remain even in 'release' mode
|
@name Macros which remain even in 'release' mode
|
||||||
*/
|
*/
|
||||||
//@{
|
//@{
|
||||||
/// check that expression is true, "return" if not (also FAILs in debug mode)
|
/// check that expression is true, "return" if not (also FAILs in debug mode)
|
||||||
|
@@ -47,10 +47,6 @@
|
|||||||
#endif
|
#endif
|
||||||
#endif // Sun
|
#endif // Sun
|
||||||
|
|
||||||
#if defined(__hpux) && !defined(__HPUX__)
|
|
||||||
#define __HPUX__
|
|
||||||
#endif // HP-UX
|
|
||||||
|
|
||||||
#elif defined(applec) || defined(THINK_C) || ( defined( __MWERKS__ ) && !defined(__INTEL__) )
|
#elif defined(applec) || defined(THINK_C) || ( defined( __MWERKS__ ) && !defined(__INTEL__) )
|
||||||
// MacOS
|
// MacOS
|
||||||
#elif defined(__OS2__)
|
#elif defined(__OS2__)
|
||||||
@@ -115,13 +111,11 @@
|
|||||||
# pragma suppress 571 // Virtual function hiding
|
# pragma suppress 571 // Virtual function hiding
|
||||||
#endif // __SALFORDC__
|
#endif // __SALFORDC__
|
||||||
|
|
||||||
#ifdef __VISUALC__
|
#if defined(__VISUALC__) && !defined(WIN32)
|
||||||
#ifndef WIN32
|
// VC1.5 does not have LPTSTR type
|
||||||
// VC1.5 does not have LPTSTR type
|
#define LPTSTR LPSTR
|
||||||
#define LPTSTR LPSTR
|
#define LPCTSTR LPCSTR
|
||||||
#define LPCTSTR LPCSTR
|
#endif // VC++ 1.5
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// Digital Unix C++ compiler only defines this symbol for .cxx and .hxx files,
|
// Digital Unix C++ compiler only defines this symbol for .cxx and .hxx files,
|
||||||
// so define it ourselves
|
// so define it ourselves
|
||||||
@@ -190,8 +184,9 @@
|
|||||||
// Make sure the environment is set correctly
|
// Make sure the environment is set correctly
|
||||||
#if defined(__WXMSW__) && defined(__X__)
|
#if defined(__WXMSW__) && defined(__X__)
|
||||||
#error "Target can't be both X and Windows"
|
#error "Target can't be both X and Windows"
|
||||||
#elif !defined(__WXMOTIF__) && !defined(__WXMSW__) && !defined(__WXGTK__) && !defined(__WXPM__) && \
|
#elif !defined(__WXMOTIF__) && !defined(__WXMSW__) && !defined(__WXGTK__) && \
|
||||||
!defined(__WXMAC__) && !defined(__X__) && !defined(__WXQT__) && !defined(__WXSTUBS__)
|
!defined(__WXPM__) && !defined(__WXMAC__) && !defined(__X__) && \
|
||||||
|
!defined(__WXQT__) && !defined(__WXSTUBS__) && wxUSE_GUI
|
||||||
#error "No Target! Use -D[__WXMOTIF__|__WXGTK__|__WXMSW__|__WXMAC__|__WXQT__|__WXPM__|__WXSTUBS__]"
|
#error "No Target! Use -D[__WXMOTIF__|__WXGTK__|__WXMSW__|__WXMAC__|__WXQT__|__WXPM__|__WXSTUBS__]"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -207,6 +202,12 @@
|
|||||||
#undef PACKAGE
|
#undef PACKAGE
|
||||||
#undef VERSION
|
#undef VERSION
|
||||||
|
|
||||||
|
// this has to be done after including setup.h which might
|
||||||
|
// define __HPUX__ 1 itself
|
||||||
|
#if defined(__hpux) && !defined(__HPUX__)
|
||||||
|
#define __HPUX__
|
||||||
|
#endif // HP-UX
|
||||||
|
|
||||||
// if we're on a Unixsystem but didn't use configure (so that setup.h didn't
|
// if we're on a Unixsystem but didn't use configure (so that setup.h didn't
|
||||||
// define __UNIX__), do define __UNIX__ now
|
// define __UNIX__), do define __UNIX__ now
|
||||||
#if !defined(__UNIX__) && defined(__UNIX_LIKE__)
|
#if !defined(__UNIX__) && defined(__UNIX_LIKE__)
|
||||||
@@ -215,6 +216,17 @@
|
|||||||
|
|
||||||
#include "wx/version.h"
|
#include "wx/version.h"
|
||||||
|
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
// compatibility defines
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
// possibility to build non GUI apps is new, so don't burden ourselves with
|
||||||
|
// compatibility code
|
||||||
|
#if !wxUSE_GUI
|
||||||
|
#undef WXWIN_COMPATIBILITY_2
|
||||||
|
#define WXWIN_COMPATIBILITY_2 0
|
||||||
|
#endif // !GUI
|
||||||
|
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
// non portable C++ features
|
// non portable C++ features
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
@@ -223,21 +235,14 @@
|
|||||||
// check for native bool type and TRUE/FALSE constants
|
// check for native bool type and TRUE/FALSE constants
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
#if defined(__WXMOTIF__) || defined(__WXGTK__) || defined(__WXQT__) || defined(__WXPM__) || defined(__WXSTUBS__)
|
// define boolean constants if not done yet
|
||||||
// Bool is now obsolete, use bool instead
|
#ifndef TRUE
|
||||||
// typedef int Bool;
|
#define TRUE 1
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef TRUE
|
#ifndef FALSE
|
||||||
#define TRUE 1
|
#define FALSE 0
|
||||||
#define FALSE 0
|
#endif
|
||||||
#define Bool_DEFINED
|
|
||||||
#endif
|
|
||||||
#elif defined(__WXMSW__)
|
|
||||||
#ifndef TRUE
|
|
||||||
#define TRUE 1
|
|
||||||
#define FALSE 0
|
|
||||||
#endif
|
|
||||||
#endif // TRUE/FALSE
|
|
||||||
|
|
||||||
// Add more tests here for Windows compilers that already define bool
|
// Add more tests here for Windows compilers that already define bool
|
||||||
// (under Unix, configure tests for this)
|
// (under Unix, configure tests for this)
|
||||||
@@ -870,11 +875,11 @@ enum wxStretch
|
|||||||
/*
|
/*
|
||||||
* wxGauge flags
|
* wxGauge flags
|
||||||
*/
|
*/
|
||||||
#define wxGA_PROGRESSBAR 0x0004
|
|
||||||
#define wxGA_HORIZONTAL wxHORIZONTAL
|
#define wxGA_HORIZONTAL wxHORIZONTAL
|
||||||
#define wxGA_VERTICAL wxVERTICAL
|
#define wxGA_VERTICAL wxVERTICAL
|
||||||
|
#define wxGA_PROGRESSBAR 0x0010
|
||||||
// Windows only
|
// Windows only
|
||||||
#define wxGA_SMOOTH 0x0010
|
#define wxGA_SMOOTH 0x0020
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* wxSlider flags
|
* wxSlider flags
|
||||||
|
@@ -19,12 +19,14 @@
|
|||||||
#if wxUSE_DIALUP_MANAGER
|
#if wxUSE_DIALUP_MANAGER
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// constants
|
// misc
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
class WXDLLEXPORT wxArrayString;
|
||||||
|
|
||||||
extern const wxChar *wxEmptyString;
|
extern const wxChar *wxEmptyString;
|
||||||
|
|
||||||
#define WXDIALUP_MANAGER_DEFAULT_BEACONHOST _T("www.yahoo.com")
|
#define WXDIALUP_MANAGER_DEFAULT_BEACONHOST wxT("www.yahoo.com")
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// A class which groups functions dealing with connecting to the network from a
|
// A class which groups functions dealing with connecting to the network from a
|
||||||
@@ -65,8 +67,17 @@ public:
|
|||||||
// operations
|
// operations
|
||||||
// ----------
|
// ----------
|
||||||
|
|
||||||
|
// fills the array with the names of all possible values for the first
|
||||||
|
// parameter to Dial() on this machine and returns their number (may be 0)
|
||||||
|
virtual size_t GetISPNames(wxArrayString& names) const = 0;
|
||||||
|
|
||||||
// dial the given ISP, use username and password to authentificate
|
// dial the given ISP, use username and password to authentificate
|
||||||
//
|
//
|
||||||
|
// if no nameOfISP is given, the function will select the default one
|
||||||
|
//
|
||||||
|
// if no username/password are given, the function will try to do without
|
||||||
|
// them, but will ask the user if really needed
|
||||||
|
//
|
||||||
// if async parameter is FALSE, the function waits until the end of dialing
|
// if async parameter is FALSE, the function waits until the end of dialing
|
||||||
// and returns TRUE upon successful completion.
|
// and returns TRUE upon successful completion.
|
||||||
// if async is TRUE, the function only initiates the connection and returns
|
// if async is TRUE, the function only initiates the connection and returns
|
||||||
@@ -78,7 +89,7 @@ public:
|
|||||||
bool async = TRUE) = 0;
|
bool async = TRUE) = 0;
|
||||||
|
|
||||||
// returns TRUE if (async) dialing is in progress
|
// returns TRUE if (async) dialing is in progress
|
||||||
virtual bool IsDialling() const = 0;
|
virtual bool IsDialing() const = 0;
|
||||||
|
|
||||||
// cancel dialing the number initiated with Dial(async = TRUE)
|
// cancel dialing the number initiated with Dial(async = TRUE)
|
||||||
// NB: this won't result in DISCONNECTED event being sent
|
// NB: this won't result in DISCONNECTED event being sent
|
||||||
@@ -90,6 +101,14 @@ public:
|
|||||||
// online status
|
// online status
|
||||||
// -------------
|
// -------------
|
||||||
|
|
||||||
|
// returns TRUE if the computer has a permanent network connection (i.e. is
|
||||||
|
// on a LAN) and so there is no need to use Dial() function to go online
|
||||||
|
//
|
||||||
|
// NB: this functions tries to guess the result and it is not always
|
||||||
|
// guaranteed to be correct, so it's better to ask user for
|
||||||
|
// confirmation or give him a possibility to override it
|
||||||
|
virtual bool IsAlwaysOnline() const = 0;
|
||||||
|
|
||||||
// returns TRUE if the computer is connected to the network: under Windows,
|
// returns TRUE if the computer is connected to the network: under Windows,
|
||||||
// this just means that a RAS connection exists, under Unix we check that
|
// this just means that a RAS connection exists, under Unix we check that
|
||||||
// the "well-known host" (as specified by SetWellKnownHost) is reachable
|
// the "well-known host" (as specified by SetWellKnownHost) is reachable
|
||||||
@@ -129,8 +148,8 @@ public:
|
|||||||
// Sets the commands to start up the network and to hang up again. Used by
|
// Sets the commands to start up the network and to hang up again. Used by
|
||||||
// the Unix implementations only.
|
// the Unix implementations only.
|
||||||
virtual void
|
virtual void
|
||||||
SetConnectCommand(const wxString& commandDial = _T("/usr/bin/pon"),
|
SetConnectCommand(const wxString& commandDial = wxT("/usr/bin/pon"),
|
||||||
const wxString& commandHangup = _T("/usr/bin/poff")) = 0;
|
const wxString& commandHangup = wxT("/usr/bin/poff")) = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
@@ -164,6 +183,7 @@ typedef void (wxObject::*wxDialUpEventFunction)(wxDialUpEvent&);
|
|||||||
#define EVT_DIALUP_CONNECTED(func) { wxEVT_DIALUP_CONNECTED, -1, -1, (wxObjectEventFunction) (wxEventFunction) (wxDialUpEventFunction) & func, NULL},
|
#define EVT_DIALUP_CONNECTED(func) { wxEVT_DIALUP_CONNECTED, -1, -1, (wxObjectEventFunction) (wxEventFunction) (wxDialUpEventFunction) & func, NULL},
|
||||||
#define EVT_DIALUP_DISCONNECTED(func) { wxEVT_DIALUP_DISCONNECTED, -1, -1, (wxObjectEventFunction) (wxEventFunction) (wxDialUpEventFunction) & func, NULL},
|
#define EVT_DIALUP_DISCONNECTED(func) { wxEVT_DIALUP_DISCONNECTED, -1, -1, (wxObjectEventFunction) (wxEventFunction) (wxDialUpEventFunction) & func, NULL},
|
||||||
|
|
||||||
|
|
||||||
#endif // wxUSE_DIALUP_MANAGER
|
#endif // wxUSE_DIALUP_MANAGER
|
||||||
|
|
||||||
#endif // _WX_NET_H
|
#endif // _WX_NET_H
|
||||||
|
@@ -151,6 +151,11 @@ private:
|
|||||||
// template classes
|
// template classes
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
|
|
||||||
|
// resolves the name conflict between the wxT() macor and T typedef: we can't
|
||||||
|
// use wxT() inside WX_DEFINE_ARRAY!
|
||||||
|
#define _WX_ERROR_SIZEOF wxT("illegal use of DEFINE_ARRAY")
|
||||||
|
#define _WX_ERROR_REMOVE wxT("removing inexisting element in wxArray::Remove")
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// This macro generates a new array class. It is intended for storage of simple
|
// This macro generates a new array class. It is intended for storage of simple
|
||||||
// types of sizeof()<=sizeof(long) or pointers if sizeof(pointer)<=sizeof(long)
|
// types of sizeof()<=sizeof(long) or pointers if sizeof(pointer)<=sizeof(long)
|
||||||
@@ -170,7 +175,7 @@ public: \
|
|||||||
size_t type = sizeof(T); \
|
size_t type = sizeof(T); \
|
||||||
size_t sizelong = sizeof(long); \
|
size_t sizelong = sizeof(long); \
|
||||||
if ( type > sizelong ) \
|
if ( type > sizelong ) \
|
||||||
{ wxFAIL_MSG( _T("illegal use of DEFINE_ARRAY") ); } \
|
{ wxFAIL_MSG( _WX_ERROR_SIZEOF ); } \
|
||||||
} \
|
} \
|
||||||
\
|
\
|
||||||
name& operator=(const name& src) \
|
name& operator=(const name& src) \
|
||||||
@@ -197,7 +202,7 @@ public: \
|
|||||||
void Remove(T Item) \
|
void Remove(T Item) \
|
||||||
{ int iIndex = Index(Item); \
|
{ int iIndex = Index(Item); \
|
||||||
wxCHECK2_MSG( iIndex != wxNOT_FOUND, return, \
|
wxCHECK2_MSG( iIndex != wxNOT_FOUND, return, \
|
||||||
_T("removing inexisting element in wxArray::Remove") ); \
|
_WX_ERROR_REMOVE); \
|
||||||
wxBaseArray::Remove((size_t)iIndex); } \
|
wxBaseArray::Remove((size_t)iIndex); } \
|
||||||
\
|
\
|
||||||
void Sort(CMPFUNC##T fCmp) { wxBaseArray::Sort((CMPFUNC)fCmp); } \
|
void Sort(CMPFUNC##T fCmp) { wxBaseArray::Sort((CMPFUNC)fCmp); } \
|
||||||
@@ -232,7 +237,7 @@ public: \
|
|||||||
{ size_t type = sizeof(T); \
|
{ size_t type = sizeof(T); \
|
||||||
size_t sizelong = sizeof(long); \
|
size_t sizelong = sizeof(long); \
|
||||||
if ( type > sizelong ) \
|
if ( type > sizelong ) \
|
||||||
{ wxFAIL_MSG( _T("illegal use of DEFINE_ARRAY") ); } \
|
{ wxFAIL_MSG( _WX_ERROR_SIZEOF ); } \
|
||||||
m_fnCompare = fn; \
|
m_fnCompare = fn; \
|
||||||
} \
|
} \
|
||||||
\
|
\
|
||||||
@@ -259,7 +264,7 @@ public: \
|
|||||||
void Remove(T Item) \
|
void Remove(T Item) \
|
||||||
{ int iIndex = Index(Item); \
|
{ int iIndex = Index(Item); \
|
||||||
wxCHECK2_MSG( iIndex != wxNOT_FOUND, return, \
|
wxCHECK2_MSG( iIndex != wxNOT_FOUND, return, \
|
||||||
_T("removing inexisting element in wxArray::Remove") ); \
|
_WX_ERROR_REMOVE ); \
|
||||||
wxBaseArray::Remove((size_t)iIndex); } \
|
wxBaseArray::Remove((size_t)iIndex); } \
|
||||||
\
|
\
|
||||||
private: \
|
private: \
|
||||||
|
@@ -18,16 +18,31 @@
|
|||||||
|
|
||||||
#include "wx/defs.h"
|
#include "wx/defs.h"
|
||||||
#include "wx/object.h"
|
#include "wx/object.h"
|
||||||
#include "wx/gdicmn.h"
|
|
||||||
|
#if wxUSE_GUI
|
||||||
|
#include "wx/gdicmn.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#if wxUSE_THREADS
|
#if wxUSE_THREADS
|
||||||
#include "wx/thread.h"
|
#include "wx/thread.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
// ----------------------------------------------------------------------------
|
||||||
* Event types
|
// forward declarations
|
||||||
*
|
// ----------------------------------------------------------------------------
|
||||||
*/
|
|
||||||
|
class WXDLLEXPORT wxList;
|
||||||
|
|
||||||
|
#if wxUSE_GUI
|
||||||
|
class WXDLLEXPORT wxClientData;
|
||||||
|
class WXDLLEXPORT wxDC;
|
||||||
|
class WXDLLEXPORT wxMenu;
|
||||||
|
class WXDLLEXPORT wxWindow;
|
||||||
|
#endif // wxUSE_GUI
|
||||||
|
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
// Event types
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
typedef int wxEventType;
|
typedef int wxEventType;
|
||||||
|
|
||||||
@@ -336,6 +351,8 @@ public:
|
|||||||
bool m_isCommandEvent;
|
bool m_isCommandEvent;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#if wxUSE_GUI
|
||||||
|
|
||||||
// Item or menu event class
|
// Item or menu event class
|
||||||
/*
|
/*
|
||||||
wxEVT_COMMAND_BUTTON_CLICKED
|
wxEVT_COMMAND_BUTTON_CLICKED
|
||||||
@@ -354,8 +371,6 @@ public:
|
|||||||
wxEVT_COMMAND_COMBOBOX_SELECTED
|
wxEVT_COMMAND_COMBOBOX_SELECTED
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class WXDLLEXPORT wxClientData;
|
|
||||||
|
|
||||||
class WXDLLEXPORT wxCommandEvent : public wxEvent
|
class WXDLLEXPORT wxCommandEvent : public wxEvent
|
||||||
{
|
{
|
||||||
DECLARE_DYNAMIC_CLASS(wxCommandEvent)
|
DECLARE_DYNAMIC_CLASS(wxCommandEvent)
|
||||||
@@ -523,7 +538,6 @@ public:
|
|||||||
wxEVT_NC_RIGHT_DCLICK,
|
wxEVT_NC_RIGHT_DCLICK,
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class WXDLLEXPORT wxDC;
|
|
||||||
class WXDLLEXPORT wxMouseEvent : public wxEvent
|
class WXDLLEXPORT wxMouseEvent : public wxEvent
|
||||||
{
|
{
|
||||||
DECLARE_DYNAMIC_CLASS(wxMouseEvent)
|
DECLARE_DYNAMIC_CLASS(wxMouseEvent)
|
||||||
@@ -764,7 +778,6 @@ public:
|
|||||||
wxEVT_ERASE_BACKGROUND
|
wxEVT_ERASE_BACKGROUND
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class WXDLLEXPORT wxDC;
|
|
||||||
class WXDLLEXPORT wxEraseEvent : public wxEvent
|
class WXDLLEXPORT wxEraseEvent : public wxEvent
|
||||||
{
|
{
|
||||||
DECLARE_DYNAMIC_CLASS(wxEraseEvent)
|
DECLARE_DYNAMIC_CLASS(wxEraseEvent)
|
||||||
@@ -884,7 +897,7 @@ public:
|
|||||||
{
|
{
|
||||||
// GetVeto() will return FALSE anyhow...
|
// GetVeto() will return FALSE anyhow...
|
||||||
wxCHECK_RET( m_canVeto,
|
wxCHECK_RET( m_canVeto,
|
||||||
_T("call to Veto() ignored (can't veto this event)") );
|
wxT("call to Veto() ignored (can't veto this event)") );
|
||||||
|
|
||||||
m_veto = veto;
|
m_veto = veto;
|
||||||
}
|
}
|
||||||
@@ -1069,36 +1082,11 @@ public:
|
|||||||
void CopyObject(wxObject& obj) const;
|
void CopyObject(wxObject& obj) const;
|
||||||
};
|
};
|
||||||
|
|
||||||
// Idle event
|
|
||||||
/*
|
|
||||||
wxEVT_IDLE
|
|
||||||
*/
|
|
||||||
|
|
||||||
class WXDLLEXPORT wxIdleEvent : public wxEvent
|
|
||||||
{
|
|
||||||
DECLARE_DYNAMIC_CLASS(wxIdleEvent)
|
|
||||||
|
|
||||||
public:
|
|
||||||
wxIdleEvent()
|
|
||||||
{ m_eventType = wxEVT_IDLE; m_requestMore = FALSE; }
|
|
||||||
|
|
||||||
void RequestMore(bool needMore = TRUE) { m_requestMore = needMore; }
|
|
||||||
bool MoreRequested() const { return m_requestMore; }
|
|
||||||
|
|
||||||
void CopyObject(wxObject& obj) const;
|
|
||||||
|
|
||||||
protected:
|
|
||||||
bool m_requestMore;
|
|
||||||
};
|
|
||||||
|
|
||||||
// Update UI event
|
// Update UI event
|
||||||
/*
|
/*
|
||||||
wxEVT_UPDATE_UI
|
wxEVT_UPDATE_UI
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class WXDLLEXPORT wxMenu;
|
|
||||||
class WXDLLEXPORT wxWindow;
|
|
||||||
|
|
||||||
class WXDLLEXPORT wxUpdateUIEvent : public wxCommandEvent
|
class WXDLLEXPORT wxUpdateUIEvent : public wxCommandEvent
|
||||||
{
|
{
|
||||||
DECLARE_DYNAMIC_CLASS(wxUpdateUIEvent)
|
DECLARE_DYNAMIC_CLASS(wxUpdateUIEvent)
|
||||||
@@ -1256,6 +1244,30 @@ public:
|
|||||||
wxWindow *GetWindow() const { return (wxWindow *)GetEventObject(); }
|
wxWindow *GetWindow() const { return (wxWindow *)GetEventObject(); }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#endif // wxUSE_GUI
|
||||||
|
|
||||||
|
// Idle event
|
||||||
|
/*
|
||||||
|
wxEVT_IDLE
|
||||||
|
*/
|
||||||
|
|
||||||
|
class WXDLLEXPORT wxIdleEvent : public wxEvent
|
||||||
|
{
|
||||||
|
DECLARE_DYNAMIC_CLASS(wxIdleEvent)
|
||||||
|
|
||||||
|
public:
|
||||||
|
wxIdleEvent()
|
||||||
|
{ m_eventType = wxEVT_IDLE; m_requestMore = FALSE; }
|
||||||
|
|
||||||
|
void RequestMore(bool needMore = TRUE) { m_requestMore = needMore; }
|
||||||
|
bool MoreRequested() const { return m_requestMore; }
|
||||||
|
|
||||||
|
void CopyObject(wxObject& obj) const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
bool m_requestMore;
|
||||||
|
};
|
||||||
|
|
||||||
/* TODO
|
/* TODO
|
||||||
wxEVT_POWER,
|
wxEVT_POWER,
|
||||||
wxEVT_MOUSE_CAPTURE_CHANGED,
|
wxEVT_MOUSE_CAPTURE_CHANGED,
|
||||||
@@ -1267,11 +1279,6 @@ public:
|
|||||||
wxEVT_COMPARE_ITEM
|
wxEVT_COMPARE_ITEM
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class WXDLLEXPORT wxWindow;
|
|
||||||
class WXDLLEXPORT wxControl;
|
|
||||||
|
|
||||||
// struct WXDLLEXPORT wxEventTableEntry;
|
|
||||||
|
|
||||||
typedef void (wxObject::*wxObjectEventFunction)(wxEvent&);
|
typedef void (wxObject::*wxObjectEventFunction)(wxEvent&);
|
||||||
|
|
||||||
struct WXDLLEXPORT wxEventTableEntry
|
struct WXDLLEXPORT wxEventTableEntry
|
||||||
@@ -1312,7 +1319,7 @@ public:
|
|||||||
virtual void OnCommand(wxWindow& WXUNUSED(win),
|
virtual void OnCommand(wxWindow& WXUNUSED(win),
|
||||||
wxCommandEvent& WXUNUSED(event))
|
wxCommandEvent& WXUNUSED(event))
|
||||||
{
|
{
|
||||||
wxFAIL_MSG(_T("shouldn't be called any more"));
|
wxFAIL_MSG(wxT("shouldn't be called any more"));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Called if child control has no callback function
|
// Called if child control has no callback function
|
||||||
@@ -1373,6 +1380,7 @@ protected:
|
|||||||
};
|
};
|
||||||
|
|
||||||
typedef void (wxEvtHandler::*wxEventFunction)(wxEvent&);
|
typedef void (wxEvtHandler::*wxEventFunction)(wxEvent&);
|
||||||
|
#if wxUSE_GUI
|
||||||
typedef void (wxEvtHandler::*wxCommandEventFunction)(wxCommandEvent&);
|
typedef void (wxEvtHandler::*wxCommandEventFunction)(wxCommandEvent&);
|
||||||
typedef void (wxEvtHandler::*wxScrollEventFunction)(wxScrollEvent&);
|
typedef void (wxEvtHandler::*wxScrollEventFunction)(wxScrollEvent&);
|
||||||
typedef void (wxEvtHandler::*wxScrollWinEventFunction)(wxScrollWinEvent&);
|
typedef void (wxEvtHandler::*wxScrollWinEventFunction)(wxScrollWinEvent&);
|
||||||
@@ -1398,6 +1406,7 @@ typedef void (wxEvtHandler::*wxMaximizeEventFunction)(wxShowEvent&);
|
|||||||
typedef void (wxEvtHandler::*wxNavigationKeyEventFunction)(wxNavigationKeyEvent&);
|
typedef void (wxEvtHandler::*wxNavigationKeyEventFunction)(wxNavigationKeyEvent&);
|
||||||
typedef void (wxEvtHandler::*wxPaletteChangedEventFunction)(wxPaletteChangedEvent&);
|
typedef void (wxEvtHandler::*wxPaletteChangedEventFunction)(wxPaletteChangedEvent&);
|
||||||
typedef void (wxEvtHandler::*wxQueryNewPaletteEventFunction)(wxQueryNewPaletteEvent&);
|
typedef void (wxEvtHandler::*wxQueryNewPaletteEventFunction)(wxQueryNewPaletteEvent&);
|
||||||
|
#endif // wxUSE_GUI
|
||||||
|
|
||||||
// N.B. In GNU-WIN32, you *have* to take the address of a member function
|
// N.B. In GNU-WIN32, you *have* to take the address of a member function
|
||||||
// (use &) or the compiler crashes...
|
// (use &) or the compiler crashes...
|
||||||
@@ -1603,13 +1612,17 @@ const wxEventTableEntry theClass::sm_eventTableEntries[] = { \
|
|||||||
#define EVT_UPDATE_UI(id, func) \
|
#define EVT_UPDATE_UI(id, func) \
|
||||||
{ wxEVT_UPDATE_UI, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxUpdateUIEventFunction) & func, (wxObject *) NULL },\
|
{ wxEVT_UPDATE_UI, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxUpdateUIEventFunction) & func, (wxObject *) NULL },\
|
||||||
|
|
||||||
/*
|
// ----------------------------------------------------------------------------
|
||||||
* Helper functions
|
// Helper functions
|
||||||
*/
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#if wxUSE_GUI
|
||||||
|
|
||||||
// Find a window with the focus, that is also a descendant of the given window.
|
// Find a window with the focus, that is also a descendant of the given window.
|
||||||
// This is used to determine the window to initially send commands to.
|
// This is used to determine the window to initially send commands to.
|
||||||
wxWindow* wxFindFocusDescendant(wxWindow* ancestor);
|
wxWindow* wxFindFocusDescendant(wxWindow* ancestor);
|
||||||
|
|
||||||
|
#endif // wxUSE_GUI
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
// _WX_EVENTH__
|
// _WX_EVENTH__
|
||||||
|
@@ -51,7 +51,7 @@ public:
|
|||||||
bool Close();
|
bool Close();
|
||||||
|
|
||||||
// assign an existing file descriptor and get it back from wxFFile object
|
// assign an existing file descriptor and get it back from wxFFile object
|
||||||
void Attach(FILE *fp, const wxString& name = _T(""))
|
void Attach(FILE *fp, const wxString& name = wxT(""))
|
||||||
{ Close(); m_fp = fp; m_name = name; }
|
{ Close(); m_fp = fp; m_name = name; }
|
||||||
void Detach() { m_fp = NULL; }
|
void Detach() { m_fp = NULL; }
|
||||||
FILE *fp() const { return m_fp; }
|
FILE *fp() const { return m_fp; }
|
||||||
|
@@ -141,9 +141,9 @@ public:
|
|||||||
// New constructor: one size fits all. Specify wxCONFIG_USE_LOCAL_FILE or
|
// New constructor: one size fits all. Specify wxCONFIG_USE_LOCAL_FILE or
|
||||||
// wxCONFIG_USE_GLOBAL_FILE to say which files should be used.
|
// wxCONFIG_USE_GLOBAL_FILE to say which files should be used.
|
||||||
wxFileConfig(const wxString& appName,
|
wxFileConfig(const wxString& appName,
|
||||||
const wxString& vendorName = _T(""),
|
const wxString& vendorName = wxT(""),
|
||||||
const wxString& localFilename = _T(""),
|
const wxString& localFilename = wxT(""),
|
||||||
const wxString& globalFilename = _T(""),
|
const wxString& globalFilename = wxT(""),
|
||||||
long style = wxCONFIG_USE_LOCAL_FILE);
|
long style = wxCONFIG_USE_LOCAL_FILE);
|
||||||
|
|
||||||
// dtor will save unsaved data
|
// dtor will save unsaved data
|
||||||
|
@@ -159,15 +159,15 @@ WXDLLEXPORT bool wxMkdir(const wxString& dir, int perm = 0777);
|
|||||||
WXDLLEXPORT bool wxRmdir(const wxString& dir, int flags = 0);
|
WXDLLEXPORT bool wxRmdir(const wxString& dir, int flags = 0);
|
||||||
|
|
||||||
// separators in file names
|
// separators in file names
|
||||||
#define wxFILE_SEP_EXT _T('.')
|
#define wxFILE_SEP_EXT wxT('.')
|
||||||
#define wxFILE_SEP_DSK _T(':')
|
#define wxFILE_SEP_DSK wxT(':')
|
||||||
#define wxFILE_SEP_PATH_DOS _T('\\')
|
#define wxFILE_SEP_PATH_DOS wxT('\\')
|
||||||
#define wxFILE_SEP_PATH_UNIX _T('/')
|
#define wxFILE_SEP_PATH_UNIX wxT('/')
|
||||||
|
|
||||||
// separator in the path list (as in PATH environment variable)
|
// separator in the path list (as in PATH environment variable)
|
||||||
// NB: these are strings and not characters on purpose!
|
// NB: these are strings and not characters on purpose!
|
||||||
#define wxPATH_SEP_DOS _T(";")
|
#define wxPATH_SEP_DOS wxT(";")
|
||||||
#define wxPATH_SEP_UNIX _T(":")
|
#define wxPATH_SEP_UNIX wxT(":")
|
||||||
|
|
||||||
// platform independent versions
|
// platform independent versions
|
||||||
#ifdef __UNIX__
|
#ifdef __UNIX__
|
||||||
|
@@ -195,10 +195,7 @@ private:
|
|||||||
// macros
|
// macros
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
#if !defined(__VISAGECPP__)
|
|
||||||
// VZ: this is ugly (FIXME)
|
|
||||||
#define M_FONTDATA GetFontData()
|
#define M_FONTDATA GetFontData()
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
// _WX_FONT_H_BASE_
|
// _WX_FONT_H_BASE_
|
||||||
|
@@ -18,9 +18,7 @@
|
|||||||
# define wxFontDialog wxGenericFontDialog
|
# define wxFontDialog wxGenericFontDialog
|
||||||
# define sm_classwxFontDialog sm_classwxGenericFontDialog
|
# define sm_classwxFontDialog sm_classwxGenericFontDialog
|
||||||
#elif defined(__WXPM__)
|
#elif defined(__WXPM__)
|
||||||
#include "wx/generic/fontdlgg.h"
|
#include "wx/os2/fontdlg.h"
|
||||||
# define wxFontDialog wxGenericFontDialog
|
|
||||||
# define sm_classwxFontDialog sm_classwxGenericFontDialog
|
|
||||||
#elif defined(__WXSTUBS__)
|
#elif defined(__WXSTUBS__)
|
||||||
#include "wx/generic/fontdlgg.h"
|
#include "wx/generic/fontdlgg.h"
|
||||||
# define wxFontDialog wxGenericFontDialog
|
# define wxFontDialog wxGenericFontDialog
|
||||||
|
@@ -32,7 +32,7 @@ public:
|
|||||||
// enumerate the different encodings either for given font family or for
|
// enumerate the different encodings either for given font family or for
|
||||||
// all font families - will result in OnFontEncoding() being called for
|
// all font families - will result in OnFontEncoding() being called for
|
||||||
// each available (family, encoding) couple
|
// each available (family, encoding) couple
|
||||||
virtual bool EnumerateEncodings(const wxString& family = _T(""));
|
virtual bool EnumerateEncodings(const wxString& family = wxT(""));
|
||||||
|
|
||||||
// callbacks which are called after one of EnumerateXXX() functions from
|
// callbacks which are called after one of EnumerateXXX() functions from
|
||||||
// above is invoked - all of them may return FALSE to stop enumeration or
|
// above is invoked - all of them may return FALSE to stop enumeration or
|
||||||
|
@@ -100,7 +100,7 @@ public:
|
|||||||
const wxSize &size = wxDefaultSize,
|
const wxSize &size = wxDefaultSize,
|
||||||
long style = wxLC_LIST,
|
long style = wxLC_LIST,
|
||||||
const wxValidator &validator = wxDefaultValidator,
|
const wxValidator &validator = wxDefaultValidator,
|
||||||
const wxString &name = _T("filelist") );
|
const wxString &name = wxT("filelist") );
|
||||||
void ChangeToListMode();
|
void ChangeToListMode();
|
||||||
void ChangeToReportMode();
|
void ChangeToReportMode();
|
||||||
void ChangeToIconMode();
|
void ChangeToIconMode();
|
||||||
|
1086
include/wx/generic/grid.h
Normal file
1086
include/wx/generic/grid.h
Normal file
File diff suppressed because it is too large
Load Diff
@@ -352,6 +352,12 @@ public:
|
|||||||
: wxGenericGrid(parent, x, y, width, height, style, name)
|
: wxGenericGrid(parent, x, y, width, height, style, name)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
wxGrid(wxWindow *parent, wxWindowID id, const wxPoint& pos,
|
||||||
|
const wxSize& size, long style = 0, const wxString& name = "grid")
|
||||||
|
: wxGenericGrid(parent, id, pos, size, style, name)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
class WXDLLEXPORT wxGridEvent : public wxCommandEvent
|
class WXDLLEXPORT wxGridEvent : public wxCommandEvent
|
||||||
|
@@ -54,7 +54,7 @@ public:
|
|||||||
@param newmsg if used, new message to display
|
@param newmsg if used, new message to display
|
||||||
@returns true if ABORT button has not been pressed
|
@returns true if ABORT button has not been pressed
|
||||||
*/
|
*/
|
||||||
bool Update(int value = -1, const wxString& newmsg = _T(""));
|
bool Update(int value = -1, const wxString& newmsg = wxT(""));
|
||||||
|
|
||||||
/* Can be called to continue after the cancel button has been pressed, but
|
/* Can be called to continue after the cancel button has been pressed, but
|
||||||
the program decided to continue the operation (e.g., user didn't
|
the program decided to continue the operation (e.g., user didn't
|
||||||
|
@@ -281,11 +281,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
#ifdef __MWERKS__
|
friend class WXDLLEXPORT wxSplitterWindow;
|
||||||
friend class wxSplitterWindow;
|
|
||||||
#else
|
|
||||||
friend wxSplitterWindow;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// data for the different types of event
|
// data for the different types of event
|
||||||
union
|
union
|
||||||
|
@@ -1,11 +1,7 @@
|
|||||||
#ifndef _WX_GRID_H_BASE_
|
#ifndef _WX_GRID_H_BASE_
|
||||||
#define _WX_GRID_H_BASE_
|
#define _WX_GRID_H_BASE_
|
||||||
|
|
||||||
#include "wx/generic/gridg.h"
|
#include "wx/generic/grid.h"
|
||||||
|
|
||||||
#ifndef wxGrid
|
|
||||||
#define wxGrid wxGenericGrid
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
// _WX_GRID_H_BASE_
|
// _WX_GRID_H_BASE_
|
||||||
|
@@ -56,8 +56,7 @@ extern wxAcceleratorTable wxNullAcceleratorTable;
|
|||||||
|
|
||||||
class wxAcceleratorEntry: public wxObject
|
class wxAcceleratorEntry: public wxObject
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
wxAcceleratorEntry(int flags = 0, int keyCode = 0, int cmd = 0)
|
wxAcceleratorEntry(int flags = 0, int keyCode = 0, int cmd = 0)
|
||||||
{ m_flags = flags; m_keyCode = keyCode; m_command = cmd; }
|
{ m_flags = flags; m_keyCode = keyCode; m_command = cmd; }
|
||||||
|
|
||||||
|
@@ -80,6 +80,7 @@ private:
|
|||||||
/// Set to TRUE while we are in wxYield().
|
/// Set to TRUE while we are in wxYield().
|
||||||
bool m_suppressIdleEvents;
|
bool m_suppressIdleEvents;
|
||||||
|
|
||||||
|
private:
|
||||||
DECLARE_DYNAMIC_CLASS(wxApp)
|
DECLARE_DYNAMIC_CLASS(wxApp)
|
||||||
DECLARE_EVENT_TABLE()
|
DECLARE_EVENT_TABLE()
|
||||||
};
|
};
|
||||||
|
@@ -43,56 +43,57 @@ extern const wxChar *wxButtonNameStr;
|
|||||||
|
|
||||||
class wxBitmapButton: public wxButton
|
class wxBitmapButton: public wxButton
|
||||||
{
|
{
|
||||||
DECLARE_DYNAMIC_CLASS(wxBitmapButton)
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
wxBitmapButton();
|
wxBitmapButton();
|
||||||
inline wxBitmapButton( wxWindow *parent, wxWindowID id, const wxBitmap& bitmap,
|
inline wxBitmapButton( wxWindow *parent, wxWindowID id, const wxBitmap& bitmap,
|
||||||
const wxPoint& pos = wxDefaultPosition,
|
const wxPoint& pos = wxDefaultPosition,
|
||||||
const wxSize& size = wxDefaultSize, long style = wxBU_AUTODRAW,
|
const wxSize& size = wxDefaultSize, long style = wxBU_AUTODRAW,
|
||||||
const wxValidator& validator = wxDefaultValidator,
|
const wxValidator& validator = wxDefaultValidator,
|
||||||
const wxString& name = wxButtonNameStr )
|
const wxString& name = wxButtonNameStr )
|
||||||
{
|
{
|
||||||
Create(parent, id, bitmap, pos, size, style, validator, name);
|
Create(parent, id, bitmap, pos, size, style, validator, name);
|
||||||
}
|
}
|
||||||
bool Create( wxWindow *parent, wxWindowID id, const wxBitmap& bitmap,
|
bool Create( wxWindow *parent, wxWindowID id, const wxBitmap& bitmap,
|
||||||
const wxPoint& pos = wxDefaultPosition,
|
const wxPoint& pos = wxDefaultPosition,
|
||||||
const wxSize& size = wxDefaultSize, long style = wxBU_AUTODRAW,
|
const wxSize& size = wxDefaultSize, long style = wxBU_AUTODRAW,
|
||||||
const wxValidator& validator = wxDefaultValidator,
|
const wxValidator& validator = wxDefaultValidator,
|
||||||
const wxString& name = wxButtonNameStr);
|
const wxString& name = wxButtonNameStr);
|
||||||
virtual void SetDefault();
|
virtual void SetDefault();
|
||||||
|
|
||||||
void SetLabel( const wxString &label );
|
void SetLabel( const wxString &label );
|
||||||
wxString GetLabel() const;
|
wxString GetLabel() const;
|
||||||
virtual void SetLabel( const wxBitmap& bitmap ) { SetBitmapLabel(bitmap); }
|
virtual void SetLabel( const wxBitmap& bitmap ) { SetBitmapLabel(bitmap); }
|
||||||
|
|
||||||
wxBitmap& GetBitmapDisabled() const { return (wxBitmap&) m_disabled; }
|
wxBitmap& GetBitmapDisabled() const { return (wxBitmap&) m_disabled; }
|
||||||
wxBitmap& GetBitmapFocus() const { return (wxBitmap&) m_focus; }
|
wxBitmap& GetBitmapFocus() const { return (wxBitmap&) m_focus; }
|
||||||
wxBitmap& GetBitmapLabel() const { return (wxBitmap&) m_bitmap; }
|
wxBitmap& GetBitmapLabel() const { return (wxBitmap&) m_bitmap; }
|
||||||
wxBitmap& GetBitmapSelected() const { return (wxBitmap&) m_selected; }
|
wxBitmap& GetBitmapSelected() const { return (wxBitmap&) m_selected; }
|
||||||
|
|
||||||
void SetBitmapDisabled( const wxBitmap& bitmap );
|
void SetBitmapDisabled( const wxBitmap& bitmap );
|
||||||
void SetBitmapFocus( const wxBitmap& bitmap );
|
void SetBitmapFocus( const wxBitmap& bitmap );
|
||||||
void SetBitmapLabel( const wxBitmap& bitmap );
|
void SetBitmapLabel( const wxBitmap& bitmap );
|
||||||
void SetBitmapSelected( const wxBitmap& bitmap );
|
void SetBitmapSelected( const wxBitmap& bitmap );
|
||||||
|
|
||||||
virtual bool Enable(bool enable);
|
virtual bool Enable(bool enable);
|
||||||
|
|
||||||
// implementation
|
// implementation
|
||||||
|
|
||||||
void HasFocus();
|
void HasFocus();
|
||||||
void NotFocus();
|
void NotFocus();
|
||||||
void StartSelect();
|
void StartSelect();
|
||||||
void EndSelect();
|
void EndSelect();
|
||||||
void SetBitmap();
|
void SetBitmap();
|
||||||
void ApplyWidgetStyle();
|
void ApplyWidgetStyle();
|
||||||
|
|
||||||
bool m_hasFocus;
|
bool m_hasFocus;
|
||||||
bool m_isSelected;
|
bool m_isSelected;
|
||||||
wxBitmap m_bitmap;
|
wxBitmap m_bitmap;
|
||||||
wxBitmap m_disabled;
|
wxBitmap m_disabled;
|
||||||
wxBitmap m_focus;
|
wxBitmap m_focus;
|
||||||
wxBitmap m_selected;
|
wxBitmap m_selected;
|
||||||
|
|
||||||
|
private:
|
||||||
|
DECLARE_DYNAMIC_CLASS(wxBitmapButton)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -33,10 +33,7 @@ class wxBrush;
|
|||||||
|
|
||||||
class wxBrush: public wxGDIObject
|
class wxBrush: public wxGDIObject
|
||||||
{
|
{
|
||||||
DECLARE_DYNAMIC_CLASS(wxBrush)
|
public:
|
||||||
|
|
||||||
public:
|
|
||||||
|
|
||||||
wxBrush();
|
wxBrush();
|
||||||
wxBrush( const wxColour &colour, int style );
|
wxBrush( const wxColour &colour, int style );
|
||||||
wxBrush( const wxBitmap &stippleBitmap );
|
wxBrush( const wxBitmap &stippleBitmap );
|
||||||
@@ -58,7 +55,8 @@ class wxBrush: public wxGDIObject
|
|||||||
|
|
||||||
void Unshare();
|
void Unshare();
|
||||||
|
|
||||||
// no data :-)
|
private:
|
||||||
|
DECLARE_DYNAMIC_CLASS(wxBrush)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // __GTKBRUSHH__
|
#endif // __GTKBRUSHH__
|
||||||
|
@@ -7,7 +7,6 @@
|
|||||||
// Licence: wxWindows licence
|
// Licence: wxWindows licence
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
|
||||||
#ifndef __GTKBUTTONH__
|
#ifndef __GTKBUTTONH__
|
||||||
#define __GTKBUTTONH__
|
#define __GTKBUTTONH__
|
||||||
|
|
||||||
@@ -38,10 +37,7 @@ extern const wxChar *wxButtonNameStr;
|
|||||||
|
|
||||||
class wxButton: public wxControl
|
class wxButton: public wxControl
|
||||||
{
|
{
|
||||||
DECLARE_DYNAMIC_CLASS(wxButton)
|
public:
|
||||||
|
|
||||||
public:
|
|
||||||
|
|
||||||
wxButton();
|
wxButton();
|
||||||
inline wxButton(wxWindow *parent, wxWindowID id, const wxString& label,
|
inline wxButton(wxWindow *parent, wxWindowID id, const wxString& label,
|
||||||
const wxPoint& pos = wxDefaultPosition,
|
const wxPoint& pos = wxDefaultPosition,
|
||||||
@@ -66,6 +62,9 @@ class wxButton: public wxControl
|
|||||||
// implementation
|
// implementation
|
||||||
|
|
||||||
void ApplyWidgetStyle();
|
void ApplyWidgetStyle();
|
||||||
|
|
||||||
|
private:
|
||||||
|
DECLARE_DYNAMIC_CLASS(wxButton)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // __GTKBUTTONH__
|
#endif // __GTKBUTTONH__
|
||||||
|
@@ -7,7 +7,6 @@
|
|||||||
// Licence: wxWindows licence
|
// Licence: wxWindows licence
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
|
||||||
#ifndef __GTKCHECKBOXH__
|
#ifndef __GTKCHECKBOXH__
|
||||||
#define __GTKCHECKBOXH__
|
#define __GTKCHECKBOXH__
|
||||||
|
|
||||||
@@ -41,8 +40,6 @@ extern const char *wxCheckBoxNameStr;
|
|||||||
|
|
||||||
class wxCheckBox: public wxControl
|
class wxCheckBox: public wxControl
|
||||||
{
|
{
|
||||||
DECLARE_DYNAMIC_CLASS(wxCheckBox)
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
wxCheckBox();
|
wxCheckBox();
|
||||||
wxCheckBox( wxWindow *parent, wxWindowID id, const wxString& label,
|
wxCheckBox( wxWindow *parent, wxWindowID id, const wxString& label,
|
||||||
@@ -73,6 +70,9 @@ public:
|
|||||||
|
|
||||||
GtkWidget *m_widgetCheckbox;
|
GtkWidget *m_widgetCheckbox;
|
||||||
GtkWidget *m_widgetLabel;
|
GtkWidget *m_widgetLabel;
|
||||||
|
|
||||||
|
private:
|
||||||
|
DECLARE_DYNAMIC_CLASS(wxCheckBox)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -36,8 +36,6 @@ class wxCheckListBox;
|
|||||||
|
|
||||||
class wxCheckListBox : public wxListBox
|
class wxCheckListBox : public wxListBox
|
||||||
{
|
{
|
||||||
DECLARE_DYNAMIC_CLASS(wxCheckListBox)
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
wxCheckListBox();
|
wxCheckListBox();
|
||||||
wxCheckListBox(wxWindow *parent, wxWindowID id,
|
wxCheckListBox(wxWindow *parent, wxWindowID id,
|
||||||
@@ -53,6 +51,9 @@ public:
|
|||||||
void Check( int index, bool check = TRUE );
|
void Check( int index, bool check = TRUE );
|
||||||
|
|
||||||
int GetItemHeight() const;
|
int GetItemHeight() const;
|
||||||
|
|
||||||
|
private:
|
||||||
|
DECLARE_DYNAMIC_CLASS(wxCheckListBox)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -38,8 +38,6 @@ extern const wxChar *wxChoiceNameStr;
|
|||||||
|
|
||||||
class wxChoice : public wxControl
|
class wxChoice : public wxControl
|
||||||
{
|
{
|
||||||
DECLARE_DYNAMIC_CLASS(wxChoice)
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
wxChoice();
|
wxChoice();
|
||||||
wxChoice( wxWindow *parent, wxWindowID id,
|
wxChoice( wxWindow *parent, wxWindowID id,
|
||||||
@@ -97,6 +95,9 @@ public:
|
|||||||
void EnableEvents();
|
void EnableEvents();
|
||||||
void AppendCommon( const wxString &item );
|
void AppendCommon( const wxString &item );
|
||||||
void ApplyWidgetStyle();
|
void ApplyWidgetStyle();
|
||||||
|
|
||||||
|
private:
|
||||||
|
DECLARE_DYNAMIC_CLASS(wxChoice)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@@ -44,8 +44,6 @@ extern wxClipboard* wxTheClipboard;
|
|||||||
|
|
||||||
class wxClipboard : public wxObject
|
class wxClipboard : public wxObject
|
||||||
{
|
{
|
||||||
DECLARE_DYNAMIC_CLASS(wxClipboard)
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
wxClipboard();
|
wxClipboard();
|
||||||
~wxClipboard();
|
~wxClipboard();
|
||||||
@@ -91,6 +89,9 @@ public:
|
|||||||
GdkAtom m_targetRequested;
|
GdkAtom m_targetRequested;
|
||||||
bool m_usePrimary;
|
bool m_usePrimary;
|
||||||
wxDataObject *m_receivedData;
|
wxDataObject *m_receivedData;
|
||||||
|
|
||||||
|
private:
|
||||||
|
DECLARE_DYNAMIC_CLASS(wxClipboard)
|
||||||
};
|
};
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
@@ -99,12 +100,13 @@ public:
|
|||||||
|
|
||||||
class wxClipboardModule: public wxModule
|
class wxClipboardModule: public wxModule
|
||||||
{
|
{
|
||||||
DECLARE_DYNAMIC_CLASS(wxClipboardModule)
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
wxClipboardModule() {}
|
wxClipboardModule() {}
|
||||||
bool OnInit();
|
bool OnInit();
|
||||||
void OnExit();
|
void OnExit();
|
||||||
|
|
||||||
|
private:
|
||||||
|
DECLARE_DYNAMIC_CLASS(wxClipboardModule)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -42,12 +42,9 @@ extern const wxChar* wxEmptyString;
|
|||||||
|
|
||||||
class wxComboBox : public wxControl
|
class wxComboBox : public wxControl
|
||||||
{
|
{
|
||||||
DECLARE_DYNAMIC_CLASS(wxComboBox)
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
inline wxComboBox() {}
|
||||||
inline wxComboBox() {}
|
inline wxComboBox(wxWindow *parent, wxWindowID id,
|
||||||
inline wxComboBox(wxWindow *parent, wxWindowID id,
|
|
||||||
const wxString& value = wxEmptyString,
|
const wxString& value = wxEmptyString,
|
||||||
const wxPoint& pos = wxDefaultPosition,
|
const wxPoint& pos = wxDefaultPosition,
|
||||||
const wxSize& size = wxDefaultSize,
|
const wxSize& size = wxDefaultSize,
|
||||||
@@ -55,11 +52,11 @@ public:
|
|||||||
long style = 0,
|
long style = 0,
|
||||||
const wxValidator& validator = wxDefaultValidator,
|
const wxValidator& validator = wxDefaultValidator,
|
||||||
const wxString& name = wxComboBoxNameStr)
|
const wxString& name = wxComboBoxNameStr)
|
||||||
{
|
{
|
||||||
Create(parent, id, value, pos, size, n, choices, style, validator, name);
|
Create(parent, id, value, pos, size, n, choices, style, validator, name);
|
||||||
}
|
}
|
||||||
~wxComboBox();
|
~wxComboBox();
|
||||||
bool Create(wxWindow *parent, wxWindowID id,
|
bool Create(wxWindow *parent, wxWindowID id,
|
||||||
const wxString& value = wxEmptyString,
|
const wxString& value = wxEmptyString,
|
||||||
const wxPoint& pos = wxDefaultPosition,
|
const wxPoint& pos = wxDefaultPosition,
|
||||||
const wxSize& size = wxDefaultSize,
|
const wxSize& size = wxDefaultSize,
|
||||||
@@ -68,63 +65,65 @@ public:
|
|||||||
const wxValidator& validator = wxDefaultValidator,
|
const wxValidator& validator = wxDefaultValidator,
|
||||||
const wxString& name = wxComboBoxNameStr);
|
const wxString& name = wxComboBoxNameStr);
|
||||||
|
|
||||||
void Append( const wxString &item );
|
void Append( const wxString &item );
|
||||||
void Append( const wxString &item, void* clientData );
|
void Append( const wxString &item, void* clientData );
|
||||||
void Append( const wxString &item, wxClientData* clientData );
|
void Append( const wxString &item, wxClientData* clientData );
|
||||||
|
|
||||||
void SetClientData( int n, void* clientData );
|
void SetClientData( int n, void* clientData );
|
||||||
void* GetClientData( int n );
|
void* GetClientData( int n );
|
||||||
void SetClientObject( int n, wxClientData* clientData );
|
void SetClientObject( int n, wxClientData* clientData );
|
||||||
wxClientData* GetClientObject( int n );
|
wxClientData* GetClientObject( int n );
|
||||||
|
|
||||||
void SetClientObject( wxClientData *data ) { wxControl::SetClientObject( data ); }
|
void SetClientObject( wxClientData *data ) { wxControl::SetClientObject( data ); }
|
||||||
wxClientData *GetClientObject() const { return wxControl::GetClientObject(); }
|
wxClientData *GetClientObject() const { return wxControl::GetClientObject(); }
|
||||||
void SetClientData( void *data ) { wxControl::SetClientData( data ); }
|
void SetClientData( void *data ) { wxControl::SetClientData( data ); }
|
||||||
void *GetClientData() const { return wxControl::GetClientData(); }
|
void *GetClientData() const { return wxControl::GetClientData(); }
|
||||||
|
|
||||||
void Clear();
|
void Clear();
|
||||||
void Delete( int n );
|
void Delete( int n );
|
||||||
|
|
||||||
int FindString( const wxString &item );
|
int FindString( const wxString &item );
|
||||||
int GetSelection() const;
|
int GetSelection() const;
|
||||||
wxString GetString( int n ) const;
|
wxString GetString( int n ) const;
|
||||||
wxString GetStringSelection() const;
|
wxString GetStringSelection() const;
|
||||||
int Number() const;
|
int Number() const;
|
||||||
void SetSelection( int n );
|
void SetSelection( int n );
|
||||||
void SetStringSelection( const wxString &string );
|
void SetStringSelection( const wxString &string );
|
||||||
|
|
||||||
wxString GetValue() const;
|
wxString GetValue() const;
|
||||||
void SetValue(const wxString& value);
|
void SetValue(const wxString& value);
|
||||||
|
|
||||||
void Copy();
|
void Copy();
|
||||||
void Cut();
|
void Cut();
|
||||||
void Paste();
|
void Paste();
|
||||||
void SetInsertionPoint( long pos );
|
void SetInsertionPoint( long pos );
|
||||||
void SetInsertionPointEnd();
|
void SetInsertionPointEnd();
|
||||||
long GetInsertionPoint() const;
|
long GetInsertionPoint() const;
|
||||||
long GetLastPosition() const;
|
long GetLastPosition() const;
|
||||||
void Replace( long from, long to, const wxString& value );
|
void Replace( long from, long to, const wxString& value );
|
||||||
void Remove( long from, long to );
|
void Remove( long from, long to );
|
||||||
void SetSelection( long from, long to );
|
void SetSelection( long from, long to );
|
||||||
void SetEditable( bool editable );
|
void SetEditable( bool editable );
|
||||||
|
|
||||||
void OnSize( wxSizeEvent &event );
|
// implementation
|
||||||
void OnChar( wxKeyEvent &event );
|
|
||||||
|
|
||||||
// implementation
|
|
||||||
|
|
||||||
bool m_alreadySent;
|
void OnSize( wxSizeEvent &event );
|
||||||
wxList m_clientDataList;
|
void OnChar( wxKeyEvent &event );
|
||||||
wxList m_clientObjectList;
|
|
||||||
|
|
||||||
void DisableEvents();
|
|
||||||
void EnableEvents();
|
|
||||||
void AppendCommon( const wxString &item );
|
|
||||||
GtkWidget* GetConnectWidget();
|
|
||||||
bool IsOwnGtkWindow( GdkWindow *window );
|
|
||||||
void ApplyWidgetStyle();
|
|
||||||
|
|
||||||
DECLARE_EVENT_TABLE()
|
bool m_alreadySent;
|
||||||
|
wxList m_clientDataList;
|
||||||
|
wxList m_clientObjectList;
|
||||||
|
|
||||||
|
void DisableEvents();
|
||||||
|
void EnableEvents();
|
||||||
|
void AppendCommon( const wxString &item );
|
||||||
|
GtkWidget* GetConnectWidget();
|
||||||
|
bool IsOwnGtkWindow( GdkWindow *window );
|
||||||
|
void ApplyWidgetStyle();
|
||||||
|
|
||||||
|
private:
|
||||||
|
DECLARE_DYNAMIC_CLASS(wxComboBox)
|
||||||
|
DECLARE_EVENT_TABLE()
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -31,8 +31,6 @@ class wxControl;
|
|||||||
|
|
||||||
class wxControl : public wxWindow
|
class wxControl : public wxWindow
|
||||||
{
|
{
|
||||||
DECLARE_DYNAMIC_CLASS(wxControl)
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
wxControl();
|
wxControl();
|
||||||
wxControl( wxWindow *parent,
|
wxControl( wxWindow *parent,
|
||||||
@@ -50,6 +48,9 @@ public:
|
|||||||
protected:
|
protected:
|
||||||
wxString m_label;
|
wxString m_label;
|
||||||
char m_chAccel; // enabled to avoid breaking binary compatibility later on
|
char m_chAccel; // enabled to avoid breaking binary compatibility later on
|
||||||
|
|
||||||
|
private:
|
||||||
|
DECLARE_DYNAMIC_CLASS(wxControl)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // __GTKCONTROLH__
|
#endif // __GTKCONTROLH__
|
||||||
|
@@ -64,7 +64,7 @@ public:
|
|||||||
|
|
||||||
#if wxUSE_STATUSBAR
|
#if wxUSE_STATUSBAR
|
||||||
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 = _T("statusBar"));
|
const wxString& name = wxT("statusBar"));
|
||||||
virtual wxStatusBar *OnCreateStatusBar( int number, long style, wxWindowID id,
|
virtual wxStatusBar *OnCreateStatusBar( int number, long style, wxWindowID id,
|
||||||
const wxString& name );
|
const wxString& name );
|
||||||
virtual wxStatusBar *GetStatusBar() const;
|
virtual wxStatusBar *GetStatusBar() const;
|
||||||
@@ -78,7 +78,7 @@ public:
|
|||||||
const wxString& name = wxToolBarNameStr);
|
const wxString& name = wxToolBarNameStr);
|
||||||
virtual wxToolBar *OnCreateToolBar( long style, wxWindowID id, const wxString& name );
|
virtual wxToolBar *OnCreateToolBar( long style, wxWindowID id, const wxString& name );
|
||||||
virtual wxToolBar *GetToolBar() const;
|
virtual wxToolBar *GetToolBar() const;
|
||||||
void SetToolBar(wxToolBar *toolbar) { m_frameToolBar = toolbar; }
|
void SetToolBar(wxToolBar *toolbar);
|
||||||
#endif // wxUSE_TOOLBAR
|
#endif // wxUSE_TOOLBAR
|
||||||
|
|
||||||
virtual void SetMenuBar( wxMenuBar *menuBar );
|
virtual void SetMenuBar( wxMenuBar *menuBar );
|
||||||
|
@@ -121,8 +121,12 @@ class wxMDIChildFrame: public wxFrame
|
|||||||
|
|
||||||
#if wxUSE_STATUSBAR
|
#if wxUSE_STATUSBAR
|
||||||
// no status bars
|
// no status bars
|
||||||
virtual wxStatusBar* CreateStatusBar( int WXUNUSED(number)=1, long WXUNUSED(style)=1,
|
virtual wxStatusBar* CreateStatusBar( int WXUNUSED(number) = 1,
|
||||||
wxWindowID WXUNUSED(id)=1, const wxString& WXUNUSED(name)=WXSTRINGCAST NULL ) {return (wxStatusBar*)NULL; }
|
long WXUNUSED(style) = 1,
|
||||||
|
wxWindowID WXUNUSED(id) = 1,
|
||||||
|
const wxString& WXUNUSED(name) = wxEmptyString)
|
||||||
|
{ return (wxStatusBar*)NULL; }
|
||||||
|
|
||||||
virtual wxStatusBar *GetStatusBar() const { return (wxStatusBar*)NULL; }
|
virtual wxStatusBar *GetStatusBar() const { return (wxStatusBar*)NULL; }
|
||||||
virtual void SetStatusText( const wxString &WXUNUSED(text), int WXUNUSED(number)=0 ) {}
|
virtual void SetStatusText( const wxString &WXUNUSED(text), int WXUNUSED(number)=0 ) {}
|
||||||
virtual void SetStatusWidths( int WXUNUSED(n), const int WXUNUSED(widths_field)[] ) {}
|
virtual void SetStatusWidths( int WXUNUSED(n), const int WXUNUSED(widths_field)[] ) {}
|
||||||
|
@@ -128,11 +128,11 @@ public:
|
|||||||
|
|
||||||
~wxMenu();
|
~wxMenu();
|
||||||
|
|
||||||
// operations
|
// title
|
||||||
// title
|
|
||||||
void SetTitle(const wxString& label);
|
void SetTitle(const wxString& label);
|
||||||
const wxString GetTitle() const;
|
const wxString GetTitle() const;
|
||||||
// menu creation
|
|
||||||
|
// menu creation
|
||||||
void AppendSeparator();
|
void AppendSeparator();
|
||||||
void Append(int id, const wxString &item,
|
void Append(int id, const wxString &item,
|
||||||
const wxString &helpStr = "", bool checkable = FALSE);
|
const wxString &helpStr = "", bool checkable = FALSE);
|
||||||
@@ -141,6 +141,9 @@ public:
|
|||||||
void Append(wxMenuItem *pItem);
|
void Append(wxMenuItem *pItem);
|
||||||
void Break() { }
|
void Break() { }
|
||||||
|
|
||||||
|
// delete item. don't delete the wxMenu if it's a submenu
|
||||||
|
void Delete( int id );
|
||||||
|
|
||||||
// find item by name/id
|
// find item by name/id
|
||||||
int FindItem( const wxString itemString ) const;
|
int FindItem( const wxString itemString ) const;
|
||||||
wxMenuItem *FindItem( int id ) const;
|
wxMenuItem *FindItem( int id ) const;
|
||||||
|
@@ -40,6 +40,7 @@ DECLARE_DYNAMIC_CLASS(wxMenuItem)
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
wxMenuItem();
|
wxMenuItem();
|
||||||
|
~wxMenuItem();
|
||||||
|
|
||||||
// accessors
|
// accessors
|
||||||
// id
|
// id
|
||||||
|
@@ -55,8 +55,8 @@ class wxRegion : public wxGDIObject
|
|||||||
wxRegion( long x, long y, long w, long h );
|
wxRegion( long x, long y, long w, long h );
|
||||||
wxRegion( const wxPoint& topLeft, const wxPoint& bottomRight );
|
wxRegion( const wxPoint& topLeft, const wxPoint& bottomRight );
|
||||||
wxRegion( const wxRect& rect );
|
wxRegion( const wxRect& rect );
|
||||||
wxRegion(void);
|
wxRegion();
|
||||||
~wxRegion(void);
|
~wxRegion();
|
||||||
|
|
||||||
inline wxRegion( const wxRegion& r ): wxGDIObject()
|
inline wxRegion( const wxRegion& r ): wxGDIObject()
|
||||||
{ Ref(r); }
|
{ Ref(r); }
|
||||||
@@ -66,7 +66,7 @@ class wxRegion : public wxGDIObject
|
|||||||
bool operator == ( const wxRegion& region );
|
bool operator == ( const wxRegion& region );
|
||||||
bool operator != ( const wxRegion& region );
|
bool operator != ( const wxRegion& region );
|
||||||
|
|
||||||
void Clear(void);
|
void Clear();
|
||||||
|
|
||||||
bool Union( long x, long y, long width, long height );
|
bool Union( long x, long y, long width, long height );
|
||||||
bool Union( const wxRect& rect );
|
bool Union( const wxRect& rect );
|
||||||
@@ -85,9 +85,10 @@ class wxRegion : public wxGDIObject
|
|||||||
bool Xor( const wxRegion& region );
|
bool Xor( const wxRegion& region );
|
||||||
|
|
||||||
void GetBox( long& x, long& y, long&w, long &h ) const;
|
void GetBox( long& x, long& y, long&w, long &h ) const;
|
||||||
wxRect GetBox(void) const ;
|
wxRect GetBox() const ;
|
||||||
|
|
||||||
bool Empty(void) const;
|
bool Empty() const;
|
||||||
|
bool IsEmpty() const { return Empty(); }
|
||||||
|
|
||||||
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;
|
||||||
@@ -97,39 +98,38 @@ class wxRegion : public wxGDIObject
|
|||||||
public:
|
public:
|
||||||
|
|
||||||
wxList *GetRectList() const;
|
wxList *GetRectList() const;
|
||||||
GdkRegion *GetRegion(void) const;
|
GdkRegion *GetRegion() const;
|
||||||
};
|
};
|
||||||
|
|
||||||
class wxRegionIterator: public wxObject
|
class wxRegionIterator: public wxObject
|
||||||
{
|
{
|
||||||
DECLARE_DYNAMIC_CLASS(wxRegionIterator);
|
public:
|
||||||
|
wxRegionIterator();
|
||||||
public:
|
|
||||||
|
|
||||||
wxRegionIterator(void);
|
|
||||||
wxRegionIterator(const wxRegion& region);
|
wxRegionIterator(const wxRegion& region);
|
||||||
|
|
||||||
void Reset(void) { m_current = 0; }
|
void Reset() { m_current = 0; }
|
||||||
void Reset(const wxRegion& region);
|
void Reset(const wxRegion& region);
|
||||||
|
|
||||||
operator bool (void) const;
|
operator bool () const;
|
||||||
bool HaveRects(void) const;
|
bool HaveRects() const;
|
||||||
|
|
||||||
void operator ++ (void);
|
void operator ++ ();
|
||||||
void operator ++ (int);
|
void operator ++ (int);
|
||||||
|
|
||||||
long GetX(void) const;
|
long GetX() const;
|
||||||
long GetY(void) const;
|
long GetY() const;
|
||||||
long GetW(void) const;
|
long GetW() const;
|
||||||
long GetWidth(void) const { return GetW(); }
|
long GetWidth() const { return GetW(); }
|
||||||
long GetH(void) const;
|
long GetH() const;
|
||||||
long GetHeight(void) const { return GetH(); }
|
long GetHeight() const { return GetH(); }
|
||||||
wxRect GetRect() const { return wxRect(GetX(), GetY(), GetWidth(), GetHeight()); }
|
wxRect GetRect() const { return wxRect(GetX(), GetY(), GetWidth(), GetHeight()); }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
long m_current;
|
||||||
long m_current;
|
wxRegion m_region;
|
||||||
wxRegion m_region;
|
|
||||||
|
private:
|
||||||
|
DECLARE_DYNAMIC_CLASS(wxRegionIterator);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@@ -8,7 +8,7 @@
|
|||||||
// Licence: wxWindows licence
|
// Licence: wxWindows licence
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#ifndef __GTKSPINPUTTH__
|
#ifndef __GTKSPINBUTTH__
|
||||||
#define __GTKSPINBUTTH__
|
#define __GTKSPINBUTTH__
|
||||||
|
|
||||||
#ifdef __GNUG__
|
#ifdef __GNUG__
|
||||||
@@ -21,8 +21,6 @@
|
|||||||
|
|
||||||
class wxSpinButton : public wxSpinButtonBase
|
class wxSpinButton : public wxSpinButtonBase
|
||||||
{
|
{
|
||||||
DECLARE_DYNAMIC_CLASS(wxSpinButton)
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
wxSpinButton() { }
|
wxSpinButton() { }
|
||||||
wxSpinButton( wxWindow *parent, wxWindowID id = -1,
|
wxSpinButton( wxWindow *parent, wxWindowID id = -1,
|
||||||
@@ -31,7 +29,6 @@ public:
|
|||||||
{
|
{
|
||||||
Create(parent, id, pos, size, style, name);
|
Create(parent, id, pos, size, style, name);
|
||||||
}
|
}
|
||||||
~wxSpinButton();
|
|
||||||
|
|
||||||
bool Create( wxWindow *parent, wxWindowID id = -1,
|
bool Create( wxWindow *parent, wxWindowID id = -1,
|
||||||
const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
|
const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
|
||||||
@@ -54,6 +51,7 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_EVENT_TABLE()
|
DECLARE_EVENT_TABLE()
|
||||||
|
DECLARE_DYNAMIC_CLASS(wxSpinButton)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
62
include/wx/gtk/spinctrl.h
Normal file
62
include/wx/gtk/spinctrl.h
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
// Name: spinctrl.h
|
||||||
|
// Purpose: wxSpinCtrl class
|
||||||
|
// Author: Robert Roebling
|
||||||
|
// Modified by:
|
||||||
|
// RCS-ID: $Id$
|
||||||
|
// Copyright: (c) Robert Roebling
|
||||||
|
// Licence: wxWindows licence
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifndef __GTKSPINCTRLH__
|
||||||
|
#define __GTKSPINCTRLH__
|
||||||
|
|
||||||
|
#ifdef __GNUG__
|
||||||
|
#pragma interface
|
||||||
|
#endif
|
||||||
|
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
// wxSpinButton
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
class wxSpinCtrl : public wxControl
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
wxSpinCtrl() {}
|
||||||
|
wxSpinCtrl(wxWindow *parent,
|
||||||
|
wxWindowID id = -1,
|
||||||
|
const wxPoint& pos = wxDefaultPosition,
|
||||||
|
const wxSize& size = wxDefaultSize,
|
||||||
|
long style = wxSP_ARROW_KEYS,
|
||||||
|
int min = 0, int max = 100, int initial = 0,
|
||||||
|
const wxString& name = _T("wxSpinCtrl"))
|
||||||
|
{
|
||||||
|
Create(parent, id, pos, size, style, min, max, initial, name);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool Create(wxWindow *parent,
|
||||||
|
wxWindowID id = -1,
|
||||||
|
const wxPoint& pos = wxDefaultPosition,
|
||||||
|
const wxSize& size = wxDefaultSize,
|
||||||
|
long style = wxSP_ARROW_KEYS,
|
||||||
|
int min = 0, int max = 100, int initial = 0,
|
||||||
|
const wxString& name = _T("wxSpinCtrl"));
|
||||||
|
|
||||||
|
virtual int GetValue() const;
|
||||||
|
virtual void SetValue( int value );
|
||||||
|
virtual void SetRange( int minVal, int maxVal );
|
||||||
|
virtual int GetMin() const;
|
||||||
|
virtual int GetMax() const;
|
||||||
|
|
||||||
|
bool IsOwnGtkWindow( GdkWindow *window );
|
||||||
|
void ApplyWidgetStyle();
|
||||||
|
|
||||||
|
GtkAdjustment *m_adjust;
|
||||||
|
float m_oldPos;
|
||||||
|
|
||||||
|
private:
|
||||||
|
DECLARE_DYNAMIC_CLASS(wxSpinCtrl)
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
||||||
|
// __GTKSPINCTRLH__
|
@@ -36,66 +36,74 @@ typedef enum
|
|||||||
|
|
||||||
typedef struct _GtkMyFixed GtkMyFixed;
|
typedef struct _GtkMyFixed GtkMyFixed;
|
||||||
typedef struct _GtkMyFixedClass GtkMyFixedClass;
|
typedef struct _GtkMyFixedClass GtkMyFixedClass;
|
||||||
typedef struct _GtkMyFixedChild GtkMyFixedChild;
|
|
||||||
|
|
||||||
struct _GtkMyFixed
|
struct _GtkMyFixed
|
||||||
{
|
{
|
||||||
GtkContainer container;
|
GtkContainer container;
|
||||||
GList *children;
|
GList *children;
|
||||||
#if (GTK_MINOR_VERSION > 0)
|
|
||||||
GtkMyShadowType shadow_type;
|
GtkMyShadowType shadow_type;
|
||||||
#endif
|
|
||||||
|
guint width;
|
||||||
|
guint height;
|
||||||
|
|
||||||
|
guint xoffset;
|
||||||
|
guint yoffset;
|
||||||
|
|
||||||
|
GdkWindow *bin_window;
|
||||||
|
|
||||||
|
GdkVisibilityState visibility;
|
||||||
|
gulong configure_serial;
|
||||||
|
gint scroll_x;
|
||||||
|
gint scroll_y;
|
||||||
|
|
||||||
|
gboolean clear_on_draw;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GtkMyFixedClass
|
struct _GtkMyFixedClass
|
||||||
{
|
{
|
||||||
GtkContainerClass parent_class;
|
GtkContainerClass parent_class;
|
||||||
|
|
||||||
#if (GTK_MINOR_VERSION > 0)
|
|
||||||
void (*set_scroll_adjustments) (GtkMyFixed *myfixed,
|
void (*set_scroll_adjustments) (GtkMyFixed *myfixed,
|
||||||
GtkAdjustment *hadjustment,
|
GtkAdjustment *hadjustment,
|
||||||
GtkAdjustment *vadjustment);
|
GtkAdjustment *vadjustment);
|
||||||
#endif
|
|
||||||
};
|
|
||||||
|
|
||||||
struct _GtkMyFixedChild
|
|
||||||
{
|
|
||||||
GtkWidget *widget;
|
|
||||||
gint16 x;
|
|
||||||
gint16 y;
|
|
||||||
gint16 width;
|
|
||||||
gint16 height;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
guint gtk_myfixed_get_type (void);
|
guint gtk_myfixed_get_type (void);
|
||||||
GtkWidget* gtk_myfixed_new (void);
|
GtkWidget* gtk_myfixed_new (void);
|
||||||
#if (GTK_MINOR_VERSION > 0)
|
|
||||||
void gtk_myfixed_set_shadow_type (GtkMyFixed *myfixed,
|
void gtk_myfixed_set_shadow_type (GtkMyFixed *myfixed,
|
||||||
GtkMyShadowType type);
|
GtkMyShadowType type);
|
||||||
#endif
|
|
||||||
|
void gtk_my_fixed_set_clear (GtkMyFixed *myfixed,
|
||||||
|
gboolean clear);
|
||||||
|
|
||||||
|
void gtk_myfixed_scroll (GtkMyFixed *myfixed,
|
||||||
|
gint dx,
|
||||||
|
gint dy);
|
||||||
|
|
||||||
void gtk_myfixed_put (GtkMyFixed *myfixed,
|
void gtk_myfixed_put (GtkMyFixed *myfixed,
|
||||||
GtkWidget *widget,
|
GtkWidget *widget,
|
||||||
gint16 x,
|
gint x,
|
||||||
gint16 y,
|
gint y,
|
||||||
gint16 width,
|
gint width,
|
||||||
gint16 height);
|
gint height);
|
||||||
|
|
||||||
void gtk_myfixed_move (GtkMyFixed *myfixed,
|
void gtk_myfixed_move (GtkMyFixed *myfixed,
|
||||||
GtkWidget *widget,
|
GtkWidget *widget,
|
||||||
gint16 x,
|
gint x,
|
||||||
gint16 y );
|
gint y );
|
||||||
|
|
||||||
void gtk_myfixed_resize (GtkMyFixed *myfixed,
|
void gtk_myfixed_resize (GtkMyFixed *myfixed,
|
||||||
GtkWidget *widget,
|
GtkWidget *widget,
|
||||||
gint16 width,
|
gint width,
|
||||||
gint16 height );
|
gint height );
|
||||||
|
|
||||||
void gtk_myfixed_set_size (GtkMyFixed *myfixed,
|
void gtk_myfixed_set_size (GtkMyFixed *myfixed,
|
||||||
GtkWidget *widget,
|
GtkWidget *widget,
|
||||||
gint16 x,
|
gint x,
|
||||||
gint16 y,
|
gint y,
|
||||||
gint16 width,
|
gint width,
|
||||||
gint16 height);
|
gint height);
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif /* __cplusplus */
|
#endif /* __cplusplus */
|
||||||
|
@@ -172,14 +172,9 @@ public:
|
|||||||
float m_oldHorizontalPos;
|
float m_oldHorizontalPos;
|
||||||
float m_oldVerticalPos;
|
float m_oldVerticalPos;
|
||||||
|
|
||||||
// we need an extra XGC flag set to get exposed
|
|
||||||
// events from overlapping children upon moving
|
|
||||||
// them. this flag will be set in this GC and
|
|
||||||
// the GC will be used in wxWindow::ScrollWindow().
|
|
||||||
GdkGC *m_scrollGC;
|
|
||||||
|
|
||||||
// extra (wxGTK-specific) flags
|
// extra (wxGTK-specific) flags
|
||||||
bool m_needParent:1; /* ! wxFrame, wxDialog, wxNotebookPage ? */
|
bool m_needParent:1; /* ! wxFrame, wxDialog, wxNotebookPage ? */
|
||||||
|
bool m_noExpose:1; /* wxGLCanvas has its own redrawing */
|
||||||
bool m_hasScrolling:1;
|
bool m_hasScrolling:1;
|
||||||
bool m_isScrolling:1;
|
bool m_isScrolling:1;
|
||||||
bool m_hasVMT:1;
|
bool m_hasVMT:1;
|
||||||
@@ -188,7 +183,7 @@ public:
|
|||||||
bool m_isStaticBox:1; /* faster than IS_KIND_OF */
|
bool m_isStaticBox:1; /* faster than IS_KIND_OF */
|
||||||
bool m_isRadioButton:1; /* faster than IS_KIND_OF */
|
bool m_isRadioButton:1; /* faster than IS_KIND_OF */
|
||||||
bool m_isFrame:1; /* faster than IS_KIND_OF */
|
bool m_isFrame:1; /* faster than IS_KIND_OF */
|
||||||
bool m_acceptsFocus:1; /* ! wxStaticBox etc. */
|
bool m_acceptsFocus:1; /* not wxStaticBox, not wxStaticBitmap etc. */
|
||||||
|
|
||||||
// these are true if the style were set before the widget was realized
|
// these are true if the style were set before the widget was realized
|
||||||
// (typcally in the constructor) but the actual GTK style must not be set
|
// (typcally in the constructor) but the actual GTK style must not be set
|
||||||
@@ -196,13 +191,7 @@ public:
|
|||||||
bool m_delayedFont:1;
|
bool m_delayedFont:1;
|
||||||
bool m_delayedForegroundColour:1;
|
bool m_delayedForegroundColour:1;
|
||||||
bool m_delayedBackgroundColour:1;
|
bool m_delayedBackgroundColour:1;
|
||||||
bool m_delayedCursor:1;
|
|
||||||
|
|
||||||
// the cursor is set in OnInternalIdle(). this fields holds
|
|
||||||
// a reference to the cursor currently set in theGdk window
|
|
||||||
// so that we don't have to set it more than once
|
|
||||||
wxCursor m_currentGdkCursor;
|
|
||||||
|
|
||||||
// contains GTK's widgets internal information about non-default widget
|
// contains GTK's widgets internal information about non-default widget
|
||||||
// font and colours. we create one for each widget that gets any
|
// font and colours. we create one for each widget that gets any
|
||||||
// non-default attribute set via SetFont() or SetForegroundColour() /
|
// non-default attribute set via SetFont() or SetForegroundColour() /
|
||||||
|
@@ -56,8 +56,7 @@ extern wxAcceleratorTable wxNullAcceleratorTable;
|
|||||||
|
|
||||||
class wxAcceleratorEntry: public wxObject
|
class wxAcceleratorEntry: public wxObject
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
wxAcceleratorEntry(int flags = 0, int keyCode = 0, int cmd = 0)
|
wxAcceleratorEntry(int flags = 0, int keyCode = 0, int cmd = 0)
|
||||||
{ m_flags = flags; m_keyCode = keyCode; m_command = cmd; }
|
{ m_flags = flags; m_keyCode = keyCode; m_command = cmd; }
|
||||||
|
|
||||||
|
@@ -80,6 +80,7 @@ private:
|
|||||||
/// Set to TRUE while we are in wxYield().
|
/// Set to TRUE while we are in wxYield().
|
||||||
bool m_suppressIdleEvents;
|
bool m_suppressIdleEvents;
|
||||||
|
|
||||||
|
private:
|
||||||
DECLARE_DYNAMIC_CLASS(wxApp)
|
DECLARE_DYNAMIC_CLASS(wxApp)
|
||||||
DECLARE_EVENT_TABLE()
|
DECLARE_EVENT_TABLE()
|
||||||
};
|
};
|
||||||
|
@@ -43,56 +43,57 @@ extern const wxChar *wxButtonNameStr;
|
|||||||
|
|
||||||
class wxBitmapButton: public wxButton
|
class wxBitmapButton: public wxButton
|
||||||
{
|
{
|
||||||
DECLARE_DYNAMIC_CLASS(wxBitmapButton)
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
wxBitmapButton();
|
wxBitmapButton();
|
||||||
inline wxBitmapButton( wxWindow *parent, wxWindowID id, const wxBitmap& bitmap,
|
inline wxBitmapButton( wxWindow *parent, wxWindowID id, const wxBitmap& bitmap,
|
||||||
const wxPoint& pos = wxDefaultPosition,
|
const wxPoint& pos = wxDefaultPosition,
|
||||||
const wxSize& size = wxDefaultSize, long style = wxBU_AUTODRAW,
|
const wxSize& size = wxDefaultSize, long style = wxBU_AUTODRAW,
|
||||||
const wxValidator& validator = wxDefaultValidator,
|
const wxValidator& validator = wxDefaultValidator,
|
||||||
const wxString& name = wxButtonNameStr )
|
const wxString& name = wxButtonNameStr )
|
||||||
{
|
{
|
||||||
Create(parent, id, bitmap, pos, size, style, validator, name);
|
Create(parent, id, bitmap, pos, size, style, validator, name);
|
||||||
}
|
}
|
||||||
bool Create( wxWindow *parent, wxWindowID id, const wxBitmap& bitmap,
|
bool Create( wxWindow *parent, wxWindowID id, const wxBitmap& bitmap,
|
||||||
const wxPoint& pos = wxDefaultPosition,
|
const wxPoint& pos = wxDefaultPosition,
|
||||||
const wxSize& size = wxDefaultSize, long style = wxBU_AUTODRAW,
|
const wxSize& size = wxDefaultSize, long style = wxBU_AUTODRAW,
|
||||||
const wxValidator& validator = wxDefaultValidator,
|
const wxValidator& validator = wxDefaultValidator,
|
||||||
const wxString& name = wxButtonNameStr);
|
const wxString& name = wxButtonNameStr);
|
||||||
virtual void SetDefault();
|
virtual void SetDefault();
|
||||||
|
|
||||||
void SetLabel( const wxString &label );
|
void SetLabel( const wxString &label );
|
||||||
wxString GetLabel() const;
|
wxString GetLabel() const;
|
||||||
virtual void SetLabel( const wxBitmap& bitmap ) { SetBitmapLabel(bitmap); }
|
virtual void SetLabel( const wxBitmap& bitmap ) { SetBitmapLabel(bitmap); }
|
||||||
|
|
||||||
wxBitmap& GetBitmapDisabled() const { return (wxBitmap&) m_disabled; }
|
wxBitmap& GetBitmapDisabled() const { return (wxBitmap&) m_disabled; }
|
||||||
wxBitmap& GetBitmapFocus() const { return (wxBitmap&) m_focus; }
|
wxBitmap& GetBitmapFocus() const { return (wxBitmap&) m_focus; }
|
||||||
wxBitmap& GetBitmapLabel() const { return (wxBitmap&) m_bitmap; }
|
wxBitmap& GetBitmapLabel() const { return (wxBitmap&) m_bitmap; }
|
||||||
wxBitmap& GetBitmapSelected() const { return (wxBitmap&) m_selected; }
|
wxBitmap& GetBitmapSelected() const { return (wxBitmap&) m_selected; }
|
||||||
|
|
||||||
void SetBitmapDisabled( const wxBitmap& bitmap );
|
void SetBitmapDisabled( const wxBitmap& bitmap );
|
||||||
void SetBitmapFocus( const wxBitmap& bitmap );
|
void SetBitmapFocus( const wxBitmap& bitmap );
|
||||||
void SetBitmapLabel( const wxBitmap& bitmap );
|
void SetBitmapLabel( const wxBitmap& bitmap );
|
||||||
void SetBitmapSelected( const wxBitmap& bitmap );
|
void SetBitmapSelected( const wxBitmap& bitmap );
|
||||||
|
|
||||||
virtual bool Enable(bool enable);
|
virtual bool Enable(bool enable);
|
||||||
|
|
||||||
// implementation
|
// implementation
|
||||||
|
|
||||||
void HasFocus();
|
void HasFocus();
|
||||||
void NotFocus();
|
void NotFocus();
|
||||||
void StartSelect();
|
void StartSelect();
|
||||||
void EndSelect();
|
void EndSelect();
|
||||||
void SetBitmap();
|
void SetBitmap();
|
||||||
void ApplyWidgetStyle();
|
void ApplyWidgetStyle();
|
||||||
|
|
||||||
bool m_hasFocus;
|
bool m_hasFocus;
|
||||||
bool m_isSelected;
|
bool m_isSelected;
|
||||||
wxBitmap m_bitmap;
|
wxBitmap m_bitmap;
|
||||||
wxBitmap m_disabled;
|
wxBitmap m_disabled;
|
||||||
wxBitmap m_focus;
|
wxBitmap m_focus;
|
||||||
wxBitmap m_selected;
|
wxBitmap m_selected;
|
||||||
|
|
||||||
|
private:
|
||||||
|
DECLARE_DYNAMIC_CLASS(wxBitmapButton)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -33,10 +33,7 @@ class wxBrush;
|
|||||||
|
|
||||||
class wxBrush: public wxGDIObject
|
class wxBrush: public wxGDIObject
|
||||||
{
|
{
|
||||||
DECLARE_DYNAMIC_CLASS(wxBrush)
|
public:
|
||||||
|
|
||||||
public:
|
|
||||||
|
|
||||||
wxBrush();
|
wxBrush();
|
||||||
wxBrush( const wxColour &colour, int style );
|
wxBrush( const wxColour &colour, int style );
|
||||||
wxBrush( const wxBitmap &stippleBitmap );
|
wxBrush( const wxBitmap &stippleBitmap );
|
||||||
@@ -58,7 +55,8 @@ class wxBrush: public wxGDIObject
|
|||||||
|
|
||||||
void Unshare();
|
void Unshare();
|
||||||
|
|
||||||
// no data :-)
|
private:
|
||||||
|
DECLARE_DYNAMIC_CLASS(wxBrush)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // __GTKBRUSHH__
|
#endif // __GTKBRUSHH__
|
||||||
|
@@ -7,7 +7,6 @@
|
|||||||
// Licence: wxWindows licence
|
// Licence: wxWindows licence
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
|
||||||
#ifndef __GTKBUTTONH__
|
#ifndef __GTKBUTTONH__
|
||||||
#define __GTKBUTTONH__
|
#define __GTKBUTTONH__
|
||||||
|
|
||||||
@@ -38,10 +37,7 @@ extern const wxChar *wxButtonNameStr;
|
|||||||
|
|
||||||
class wxButton: public wxControl
|
class wxButton: public wxControl
|
||||||
{
|
{
|
||||||
DECLARE_DYNAMIC_CLASS(wxButton)
|
public:
|
||||||
|
|
||||||
public:
|
|
||||||
|
|
||||||
wxButton();
|
wxButton();
|
||||||
inline wxButton(wxWindow *parent, wxWindowID id, const wxString& label,
|
inline wxButton(wxWindow *parent, wxWindowID id, const wxString& label,
|
||||||
const wxPoint& pos = wxDefaultPosition,
|
const wxPoint& pos = wxDefaultPosition,
|
||||||
@@ -66,6 +62,9 @@ class wxButton: public wxControl
|
|||||||
// implementation
|
// implementation
|
||||||
|
|
||||||
void ApplyWidgetStyle();
|
void ApplyWidgetStyle();
|
||||||
|
|
||||||
|
private:
|
||||||
|
DECLARE_DYNAMIC_CLASS(wxButton)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // __GTKBUTTONH__
|
#endif // __GTKBUTTONH__
|
||||||
|
@@ -7,7 +7,6 @@
|
|||||||
// Licence: wxWindows licence
|
// Licence: wxWindows licence
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
|
||||||
#ifndef __GTKCHECKBOXH__
|
#ifndef __GTKCHECKBOXH__
|
||||||
#define __GTKCHECKBOXH__
|
#define __GTKCHECKBOXH__
|
||||||
|
|
||||||
@@ -41,8 +40,6 @@ extern const char *wxCheckBoxNameStr;
|
|||||||
|
|
||||||
class wxCheckBox: public wxControl
|
class wxCheckBox: public wxControl
|
||||||
{
|
{
|
||||||
DECLARE_DYNAMIC_CLASS(wxCheckBox)
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
wxCheckBox();
|
wxCheckBox();
|
||||||
wxCheckBox( wxWindow *parent, wxWindowID id, const wxString& label,
|
wxCheckBox( wxWindow *parent, wxWindowID id, const wxString& label,
|
||||||
@@ -73,6 +70,9 @@ public:
|
|||||||
|
|
||||||
GtkWidget *m_widgetCheckbox;
|
GtkWidget *m_widgetCheckbox;
|
||||||
GtkWidget *m_widgetLabel;
|
GtkWidget *m_widgetLabel;
|
||||||
|
|
||||||
|
private:
|
||||||
|
DECLARE_DYNAMIC_CLASS(wxCheckBox)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -36,8 +36,6 @@ class wxCheckListBox;
|
|||||||
|
|
||||||
class wxCheckListBox : public wxListBox
|
class wxCheckListBox : public wxListBox
|
||||||
{
|
{
|
||||||
DECLARE_DYNAMIC_CLASS(wxCheckListBox)
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
wxCheckListBox();
|
wxCheckListBox();
|
||||||
wxCheckListBox(wxWindow *parent, wxWindowID id,
|
wxCheckListBox(wxWindow *parent, wxWindowID id,
|
||||||
@@ -53,6 +51,9 @@ public:
|
|||||||
void Check( int index, bool check = TRUE );
|
void Check( int index, bool check = TRUE );
|
||||||
|
|
||||||
int GetItemHeight() const;
|
int GetItemHeight() const;
|
||||||
|
|
||||||
|
private:
|
||||||
|
DECLARE_DYNAMIC_CLASS(wxCheckListBox)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -38,8 +38,6 @@ extern const wxChar *wxChoiceNameStr;
|
|||||||
|
|
||||||
class wxChoice : public wxControl
|
class wxChoice : public wxControl
|
||||||
{
|
{
|
||||||
DECLARE_DYNAMIC_CLASS(wxChoice)
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
wxChoice();
|
wxChoice();
|
||||||
wxChoice( wxWindow *parent, wxWindowID id,
|
wxChoice( wxWindow *parent, wxWindowID id,
|
||||||
@@ -97,6 +95,9 @@ public:
|
|||||||
void EnableEvents();
|
void EnableEvents();
|
||||||
void AppendCommon( const wxString &item );
|
void AppendCommon( const wxString &item );
|
||||||
void ApplyWidgetStyle();
|
void ApplyWidgetStyle();
|
||||||
|
|
||||||
|
private:
|
||||||
|
DECLARE_DYNAMIC_CLASS(wxChoice)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@@ -44,8 +44,6 @@ extern wxClipboard* wxTheClipboard;
|
|||||||
|
|
||||||
class wxClipboard : public wxObject
|
class wxClipboard : public wxObject
|
||||||
{
|
{
|
||||||
DECLARE_DYNAMIC_CLASS(wxClipboard)
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
wxClipboard();
|
wxClipboard();
|
||||||
~wxClipboard();
|
~wxClipboard();
|
||||||
@@ -91,6 +89,9 @@ public:
|
|||||||
GdkAtom m_targetRequested;
|
GdkAtom m_targetRequested;
|
||||||
bool m_usePrimary;
|
bool m_usePrimary;
|
||||||
wxDataObject *m_receivedData;
|
wxDataObject *m_receivedData;
|
||||||
|
|
||||||
|
private:
|
||||||
|
DECLARE_DYNAMIC_CLASS(wxClipboard)
|
||||||
};
|
};
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
@@ -99,12 +100,13 @@ public:
|
|||||||
|
|
||||||
class wxClipboardModule: public wxModule
|
class wxClipboardModule: public wxModule
|
||||||
{
|
{
|
||||||
DECLARE_DYNAMIC_CLASS(wxClipboardModule)
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
wxClipboardModule() {}
|
wxClipboardModule() {}
|
||||||
bool OnInit();
|
bool OnInit();
|
||||||
void OnExit();
|
void OnExit();
|
||||||
|
|
||||||
|
private:
|
||||||
|
DECLARE_DYNAMIC_CLASS(wxClipboardModule)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -42,12 +42,9 @@ extern const wxChar* wxEmptyString;
|
|||||||
|
|
||||||
class wxComboBox : public wxControl
|
class wxComboBox : public wxControl
|
||||||
{
|
{
|
||||||
DECLARE_DYNAMIC_CLASS(wxComboBox)
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
inline wxComboBox() {}
|
||||||
inline wxComboBox() {}
|
inline wxComboBox(wxWindow *parent, wxWindowID id,
|
||||||
inline wxComboBox(wxWindow *parent, wxWindowID id,
|
|
||||||
const wxString& value = wxEmptyString,
|
const wxString& value = wxEmptyString,
|
||||||
const wxPoint& pos = wxDefaultPosition,
|
const wxPoint& pos = wxDefaultPosition,
|
||||||
const wxSize& size = wxDefaultSize,
|
const wxSize& size = wxDefaultSize,
|
||||||
@@ -55,11 +52,11 @@ public:
|
|||||||
long style = 0,
|
long style = 0,
|
||||||
const wxValidator& validator = wxDefaultValidator,
|
const wxValidator& validator = wxDefaultValidator,
|
||||||
const wxString& name = wxComboBoxNameStr)
|
const wxString& name = wxComboBoxNameStr)
|
||||||
{
|
{
|
||||||
Create(parent, id, value, pos, size, n, choices, style, validator, name);
|
Create(parent, id, value, pos, size, n, choices, style, validator, name);
|
||||||
}
|
}
|
||||||
~wxComboBox();
|
~wxComboBox();
|
||||||
bool Create(wxWindow *parent, wxWindowID id,
|
bool Create(wxWindow *parent, wxWindowID id,
|
||||||
const wxString& value = wxEmptyString,
|
const wxString& value = wxEmptyString,
|
||||||
const wxPoint& pos = wxDefaultPosition,
|
const wxPoint& pos = wxDefaultPosition,
|
||||||
const wxSize& size = wxDefaultSize,
|
const wxSize& size = wxDefaultSize,
|
||||||
@@ -68,63 +65,65 @@ public:
|
|||||||
const wxValidator& validator = wxDefaultValidator,
|
const wxValidator& validator = wxDefaultValidator,
|
||||||
const wxString& name = wxComboBoxNameStr);
|
const wxString& name = wxComboBoxNameStr);
|
||||||
|
|
||||||
void Append( const wxString &item );
|
void Append( const wxString &item );
|
||||||
void Append( const wxString &item, void* clientData );
|
void Append( const wxString &item, void* clientData );
|
||||||
void Append( const wxString &item, wxClientData* clientData );
|
void Append( const wxString &item, wxClientData* clientData );
|
||||||
|
|
||||||
void SetClientData( int n, void* clientData );
|
void SetClientData( int n, void* clientData );
|
||||||
void* GetClientData( int n );
|
void* GetClientData( int n );
|
||||||
void SetClientObject( int n, wxClientData* clientData );
|
void SetClientObject( int n, wxClientData* clientData );
|
||||||
wxClientData* GetClientObject( int n );
|
wxClientData* GetClientObject( int n );
|
||||||
|
|
||||||
void SetClientObject( wxClientData *data ) { wxControl::SetClientObject( data ); }
|
void SetClientObject( wxClientData *data ) { wxControl::SetClientObject( data ); }
|
||||||
wxClientData *GetClientObject() const { return wxControl::GetClientObject(); }
|
wxClientData *GetClientObject() const { return wxControl::GetClientObject(); }
|
||||||
void SetClientData( void *data ) { wxControl::SetClientData( data ); }
|
void SetClientData( void *data ) { wxControl::SetClientData( data ); }
|
||||||
void *GetClientData() const { return wxControl::GetClientData(); }
|
void *GetClientData() const { return wxControl::GetClientData(); }
|
||||||
|
|
||||||
void Clear();
|
void Clear();
|
||||||
void Delete( int n );
|
void Delete( int n );
|
||||||
|
|
||||||
int FindString( const wxString &item );
|
int FindString( const wxString &item );
|
||||||
int GetSelection() const;
|
int GetSelection() const;
|
||||||
wxString GetString( int n ) const;
|
wxString GetString( int n ) const;
|
||||||
wxString GetStringSelection() const;
|
wxString GetStringSelection() const;
|
||||||
int Number() const;
|
int Number() const;
|
||||||
void SetSelection( int n );
|
void SetSelection( int n );
|
||||||
void SetStringSelection( const wxString &string );
|
void SetStringSelection( const wxString &string );
|
||||||
|
|
||||||
wxString GetValue() const;
|
wxString GetValue() const;
|
||||||
void SetValue(const wxString& value);
|
void SetValue(const wxString& value);
|
||||||
|
|
||||||
void Copy();
|
void Copy();
|
||||||
void Cut();
|
void Cut();
|
||||||
void Paste();
|
void Paste();
|
||||||
void SetInsertionPoint( long pos );
|
void SetInsertionPoint( long pos );
|
||||||
void SetInsertionPointEnd();
|
void SetInsertionPointEnd();
|
||||||
long GetInsertionPoint() const;
|
long GetInsertionPoint() const;
|
||||||
long GetLastPosition() const;
|
long GetLastPosition() const;
|
||||||
void Replace( long from, long to, const wxString& value );
|
void Replace( long from, long to, const wxString& value );
|
||||||
void Remove( long from, long to );
|
void Remove( long from, long to );
|
||||||
void SetSelection( long from, long to );
|
void SetSelection( long from, long to );
|
||||||
void SetEditable( bool editable );
|
void SetEditable( bool editable );
|
||||||
|
|
||||||
void OnSize( wxSizeEvent &event );
|
// implementation
|
||||||
void OnChar( wxKeyEvent &event );
|
|
||||||
|
|
||||||
// implementation
|
|
||||||
|
|
||||||
bool m_alreadySent;
|
void OnSize( wxSizeEvent &event );
|
||||||
wxList m_clientDataList;
|
void OnChar( wxKeyEvent &event );
|
||||||
wxList m_clientObjectList;
|
|
||||||
|
|
||||||
void DisableEvents();
|
|
||||||
void EnableEvents();
|
|
||||||
void AppendCommon( const wxString &item );
|
|
||||||
GtkWidget* GetConnectWidget();
|
|
||||||
bool IsOwnGtkWindow( GdkWindow *window );
|
|
||||||
void ApplyWidgetStyle();
|
|
||||||
|
|
||||||
DECLARE_EVENT_TABLE()
|
bool m_alreadySent;
|
||||||
|
wxList m_clientDataList;
|
||||||
|
wxList m_clientObjectList;
|
||||||
|
|
||||||
|
void DisableEvents();
|
||||||
|
void EnableEvents();
|
||||||
|
void AppendCommon( const wxString &item );
|
||||||
|
GtkWidget* GetConnectWidget();
|
||||||
|
bool IsOwnGtkWindow( GdkWindow *window );
|
||||||
|
void ApplyWidgetStyle();
|
||||||
|
|
||||||
|
private:
|
||||||
|
DECLARE_DYNAMIC_CLASS(wxComboBox)
|
||||||
|
DECLARE_EVENT_TABLE()
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -31,8 +31,6 @@ class wxControl;
|
|||||||
|
|
||||||
class wxControl : public wxWindow
|
class wxControl : public wxWindow
|
||||||
{
|
{
|
||||||
DECLARE_DYNAMIC_CLASS(wxControl)
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
wxControl();
|
wxControl();
|
||||||
wxControl( wxWindow *parent,
|
wxControl( wxWindow *parent,
|
||||||
@@ -50,6 +48,9 @@ public:
|
|||||||
protected:
|
protected:
|
||||||
wxString m_label;
|
wxString m_label;
|
||||||
char m_chAccel; // enabled to avoid breaking binary compatibility later on
|
char m_chAccel; // enabled to avoid breaking binary compatibility later on
|
||||||
|
|
||||||
|
private:
|
||||||
|
DECLARE_DYNAMIC_CLASS(wxControl)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // __GTKCONTROLH__
|
#endif // __GTKCONTROLH__
|
||||||
|
@@ -64,7 +64,7 @@ public:
|
|||||||
|
|
||||||
#if wxUSE_STATUSBAR
|
#if wxUSE_STATUSBAR
|
||||||
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 = _T("statusBar"));
|
const wxString& name = wxT("statusBar"));
|
||||||
virtual wxStatusBar *OnCreateStatusBar( int number, long style, wxWindowID id,
|
virtual wxStatusBar *OnCreateStatusBar( int number, long style, wxWindowID id,
|
||||||
const wxString& name );
|
const wxString& name );
|
||||||
virtual wxStatusBar *GetStatusBar() const;
|
virtual wxStatusBar *GetStatusBar() const;
|
||||||
@@ -78,7 +78,7 @@ public:
|
|||||||
const wxString& name = wxToolBarNameStr);
|
const wxString& name = wxToolBarNameStr);
|
||||||
virtual wxToolBar *OnCreateToolBar( long style, wxWindowID id, const wxString& name );
|
virtual wxToolBar *OnCreateToolBar( long style, wxWindowID id, const wxString& name );
|
||||||
virtual wxToolBar *GetToolBar() const;
|
virtual wxToolBar *GetToolBar() const;
|
||||||
void SetToolBar(wxToolBar *toolbar) { m_frameToolBar = toolbar; }
|
void SetToolBar(wxToolBar *toolbar);
|
||||||
#endif // wxUSE_TOOLBAR
|
#endif // wxUSE_TOOLBAR
|
||||||
|
|
||||||
virtual void SetMenuBar( wxMenuBar *menuBar );
|
virtual void SetMenuBar( wxMenuBar *menuBar );
|
||||||
|
@@ -121,8 +121,12 @@ class wxMDIChildFrame: public wxFrame
|
|||||||
|
|
||||||
#if wxUSE_STATUSBAR
|
#if wxUSE_STATUSBAR
|
||||||
// no status bars
|
// no status bars
|
||||||
virtual wxStatusBar* CreateStatusBar( int WXUNUSED(number)=1, long WXUNUSED(style)=1,
|
virtual wxStatusBar* CreateStatusBar( int WXUNUSED(number) = 1,
|
||||||
wxWindowID WXUNUSED(id)=1, const wxString& WXUNUSED(name)=WXSTRINGCAST NULL ) {return (wxStatusBar*)NULL; }
|
long WXUNUSED(style) = 1,
|
||||||
|
wxWindowID WXUNUSED(id) = 1,
|
||||||
|
const wxString& WXUNUSED(name) = wxEmptyString)
|
||||||
|
{ return (wxStatusBar*)NULL; }
|
||||||
|
|
||||||
virtual wxStatusBar *GetStatusBar() const { return (wxStatusBar*)NULL; }
|
virtual wxStatusBar *GetStatusBar() const { return (wxStatusBar*)NULL; }
|
||||||
virtual void SetStatusText( const wxString &WXUNUSED(text), int WXUNUSED(number)=0 ) {}
|
virtual void SetStatusText( const wxString &WXUNUSED(text), int WXUNUSED(number)=0 ) {}
|
||||||
virtual void SetStatusWidths( int WXUNUSED(n), const int WXUNUSED(widths_field)[] ) {}
|
virtual void SetStatusWidths( int WXUNUSED(n), const int WXUNUSED(widths_field)[] ) {}
|
||||||
|
@@ -128,11 +128,11 @@ public:
|
|||||||
|
|
||||||
~wxMenu();
|
~wxMenu();
|
||||||
|
|
||||||
// operations
|
// title
|
||||||
// title
|
|
||||||
void SetTitle(const wxString& label);
|
void SetTitle(const wxString& label);
|
||||||
const wxString GetTitle() const;
|
const wxString GetTitle() const;
|
||||||
// menu creation
|
|
||||||
|
// menu creation
|
||||||
void AppendSeparator();
|
void AppendSeparator();
|
||||||
void Append(int id, const wxString &item,
|
void Append(int id, const wxString &item,
|
||||||
const wxString &helpStr = "", bool checkable = FALSE);
|
const wxString &helpStr = "", bool checkable = FALSE);
|
||||||
@@ -141,6 +141,9 @@ public:
|
|||||||
void Append(wxMenuItem *pItem);
|
void Append(wxMenuItem *pItem);
|
||||||
void Break() { }
|
void Break() { }
|
||||||
|
|
||||||
|
// delete item. don't delete the wxMenu if it's a submenu
|
||||||
|
void Delete( int id );
|
||||||
|
|
||||||
// find item by name/id
|
// find item by name/id
|
||||||
int FindItem( const wxString itemString ) const;
|
int FindItem( const wxString itemString ) const;
|
||||||
wxMenuItem *FindItem( int id ) const;
|
wxMenuItem *FindItem( int id ) const;
|
||||||
|
@@ -40,6 +40,7 @@ DECLARE_DYNAMIC_CLASS(wxMenuItem)
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
wxMenuItem();
|
wxMenuItem();
|
||||||
|
~wxMenuItem();
|
||||||
|
|
||||||
// accessors
|
// accessors
|
||||||
// id
|
// id
|
||||||
|
@@ -55,8 +55,8 @@ class wxRegion : public wxGDIObject
|
|||||||
wxRegion( long x, long y, long w, long h );
|
wxRegion( long x, long y, long w, long h );
|
||||||
wxRegion( const wxPoint& topLeft, const wxPoint& bottomRight );
|
wxRegion( const wxPoint& topLeft, const wxPoint& bottomRight );
|
||||||
wxRegion( const wxRect& rect );
|
wxRegion( const wxRect& rect );
|
||||||
wxRegion(void);
|
wxRegion();
|
||||||
~wxRegion(void);
|
~wxRegion();
|
||||||
|
|
||||||
inline wxRegion( const wxRegion& r ): wxGDIObject()
|
inline wxRegion( const wxRegion& r ): wxGDIObject()
|
||||||
{ Ref(r); }
|
{ Ref(r); }
|
||||||
@@ -66,7 +66,7 @@ class wxRegion : public wxGDIObject
|
|||||||
bool operator == ( const wxRegion& region );
|
bool operator == ( const wxRegion& region );
|
||||||
bool operator != ( const wxRegion& region );
|
bool operator != ( const wxRegion& region );
|
||||||
|
|
||||||
void Clear(void);
|
void Clear();
|
||||||
|
|
||||||
bool Union( long x, long y, long width, long height );
|
bool Union( long x, long y, long width, long height );
|
||||||
bool Union( const wxRect& rect );
|
bool Union( const wxRect& rect );
|
||||||
@@ -85,9 +85,10 @@ class wxRegion : public wxGDIObject
|
|||||||
bool Xor( const wxRegion& region );
|
bool Xor( const wxRegion& region );
|
||||||
|
|
||||||
void GetBox( long& x, long& y, long&w, long &h ) const;
|
void GetBox( long& x, long& y, long&w, long &h ) const;
|
||||||
wxRect GetBox(void) const ;
|
wxRect GetBox() const ;
|
||||||
|
|
||||||
bool Empty(void) const;
|
bool Empty() const;
|
||||||
|
bool IsEmpty() const { return Empty(); }
|
||||||
|
|
||||||
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;
|
||||||
@@ -97,39 +98,38 @@ class wxRegion : public wxGDIObject
|
|||||||
public:
|
public:
|
||||||
|
|
||||||
wxList *GetRectList() const;
|
wxList *GetRectList() const;
|
||||||
GdkRegion *GetRegion(void) const;
|
GdkRegion *GetRegion() const;
|
||||||
};
|
};
|
||||||
|
|
||||||
class wxRegionIterator: public wxObject
|
class wxRegionIterator: public wxObject
|
||||||
{
|
{
|
||||||
DECLARE_DYNAMIC_CLASS(wxRegionIterator);
|
public:
|
||||||
|
wxRegionIterator();
|
||||||
public:
|
|
||||||
|
|
||||||
wxRegionIterator(void);
|
|
||||||
wxRegionIterator(const wxRegion& region);
|
wxRegionIterator(const wxRegion& region);
|
||||||
|
|
||||||
void Reset(void) { m_current = 0; }
|
void Reset() { m_current = 0; }
|
||||||
void Reset(const wxRegion& region);
|
void Reset(const wxRegion& region);
|
||||||
|
|
||||||
operator bool (void) const;
|
operator bool () const;
|
||||||
bool HaveRects(void) const;
|
bool HaveRects() const;
|
||||||
|
|
||||||
void operator ++ (void);
|
void operator ++ ();
|
||||||
void operator ++ (int);
|
void operator ++ (int);
|
||||||
|
|
||||||
long GetX(void) const;
|
long GetX() const;
|
||||||
long GetY(void) const;
|
long GetY() const;
|
||||||
long GetW(void) const;
|
long GetW() const;
|
||||||
long GetWidth(void) const { return GetW(); }
|
long GetWidth() const { return GetW(); }
|
||||||
long GetH(void) const;
|
long GetH() const;
|
||||||
long GetHeight(void) const { return GetH(); }
|
long GetHeight() const { return GetH(); }
|
||||||
wxRect GetRect() const { return wxRect(GetX(), GetY(), GetWidth(), GetHeight()); }
|
wxRect GetRect() const { return wxRect(GetX(), GetY(), GetWidth(), GetHeight()); }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
long m_current;
|
||||||
long m_current;
|
wxRegion m_region;
|
||||||
wxRegion m_region;
|
|
||||||
|
private:
|
||||||
|
DECLARE_DYNAMIC_CLASS(wxRegionIterator);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@@ -8,7 +8,7 @@
|
|||||||
// Licence: wxWindows licence
|
// Licence: wxWindows licence
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#ifndef __GTKSPINPUTTH__
|
#ifndef __GTKSPINBUTTH__
|
||||||
#define __GTKSPINBUTTH__
|
#define __GTKSPINBUTTH__
|
||||||
|
|
||||||
#ifdef __GNUG__
|
#ifdef __GNUG__
|
||||||
@@ -21,8 +21,6 @@
|
|||||||
|
|
||||||
class wxSpinButton : public wxSpinButtonBase
|
class wxSpinButton : public wxSpinButtonBase
|
||||||
{
|
{
|
||||||
DECLARE_DYNAMIC_CLASS(wxSpinButton)
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
wxSpinButton() { }
|
wxSpinButton() { }
|
||||||
wxSpinButton( wxWindow *parent, wxWindowID id = -1,
|
wxSpinButton( wxWindow *parent, wxWindowID id = -1,
|
||||||
@@ -31,7 +29,6 @@ public:
|
|||||||
{
|
{
|
||||||
Create(parent, id, pos, size, style, name);
|
Create(parent, id, pos, size, style, name);
|
||||||
}
|
}
|
||||||
~wxSpinButton();
|
|
||||||
|
|
||||||
bool Create( wxWindow *parent, wxWindowID id = -1,
|
bool Create( wxWindow *parent, wxWindowID id = -1,
|
||||||
const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
|
const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
|
||||||
@@ -54,6 +51,7 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_EVENT_TABLE()
|
DECLARE_EVENT_TABLE()
|
||||||
|
DECLARE_DYNAMIC_CLASS(wxSpinButton)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
62
include/wx/gtk1/spinctrl.h
Normal file
62
include/wx/gtk1/spinctrl.h
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
// Name: spinctrl.h
|
||||||
|
// Purpose: wxSpinCtrl class
|
||||||
|
// Author: Robert Roebling
|
||||||
|
// Modified by:
|
||||||
|
// RCS-ID: $Id$
|
||||||
|
// Copyright: (c) Robert Roebling
|
||||||
|
// Licence: wxWindows licence
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifndef __GTKSPINCTRLH__
|
||||||
|
#define __GTKSPINCTRLH__
|
||||||
|
|
||||||
|
#ifdef __GNUG__
|
||||||
|
#pragma interface
|
||||||
|
#endif
|
||||||
|
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
// wxSpinButton
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
class wxSpinCtrl : public wxControl
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
wxSpinCtrl() {}
|
||||||
|
wxSpinCtrl(wxWindow *parent,
|
||||||
|
wxWindowID id = -1,
|
||||||
|
const wxPoint& pos = wxDefaultPosition,
|
||||||
|
const wxSize& size = wxDefaultSize,
|
||||||
|
long style = wxSP_ARROW_KEYS,
|
||||||
|
int min = 0, int max = 100, int initial = 0,
|
||||||
|
const wxString& name = _T("wxSpinCtrl"))
|
||||||
|
{
|
||||||
|
Create(parent, id, pos, size, style, min, max, initial, name);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool Create(wxWindow *parent,
|
||||||
|
wxWindowID id = -1,
|
||||||
|
const wxPoint& pos = wxDefaultPosition,
|
||||||
|
const wxSize& size = wxDefaultSize,
|
||||||
|
long style = wxSP_ARROW_KEYS,
|
||||||
|
int min = 0, int max = 100, int initial = 0,
|
||||||
|
const wxString& name = _T("wxSpinCtrl"));
|
||||||
|
|
||||||
|
virtual int GetValue() const;
|
||||||
|
virtual void SetValue( int value );
|
||||||
|
virtual void SetRange( int minVal, int maxVal );
|
||||||
|
virtual int GetMin() const;
|
||||||
|
virtual int GetMax() const;
|
||||||
|
|
||||||
|
bool IsOwnGtkWindow( GdkWindow *window );
|
||||||
|
void ApplyWidgetStyle();
|
||||||
|
|
||||||
|
GtkAdjustment *m_adjust;
|
||||||
|
float m_oldPos;
|
||||||
|
|
||||||
|
private:
|
||||||
|
DECLARE_DYNAMIC_CLASS(wxSpinCtrl)
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
||||||
|
// __GTKSPINCTRLH__
|
@@ -36,66 +36,74 @@ typedef enum
|
|||||||
|
|
||||||
typedef struct _GtkMyFixed GtkMyFixed;
|
typedef struct _GtkMyFixed GtkMyFixed;
|
||||||
typedef struct _GtkMyFixedClass GtkMyFixedClass;
|
typedef struct _GtkMyFixedClass GtkMyFixedClass;
|
||||||
typedef struct _GtkMyFixedChild GtkMyFixedChild;
|
|
||||||
|
|
||||||
struct _GtkMyFixed
|
struct _GtkMyFixed
|
||||||
{
|
{
|
||||||
GtkContainer container;
|
GtkContainer container;
|
||||||
GList *children;
|
GList *children;
|
||||||
#if (GTK_MINOR_VERSION > 0)
|
|
||||||
GtkMyShadowType shadow_type;
|
GtkMyShadowType shadow_type;
|
||||||
#endif
|
|
||||||
|
guint width;
|
||||||
|
guint height;
|
||||||
|
|
||||||
|
guint xoffset;
|
||||||
|
guint yoffset;
|
||||||
|
|
||||||
|
GdkWindow *bin_window;
|
||||||
|
|
||||||
|
GdkVisibilityState visibility;
|
||||||
|
gulong configure_serial;
|
||||||
|
gint scroll_x;
|
||||||
|
gint scroll_y;
|
||||||
|
|
||||||
|
gboolean clear_on_draw;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GtkMyFixedClass
|
struct _GtkMyFixedClass
|
||||||
{
|
{
|
||||||
GtkContainerClass parent_class;
|
GtkContainerClass parent_class;
|
||||||
|
|
||||||
#if (GTK_MINOR_VERSION > 0)
|
|
||||||
void (*set_scroll_adjustments) (GtkMyFixed *myfixed,
|
void (*set_scroll_adjustments) (GtkMyFixed *myfixed,
|
||||||
GtkAdjustment *hadjustment,
|
GtkAdjustment *hadjustment,
|
||||||
GtkAdjustment *vadjustment);
|
GtkAdjustment *vadjustment);
|
||||||
#endif
|
|
||||||
};
|
|
||||||
|
|
||||||
struct _GtkMyFixedChild
|
|
||||||
{
|
|
||||||
GtkWidget *widget;
|
|
||||||
gint16 x;
|
|
||||||
gint16 y;
|
|
||||||
gint16 width;
|
|
||||||
gint16 height;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
guint gtk_myfixed_get_type (void);
|
guint gtk_myfixed_get_type (void);
|
||||||
GtkWidget* gtk_myfixed_new (void);
|
GtkWidget* gtk_myfixed_new (void);
|
||||||
#if (GTK_MINOR_VERSION > 0)
|
|
||||||
void gtk_myfixed_set_shadow_type (GtkMyFixed *myfixed,
|
void gtk_myfixed_set_shadow_type (GtkMyFixed *myfixed,
|
||||||
GtkMyShadowType type);
|
GtkMyShadowType type);
|
||||||
#endif
|
|
||||||
|
void gtk_my_fixed_set_clear (GtkMyFixed *myfixed,
|
||||||
|
gboolean clear);
|
||||||
|
|
||||||
|
void gtk_myfixed_scroll (GtkMyFixed *myfixed,
|
||||||
|
gint dx,
|
||||||
|
gint dy);
|
||||||
|
|
||||||
void gtk_myfixed_put (GtkMyFixed *myfixed,
|
void gtk_myfixed_put (GtkMyFixed *myfixed,
|
||||||
GtkWidget *widget,
|
GtkWidget *widget,
|
||||||
gint16 x,
|
gint x,
|
||||||
gint16 y,
|
gint y,
|
||||||
gint16 width,
|
gint width,
|
||||||
gint16 height);
|
gint height);
|
||||||
|
|
||||||
void gtk_myfixed_move (GtkMyFixed *myfixed,
|
void gtk_myfixed_move (GtkMyFixed *myfixed,
|
||||||
GtkWidget *widget,
|
GtkWidget *widget,
|
||||||
gint16 x,
|
gint x,
|
||||||
gint16 y );
|
gint y );
|
||||||
|
|
||||||
void gtk_myfixed_resize (GtkMyFixed *myfixed,
|
void gtk_myfixed_resize (GtkMyFixed *myfixed,
|
||||||
GtkWidget *widget,
|
GtkWidget *widget,
|
||||||
gint16 width,
|
gint width,
|
||||||
gint16 height );
|
gint height );
|
||||||
|
|
||||||
void gtk_myfixed_set_size (GtkMyFixed *myfixed,
|
void gtk_myfixed_set_size (GtkMyFixed *myfixed,
|
||||||
GtkWidget *widget,
|
GtkWidget *widget,
|
||||||
gint16 x,
|
gint x,
|
||||||
gint16 y,
|
gint y,
|
||||||
gint16 width,
|
gint width,
|
||||||
gint16 height);
|
gint height);
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif /* __cplusplus */
|
#endif /* __cplusplus */
|
||||||
|
@@ -172,14 +172,9 @@ public:
|
|||||||
float m_oldHorizontalPos;
|
float m_oldHorizontalPos;
|
||||||
float m_oldVerticalPos;
|
float m_oldVerticalPos;
|
||||||
|
|
||||||
// we need an extra XGC flag set to get exposed
|
|
||||||
// events from overlapping children upon moving
|
|
||||||
// them. this flag will be set in this GC and
|
|
||||||
// the GC will be used in wxWindow::ScrollWindow().
|
|
||||||
GdkGC *m_scrollGC;
|
|
||||||
|
|
||||||
// extra (wxGTK-specific) flags
|
// extra (wxGTK-specific) flags
|
||||||
bool m_needParent:1; /* ! wxFrame, wxDialog, wxNotebookPage ? */
|
bool m_needParent:1; /* ! wxFrame, wxDialog, wxNotebookPage ? */
|
||||||
|
bool m_noExpose:1; /* wxGLCanvas has its own redrawing */
|
||||||
bool m_hasScrolling:1;
|
bool m_hasScrolling:1;
|
||||||
bool m_isScrolling:1;
|
bool m_isScrolling:1;
|
||||||
bool m_hasVMT:1;
|
bool m_hasVMT:1;
|
||||||
@@ -188,7 +183,7 @@ public:
|
|||||||
bool m_isStaticBox:1; /* faster than IS_KIND_OF */
|
bool m_isStaticBox:1; /* faster than IS_KIND_OF */
|
||||||
bool m_isRadioButton:1; /* faster than IS_KIND_OF */
|
bool m_isRadioButton:1; /* faster than IS_KIND_OF */
|
||||||
bool m_isFrame:1; /* faster than IS_KIND_OF */
|
bool m_isFrame:1; /* faster than IS_KIND_OF */
|
||||||
bool m_acceptsFocus:1; /* ! wxStaticBox etc. */
|
bool m_acceptsFocus:1; /* not wxStaticBox, not wxStaticBitmap etc. */
|
||||||
|
|
||||||
// these are true if the style were set before the widget was realized
|
// these are true if the style were set before the widget was realized
|
||||||
// (typcally in the constructor) but the actual GTK style must not be set
|
// (typcally in the constructor) but the actual GTK style must not be set
|
||||||
@@ -196,13 +191,7 @@ public:
|
|||||||
bool m_delayedFont:1;
|
bool m_delayedFont:1;
|
||||||
bool m_delayedForegroundColour:1;
|
bool m_delayedForegroundColour:1;
|
||||||
bool m_delayedBackgroundColour:1;
|
bool m_delayedBackgroundColour:1;
|
||||||
bool m_delayedCursor:1;
|
|
||||||
|
|
||||||
// the cursor is set in OnInternalIdle(). this fields holds
|
|
||||||
// a reference to the cursor currently set in theGdk window
|
|
||||||
// so that we don't have to set it more than once
|
|
||||||
wxCursor m_currentGdkCursor;
|
|
||||||
|
|
||||||
// contains GTK's widgets internal information about non-default widget
|
// contains GTK's widgets internal information about non-default widget
|
||||||
// font and colours. we create one for each widget that gets any
|
// font and colours. we create one for each widget that gets any
|
||||||
// non-default attribute set via SetFont() or SetForegroundColour() /
|
// non-default attribute set via SetFont() or SetForegroundColour() /
|
||||||
|
@@ -38,7 +38,7 @@ class wxHtmlContainerCell;
|
|||||||
class WXDLLEXPORT wxHtmlCell : public wxObject
|
class WXDLLEXPORT wxHtmlCell : public wxObject
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
wxHtmlCell() : wxObject() {m_Next = NULL; m_Parent = NULL; m_Width = m_Height = m_Descent = 0;};
|
wxHtmlCell() : wxObject() {m_Next = NULL; m_Parent = NULL; m_Width = m_Height = m_Descent = 0; m_CanLiveOnPagebreak = TRUE;}
|
||||||
virtual ~wxHtmlCell() {if (m_Next) delete m_Next;};
|
virtual ~wxHtmlCell() {if (m_Next) delete m_Next;};
|
||||||
|
|
||||||
void SetParent(wxHtmlContainerCell *p) {m_Parent = p;}
|
void SetParent(wxHtmlContainerCell *p) {m_Parent = p;}
|
||||||
@@ -94,6 +94,20 @@ class WXDLLEXPORT wxHtmlCell : public wxObject
|
|||||||
// Parent is pointer to wxHtmlWindow that generated the event
|
// Parent is pointer to wxHtmlWindow that generated the event
|
||||||
// HINT: if this handling is not enough for you you should use
|
// HINT: if this handling is not enough for you you should use
|
||||||
// wxHtmlBinderCell
|
// wxHtmlBinderCell
|
||||||
|
|
||||||
|
virtual bool AdjustPagebreak(int *pagebreak);
|
||||||
|
// This method used to adjust pagebreak position. The parameter is
|
||||||
|
// variable that contains y-coordinate of page break (= horizontal line that
|
||||||
|
// should not be crossed by words, images etc.). If this cell cannot be divided
|
||||||
|
// into two pieces (each one on another page) then it moves the pagebreak
|
||||||
|
// few pixels up.
|
||||||
|
//
|
||||||
|
// Returned value : true if pagebreak was modified, false otherwise
|
||||||
|
// Usage : while (container->AdjustPagebreak(&p)) {}
|
||||||
|
|
||||||
|
void SetCanLiveOnPagebreak(bool can) {m_CanLiveOnPagebreak = can;}
|
||||||
|
// Sets cell's behaviour on pagebreaks (see AdjustPagebreak). Default
|
||||||
|
// is true - the cell can be split on two pages
|
||||||
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
@@ -108,6 +122,8 @@ class WXDLLEXPORT wxHtmlCell : public wxObject
|
|||||||
// position where the fragment is drawn
|
// position where the fragment is drawn
|
||||||
wxString m_Link;
|
wxString m_Link;
|
||||||
// destination address if this fragment is hypertext link, "" otherwise
|
// destination address if this fragment is hypertext link, "" otherwise
|
||||||
|
bool m_CanLiveOnPagebreak;
|
||||||
|
// true if this cell can be placed on pagebreak, false otherwise
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -175,6 +191,7 @@ class WXDLLEXPORT wxHtmlContainerCell : public wxHtmlCell
|
|||||||
virtual void Layout(int w);
|
virtual void Layout(int w);
|
||||||
virtual void Draw(wxDC& dc, int x, int y, int view_y1, int view_y2);
|
virtual void Draw(wxDC& dc, int x, int y, int view_y1, int view_y2);
|
||||||
virtual void DrawInvisible(wxDC& dc, int x, int y);
|
virtual void DrawInvisible(wxDC& dc, int x, int y);
|
||||||
|
virtual bool AdjustPagebreak(int *pagebreak);
|
||||||
|
|
||||||
void InsertCell(wxHtmlCell *cell);
|
void InsertCell(wxHtmlCell *cell);
|
||||||
// insert cell at the end of m_Cells list
|
// insert cell at the end of m_Cells list
|
||||||
|
@@ -77,8 +77,8 @@
|
|||||||
|
|
||||||
#define HTML_COND_ISIMAGEMAP 2
|
#define HTML_COND_ISIMAGEMAP 2
|
||||||
// Finds imagemap of 'param' name (pointer to wxString).
|
// Finds imagemap of 'param' name (pointer to wxString).
|
||||||
// (used exclusively by mod_image.cpp)
|
// (used exclusively by m_image.cpp)
|
||||||
|
|
||||||
#define HTML_COND_USER 10000
|
#define HTML_COND_USER 10000
|
||||||
// User-defined conditions should start from this number
|
// User-defined conditions should start from this number
|
||||||
|
|
||||||
@@ -94,6 +94,8 @@
|
|||||||
/* size of temporary buffer used during parsing */
|
/* size of temporary buffer used during parsing */
|
||||||
#define HTML_REALLOC_STEP 32
|
#define HTML_REALLOC_STEP 32
|
||||||
/* steps of array reallocation */
|
/* steps of array reallocation */
|
||||||
|
#define HTML_PRINT_MAX_PAGES 999
|
||||||
|
/* maximum number of pages printable via html printing */
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
@@ -70,25 +70,6 @@ class WXDLLEXPORT wxHtmlWindow : public wxScrolledWindow
|
|||||||
{
|
{
|
||||||
DECLARE_DYNAMIC_CLASS(wxHtmlWindow)
|
DECLARE_DYNAMIC_CLASS(wxHtmlWindow)
|
||||||
|
|
||||||
private:
|
|
||||||
bool m_tmpMouseMoved;
|
|
||||||
// a flag indicated if mouse moved
|
|
||||||
// (if TRUE we will try to change cursor in last call to OnIdle)
|
|
||||||
bool m_tmpCanDraw;
|
|
||||||
// if FALSE contents of the window is not redrawn
|
|
||||||
// (in order to avoid ugly bliking)
|
|
||||||
|
|
||||||
static wxList m_Filters;
|
|
||||||
// list of HTML filters
|
|
||||||
static wxHtmlFilter *m_DefaultFilter;
|
|
||||||
// this filter is used when no filter is able to read some file
|
|
||||||
|
|
||||||
HtmlHistoryArray m_History;
|
|
||||||
int m_HistoryPos;
|
|
||||||
// browser history
|
|
||||||
bool m_HistoryOn;
|
|
||||||
// if this FLAG is false, items are not added to history
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
wxHtmlWindow() : wxScrolledWindow() {};
|
wxHtmlWindow() : wxScrolledWindow() {};
|
||||||
wxHtmlWindow(wxWindow *parent, wxWindowID id = -1,
|
wxHtmlWindow(wxWindow *parent, wxWindowID id = -1,
|
||||||
@@ -188,6 +169,7 @@ class WXDLLEXPORT wxHtmlWindow : public wxScrolledWindow
|
|||||||
virtual wxHtmlFilter *GetDefaultFilter() {return new wxHtmlFilterPlainText;}
|
virtual wxHtmlFilter *GetDefaultFilter() {return new wxHtmlFilterPlainText;}
|
||||||
// returns new filter (will be stored into m_DefaultFilter variable)
|
// returns new filter (will be stored into m_DefaultFilter variable)
|
||||||
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
wxHtmlContainerCell *m_Cell;
|
wxHtmlContainerCell *m_Cell;
|
||||||
// This is pointer to the first cell in parsed data.
|
// This is pointer to the first cell in parsed data.
|
||||||
@@ -215,6 +197,27 @@ class WXDLLEXPORT wxHtmlWindow : public wxScrolledWindow
|
|||||||
|
|
||||||
int m_Style;
|
int m_Style;
|
||||||
|
|
||||||
|
private:
|
||||||
|
bool m_tmpMouseMoved;
|
||||||
|
// a flag indicated if mouse moved
|
||||||
|
// (if TRUE we will try to change cursor in last call to OnIdle)
|
||||||
|
wxString m_tmpLastLink;
|
||||||
|
// contains last link name
|
||||||
|
bool m_tmpCanDraw;
|
||||||
|
// if FALSE contents of the window is not redrawn
|
||||||
|
// (in order to avoid ugly bliking)
|
||||||
|
|
||||||
|
static wxList m_Filters;
|
||||||
|
// list of HTML filters
|
||||||
|
static wxHtmlFilter *m_DefaultFilter;
|
||||||
|
// this filter is used when no filter is able to read some file
|
||||||
|
|
||||||
|
HtmlHistoryArray m_History;
|
||||||
|
int m_HistoryPos;
|
||||||
|
// browser history
|
||||||
|
bool m_HistoryOn;
|
||||||
|
// if this FLAG is false, items are not added to history
|
||||||
|
|
||||||
|
|
||||||
DECLARE_EVENT_TABLE()
|
DECLARE_EVENT_TABLE()
|
||||||
};
|
};
|
||||||
|
@@ -356,14 +356,14 @@ public:
|
|||||||
|
|
||||||
static void CleanUpHandlers();
|
static void CleanUpHandlers();
|
||||||
static void InitStandardHandlers();
|
static void InitStandardHandlers();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
static wxList sm_handlers;
|
static wxList sm_handlers;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
extern void wxInitAllImageHandlers();
|
extern void WXDLLEXPORT wxInitAllImageHandlers();
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
// _WX_IMAGE_H_
|
// _WX_IMAGE_H_
|
||||||
|
@@ -32,7 +32,7 @@
|
|||||||
// gettext() style macro (notice that xgettext should be invoked with "-k_"
|
// gettext() style macro (notice that xgettext should be invoked with "-k_"
|
||||||
// option to extract the strings inside _() from the sources)
|
// option to extract the strings inside _() from the sources)
|
||||||
#ifndef WXINTL_NO_GETTEXT_MACRO
|
#ifndef WXINTL_NO_GETTEXT_MACRO
|
||||||
#define _(str) wxGetTranslation(_T(str))
|
#define _(str) wxGetTranslation(wxT(str))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
@@ -53,8 +53,8 @@ class WXDLLEXPORT wxConnectionBase: public wxObject
|
|||||||
inline ~wxConnectionBase(void) {}
|
inline ~wxConnectionBase(void) {}
|
||||||
|
|
||||||
// Calls that CLIENT can make
|
// Calls that CLIENT can make
|
||||||
virtual bool Execute(wxChar *data, int size = -1, wxIPCFormat format = wxIPC_TEXT ) = 0;
|
virtual bool Execute(const wxChar *data, int size = -1, wxIPCFormat format = wxIPC_TEXT ) = 0;
|
||||||
virtual bool Execute(const wxString& str) { return Execute(WXSTRINGCAST str, -1, wxIPC_TEXT); }
|
virtual bool Execute(const wxString& str) { return Execute(str, -1, wxIPC_TEXT); }
|
||||||
virtual char *Request(const wxString& item, int *size = (int *) NULL, wxIPCFormat format = wxIPC_TEXT) = 0;
|
virtual char *Request(const wxString& item, int *size = (int *) NULL, wxIPCFormat format = wxIPC_TEXT) = 0;
|
||||||
virtual bool Poke(const wxString& item, wxChar *data, int size = -1, wxIPCFormat format = wxIPC_TEXT) = 0;
|
virtual bool Poke(const wxString& item, wxChar *data, int size = -1, wxIPCFormat format = wxIPC_TEXT) = 0;
|
||||||
virtual bool StartAdvise(const wxString& item) = 0;
|
virtual bool StartAdvise(const wxString& item) = 0;
|
||||||
|
@@ -132,6 +132,13 @@ public:
|
|||||||
bool HasPendingMessages() const { return m_bHasMessages; }
|
bool HasPendingMessages() const { return m_bHasMessages; }
|
||||||
|
|
||||||
// only one sink is active at each moment
|
// only one sink is active at each moment
|
||||||
|
// flush the active target if any
|
||||||
|
static void FlushActive()
|
||||||
|
{
|
||||||
|
wxLog *log = GetActiveTarget();
|
||||||
|
if ( log )
|
||||||
|
log->Flush();
|
||||||
|
}
|
||||||
// get current log target, will call wxApp::CreateLogTarget() to
|
// get current log target, will call wxApp::CreateLogTarget() to
|
||||||
// create one if none exists
|
// create one if none exists
|
||||||
static wxLog *GetActiveTarget();
|
static wxLog *GetActiveTarget();
|
||||||
@@ -245,7 +252,7 @@ protected:
|
|||||||
// GUI part (andnot just the base one) of the library, they're implemented in
|
// GUI part (andnot just the base one) of the library, they're implemented in
|
||||||
// src/generic/logg.cpp *and not src/common/log.cpp unlike all the rest)
|
// src/generic/logg.cpp *and not src/common/log.cpp unlike all the rest)
|
||||||
|
|
||||||
#ifndef wxUSE_NOGUI
|
#if wxUSE_GUI
|
||||||
|
|
||||||
// log everything to a text window (GUI only of course)
|
// log everything to a text window (GUI only of course)
|
||||||
class WXDLLEXPORT wxLogTextCtrl : public wxLog
|
class WXDLLEXPORT wxLogTextCtrl : public wxLog
|
||||||
@@ -338,7 +345,7 @@ private:
|
|||||||
wxLogFrame *m_pLogFrame; // the log frame
|
wxLogFrame *m_pLogFrame; // the log frame
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // wxUSE_NOGUI
|
#endif // wxUSE_GUI
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// /dev/null log target: suppress logging until this object goes out of scope
|
// /dev/null log target: suppress logging until this object goes out of scope
|
||||||
@@ -464,7 +471,7 @@ DECLARE_LOG_FUNCTION2(SysError, long lErrCode);
|
|||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
#ifndef __TFILE__
|
#ifndef __TFILE__
|
||||||
#define __XFILE__(x) _T(x)
|
#define __XFILE__(x) Tx)
|
||||||
#define __TFILE__ __XFILE__(__FILE__)
|
#define __TFILE__ __XFILE__(__FILE__)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -473,12 +480,12 @@ DECLARE_LOG_FUNCTION2(SysError, long lErrCode);
|
|||||||
// will take us immediately to the place of the failed API
|
// will take us immediately to the place of the failed API
|
||||||
#ifdef __VISUALC__
|
#ifdef __VISUALC__
|
||||||
#define wxLogApiError(api, rc) \
|
#define wxLogApiError(api, rc) \
|
||||||
wxLogDebug(_T("%s(%d): '%s' failed with error 0x%08lx (%s)."), \
|
wxLogDebug(wxT("%s(%d): '%s' failed with error 0x%08lx (%s)."), \
|
||||||
__TFILE__, __LINE__, api, \
|
__TFILE__, __LINE__, api, \
|
||||||
rc, wxSysErrorMsg(rc))
|
rc, wxSysErrorMsg(rc))
|
||||||
#else // !VC++
|
#else // !VC++
|
||||||
#define wxLogApiError(api, rc) \
|
#define wxLogApiError(api, rc) \
|
||||||
wxLogDebug(_T("In file %s at line %d: '%s' failed with " \
|
wxLogDebug(wxT("In file %s at line %d: '%s' failed with " \
|
||||||
"error 0x%08lx (%s)."), \
|
"error 0x%08lx (%s)."), \
|
||||||
__TFILE__, __LINE__, api, \
|
__TFILE__, __LINE__, api, \
|
||||||
rc, wxSysErrorMsg(rc))
|
rc, wxSysErrorMsg(rc))
|
||||||
|
@@ -1056,4 +1056,3 @@ __END_DECLS
|
|||||||
long nothing ;
|
long nothing ;
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
#endif /* !_GUSI_ */
|
|
@@ -51,4 +51,3 @@ protected:
|
|||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
// _WX_STATBAR_H_
|
|
@@ -32,11 +32,7 @@ class wxMimeTypesManagerImpl;
|
|||||||
// the accessors *must* be checked!
|
// the accessors *must* be checked!
|
||||||
class WXDLLEXPORT wxFileType
|
class WXDLLEXPORT wxFileType
|
||||||
{
|
{
|
||||||
#ifdef __MWERKS__
|
friend class WXDLLEXPORT wxMimeTypesManagerImpl; // it has access to m_impl
|
||||||
friend class wxMimeTypesManagerImpl; // it has access to m_impl
|
|
||||||
#else
|
|
||||||
friend wxMimeTypesManagerImpl; // it has access to m_impl
|
|
||||||
#endif
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// An object of this class must be passed to Get{Open|Print}Command. The
|
// An object of this class must be passed to Get{Open|Print}Command. The
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
// Header signatures for various resources
|
// Header signatures for various resources
|
||||||
#define BFT_ICON 0x4349 /* 'IC' */
|
#define BFT_ICON 0x4349 /* 'IC' */
|
||||||
#define BFT_BITMAP 0x4d42 /* 'BM' */
|
#define BFT_BITMAP 0x4d42 /* 'BM' */
|
||||||
#define BFT_CURSOR 0x5450 /* 'PT' */
|
#define BFT_CURSOR 0x5450 /* 'PT(' */
|
||||||
|
|
||||||
// This WIDTHBYTES macro determines the number of BYTES per scan line.
|
// This WIDTHBYTES macro determines the number of BYTES per scan line.
|
||||||
#define WIDTHBYTES( i) ((i + 31) / 32 * 4)
|
#define WIDTHBYTES( i) ((i + 31) / 32 * 4)
|
||||||
|
@@ -54,8 +54,8 @@ public:
|
|||||||
~wxDDEConnection(void);
|
~wxDDEConnection(void);
|
||||||
|
|
||||||
// Calls that CLIENT can make
|
// Calls that CLIENT can make
|
||||||
virtual bool Execute(wxChar *data, int size = -1, wxIPCFormat format = wxIPC_TEXT);
|
virtual bool Execute(const wxChar *data, int size = -1, wxIPCFormat format = wxIPC_TEXT);
|
||||||
virtual bool Execute(const wxString& str) { return Execute(WXSTRINGCAST str, -1, wxIPC_TEXT); }
|
virtual bool Execute(const wxString& str) { return Execute(str, -1, wxIPC_TEXT); }
|
||||||
virtual char *Request(const wxString& item, int *size = NULL, wxIPCFormat format = wxIPC_TEXT);
|
virtual char *Request(const wxString& item, int *size = NULL, wxIPCFormat format = wxIPC_TEXT);
|
||||||
virtual bool Poke(const wxString& item, wxChar *data, int size = -1, wxIPCFormat format = wxIPC_TEXT);
|
virtual bool Poke(const wxString& item, wxChar *data, int size = -1, wxIPCFormat format = wxIPC_TEXT);
|
||||||
virtual bool StartAdvise(const wxString& item);
|
virtual bool StartAdvise(const wxString& item);
|
||||||
|
@@ -139,17 +139,17 @@ WXDLLEXPORT_DATA(extern HFONT) wxSTATUS_LINE_FONT;
|
|||||||
* for this combination of CTl3D/FAFA settings
|
* for this combination of CTl3D/FAFA settings
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define STATIC_CLASS _T("STATIC")
|
#define STATIC_CLASS wxT("STATIC")
|
||||||
#define STATIC_FLAGS (SS_LEFT|WS_CHILD|WS_VISIBLE)
|
#define STATIC_FLAGS (SS_LEFT|WS_CHILD|WS_VISIBLE)
|
||||||
#define CHECK_CLASS _T("BUTTON")
|
#define CHECK_CLASS wxT("BUTTON")
|
||||||
#define CHECK_FLAGS (BS_AUTOCHECKBOX|WS_TABSTOP|WS_CHILD)
|
#define CHECK_FLAGS (BS_AUTOCHECKBOX|WS_TABSTOP|WS_CHILD)
|
||||||
#define CHECK_IS_FAFA FALSE
|
#define CHECK_IS_FAFA FALSE
|
||||||
#define RADIO_CLASS _T("BUTTON")
|
#define RADIO_CLASS wxT("BUTTON")
|
||||||
#define RADIO_FLAGS (BS_AUTORADIOBUTTON|WS_CHILD|WS_VISIBLE)
|
#define RADIO_FLAGS (BS_AUTORADIOBUTTON|WS_CHILD|WS_VISIBLE)
|
||||||
#define RADIO_SIZE 20
|
#define RADIO_SIZE 20
|
||||||
#define RADIO_IS_FAFA FALSE
|
#define RADIO_IS_FAFA FALSE
|
||||||
#define PURE_WINDOWS
|
#define PURE_WINDOWS
|
||||||
#define GROUP_CLASS _T("BUTTON")
|
#define GROUP_CLASS wxT("BUTTON")
|
||||||
#define GROUP_FLAGS (BS_GROUPBOX|WS_CHILD|WS_VISIBLE)
|
#define GROUP_FLAGS (BS_GROUPBOX|WS_CHILD|WS_VISIBLE)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@@ -12,13 +12,12 @@
|
|||||||
#ifndef _WX_SETUP_H_
|
#ifndef _WX_SETUP_H_
|
||||||
#define _WX_SETUP_H_
|
#define _WX_SETUP_H_
|
||||||
|
|
||||||
/*
|
// ----------------------------------------------------------------------------
|
||||||
* General features
|
// global settings
|
||||||
*
|
// ----------------------------------------------------------------------------
|
||||||
*/
|
|
||||||
|
|
||||||
#define wxUSE_CONFIG 1
|
// define this to 0 when building wxBase library
|
||||||
// Use wxConfig, with CreateConfig in wxApp
|
#define wxUSE_GUI 1
|
||||||
|
|
||||||
#define WXWIN_COMPATIBILITY 0
|
#define WXWIN_COMPATIBILITY 0
|
||||||
// Compatibility with 1.68 API.
|
// Compatibility with 1.68 API.
|
||||||
@@ -27,6 +26,13 @@
|
|||||||
// the compatibility code is now very minimal so there
|
// the compatibility code is now very minimal so there
|
||||||
// is little advantage to setting it to 1.
|
// is little advantage to setting it to 1.
|
||||||
|
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
// General features
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#define wxUSE_CONFIG 1
|
||||||
|
// Use wxConfig, with CreateConfig in wxApp
|
||||||
|
|
||||||
#define wxUSE_POSTSCRIPT 0
|
#define wxUSE_POSTSCRIPT 0
|
||||||
// 0 for no PostScript device context
|
// 0 for no PostScript device context
|
||||||
#define wxUSE_AFM_FOR_POSTSCRIPT 0
|
#define wxUSE_AFM_FOR_POSTSCRIPT 0
|
||||||
@@ -97,6 +103,11 @@
|
|||||||
|
|
||||||
#define wxUSE_CARET 1
|
#define wxUSE_CARET 1
|
||||||
// Define 1 to use wxCaret class
|
// Define 1 to use wxCaret class
|
||||||
|
|
||||||
|
#define wxUSE_NEW_GRID 1
|
||||||
|
// Define 1 to use the new wxGrid class
|
||||||
|
// (still under development, define 0 to
|
||||||
|
// use existing wxGrid class)
|
||||||
#define wxUSE_XPM_IN_MSW 1
|
#define wxUSE_XPM_IN_MSW 1
|
||||||
// Define 1 to support the XPM package in wxBitmap.
|
// Define 1 to support the XPM package in wxBitmap.
|
||||||
#define wxUSE_IMAGE_LOADING_IN_MSW 1
|
#define wxUSE_IMAGE_LOADING_IN_MSW 1
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user