Compare commits
28 Commits
v2.8.0-rc1
...
WX_2_8_0_r
Author | SHA1 | Date | |
---|---|---|---|
|
d1db524c06 | ||
|
9fb599edba | ||
|
f963a28fa4 | ||
|
08f57d2125 | ||
|
3ad202f9be | ||
|
a983a3cf6f | ||
|
1dab6da91b | ||
|
82c591d771 | ||
|
cb3a0d420a | ||
|
5bbdfd5ba2 | ||
|
8120bbc916 | ||
|
ec80cb6ec1 | ||
|
2c8f21f867 | ||
|
6dff0e2972 | ||
|
05d9753817 | ||
|
3ccb6f0c23 | ||
|
97e716f808 | ||
|
6a93539e74 | ||
|
45980d81f3 | ||
|
2e35565ac8 | ||
|
b809d2a4bd | ||
|
c6c505952e | ||
|
cb5d54ff9e | ||
|
abc2857fa0 | ||
|
3002036fb0 | ||
|
dd9b4376a3 | ||
|
d57d491b9f | ||
|
c4704dc271 |
69
Makefile.in
69
Makefile.in
@@ -2644,6 +2644,9 @@ COND_TOOLKIT_WINCE_GUI_HDR = \
|
|||||||
wx/msw/wince/textctrlce.h \
|
wx/msw/wince/textctrlce.h \
|
||||||
wx/msw/wince/resources.h
|
wx/msw/wince/resources.h
|
||||||
@COND_TOOLKIT_WINCE@GUI_HDR = $(COND_TOOLKIT_WINCE_GUI_HDR)
|
@COND_TOOLKIT_WINCE@GUI_HDR = $(COND_TOOLKIT_WINCE_GUI_HDR)
|
||||||
|
@COND_PLATFORM_UNIX_1_TOOLKIT_MGL@ADVANCED_PLATFORM_HDR \
|
||||||
|
@COND_PLATFORM_UNIX_1_TOOLKIT_MGL@ = wx/unix/joystick.h wx/unix/sound.h \
|
||||||
|
@COND_PLATFORM_UNIX_1_TOOLKIT_MGL@ wx/unix/taskbarx11.h
|
||||||
@COND_TOOLKIT_COCOA@ADVANCED_PLATFORM_HDR = \
|
@COND_TOOLKIT_COCOA@ADVANCED_PLATFORM_HDR = \
|
||||||
@COND_TOOLKIT_COCOA@ wx/cocoa/taskbar.h wx/mac/corefoundation/joystick.h
|
@COND_TOOLKIT_COCOA@ wx/cocoa/taskbar.h wx/mac/corefoundation/joystick.h
|
||||||
@COND_TOOLKIT_GTK_TOOLKIT_VERSION_@ADVANCED_PLATFORM_HDR \
|
@COND_TOOLKIT_GTK_TOOLKIT_VERSION_@ADVANCED_PLATFORM_HDR \
|
||||||
@@ -10922,6 +10925,12 @@ COND_WITH_PLUGIN_SDL_1___sound_sdl___depname = \
|
|||||||
@COND_PLATFORM_MACOSX_1@__MAC_LOWLEVEL_SRC_OBJECTS \
|
@COND_PLATFORM_MACOSX_1@__MAC_LOWLEVEL_SRC_OBJECTS \
|
||||||
@COND_PLATFORM_MACOSX_1@ = monodll_gsockosx.o monodll_hid.o \
|
@COND_PLATFORM_MACOSX_1@ = monodll_gsockosx.o monodll_hid.o \
|
||||||
@COND_PLATFORM_MACOSX_1@ monodll_utilsexc_cf.o
|
@COND_PLATFORM_MACOSX_1@ monodll_utilsexc_cf.o
|
||||||
|
COND_PLATFORM_UNIX_1_TOOLKIT_MGL___ADVANCED_PLATFORM_SRC_OBJECTS = \
|
||||||
|
monodll_taskbarcmn.o \
|
||||||
|
monodll_joystick.o \
|
||||||
|
monodll_sound.o \
|
||||||
|
monodll_taskbarx11.o
|
||||||
|
@COND_PLATFORM_UNIX_1_TOOLKIT_MGL@__ADVANCED_PLATFORM_SRC_OBJECTS = $(COND_PLATFORM_UNIX_1_TOOLKIT_MGL___ADVANCED_PLATFORM_SRC_OBJECTS)
|
||||||
@COND_TOOLKIT_COCOA@__ADVANCED_PLATFORM_SRC_OBJECTS = \
|
@COND_TOOLKIT_COCOA@__ADVANCED_PLATFORM_SRC_OBJECTS = \
|
||||||
@COND_TOOLKIT_COCOA@ monodll_taskbar.o monodll_taskbarcmn.o \
|
@COND_TOOLKIT_COCOA@ monodll_taskbar.o monodll_taskbarcmn.o \
|
||||||
@COND_TOOLKIT_COCOA@ monodll_hidjoystick.o
|
@COND_TOOLKIT_COCOA@ monodll_hidjoystick.o
|
||||||
@@ -10979,6 +10988,12 @@ COND_TOOLKIT_X11___ADVANCED_PLATFORM_SRC_OBJECTS = \
|
|||||||
@COND_PLATFORM_MACOSX_1@__MAC_LOWLEVEL_SRC_OBJECTS_0 \
|
@COND_PLATFORM_MACOSX_1@__MAC_LOWLEVEL_SRC_OBJECTS_0 \
|
||||||
@COND_PLATFORM_MACOSX_1@ = monolib_gsockosx.o monolib_hid.o \
|
@COND_PLATFORM_MACOSX_1@ = monolib_gsockosx.o monolib_hid.o \
|
||||||
@COND_PLATFORM_MACOSX_1@ monolib_utilsexc_cf.o
|
@COND_PLATFORM_MACOSX_1@ monolib_utilsexc_cf.o
|
||||||
|
COND_PLATFORM_UNIX_1_TOOLKIT_MGL___ADVANCED_PLATFORM_SRC_OBJECTS_0 = \
|
||||||
|
monolib_taskbarcmn.o \
|
||||||
|
monolib_joystick.o \
|
||||||
|
monolib_sound.o \
|
||||||
|
monolib_taskbarx11.o
|
||||||
|
@COND_PLATFORM_UNIX_1_TOOLKIT_MGL@__ADVANCED_PLATFORM_SRC_OBJECTS_0 = $(COND_PLATFORM_UNIX_1_TOOLKIT_MGL___ADVANCED_PLATFORM_SRC_OBJECTS_0)
|
||||||
@COND_TOOLKIT_COCOA@__ADVANCED_PLATFORM_SRC_OBJECTS_0 = \
|
@COND_TOOLKIT_COCOA@__ADVANCED_PLATFORM_SRC_OBJECTS_0 = \
|
||||||
@COND_TOOLKIT_COCOA@ monolib_taskbar.o monolib_taskbarcmn.o \
|
@COND_TOOLKIT_COCOA@ monolib_taskbar.o monolib_taskbarcmn.o \
|
||||||
@COND_TOOLKIT_COCOA@ monolib_hidjoystick.o
|
@COND_TOOLKIT_COCOA@ monolib_hidjoystick.o
|
||||||
@@ -11039,6 +11054,9 @@ COND_TOOLKIT_X11___ADVANCED_PLATFORM_SRC_OBJECTS_0 = \
|
|||||||
@COND_PLATFORM_MACOSX_1@__MAC_LOWLEVEL_SRC_OBJECTS_9 \
|
@COND_PLATFORM_MACOSX_1@__MAC_LOWLEVEL_SRC_OBJECTS_9 \
|
||||||
@COND_PLATFORM_MACOSX_1@ = corelib_gsockosx.o corelib_hid.o \
|
@COND_PLATFORM_MACOSX_1@ = corelib_gsockosx.o corelib_hid.o \
|
||||||
@COND_PLATFORM_MACOSX_1@ corelib_utilsexc_cf.o
|
@COND_PLATFORM_MACOSX_1@ corelib_utilsexc_cf.o
|
||||||
|
@COND_PLATFORM_UNIX_1_TOOLKIT_MGL@__ADVANCED_PLATFORM_SRC_OBJECTS_8 \
|
||||||
|
@COND_PLATFORM_UNIX_1_TOOLKIT_MGL@ = advdll_taskbarcmn.o advdll_joystick.o \
|
||||||
|
@COND_PLATFORM_UNIX_1_TOOLKIT_MGL@ advdll_sound.o advdll_taskbarx11.o
|
||||||
@COND_TOOLKIT_COCOA@__ADVANCED_PLATFORM_SRC_OBJECTS_8 = \
|
@COND_TOOLKIT_COCOA@__ADVANCED_PLATFORM_SRC_OBJECTS_8 = \
|
||||||
@COND_TOOLKIT_COCOA@ advdll_taskbar.o advdll_taskbarcmn.o \
|
@COND_TOOLKIT_COCOA@ advdll_taskbar.o advdll_taskbarcmn.o \
|
||||||
@COND_TOOLKIT_COCOA@ advdll_hidjoystick.o
|
@COND_TOOLKIT_COCOA@ advdll_hidjoystick.o
|
||||||
@@ -11087,6 +11105,9 @@ COND_TOOLKIT_MSW___ADVANCED_PLATFORM_SRC_OBJECTS_8 = \
|
|||||||
@COND_TOOLKIT_X11@__ADVANCED_PLATFORM_SRC_OBJECTS_8 = \
|
@COND_TOOLKIT_X11@__ADVANCED_PLATFORM_SRC_OBJECTS_8 = \
|
||||||
@COND_TOOLKIT_X11@ advdll_taskbarcmn.o advdll_joystick.o advdll_sound.o \
|
@COND_TOOLKIT_X11@ advdll_taskbarcmn.o advdll_joystick.o advdll_sound.o \
|
||||||
@COND_TOOLKIT_X11@ advdll_taskbarx11.o
|
@COND_TOOLKIT_X11@ advdll_taskbarx11.o
|
||||||
|
@COND_PLATFORM_UNIX_1_TOOLKIT_MGL@__ADVANCED_PLATFORM_SRC_OBJECTS_9 \
|
||||||
|
@COND_PLATFORM_UNIX_1_TOOLKIT_MGL@ = advlib_taskbarcmn.o advlib_joystick.o \
|
||||||
|
@COND_PLATFORM_UNIX_1_TOOLKIT_MGL@ advlib_sound.o advlib_taskbarx11.o
|
||||||
@COND_TOOLKIT_COCOA@__ADVANCED_PLATFORM_SRC_OBJECTS_9 = \
|
@COND_TOOLKIT_COCOA@__ADVANCED_PLATFORM_SRC_OBJECTS_9 = \
|
||||||
@COND_TOOLKIT_COCOA@ advlib_taskbar.o advlib_taskbarcmn.o \
|
@COND_TOOLKIT_COCOA@ advlib_taskbar.o advlib_taskbarcmn.o \
|
||||||
@COND_TOOLKIT_COCOA@ advlib_hidjoystick.o
|
@COND_TOOLKIT_COCOA@ advlib_hidjoystick.o
|
||||||
@@ -15905,6 +15926,9 @@ monodll_sound_sdl.o: $(srcdir)/src/unix/sound_sdl.cpp $(MONODLL_ODEP)
|
|||||||
@COND_TOOLKIT_X11_USE_GUI_1@monodll_sound.o: $(srcdir)/src/unix/sound.cpp $(MONODLL_ODEP)
|
@COND_TOOLKIT_X11_USE_GUI_1@monodll_sound.o: $(srcdir)/src/unix/sound.cpp $(MONODLL_ODEP)
|
||||||
@COND_TOOLKIT_X11_USE_GUI_1@ $(CXXC) -c -o $@ $(MONODLL_CXXFLAGS) $(srcdir)/src/unix/sound.cpp
|
@COND_TOOLKIT_X11_USE_GUI_1@ $(CXXC) -c -o $@ $(MONODLL_CXXFLAGS) $(srcdir)/src/unix/sound.cpp
|
||||||
|
|
||||||
|
@COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1@monodll_sound.o: $(srcdir)/src/unix/sound.cpp $(MONODLL_ODEP)
|
||||||
|
@COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1@ $(CXXC) -c -o $@ $(MONODLL_CXXFLAGS) $(srcdir)/src/unix/sound.cpp
|
||||||
|
|
||||||
@COND_TOOLKIT_PM_USE_GUI_1@monodll_sound.o: $(srcdir)/src/os2/sound.cpp $(MONODLL_ODEP)
|
@COND_TOOLKIT_PM_USE_GUI_1@monodll_sound.o: $(srcdir)/src/os2/sound.cpp $(MONODLL_ODEP)
|
||||||
@COND_TOOLKIT_PM_USE_GUI_1@ $(CXXC) -c -o $@ $(MONODLL_CXXFLAGS) $(srcdir)/src/os2/sound.cpp
|
@COND_TOOLKIT_PM_USE_GUI_1@ $(CXXC) -c -o $@ $(MONODLL_CXXFLAGS) $(srcdir)/src/os2/sound.cpp
|
||||||
|
|
||||||
@@ -16355,6 +16379,9 @@ monodll_sound_sdl.o: $(srcdir)/src/unix/sound_sdl.cpp $(MONODLL_ODEP)
|
|||||||
@COND_TOOLKIT_X11_USE_GUI_1@monodll_taskbarcmn.o: $(srcdir)/src/common/taskbarcmn.cpp $(MONODLL_ODEP)
|
@COND_TOOLKIT_X11_USE_GUI_1@monodll_taskbarcmn.o: $(srcdir)/src/common/taskbarcmn.cpp $(MONODLL_ODEP)
|
||||||
@COND_TOOLKIT_X11_USE_GUI_1@ $(CXXC) -c -o $@ $(MONODLL_CXXFLAGS) $(srcdir)/src/common/taskbarcmn.cpp
|
@COND_TOOLKIT_X11_USE_GUI_1@ $(CXXC) -c -o $@ $(MONODLL_CXXFLAGS) $(srcdir)/src/common/taskbarcmn.cpp
|
||||||
|
|
||||||
|
@COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1@monodll_taskbarcmn.o: $(srcdir)/src/common/taskbarcmn.cpp $(MONODLL_ODEP)
|
||||||
|
@COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1@ $(CXXC) -c -o $@ $(MONODLL_CXXFLAGS) $(srcdir)/src/common/taskbarcmn.cpp
|
||||||
|
|
||||||
@COND_TOOLKIT_MSW_USE_GUI_1@monodll_aboutdlg.o: $(srcdir)/src/msw/aboutdlg.cpp $(MONODLL_ODEP)
|
@COND_TOOLKIT_MSW_USE_GUI_1@monodll_aboutdlg.o: $(srcdir)/src/msw/aboutdlg.cpp $(MONODLL_ODEP)
|
||||||
@COND_TOOLKIT_MSW_USE_GUI_1@ $(CXXC) -c -o $@ $(MONODLL_CXXFLAGS) $(srcdir)/src/msw/aboutdlg.cpp
|
@COND_TOOLKIT_MSW_USE_GUI_1@ $(CXXC) -c -o $@ $(MONODLL_CXXFLAGS) $(srcdir)/src/msw/aboutdlg.cpp
|
||||||
|
|
||||||
@@ -16400,6 +16427,9 @@ monodll_sound_sdl.o: $(srcdir)/src/unix/sound_sdl.cpp $(MONODLL_ODEP)
|
|||||||
@COND_TOOLKIT_X11_USE_GUI_1@monodll_joystick.o: $(srcdir)/src/unix/joystick.cpp $(MONODLL_ODEP)
|
@COND_TOOLKIT_X11_USE_GUI_1@monodll_joystick.o: $(srcdir)/src/unix/joystick.cpp $(MONODLL_ODEP)
|
||||||
@COND_TOOLKIT_X11_USE_GUI_1@ $(CXXC) -c -o $@ $(MONODLL_CXXFLAGS) $(srcdir)/src/unix/joystick.cpp
|
@COND_TOOLKIT_X11_USE_GUI_1@ $(CXXC) -c -o $@ $(MONODLL_CXXFLAGS) $(srcdir)/src/unix/joystick.cpp
|
||||||
|
|
||||||
|
@COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1@monodll_joystick.o: $(srcdir)/src/unix/joystick.cpp $(MONODLL_ODEP)
|
||||||
|
@COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1@ $(CXXC) -c -o $@ $(MONODLL_CXXFLAGS) $(srcdir)/src/unix/joystick.cpp
|
||||||
|
|
||||||
@COND_TOOLKIT_PM_USE_GUI_1@monodll_joystick.o: $(srcdir)/src/os2/joystick.cpp $(MONODLL_ODEP)
|
@COND_TOOLKIT_PM_USE_GUI_1@monodll_joystick.o: $(srcdir)/src/os2/joystick.cpp $(MONODLL_ODEP)
|
||||||
@COND_TOOLKIT_PM_USE_GUI_1@ $(CXXC) -c -o $@ $(MONODLL_CXXFLAGS) $(srcdir)/src/os2/joystick.cpp
|
@COND_TOOLKIT_PM_USE_GUI_1@ $(CXXC) -c -o $@ $(MONODLL_CXXFLAGS) $(srcdir)/src/os2/joystick.cpp
|
||||||
|
|
||||||
@@ -16421,6 +16451,9 @@ monodll_sound_sdl.o: $(srcdir)/src/unix/sound_sdl.cpp $(MONODLL_ODEP)
|
|||||||
@COND_TOOLKIT_X11_USE_GUI_1@monodll_taskbarx11.o: $(srcdir)/src/unix/taskbarx11.cpp $(MONODLL_ODEP)
|
@COND_TOOLKIT_X11_USE_GUI_1@monodll_taskbarx11.o: $(srcdir)/src/unix/taskbarx11.cpp $(MONODLL_ODEP)
|
||||||
@COND_TOOLKIT_X11_USE_GUI_1@ $(CXXC) -c -o $@ $(MONODLL_CXXFLAGS) $(srcdir)/src/unix/taskbarx11.cpp
|
@COND_TOOLKIT_X11_USE_GUI_1@ $(CXXC) -c -o $@ $(MONODLL_CXXFLAGS) $(srcdir)/src/unix/taskbarx11.cpp
|
||||||
|
|
||||||
|
@COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1@monodll_taskbarx11.o: $(srcdir)/src/unix/taskbarx11.cpp $(MONODLL_ODEP)
|
||||||
|
@COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1@ $(CXXC) -c -o $@ $(MONODLL_CXXFLAGS) $(srcdir)/src/unix/taskbarx11.cpp
|
||||||
|
|
||||||
@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1@monodll_animate.o: $(srcdir)/src/gtk/animate.cpp $(MONODLL_ODEP)
|
@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1@monodll_animate.o: $(srcdir)/src/gtk/animate.cpp $(MONODLL_ODEP)
|
||||||
@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1@ $(CXXC) -c -o $@ $(MONODLL_CXXFLAGS) $(srcdir)/src/gtk/animate.cpp
|
@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1@ $(CXXC) -c -o $@ $(MONODLL_CXXFLAGS) $(srcdir)/src/gtk/animate.cpp
|
||||||
|
|
||||||
@@ -19985,6 +20018,9 @@ monolib_sound_sdl.o: $(srcdir)/src/unix/sound_sdl.cpp $(MONOLIB_ODEP)
|
|||||||
@COND_TOOLKIT_X11_USE_GUI_1@monolib_sound.o: $(srcdir)/src/unix/sound.cpp $(MONOLIB_ODEP)
|
@COND_TOOLKIT_X11_USE_GUI_1@monolib_sound.o: $(srcdir)/src/unix/sound.cpp $(MONOLIB_ODEP)
|
||||||
@COND_TOOLKIT_X11_USE_GUI_1@ $(CXXC) -c -o $@ $(MONOLIB_CXXFLAGS) $(srcdir)/src/unix/sound.cpp
|
@COND_TOOLKIT_X11_USE_GUI_1@ $(CXXC) -c -o $@ $(MONOLIB_CXXFLAGS) $(srcdir)/src/unix/sound.cpp
|
||||||
|
|
||||||
|
@COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1@monolib_sound.o: $(srcdir)/src/unix/sound.cpp $(MONOLIB_ODEP)
|
||||||
|
@COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1@ $(CXXC) -c -o $@ $(MONOLIB_CXXFLAGS) $(srcdir)/src/unix/sound.cpp
|
||||||
|
|
||||||
@COND_TOOLKIT_PM_USE_GUI_1@monolib_sound.o: $(srcdir)/src/os2/sound.cpp $(MONOLIB_ODEP)
|
@COND_TOOLKIT_PM_USE_GUI_1@monolib_sound.o: $(srcdir)/src/os2/sound.cpp $(MONOLIB_ODEP)
|
||||||
@COND_TOOLKIT_PM_USE_GUI_1@ $(CXXC) -c -o $@ $(MONOLIB_CXXFLAGS) $(srcdir)/src/os2/sound.cpp
|
@COND_TOOLKIT_PM_USE_GUI_1@ $(CXXC) -c -o $@ $(MONOLIB_CXXFLAGS) $(srcdir)/src/os2/sound.cpp
|
||||||
|
|
||||||
@@ -20435,6 +20471,9 @@ monolib_sound_sdl.o: $(srcdir)/src/unix/sound_sdl.cpp $(MONOLIB_ODEP)
|
|||||||
@COND_TOOLKIT_X11_USE_GUI_1@monolib_taskbarcmn.o: $(srcdir)/src/common/taskbarcmn.cpp $(MONOLIB_ODEP)
|
@COND_TOOLKIT_X11_USE_GUI_1@monolib_taskbarcmn.o: $(srcdir)/src/common/taskbarcmn.cpp $(MONOLIB_ODEP)
|
||||||
@COND_TOOLKIT_X11_USE_GUI_1@ $(CXXC) -c -o $@ $(MONOLIB_CXXFLAGS) $(srcdir)/src/common/taskbarcmn.cpp
|
@COND_TOOLKIT_X11_USE_GUI_1@ $(CXXC) -c -o $@ $(MONOLIB_CXXFLAGS) $(srcdir)/src/common/taskbarcmn.cpp
|
||||||
|
|
||||||
|
@COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1@monolib_taskbarcmn.o: $(srcdir)/src/common/taskbarcmn.cpp $(MONOLIB_ODEP)
|
||||||
|
@COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1@ $(CXXC) -c -o $@ $(MONOLIB_CXXFLAGS) $(srcdir)/src/common/taskbarcmn.cpp
|
||||||
|
|
||||||
@COND_TOOLKIT_MSW_USE_GUI_1@monolib_aboutdlg.o: $(srcdir)/src/msw/aboutdlg.cpp $(MONOLIB_ODEP)
|
@COND_TOOLKIT_MSW_USE_GUI_1@monolib_aboutdlg.o: $(srcdir)/src/msw/aboutdlg.cpp $(MONOLIB_ODEP)
|
||||||
@COND_TOOLKIT_MSW_USE_GUI_1@ $(CXXC) -c -o $@ $(MONOLIB_CXXFLAGS) $(srcdir)/src/msw/aboutdlg.cpp
|
@COND_TOOLKIT_MSW_USE_GUI_1@ $(CXXC) -c -o $@ $(MONOLIB_CXXFLAGS) $(srcdir)/src/msw/aboutdlg.cpp
|
||||||
|
|
||||||
@@ -20480,6 +20519,9 @@ monolib_sound_sdl.o: $(srcdir)/src/unix/sound_sdl.cpp $(MONOLIB_ODEP)
|
|||||||
@COND_TOOLKIT_X11_USE_GUI_1@monolib_joystick.o: $(srcdir)/src/unix/joystick.cpp $(MONOLIB_ODEP)
|
@COND_TOOLKIT_X11_USE_GUI_1@monolib_joystick.o: $(srcdir)/src/unix/joystick.cpp $(MONOLIB_ODEP)
|
||||||
@COND_TOOLKIT_X11_USE_GUI_1@ $(CXXC) -c -o $@ $(MONOLIB_CXXFLAGS) $(srcdir)/src/unix/joystick.cpp
|
@COND_TOOLKIT_X11_USE_GUI_1@ $(CXXC) -c -o $@ $(MONOLIB_CXXFLAGS) $(srcdir)/src/unix/joystick.cpp
|
||||||
|
|
||||||
|
@COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1@monolib_joystick.o: $(srcdir)/src/unix/joystick.cpp $(MONOLIB_ODEP)
|
||||||
|
@COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1@ $(CXXC) -c -o $@ $(MONOLIB_CXXFLAGS) $(srcdir)/src/unix/joystick.cpp
|
||||||
|
|
||||||
@COND_TOOLKIT_PM_USE_GUI_1@monolib_joystick.o: $(srcdir)/src/os2/joystick.cpp $(MONOLIB_ODEP)
|
@COND_TOOLKIT_PM_USE_GUI_1@monolib_joystick.o: $(srcdir)/src/os2/joystick.cpp $(MONOLIB_ODEP)
|
||||||
@COND_TOOLKIT_PM_USE_GUI_1@ $(CXXC) -c -o $@ $(MONOLIB_CXXFLAGS) $(srcdir)/src/os2/joystick.cpp
|
@COND_TOOLKIT_PM_USE_GUI_1@ $(CXXC) -c -o $@ $(MONOLIB_CXXFLAGS) $(srcdir)/src/os2/joystick.cpp
|
||||||
|
|
||||||
@@ -20501,6 +20543,9 @@ monolib_sound_sdl.o: $(srcdir)/src/unix/sound_sdl.cpp $(MONOLIB_ODEP)
|
|||||||
@COND_TOOLKIT_X11_USE_GUI_1@monolib_taskbarx11.o: $(srcdir)/src/unix/taskbarx11.cpp $(MONOLIB_ODEP)
|
@COND_TOOLKIT_X11_USE_GUI_1@monolib_taskbarx11.o: $(srcdir)/src/unix/taskbarx11.cpp $(MONOLIB_ODEP)
|
||||||
@COND_TOOLKIT_X11_USE_GUI_1@ $(CXXC) -c -o $@ $(MONOLIB_CXXFLAGS) $(srcdir)/src/unix/taskbarx11.cpp
|
@COND_TOOLKIT_X11_USE_GUI_1@ $(CXXC) -c -o $@ $(MONOLIB_CXXFLAGS) $(srcdir)/src/unix/taskbarx11.cpp
|
||||||
|
|
||||||
|
@COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1@monolib_taskbarx11.o: $(srcdir)/src/unix/taskbarx11.cpp $(MONOLIB_ODEP)
|
||||||
|
@COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1@ $(CXXC) -c -o $@ $(MONOLIB_CXXFLAGS) $(srcdir)/src/unix/taskbarx11.cpp
|
||||||
|
|
||||||
@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1@monolib_animate.o: $(srcdir)/src/gtk/animate.cpp $(MONOLIB_ODEP)
|
@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1@monolib_animate.o: $(srcdir)/src/gtk/animate.cpp $(MONOLIB_ODEP)
|
||||||
@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1@ $(CXXC) -c -o $@ $(MONOLIB_CXXFLAGS) $(srcdir)/src/gtk/animate.cpp
|
@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1@ $(CXXC) -c -o $@ $(MONOLIB_CXXFLAGS) $(srcdir)/src/gtk/animate.cpp
|
||||||
|
|
||||||
@@ -27797,6 +27842,9 @@ advdll_wizard.o: $(srcdir)/src/generic/wizard.cpp $(ADVDLL_ODEP)
|
|||||||
@COND_TOOLKIT_X11@advdll_taskbarcmn.o: $(srcdir)/src/common/taskbarcmn.cpp $(ADVDLL_ODEP)
|
@COND_TOOLKIT_X11@advdll_taskbarcmn.o: $(srcdir)/src/common/taskbarcmn.cpp $(ADVDLL_ODEP)
|
||||||
@COND_TOOLKIT_X11@ $(CXXC) -c -o $@ $(ADVDLL_CXXFLAGS) $(srcdir)/src/common/taskbarcmn.cpp
|
@COND_TOOLKIT_X11@ $(CXXC) -c -o $@ $(ADVDLL_CXXFLAGS) $(srcdir)/src/common/taskbarcmn.cpp
|
||||||
|
|
||||||
|
@COND_PLATFORM_UNIX_1_TOOLKIT_MGL@advdll_taskbarcmn.o: $(srcdir)/src/common/taskbarcmn.cpp $(ADVDLL_ODEP)
|
||||||
|
@COND_PLATFORM_UNIX_1_TOOLKIT_MGL@ $(CXXC) -c -o $@ $(ADVDLL_CXXFLAGS) $(srcdir)/src/common/taskbarcmn.cpp
|
||||||
|
|
||||||
@COND_TOOLKIT_MSW@advdll_aboutdlg.o: $(srcdir)/src/msw/aboutdlg.cpp $(ADVDLL_ODEP)
|
@COND_TOOLKIT_MSW@advdll_aboutdlg.o: $(srcdir)/src/msw/aboutdlg.cpp $(ADVDLL_ODEP)
|
||||||
@COND_TOOLKIT_MSW@ $(CXXC) -c -o $@ $(ADVDLL_CXXFLAGS) $(srcdir)/src/msw/aboutdlg.cpp
|
@COND_TOOLKIT_MSW@ $(CXXC) -c -o $@ $(ADVDLL_CXXFLAGS) $(srcdir)/src/msw/aboutdlg.cpp
|
||||||
|
|
||||||
@@ -27830,6 +27878,9 @@ advdll_wizard.o: $(srcdir)/src/generic/wizard.cpp $(ADVDLL_ODEP)
|
|||||||
@COND_TOOLKIT_X11@advdll_sound.o: $(srcdir)/src/unix/sound.cpp $(ADVDLL_ODEP)
|
@COND_TOOLKIT_X11@advdll_sound.o: $(srcdir)/src/unix/sound.cpp $(ADVDLL_ODEP)
|
||||||
@COND_TOOLKIT_X11@ $(CXXC) -c -o $@ $(ADVDLL_CXXFLAGS) $(srcdir)/src/unix/sound.cpp
|
@COND_TOOLKIT_X11@ $(CXXC) -c -o $@ $(ADVDLL_CXXFLAGS) $(srcdir)/src/unix/sound.cpp
|
||||||
|
|
||||||
|
@COND_PLATFORM_UNIX_1_TOOLKIT_MGL@advdll_sound.o: $(srcdir)/src/unix/sound.cpp $(ADVDLL_ODEP)
|
||||||
|
@COND_PLATFORM_UNIX_1_TOOLKIT_MGL@ $(CXXC) -c -o $@ $(ADVDLL_CXXFLAGS) $(srcdir)/src/unix/sound.cpp
|
||||||
|
|
||||||
@COND_TOOLKIT_PM@advdll_sound.o: $(srcdir)/src/os2/sound.cpp $(ADVDLL_ODEP)
|
@COND_TOOLKIT_PM@advdll_sound.o: $(srcdir)/src/os2/sound.cpp $(ADVDLL_ODEP)
|
||||||
@COND_TOOLKIT_PM@ $(CXXC) -c -o $@ $(ADVDLL_CXXFLAGS) $(srcdir)/src/os2/sound.cpp
|
@COND_TOOLKIT_PM@ $(CXXC) -c -o $@ $(ADVDLL_CXXFLAGS) $(srcdir)/src/os2/sound.cpp
|
||||||
|
|
||||||
@@ -27866,6 +27917,9 @@ advdll_wizard.o: $(srcdir)/src/generic/wizard.cpp $(ADVDLL_ODEP)
|
|||||||
@COND_TOOLKIT_X11@advdll_joystick.o: $(srcdir)/src/unix/joystick.cpp $(ADVDLL_ODEP)
|
@COND_TOOLKIT_X11@advdll_joystick.o: $(srcdir)/src/unix/joystick.cpp $(ADVDLL_ODEP)
|
||||||
@COND_TOOLKIT_X11@ $(CXXC) -c -o $@ $(ADVDLL_CXXFLAGS) $(srcdir)/src/unix/joystick.cpp
|
@COND_TOOLKIT_X11@ $(CXXC) -c -o $@ $(ADVDLL_CXXFLAGS) $(srcdir)/src/unix/joystick.cpp
|
||||||
|
|
||||||
|
@COND_PLATFORM_UNIX_1_TOOLKIT_MGL@advdll_joystick.o: $(srcdir)/src/unix/joystick.cpp $(ADVDLL_ODEP)
|
||||||
|
@COND_PLATFORM_UNIX_1_TOOLKIT_MGL@ $(CXXC) -c -o $@ $(ADVDLL_CXXFLAGS) $(srcdir)/src/unix/joystick.cpp
|
||||||
|
|
||||||
@COND_TOOLKIT_PM@advdll_joystick.o: $(srcdir)/src/os2/joystick.cpp $(ADVDLL_ODEP)
|
@COND_TOOLKIT_PM@advdll_joystick.o: $(srcdir)/src/os2/joystick.cpp $(ADVDLL_ODEP)
|
||||||
@COND_TOOLKIT_PM@ $(CXXC) -c -o $@ $(ADVDLL_CXXFLAGS) $(srcdir)/src/os2/joystick.cpp
|
@COND_TOOLKIT_PM@ $(CXXC) -c -o $@ $(ADVDLL_CXXFLAGS) $(srcdir)/src/os2/joystick.cpp
|
||||||
|
|
||||||
@@ -27890,6 +27944,9 @@ advdll_wizard.o: $(srcdir)/src/generic/wizard.cpp $(ADVDLL_ODEP)
|
|||||||
@COND_TOOLKIT_X11@advdll_taskbarx11.o: $(srcdir)/src/unix/taskbarx11.cpp $(ADVDLL_ODEP)
|
@COND_TOOLKIT_X11@advdll_taskbarx11.o: $(srcdir)/src/unix/taskbarx11.cpp $(ADVDLL_ODEP)
|
||||||
@COND_TOOLKIT_X11@ $(CXXC) -c -o $@ $(ADVDLL_CXXFLAGS) $(srcdir)/src/unix/taskbarx11.cpp
|
@COND_TOOLKIT_X11@ $(CXXC) -c -o $@ $(ADVDLL_CXXFLAGS) $(srcdir)/src/unix/taskbarx11.cpp
|
||||||
|
|
||||||
|
@COND_PLATFORM_UNIX_1_TOOLKIT_MGL@advdll_taskbarx11.o: $(srcdir)/src/unix/taskbarx11.cpp $(ADVDLL_ODEP)
|
||||||
|
@COND_PLATFORM_UNIX_1_TOOLKIT_MGL@ $(CXXC) -c -o $@ $(ADVDLL_CXXFLAGS) $(srcdir)/src/unix/taskbarx11.cpp
|
||||||
|
|
||||||
@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@advdll_animate.o: $(srcdir)/src/gtk/animate.cpp $(ADVDLL_ODEP)
|
@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@advdll_animate.o: $(srcdir)/src/gtk/animate.cpp $(ADVDLL_ODEP)
|
||||||
@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@ $(CXXC) -c -o $@ $(ADVDLL_CXXFLAGS) $(srcdir)/src/gtk/animate.cpp
|
@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@ $(CXXC) -c -o $@ $(ADVDLL_CXXFLAGS) $(srcdir)/src/gtk/animate.cpp
|
||||||
|
|
||||||
@@ -27995,6 +28052,9 @@ advlib_wizard.o: $(srcdir)/src/generic/wizard.cpp $(ADVLIB_ODEP)
|
|||||||
@COND_TOOLKIT_X11@advlib_taskbarcmn.o: $(srcdir)/src/common/taskbarcmn.cpp $(ADVLIB_ODEP)
|
@COND_TOOLKIT_X11@advlib_taskbarcmn.o: $(srcdir)/src/common/taskbarcmn.cpp $(ADVLIB_ODEP)
|
||||||
@COND_TOOLKIT_X11@ $(CXXC) -c -o $@ $(ADVLIB_CXXFLAGS) $(srcdir)/src/common/taskbarcmn.cpp
|
@COND_TOOLKIT_X11@ $(CXXC) -c -o $@ $(ADVLIB_CXXFLAGS) $(srcdir)/src/common/taskbarcmn.cpp
|
||||||
|
|
||||||
|
@COND_PLATFORM_UNIX_1_TOOLKIT_MGL@advlib_taskbarcmn.o: $(srcdir)/src/common/taskbarcmn.cpp $(ADVLIB_ODEP)
|
||||||
|
@COND_PLATFORM_UNIX_1_TOOLKIT_MGL@ $(CXXC) -c -o $@ $(ADVLIB_CXXFLAGS) $(srcdir)/src/common/taskbarcmn.cpp
|
||||||
|
|
||||||
@COND_TOOLKIT_MSW@advlib_aboutdlg.o: $(srcdir)/src/msw/aboutdlg.cpp $(ADVLIB_ODEP)
|
@COND_TOOLKIT_MSW@advlib_aboutdlg.o: $(srcdir)/src/msw/aboutdlg.cpp $(ADVLIB_ODEP)
|
||||||
@COND_TOOLKIT_MSW@ $(CXXC) -c -o $@ $(ADVLIB_CXXFLAGS) $(srcdir)/src/msw/aboutdlg.cpp
|
@COND_TOOLKIT_MSW@ $(CXXC) -c -o $@ $(ADVLIB_CXXFLAGS) $(srcdir)/src/msw/aboutdlg.cpp
|
||||||
|
|
||||||
@@ -28028,6 +28088,9 @@ advlib_wizard.o: $(srcdir)/src/generic/wizard.cpp $(ADVLIB_ODEP)
|
|||||||
@COND_TOOLKIT_X11@advlib_sound.o: $(srcdir)/src/unix/sound.cpp $(ADVLIB_ODEP)
|
@COND_TOOLKIT_X11@advlib_sound.o: $(srcdir)/src/unix/sound.cpp $(ADVLIB_ODEP)
|
||||||
@COND_TOOLKIT_X11@ $(CXXC) -c -o $@ $(ADVLIB_CXXFLAGS) $(srcdir)/src/unix/sound.cpp
|
@COND_TOOLKIT_X11@ $(CXXC) -c -o $@ $(ADVLIB_CXXFLAGS) $(srcdir)/src/unix/sound.cpp
|
||||||
|
|
||||||
|
@COND_PLATFORM_UNIX_1_TOOLKIT_MGL@advlib_sound.o: $(srcdir)/src/unix/sound.cpp $(ADVLIB_ODEP)
|
||||||
|
@COND_PLATFORM_UNIX_1_TOOLKIT_MGL@ $(CXXC) -c -o $@ $(ADVLIB_CXXFLAGS) $(srcdir)/src/unix/sound.cpp
|
||||||
|
|
||||||
@COND_TOOLKIT_PM@advlib_sound.o: $(srcdir)/src/os2/sound.cpp $(ADVLIB_ODEP)
|
@COND_TOOLKIT_PM@advlib_sound.o: $(srcdir)/src/os2/sound.cpp $(ADVLIB_ODEP)
|
||||||
@COND_TOOLKIT_PM@ $(CXXC) -c -o $@ $(ADVLIB_CXXFLAGS) $(srcdir)/src/os2/sound.cpp
|
@COND_TOOLKIT_PM@ $(CXXC) -c -o $@ $(ADVLIB_CXXFLAGS) $(srcdir)/src/os2/sound.cpp
|
||||||
|
|
||||||
@@ -28064,6 +28127,9 @@ advlib_wizard.o: $(srcdir)/src/generic/wizard.cpp $(ADVLIB_ODEP)
|
|||||||
@COND_TOOLKIT_X11@advlib_joystick.o: $(srcdir)/src/unix/joystick.cpp $(ADVLIB_ODEP)
|
@COND_TOOLKIT_X11@advlib_joystick.o: $(srcdir)/src/unix/joystick.cpp $(ADVLIB_ODEP)
|
||||||
@COND_TOOLKIT_X11@ $(CXXC) -c -o $@ $(ADVLIB_CXXFLAGS) $(srcdir)/src/unix/joystick.cpp
|
@COND_TOOLKIT_X11@ $(CXXC) -c -o $@ $(ADVLIB_CXXFLAGS) $(srcdir)/src/unix/joystick.cpp
|
||||||
|
|
||||||
|
@COND_PLATFORM_UNIX_1_TOOLKIT_MGL@advlib_joystick.o: $(srcdir)/src/unix/joystick.cpp $(ADVLIB_ODEP)
|
||||||
|
@COND_PLATFORM_UNIX_1_TOOLKIT_MGL@ $(CXXC) -c -o $@ $(ADVLIB_CXXFLAGS) $(srcdir)/src/unix/joystick.cpp
|
||||||
|
|
||||||
@COND_TOOLKIT_PM@advlib_joystick.o: $(srcdir)/src/os2/joystick.cpp $(ADVLIB_ODEP)
|
@COND_TOOLKIT_PM@advlib_joystick.o: $(srcdir)/src/os2/joystick.cpp $(ADVLIB_ODEP)
|
||||||
@COND_TOOLKIT_PM@ $(CXXC) -c -o $@ $(ADVLIB_CXXFLAGS) $(srcdir)/src/os2/joystick.cpp
|
@COND_TOOLKIT_PM@ $(CXXC) -c -o $@ $(ADVLIB_CXXFLAGS) $(srcdir)/src/os2/joystick.cpp
|
||||||
|
|
||||||
@@ -28088,6 +28154,9 @@ advlib_wizard.o: $(srcdir)/src/generic/wizard.cpp $(ADVLIB_ODEP)
|
|||||||
@COND_TOOLKIT_X11@advlib_taskbarx11.o: $(srcdir)/src/unix/taskbarx11.cpp $(ADVLIB_ODEP)
|
@COND_TOOLKIT_X11@advlib_taskbarx11.o: $(srcdir)/src/unix/taskbarx11.cpp $(ADVLIB_ODEP)
|
||||||
@COND_TOOLKIT_X11@ $(CXXC) -c -o $@ $(ADVLIB_CXXFLAGS) $(srcdir)/src/unix/taskbarx11.cpp
|
@COND_TOOLKIT_X11@ $(CXXC) -c -o $@ $(ADVLIB_CXXFLAGS) $(srcdir)/src/unix/taskbarx11.cpp
|
||||||
|
|
||||||
|
@COND_PLATFORM_UNIX_1_TOOLKIT_MGL@advlib_taskbarx11.o: $(srcdir)/src/unix/taskbarx11.cpp $(ADVLIB_ODEP)
|
||||||
|
@COND_PLATFORM_UNIX_1_TOOLKIT_MGL@ $(CXXC) -c -o $@ $(ADVLIB_CXXFLAGS) $(srcdir)/src/unix/taskbarx11.cpp
|
||||||
|
|
||||||
@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@advlib_animate.o: $(srcdir)/src/gtk/animate.cpp $(ADVLIB_ODEP)
|
@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@advlib_animate.o: $(srcdir)/src/gtk/animate.cpp $(ADVLIB_ODEP)
|
||||||
@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@ $(CXXC) -c -o $@ $(ADVLIB_CXXFLAGS) $(srcdir)/src/gtk/animate.cpp
|
@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@ $(CXXC) -c -o $@ $(ADVLIB_CXXFLAGS) $(srcdir)/src/gtk/animate.cpp
|
||||||
|
|
||||||
|
@@ -386,6 +386,18 @@ dnl ### begin block 20_COND_PLATFORM_UNIX_1[../../contrib/build/animate/animate.
|
|||||||
COND_PLATFORM_UNIX_1=""
|
COND_PLATFORM_UNIX_1=""
|
||||||
fi
|
fi
|
||||||
AC_SUBST(COND_PLATFORM_UNIX_1)
|
AC_SUBST(COND_PLATFORM_UNIX_1)
|
||||||
|
dnl ### begin block 20_COND_PLATFORM_UNIX_1_TOOLKIT_MGL[wx.bkl] ###
|
||||||
|
COND_PLATFORM_UNIX_1_TOOLKIT_MGL="#"
|
||||||
|
if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" ; then
|
||||||
|
COND_PLATFORM_UNIX_1_TOOLKIT_MGL=""
|
||||||
|
fi
|
||||||
|
AC_SUBST(COND_PLATFORM_UNIX_1_TOOLKIT_MGL)
|
||||||
|
dnl ### begin block 20_COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1[wx.bkl] ###
|
||||||
|
COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1="#"
|
||||||
|
if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
|
||||||
|
COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1=""
|
||||||
|
fi
|
||||||
|
AC_SUBST(COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1)
|
||||||
dnl ### begin block 20_COND_PLATFORM_UNIX_1_USE_GUI_1[wx.bkl] ###
|
dnl ### begin block 20_COND_PLATFORM_UNIX_1_USE_GUI_1[wx.bkl] ###
|
||||||
COND_PLATFORM_UNIX_1_USE_GUI_1="#"
|
COND_PLATFORM_UNIX_1_USE_GUI_1="#"
|
||||||
if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
|
if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
|
||||||
|
@@ -3325,6 +3325,7 @@ IMPORTANT: please read docs/tech/tn0016.txt before modifying this file!
|
|||||||
<if cond="TOOLKIT=='GTK' and TOOLKIT_VERSION=='2'">$(ADVANCED_UNIX_SRC) $(ADVANCED_GTK_SRC)</if>
|
<if cond="TOOLKIT=='GTK' and TOOLKIT_VERSION=='2'">$(ADVANCED_UNIX_SRC) $(ADVANCED_GTK_SRC)</if>
|
||||||
<if cond="TOOLKIT=='GTK' and TOOLKIT_VERSION==''">$(ADVANCED_UNIX_SRC) $(ADVANCED_GTK1_SRC)</if>
|
<if cond="TOOLKIT=='GTK' and TOOLKIT_VERSION==''">$(ADVANCED_UNIX_SRC) $(ADVANCED_GTK1_SRC)</if>
|
||||||
<if cond="TOOLKIT=='X11'">$(ADVANCED_UNIX_SRC)</if>
|
<if cond="TOOLKIT=='X11'">$(ADVANCED_UNIX_SRC)</if>
|
||||||
|
<if cond="TOOLKIT=='MGL' and PLATFORM_UNIX=='1'">$(ADVANCED_UNIX_SRC)</if>
|
||||||
<if cond="TOOLKIT=='PM'">$(ADVANCED_OS2_SRC)</if>
|
<if cond="TOOLKIT=='PM'">$(ADVANCED_OS2_SRC)</if>
|
||||||
</set>
|
</set>
|
||||||
<set var="ADVANCED_PLATFORM_HDR" hints="files">
|
<set var="ADVANCED_PLATFORM_HDR" hints="files">
|
||||||
@@ -3336,6 +3337,7 @@ IMPORTANT: please read docs/tech/tn0016.txt before modifying this file!
|
|||||||
<if cond="TOOLKIT=='GTK' and TOOLKIT_VERSION=='2'">$(ADVANCED_UNIX_HDR) $(ADVANCED_GTK_HDR)</if>
|
<if cond="TOOLKIT=='GTK' and TOOLKIT_VERSION=='2'">$(ADVANCED_UNIX_HDR) $(ADVANCED_GTK_HDR)</if>
|
||||||
<if cond="TOOLKIT=='GTK' and TOOLKIT_VERSION==''">$(ADVANCED_UNIX_HDR) $(ADVANCED_GTK1_HDR)</if>
|
<if cond="TOOLKIT=='GTK' and TOOLKIT_VERSION==''">$(ADVANCED_UNIX_HDR) $(ADVANCED_GTK1_HDR)</if>
|
||||||
<if cond="TOOLKIT=='X11'">$(ADVANCED_UNIX_HDR)</if>
|
<if cond="TOOLKIT=='X11'">$(ADVANCED_UNIX_HDR)</if>
|
||||||
|
<if cond="TOOLKIT=='MGL' and PLATFORM_UNIX=='1'">$(ADVANCED_UNIX_HDR)</if>
|
||||||
<if cond="TOOLKIT=='PM'">$(ADVANCED_OS2_HDR)</if>
|
<if cond="TOOLKIT=='PM'">$(ADVANCED_OS2_HDR)</if>
|
||||||
</set>
|
</set>
|
||||||
|
|
||||||
|
@@ -20,8 +20,8 @@ AppPublisher=wxWidgets
|
|||||||
AppPublisherURL=http://www.wxwidgets.org
|
AppPublisherURL=http://www.wxwidgets.org
|
||||||
AppSupportURL=http://www.wxwidgets.org
|
AppSupportURL=http://www.wxwidgets.org
|
||||||
AppUpdatesURL=http://www.wxwidgets.org
|
AppUpdatesURL=http://www.wxwidgets.org
|
||||||
DefaultDirName={sd}\wxWidgets
|
DefaultDirName={sd}\wxWidgets-{#WX_VERSION}
|
||||||
DefaultGroupName=wxWidgets
|
DefaultGroupName=wxWidgets {#WX_VERSION}
|
||||||
DisableProgramGroupPage=yes
|
DisableProgramGroupPage=yes
|
||||||
LicenseFile=C:\wx\inno\wxWidgets\docs\licence.txt
|
LicenseFile=C:\wx\inno\wxWidgets\docs\licence.txt
|
||||||
InfoBeforeFile=C:\wx\inno\wxWidgets\docs\readme.txt
|
InfoBeforeFile=C:\wx\inno\wxWidgets\docs\readme.txt
|
||||||
@@ -42,6 +42,10 @@ Filename: "{app}\wx.url"; Section: "InternetShortcut"; Key: "URL"; String: "http
|
|||||||
[Icons]
|
[Icons]
|
||||||
Name: "{group}\{cm:ProgramOnTheWeb,wxWidgets {#WX_VERSION}}"; Filename: "{app}\wx.url"
|
Name: "{group}\{cm:ProgramOnTheWeb,wxWidgets {#WX_VERSION}}"; Filename: "{app}\wx.url"
|
||||||
Name: {group}\wxWidgets Manual; Filename: {app}\docs\htmlhelp\wx.chm; WorkingDir: {app}; IconIndex: 0; Flags: useapppaths
|
Name: {group}\wxWidgets Manual; Filename: {app}\docs\htmlhelp\wx.chm; WorkingDir: {app}; IconIndex: 0; Flags: useapppaths
|
||||||
|
Name: {group}\Changes; Filename: {app}\docs\changes.txt; WorkingDir: {app}; IconIndex: 0; Flags: useapppaths
|
||||||
|
Name: {group}\Readme; Filename: {app}\docs\readme.txt; WorkingDir: {app}; IconIndex: 0; Flags: useapppaths
|
||||||
|
Name: {group}\Compiling wxWidgets; Filename: {app}\docs\msw\install.txt; WorkingDir: {app}; IconIndex: 0; Flags: useapppaths
|
||||||
|
Name: "{group}\Uninstall wxWidgets {#WX_VERSION}"; Filename: "{uninstallexe}"
|
||||||
|
|
||||||
|
|
||||||
[UninstallDelete]
|
[UninstallDelete]
|
||||||
|
@@ -3901,7 +3901,10 @@ dnl ---------------------------------------------------------------------------
|
|||||||
|
|
||||||
USE_OPENGL=0
|
USE_OPENGL=0
|
||||||
if test "$wxUSE_OPENGL" = "yes"; then
|
if test "$wxUSE_OPENGL" = "yes"; then
|
||||||
if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
|
if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = "1"; then
|
||||||
|
AC_MSG_WARN([wxGLCanvas not implemented for this port, library will be compiled without it.])
|
||||||
|
wxUSE_OPENGL="no"
|
||||||
|
elif test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
|
||||||
OPENGL_LIBS="-framework OpenGL -framework AGL"
|
OPENGL_LIBS="-framework OpenGL -framework AGL"
|
||||||
elif test "$wxUSE_MSW" = 1; then
|
elif test "$wxUSE_MSW" = 1; then
|
||||||
OPENGL_LIBS="-lopengl32 -lglu32"
|
OPENGL_LIBS="-lopengl32 -lglu32"
|
||||||
|
7
debian/changelog
vendored
7
debian/changelog
vendored
@@ -1,3 +1,10 @@
|
|||||||
|
wxwidgets2.8 (2.8.0.0-0rc2) unstable; urgency=low
|
||||||
|
|
||||||
|
* wxArrayString::Alloc() doesn't clear array contents any more
|
||||||
|
* Fixed long standing bug in wxFileConfig groups renaming
|
||||||
|
|
||||||
|
-- Vadim Zeitlin <vadim@wxwindows.org> Nov, 14 Tue 2006 19:06:37 +0100
|
||||||
|
|
||||||
wxwidgets2.7 (2.7.2.0-0) unstable; urgency=low
|
wxwidgets2.7 (2.7.2.0-0) unstable; urgency=low
|
||||||
|
|
||||||
* Added wxTar streams.
|
* Added wxTar streams.
|
||||||
|
8
debian/rules
vendored
8
debian/rules
vendored
@@ -71,8 +71,8 @@ release := $(wx_major_version_number).$(wx_minor_version_number)
|
|||||||
# specify $soversion below. Re-automate if incompatible changes
|
# specify $soversion below. Re-automate if incompatible changes
|
||||||
# result in it actually changing.
|
# result in it actually changing.
|
||||||
#soversion := $(shell grep '^WX_CURRENT=' configure.in | sed 's/WX_CURRENT=\([0-9]\+\).*/\1/')
|
#soversion := $(shell grep '^WX_CURRENT=' configure.in | sed 's/WX_CURRENT=\([0-9]\+\).*/\1/')
|
||||||
##soversion := 0
|
soversion := 0
|
||||||
##sorelease := $(release:%-$(DEBIAN_WXFLAVOUR)=%)-$(soversion)$(addprefix -,$(DEBIAN_WXFLAVOUR))
|
sorelease := $(release:%-$(DEBIAN_WXFLAVOUR)=%)-$(soversion)$(addprefix -,$(DEBIAN_WXFLAVOUR))
|
||||||
|
|
||||||
# In some places we use the full version number, including the micro version,
|
# In some places we use the full version number, including the micro version,
|
||||||
# for the development releases (which can be incompatible for the same major
|
# for the development releases (which can be incompatible for the same major
|
||||||
@@ -281,7 +281,7 @@ debian/python-version:
|
|||||||
echo python_ver := python$(shell python -c "import sys;print sys.version[:3]") > $@
|
echo python_ver := python$(shell python -c "import sys;print sys.version[:3]") > $@
|
||||||
|
|
||||||
debian/control: $(addprefix debian/,control.in python-version)
|
debian/control: $(addprefix debian/,control.in python-version)
|
||||||
sed -e 's/=V/$(release)/g;s/=SOV/$(release)/g;s/=PY/$(python_ver)/g;s/=U/$(unicode_suffix)/g'\
|
sed -e 's/=V/$(release)/g;s/=SOV/$(sorelease)/g;s/=PY/$(python_ver)/g;s/=U/$(unicode_suffix)/g'\
|
||||||
< debian/control.in > debian/control
|
< debian/control.in > debian/control
|
||||||
|
|
||||||
control-files-stamp: debian/control
|
control-files-stamp: debian/control
|
||||||
@@ -363,7 +363,7 @@ control-files-stamp: debian/control
|
|||||||
# > debian/$(package_common).menu;
|
# > debian/$(package_common).menu;
|
||||||
@echo "generating control file lintian-override"; \
|
@echo "generating control file lintian-override"; \
|
||||||
sed -e 's/=V/$(release)/g; '\
|
sed -e 's/=V/$(release)/g; '\
|
||||||
' s/=SOV/$(release)/g' \
|
' s/=SOV/$(sorelease)/g' \
|
||||||
< debian/lintian-override.in \
|
< debian/lintian-override.in \
|
||||||
> debian/lintian-override; \
|
> debian/lintian-override; \
|
||||||
touch $@
|
touch $@
|
||||||
|
@@ -143,6 +143,21 @@ The \arg{sortArrow} parameter can be one of
|
|||||||
drawing of a text or bitmap label can be passed in \arg{params}.
|
drawing of a text or bitmap label can be passed in \arg{params}.
|
||||||
|
|
||||||
|
|
||||||
|
\membersection{wxRendererNative::DrawItemSelectionRect}\label{wxrenderernativedrawitemselectionrect}
|
||||||
|
|
||||||
|
\func{void}{DrawItemSelectionRect}{\param{wxWindow* }{win}, \param{wxDC\& }{dc}, \param{const wxRect\& }{rect}, \param{int }{flags = 0}}
|
||||||
|
|
||||||
|
Draw a selection rectangle underneath the text as used e.g.
|
||||||
|
in a \helpref{wxListCtrl}{wxlistctrl}. The supported \arg{flags}
|
||||||
|
are \texttt{wxCONTROL\_SELECTED} for items which are selected
|
||||||
|
(e.g. often a blue rectangle) and \texttt{wxCONTROL\_CURRENT}
|
||||||
|
for the item that has the focus (often a dotted line around
|
||||||
|
the item's text). \texttt{wxCONTROL\_CURRENT} may be used
|
||||||
|
to indicate if the control has the focus (othewise the
|
||||||
|
the selection rectangle is e.g. often grey and not blue).
|
||||||
|
This may be ignored by the renderer or deduced by the
|
||||||
|
code directly from the \arg{win}.
|
||||||
|
|
||||||
\membersection{wxRendererNative::DrawPushButton}\label{wxrenderernativedrawpushbutton}
|
\membersection{wxRendererNative::DrawPushButton}\label{wxrenderernativedrawpushbutton}
|
||||||
|
|
||||||
\func{void}{DrawPushButton}{\param{wxWindow *}{win}, \param{wxDC\& }{dc}, \param{const wxRect\& }{rect}, \param{int }{flags}}
|
\func{void}{DrawPushButton}{\param{wxWindow *}{win}, \param{wxDC\& }{dc}, \param{const wxRect\& }{rect}, \param{int }{flags}}
|
||||||
|
@@ -73,24 +73,16 @@
|
|||||||
typedef UCHAR SQLTCHAR;
|
typedef UCHAR SQLTCHAR;
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else // !wxUSE_BUILTIN_IODBC
|
||||||
#if defined( __WXMOTIF__ ) && defined( __VMS )
|
// SQL headers define BOOL if it's not defined yet but BOOL is also
|
||||||
// solves a type definition mismatch between IODBC and MOTIF on OpenVMS
|
// defined in many other places on other systems (Motif, at least on
|
||||||
#define BOOL int
|
// OpenVMS; Cocoa and X11) so prevent the problem by defining it before
|
||||||
#endif
|
// including these headers
|
||||||
#if defined( __DARWIN__ )
|
#define BOOL int
|
||||||
// solves a type definition mismatch between IODBC and Cocoa
|
|
||||||
#define BOOL signed char
|
|
||||||
#endif
|
|
||||||
#include <sql.h>
|
#include <sql.h>
|
||||||
#include <sqlext.h>
|
#include <sqlext.h>
|
||||||
//#if wxUSE_UNICODE
|
#undef BOOL
|
||||||
// #include <sqlucode.h>
|
#endif // wxUSE_BUILTIN_IODBC/!wxUSE_BUILTIN_IODBC
|
||||||
//#endif
|
|
||||||
#if defined( __WXMOTIF__ ) && defined( __VMS )
|
|
||||||
#undef BOOL
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -60,6 +60,8 @@ enum
|
|||||||
#include "wx/mac/glcanvas.h"
|
#include "wx/mac/glcanvas.h"
|
||||||
#elif defined(__WXCOCOA__)
|
#elif defined(__WXCOCOA__)
|
||||||
#include "wx/cocoa/glcanvas.h"
|
#include "wx/cocoa/glcanvas.h"
|
||||||
|
#else
|
||||||
|
#error "wxGLCanvas not supported in this wxWidgets port"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "wx/app.h"
|
#include "wx/app.h"
|
||||||
|
@@ -913,9 +913,11 @@ WXDLLIMPEXP_BASE bool wxOKlibc(); /* for internal use */
|
|||||||
#else /* !HAVE_UNIX98_PRINTF */
|
#else /* !HAVE_UNIX98_PRINTF */
|
||||||
/*
|
/*
|
||||||
The only compiler with positional parameters support under Windows
|
The only compiler with positional parameters support under Windows
|
||||||
is VC++ 8.0 which provides a new xxprintf_p() functions family
|
is VC++ 8.0 which provides a new xxprintf_p() functions family.
|
||||||
|
The 2003 PSDK includes a slightly earlier version of VC8 than the
|
||||||
|
main release and does not have the printf_p functions.
|
||||||
*/
|
*/
|
||||||
#if defined(__VISUALC__) && __VISUALC__ >= 1400 && !defined(__WXWINCE__)
|
#if defined _MSC_FULL_VER && _MSC_FULL_VER >= 140050727 && !defined __WXWINCE__
|
||||||
#if wxUSE_UNICODE
|
#if wxUSE_UNICODE
|
||||||
#define wxVsnprintf_ _vswprintf_p
|
#define wxVsnprintf_ _vswprintf_p
|
||||||
#else
|
#else
|
||||||
|
209
samples/aui/Makefile.in
Normal file
209
samples/aui/Makefile.in
Normal file
@@ -0,0 +1,209 @@
|
|||||||
|
# =========================================================================
|
||||||
|
# This makefile was generated by
|
||||||
|
# Bakefile 0.2.1 (http://bakefile.sourceforge.net)
|
||||||
|
# Do not modify, all changes will be overwritten!
|
||||||
|
# =========================================================================
|
||||||
|
|
||||||
|
|
||||||
|
@MAKE_SET@
|
||||||
|
|
||||||
|
prefix = @prefix@
|
||||||
|
exec_prefix = @exec_prefix@
|
||||||
|
INSTALL = @INSTALL@
|
||||||
|
EXEEXT = @EXEEXT@
|
||||||
|
WINDRES = @WINDRES@
|
||||||
|
REZ = @REZ@
|
||||||
|
SETFILE = @SETFILE@
|
||||||
|
NM = @NM@
|
||||||
|
BK_DEPS = @BK_DEPS@
|
||||||
|
srcdir = @srcdir@
|
||||||
|
top_srcdir = @top_srcdir@
|
||||||
|
LIBS = @LIBS@
|
||||||
|
LDFLAGS_GUI = @LDFLAGS_GUI@
|
||||||
|
CXX = @CXX@
|
||||||
|
CXXFLAGS = @CXXFLAGS@
|
||||||
|
CPPFLAGS = @CPPFLAGS@
|
||||||
|
LDFLAGS = @LDFLAGS@
|
||||||
|
WX_LIB_FLAVOUR = @WX_LIB_FLAVOUR@
|
||||||
|
TOOLKIT = @TOOLKIT@
|
||||||
|
TOOLKIT_LOWERCASE = @TOOLKIT_LOWERCASE@
|
||||||
|
TOOLKIT_VERSION = @TOOLKIT_VERSION@
|
||||||
|
TOOLCHAIN_FULLNAME = @TOOLCHAIN_FULLNAME@
|
||||||
|
EXTRALIBS = @EXTRALIBS@
|
||||||
|
EXTRALIBS_XML = @EXTRALIBS_XML@
|
||||||
|
EXTRALIBS_HTML = @EXTRALIBS_HTML@
|
||||||
|
EXTRALIBS_GUI = @EXTRALIBS_GUI@
|
||||||
|
EXTRALIBS_SDL = @EXTRALIBS_SDL@
|
||||||
|
HOST_SUFFIX = @HOST_SUFFIX@
|
||||||
|
SAMPLES_RPATH_FLAG = @SAMPLES_RPATH_FLAG@
|
||||||
|
SAMPLES_RPATH_POSTLINK = @SAMPLES_RPATH_POSTLINK@
|
||||||
|
wx_top_builddir = @wx_top_builddir@
|
||||||
|
|
||||||
|
### Variables: ###
|
||||||
|
|
||||||
|
DESTDIR =
|
||||||
|
WX_RELEASE = 2.8
|
||||||
|
WX_VERSION = $(WX_RELEASE).0
|
||||||
|
LIBDIRNAME = $(wx_top_builddir)/lib
|
||||||
|
AUIDEMO_CXXFLAGS = -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \
|
||||||
|
$(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
|
||||||
|
-I$(srcdir) $(__DLLFLAG_p) -I$(srcdir)/../../samples $(CPPFLAGS) $(CXXFLAGS)
|
||||||
|
AUIDEMO_OBJECTS = \
|
||||||
|
$(__auidemo___win32rc) \
|
||||||
|
$(__auidemo_os2_lib_res) \
|
||||||
|
auidemo_auidemo.o
|
||||||
|
|
||||||
|
### Conditionally set variables: ###
|
||||||
|
|
||||||
|
@COND_DEPS_TRACKING_0@CXXC = $(CXX)
|
||||||
|
@COND_DEPS_TRACKING_1@CXXC = $(BK_DEPS) $(CXX)
|
||||||
|
@COND_USE_PLUGINS_0@PLUGIN_ADV_EXTRALIBS = $(EXTRALIBS_SDL)
|
||||||
|
@COND_USE_GUI_0@PORTNAME = base
|
||||||
|
@COND_USE_GUI_1@PORTNAME = $(TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
|
||||||
|
@COND_TOOLKIT_MAC@WXBASEPORT = _carbon
|
||||||
|
@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@WXDEBUGFLAG = d
|
||||||
|
@COND_DEBUG_FLAG_1@WXDEBUGFLAG = d
|
||||||
|
@COND_UNICODE_1@WXUNICODEFLAG = u
|
||||||
|
@COND_WXUNIV_1@WXUNIVNAME = univ
|
||||||
|
@COND_MONOLITHIC_0@EXTRALIBS_FOR_BASE = $(EXTRALIBS)
|
||||||
|
@COND_MONOLITHIC_1@EXTRALIBS_FOR_BASE = $(EXTRALIBS) $(EXTRALIBS_GUI)
|
||||||
|
@COND_MONOLITHIC_0@EXTRALIBS_FOR_GUI = $(EXTRALIBS_GUI)
|
||||||
|
@COND_MONOLITHIC_1@EXTRALIBS_FOR_GUI =
|
||||||
|
@COND_PLATFORM_MAC_1@__auidemo___mac_setfilecmd = \
|
||||||
|
@COND_PLATFORM_MAC_1@ $(SETFILE) -a C auidemo$(EXEEXT)
|
||||||
|
@COND_PLATFORM_MAC_1@__auidemo___mac_rezcmd = $(__MACOSX_RESOURCES_p_1)
|
||||||
|
@COND_WXUNIV_1@__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
|
||||||
|
@COND_WXUNIV_1@__WXUNIV_DEFINE_p_1 = -d __WXUNIVERSAL__
|
||||||
|
@COND_WXUNIV_1@__WXUNIV_DEFINE_p_2 = --define __WXUNIVERSAL__
|
||||||
|
@COND_USE_EXCEPTIONS_0@__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
|
||||||
|
@COND_USE_EXCEPTIONS_0@__EXCEPTIONS_DEFINE_p_1 = -d wxNO_EXCEPTIONS
|
||||||
|
@COND_USE_EXCEPTIONS_0@__EXCEPTIONS_DEFINE_p_2 = --define wxNO_EXCEPTIONS
|
||||||
|
@COND_USE_RTTI_0@__RTTI_DEFINE_p = -DwxNO_RTTI
|
||||||
|
@COND_USE_RTTI_0@__RTTI_DEFINE_p_1 = -d wxNO_RTTI
|
||||||
|
@COND_USE_RTTI_0@__RTTI_DEFINE_p_2 = --define wxNO_RTTI
|
||||||
|
@COND_USE_THREADS_0@__THREAD_DEFINE_p = -DwxNO_THREADS
|
||||||
|
@COND_USE_THREADS_0@__THREAD_DEFINE_p_1 = -d wxNO_THREADS
|
||||||
|
@COND_USE_THREADS_0@__THREAD_DEFINE_p_2 = --define wxNO_THREADS
|
||||||
|
@COND_SHARED_1@__DLLFLAG_p = -DWXUSINGDLL
|
||||||
|
@COND_SHARED_1@__DLLFLAG_p_1 = -d WXUSINGDLL
|
||||||
|
@COND_SHARED_1@__DLLFLAG_p_2 = --define WXUSINGDLL
|
||||||
|
COND_PLATFORM_OS2_1___auidemo___os2_emxbindcmd = $(NM) auidemo$(EXEEXT) | if \
|
||||||
|
grep -q pmwin.763 ; then emxbind -ep auidemo$(EXEEXT) ; fi
|
||||||
|
@COND_PLATFORM_OS2_1@__auidemo___os2_emxbindcmd = $(COND_PLATFORM_OS2_1___auidemo___os2_emxbindcmd)
|
||||||
|
@COND_TOOLKIT_MSW@__RCDEFDIR_p = -i \
|
||||||
|
@COND_TOOLKIT_MSW@ $(LIBDIRNAME)/wx/include/$(TOOLCHAIN_FULLNAME)
|
||||||
|
@COND_TOOLKIT_MSW@__RCDEFDIR_p_1 = --include-dir \
|
||||||
|
@COND_TOOLKIT_MSW@ $(LIBDIRNAME)/wx/include/$(TOOLCHAIN_FULLNAME)
|
||||||
|
@COND_PLATFORM_WIN32_1@__auidemo___win32rc = auidemo_sample_rc.o
|
||||||
|
@COND_PLATFORM_OS2_1@__auidemo_os2_lib_res = \
|
||||||
|
@COND_PLATFORM_OS2_1@ $(top_srcdir)/include/wx/os2/wx.res
|
||||||
|
@COND_PLATFORM_MACOSX_1@__auidemo_bundle___depname = auidemo_bundle
|
||||||
|
@COND_TOOLKIT_COCOA@____auidemo_BUNDLE_TGT_REF_DEP = \
|
||||||
|
@COND_TOOLKIT_COCOA@ auidemo.app/Contents/PkgInfo
|
||||||
|
@COND_TOOLKIT_MAC@____auidemo_BUNDLE_TGT_REF_DEP = \
|
||||||
|
@COND_TOOLKIT_MAC@ auidemo.app/Contents/PkgInfo
|
||||||
|
COND_MONOLITHIC_0___WXLIB_AUI_p = \
|
||||||
|
-lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_aui-$(WX_RELEASE)$(HOST_SUFFIX)
|
||||||
|
@COND_MONOLITHIC_0@__WXLIB_AUI_p = $(COND_MONOLITHIC_0___WXLIB_AUI_p)
|
||||||
|
COND_MONOLITHIC_0___WXLIB_HTML_p = \
|
||||||
|
-lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html-$(WX_RELEASE)$(HOST_SUFFIX)
|
||||||
|
@COND_MONOLITHIC_0@__WXLIB_HTML_p = $(COND_MONOLITHIC_0___WXLIB_HTML_p)
|
||||||
|
COND_MONOLITHIC_0___WXLIB_ADV_p = \
|
||||||
|
-lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv-$(WX_RELEASE)$(HOST_SUFFIX)
|
||||||
|
@COND_MONOLITHIC_0@__WXLIB_ADV_p = $(COND_MONOLITHIC_0___WXLIB_ADV_p)
|
||||||
|
COND_MONOLITHIC_0___WXLIB_CORE_p = \
|
||||||
|
-lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core-$(WX_RELEASE)$(HOST_SUFFIX)
|
||||||
|
@COND_MONOLITHIC_0@__WXLIB_CORE_p = $(COND_MONOLITHIC_0___WXLIB_CORE_p)
|
||||||
|
COND_MONOLITHIC_0___WXLIB_XML_p = \
|
||||||
|
-lwx_base$(WXBASEPORT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml-$(WX_RELEASE)$(HOST_SUFFIX)
|
||||||
|
@COND_MONOLITHIC_0@__WXLIB_XML_p = $(COND_MONOLITHIC_0___WXLIB_XML_p)
|
||||||
|
COND_MONOLITHIC_0___WXLIB_BASE_p = \
|
||||||
|
-lwx_base$(WXBASEPORT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
|
||||||
|
@COND_MONOLITHIC_0@__WXLIB_BASE_p = $(COND_MONOLITHIC_0___WXLIB_BASE_p)
|
||||||
|
COND_MONOLITHIC_1___WXLIB_MONO_p = \
|
||||||
|
-lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
|
||||||
|
@COND_MONOLITHIC_1@__WXLIB_MONO_p = $(COND_MONOLITHIC_1___WXLIB_MONO_p)
|
||||||
|
@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@__LIB_TIFF_p \
|
||||||
|
@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@ = \
|
||||||
|
@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@ -lwxtiff$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
|
||||||
|
@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@__LIB_JPEG_p \
|
||||||
|
@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@ = \
|
||||||
|
@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@ -lwxjpeg$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
|
||||||
|
@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@__LIB_PNG_p \
|
||||||
|
@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@ = \
|
||||||
|
@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@ -lwxpng$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
|
||||||
|
@COND_WXUSE_ZLIB_BUILTIN@__LIB_ZLIB_p = \
|
||||||
|
@COND_WXUSE_ZLIB_BUILTIN@ -lwxzlib$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
|
||||||
|
@COND_WXUSE_ODBC_BUILTIN@__LIB_ODBC_p = \
|
||||||
|
@COND_WXUSE_ODBC_BUILTIN@ -lwxodbc$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
|
||||||
|
COND_WXUSE_REGEX_BUILTIN___LIB_REGEX_p = \
|
||||||
|
-lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
|
||||||
|
@COND_WXUSE_REGEX_BUILTIN@__LIB_REGEX_p = $(COND_WXUSE_REGEX_BUILTIN___LIB_REGEX_p)
|
||||||
|
@COND_WXUSE_EXPAT_BUILTIN@__LIB_EXPAT_p = \
|
||||||
|
@COND_WXUSE_EXPAT_BUILTIN@ -lwxexpat$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
|
||||||
|
COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_1 = $(REZ) -d __DARWIN__ -t APPL -d \
|
||||||
|
__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_1) $(__EXCEPTIONS_DEFINE_p_1) \
|
||||||
|
$(__RTTI_DEFINE_p_1) $(__THREAD_DEFINE_p_1) -i $(srcdir) $(__DLLFLAG_p_1) -i \
|
||||||
|
$(srcdir)/../../samples $(__RCDEFDIR_p) -i $(top_srcdir)/include -o \
|
||||||
|
auidemo$(EXEEXT) Carbon.r sample.r
|
||||||
|
@COND_TOOLKIT_MAC@__MACOSX_RESOURCES_p_1 = $(COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_1)
|
||||||
|
|
||||||
|
### Targets: ###
|
||||||
|
|
||||||
|
all: auidemo$(EXEEXT) $(__auidemo_bundle___depname)
|
||||||
|
|
||||||
|
install: all
|
||||||
|
|
||||||
|
uninstall:
|
||||||
|
|
||||||
|
install-strip: install
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -rf ./.deps ./.pch
|
||||||
|
rm -f ./*.o
|
||||||
|
rm -f auidemo$(EXEEXT)
|
||||||
|
rm -rf auidemo.app
|
||||||
|
|
||||||
|
distclean: clean
|
||||||
|
rm -f config.cache config.log config.status bk-deps bk-make-pch shared-ld-sh Makefile
|
||||||
|
|
||||||
|
auidemo$(EXEEXT): $(AUIDEMO_OBJECTS) $(__auidemo___win32rc)
|
||||||
|
$(CXX) -o $@ $(AUIDEMO_OBJECTS) $(LDFLAGS) -L$(LIBDIRNAME) $(LDFLAGS_GUI) $(SAMPLES_RPATH_FLAG) $(LIBS) $(__WXLIB_AUI_p) $(__WXLIB_HTML_p) $(EXTRALIBS_HTML) $(__WXLIB_ADV_p) $(PLUGIN_ADV_EXTRALIBS) $(__WXLIB_CORE_p) $(__WXLIB_XML_p) $(EXTRALIBS_XML) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) $(EXTRALIBS_FOR_GUI) $(__LIB_ZLIB_p) $(__LIB_ODBC_p) $(__LIB_REGEX_p) $(__LIB_EXPAT_p) $(EXTRALIBS_FOR_BASE)
|
||||||
|
$(__auidemo___mac_rezcmd)
|
||||||
|
$(__auidemo___mac_setfilecmd)
|
||||||
|
$(__auidemo___os2_emxbindcmd)
|
||||||
|
$(SAMPLES_RPATH_POSTLINK)
|
||||||
|
|
||||||
|
auidemo.app/Contents/PkgInfo: auidemo$(EXEEXT) $(top_srcdir)/src/mac/carbon/Info.plist.in $(top_srcdir)/src/mac/carbon/wxmac.icns
|
||||||
|
mkdir -p auidemo.app/Contents
|
||||||
|
mkdir -p auidemo.app/Contents/MacOS
|
||||||
|
mkdir -p auidemo.app/Contents/Resources
|
||||||
|
|
||||||
|
|
||||||
|
sed -e "s/IDENTIFIER/`echo $(srcdir) | sed -e 's,\.\./,,g' | sed -e 's,/,.,g'`/" \
|
||||||
|
-e "s/EXECUTABLE/auidemo/" \
|
||||||
|
-e "s/VERSION/$(WX_VERSION)/" \
|
||||||
|
$(top_srcdir)/src/mac/carbon/Info.plist.in >auidemo.app/Contents/Info.plist
|
||||||
|
|
||||||
|
|
||||||
|
echo -n "APPL????" >auidemo.app/Contents/PkgInfo
|
||||||
|
|
||||||
|
|
||||||
|
ln -f auidemo$(EXEEXT) auidemo.app/Contents/MacOS/auidemo
|
||||||
|
|
||||||
|
|
||||||
|
cp -f $(top_srcdir)/src/mac/carbon/wxmac.icns auidemo.app/Contents/Resources/wxmac.icns
|
||||||
|
|
||||||
|
@COND_PLATFORM_MACOSX_1@auidemo_bundle: $(____auidemo_BUNDLE_TGT_REF_DEP)
|
||||||
|
|
||||||
|
auidemo_sample_rc.o: $(srcdir)/../../samples/sample.rc
|
||||||
|
$(WINDRES) -i$< -o$@ --define __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_2) $(__EXCEPTIONS_DEFINE_p_2) $(__RTTI_DEFINE_p_2) $(__THREAD_DEFINE_p_2) --include-dir $(srcdir) $(__DLLFLAG_p_2) --include-dir $(srcdir)/../../samples $(__RCDEFDIR_p_1) --include-dir $(top_srcdir)/include
|
||||||
|
|
||||||
|
auidemo_auidemo.o: $(srcdir)/auidemo.cpp
|
||||||
|
$(CXXC) -c -o $@ $(AUIDEMO_CXXFLAGS) $(srcdir)/auidemo.cpp
|
||||||
|
|
||||||
|
|
||||||
|
# Include dependency info, if present:
|
||||||
|
@IF_GNU_MAKE@-include .deps/*.d
|
||||||
|
|
||||||
|
.PHONY: all install uninstall clean distclean auidemo_bundle
|
17
samples/aui/auidemo.bkl
Normal file
17
samples/aui/auidemo.bkl
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
<?xml version="1.0" ?>
|
||||||
|
<makefile>
|
||||||
|
|
||||||
|
<include file="../../build/bakefiles/common_samples.bkl"/>
|
||||||
|
|
||||||
|
<exe id="auidemo" template="wx_sample" template_append="wx_append">
|
||||||
|
<sources>
|
||||||
|
auidemo.cpp
|
||||||
|
</sources>
|
||||||
|
<wx-lib>aui</wx-lib>
|
||||||
|
<wx-lib>html</wx-lib>
|
||||||
|
<wx-lib>adv</wx-lib>
|
||||||
|
<wx-lib>core</wx-lib>
|
||||||
|
<wx-lib>xml</wx-lib>
|
||||||
|
<wx-lib>base</wx-lib>
|
||||||
|
</exe>
|
||||||
|
</makefile>
|
1556
samples/aui/auidemo.cpp
Normal file
1556
samples/aui/auidemo.cpp
Normal file
File diff suppressed because it is too large
Load Diff
480
samples/aui/auidemo.dsp
Normal file
480
samples/aui/auidemo.dsp
Normal file
@@ -0,0 +1,480 @@
|
|||||||
|
# Microsoft Developer Studio Project File - Name="auidemo" - Package Owner=<4>
|
||||||
|
# Microsoft Developer Studio Generated Build File, Format Version 6.00
|
||||||
|
# ** DO NOT EDIT **
|
||||||
|
|
||||||
|
# TARGTYPE "Win32 (x86) Application" 0x0101
|
||||||
|
|
||||||
|
CFG=auidemo - Win32 Debug
|
||||||
|
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
|
||||||
|
!MESSAGE use the Export Makefile command and run
|
||||||
|
!MESSAGE
|
||||||
|
!MESSAGE NMAKE /f "auidemo.mak".
|
||||||
|
!MESSAGE
|
||||||
|
!MESSAGE You can specify a configuration when running NMAKE
|
||||||
|
!MESSAGE by defining the macro CFG on the command line. For example:
|
||||||
|
!MESSAGE
|
||||||
|
!MESSAGE NMAKE /f "auidemo.mak" CFG="auidemo - Win32 Debug"
|
||||||
|
!MESSAGE
|
||||||
|
!MESSAGE Possible choices for configuration are:
|
||||||
|
!MESSAGE
|
||||||
|
!MESSAGE "auidemo - Win32 DLL Universal Unicode Release" (based on "Win32 (x86) Application")
|
||||||
|
!MESSAGE "auidemo - Win32 DLL Universal Unicode Debug" (based on "Win32 (x86) Application")
|
||||||
|
!MESSAGE "auidemo - Win32 DLL Universal Release" (based on "Win32 (x86) Application")
|
||||||
|
!MESSAGE "auidemo - Win32 DLL Universal Debug" (based on "Win32 (x86) Application")
|
||||||
|
!MESSAGE "auidemo - Win32 DLL Unicode Release" (based on "Win32 (x86) Application")
|
||||||
|
!MESSAGE "auidemo - Win32 DLL Unicode Debug" (based on "Win32 (x86) Application")
|
||||||
|
!MESSAGE "auidemo - Win32 DLL Release" (based on "Win32 (x86) Application")
|
||||||
|
!MESSAGE "auidemo - Win32 DLL Debug" (based on "Win32 (x86) Application")
|
||||||
|
!MESSAGE "auidemo - Win32 Universal Unicode Release" (based on "Win32 (x86) Application")
|
||||||
|
!MESSAGE "auidemo - Win32 Universal Unicode Debug" (based on "Win32 (x86) Application")
|
||||||
|
!MESSAGE "auidemo - Win32 Universal Release" (based on "Win32 (x86) Application")
|
||||||
|
!MESSAGE "auidemo - Win32 Universal Debug" (based on "Win32 (x86) Application")
|
||||||
|
!MESSAGE "auidemo - Win32 Unicode Release" (based on "Win32 (x86) Application")
|
||||||
|
!MESSAGE "auidemo - Win32 Unicode Debug" (based on "Win32 (x86) Application")
|
||||||
|
!MESSAGE "auidemo - Win32 Release" (based on "Win32 (x86) Application")
|
||||||
|
!MESSAGE "auidemo - Win32 Debug" (based on "Win32 (x86) Application")
|
||||||
|
!MESSAGE
|
||||||
|
|
||||||
|
# Begin Project
|
||||||
|
# PROP AllowPerConfigDependencies 0
|
||||||
|
# PROP Scc_ProjName ""
|
||||||
|
# PROP Scc_LocalPath ""
|
||||||
|
CPP=cl.exe
|
||||||
|
MTL=midl.exe
|
||||||
|
RSC=rc.exe
|
||||||
|
|
||||||
|
!IF "$(CFG)" == "auidemo - Win32 DLL Universal Unicode Release"
|
||||||
|
|
||||||
|
# PROP BASE Use_MFC 0
|
||||||
|
# PROP BASE Use_Debug_Libraries 0
|
||||||
|
# PROP BASE Output_Dir "vc_mswunivudll"
|
||||||
|
# PROP BASE Intermediate_Dir "vc_mswunivudll\auidemo"
|
||||||
|
# PROP BASE Target_Dir ""
|
||||||
|
# PROP Use_MFC 0
|
||||||
|
# PROP Use_Debug_Libraries 0
|
||||||
|
# PROP Output_Dir "vc_mswunivudll"
|
||||||
|
# PROP Intermediate_Dir "vc_mswunivudll\auidemo"
|
||||||
|
# PROP Target_Dir ""
|
||||||
|
# ADD BASE CPP /nologo /FD /MD /Fdvc_mswunivudll\auidemo.pdb /O2 /GR /EHsc /I ".\..\..\lib\vc_dll\mswunivu" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "_UNICODE" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD CPP /nologo /FD /MD /Fdvc_mswunivudll\auidemo.pdb /O2 /GR /EHsc /I ".\..\..\lib\vc_dll\mswunivu" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "_UNICODE" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD BASE MTL /nologo /D "WIN32" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "_UNICODE" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD MTL /nologo /D "WIN32" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "_UNICODE" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD BASE RSC /l 0x409 /d "__WXMSW__" /d "__WXUNIVERSAL__" /d "_UNICODE" /i ".\..\..\lib\vc_dll\mswunivu" /i ".\..\..\include" /i "." /d "WXUSINGDLL" /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
# ADD RSC /l 0x409 /d "__WXMSW__" /d "__WXUNIVERSAL__" /d "_UNICODE" /i ".\..\..\lib\vc_dll\mswunivu" /i ".\..\..\include" /i "." /d "WXUSINGDLL" /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
BSC32=bscmake.exe
|
||||||
|
# ADD BASE BSC32 /nologo
|
||||||
|
# ADD BSC32 /nologo
|
||||||
|
LINK32=link.exe
|
||||||
|
# ADD BASE LINK32 wxmswuniv28u_aui.lib wxmswuniv28u_html.lib wxmswuniv28u_adv.lib wxmswuniv28u_core.lib wxbase28u_xml.lib wxbase28u.lib wxtiff.lib wxjpeg.lib wxpng.lib wxzlib.lib wxregexu.lib wxexpat.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib /nologo /machine:i386 /out:"vc_mswunivudll\auidemo.exe" /libpath:".\..\..\lib\vc_dll" /subsystem:windows
|
||||||
|
# ADD LINK32 wxmswuniv28u_aui.lib wxmswuniv28u_html.lib wxmswuniv28u_adv.lib wxmswuniv28u_core.lib wxbase28u_xml.lib wxbase28u.lib wxtiff.lib wxjpeg.lib wxpng.lib wxzlib.lib wxregexu.lib wxexpat.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib /nologo /machine:i386 /out:"vc_mswunivudll\auidemo.exe" /libpath:".\..\..\lib\vc_dll" /subsystem:windows
|
||||||
|
|
||||||
|
!ELSEIF "$(CFG)" == "auidemo - Win32 DLL Universal Unicode Debug"
|
||||||
|
|
||||||
|
# PROP BASE Use_MFC 0
|
||||||
|
# PROP BASE Use_Debug_Libraries 1
|
||||||
|
# PROP BASE Output_Dir "vc_mswunivuddll"
|
||||||
|
# PROP BASE Intermediate_Dir "vc_mswunivuddll\auidemo"
|
||||||
|
# PROP BASE Target_Dir ""
|
||||||
|
# PROP Use_MFC 0
|
||||||
|
# PROP Use_Debug_Libraries 1
|
||||||
|
# PROP Output_Dir "vc_mswunivuddll"
|
||||||
|
# PROP Intermediate_Dir "vc_mswunivuddll\auidemo"
|
||||||
|
# PROP Target_Dir ""
|
||||||
|
# ADD BASE CPP /nologo /FD /MDd /Zi /Gm /GZ /Fdvc_mswunivuddll\auidemo.pdb /Od /GR /EHsc /I ".\..\..\lib\vc_dll\mswunivud" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "__WXDEBUG__" /D "_UNICODE" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD CPP /nologo /FD /MDd /Zi /Gm /GZ /Fdvc_mswunivuddll\auidemo.pdb /Od /GR /EHsc /I ".\..\..\lib\vc_dll\mswunivud" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "__WXDEBUG__" /D "_UNICODE" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD BASE MTL /nologo /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "__WXDEBUG__" /D "_UNICODE" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD MTL /nologo /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "__WXDEBUG__" /D "_UNICODE" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD BASE RSC /l 0x409 /d "_DEBUG" /d "__WXMSW__" /d "__WXUNIVERSAL__" /d "__WXDEBUG__" /d "_UNICODE" /i ".\..\..\lib\vc_dll\mswunivud" /i ".\..\..\include" /i "." /d "WXUSINGDLL" /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
# ADD RSC /l 0x409 /d "_DEBUG" /d "__WXMSW__" /d "__WXUNIVERSAL__" /d "__WXDEBUG__" /d "_UNICODE" /i ".\..\..\lib\vc_dll\mswunivud" /i ".\..\..\include" /i "." /d "WXUSINGDLL" /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
BSC32=bscmake.exe
|
||||||
|
# ADD BASE BSC32 /nologo
|
||||||
|
# ADD BSC32 /nologo
|
||||||
|
LINK32=link.exe
|
||||||
|
# ADD BASE LINK32 wxmswuniv28ud_aui.lib wxmswuniv28ud_html.lib wxmswuniv28ud_adv.lib wxmswuniv28ud_core.lib wxbase28ud_xml.lib wxbase28ud.lib wxtiffd.lib wxjpegd.lib wxpngd.lib wxzlibd.lib wxregexud.lib wxexpatd.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib /nologo /machine:i386 /out:"vc_mswunivuddll\auidemo.exe" /debug /libpath:".\..\..\lib\vc_dll" /subsystem:windows
|
||||||
|
# ADD LINK32 wxmswuniv28ud_aui.lib wxmswuniv28ud_html.lib wxmswuniv28ud_adv.lib wxmswuniv28ud_core.lib wxbase28ud_xml.lib wxbase28ud.lib wxtiffd.lib wxjpegd.lib wxpngd.lib wxzlibd.lib wxregexud.lib wxexpatd.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib /nologo /machine:i386 /out:"vc_mswunivuddll\auidemo.exe" /debug /libpath:".\..\..\lib\vc_dll" /subsystem:windows
|
||||||
|
|
||||||
|
!ELSEIF "$(CFG)" == "auidemo - Win32 DLL Universal Release"
|
||||||
|
|
||||||
|
# PROP BASE Use_MFC 0
|
||||||
|
# PROP BASE Use_Debug_Libraries 0
|
||||||
|
# PROP BASE Output_Dir "vc_mswunivdll"
|
||||||
|
# PROP BASE Intermediate_Dir "vc_mswunivdll\auidemo"
|
||||||
|
# PROP BASE Target_Dir ""
|
||||||
|
# PROP Use_MFC 0
|
||||||
|
# PROP Use_Debug_Libraries 0
|
||||||
|
# PROP Output_Dir "vc_mswunivdll"
|
||||||
|
# PROP Intermediate_Dir "vc_mswunivdll\auidemo"
|
||||||
|
# PROP Target_Dir ""
|
||||||
|
# ADD BASE CPP /nologo /FD /MD /Fdvc_mswunivdll\auidemo.pdb /O2 /GR /EHsc /I ".\..\..\lib\vc_dll\mswuniv" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD CPP /nologo /FD /MD /Fdvc_mswunivdll\auidemo.pdb /O2 /GR /EHsc /I ".\..\..\lib\vc_dll\mswuniv" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD BASE MTL /nologo /D "WIN32" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD MTL /nologo /D "WIN32" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD BASE RSC /l 0x409 /d "__WXMSW__" /d "__WXUNIVERSAL__" /i ".\..\..\lib\vc_dll\mswuniv" /i ".\..\..\include" /i "." /d "WXUSINGDLL" /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
# ADD RSC /l 0x409 /d "__WXMSW__" /d "__WXUNIVERSAL__" /i ".\..\..\lib\vc_dll\mswuniv" /i ".\..\..\include" /i "." /d "WXUSINGDLL" /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
BSC32=bscmake.exe
|
||||||
|
# ADD BASE BSC32 /nologo
|
||||||
|
# ADD BSC32 /nologo
|
||||||
|
LINK32=link.exe
|
||||||
|
# ADD BASE LINK32 wxmswuniv28_aui.lib wxmswuniv28_html.lib wxmswuniv28_adv.lib wxmswuniv28_core.lib wxbase28_xml.lib wxbase28.lib wxtiff.lib wxjpeg.lib wxpng.lib wxzlib.lib wxregex.lib wxexpat.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib /nologo /machine:i386 /out:"vc_mswunivdll\auidemo.exe" /libpath:".\..\..\lib\vc_dll" /subsystem:windows
|
||||||
|
# ADD LINK32 wxmswuniv28_aui.lib wxmswuniv28_html.lib wxmswuniv28_adv.lib wxmswuniv28_core.lib wxbase28_xml.lib wxbase28.lib wxtiff.lib wxjpeg.lib wxpng.lib wxzlib.lib wxregex.lib wxexpat.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib /nologo /machine:i386 /out:"vc_mswunivdll\auidemo.exe" /libpath:".\..\..\lib\vc_dll" /subsystem:windows
|
||||||
|
|
||||||
|
!ELSEIF "$(CFG)" == "auidemo - Win32 DLL Universal Debug"
|
||||||
|
|
||||||
|
# PROP BASE Use_MFC 0
|
||||||
|
# PROP BASE Use_Debug_Libraries 1
|
||||||
|
# PROP BASE Output_Dir "vc_mswunivddll"
|
||||||
|
# PROP BASE Intermediate_Dir "vc_mswunivddll\auidemo"
|
||||||
|
# PROP BASE Target_Dir ""
|
||||||
|
# PROP Use_MFC 0
|
||||||
|
# PROP Use_Debug_Libraries 1
|
||||||
|
# PROP Output_Dir "vc_mswunivddll"
|
||||||
|
# PROP Intermediate_Dir "vc_mswunivddll\auidemo"
|
||||||
|
# PROP Target_Dir ""
|
||||||
|
# ADD BASE CPP /nologo /FD /MDd /Zi /Gm /GZ /Fdvc_mswunivddll\auidemo.pdb /Od /GR /EHsc /I ".\..\..\lib\vc_dll\mswunivd" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "__WXDEBUG__" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD CPP /nologo /FD /MDd /Zi /Gm /GZ /Fdvc_mswunivddll\auidemo.pdb /Od /GR /EHsc /I ".\..\..\lib\vc_dll\mswunivd" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "__WXDEBUG__" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD BASE MTL /nologo /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "__WXDEBUG__" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD MTL /nologo /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "__WXDEBUG__" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD BASE RSC /l 0x409 /d "_DEBUG" /d "__WXMSW__" /d "__WXUNIVERSAL__" /d "__WXDEBUG__" /i ".\..\..\lib\vc_dll\mswunivd" /i ".\..\..\include" /i "." /d "WXUSINGDLL" /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
# ADD RSC /l 0x409 /d "_DEBUG" /d "__WXMSW__" /d "__WXUNIVERSAL__" /d "__WXDEBUG__" /i ".\..\..\lib\vc_dll\mswunivd" /i ".\..\..\include" /i "." /d "WXUSINGDLL" /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
BSC32=bscmake.exe
|
||||||
|
# ADD BASE BSC32 /nologo
|
||||||
|
# ADD BSC32 /nologo
|
||||||
|
LINK32=link.exe
|
||||||
|
# ADD BASE LINK32 wxmswuniv28d_aui.lib wxmswuniv28d_html.lib wxmswuniv28d_adv.lib wxmswuniv28d_core.lib wxbase28d_xml.lib wxbase28d.lib wxtiffd.lib wxjpegd.lib wxpngd.lib wxzlibd.lib wxregexd.lib wxexpatd.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib /nologo /machine:i386 /out:"vc_mswunivddll\auidemo.exe" /debug /libpath:".\..\..\lib\vc_dll" /subsystem:windows
|
||||||
|
# ADD LINK32 wxmswuniv28d_aui.lib wxmswuniv28d_html.lib wxmswuniv28d_adv.lib wxmswuniv28d_core.lib wxbase28d_xml.lib wxbase28d.lib wxtiffd.lib wxjpegd.lib wxpngd.lib wxzlibd.lib wxregexd.lib wxexpatd.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib /nologo /machine:i386 /out:"vc_mswunivddll\auidemo.exe" /debug /libpath:".\..\..\lib\vc_dll" /subsystem:windows
|
||||||
|
|
||||||
|
!ELSEIF "$(CFG)" == "auidemo - Win32 DLL Unicode Release"
|
||||||
|
|
||||||
|
# PROP BASE Use_MFC 0
|
||||||
|
# PROP BASE Use_Debug_Libraries 0
|
||||||
|
# PROP BASE Output_Dir "vc_mswudll"
|
||||||
|
# PROP BASE Intermediate_Dir "vc_mswudll\auidemo"
|
||||||
|
# PROP BASE Target_Dir ""
|
||||||
|
# PROP Use_MFC 0
|
||||||
|
# PROP Use_Debug_Libraries 0
|
||||||
|
# PROP Output_Dir "vc_mswudll"
|
||||||
|
# PROP Intermediate_Dir "vc_mswudll\auidemo"
|
||||||
|
# PROP Target_Dir ""
|
||||||
|
# ADD BASE CPP /nologo /FD /MD /Fdvc_mswudll\auidemo.pdb /O2 /GR /EHsc /I ".\..\..\lib\vc_dll\mswu" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "__WXMSW__" /D "_UNICODE" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD CPP /nologo /FD /MD /Fdvc_mswudll\auidemo.pdb /O2 /GR /EHsc /I ".\..\..\lib\vc_dll\mswu" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "__WXMSW__" /D "_UNICODE" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD BASE MTL /nologo /D "WIN32" /D "__WXMSW__" /D "_UNICODE" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD MTL /nologo /D "WIN32" /D "__WXMSW__" /D "_UNICODE" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD BASE RSC /l 0x409 /d "__WXMSW__" /d "_UNICODE" /i ".\..\..\lib\vc_dll\mswu" /i ".\..\..\include" /i "." /d "WXUSINGDLL" /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
# ADD RSC /l 0x409 /d "__WXMSW__" /d "_UNICODE" /i ".\..\..\lib\vc_dll\mswu" /i ".\..\..\include" /i "." /d "WXUSINGDLL" /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
BSC32=bscmake.exe
|
||||||
|
# ADD BASE BSC32 /nologo
|
||||||
|
# ADD BSC32 /nologo
|
||||||
|
LINK32=link.exe
|
||||||
|
# ADD BASE LINK32 wxmsw28u_aui.lib wxmsw28u_html.lib wxmsw28u_adv.lib wxmsw28u_core.lib wxbase28u_xml.lib wxbase28u.lib wxtiff.lib wxjpeg.lib wxpng.lib wxzlib.lib wxregexu.lib wxexpat.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib /nologo /machine:i386 /out:"vc_mswudll\auidemo.exe" /libpath:".\..\..\lib\vc_dll" /subsystem:windows
|
||||||
|
# ADD LINK32 wxmsw28u_aui.lib wxmsw28u_html.lib wxmsw28u_adv.lib wxmsw28u_core.lib wxbase28u_xml.lib wxbase28u.lib wxtiff.lib wxjpeg.lib wxpng.lib wxzlib.lib wxregexu.lib wxexpat.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib /nologo /machine:i386 /out:"vc_mswudll\auidemo.exe" /libpath:".\..\..\lib\vc_dll" /subsystem:windows
|
||||||
|
|
||||||
|
!ELSEIF "$(CFG)" == "auidemo - Win32 DLL Unicode Debug"
|
||||||
|
|
||||||
|
# PROP BASE Use_MFC 0
|
||||||
|
# PROP BASE Use_Debug_Libraries 1
|
||||||
|
# PROP BASE Output_Dir "vc_mswuddll"
|
||||||
|
# PROP BASE Intermediate_Dir "vc_mswuddll\auidemo"
|
||||||
|
# PROP BASE Target_Dir ""
|
||||||
|
# PROP Use_MFC 0
|
||||||
|
# PROP Use_Debug_Libraries 1
|
||||||
|
# PROP Output_Dir "vc_mswuddll"
|
||||||
|
# PROP Intermediate_Dir "vc_mswuddll\auidemo"
|
||||||
|
# PROP Target_Dir ""
|
||||||
|
# ADD BASE CPP /nologo /FD /MDd /Zi /Gm /GZ /Fdvc_mswuddll\auidemo.pdb /Od /GR /EHsc /I ".\..\..\lib\vc_dll\mswud" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXDEBUG__" /D "_UNICODE" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD CPP /nologo /FD /MDd /Zi /Gm /GZ /Fdvc_mswuddll\auidemo.pdb /Od /GR /EHsc /I ".\..\..\lib\vc_dll\mswud" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXDEBUG__" /D "_UNICODE" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD BASE MTL /nologo /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXDEBUG__" /D "_UNICODE" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD MTL /nologo /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXDEBUG__" /D "_UNICODE" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD BASE RSC /l 0x409 /d "_DEBUG" /d "__WXMSW__" /d "__WXDEBUG__" /d "_UNICODE" /i ".\..\..\lib\vc_dll\mswud" /i ".\..\..\include" /i "." /d "WXUSINGDLL" /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
# ADD RSC /l 0x409 /d "_DEBUG" /d "__WXMSW__" /d "__WXDEBUG__" /d "_UNICODE" /i ".\..\..\lib\vc_dll\mswud" /i ".\..\..\include" /i "." /d "WXUSINGDLL" /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
BSC32=bscmake.exe
|
||||||
|
# ADD BASE BSC32 /nologo
|
||||||
|
# ADD BSC32 /nologo
|
||||||
|
LINK32=link.exe
|
||||||
|
# ADD BASE LINK32 wxmsw28ud_aui.lib wxmsw28ud_html.lib wxmsw28ud_adv.lib wxmsw28ud_core.lib wxbase28ud_xml.lib wxbase28ud.lib wxtiffd.lib wxjpegd.lib wxpngd.lib wxzlibd.lib wxregexud.lib wxexpatd.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib /nologo /machine:i386 /out:"vc_mswuddll\auidemo.exe" /debug /libpath:".\..\..\lib\vc_dll" /subsystem:windows
|
||||||
|
# ADD LINK32 wxmsw28ud_aui.lib wxmsw28ud_html.lib wxmsw28ud_adv.lib wxmsw28ud_core.lib wxbase28ud_xml.lib wxbase28ud.lib wxtiffd.lib wxjpegd.lib wxpngd.lib wxzlibd.lib wxregexud.lib wxexpatd.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib /nologo /machine:i386 /out:"vc_mswuddll\auidemo.exe" /debug /libpath:".\..\..\lib\vc_dll" /subsystem:windows
|
||||||
|
|
||||||
|
!ELSEIF "$(CFG)" == "auidemo - Win32 DLL Release"
|
||||||
|
|
||||||
|
# PROP BASE Use_MFC 0
|
||||||
|
# PROP BASE Use_Debug_Libraries 0
|
||||||
|
# PROP BASE Output_Dir "vc_mswdll"
|
||||||
|
# PROP BASE Intermediate_Dir "vc_mswdll\auidemo"
|
||||||
|
# PROP BASE Target_Dir ""
|
||||||
|
# PROP Use_MFC 0
|
||||||
|
# PROP Use_Debug_Libraries 0
|
||||||
|
# PROP Output_Dir "vc_mswdll"
|
||||||
|
# PROP Intermediate_Dir "vc_mswdll\auidemo"
|
||||||
|
# PROP Target_Dir ""
|
||||||
|
# ADD BASE CPP /nologo /FD /MD /Fdvc_mswdll\auidemo.pdb /O2 /GR /EHsc /I ".\..\..\lib\vc_dll\msw" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "__WXMSW__" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD CPP /nologo /FD /MD /Fdvc_mswdll\auidemo.pdb /O2 /GR /EHsc /I ".\..\..\lib\vc_dll\msw" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "__WXMSW__" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD BASE MTL /nologo /D "WIN32" /D "__WXMSW__" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD MTL /nologo /D "WIN32" /D "__WXMSW__" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD BASE RSC /l 0x409 /d "__WXMSW__" /i ".\..\..\lib\vc_dll\msw" /i ".\..\..\include" /i "." /d "WXUSINGDLL" /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
# ADD RSC /l 0x409 /d "__WXMSW__" /i ".\..\..\lib\vc_dll\msw" /i ".\..\..\include" /i "." /d "WXUSINGDLL" /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
BSC32=bscmake.exe
|
||||||
|
# ADD BASE BSC32 /nologo
|
||||||
|
# ADD BSC32 /nologo
|
||||||
|
LINK32=link.exe
|
||||||
|
# ADD BASE LINK32 wxmsw28_aui.lib wxmsw28_html.lib wxmsw28_adv.lib wxmsw28_core.lib wxbase28_xml.lib wxbase28.lib wxtiff.lib wxjpeg.lib wxpng.lib wxzlib.lib wxregex.lib wxexpat.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib /nologo /machine:i386 /out:"vc_mswdll\auidemo.exe" /libpath:".\..\..\lib\vc_dll" /subsystem:windows
|
||||||
|
# ADD LINK32 wxmsw28_aui.lib wxmsw28_html.lib wxmsw28_adv.lib wxmsw28_core.lib wxbase28_xml.lib wxbase28.lib wxtiff.lib wxjpeg.lib wxpng.lib wxzlib.lib wxregex.lib wxexpat.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib /nologo /machine:i386 /out:"vc_mswdll\auidemo.exe" /libpath:".\..\..\lib\vc_dll" /subsystem:windows
|
||||||
|
|
||||||
|
!ELSEIF "$(CFG)" == "auidemo - Win32 DLL Debug"
|
||||||
|
|
||||||
|
# PROP BASE Use_MFC 0
|
||||||
|
# PROP BASE Use_Debug_Libraries 1
|
||||||
|
# PROP BASE Output_Dir "vc_mswddll"
|
||||||
|
# PROP BASE Intermediate_Dir "vc_mswddll\auidemo"
|
||||||
|
# PROP BASE Target_Dir ""
|
||||||
|
# PROP Use_MFC 0
|
||||||
|
# PROP Use_Debug_Libraries 1
|
||||||
|
# PROP Output_Dir "vc_mswddll"
|
||||||
|
# PROP Intermediate_Dir "vc_mswddll\auidemo"
|
||||||
|
# PROP Target_Dir ""
|
||||||
|
# ADD BASE CPP /nologo /FD /MDd /Zi /Gm /GZ /Fdvc_mswddll\auidemo.pdb /Od /GR /EHsc /I ".\..\..\lib\vc_dll\mswd" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXDEBUG__" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD CPP /nologo /FD /MDd /Zi /Gm /GZ /Fdvc_mswddll\auidemo.pdb /Od /GR /EHsc /I ".\..\..\lib\vc_dll\mswd" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXDEBUG__" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD BASE MTL /nologo /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXDEBUG__" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD MTL /nologo /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXDEBUG__" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD BASE RSC /l 0x409 /d "_DEBUG" /d "__WXMSW__" /d "__WXDEBUG__" /i ".\..\..\lib\vc_dll\mswd" /i ".\..\..\include" /i "." /d "WXUSINGDLL" /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
# ADD RSC /l 0x409 /d "_DEBUG" /d "__WXMSW__" /d "__WXDEBUG__" /i ".\..\..\lib\vc_dll\mswd" /i ".\..\..\include" /i "." /d "WXUSINGDLL" /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
BSC32=bscmake.exe
|
||||||
|
# ADD BASE BSC32 /nologo
|
||||||
|
# ADD BSC32 /nologo
|
||||||
|
LINK32=link.exe
|
||||||
|
# ADD BASE LINK32 wxmsw28d_aui.lib wxmsw28d_html.lib wxmsw28d_adv.lib wxmsw28d_core.lib wxbase28d_xml.lib wxbase28d.lib wxtiffd.lib wxjpegd.lib wxpngd.lib wxzlibd.lib wxregexd.lib wxexpatd.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib /nologo /machine:i386 /out:"vc_mswddll\auidemo.exe" /debug /libpath:".\..\..\lib\vc_dll" /subsystem:windows
|
||||||
|
# ADD LINK32 wxmsw28d_aui.lib wxmsw28d_html.lib wxmsw28d_adv.lib wxmsw28d_core.lib wxbase28d_xml.lib wxbase28d.lib wxtiffd.lib wxjpegd.lib wxpngd.lib wxzlibd.lib wxregexd.lib wxexpatd.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib /nologo /machine:i386 /out:"vc_mswddll\auidemo.exe" /debug /libpath:".\..\..\lib\vc_dll" /subsystem:windows
|
||||||
|
|
||||||
|
!ELSEIF "$(CFG)" == "auidemo - Win32 Universal Unicode Release"
|
||||||
|
|
||||||
|
# PROP BASE Use_MFC 0
|
||||||
|
# PROP BASE Use_Debug_Libraries 0
|
||||||
|
# PROP BASE Output_Dir "vc_mswunivu"
|
||||||
|
# PROP BASE Intermediate_Dir "vc_mswunivu\auidemo"
|
||||||
|
# PROP BASE Target_Dir ""
|
||||||
|
# PROP Use_MFC 0
|
||||||
|
# PROP Use_Debug_Libraries 0
|
||||||
|
# PROP Output_Dir "vc_mswunivu"
|
||||||
|
# PROP Intermediate_Dir "vc_mswunivu\auidemo"
|
||||||
|
# PROP Target_Dir ""
|
||||||
|
# ADD BASE CPP /nologo /FD /MD /Fdvc_mswunivu\auidemo.pdb /O2 /GR /EHsc /I ".\..\..\lib\vc_lib\mswunivu" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "_UNICODE" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD CPP /nologo /FD /MD /Fdvc_mswunivu\auidemo.pdb /O2 /GR /EHsc /I ".\..\..\lib\vc_lib\mswunivu" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "_UNICODE" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD BASE MTL /nologo /D "WIN32" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "_UNICODE" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD MTL /nologo /D "WIN32" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "_UNICODE" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD BASE RSC /l 0x409 /d "__WXMSW__" /d "__WXUNIVERSAL__" /d "_UNICODE" /i ".\..\..\lib\vc_lib\mswunivu" /i ".\..\..\include" /i "." /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
# ADD RSC /l 0x409 /d "__WXMSW__" /d "__WXUNIVERSAL__" /d "_UNICODE" /i ".\..\..\lib\vc_lib\mswunivu" /i ".\..\..\include" /i "." /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
BSC32=bscmake.exe
|
||||||
|
# ADD BASE BSC32 /nologo
|
||||||
|
# ADD BSC32 /nologo
|
||||||
|
LINK32=link.exe
|
||||||
|
# ADD BASE LINK32 wxmswuniv28u_aui.lib wxmswuniv28u_html.lib wxmswuniv28u_adv.lib wxmswuniv28u_core.lib wxbase28u_xml.lib wxbase28u.lib wxtiff.lib wxjpeg.lib wxpng.lib wxzlib.lib wxregexu.lib wxexpat.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib /nologo /machine:i386 /out:"vc_mswunivu\auidemo.exe" /libpath:".\..\..\lib\vc_lib" /subsystem:windows
|
||||||
|
# ADD LINK32 wxmswuniv28u_aui.lib wxmswuniv28u_html.lib wxmswuniv28u_adv.lib wxmswuniv28u_core.lib wxbase28u_xml.lib wxbase28u.lib wxtiff.lib wxjpeg.lib wxpng.lib wxzlib.lib wxregexu.lib wxexpat.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib /nologo /machine:i386 /out:"vc_mswunivu\auidemo.exe" /libpath:".\..\..\lib\vc_lib" /subsystem:windows
|
||||||
|
|
||||||
|
!ELSEIF "$(CFG)" == "auidemo - Win32 Universal Unicode Debug"
|
||||||
|
|
||||||
|
# PROP BASE Use_MFC 0
|
||||||
|
# PROP BASE Use_Debug_Libraries 1
|
||||||
|
# PROP BASE Output_Dir "vc_mswunivud"
|
||||||
|
# PROP BASE Intermediate_Dir "vc_mswunivud\auidemo"
|
||||||
|
# PROP BASE Target_Dir ""
|
||||||
|
# PROP Use_MFC 0
|
||||||
|
# PROP Use_Debug_Libraries 1
|
||||||
|
# PROP Output_Dir "vc_mswunivud"
|
||||||
|
# PROP Intermediate_Dir "vc_mswunivud\auidemo"
|
||||||
|
# PROP Target_Dir ""
|
||||||
|
# ADD BASE CPP /nologo /FD /MDd /Zi /Gm /GZ /Fdvc_mswunivud\auidemo.pdb /Od /GR /EHsc /I ".\..\..\lib\vc_lib\mswunivud" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "__WXDEBUG__" /D "_UNICODE" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD CPP /nologo /FD /MDd /Zi /Gm /GZ /Fdvc_mswunivud\auidemo.pdb /Od /GR /EHsc /I ".\..\..\lib\vc_lib\mswunivud" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "__WXDEBUG__" /D "_UNICODE" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD BASE MTL /nologo /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "__WXDEBUG__" /D "_UNICODE" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD MTL /nologo /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "__WXDEBUG__" /D "_UNICODE" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD BASE RSC /l 0x409 /d "_DEBUG" /d "__WXMSW__" /d "__WXUNIVERSAL__" /d "__WXDEBUG__" /d "_UNICODE" /i ".\..\..\lib\vc_lib\mswunivud" /i ".\..\..\include" /i "." /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
# ADD RSC /l 0x409 /d "_DEBUG" /d "__WXMSW__" /d "__WXUNIVERSAL__" /d "__WXDEBUG__" /d "_UNICODE" /i ".\..\..\lib\vc_lib\mswunivud" /i ".\..\..\include" /i "." /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
BSC32=bscmake.exe
|
||||||
|
# ADD BASE BSC32 /nologo
|
||||||
|
# ADD BSC32 /nologo
|
||||||
|
LINK32=link.exe
|
||||||
|
# ADD BASE LINK32 wxmswuniv28ud_aui.lib wxmswuniv28ud_html.lib wxmswuniv28ud_adv.lib wxmswuniv28ud_core.lib wxbase28ud_xml.lib wxbase28ud.lib wxtiffd.lib wxjpegd.lib wxpngd.lib wxzlibd.lib wxregexud.lib wxexpatd.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib /nologo /machine:i386 /out:"vc_mswunivud\auidemo.exe" /debug /libpath:".\..\..\lib\vc_lib" /subsystem:windows
|
||||||
|
# ADD LINK32 wxmswuniv28ud_aui.lib wxmswuniv28ud_html.lib wxmswuniv28ud_adv.lib wxmswuniv28ud_core.lib wxbase28ud_xml.lib wxbase28ud.lib wxtiffd.lib wxjpegd.lib wxpngd.lib wxzlibd.lib wxregexud.lib wxexpatd.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib /nologo /machine:i386 /out:"vc_mswunivud\auidemo.exe" /debug /libpath:".\..\..\lib\vc_lib" /subsystem:windows
|
||||||
|
|
||||||
|
!ELSEIF "$(CFG)" == "auidemo - Win32 Universal Release"
|
||||||
|
|
||||||
|
# PROP BASE Use_MFC 0
|
||||||
|
# PROP BASE Use_Debug_Libraries 0
|
||||||
|
# PROP BASE Output_Dir "vc_mswuniv"
|
||||||
|
# PROP BASE Intermediate_Dir "vc_mswuniv\auidemo"
|
||||||
|
# PROP BASE Target_Dir ""
|
||||||
|
# PROP Use_MFC 0
|
||||||
|
# PROP Use_Debug_Libraries 0
|
||||||
|
# PROP Output_Dir "vc_mswuniv"
|
||||||
|
# PROP Intermediate_Dir "vc_mswuniv\auidemo"
|
||||||
|
# PROP Target_Dir ""
|
||||||
|
# ADD BASE CPP /nologo /FD /MD /Fdvc_mswuniv\auidemo.pdb /O2 /GR /EHsc /I ".\..\..\lib\vc_lib\mswuniv" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD CPP /nologo /FD /MD /Fdvc_mswuniv\auidemo.pdb /O2 /GR /EHsc /I ".\..\..\lib\vc_lib\mswuniv" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD BASE MTL /nologo /D "WIN32" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD MTL /nologo /D "WIN32" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD BASE RSC /l 0x409 /d "__WXMSW__" /d "__WXUNIVERSAL__" /i ".\..\..\lib\vc_lib\mswuniv" /i ".\..\..\include" /i "." /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
# ADD RSC /l 0x409 /d "__WXMSW__" /d "__WXUNIVERSAL__" /i ".\..\..\lib\vc_lib\mswuniv" /i ".\..\..\include" /i "." /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
BSC32=bscmake.exe
|
||||||
|
# ADD BASE BSC32 /nologo
|
||||||
|
# ADD BSC32 /nologo
|
||||||
|
LINK32=link.exe
|
||||||
|
# ADD BASE LINK32 wxmswuniv28_aui.lib wxmswuniv28_html.lib wxmswuniv28_adv.lib wxmswuniv28_core.lib wxbase28_xml.lib wxbase28.lib wxtiff.lib wxjpeg.lib wxpng.lib wxzlib.lib wxregex.lib wxexpat.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib /nologo /machine:i386 /out:"vc_mswuniv\auidemo.exe" /libpath:".\..\..\lib\vc_lib" /subsystem:windows
|
||||||
|
# ADD LINK32 wxmswuniv28_aui.lib wxmswuniv28_html.lib wxmswuniv28_adv.lib wxmswuniv28_core.lib wxbase28_xml.lib wxbase28.lib wxtiff.lib wxjpeg.lib wxpng.lib wxzlib.lib wxregex.lib wxexpat.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib /nologo /machine:i386 /out:"vc_mswuniv\auidemo.exe" /libpath:".\..\..\lib\vc_lib" /subsystem:windows
|
||||||
|
|
||||||
|
!ELSEIF "$(CFG)" == "auidemo - Win32 Universal Debug"
|
||||||
|
|
||||||
|
# PROP BASE Use_MFC 0
|
||||||
|
# PROP BASE Use_Debug_Libraries 1
|
||||||
|
# PROP BASE Output_Dir "vc_mswunivd"
|
||||||
|
# PROP BASE Intermediate_Dir "vc_mswunivd\auidemo"
|
||||||
|
# PROP BASE Target_Dir ""
|
||||||
|
# PROP Use_MFC 0
|
||||||
|
# PROP Use_Debug_Libraries 1
|
||||||
|
# PROP Output_Dir "vc_mswunivd"
|
||||||
|
# PROP Intermediate_Dir "vc_mswunivd\auidemo"
|
||||||
|
# PROP Target_Dir ""
|
||||||
|
# ADD BASE CPP /nologo /FD /MDd /Zi /Gm /GZ /Fdvc_mswunivd\auidemo.pdb /Od /GR /EHsc /I ".\..\..\lib\vc_lib\mswunivd" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "__WXDEBUG__" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD CPP /nologo /FD /MDd /Zi /Gm /GZ /Fdvc_mswunivd\auidemo.pdb /Od /GR /EHsc /I ".\..\..\lib\vc_lib\mswunivd" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "__WXDEBUG__" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD BASE MTL /nologo /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "__WXDEBUG__" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD MTL /nologo /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "__WXDEBUG__" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD BASE RSC /l 0x409 /d "_DEBUG" /d "__WXMSW__" /d "__WXUNIVERSAL__" /d "__WXDEBUG__" /i ".\..\..\lib\vc_lib\mswunivd" /i ".\..\..\include" /i "." /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
# ADD RSC /l 0x409 /d "_DEBUG" /d "__WXMSW__" /d "__WXUNIVERSAL__" /d "__WXDEBUG__" /i ".\..\..\lib\vc_lib\mswunivd" /i ".\..\..\include" /i "." /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
BSC32=bscmake.exe
|
||||||
|
# ADD BASE BSC32 /nologo
|
||||||
|
# ADD BSC32 /nologo
|
||||||
|
LINK32=link.exe
|
||||||
|
# ADD BASE LINK32 wxmswuniv28d_aui.lib wxmswuniv28d_html.lib wxmswuniv28d_adv.lib wxmswuniv28d_core.lib wxbase28d_xml.lib wxbase28d.lib wxtiffd.lib wxjpegd.lib wxpngd.lib wxzlibd.lib wxregexd.lib wxexpatd.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib /nologo /machine:i386 /out:"vc_mswunivd\auidemo.exe" /debug /libpath:".\..\..\lib\vc_lib" /subsystem:windows
|
||||||
|
# ADD LINK32 wxmswuniv28d_aui.lib wxmswuniv28d_html.lib wxmswuniv28d_adv.lib wxmswuniv28d_core.lib wxbase28d_xml.lib wxbase28d.lib wxtiffd.lib wxjpegd.lib wxpngd.lib wxzlibd.lib wxregexd.lib wxexpatd.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib /nologo /machine:i386 /out:"vc_mswunivd\auidemo.exe" /debug /libpath:".\..\..\lib\vc_lib" /subsystem:windows
|
||||||
|
|
||||||
|
!ELSEIF "$(CFG)" == "auidemo - Win32 Unicode Release"
|
||||||
|
|
||||||
|
# PROP BASE Use_MFC 0
|
||||||
|
# PROP BASE Use_Debug_Libraries 0
|
||||||
|
# PROP BASE Output_Dir "vc_mswu"
|
||||||
|
# PROP BASE Intermediate_Dir "vc_mswu\auidemo"
|
||||||
|
# PROP BASE Target_Dir ""
|
||||||
|
# PROP Use_MFC 0
|
||||||
|
# PROP Use_Debug_Libraries 0
|
||||||
|
# PROP Output_Dir "vc_mswu"
|
||||||
|
# PROP Intermediate_Dir "vc_mswu\auidemo"
|
||||||
|
# PROP Target_Dir ""
|
||||||
|
# ADD BASE CPP /nologo /FD /MD /Fdvc_mswu\auidemo.pdb /O2 /GR /EHsc /I ".\..\..\lib\vc_lib\mswu" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "__WXMSW__" /D "_UNICODE" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD CPP /nologo /FD /MD /Fdvc_mswu\auidemo.pdb /O2 /GR /EHsc /I ".\..\..\lib\vc_lib\mswu" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "__WXMSW__" /D "_UNICODE" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD BASE MTL /nologo /D "WIN32" /D "__WXMSW__" /D "_UNICODE" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD MTL /nologo /D "WIN32" /D "__WXMSW__" /D "_UNICODE" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD BASE RSC /l 0x409 /d "__WXMSW__" /d "_UNICODE" /i ".\..\..\lib\vc_lib\mswu" /i ".\..\..\include" /i "." /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
# ADD RSC /l 0x409 /d "__WXMSW__" /d "_UNICODE" /i ".\..\..\lib\vc_lib\mswu" /i ".\..\..\include" /i "." /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
BSC32=bscmake.exe
|
||||||
|
# ADD BASE BSC32 /nologo
|
||||||
|
# ADD BSC32 /nologo
|
||||||
|
LINK32=link.exe
|
||||||
|
# ADD BASE LINK32 wxmsw28u_aui.lib wxmsw28u_html.lib wxmsw28u_adv.lib wxmsw28u_core.lib wxbase28u_xml.lib wxbase28u.lib wxtiff.lib wxjpeg.lib wxpng.lib wxzlib.lib wxregexu.lib wxexpat.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib /nologo /machine:i386 /out:"vc_mswu\auidemo.exe" /libpath:".\..\..\lib\vc_lib" /subsystem:windows
|
||||||
|
# ADD LINK32 wxmsw28u_aui.lib wxmsw28u_html.lib wxmsw28u_adv.lib wxmsw28u_core.lib wxbase28u_xml.lib wxbase28u.lib wxtiff.lib wxjpeg.lib wxpng.lib wxzlib.lib wxregexu.lib wxexpat.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib /nologo /machine:i386 /out:"vc_mswu\auidemo.exe" /libpath:".\..\..\lib\vc_lib" /subsystem:windows
|
||||||
|
|
||||||
|
!ELSEIF "$(CFG)" == "auidemo - Win32 Unicode Debug"
|
||||||
|
|
||||||
|
# PROP BASE Use_MFC 0
|
||||||
|
# PROP BASE Use_Debug_Libraries 1
|
||||||
|
# PROP BASE Output_Dir "vc_mswud"
|
||||||
|
# PROP BASE Intermediate_Dir "vc_mswud\auidemo"
|
||||||
|
# PROP BASE Target_Dir ""
|
||||||
|
# PROP Use_MFC 0
|
||||||
|
# PROP Use_Debug_Libraries 1
|
||||||
|
# PROP Output_Dir "vc_mswud"
|
||||||
|
# PROP Intermediate_Dir "vc_mswud\auidemo"
|
||||||
|
# PROP Target_Dir ""
|
||||||
|
# ADD BASE CPP /nologo /FD /MDd /Zi /Gm /GZ /Fdvc_mswud\auidemo.pdb /Od /GR /EHsc /I ".\..\..\lib\vc_lib\mswud" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXDEBUG__" /D "_UNICODE" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD CPP /nologo /FD /MDd /Zi /Gm /GZ /Fdvc_mswud\auidemo.pdb /Od /GR /EHsc /I ".\..\..\lib\vc_lib\mswud" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXDEBUG__" /D "_UNICODE" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD BASE MTL /nologo /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXDEBUG__" /D "_UNICODE" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD MTL /nologo /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXDEBUG__" /D "_UNICODE" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD BASE RSC /l 0x409 /d "_DEBUG" /d "__WXMSW__" /d "__WXDEBUG__" /d "_UNICODE" /i ".\..\..\lib\vc_lib\mswud" /i ".\..\..\include" /i "." /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
# ADD RSC /l 0x409 /d "_DEBUG" /d "__WXMSW__" /d "__WXDEBUG__" /d "_UNICODE" /i ".\..\..\lib\vc_lib\mswud" /i ".\..\..\include" /i "." /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
BSC32=bscmake.exe
|
||||||
|
# ADD BASE BSC32 /nologo
|
||||||
|
# ADD BSC32 /nologo
|
||||||
|
LINK32=link.exe
|
||||||
|
# ADD BASE LINK32 wxmsw28ud_aui.lib wxmsw28ud_html.lib wxmsw28ud_adv.lib wxmsw28ud_core.lib wxbase28ud_xml.lib wxbase28ud.lib wxtiffd.lib wxjpegd.lib wxpngd.lib wxzlibd.lib wxregexud.lib wxexpatd.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib /nologo /machine:i386 /out:"vc_mswud\auidemo.exe" /debug /libpath:".\..\..\lib\vc_lib" /subsystem:windows
|
||||||
|
# ADD LINK32 wxmsw28ud_aui.lib wxmsw28ud_html.lib wxmsw28ud_adv.lib wxmsw28ud_core.lib wxbase28ud_xml.lib wxbase28ud.lib wxtiffd.lib wxjpegd.lib wxpngd.lib wxzlibd.lib wxregexud.lib wxexpatd.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib /nologo /machine:i386 /out:"vc_mswud\auidemo.exe" /debug /libpath:".\..\..\lib\vc_lib" /subsystem:windows
|
||||||
|
|
||||||
|
!ELSEIF "$(CFG)" == "auidemo - Win32 Release"
|
||||||
|
|
||||||
|
# PROP BASE Use_MFC 0
|
||||||
|
# PROP BASE Use_Debug_Libraries 0
|
||||||
|
# PROP BASE Output_Dir "vc_msw"
|
||||||
|
# PROP BASE Intermediate_Dir "vc_msw\auidemo"
|
||||||
|
# PROP BASE Target_Dir ""
|
||||||
|
# PROP Use_MFC 0
|
||||||
|
# PROP Use_Debug_Libraries 0
|
||||||
|
# PROP Output_Dir "vc_msw"
|
||||||
|
# PROP Intermediate_Dir "vc_msw\auidemo"
|
||||||
|
# PROP Target_Dir ""
|
||||||
|
# ADD BASE CPP /nologo /FD /MD /Fdvc_msw\auidemo.pdb /O2 /GR /EHsc /I ".\..\..\lib\vc_lib\msw" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "__WXMSW__" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD CPP /nologo /FD /MD /Fdvc_msw\auidemo.pdb /O2 /GR /EHsc /I ".\..\..\lib\vc_lib\msw" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "__WXMSW__" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD BASE MTL /nologo /D "WIN32" /D "__WXMSW__" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD MTL /nologo /D "WIN32" /D "__WXMSW__" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD BASE RSC /l 0x409 /d "__WXMSW__" /i ".\..\..\lib\vc_lib\msw" /i ".\..\..\include" /i "." /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
# ADD RSC /l 0x409 /d "__WXMSW__" /i ".\..\..\lib\vc_lib\msw" /i ".\..\..\include" /i "." /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
BSC32=bscmake.exe
|
||||||
|
# ADD BASE BSC32 /nologo
|
||||||
|
# ADD BSC32 /nologo
|
||||||
|
LINK32=link.exe
|
||||||
|
# ADD BASE LINK32 wxmsw28_aui.lib wxmsw28_html.lib wxmsw28_adv.lib wxmsw28_core.lib wxbase28_xml.lib wxbase28.lib wxtiff.lib wxjpeg.lib wxpng.lib wxzlib.lib wxregex.lib wxexpat.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib /nologo /machine:i386 /out:"vc_msw\auidemo.exe" /libpath:".\..\..\lib\vc_lib" /subsystem:windows
|
||||||
|
# ADD LINK32 wxmsw28_aui.lib wxmsw28_html.lib wxmsw28_adv.lib wxmsw28_core.lib wxbase28_xml.lib wxbase28.lib wxtiff.lib wxjpeg.lib wxpng.lib wxzlib.lib wxregex.lib wxexpat.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib /nologo /machine:i386 /out:"vc_msw\auidemo.exe" /libpath:".\..\..\lib\vc_lib" /subsystem:windows
|
||||||
|
|
||||||
|
!ELSEIF "$(CFG)" == "auidemo - Win32 Debug"
|
||||||
|
|
||||||
|
# PROP BASE Use_MFC 0
|
||||||
|
# PROP BASE Use_Debug_Libraries 1
|
||||||
|
# PROP BASE Output_Dir "vc_mswd"
|
||||||
|
# PROP BASE Intermediate_Dir "vc_mswd\auidemo"
|
||||||
|
# PROP BASE Target_Dir ""
|
||||||
|
# PROP Use_MFC 0
|
||||||
|
# PROP Use_Debug_Libraries 1
|
||||||
|
# PROP Output_Dir "vc_mswd"
|
||||||
|
# PROP Intermediate_Dir "vc_mswd\auidemo"
|
||||||
|
# PROP Target_Dir ""
|
||||||
|
# ADD BASE CPP /nologo /FD /MDd /Zi /Gm /GZ /Fdvc_mswd\auidemo.pdb /Od /GR /EHsc /I ".\..\..\lib\vc_lib\mswd" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXDEBUG__" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD CPP /nologo /FD /MDd /Zi /Gm /GZ /Fdvc_mswd\auidemo.pdb /Od /GR /EHsc /I ".\..\..\lib\vc_lib\mswd" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXDEBUG__" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD BASE MTL /nologo /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXDEBUG__" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD MTL /nologo /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXDEBUG__" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD BASE RSC /l 0x409 /d "_DEBUG" /d "__WXMSW__" /d "__WXDEBUG__" /i ".\..\..\lib\vc_lib\mswd" /i ".\..\..\include" /i "." /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
# ADD RSC /l 0x409 /d "_DEBUG" /d "__WXMSW__" /d "__WXDEBUG__" /i ".\..\..\lib\vc_lib\mswd" /i ".\..\..\include" /i "." /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
BSC32=bscmake.exe
|
||||||
|
# ADD BASE BSC32 /nologo
|
||||||
|
# ADD BSC32 /nologo
|
||||||
|
LINK32=link.exe
|
||||||
|
# ADD BASE LINK32 wxmsw28d_aui.lib wxmsw28d_html.lib wxmsw28d_adv.lib wxmsw28d_core.lib wxbase28d_xml.lib wxbase28d.lib wxtiffd.lib wxjpegd.lib wxpngd.lib wxzlibd.lib wxregexd.lib wxexpatd.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib /nologo /machine:i386 /out:"vc_mswd\auidemo.exe" /debug /libpath:".\..\..\lib\vc_lib" /subsystem:windows
|
||||||
|
# ADD LINK32 wxmsw28d_aui.lib wxmsw28d_html.lib wxmsw28d_adv.lib wxmsw28d_core.lib wxbase28d_xml.lib wxbase28d.lib wxtiffd.lib wxjpegd.lib wxpngd.lib wxzlibd.lib wxregexd.lib wxexpatd.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib /nologo /machine:i386 /out:"vc_mswd\auidemo.exe" /debug /libpath:".\..\..\lib\vc_lib" /subsystem:windows
|
||||||
|
|
||||||
|
!ENDIF
|
||||||
|
|
||||||
|
# Begin Target
|
||||||
|
|
||||||
|
# Name "auidemo - Win32 DLL Universal Unicode Release"
|
||||||
|
# Name "auidemo - Win32 DLL Universal Unicode Debug"
|
||||||
|
# Name "auidemo - Win32 DLL Universal Release"
|
||||||
|
# Name "auidemo - Win32 DLL Universal Debug"
|
||||||
|
# Name "auidemo - Win32 DLL Unicode Release"
|
||||||
|
# Name "auidemo - Win32 DLL Unicode Debug"
|
||||||
|
# Name "auidemo - Win32 DLL Release"
|
||||||
|
# Name "auidemo - Win32 DLL Debug"
|
||||||
|
# Name "auidemo - Win32 Universal Unicode Release"
|
||||||
|
# Name "auidemo - Win32 Universal Unicode Debug"
|
||||||
|
# Name "auidemo - Win32 Universal Release"
|
||||||
|
# Name "auidemo - Win32 Universal Debug"
|
||||||
|
# Name "auidemo - Win32 Unicode Release"
|
||||||
|
# Name "auidemo - Win32 Unicode Debug"
|
||||||
|
# Name "auidemo - Win32 Release"
|
||||||
|
# Name "auidemo - Win32 Debug"
|
||||||
|
# Begin Group "Source Files"
|
||||||
|
|
||||||
|
# PROP Default_Filter ""
|
||||||
|
# Begin Source File
|
||||||
|
|
||||||
|
SOURCE=.\auidemo.cpp
|
||||||
|
# End Source File
|
||||||
|
# Begin Source File
|
||||||
|
|
||||||
|
SOURCE=.\..\..\samples\sample.rc
|
||||||
|
# End Source File
|
||||||
|
# End Group
|
||||||
|
# End Target
|
||||||
|
# End Project
|
||||||
|
|
47
samples/aui/descrip.mms
Executable file
47
samples/aui/descrip.mms
Executable file
@@ -0,0 +1,47 @@
|
|||||||
|
#*****************************************************************************
|
||||||
|
# *
|
||||||
|
# Make file for VMS *
|
||||||
|
# Author : J.Jansen (joukj@hrem.nano.tudelft.nl) *
|
||||||
|
# Date : 15 June 2006 *
|
||||||
|
# *
|
||||||
|
#*****************************************************************************
|
||||||
|
.first
|
||||||
|
define wx [--.include.wx]
|
||||||
|
|
||||||
|
.ifdef __WXMOTIF__
|
||||||
|
CXX_DEFINE = /define=(__WXMOTIF__=1)/name=(as_is,short)\
|
||||||
|
/assume=(nostdnew,noglobal_array_new)
|
||||||
|
.else
|
||||||
|
.ifdef __WXGTK__
|
||||||
|
CXX_DEFINE = /define=(__WXGTK__=1)/float=ieee/name=(as_is,short)/ieee=denorm\
|
||||||
|
/assume=(nostdnew,noglobal_array_new)
|
||||||
|
.else
|
||||||
|
CXX_DEFINE =
|
||||||
|
.endif
|
||||||
|
.endif
|
||||||
|
|
||||||
|
.suffixes : .cpp
|
||||||
|
|
||||||
|
.cpp.obj :
|
||||||
|
cxx $(CXXFLAGS)$(CXX_DEFINE) $(MMS$TARGET_NAME).cpp
|
||||||
|
|
||||||
|
all :
|
||||||
|
.ifdef __WXMOTIF__
|
||||||
|
$(MMS)$(MMSQUALIFIERS) auidemo.exe
|
||||||
|
.else
|
||||||
|
.ifdef __WXGTK__
|
||||||
|
$(MMS)$(MMSQUALIFIERS) auidemo_gtk.exe
|
||||||
|
.endif
|
||||||
|
.endif
|
||||||
|
|
||||||
|
.ifdef __WXMOTIF__
|
||||||
|
auidemo.exe : auidemo.obj
|
||||||
|
cxxlink auidemo,[--.lib]vms/opt
|
||||||
|
.else
|
||||||
|
.ifdef __WXGTK__
|
||||||
|
auidemo_gtk.exe : auidemo.obj
|
||||||
|
cxxlink/exec=auidemo_gtk.exe auidemo,[--.lib]vms_gtk/opt
|
||||||
|
.endif
|
||||||
|
.endif
|
||||||
|
|
||||||
|
auidemo.obj : auidemo.cpp
|
250
samples/aui/makefile.bcc
Normal file
250
samples/aui/makefile.bcc
Normal file
@@ -0,0 +1,250 @@
|
|||||||
|
# =========================================================================
|
||||||
|
# This makefile was generated by
|
||||||
|
# Bakefile 0.2.1 (http://bakefile.sourceforge.net)
|
||||||
|
# Do not modify, all changes will be overwritten!
|
||||||
|
# =========================================================================
|
||||||
|
|
||||||
|
.autodepend
|
||||||
|
|
||||||
|
!ifndef BCCDIR
|
||||||
|
!ifndef MAKEDIR
|
||||||
|
!error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4
|
||||||
|
!endif
|
||||||
|
BCCDIR = $(MAKEDIR)\..
|
||||||
|
!endif
|
||||||
|
|
||||||
|
!include ../../build/msw/config.bcc
|
||||||
|
|
||||||
|
# -------------------------------------------------------------------------
|
||||||
|
# Do not modify the rest of this file!
|
||||||
|
# -------------------------------------------------------------------------
|
||||||
|
|
||||||
|
### Variables: ###
|
||||||
|
|
||||||
|
WX_RELEASE_NODOT = 28
|
||||||
|
OBJS = \
|
||||||
|
bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
|
||||||
|
LIBDIRNAME = .\..\..\lib\bcc_$(LIBTYPE_SUFFIX)$(CFG)
|
||||||
|
SETUPHDIR = \
|
||||||
|
$(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
|
||||||
|
AUIDEMO_CXXFLAGS = $(__RUNTIME_LIBS_7) -I$(BCCDIR)\include $(__DEBUGINFO) \
|
||||||
|
$(__OPTIMIZEFLAG_2) $(__THREADSFLAG_6) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
|
||||||
|
$(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
|
||||||
|
$(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
|
||||||
|
$(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include -I. $(__DLLFLAG_p) \
|
||||||
|
-I.\..\..\samples -DNOPCH $(CPPFLAGS) $(CXXFLAGS)
|
||||||
|
AUIDEMO_OBJECTS = \
|
||||||
|
$(OBJS)\auidemo_auidemo.obj
|
||||||
|
|
||||||
|
### Conditionally set variables: ###
|
||||||
|
|
||||||
|
!if "$(USE_GUI)" == "0"
|
||||||
|
PORTNAME = base
|
||||||
|
!endif
|
||||||
|
!if "$(USE_GUI)" == "1"
|
||||||
|
PORTNAME = msw
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
|
||||||
|
WXDEBUGFLAG = d
|
||||||
|
!endif
|
||||||
|
!if "$(DEBUG_FLAG)" == "1"
|
||||||
|
WXDEBUGFLAG = d
|
||||||
|
!endif
|
||||||
|
!if "$(UNICODE)" == "1"
|
||||||
|
WXUNICODEFLAG = u
|
||||||
|
!endif
|
||||||
|
!if "$(WXUNIV)" == "1"
|
||||||
|
WXUNIVNAME = univ
|
||||||
|
!endif
|
||||||
|
!if "$(SHARED)" == "1"
|
||||||
|
WXDLLFLAG = dll
|
||||||
|
!endif
|
||||||
|
!if "$(SHARED)" == "0"
|
||||||
|
LIBTYPE_SUFFIX = lib
|
||||||
|
!endif
|
||||||
|
!if "$(SHARED)" == "1"
|
||||||
|
LIBTYPE_SUFFIX = dll
|
||||||
|
!endif
|
||||||
|
!if "$(MONOLITHIC)" == "0"
|
||||||
|
EXTRALIBS_FOR_BASE =
|
||||||
|
!endif
|
||||||
|
!if "$(MONOLITHIC)" == "1"
|
||||||
|
EXTRALIBS_FOR_BASE =
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "debug"
|
||||||
|
__OPTIMIZEFLAG_2 = -Od
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "release"
|
||||||
|
__OPTIMIZEFLAG_2 = -O2
|
||||||
|
!endif
|
||||||
|
!if "$(USE_THREADS)" == "0"
|
||||||
|
__THREADSFLAG_5 =
|
||||||
|
!endif
|
||||||
|
!if "$(USE_THREADS)" == "1"
|
||||||
|
__THREADSFLAG_5 = mt
|
||||||
|
!endif
|
||||||
|
!if "$(USE_THREADS)" == "0"
|
||||||
|
__THREADSFLAG_6 =
|
||||||
|
!endif
|
||||||
|
!if "$(USE_THREADS)" == "1"
|
||||||
|
__THREADSFLAG_6 = -tWM
|
||||||
|
!endif
|
||||||
|
!if "$(RUNTIME_LIBS)" == "dynamic"
|
||||||
|
__RUNTIME_LIBS_7 = -tWR
|
||||||
|
!endif
|
||||||
|
!if "$(RUNTIME_LIBS)" == "static"
|
||||||
|
__RUNTIME_LIBS_7 =
|
||||||
|
!endif
|
||||||
|
!if "$(RUNTIME_LIBS)" == "dynamic"
|
||||||
|
__RUNTIME_LIBS_8 = i
|
||||||
|
!endif
|
||||||
|
!if "$(RUNTIME_LIBS)" == "static"
|
||||||
|
__RUNTIME_LIBS_8 =
|
||||||
|
!endif
|
||||||
|
!if "$(WXUNIV)" == "1"
|
||||||
|
__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
|
||||||
|
!endif
|
||||||
|
!if "$(WXUNIV)" == "1"
|
||||||
|
__WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
|
||||||
|
__DEBUG_DEFINE_p = -D__WXDEBUG__
|
||||||
|
!endif
|
||||||
|
!if "$(DEBUG_FLAG)" == "1"
|
||||||
|
__DEBUG_DEFINE_p = -D__WXDEBUG__
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
|
||||||
|
__DEBUG_DEFINE_p_1 = -d__WXDEBUG__
|
||||||
|
!endif
|
||||||
|
!if "$(DEBUG_FLAG)" == "1"
|
||||||
|
__DEBUG_DEFINE_p_1 = -d__WXDEBUG__
|
||||||
|
!endif
|
||||||
|
!if "$(USE_EXCEPTIONS)" == "0"
|
||||||
|
__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
|
||||||
|
!endif
|
||||||
|
!if "$(USE_EXCEPTIONS)" == "0"
|
||||||
|
__EXCEPTIONS_DEFINE_p_1 = -dwxNO_EXCEPTIONS
|
||||||
|
!endif
|
||||||
|
!if "$(USE_RTTI)" == "0"
|
||||||
|
__RTTI_DEFINE_p = -DwxNO_RTTI
|
||||||
|
!endif
|
||||||
|
!if "$(USE_RTTI)" == "0"
|
||||||
|
__RTTI_DEFINE_p_1 = -dwxNO_RTTI
|
||||||
|
!endif
|
||||||
|
!if "$(USE_THREADS)" == "0"
|
||||||
|
__THREAD_DEFINE_p = -DwxNO_THREADS
|
||||||
|
!endif
|
||||||
|
!if "$(USE_THREADS)" == "0"
|
||||||
|
__THREAD_DEFINE_p_1 = -dwxNO_THREADS
|
||||||
|
!endif
|
||||||
|
!if "$(UNICODE)" == "1"
|
||||||
|
__UNICODE_DEFINE_p = -D_UNICODE
|
||||||
|
!endif
|
||||||
|
!if "$(UNICODE)" == "1"
|
||||||
|
__UNICODE_DEFINE_p_1 = -d_UNICODE
|
||||||
|
!endif
|
||||||
|
!if "$(MSLU)" == "1"
|
||||||
|
__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
|
||||||
|
!endif
|
||||||
|
!if "$(MSLU)" == "1"
|
||||||
|
__MSLU_DEFINE_p_1 = -dwxUSE_UNICODE_MSLU=1
|
||||||
|
!endif
|
||||||
|
!if "$(USE_GDIPLUS)" == "1"
|
||||||
|
__GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
|
||||||
|
!endif
|
||||||
|
!if "$(USE_GDIPLUS)" == "1"
|
||||||
|
__GFXCTX_DEFINE_p_1 = -dwxUSE_GRAPHICS_CONTEXT=1
|
||||||
|
!endif
|
||||||
|
!if "$(SHARED)" == "1"
|
||||||
|
__DLLFLAG_p = -DWXUSINGDLL
|
||||||
|
!endif
|
||||||
|
!if "$(SHARED)" == "1"
|
||||||
|
__DLLFLAG_p_1 = -dWXUSINGDLL
|
||||||
|
!endif
|
||||||
|
!if "$(MONOLITHIC)" == "0"
|
||||||
|
__WXLIB_AUI_p = \
|
||||||
|
wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_aui.lib
|
||||||
|
!endif
|
||||||
|
!if "$(MONOLITHIC)" == "0"
|
||||||
|
__WXLIB_HTML_p = \
|
||||||
|
wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html.lib
|
||||||
|
!endif
|
||||||
|
!if "$(MONOLITHIC)" == "0"
|
||||||
|
__WXLIB_ADV_p = \
|
||||||
|
wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv.lib
|
||||||
|
!endif
|
||||||
|
!if "$(MONOLITHIC)" == "0"
|
||||||
|
__WXLIB_CORE_p = \
|
||||||
|
wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
|
||||||
|
!endif
|
||||||
|
!if "$(MONOLITHIC)" == "0"
|
||||||
|
__WXLIB_XML_p = \
|
||||||
|
wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml.lib
|
||||||
|
!endif
|
||||||
|
!if "$(MONOLITHIC)" == "0"
|
||||||
|
__WXLIB_BASE_p = \
|
||||||
|
wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
|
||||||
|
!endif
|
||||||
|
!if "$(MONOLITHIC)" == "1"
|
||||||
|
__WXLIB_MONO_p = \
|
||||||
|
wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
|
||||||
|
!endif
|
||||||
|
!if "$(USE_GUI)" == "1"
|
||||||
|
__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
|
||||||
|
!endif
|
||||||
|
!if "$(USE_GUI)" == "1"
|
||||||
|
__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
|
||||||
|
!endif
|
||||||
|
!if "$(USE_GUI)" == "1"
|
||||||
|
__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
|
||||||
|
!endif
|
||||||
|
!if "$(MSLU)" == "1"
|
||||||
|
__UNICOWS_LIB_p = unicows.lib
|
||||||
|
!endif
|
||||||
|
!if "$(USE_GDIPLUS)" == "1"
|
||||||
|
__GDIPLUS_LIB_p = gdiplus.lib
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
|
||||||
|
__DEBUGINFO = -v
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
|
||||||
|
__DEBUGINFO = -v-
|
||||||
|
!endif
|
||||||
|
!if "$(DEBUG_INFO)" == "0"
|
||||||
|
__DEBUGINFO = -v-
|
||||||
|
!endif
|
||||||
|
!if "$(DEBUG_INFO)" == "1"
|
||||||
|
__DEBUGINFO = -v
|
||||||
|
!endif
|
||||||
|
|
||||||
|
|
||||||
|
all: $(OBJS)
|
||||||
|
$(OBJS):
|
||||||
|
-if not exist $(OBJS) mkdir $(OBJS)
|
||||||
|
|
||||||
|
### Targets: ###
|
||||||
|
|
||||||
|
all: $(OBJS)\auidemo.exe
|
||||||
|
|
||||||
|
clean:
|
||||||
|
-if exist $(OBJS)\*.obj del $(OBJS)\*.obj
|
||||||
|
-if exist $(OBJS)\*.res del $(OBJS)\*.res
|
||||||
|
-if exist $(OBJS)\*.csm del $(OBJS)\*.csm
|
||||||
|
-if exist $(OBJS)\auidemo.exe del $(OBJS)\auidemo.exe
|
||||||
|
-if exist $(OBJS)\auidemo.tds del $(OBJS)\auidemo.tds
|
||||||
|
-if exist $(OBJS)\auidemo.ilc del $(OBJS)\auidemo.ilc
|
||||||
|
-if exist $(OBJS)\auidemo.ild del $(OBJS)\auidemo.ild
|
||||||
|
-if exist $(OBJS)\auidemo.ilf del $(OBJS)\auidemo.ilf
|
||||||
|
-if exist $(OBJS)\auidemo.ils del $(OBJS)\auidemo.ils
|
||||||
|
|
||||||
|
$(OBJS)\auidemo.exe: $(AUIDEMO_OBJECTS) $(OBJS)\auidemo_sample.res
|
||||||
|
ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&|
|
||||||
|
c0w32.obj $(AUIDEMO_OBJECTS),$@,, $(__WXLIB_AUI_p) $(__WXLIB_HTML_p) $(__WXLIB_ADV_p) $(__WXLIB_CORE_p) $(__WXLIB_XML_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__GDIPLUS_LIB_p) ole2w32.lib oleacc.lib odbc32.lib import32.lib cw32$(__THREADSFLAG_5)$(__RUNTIME_LIBS_8).lib,, $(OBJS)\auidemo_sample.res
|
||||||
|
|
|
||||||
|
|
||||||
|
$(OBJS)\auidemo_sample.res: .\..\..\samples\sample.rc
|
||||||
|
brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -d__WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__EXCEPTIONS_DEFINE_p_1) $(__RTTI_DEFINE_p_1) $(__THREAD_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) $(__MSLU_DEFINE_p_1) $(__GFXCTX_DEFINE_p_1) -i$(SETUPHDIR) -i.\..\..\include -i. $(__DLLFLAG_p_1) -i.\..\..\samples $**
|
||||||
|
|
||||||
|
$(OBJS)\auidemo_auidemo.obj: .\auidemo.cpp
|
||||||
|
$(CXX) -q -c -P -o$@ $(AUIDEMO_CXXFLAGS) $**
|
||||||
|
|
248
samples/aui/makefile.gcc
Normal file
248
samples/aui/makefile.gcc
Normal file
@@ -0,0 +1,248 @@
|
|||||||
|
# =========================================================================
|
||||||
|
# This makefile was generated by
|
||||||
|
# Bakefile 0.2.1 (http://bakefile.sourceforge.net)
|
||||||
|
# Do not modify, all changes will be overwritten!
|
||||||
|
# =========================================================================
|
||||||
|
|
||||||
|
include ../../build/msw/config.gcc
|
||||||
|
|
||||||
|
# -------------------------------------------------------------------------
|
||||||
|
# Do not modify the rest of this file!
|
||||||
|
# -------------------------------------------------------------------------
|
||||||
|
|
||||||
|
### Variables: ###
|
||||||
|
|
||||||
|
CPPDEPS = -MT$@ -MF$@.d -MD
|
||||||
|
WX_RELEASE_NODOT = 28
|
||||||
|
OBJS = \
|
||||||
|
gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
|
||||||
|
LIBDIRNAME = .\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
|
||||||
|
SETUPHDIR = \
|
||||||
|
$(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
|
||||||
|
AUIDEMO_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) \
|
||||||
|
$(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
|
||||||
|
$(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
|
||||||
|
$(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
|
||||||
|
$(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include -W -Wall -I. \
|
||||||
|
$(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG_5) \
|
||||||
|
$(__EXCEPTIONSFLAG_6) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
|
||||||
|
AUIDEMO_OBJECTS = \
|
||||||
|
$(OBJS)\auidemo_sample_rc.o \
|
||||||
|
$(OBJS)\auidemo_auidemo.o
|
||||||
|
|
||||||
|
### Conditionally set variables: ###
|
||||||
|
|
||||||
|
ifeq ($(GCC_VERSION),2.95)
|
||||||
|
GCCFLAGS = -fvtable-thunks
|
||||||
|
endif
|
||||||
|
ifeq ($(USE_GUI),0)
|
||||||
|
PORTNAME = base
|
||||||
|
endif
|
||||||
|
ifeq ($(USE_GUI),1)
|
||||||
|
PORTNAME = msw
|
||||||
|
endif
|
||||||
|
ifeq ($(BUILD),debug)
|
||||||
|
ifeq ($(DEBUG_FLAG),default)
|
||||||
|
WXDEBUGFLAG = d
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
ifeq ($(DEBUG_FLAG),1)
|
||||||
|
WXDEBUGFLAG = d
|
||||||
|
endif
|
||||||
|
ifeq ($(UNICODE),1)
|
||||||
|
WXUNICODEFLAG = u
|
||||||
|
endif
|
||||||
|
ifeq ($(WXUNIV),1)
|
||||||
|
WXUNIVNAME = univ
|
||||||
|
endif
|
||||||
|
ifeq ($(SHARED),1)
|
||||||
|
WXDLLFLAG = dll
|
||||||
|
endif
|
||||||
|
ifeq ($(SHARED),0)
|
||||||
|
LIBTYPE_SUFFIX = lib
|
||||||
|
endif
|
||||||
|
ifeq ($(SHARED),1)
|
||||||
|
LIBTYPE_SUFFIX = dll
|
||||||
|
endif
|
||||||
|
ifeq ($(MONOLITHIC),0)
|
||||||
|
EXTRALIBS_FOR_BASE =
|
||||||
|
endif
|
||||||
|
ifeq ($(MONOLITHIC),1)
|
||||||
|
EXTRALIBS_FOR_BASE =
|
||||||
|
endif
|
||||||
|
ifeq ($(BUILD),debug)
|
||||||
|
__OPTIMIZEFLAG_2 = -O0
|
||||||
|
endif
|
||||||
|
ifeq ($(BUILD),release)
|
||||||
|
__OPTIMIZEFLAG_2 = -O2
|
||||||
|
endif
|
||||||
|
ifeq ($(USE_RTTI),0)
|
||||||
|
__RTTIFLAG_5 = -fno-rtti
|
||||||
|
endif
|
||||||
|
ifeq ($(USE_RTTI),1)
|
||||||
|
__RTTIFLAG_5 =
|
||||||
|
endif
|
||||||
|
ifeq ($(USE_EXCEPTIONS),0)
|
||||||
|
__EXCEPTIONSFLAG_6 = -fno-exceptions
|
||||||
|
endif
|
||||||
|
ifeq ($(USE_EXCEPTIONS),1)
|
||||||
|
__EXCEPTIONSFLAG_6 =
|
||||||
|
endif
|
||||||
|
ifeq ($(WXUNIV),1)
|
||||||
|
__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
|
||||||
|
endif
|
||||||
|
ifeq ($(WXUNIV),1)
|
||||||
|
__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
|
||||||
|
endif
|
||||||
|
ifeq ($(BUILD),debug)
|
||||||
|
ifeq ($(DEBUG_FLAG),default)
|
||||||
|
__DEBUG_DEFINE_p = -D__WXDEBUG__
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
ifeq ($(DEBUG_FLAG),1)
|
||||||
|
__DEBUG_DEFINE_p = -D__WXDEBUG__
|
||||||
|
endif
|
||||||
|
ifeq ($(BUILD),debug)
|
||||||
|
ifeq ($(DEBUG_FLAG),default)
|
||||||
|
__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
ifeq ($(DEBUG_FLAG),1)
|
||||||
|
__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
|
||||||
|
endif
|
||||||
|
ifeq ($(USE_EXCEPTIONS),0)
|
||||||
|
__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
|
||||||
|
endif
|
||||||
|
ifeq ($(USE_EXCEPTIONS),0)
|
||||||
|
__EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
|
||||||
|
endif
|
||||||
|
ifeq ($(USE_RTTI),0)
|
||||||
|
__RTTI_DEFINE_p = -DwxNO_RTTI
|
||||||
|
endif
|
||||||
|
ifeq ($(USE_RTTI),0)
|
||||||
|
__RTTI_DEFINE_p_1 = --define wxNO_RTTI
|
||||||
|
endif
|
||||||
|
ifeq ($(USE_THREADS),0)
|
||||||
|
__THREAD_DEFINE_p = -DwxNO_THREADS
|
||||||
|
endif
|
||||||
|
ifeq ($(USE_THREADS),0)
|
||||||
|
__THREAD_DEFINE_p_1 = --define wxNO_THREADS
|
||||||
|
endif
|
||||||
|
ifeq ($(UNICODE),1)
|
||||||
|
__UNICODE_DEFINE_p = -D_UNICODE
|
||||||
|
endif
|
||||||
|
ifeq ($(UNICODE),1)
|
||||||
|
__UNICODE_DEFINE_p_1 = --define _UNICODE
|
||||||
|
endif
|
||||||
|
ifeq ($(MSLU),1)
|
||||||
|
__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
|
||||||
|
endif
|
||||||
|
ifeq ($(MSLU),1)
|
||||||
|
__MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
|
||||||
|
endif
|
||||||
|
ifeq ($(USE_GDIPLUS),1)
|
||||||
|
__GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
|
||||||
|
endif
|
||||||
|
ifeq ($(USE_GDIPLUS),1)
|
||||||
|
__GFXCTX_DEFINE_p_1 = --define wxUSE_GRAPHICS_CONTEXT=1
|
||||||
|
endif
|
||||||
|
ifeq ($(SHARED),1)
|
||||||
|
__DLLFLAG_p = -DWXUSINGDLL
|
||||||
|
endif
|
||||||
|
ifeq ($(SHARED),1)
|
||||||
|
__DLLFLAG_p_1 = --define WXUSINGDLL
|
||||||
|
endif
|
||||||
|
ifeq ($(MONOLITHIC),0)
|
||||||
|
__WXLIB_AUI_p = \
|
||||||
|
-lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_aui
|
||||||
|
endif
|
||||||
|
ifeq ($(MONOLITHIC),0)
|
||||||
|
__WXLIB_HTML_p = \
|
||||||
|
-lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html
|
||||||
|
endif
|
||||||
|
ifeq ($(MONOLITHIC),0)
|
||||||
|
__WXLIB_ADV_p = \
|
||||||
|
-lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv
|
||||||
|
endif
|
||||||
|
ifeq ($(MONOLITHIC),0)
|
||||||
|
__WXLIB_CORE_p = \
|
||||||
|
-lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
|
||||||
|
endif
|
||||||
|
ifeq ($(MONOLITHIC),0)
|
||||||
|
__WXLIB_XML_p = \
|
||||||
|
-lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml
|
||||||
|
endif
|
||||||
|
ifeq ($(MONOLITHIC),0)
|
||||||
|
__WXLIB_BASE_p = \
|
||||||
|
-lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
|
||||||
|
endif
|
||||||
|
ifeq ($(MONOLITHIC),1)
|
||||||
|
__WXLIB_MONO_p = \
|
||||||
|
-lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
|
||||||
|
endif
|
||||||
|
ifeq ($(USE_GUI),1)
|
||||||
|
__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
|
||||||
|
endif
|
||||||
|
ifeq ($(USE_GUI),1)
|
||||||
|
__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
|
||||||
|
endif
|
||||||
|
ifeq ($(USE_GUI),1)
|
||||||
|
__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
|
||||||
|
endif
|
||||||
|
ifeq ($(MSLU),1)
|
||||||
|
__UNICOWS_LIB_p = -lunicows
|
||||||
|
endif
|
||||||
|
ifeq ($(USE_GDIPLUS),1)
|
||||||
|
__GDIPLUS_LIB_p = -lgdiplus
|
||||||
|
endif
|
||||||
|
ifeq ($(BUILD),debug)
|
||||||
|
ifeq ($(DEBUG_INFO),default)
|
||||||
|
__DEBUGINFO = -g
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
ifeq ($(BUILD),release)
|
||||||
|
ifeq ($(DEBUG_INFO),default)
|
||||||
|
__DEBUGINFO =
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
ifeq ($(DEBUG_INFO),0)
|
||||||
|
__DEBUGINFO =
|
||||||
|
endif
|
||||||
|
ifeq ($(DEBUG_INFO),1)
|
||||||
|
__DEBUGINFO = -g
|
||||||
|
endif
|
||||||
|
ifeq ($(USE_THREADS),0)
|
||||||
|
__THREADSFLAG =
|
||||||
|
endif
|
||||||
|
ifeq ($(USE_THREADS),1)
|
||||||
|
__THREADSFLAG = -mthreads
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
all: $(OBJS)
|
||||||
|
$(OBJS):
|
||||||
|
-if not exist $(OBJS) mkdir $(OBJS)
|
||||||
|
|
||||||
|
### Targets: ###
|
||||||
|
|
||||||
|
all: $(OBJS)\auidemo.exe
|
||||||
|
|
||||||
|
clean:
|
||||||
|
-if exist $(OBJS)\*.o del $(OBJS)\*.o
|
||||||
|
-if exist $(OBJS)\*.d del $(OBJS)\*.d
|
||||||
|
-if exist $(OBJS)\auidemo.exe del $(OBJS)\auidemo.exe
|
||||||
|
|
||||||
|
$(OBJS)\auidemo.exe: $(AUIDEMO_OBJECTS) $(OBJS)\auidemo_sample_rc.o
|
||||||
|
$(CXX) -o $@ $(AUIDEMO_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(__WXLIB_AUI_p) $(__WXLIB_HTML_p) $(__WXLIB_ADV_p) $(__WXLIB_CORE_p) $(__WXLIB_XML_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__GDIPLUS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
|
||||||
|
|
||||||
|
$(OBJS)\auidemo_sample_rc.o: ./../../samples/sample.rc
|
||||||
|
windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__EXCEPTIONS_DEFINE_p_1) $(__RTTI_DEFINE_p_1) $(__THREAD_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) $(__MSLU_DEFINE_p_1) $(__GFXCTX_DEFINE_p_1) --include-dir $(SETUPHDIR) --include-dir ./../../include --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../samples
|
||||||
|
|
||||||
|
$(OBJS)\auidemo_auidemo.o: ./auidemo.cpp
|
||||||
|
$(CXX) -c -o $@ $(AUIDEMO_CXXFLAGS) $(CPPDEPS) $<
|
||||||
|
|
||||||
|
.PHONY: all clean
|
||||||
|
|
||||||
|
|
||||||
|
# Dependencies tracking:
|
||||||
|
-include $(OBJS)/*.d
|
71
samples/aui/makefile.unx
Normal file
71
samples/aui/makefile.unx
Normal file
@@ -0,0 +1,71 @@
|
|||||||
|
# =========================================================================
|
||||||
|
# This makefile was generated by
|
||||||
|
# Bakefile 0.2.1 (http://bakefile.sourceforge.net)
|
||||||
|
# Do not modify, all changes will be overwritten!
|
||||||
|
# =========================================================================
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# -------------------------------------------------------------------------
|
||||||
|
# These are configurable options:
|
||||||
|
# -------------------------------------------------------------------------
|
||||||
|
|
||||||
|
# C++ compiler
|
||||||
|
CXX = g++
|
||||||
|
|
||||||
|
# Standard flags for C++
|
||||||
|
CXXFLAGS =
|
||||||
|
|
||||||
|
# Standard preprocessor flags (common for CC and CXX)
|
||||||
|
CPPFLAGS =
|
||||||
|
|
||||||
|
# Standard linker flags
|
||||||
|
LDFLAGS =
|
||||||
|
|
||||||
|
# Location and arguments of wx-config script
|
||||||
|
WX_CONFIG = wx-config
|
||||||
|
|
||||||
|
# C++ flags to use with wxWidgets code
|
||||||
|
WX_CXXFLAGS = `$(WX_CONFIG) --cxxflags`
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# -------------------------------------------------------------------------
|
||||||
|
# Do not modify the rest of this file!
|
||||||
|
# -------------------------------------------------------------------------
|
||||||
|
|
||||||
|
### Variables: ###
|
||||||
|
|
||||||
|
CPPDEPS = -MT$@ -MF`echo $@ | sed -e 's,\.o$$,.d,'` -MD
|
||||||
|
AUIDEMO_CXXFLAGS = -I. $(WX_CXXFLAGS) $(CPPFLAGS) $(CXXFLAGS)
|
||||||
|
AUIDEMO_OBJECTS = \
|
||||||
|
auidemo_auidemo.o
|
||||||
|
|
||||||
|
### Conditionally set variables: ###
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Targets: ###
|
||||||
|
|
||||||
|
all: auidemo
|
||||||
|
|
||||||
|
install: all
|
||||||
|
|
||||||
|
uninstall:
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f ./*.o
|
||||||
|
rm -f ./*.d
|
||||||
|
rm -f auidemo
|
||||||
|
|
||||||
|
auidemo: $(AUIDEMO_OBJECTS)
|
||||||
|
$(CXX) -o $@ $(AUIDEMO_OBJECTS) $(LDFLAGS) `$(WX_CONFIG) --libs aui,html,adv,core,xml,base`
|
||||||
|
|
||||||
|
auidemo_auidemo.o: ./auidemo.cpp
|
||||||
|
$(CXX) -c -o $@ $(AUIDEMO_CXXFLAGS) $(CPPDEPS) $<
|
||||||
|
|
||||||
|
.PHONY: all install uninstall clean
|
||||||
|
|
||||||
|
|
||||||
|
# Dependencies tracking:
|
||||||
|
-include ./*.d
|
325
samples/aui/makefile.vc
Normal file
325
samples/aui/makefile.vc
Normal file
@@ -0,0 +1,325 @@
|
|||||||
|
# =========================================================================
|
||||||
|
# This makefile was generated by
|
||||||
|
# Bakefile 0.2.1 (http://bakefile.sourceforge.net)
|
||||||
|
# Do not modify, all changes will be overwritten!
|
||||||
|
# =========================================================================
|
||||||
|
|
||||||
|
!include <../../build/msw/config.vc>
|
||||||
|
|
||||||
|
# -------------------------------------------------------------------------
|
||||||
|
# Do not modify the rest of this file!
|
||||||
|
# -------------------------------------------------------------------------
|
||||||
|
|
||||||
|
### Variables: ###
|
||||||
|
|
||||||
|
WX_RELEASE_NODOT = 28
|
||||||
|
OBJS = \
|
||||||
|
vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)$(DIR_SUFFIX_CPU)
|
||||||
|
LIBDIRNAME = .\..\..\lib\vc$(DIR_SUFFIX_CPU)_$(LIBTYPE_SUFFIX)$(CFG)
|
||||||
|
SETUPHDIR = \
|
||||||
|
$(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
|
||||||
|
AUIDEMO_CXXFLAGS = /M$(__RUNTIME_LIBS_8)$(__DEBUGRUNTIME_3) /DWIN32 \
|
||||||
|
$(__DEBUGINFO_0) /Fd$(OBJS)\auidemo.pdb $(____DEBUGRUNTIME_2_p) \
|
||||||
|
$(__OPTIMIZEFLAG_4) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
|
||||||
|
$(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
|
||||||
|
$(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
|
||||||
|
$(__GFXCTX_DEFINE_p) /I$(SETUPHDIR) /I.\..\..\include /W4 /I. $(__DLLFLAG_p) \
|
||||||
|
/D_WINDOWS /I.\..\..\samples /DNOPCH $(__RTTIFLAG_9) $(__EXCEPTIONSFLAG_10) \
|
||||||
|
$(CPPFLAGS) $(CXXFLAGS)
|
||||||
|
AUIDEMO_OBJECTS = \
|
||||||
|
$(OBJS)\auidemo_sample.res \
|
||||||
|
$(OBJS)\auidemo_auidemo.obj
|
||||||
|
|
||||||
|
### Conditionally set variables: ###
|
||||||
|
|
||||||
|
!if "$(USE_GUI)" == "0"
|
||||||
|
PORTNAME = base
|
||||||
|
!endif
|
||||||
|
!if "$(USE_GUI)" == "1"
|
||||||
|
PORTNAME = msw
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
|
||||||
|
WXDEBUGFLAG = d
|
||||||
|
!endif
|
||||||
|
!if "$(DEBUG_FLAG)" == "1"
|
||||||
|
WXDEBUGFLAG = d
|
||||||
|
!endif
|
||||||
|
!if "$(UNICODE)" == "1"
|
||||||
|
WXUNICODEFLAG = u
|
||||||
|
!endif
|
||||||
|
!if "$(WXUNIV)" == "1"
|
||||||
|
WXUNIVNAME = univ
|
||||||
|
!endif
|
||||||
|
!if "$(TARGET_CPU)" == "amd64"
|
||||||
|
DIR_SUFFIX_CPU = _amd64
|
||||||
|
!endif
|
||||||
|
!if "$(TARGET_CPU)" == "amd64"
|
||||||
|
DIR_SUFFIX_CPU = _amd64
|
||||||
|
!endif
|
||||||
|
!if "$(TARGET_CPU)" == "ia64"
|
||||||
|
DIR_SUFFIX_CPU = _ia64
|
||||||
|
!endif
|
||||||
|
!if "$(TARGET_CPU)" == "ia64"
|
||||||
|
DIR_SUFFIX_CPU = _ia64
|
||||||
|
!endif
|
||||||
|
!if "$(SHARED)" == "1"
|
||||||
|
WXDLLFLAG = dll
|
||||||
|
!endif
|
||||||
|
!if "$(SHARED)" == "0"
|
||||||
|
LIBTYPE_SUFFIX = lib
|
||||||
|
!endif
|
||||||
|
!if "$(SHARED)" == "1"
|
||||||
|
LIBTYPE_SUFFIX = dll
|
||||||
|
!endif
|
||||||
|
!if "$(TARGET_CPU)" == "amd64"
|
||||||
|
LINK_TARGET_CPU = /MACHINE:AMD64
|
||||||
|
!endif
|
||||||
|
!if "$(TARGET_CPU)" == "amd64"
|
||||||
|
LINK_TARGET_CPU = /MACHINE:AMD64
|
||||||
|
!endif
|
||||||
|
!if "$(TARGET_CPU)" == "ia64"
|
||||||
|
LINK_TARGET_CPU = /MACHINE:IA64
|
||||||
|
!endif
|
||||||
|
!if "$(TARGET_CPU)" == "ia64"
|
||||||
|
LINK_TARGET_CPU = /MACHINE:IA64
|
||||||
|
!endif
|
||||||
|
!if "$(MONOLITHIC)" == "0"
|
||||||
|
EXTRALIBS_FOR_BASE =
|
||||||
|
!endif
|
||||||
|
!if "$(MONOLITHIC)" == "1"
|
||||||
|
EXTRALIBS_FOR_BASE =
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
|
||||||
|
__DEBUGINFO_0 = /Zi
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
|
||||||
|
__DEBUGINFO_0 =
|
||||||
|
!endif
|
||||||
|
!if "$(DEBUG_INFO)" == "0"
|
||||||
|
__DEBUGINFO_0 =
|
||||||
|
!endif
|
||||||
|
!if "$(DEBUG_INFO)" == "1"
|
||||||
|
__DEBUGINFO_0 = /Zi
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
|
||||||
|
__DEBUGINFO_1 = /DEBUG
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
|
||||||
|
__DEBUGINFO_1 =
|
||||||
|
!endif
|
||||||
|
!if "$(DEBUG_INFO)" == "0"
|
||||||
|
__DEBUGINFO_1 =
|
||||||
|
!endif
|
||||||
|
!if "$(DEBUG_INFO)" == "1"
|
||||||
|
__DEBUGINFO_1 = /DEBUG
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
|
||||||
|
____DEBUGRUNTIME_2_p = /D_DEBUG
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
|
||||||
|
____DEBUGRUNTIME_2_p =
|
||||||
|
!endif
|
||||||
|
!if "$(DEBUG_RUNTIME_LIBS)" == "0"
|
||||||
|
____DEBUGRUNTIME_2_p =
|
||||||
|
!endif
|
||||||
|
!if "$(DEBUG_RUNTIME_LIBS)" == "1"
|
||||||
|
____DEBUGRUNTIME_2_p = /D_DEBUG
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
|
||||||
|
____DEBUGRUNTIME_2_p_1 = /d _DEBUG
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
|
||||||
|
____DEBUGRUNTIME_2_p_1 =
|
||||||
|
!endif
|
||||||
|
!if "$(DEBUG_RUNTIME_LIBS)" == "0"
|
||||||
|
____DEBUGRUNTIME_2_p_1 =
|
||||||
|
!endif
|
||||||
|
!if "$(DEBUG_RUNTIME_LIBS)" == "1"
|
||||||
|
____DEBUGRUNTIME_2_p_1 = /d _DEBUG
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
|
||||||
|
__DEBUGRUNTIME_3 = d
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
|
||||||
|
__DEBUGRUNTIME_3 =
|
||||||
|
!endif
|
||||||
|
!if "$(DEBUG_RUNTIME_LIBS)" == "0"
|
||||||
|
__DEBUGRUNTIME_3 =
|
||||||
|
!endif
|
||||||
|
!if "$(DEBUG_RUNTIME_LIBS)" == "1"
|
||||||
|
__DEBUGRUNTIME_3 = d
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "debug"
|
||||||
|
__OPTIMIZEFLAG_4 = /Od
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "release"
|
||||||
|
__OPTIMIZEFLAG_4 = /O2
|
||||||
|
!endif
|
||||||
|
!if "$(USE_THREADS)" == "0"
|
||||||
|
__THREADSFLAG_7 = L
|
||||||
|
!endif
|
||||||
|
!if "$(USE_THREADS)" == "1"
|
||||||
|
__THREADSFLAG_7 = T
|
||||||
|
!endif
|
||||||
|
!if "$(RUNTIME_LIBS)" == "dynamic"
|
||||||
|
__RUNTIME_LIBS_8 = D
|
||||||
|
!endif
|
||||||
|
!if "$(RUNTIME_LIBS)" == "static"
|
||||||
|
__RUNTIME_LIBS_8 = $(__THREADSFLAG_7)
|
||||||
|
!endif
|
||||||
|
!if "$(USE_RTTI)" == "0"
|
||||||
|
__RTTIFLAG_9 =
|
||||||
|
!endif
|
||||||
|
!if "$(USE_RTTI)" == "1"
|
||||||
|
__RTTIFLAG_9 = /GR
|
||||||
|
!endif
|
||||||
|
!if "$(USE_EXCEPTIONS)" == "0"
|
||||||
|
__EXCEPTIONSFLAG_10 =
|
||||||
|
!endif
|
||||||
|
!if "$(USE_EXCEPTIONS)" == "1"
|
||||||
|
__EXCEPTIONSFLAG_10 = /EHsc
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
|
||||||
|
__NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
|
||||||
|
__NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
|
||||||
|
__NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
|
||||||
|
__NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
|
||||||
|
!endif
|
||||||
|
!if "$(WXUNIV)" == "1"
|
||||||
|
__WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
|
||||||
|
!endif
|
||||||
|
!if "$(WXUNIV)" == "1"
|
||||||
|
__WXUNIV_DEFINE_p_1 = /d __WXUNIVERSAL__
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
|
||||||
|
__DEBUG_DEFINE_p = /D__WXDEBUG__
|
||||||
|
!endif
|
||||||
|
!if "$(DEBUG_FLAG)" == "1"
|
||||||
|
__DEBUG_DEFINE_p = /D__WXDEBUG__
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
|
||||||
|
__DEBUG_DEFINE_p_1 = /d __WXDEBUG__
|
||||||
|
!endif
|
||||||
|
!if "$(DEBUG_FLAG)" == "1"
|
||||||
|
__DEBUG_DEFINE_p_1 = /d __WXDEBUG__
|
||||||
|
!endif
|
||||||
|
!if "$(USE_EXCEPTIONS)" == "0"
|
||||||
|
__EXCEPTIONS_DEFINE_p = /DwxNO_EXCEPTIONS
|
||||||
|
!endif
|
||||||
|
!if "$(USE_EXCEPTIONS)" == "0"
|
||||||
|
__EXCEPTIONS_DEFINE_p_1 = /d wxNO_EXCEPTIONS
|
||||||
|
!endif
|
||||||
|
!if "$(USE_RTTI)" == "0"
|
||||||
|
__RTTI_DEFINE_p = /DwxNO_RTTI
|
||||||
|
!endif
|
||||||
|
!if "$(USE_RTTI)" == "0"
|
||||||
|
__RTTI_DEFINE_p_1 = /d wxNO_RTTI
|
||||||
|
!endif
|
||||||
|
!if "$(USE_THREADS)" == "0"
|
||||||
|
__THREAD_DEFINE_p = /DwxNO_THREADS
|
||||||
|
!endif
|
||||||
|
!if "$(USE_THREADS)" == "0"
|
||||||
|
__THREAD_DEFINE_p_1 = /d wxNO_THREADS
|
||||||
|
!endif
|
||||||
|
!if "$(UNICODE)" == "1"
|
||||||
|
__UNICODE_DEFINE_p = /D_UNICODE
|
||||||
|
!endif
|
||||||
|
!if "$(UNICODE)" == "1"
|
||||||
|
__UNICODE_DEFINE_p_1 = /d _UNICODE
|
||||||
|
!endif
|
||||||
|
!if "$(MSLU)" == "1"
|
||||||
|
__MSLU_DEFINE_p = /DwxUSE_UNICODE_MSLU=1
|
||||||
|
!endif
|
||||||
|
!if "$(MSLU)" == "1"
|
||||||
|
__MSLU_DEFINE_p_1 = /d wxUSE_UNICODE_MSLU=1
|
||||||
|
!endif
|
||||||
|
!if "$(USE_GDIPLUS)" == "1"
|
||||||
|
__GFXCTX_DEFINE_p = /DwxUSE_GRAPHICS_CONTEXT=1
|
||||||
|
!endif
|
||||||
|
!if "$(USE_GDIPLUS)" == "1"
|
||||||
|
__GFXCTX_DEFINE_p_1 = /d wxUSE_GRAPHICS_CONTEXT=1
|
||||||
|
!endif
|
||||||
|
!if "$(SHARED)" == "1"
|
||||||
|
__DLLFLAG_p = /DWXUSINGDLL
|
||||||
|
!endif
|
||||||
|
!if "$(SHARED)" == "1"
|
||||||
|
__DLLFLAG_p_1 = /d WXUSINGDLL
|
||||||
|
!endif
|
||||||
|
!if "$(MONOLITHIC)" == "0"
|
||||||
|
__WXLIB_AUI_p = \
|
||||||
|
wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_aui.lib
|
||||||
|
!endif
|
||||||
|
!if "$(MONOLITHIC)" == "0"
|
||||||
|
__WXLIB_HTML_p = \
|
||||||
|
wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html.lib
|
||||||
|
!endif
|
||||||
|
!if "$(MONOLITHIC)" == "0"
|
||||||
|
__WXLIB_ADV_p = \
|
||||||
|
wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv.lib
|
||||||
|
!endif
|
||||||
|
!if "$(MONOLITHIC)" == "0"
|
||||||
|
__WXLIB_CORE_p = \
|
||||||
|
wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
|
||||||
|
!endif
|
||||||
|
!if "$(MONOLITHIC)" == "0"
|
||||||
|
__WXLIB_XML_p = \
|
||||||
|
wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml.lib
|
||||||
|
!endif
|
||||||
|
!if "$(MONOLITHIC)" == "0"
|
||||||
|
__WXLIB_BASE_p = \
|
||||||
|
wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
|
||||||
|
!endif
|
||||||
|
!if "$(MONOLITHIC)" == "1"
|
||||||
|
__WXLIB_MONO_p = \
|
||||||
|
wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
|
||||||
|
!endif
|
||||||
|
!if "$(USE_GUI)" == "1"
|
||||||
|
__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
|
||||||
|
!endif
|
||||||
|
!if "$(USE_GUI)" == "1"
|
||||||
|
__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
|
||||||
|
!endif
|
||||||
|
!if "$(USE_GUI)" == "1"
|
||||||
|
__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
|
||||||
|
!endif
|
||||||
|
!if "$(MSLU)" == "1"
|
||||||
|
__UNICOWS_LIB_p = unicows.lib
|
||||||
|
!endif
|
||||||
|
!if "$(USE_GDIPLUS)" == "1"
|
||||||
|
__GDIPLUS_LIB_p = gdiplus.lib
|
||||||
|
!endif
|
||||||
|
|
||||||
|
|
||||||
|
all: $(OBJS)
|
||||||
|
$(OBJS):
|
||||||
|
-if not exist $(OBJS) mkdir $(OBJS)
|
||||||
|
|
||||||
|
### Targets: ###
|
||||||
|
|
||||||
|
all: $(OBJS)\auidemo.exe
|
||||||
|
|
||||||
|
clean:
|
||||||
|
-if exist $(OBJS)\*.obj del $(OBJS)\*.obj
|
||||||
|
-if exist $(OBJS)\*.res del $(OBJS)\*.res
|
||||||
|
-if exist $(OBJS)\*.pch del $(OBJS)\*.pch
|
||||||
|
-if exist $(OBJS)\auidemo.exe del $(OBJS)\auidemo.exe
|
||||||
|
-if exist $(OBJS)\auidemo.ilk del $(OBJS)\auidemo.ilk
|
||||||
|
-if exist $(OBJS)\auidemo.pdb del $(OBJS)\auidemo.pdb
|
||||||
|
|
||||||
|
$(OBJS)\auidemo.exe: $(AUIDEMO_OBJECTS) $(OBJS)\auidemo_sample.res
|
||||||
|
link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
|
||||||
|
$(AUIDEMO_OBJECTS) $(__WXLIB_AUI_p) $(__WXLIB_HTML_p) $(__WXLIB_ADV_p) $(__WXLIB_CORE_p) $(__WXLIB_XML_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__GDIPLUS_LIB_p) kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib
|
||||||
|
<<
|
||||||
|
|
||||||
|
$(OBJS)\auidemo_sample.res: .\..\..\samples\sample.rc
|
||||||
|
rc /fo$@ /d WIN32 $(____DEBUGRUNTIME_2_p_1) $(__NO_VC_CRTDBG_p_1) /d __WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__EXCEPTIONS_DEFINE_p_1) $(__RTTI_DEFINE_p_1) $(__THREAD_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) $(__MSLU_DEFINE_p_1) $(__GFXCTX_DEFINE_p_1) /i $(SETUPHDIR) /i .\..\..\include /i . $(__DLLFLAG_p_1) /d _WINDOWS /i .\..\..\samples $**
|
||||||
|
|
||||||
|
$(OBJS)\auidemo_auidemo.obj: .\auidemo.cpp
|
||||||
|
$(CXX) /c /nologo /TP /Fo$@ $(AUIDEMO_CXXFLAGS) $**
|
||||||
|
|
282
samples/aui/makefile.wat
Normal file
282
samples/aui/makefile.wat
Normal file
@@ -0,0 +1,282 @@
|
|||||||
|
# =========================================================================
|
||||||
|
# This makefile was generated by
|
||||||
|
# Bakefile 0.2.1 (http://bakefile.sourceforge.net)
|
||||||
|
# Do not modify, all changes will be overwritten!
|
||||||
|
# =========================================================================
|
||||||
|
|
||||||
|
!include ../../build/msw/config.wat
|
||||||
|
|
||||||
|
# -------------------------------------------------------------------------
|
||||||
|
# Do not modify the rest of this file!
|
||||||
|
# -------------------------------------------------------------------------
|
||||||
|
|
||||||
|
# Speed up compilation a bit:
|
||||||
|
!ifdef __LOADDLL__
|
||||||
|
! loaddll wcc wccd
|
||||||
|
! loaddll wccaxp wccdaxp
|
||||||
|
! loaddll wcc386 wccd386
|
||||||
|
! loaddll wpp wppdi86
|
||||||
|
! loaddll wppaxp wppdaxp
|
||||||
|
! loaddll wpp386 wppd386
|
||||||
|
! loaddll wlink wlink
|
||||||
|
! loaddll wlib wlibd
|
||||||
|
!endif
|
||||||
|
|
||||||
|
# We need these variables in some bakefile-made rules:
|
||||||
|
WATCOM_CWD = $+ $(%cdrive):$(%cwd) $-
|
||||||
|
|
||||||
|
### Conditionally set variables: ###
|
||||||
|
|
||||||
|
PORTNAME =
|
||||||
|
!ifeq USE_GUI 0
|
||||||
|
PORTNAME = base
|
||||||
|
!endif
|
||||||
|
!ifeq USE_GUI 1
|
||||||
|
PORTNAME = msw
|
||||||
|
!endif
|
||||||
|
WXDEBUGFLAG =
|
||||||
|
!ifeq BUILD debug
|
||||||
|
!ifeq DEBUG_FLAG default
|
||||||
|
WXDEBUGFLAG = d
|
||||||
|
!endif
|
||||||
|
!endif
|
||||||
|
!ifeq DEBUG_FLAG 1
|
||||||
|
WXDEBUGFLAG = d
|
||||||
|
!endif
|
||||||
|
WXUNICODEFLAG =
|
||||||
|
!ifeq UNICODE 1
|
||||||
|
WXUNICODEFLAG = u
|
||||||
|
!endif
|
||||||
|
WXUNIVNAME =
|
||||||
|
!ifeq WXUNIV 1
|
||||||
|
WXUNIVNAME = univ
|
||||||
|
!endif
|
||||||
|
WXDLLFLAG =
|
||||||
|
!ifeq SHARED 1
|
||||||
|
WXDLLFLAG = dll
|
||||||
|
!endif
|
||||||
|
LIBTYPE_SUFFIX =
|
||||||
|
!ifeq SHARED 0
|
||||||
|
LIBTYPE_SUFFIX = lib
|
||||||
|
!endif
|
||||||
|
!ifeq SHARED 1
|
||||||
|
LIBTYPE_SUFFIX = dll
|
||||||
|
!endif
|
||||||
|
EXTRALIBS_FOR_BASE =
|
||||||
|
!ifeq MONOLITHIC 0
|
||||||
|
EXTRALIBS_FOR_BASE =
|
||||||
|
!endif
|
||||||
|
!ifeq MONOLITHIC 1
|
||||||
|
EXTRALIBS_FOR_BASE =
|
||||||
|
!endif
|
||||||
|
__DEBUGINFO_0 =
|
||||||
|
!ifeq BUILD debug
|
||||||
|
!ifeq DEBUG_INFO default
|
||||||
|
__DEBUGINFO_0 = -d2
|
||||||
|
!endif
|
||||||
|
!endif
|
||||||
|
!ifeq BUILD release
|
||||||
|
!ifeq DEBUG_INFO default
|
||||||
|
__DEBUGINFO_0 = -d0
|
||||||
|
!endif
|
||||||
|
!endif
|
||||||
|
!ifeq DEBUG_INFO 0
|
||||||
|
__DEBUGINFO_0 = -d0
|
||||||
|
!endif
|
||||||
|
!ifeq DEBUG_INFO 1
|
||||||
|
__DEBUGINFO_0 = -d2
|
||||||
|
!endif
|
||||||
|
__DEBUGINFO_1 =
|
||||||
|
!ifeq BUILD debug
|
||||||
|
!ifeq DEBUG_INFO default
|
||||||
|
__DEBUGINFO_1 = debug all
|
||||||
|
!endif
|
||||||
|
!endif
|
||||||
|
!ifeq BUILD release
|
||||||
|
!ifeq DEBUG_INFO default
|
||||||
|
__DEBUGINFO_1 =
|
||||||
|
!endif
|
||||||
|
!endif
|
||||||
|
!ifeq DEBUG_INFO 0
|
||||||
|
__DEBUGINFO_1 =
|
||||||
|
!endif
|
||||||
|
!ifeq DEBUG_INFO 1
|
||||||
|
__DEBUGINFO_1 = debug all
|
||||||
|
!endif
|
||||||
|
__OPTIMIZEFLAG_2 =
|
||||||
|
!ifeq BUILD debug
|
||||||
|
__OPTIMIZEFLAG_2 = -od
|
||||||
|
!endif
|
||||||
|
!ifeq BUILD release
|
||||||
|
__OPTIMIZEFLAG_2 = -ot -ox
|
||||||
|
!endif
|
||||||
|
__THREADSFLAG_5 =
|
||||||
|
!ifeq USE_THREADS 0
|
||||||
|
__THREADSFLAG_5 =
|
||||||
|
!endif
|
||||||
|
!ifeq USE_THREADS 1
|
||||||
|
__THREADSFLAG_5 = -bm
|
||||||
|
!endif
|
||||||
|
__RUNTIME_LIBS_6 =
|
||||||
|
!ifeq RUNTIME_LIBS dynamic
|
||||||
|
__RUNTIME_LIBS_6 = -br
|
||||||
|
!endif
|
||||||
|
!ifeq RUNTIME_LIBS static
|
||||||
|
__RUNTIME_LIBS_6 =
|
||||||
|
!endif
|
||||||
|
__RTTIFLAG_7 =
|
||||||
|
!ifeq USE_RTTI 0
|
||||||
|
__RTTIFLAG_7 =
|
||||||
|
!endif
|
||||||
|
!ifeq USE_RTTI 1
|
||||||
|
__RTTIFLAG_7 = -xr
|
||||||
|
!endif
|
||||||
|
__EXCEPTIONSFLAG_8 =
|
||||||
|
!ifeq USE_EXCEPTIONS 0
|
||||||
|
__EXCEPTIONSFLAG_8 =
|
||||||
|
!endif
|
||||||
|
!ifeq USE_EXCEPTIONS 1
|
||||||
|
__EXCEPTIONSFLAG_8 = -xs
|
||||||
|
!endif
|
||||||
|
__WXLIB_AUI_p =
|
||||||
|
!ifeq MONOLITHIC 0
|
||||||
|
__WXLIB_AUI_p = &
|
||||||
|
wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_aui.lib
|
||||||
|
!endif
|
||||||
|
__WXLIB_HTML_p =
|
||||||
|
!ifeq MONOLITHIC 0
|
||||||
|
__WXLIB_HTML_p = &
|
||||||
|
wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html.lib
|
||||||
|
!endif
|
||||||
|
__WXLIB_ADV_p =
|
||||||
|
!ifeq MONOLITHIC 0
|
||||||
|
__WXLIB_ADV_p = &
|
||||||
|
wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv.lib
|
||||||
|
!endif
|
||||||
|
__WXLIB_CORE_p =
|
||||||
|
!ifeq MONOLITHIC 0
|
||||||
|
__WXLIB_CORE_p = &
|
||||||
|
wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
|
||||||
|
!endif
|
||||||
|
__WXLIB_XML_p =
|
||||||
|
!ifeq MONOLITHIC 0
|
||||||
|
__WXLIB_XML_p = &
|
||||||
|
wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml.lib
|
||||||
|
!endif
|
||||||
|
__WXLIB_BASE_p =
|
||||||
|
!ifeq MONOLITHIC 0
|
||||||
|
__WXLIB_BASE_p = &
|
||||||
|
wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
|
||||||
|
!endif
|
||||||
|
__WXLIB_MONO_p =
|
||||||
|
!ifeq MONOLITHIC 1
|
||||||
|
__WXLIB_MONO_p = &
|
||||||
|
wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
|
||||||
|
!endif
|
||||||
|
__LIB_TIFF_p =
|
||||||
|
!ifeq USE_GUI 1
|
||||||
|
__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
|
||||||
|
!endif
|
||||||
|
__LIB_JPEG_p =
|
||||||
|
!ifeq USE_GUI 1
|
||||||
|
__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
|
||||||
|
!endif
|
||||||
|
__LIB_PNG_p =
|
||||||
|
!ifeq USE_GUI 1
|
||||||
|
__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
|
||||||
|
!endif
|
||||||
|
__GDIPLUS_LIB_p =
|
||||||
|
!ifeq USE_GDIPLUS 1
|
||||||
|
__GDIPLUS_LIB_p = gdiplus.lib
|
||||||
|
!endif
|
||||||
|
__WXUNIV_DEFINE_p =
|
||||||
|
!ifeq WXUNIV 1
|
||||||
|
__WXUNIV_DEFINE_p = -d__WXUNIVERSAL__
|
||||||
|
!endif
|
||||||
|
__DEBUG_DEFINE_p =
|
||||||
|
!ifeq BUILD debug
|
||||||
|
!ifeq DEBUG_FLAG default
|
||||||
|
__DEBUG_DEFINE_p = -d__WXDEBUG__
|
||||||
|
!endif
|
||||||
|
!endif
|
||||||
|
!ifeq DEBUG_FLAG 1
|
||||||
|
__DEBUG_DEFINE_p = -d__WXDEBUG__
|
||||||
|
!endif
|
||||||
|
__EXCEPTIONS_DEFINE_p =
|
||||||
|
!ifeq USE_EXCEPTIONS 0
|
||||||
|
__EXCEPTIONS_DEFINE_p = -dwxNO_EXCEPTIONS
|
||||||
|
!endif
|
||||||
|
__RTTI_DEFINE_p =
|
||||||
|
!ifeq USE_RTTI 0
|
||||||
|
__RTTI_DEFINE_p = -dwxNO_RTTI
|
||||||
|
!endif
|
||||||
|
__THREAD_DEFINE_p =
|
||||||
|
!ifeq USE_THREADS 0
|
||||||
|
__THREAD_DEFINE_p = -dwxNO_THREADS
|
||||||
|
!endif
|
||||||
|
__UNICODE_DEFINE_p =
|
||||||
|
!ifeq UNICODE 1
|
||||||
|
__UNICODE_DEFINE_p = -d_UNICODE
|
||||||
|
!endif
|
||||||
|
__GFXCTX_DEFINE_p =
|
||||||
|
!ifeq USE_GDIPLUS 1
|
||||||
|
__GFXCTX_DEFINE_p = -dwxUSE_GRAPHICS_CONTEXT=1
|
||||||
|
!endif
|
||||||
|
__DLLFLAG_p =
|
||||||
|
!ifeq SHARED 1
|
||||||
|
__DLLFLAG_p = -dWXUSINGDLL
|
||||||
|
!endif
|
||||||
|
|
||||||
|
### Variables: ###
|
||||||
|
|
||||||
|
WX_RELEASE_NODOT = 28
|
||||||
|
OBJS = &
|
||||||
|
wat_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
|
||||||
|
LIBDIRNAME = .\..\..\lib\wat_$(LIBTYPE_SUFFIX)$(CFG)
|
||||||
|
SETUPHDIR = &
|
||||||
|
$(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
|
||||||
|
AUIDEMO_CXXFLAGS = $(__DEBUGINFO_0) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG_5) &
|
||||||
|
$(__RUNTIME_LIBS_6) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &
|
||||||
|
$(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) &
|
||||||
|
$(__UNICODE_DEFINE_p) $(__GFXCTX_DEFINE_p) -i=$(SETUPHDIR) &
|
||||||
|
-i=.\..\..\include -wx -wcd=549 -wcd=656 -wcd=657 -wcd=667 -i=. $(__DLLFLAG_p) &
|
||||||
|
-i=.\..\..\samples -dNOPCH $(__RTTIFLAG_7) $(__EXCEPTIONSFLAG_8) $(CPPFLAGS) &
|
||||||
|
$(CXXFLAGS)
|
||||||
|
AUIDEMO_OBJECTS = &
|
||||||
|
$(OBJS)\auidemo_auidemo.obj
|
||||||
|
|
||||||
|
|
||||||
|
all : $(OBJS)
|
||||||
|
$(OBJS) :
|
||||||
|
-if not exist $(OBJS) mkdir $(OBJS)
|
||||||
|
|
||||||
|
### Targets: ###
|
||||||
|
|
||||||
|
all : .SYMBOLIC $(OBJS)\auidemo.exe
|
||||||
|
|
||||||
|
clean : .SYMBOLIC
|
||||||
|
-if exist $(OBJS)\*.obj del $(OBJS)\*.obj
|
||||||
|
-if exist $(OBJS)\*.res del $(OBJS)\*.res
|
||||||
|
-if exist $(OBJS)\*.lbc del $(OBJS)\*.lbc
|
||||||
|
-if exist $(OBJS)\*.ilk del $(OBJS)\*.ilk
|
||||||
|
-if exist $(OBJS)\*.pch del $(OBJS)\*.pch
|
||||||
|
-if exist $(OBJS)\auidemo.exe del $(OBJS)\auidemo.exe
|
||||||
|
|
||||||
|
$(OBJS)\auidemo.exe : $(AUIDEMO_OBJECTS) $(OBJS)\auidemo_sample.res
|
||||||
|
@%create $(OBJS)\auidemo.lbc
|
||||||
|
@%append $(OBJS)\auidemo.lbc option quiet
|
||||||
|
@%append $(OBJS)\auidemo.lbc name $^@
|
||||||
|
@%append $(OBJS)\auidemo.lbc option caseexact
|
||||||
|
@%append $(OBJS)\auidemo.lbc $(LDFLAGS) $(__DEBUGINFO_1) libpath $(LIBDIRNAME) system nt_win ref '_WinMain@16'
|
||||||
|
@for %i in ($(AUIDEMO_OBJECTS)) do @%append $(OBJS)\auidemo.lbc file %i
|
||||||
|
@for %i in ( $(__WXLIB_AUI_p) $(__WXLIB_HTML_p) $(__WXLIB_ADV_p) $(__WXLIB_CORE_p) $(__WXLIB_XML_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(EXTRALIBS_FOR_BASE) $(__GDIPLUS_LIB_p) kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib) do @%append $(OBJS)\auidemo.lbc library %i
|
||||||
|
@%append $(OBJS)\auidemo.lbc option resource=$(OBJS)\auidemo_sample.res
|
||||||
|
@for %i in () do @%append $(OBJS)\auidemo.lbc option stack=%i
|
||||||
|
wlink @$(OBJS)\auidemo.lbc
|
||||||
|
|
||||||
|
$(OBJS)\auidemo_sample.res : .AUTODEPEND .\..\..\samples\sample.rc
|
||||||
|
wrc -q -ad -bt=nt -r -fo=$^@ -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__GFXCTX_DEFINE_p) -i=$(SETUPHDIR) -i=.\..\..\include -i=. $(__DLLFLAG_p) -i=.\..\..\samples $<
|
||||||
|
|
||||||
|
$(OBJS)\auidemo_auidemo.obj : .AUTODEPEND .\auidemo.cpp
|
||||||
|
$(CXX) -bt=nt -zq -fo=$^@ $(AUIDEMO_CXXFLAGS) $<
|
||||||
|
|
@@ -1095,32 +1095,50 @@ void MyCanvas::DrawSplines(wxDC& dc)
|
|||||||
|
|
||||||
void MyCanvas::DrawGradients(wxDC& dc)
|
void MyCanvas::DrawGradients(wxDC& dc)
|
||||||
{
|
{
|
||||||
|
static const int TEXT_HEIGHT = 15;
|
||||||
|
|
||||||
// LHS: linear
|
// LHS: linear
|
||||||
wxRect r(10, 10, 100, 100);
|
wxRect r(10, 10, 50, 50);
|
||||||
|
dc.DrawText(_T("wxRIGHT"), r.x, r.y);
|
||||||
|
r.Offset(0, TEXT_HEIGHT);
|
||||||
dc.GradientFillLinear(r, *wxWHITE, *wxBLUE, wxRIGHT);
|
dc.GradientFillLinear(r, *wxWHITE, *wxBLUE, wxRIGHT);
|
||||||
|
|
||||||
r.Offset(0, 110);
|
r.Offset(0, r.height + 10);
|
||||||
|
dc.DrawText(_T("wxLEFT"), r.x, r.y);
|
||||||
|
r.Offset(0, TEXT_HEIGHT);
|
||||||
dc.GradientFillLinear(r, *wxWHITE, *wxBLUE, wxLEFT);
|
dc.GradientFillLinear(r, *wxWHITE, *wxBLUE, wxLEFT);
|
||||||
|
|
||||||
r.Offset(0, 110);
|
r.Offset(0, r.height + 10);
|
||||||
|
dc.DrawText(_T("wxDOWN"), r.x, r.y);
|
||||||
|
r.Offset(0, TEXT_HEIGHT);
|
||||||
dc.GradientFillLinear(r, *wxWHITE, *wxBLUE, wxDOWN);
|
dc.GradientFillLinear(r, *wxWHITE, *wxBLUE, wxDOWN);
|
||||||
|
|
||||||
r.Offset(0, 110);
|
r.Offset(0, r.height + 10);
|
||||||
|
dc.DrawText(_T("wxUP"), r.x, r.y);
|
||||||
|
r.Offset(0, TEXT_HEIGHT);
|
||||||
dc.GradientFillLinear(r, *wxWHITE, *wxBLUE, wxUP);
|
dc.GradientFillLinear(r, *wxWHITE, *wxBLUE, wxUP);
|
||||||
|
|
||||||
|
|
||||||
// RHS: concentric
|
// RHS: concentric
|
||||||
r = wxRect(200, 10, 100, 100);
|
r = wxRect(200, 10, 50, 50);
|
||||||
|
dc.DrawText(_T("Blue inside"), r.x, r.y);
|
||||||
|
r.Offset(0, TEXT_HEIGHT);
|
||||||
dc.GradientFillConcentric(r, *wxBLUE, *wxWHITE);
|
dc.GradientFillConcentric(r, *wxBLUE, *wxWHITE);
|
||||||
|
|
||||||
r.Offset(0, 110);
|
r.Offset(0, r.height + 10);
|
||||||
|
dc.DrawText(_T("White inside"), r.x, r.y);
|
||||||
|
r.Offset(0, TEXT_HEIGHT);
|
||||||
dc.GradientFillConcentric(r, *wxWHITE, *wxBLUE);
|
dc.GradientFillConcentric(r, *wxWHITE, *wxBLUE);
|
||||||
|
|
||||||
r.Offset(0, 110);
|
r.Offset(0, r.height + 10);
|
||||||
|
dc.DrawText(_T("Blue in top left corner"), r.x, r.y);
|
||||||
|
r.Offset(0, TEXT_HEIGHT);
|
||||||
dc.GradientFillConcentric(r, *wxBLUE, *wxWHITE, wxPoint(0, 0));
|
dc.GradientFillConcentric(r, *wxBLUE, *wxWHITE, wxPoint(0, 0));
|
||||||
|
|
||||||
r.Offset(0, 110);
|
r.Offset(0, r.height + 10);
|
||||||
dc.GradientFillConcentric(r, *wxBLUE, *wxWHITE, wxPoint(100, 100));
|
dc.DrawText(_T("Blue in bottom right corner"), r.x, r.y);
|
||||||
|
r.Offset(0, TEXT_HEIGHT);
|
||||||
|
dc.GradientFillConcentric(r, *wxBLUE, *wxWHITE, wxPoint(r.width, r.height));
|
||||||
}
|
}
|
||||||
|
|
||||||
void MyCanvas::DrawRegions(wxDC& dc)
|
void MyCanvas::DrawRegions(wxDC& dc)
|
||||||
|
192
samples/power/Makefile.in
Normal file
192
samples/power/Makefile.in
Normal file
@@ -0,0 +1,192 @@
|
|||||||
|
# =========================================================================
|
||||||
|
# This makefile was generated by
|
||||||
|
# Bakefile 0.2.1 (http://bakefile.sourceforge.net)
|
||||||
|
# Do not modify, all changes will be overwritten!
|
||||||
|
# =========================================================================
|
||||||
|
|
||||||
|
|
||||||
|
@MAKE_SET@
|
||||||
|
|
||||||
|
prefix = @prefix@
|
||||||
|
exec_prefix = @exec_prefix@
|
||||||
|
INSTALL = @INSTALL@
|
||||||
|
EXEEXT = @EXEEXT@
|
||||||
|
WINDRES = @WINDRES@
|
||||||
|
REZ = @REZ@
|
||||||
|
SETFILE = @SETFILE@
|
||||||
|
NM = @NM@
|
||||||
|
BK_DEPS = @BK_DEPS@
|
||||||
|
srcdir = @srcdir@
|
||||||
|
top_srcdir = @top_srcdir@
|
||||||
|
LIBS = @LIBS@
|
||||||
|
LDFLAGS_GUI = @LDFLAGS_GUI@
|
||||||
|
CXX = @CXX@
|
||||||
|
CXXFLAGS = @CXXFLAGS@
|
||||||
|
CPPFLAGS = @CPPFLAGS@
|
||||||
|
LDFLAGS = @LDFLAGS@
|
||||||
|
WX_LIB_FLAVOUR = @WX_LIB_FLAVOUR@
|
||||||
|
TOOLKIT = @TOOLKIT@
|
||||||
|
TOOLKIT_LOWERCASE = @TOOLKIT_LOWERCASE@
|
||||||
|
TOOLKIT_VERSION = @TOOLKIT_VERSION@
|
||||||
|
TOOLCHAIN_FULLNAME = @TOOLCHAIN_FULLNAME@
|
||||||
|
EXTRALIBS = @EXTRALIBS@
|
||||||
|
EXTRALIBS_GUI = @EXTRALIBS_GUI@
|
||||||
|
HOST_SUFFIX = @HOST_SUFFIX@
|
||||||
|
SAMPLES_RPATH_FLAG = @SAMPLES_RPATH_FLAG@
|
||||||
|
SAMPLES_RPATH_POSTLINK = @SAMPLES_RPATH_POSTLINK@
|
||||||
|
wx_top_builddir = @wx_top_builddir@
|
||||||
|
|
||||||
|
### Variables: ###
|
||||||
|
|
||||||
|
DESTDIR =
|
||||||
|
WX_RELEASE = 2.8
|
||||||
|
WX_VERSION = $(WX_RELEASE).0
|
||||||
|
LIBDIRNAME = $(wx_top_builddir)/lib
|
||||||
|
POWER_CXXFLAGS = -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \
|
||||||
|
$(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
|
||||||
|
-I$(srcdir) $(__DLLFLAG_p) -I$(srcdir)/../../samples $(CPPFLAGS) $(CXXFLAGS)
|
||||||
|
POWER_OBJECTS = \
|
||||||
|
$(__power___win32rc) \
|
||||||
|
$(__power_os2_lib_res) \
|
||||||
|
power_power.o
|
||||||
|
|
||||||
|
### Conditionally set variables: ###
|
||||||
|
|
||||||
|
@COND_DEPS_TRACKING_0@CXXC = $(CXX)
|
||||||
|
@COND_DEPS_TRACKING_1@CXXC = $(BK_DEPS) $(CXX)
|
||||||
|
@COND_USE_GUI_0@PORTNAME = base
|
||||||
|
@COND_USE_GUI_1@PORTNAME = $(TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
|
||||||
|
@COND_TOOLKIT_MAC@WXBASEPORT = _carbon
|
||||||
|
@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@WXDEBUGFLAG = d
|
||||||
|
@COND_DEBUG_FLAG_1@WXDEBUGFLAG = d
|
||||||
|
@COND_UNICODE_1@WXUNICODEFLAG = u
|
||||||
|
@COND_WXUNIV_1@WXUNIVNAME = univ
|
||||||
|
@COND_MONOLITHIC_0@EXTRALIBS_FOR_BASE = $(EXTRALIBS)
|
||||||
|
@COND_MONOLITHIC_1@EXTRALIBS_FOR_BASE = $(EXTRALIBS) $(EXTRALIBS_GUI)
|
||||||
|
@COND_MONOLITHIC_0@EXTRALIBS_FOR_GUI = $(EXTRALIBS_GUI)
|
||||||
|
@COND_MONOLITHIC_1@EXTRALIBS_FOR_GUI =
|
||||||
|
@COND_PLATFORM_MAC_1@__power___mac_setfilecmd = \
|
||||||
|
@COND_PLATFORM_MAC_1@ $(SETFILE) -a C power$(EXEEXT)
|
||||||
|
@COND_PLATFORM_MAC_1@__power___mac_rezcmd = $(__MACOSX_RESOURCES_p_1)
|
||||||
|
@COND_WXUNIV_1@__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
|
||||||
|
@COND_WXUNIV_1@__WXUNIV_DEFINE_p_1 = -d __WXUNIVERSAL__
|
||||||
|
@COND_WXUNIV_1@__WXUNIV_DEFINE_p_2 = --define __WXUNIVERSAL__
|
||||||
|
@COND_USE_EXCEPTIONS_0@__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
|
||||||
|
@COND_USE_EXCEPTIONS_0@__EXCEPTIONS_DEFINE_p_1 = -d wxNO_EXCEPTIONS
|
||||||
|
@COND_USE_EXCEPTIONS_0@__EXCEPTIONS_DEFINE_p_2 = --define wxNO_EXCEPTIONS
|
||||||
|
@COND_USE_RTTI_0@__RTTI_DEFINE_p = -DwxNO_RTTI
|
||||||
|
@COND_USE_RTTI_0@__RTTI_DEFINE_p_1 = -d wxNO_RTTI
|
||||||
|
@COND_USE_RTTI_0@__RTTI_DEFINE_p_2 = --define wxNO_RTTI
|
||||||
|
@COND_USE_THREADS_0@__THREAD_DEFINE_p = -DwxNO_THREADS
|
||||||
|
@COND_USE_THREADS_0@__THREAD_DEFINE_p_1 = -d wxNO_THREADS
|
||||||
|
@COND_USE_THREADS_0@__THREAD_DEFINE_p_2 = --define wxNO_THREADS
|
||||||
|
@COND_SHARED_1@__DLLFLAG_p = -DWXUSINGDLL
|
||||||
|
@COND_SHARED_1@__DLLFLAG_p_1 = -d WXUSINGDLL
|
||||||
|
@COND_SHARED_1@__DLLFLAG_p_2 = --define WXUSINGDLL
|
||||||
|
COND_PLATFORM_OS2_1___power___os2_emxbindcmd = $(NM) power$(EXEEXT) | if grep -q \
|
||||||
|
pmwin.763 ; then emxbind -ep power$(EXEEXT) ; fi
|
||||||
|
@COND_PLATFORM_OS2_1@__power___os2_emxbindcmd = $(COND_PLATFORM_OS2_1___power___os2_emxbindcmd)
|
||||||
|
@COND_TOOLKIT_MSW@__RCDEFDIR_p = -i \
|
||||||
|
@COND_TOOLKIT_MSW@ $(LIBDIRNAME)/wx/include/$(TOOLCHAIN_FULLNAME)
|
||||||
|
@COND_TOOLKIT_MSW@__RCDEFDIR_p_1 = --include-dir \
|
||||||
|
@COND_TOOLKIT_MSW@ $(LIBDIRNAME)/wx/include/$(TOOLCHAIN_FULLNAME)
|
||||||
|
@COND_PLATFORM_WIN32_1@__power___win32rc = power_sample_rc.o
|
||||||
|
@COND_PLATFORM_OS2_1@__power_os2_lib_res = \
|
||||||
|
@COND_PLATFORM_OS2_1@ $(top_srcdir)/include/wx/os2/wx.res
|
||||||
|
@COND_PLATFORM_MACOSX_1@__power_bundle___depname = power_bundle
|
||||||
|
@COND_TOOLKIT_COCOA@____power_BUNDLE_TGT_REF_DEP = \
|
||||||
|
@COND_TOOLKIT_COCOA@ power.app/Contents/PkgInfo
|
||||||
|
@COND_TOOLKIT_MAC@____power_BUNDLE_TGT_REF_DEP = power.app/Contents/PkgInfo
|
||||||
|
COND_MONOLITHIC_0___WXLIB_CORE_p = \
|
||||||
|
-lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core-$(WX_RELEASE)$(HOST_SUFFIX)
|
||||||
|
@COND_MONOLITHIC_0@__WXLIB_CORE_p = $(COND_MONOLITHIC_0___WXLIB_CORE_p)
|
||||||
|
COND_MONOLITHIC_0___WXLIB_BASE_p = \
|
||||||
|
-lwx_base$(WXBASEPORT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
|
||||||
|
@COND_MONOLITHIC_0@__WXLIB_BASE_p = $(COND_MONOLITHIC_0___WXLIB_BASE_p)
|
||||||
|
COND_MONOLITHIC_1___WXLIB_MONO_p = \
|
||||||
|
-lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
|
||||||
|
@COND_MONOLITHIC_1@__WXLIB_MONO_p = $(COND_MONOLITHIC_1___WXLIB_MONO_p)
|
||||||
|
@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@__LIB_TIFF_p \
|
||||||
|
@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@ = \
|
||||||
|
@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@ -lwxtiff$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
|
||||||
|
@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@__LIB_JPEG_p \
|
||||||
|
@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@ = \
|
||||||
|
@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@ -lwxjpeg$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
|
||||||
|
@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@__LIB_PNG_p \
|
||||||
|
@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@ = \
|
||||||
|
@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@ -lwxpng$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
|
||||||
|
@COND_WXUSE_ZLIB_BUILTIN@__LIB_ZLIB_p = \
|
||||||
|
@COND_WXUSE_ZLIB_BUILTIN@ -lwxzlib$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
|
||||||
|
@COND_WXUSE_ODBC_BUILTIN@__LIB_ODBC_p = \
|
||||||
|
@COND_WXUSE_ODBC_BUILTIN@ -lwxodbc$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
|
||||||
|
COND_WXUSE_REGEX_BUILTIN___LIB_REGEX_p = \
|
||||||
|
-lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
|
||||||
|
@COND_WXUSE_REGEX_BUILTIN@__LIB_REGEX_p = $(COND_WXUSE_REGEX_BUILTIN___LIB_REGEX_p)
|
||||||
|
@COND_WXUSE_EXPAT_BUILTIN@__LIB_EXPAT_p = \
|
||||||
|
@COND_WXUSE_EXPAT_BUILTIN@ -lwxexpat$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
|
||||||
|
COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_1 = $(REZ) -d __DARWIN__ -t APPL -d \
|
||||||
|
__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_1) $(__EXCEPTIONS_DEFINE_p_1) \
|
||||||
|
$(__RTTI_DEFINE_p_1) $(__THREAD_DEFINE_p_1) -i $(srcdir) $(__DLLFLAG_p_1) -i \
|
||||||
|
$(srcdir)/../../samples $(__RCDEFDIR_p) -i $(top_srcdir)/include -o \
|
||||||
|
power$(EXEEXT) Carbon.r sample.r
|
||||||
|
@COND_TOOLKIT_MAC@__MACOSX_RESOURCES_p_1 = $(COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_1)
|
||||||
|
|
||||||
|
### Targets: ###
|
||||||
|
|
||||||
|
all: power$(EXEEXT) $(__power_bundle___depname)
|
||||||
|
|
||||||
|
install: all
|
||||||
|
|
||||||
|
uninstall:
|
||||||
|
|
||||||
|
install-strip: install
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -rf ./.deps ./.pch
|
||||||
|
rm -f ./*.o
|
||||||
|
rm -f power$(EXEEXT)
|
||||||
|
rm -rf power.app
|
||||||
|
|
||||||
|
distclean: clean
|
||||||
|
rm -f config.cache config.log config.status bk-deps bk-make-pch shared-ld-sh Makefile
|
||||||
|
|
||||||
|
power$(EXEEXT): $(POWER_OBJECTS) $(__power___win32rc)
|
||||||
|
$(CXX) -o $@ $(POWER_OBJECTS) $(LDFLAGS) -L$(LIBDIRNAME) $(LDFLAGS_GUI) $(SAMPLES_RPATH_FLAG) $(LIBS) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) $(EXTRALIBS_FOR_GUI) $(__LIB_ZLIB_p) $(__LIB_ODBC_p) $(__LIB_REGEX_p) $(__LIB_EXPAT_p) $(EXTRALIBS_FOR_BASE)
|
||||||
|
$(__power___mac_rezcmd)
|
||||||
|
$(__power___mac_setfilecmd)
|
||||||
|
$(__power___os2_emxbindcmd)
|
||||||
|
$(SAMPLES_RPATH_POSTLINK)
|
||||||
|
|
||||||
|
power.app/Contents/PkgInfo: power$(EXEEXT) $(top_srcdir)/src/mac/carbon/Info.plist.in $(top_srcdir)/src/mac/carbon/wxmac.icns
|
||||||
|
mkdir -p power.app/Contents
|
||||||
|
mkdir -p power.app/Contents/MacOS
|
||||||
|
mkdir -p power.app/Contents/Resources
|
||||||
|
|
||||||
|
|
||||||
|
sed -e "s/IDENTIFIER/`echo $(srcdir) | sed -e 's,\.\./,,g' | sed -e 's,/,.,g'`/" \
|
||||||
|
-e "s/EXECUTABLE/power/" \
|
||||||
|
-e "s/VERSION/$(WX_VERSION)/" \
|
||||||
|
$(top_srcdir)/src/mac/carbon/Info.plist.in >power.app/Contents/Info.plist
|
||||||
|
|
||||||
|
|
||||||
|
echo -n "APPL????" >power.app/Contents/PkgInfo
|
||||||
|
|
||||||
|
|
||||||
|
ln -f power$(EXEEXT) power.app/Contents/MacOS/power
|
||||||
|
|
||||||
|
|
||||||
|
cp -f $(top_srcdir)/src/mac/carbon/wxmac.icns power.app/Contents/Resources/wxmac.icns
|
||||||
|
|
||||||
|
@COND_PLATFORM_MACOSX_1@power_bundle: $(____power_BUNDLE_TGT_REF_DEP)
|
||||||
|
|
||||||
|
power_sample_rc.o: $(srcdir)/../../samples/sample.rc
|
||||||
|
$(WINDRES) -i$< -o$@ --define __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_2) $(__EXCEPTIONS_DEFINE_p_2) $(__RTTI_DEFINE_p_2) $(__THREAD_DEFINE_p_2) --include-dir $(srcdir) $(__DLLFLAG_p_2) --include-dir $(srcdir)/../../samples $(__RCDEFDIR_p_1) --include-dir $(top_srcdir)/include
|
||||||
|
|
||||||
|
power_power.o: $(srcdir)/power.cpp
|
||||||
|
$(CXXC) -c -o $@ $(POWER_CXXFLAGS) $(srcdir)/power.cpp
|
||||||
|
|
||||||
|
|
||||||
|
# Include dependency info, if present:
|
||||||
|
@IF_GNU_MAKE@-include .deps/*.d
|
||||||
|
|
||||||
|
.PHONY: all install uninstall clean distclean power_bundle
|
234
samples/power/makefile.bcc
Normal file
234
samples/power/makefile.bcc
Normal file
@@ -0,0 +1,234 @@
|
|||||||
|
# =========================================================================
|
||||||
|
# This makefile was generated by
|
||||||
|
# Bakefile 0.2.1 (http://bakefile.sourceforge.net)
|
||||||
|
# Do not modify, all changes will be overwritten!
|
||||||
|
# =========================================================================
|
||||||
|
|
||||||
|
.autodepend
|
||||||
|
|
||||||
|
!ifndef BCCDIR
|
||||||
|
!ifndef MAKEDIR
|
||||||
|
!error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4
|
||||||
|
!endif
|
||||||
|
BCCDIR = $(MAKEDIR)\..
|
||||||
|
!endif
|
||||||
|
|
||||||
|
!include ../../build/msw/config.bcc
|
||||||
|
|
||||||
|
# -------------------------------------------------------------------------
|
||||||
|
# Do not modify the rest of this file!
|
||||||
|
# -------------------------------------------------------------------------
|
||||||
|
|
||||||
|
### Variables: ###
|
||||||
|
|
||||||
|
WX_RELEASE_NODOT = 28
|
||||||
|
OBJS = \
|
||||||
|
bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
|
||||||
|
LIBDIRNAME = .\..\..\lib\bcc_$(LIBTYPE_SUFFIX)$(CFG)
|
||||||
|
SETUPHDIR = \
|
||||||
|
$(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
|
||||||
|
POWER_CXXFLAGS = $(__RUNTIME_LIBS_7) -I$(BCCDIR)\include $(__DEBUGINFO) \
|
||||||
|
$(__OPTIMIZEFLAG_2) $(__THREADSFLAG_6) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
|
||||||
|
$(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
|
||||||
|
$(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
|
||||||
|
$(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include -I. $(__DLLFLAG_p) \
|
||||||
|
-I.\..\..\samples -DNOPCH $(CPPFLAGS) $(CXXFLAGS)
|
||||||
|
POWER_OBJECTS = \
|
||||||
|
$(OBJS)\power_power.obj
|
||||||
|
|
||||||
|
### Conditionally set variables: ###
|
||||||
|
|
||||||
|
!if "$(USE_GUI)" == "0"
|
||||||
|
PORTNAME = base
|
||||||
|
!endif
|
||||||
|
!if "$(USE_GUI)" == "1"
|
||||||
|
PORTNAME = msw
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
|
||||||
|
WXDEBUGFLAG = d
|
||||||
|
!endif
|
||||||
|
!if "$(DEBUG_FLAG)" == "1"
|
||||||
|
WXDEBUGFLAG = d
|
||||||
|
!endif
|
||||||
|
!if "$(UNICODE)" == "1"
|
||||||
|
WXUNICODEFLAG = u
|
||||||
|
!endif
|
||||||
|
!if "$(WXUNIV)" == "1"
|
||||||
|
WXUNIVNAME = univ
|
||||||
|
!endif
|
||||||
|
!if "$(SHARED)" == "1"
|
||||||
|
WXDLLFLAG = dll
|
||||||
|
!endif
|
||||||
|
!if "$(SHARED)" == "0"
|
||||||
|
LIBTYPE_SUFFIX = lib
|
||||||
|
!endif
|
||||||
|
!if "$(SHARED)" == "1"
|
||||||
|
LIBTYPE_SUFFIX = dll
|
||||||
|
!endif
|
||||||
|
!if "$(MONOLITHIC)" == "0"
|
||||||
|
EXTRALIBS_FOR_BASE =
|
||||||
|
!endif
|
||||||
|
!if "$(MONOLITHIC)" == "1"
|
||||||
|
EXTRALIBS_FOR_BASE =
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "debug"
|
||||||
|
__OPTIMIZEFLAG_2 = -Od
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "release"
|
||||||
|
__OPTIMIZEFLAG_2 = -O2
|
||||||
|
!endif
|
||||||
|
!if "$(USE_THREADS)" == "0"
|
||||||
|
__THREADSFLAG_5 =
|
||||||
|
!endif
|
||||||
|
!if "$(USE_THREADS)" == "1"
|
||||||
|
__THREADSFLAG_5 = mt
|
||||||
|
!endif
|
||||||
|
!if "$(USE_THREADS)" == "0"
|
||||||
|
__THREADSFLAG_6 =
|
||||||
|
!endif
|
||||||
|
!if "$(USE_THREADS)" == "1"
|
||||||
|
__THREADSFLAG_6 = -tWM
|
||||||
|
!endif
|
||||||
|
!if "$(RUNTIME_LIBS)" == "dynamic"
|
||||||
|
__RUNTIME_LIBS_7 = -tWR
|
||||||
|
!endif
|
||||||
|
!if "$(RUNTIME_LIBS)" == "static"
|
||||||
|
__RUNTIME_LIBS_7 =
|
||||||
|
!endif
|
||||||
|
!if "$(RUNTIME_LIBS)" == "dynamic"
|
||||||
|
__RUNTIME_LIBS_8 = i
|
||||||
|
!endif
|
||||||
|
!if "$(RUNTIME_LIBS)" == "static"
|
||||||
|
__RUNTIME_LIBS_8 =
|
||||||
|
!endif
|
||||||
|
!if "$(WXUNIV)" == "1"
|
||||||
|
__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
|
||||||
|
!endif
|
||||||
|
!if "$(WXUNIV)" == "1"
|
||||||
|
__WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
|
||||||
|
__DEBUG_DEFINE_p = -D__WXDEBUG__
|
||||||
|
!endif
|
||||||
|
!if "$(DEBUG_FLAG)" == "1"
|
||||||
|
__DEBUG_DEFINE_p = -D__WXDEBUG__
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
|
||||||
|
__DEBUG_DEFINE_p_1 = -d__WXDEBUG__
|
||||||
|
!endif
|
||||||
|
!if "$(DEBUG_FLAG)" == "1"
|
||||||
|
__DEBUG_DEFINE_p_1 = -d__WXDEBUG__
|
||||||
|
!endif
|
||||||
|
!if "$(USE_EXCEPTIONS)" == "0"
|
||||||
|
__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
|
||||||
|
!endif
|
||||||
|
!if "$(USE_EXCEPTIONS)" == "0"
|
||||||
|
__EXCEPTIONS_DEFINE_p_1 = -dwxNO_EXCEPTIONS
|
||||||
|
!endif
|
||||||
|
!if "$(USE_RTTI)" == "0"
|
||||||
|
__RTTI_DEFINE_p = -DwxNO_RTTI
|
||||||
|
!endif
|
||||||
|
!if "$(USE_RTTI)" == "0"
|
||||||
|
__RTTI_DEFINE_p_1 = -dwxNO_RTTI
|
||||||
|
!endif
|
||||||
|
!if "$(USE_THREADS)" == "0"
|
||||||
|
__THREAD_DEFINE_p = -DwxNO_THREADS
|
||||||
|
!endif
|
||||||
|
!if "$(USE_THREADS)" == "0"
|
||||||
|
__THREAD_DEFINE_p_1 = -dwxNO_THREADS
|
||||||
|
!endif
|
||||||
|
!if "$(UNICODE)" == "1"
|
||||||
|
__UNICODE_DEFINE_p = -D_UNICODE
|
||||||
|
!endif
|
||||||
|
!if "$(UNICODE)" == "1"
|
||||||
|
__UNICODE_DEFINE_p_1 = -d_UNICODE
|
||||||
|
!endif
|
||||||
|
!if "$(MSLU)" == "1"
|
||||||
|
__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
|
||||||
|
!endif
|
||||||
|
!if "$(MSLU)" == "1"
|
||||||
|
__MSLU_DEFINE_p_1 = -dwxUSE_UNICODE_MSLU=1
|
||||||
|
!endif
|
||||||
|
!if "$(USE_GDIPLUS)" == "1"
|
||||||
|
__GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
|
||||||
|
!endif
|
||||||
|
!if "$(USE_GDIPLUS)" == "1"
|
||||||
|
__GFXCTX_DEFINE_p_1 = -dwxUSE_GRAPHICS_CONTEXT=1
|
||||||
|
!endif
|
||||||
|
!if "$(SHARED)" == "1"
|
||||||
|
__DLLFLAG_p = -DWXUSINGDLL
|
||||||
|
!endif
|
||||||
|
!if "$(SHARED)" == "1"
|
||||||
|
__DLLFLAG_p_1 = -dWXUSINGDLL
|
||||||
|
!endif
|
||||||
|
!if "$(MONOLITHIC)" == "0"
|
||||||
|
__WXLIB_CORE_p = \
|
||||||
|
wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
|
||||||
|
!endif
|
||||||
|
!if "$(MONOLITHIC)" == "0"
|
||||||
|
__WXLIB_BASE_p = \
|
||||||
|
wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
|
||||||
|
!endif
|
||||||
|
!if "$(MONOLITHIC)" == "1"
|
||||||
|
__WXLIB_MONO_p = \
|
||||||
|
wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
|
||||||
|
!endif
|
||||||
|
!if "$(USE_GUI)" == "1"
|
||||||
|
__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
|
||||||
|
!endif
|
||||||
|
!if "$(USE_GUI)" == "1"
|
||||||
|
__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
|
||||||
|
!endif
|
||||||
|
!if "$(USE_GUI)" == "1"
|
||||||
|
__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
|
||||||
|
!endif
|
||||||
|
!if "$(MSLU)" == "1"
|
||||||
|
__UNICOWS_LIB_p = unicows.lib
|
||||||
|
!endif
|
||||||
|
!if "$(USE_GDIPLUS)" == "1"
|
||||||
|
__GDIPLUS_LIB_p = gdiplus.lib
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
|
||||||
|
__DEBUGINFO = -v
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
|
||||||
|
__DEBUGINFO = -v-
|
||||||
|
!endif
|
||||||
|
!if "$(DEBUG_INFO)" == "0"
|
||||||
|
__DEBUGINFO = -v-
|
||||||
|
!endif
|
||||||
|
!if "$(DEBUG_INFO)" == "1"
|
||||||
|
__DEBUGINFO = -v
|
||||||
|
!endif
|
||||||
|
|
||||||
|
|
||||||
|
all: $(OBJS)
|
||||||
|
$(OBJS):
|
||||||
|
-if not exist $(OBJS) mkdir $(OBJS)
|
||||||
|
|
||||||
|
### Targets: ###
|
||||||
|
|
||||||
|
all: $(OBJS)\power.exe
|
||||||
|
|
||||||
|
clean:
|
||||||
|
-if exist $(OBJS)\*.obj del $(OBJS)\*.obj
|
||||||
|
-if exist $(OBJS)\*.res del $(OBJS)\*.res
|
||||||
|
-if exist $(OBJS)\*.csm del $(OBJS)\*.csm
|
||||||
|
-if exist $(OBJS)\power.exe del $(OBJS)\power.exe
|
||||||
|
-if exist $(OBJS)\power.tds del $(OBJS)\power.tds
|
||||||
|
-if exist $(OBJS)\power.ilc del $(OBJS)\power.ilc
|
||||||
|
-if exist $(OBJS)\power.ild del $(OBJS)\power.ild
|
||||||
|
-if exist $(OBJS)\power.ilf del $(OBJS)\power.ilf
|
||||||
|
-if exist $(OBJS)\power.ils del $(OBJS)\power.ils
|
||||||
|
|
||||||
|
$(OBJS)\power.exe: $(POWER_OBJECTS) $(OBJS)\power_sample.res
|
||||||
|
ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&|
|
||||||
|
c0w32.obj $(POWER_OBJECTS),$@,, $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__GDIPLUS_LIB_p) ole2w32.lib oleacc.lib odbc32.lib import32.lib cw32$(__THREADSFLAG_5)$(__RUNTIME_LIBS_8).lib,, $(OBJS)\power_sample.res
|
||||||
|
|
|
||||||
|
|
||||||
|
$(OBJS)\power_sample.res: .\..\..\samples\sample.rc
|
||||||
|
brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -d__WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__EXCEPTIONS_DEFINE_p_1) $(__RTTI_DEFINE_p_1) $(__THREAD_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) $(__MSLU_DEFINE_p_1) $(__GFXCTX_DEFINE_p_1) -i$(SETUPHDIR) -i.\..\..\include -i. $(__DLLFLAG_p_1) -i.\..\..\samples $**
|
||||||
|
|
||||||
|
$(OBJS)\power_power.obj: .\power.cpp
|
||||||
|
$(CXX) -q -c -P -o$@ $(POWER_CXXFLAGS) $**
|
||||||
|
|
232
samples/power/makefile.gcc
Normal file
232
samples/power/makefile.gcc
Normal file
@@ -0,0 +1,232 @@
|
|||||||
|
# =========================================================================
|
||||||
|
# This makefile was generated by
|
||||||
|
# Bakefile 0.2.1 (http://bakefile.sourceforge.net)
|
||||||
|
# Do not modify, all changes will be overwritten!
|
||||||
|
# =========================================================================
|
||||||
|
|
||||||
|
include ../../build/msw/config.gcc
|
||||||
|
|
||||||
|
# -------------------------------------------------------------------------
|
||||||
|
# Do not modify the rest of this file!
|
||||||
|
# -------------------------------------------------------------------------
|
||||||
|
|
||||||
|
### Variables: ###
|
||||||
|
|
||||||
|
CPPDEPS = -MT$@ -MF$@.d -MD
|
||||||
|
WX_RELEASE_NODOT = 28
|
||||||
|
OBJS = \
|
||||||
|
gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
|
||||||
|
LIBDIRNAME = .\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
|
||||||
|
SETUPHDIR = \
|
||||||
|
$(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
|
||||||
|
POWER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) \
|
||||||
|
$(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
|
||||||
|
$(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
|
||||||
|
$(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
|
||||||
|
$(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include -W -Wall -I. \
|
||||||
|
$(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG_5) \
|
||||||
|
$(__EXCEPTIONSFLAG_6) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
|
||||||
|
POWER_OBJECTS = \
|
||||||
|
$(OBJS)\power_sample_rc.o \
|
||||||
|
$(OBJS)\power_power.o
|
||||||
|
|
||||||
|
### Conditionally set variables: ###
|
||||||
|
|
||||||
|
ifeq ($(GCC_VERSION),2.95)
|
||||||
|
GCCFLAGS = -fvtable-thunks
|
||||||
|
endif
|
||||||
|
ifeq ($(USE_GUI),0)
|
||||||
|
PORTNAME = base
|
||||||
|
endif
|
||||||
|
ifeq ($(USE_GUI),1)
|
||||||
|
PORTNAME = msw
|
||||||
|
endif
|
||||||
|
ifeq ($(BUILD),debug)
|
||||||
|
ifeq ($(DEBUG_FLAG),default)
|
||||||
|
WXDEBUGFLAG = d
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
ifeq ($(DEBUG_FLAG),1)
|
||||||
|
WXDEBUGFLAG = d
|
||||||
|
endif
|
||||||
|
ifeq ($(UNICODE),1)
|
||||||
|
WXUNICODEFLAG = u
|
||||||
|
endif
|
||||||
|
ifeq ($(WXUNIV),1)
|
||||||
|
WXUNIVNAME = univ
|
||||||
|
endif
|
||||||
|
ifeq ($(SHARED),1)
|
||||||
|
WXDLLFLAG = dll
|
||||||
|
endif
|
||||||
|
ifeq ($(SHARED),0)
|
||||||
|
LIBTYPE_SUFFIX = lib
|
||||||
|
endif
|
||||||
|
ifeq ($(SHARED),1)
|
||||||
|
LIBTYPE_SUFFIX = dll
|
||||||
|
endif
|
||||||
|
ifeq ($(MONOLITHIC),0)
|
||||||
|
EXTRALIBS_FOR_BASE =
|
||||||
|
endif
|
||||||
|
ifeq ($(MONOLITHIC),1)
|
||||||
|
EXTRALIBS_FOR_BASE =
|
||||||
|
endif
|
||||||
|
ifeq ($(BUILD),debug)
|
||||||
|
__OPTIMIZEFLAG_2 = -O0
|
||||||
|
endif
|
||||||
|
ifeq ($(BUILD),release)
|
||||||
|
__OPTIMIZEFLAG_2 = -O2
|
||||||
|
endif
|
||||||
|
ifeq ($(USE_RTTI),0)
|
||||||
|
__RTTIFLAG_5 = -fno-rtti
|
||||||
|
endif
|
||||||
|
ifeq ($(USE_RTTI),1)
|
||||||
|
__RTTIFLAG_5 =
|
||||||
|
endif
|
||||||
|
ifeq ($(USE_EXCEPTIONS),0)
|
||||||
|
__EXCEPTIONSFLAG_6 = -fno-exceptions
|
||||||
|
endif
|
||||||
|
ifeq ($(USE_EXCEPTIONS),1)
|
||||||
|
__EXCEPTIONSFLAG_6 =
|
||||||
|
endif
|
||||||
|
ifeq ($(WXUNIV),1)
|
||||||
|
__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
|
||||||
|
endif
|
||||||
|
ifeq ($(WXUNIV),1)
|
||||||
|
__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
|
||||||
|
endif
|
||||||
|
ifeq ($(BUILD),debug)
|
||||||
|
ifeq ($(DEBUG_FLAG),default)
|
||||||
|
__DEBUG_DEFINE_p = -D__WXDEBUG__
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
ifeq ($(DEBUG_FLAG),1)
|
||||||
|
__DEBUG_DEFINE_p = -D__WXDEBUG__
|
||||||
|
endif
|
||||||
|
ifeq ($(BUILD),debug)
|
||||||
|
ifeq ($(DEBUG_FLAG),default)
|
||||||
|
__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
ifeq ($(DEBUG_FLAG),1)
|
||||||
|
__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
|
||||||
|
endif
|
||||||
|
ifeq ($(USE_EXCEPTIONS),0)
|
||||||
|
__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
|
||||||
|
endif
|
||||||
|
ifeq ($(USE_EXCEPTIONS),0)
|
||||||
|
__EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
|
||||||
|
endif
|
||||||
|
ifeq ($(USE_RTTI),0)
|
||||||
|
__RTTI_DEFINE_p = -DwxNO_RTTI
|
||||||
|
endif
|
||||||
|
ifeq ($(USE_RTTI),0)
|
||||||
|
__RTTI_DEFINE_p_1 = --define wxNO_RTTI
|
||||||
|
endif
|
||||||
|
ifeq ($(USE_THREADS),0)
|
||||||
|
__THREAD_DEFINE_p = -DwxNO_THREADS
|
||||||
|
endif
|
||||||
|
ifeq ($(USE_THREADS),0)
|
||||||
|
__THREAD_DEFINE_p_1 = --define wxNO_THREADS
|
||||||
|
endif
|
||||||
|
ifeq ($(UNICODE),1)
|
||||||
|
__UNICODE_DEFINE_p = -D_UNICODE
|
||||||
|
endif
|
||||||
|
ifeq ($(UNICODE),1)
|
||||||
|
__UNICODE_DEFINE_p_1 = --define _UNICODE
|
||||||
|
endif
|
||||||
|
ifeq ($(MSLU),1)
|
||||||
|
__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
|
||||||
|
endif
|
||||||
|
ifeq ($(MSLU),1)
|
||||||
|
__MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
|
||||||
|
endif
|
||||||
|
ifeq ($(USE_GDIPLUS),1)
|
||||||
|
__GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
|
||||||
|
endif
|
||||||
|
ifeq ($(USE_GDIPLUS),1)
|
||||||
|
__GFXCTX_DEFINE_p_1 = --define wxUSE_GRAPHICS_CONTEXT=1
|
||||||
|
endif
|
||||||
|
ifeq ($(SHARED),1)
|
||||||
|
__DLLFLAG_p = -DWXUSINGDLL
|
||||||
|
endif
|
||||||
|
ifeq ($(SHARED),1)
|
||||||
|
__DLLFLAG_p_1 = --define WXUSINGDLL
|
||||||
|
endif
|
||||||
|
ifeq ($(MONOLITHIC),0)
|
||||||
|
__WXLIB_CORE_p = \
|
||||||
|
-lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
|
||||||
|
endif
|
||||||
|
ifeq ($(MONOLITHIC),0)
|
||||||
|
__WXLIB_BASE_p = \
|
||||||
|
-lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
|
||||||
|
endif
|
||||||
|
ifeq ($(MONOLITHIC),1)
|
||||||
|
__WXLIB_MONO_p = \
|
||||||
|
-lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
|
||||||
|
endif
|
||||||
|
ifeq ($(USE_GUI),1)
|
||||||
|
__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
|
||||||
|
endif
|
||||||
|
ifeq ($(USE_GUI),1)
|
||||||
|
__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
|
||||||
|
endif
|
||||||
|
ifeq ($(USE_GUI),1)
|
||||||
|
__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
|
||||||
|
endif
|
||||||
|
ifeq ($(MSLU),1)
|
||||||
|
__UNICOWS_LIB_p = -lunicows
|
||||||
|
endif
|
||||||
|
ifeq ($(USE_GDIPLUS),1)
|
||||||
|
__GDIPLUS_LIB_p = -lgdiplus
|
||||||
|
endif
|
||||||
|
ifeq ($(BUILD),debug)
|
||||||
|
ifeq ($(DEBUG_INFO),default)
|
||||||
|
__DEBUGINFO = -g
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
ifeq ($(BUILD),release)
|
||||||
|
ifeq ($(DEBUG_INFO),default)
|
||||||
|
__DEBUGINFO =
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
ifeq ($(DEBUG_INFO),0)
|
||||||
|
__DEBUGINFO =
|
||||||
|
endif
|
||||||
|
ifeq ($(DEBUG_INFO),1)
|
||||||
|
__DEBUGINFO = -g
|
||||||
|
endif
|
||||||
|
ifeq ($(USE_THREADS),0)
|
||||||
|
__THREADSFLAG =
|
||||||
|
endif
|
||||||
|
ifeq ($(USE_THREADS),1)
|
||||||
|
__THREADSFLAG = -mthreads
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
all: $(OBJS)
|
||||||
|
$(OBJS):
|
||||||
|
-if not exist $(OBJS) mkdir $(OBJS)
|
||||||
|
|
||||||
|
### Targets: ###
|
||||||
|
|
||||||
|
all: $(OBJS)\power.exe
|
||||||
|
|
||||||
|
clean:
|
||||||
|
-if exist $(OBJS)\*.o del $(OBJS)\*.o
|
||||||
|
-if exist $(OBJS)\*.d del $(OBJS)\*.d
|
||||||
|
-if exist $(OBJS)\power.exe del $(OBJS)\power.exe
|
||||||
|
|
||||||
|
$(OBJS)\power.exe: $(POWER_OBJECTS) $(OBJS)\power_sample_rc.o
|
||||||
|
$(CXX) -o $@ $(POWER_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__GDIPLUS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
|
||||||
|
|
||||||
|
$(OBJS)\power_sample_rc.o: ./../../samples/sample.rc
|
||||||
|
windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__EXCEPTIONS_DEFINE_p_1) $(__RTTI_DEFINE_p_1) $(__THREAD_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) $(__MSLU_DEFINE_p_1) $(__GFXCTX_DEFINE_p_1) --include-dir $(SETUPHDIR) --include-dir ./../../include --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../samples
|
||||||
|
|
||||||
|
$(OBJS)\power_power.o: ./power.cpp
|
||||||
|
$(CXX) -c -o $@ $(POWER_CXXFLAGS) $(CPPDEPS) $<
|
||||||
|
|
||||||
|
.PHONY: all clean
|
||||||
|
|
||||||
|
|
||||||
|
# Dependencies tracking:
|
||||||
|
-include $(OBJS)/*.d
|
71
samples/power/makefile.unx
Normal file
71
samples/power/makefile.unx
Normal file
@@ -0,0 +1,71 @@
|
|||||||
|
# =========================================================================
|
||||||
|
# This makefile was generated by
|
||||||
|
# Bakefile 0.2.1 (http://bakefile.sourceforge.net)
|
||||||
|
# Do not modify, all changes will be overwritten!
|
||||||
|
# =========================================================================
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# -------------------------------------------------------------------------
|
||||||
|
# These are configurable options:
|
||||||
|
# -------------------------------------------------------------------------
|
||||||
|
|
||||||
|
# C++ compiler
|
||||||
|
CXX = g++
|
||||||
|
|
||||||
|
# Standard flags for C++
|
||||||
|
CXXFLAGS =
|
||||||
|
|
||||||
|
# Standard preprocessor flags (common for CC and CXX)
|
||||||
|
CPPFLAGS =
|
||||||
|
|
||||||
|
# Standard linker flags
|
||||||
|
LDFLAGS =
|
||||||
|
|
||||||
|
# Location and arguments of wx-config script
|
||||||
|
WX_CONFIG = wx-config
|
||||||
|
|
||||||
|
# C++ flags to use with wxWidgets code
|
||||||
|
WX_CXXFLAGS = `$(WX_CONFIG) --cxxflags`
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# -------------------------------------------------------------------------
|
||||||
|
# Do not modify the rest of this file!
|
||||||
|
# -------------------------------------------------------------------------
|
||||||
|
|
||||||
|
### Variables: ###
|
||||||
|
|
||||||
|
CPPDEPS = -MT$@ -MF`echo $@ | sed -e 's,\.o$$,.d,'` -MD
|
||||||
|
POWER_CXXFLAGS = -I. $(WX_CXXFLAGS) $(CPPFLAGS) $(CXXFLAGS)
|
||||||
|
POWER_OBJECTS = \
|
||||||
|
power_power.o
|
||||||
|
|
||||||
|
### Conditionally set variables: ###
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Targets: ###
|
||||||
|
|
||||||
|
all: power
|
||||||
|
|
||||||
|
install: all
|
||||||
|
|
||||||
|
uninstall:
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f ./*.o
|
||||||
|
rm -f ./*.d
|
||||||
|
rm -f power
|
||||||
|
|
||||||
|
power: $(POWER_OBJECTS)
|
||||||
|
$(CXX) -o $@ $(POWER_OBJECTS) $(LDFLAGS) `$(WX_CONFIG) --libs core,base`
|
||||||
|
|
||||||
|
power_power.o: ./power.cpp
|
||||||
|
$(CXX) -c -o $@ $(POWER_CXXFLAGS) $(CPPDEPS) $<
|
||||||
|
|
||||||
|
.PHONY: all install uninstall clean
|
||||||
|
|
||||||
|
|
||||||
|
# Dependencies tracking:
|
||||||
|
-include ./*.d
|
309
samples/power/makefile.vc
Normal file
309
samples/power/makefile.vc
Normal file
@@ -0,0 +1,309 @@
|
|||||||
|
# =========================================================================
|
||||||
|
# This makefile was generated by
|
||||||
|
# Bakefile 0.2.1 (http://bakefile.sourceforge.net)
|
||||||
|
# Do not modify, all changes will be overwritten!
|
||||||
|
# =========================================================================
|
||||||
|
|
||||||
|
!include <../../build/msw/config.vc>
|
||||||
|
|
||||||
|
# -------------------------------------------------------------------------
|
||||||
|
# Do not modify the rest of this file!
|
||||||
|
# -------------------------------------------------------------------------
|
||||||
|
|
||||||
|
### Variables: ###
|
||||||
|
|
||||||
|
WX_RELEASE_NODOT = 28
|
||||||
|
OBJS = \
|
||||||
|
vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)$(DIR_SUFFIX_CPU)
|
||||||
|
LIBDIRNAME = .\..\..\lib\vc$(DIR_SUFFIX_CPU)_$(LIBTYPE_SUFFIX)$(CFG)
|
||||||
|
SETUPHDIR = \
|
||||||
|
$(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
|
||||||
|
POWER_CXXFLAGS = /M$(__RUNTIME_LIBS_8)$(__DEBUGRUNTIME_3) /DWIN32 \
|
||||||
|
$(__DEBUGINFO_0) /Fd$(OBJS)\power.pdb $(____DEBUGRUNTIME_2_p) \
|
||||||
|
$(__OPTIMIZEFLAG_4) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
|
||||||
|
$(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
|
||||||
|
$(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
|
||||||
|
$(__GFXCTX_DEFINE_p) /I$(SETUPHDIR) /I.\..\..\include /W4 /I. $(__DLLFLAG_p) \
|
||||||
|
/D_WINDOWS /I.\..\..\samples /DNOPCH $(__RTTIFLAG_9) $(__EXCEPTIONSFLAG_10) \
|
||||||
|
$(CPPFLAGS) $(CXXFLAGS)
|
||||||
|
POWER_OBJECTS = \
|
||||||
|
$(OBJS)\power_sample.res \
|
||||||
|
$(OBJS)\power_power.obj
|
||||||
|
|
||||||
|
### Conditionally set variables: ###
|
||||||
|
|
||||||
|
!if "$(USE_GUI)" == "0"
|
||||||
|
PORTNAME = base
|
||||||
|
!endif
|
||||||
|
!if "$(USE_GUI)" == "1"
|
||||||
|
PORTNAME = msw
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
|
||||||
|
WXDEBUGFLAG = d
|
||||||
|
!endif
|
||||||
|
!if "$(DEBUG_FLAG)" == "1"
|
||||||
|
WXDEBUGFLAG = d
|
||||||
|
!endif
|
||||||
|
!if "$(UNICODE)" == "1"
|
||||||
|
WXUNICODEFLAG = u
|
||||||
|
!endif
|
||||||
|
!if "$(WXUNIV)" == "1"
|
||||||
|
WXUNIVNAME = univ
|
||||||
|
!endif
|
||||||
|
!if "$(TARGET_CPU)" == "amd64"
|
||||||
|
DIR_SUFFIX_CPU = _amd64
|
||||||
|
!endif
|
||||||
|
!if "$(TARGET_CPU)" == "amd64"
|
||||||
|
DIR_SUFFIX_CPU = _amd64
|
||||||
|
!endif
|
||||||
|
!if "$(TARGET_CPU)" == "ia64"
|
||||||
|
DIR_SUFFIX_CPU = _ia64
|
||||||
|
!endif
|
||||||
|
!if "$(TARGET_CPU)" == "ia64"
|
||||||
|
DIR_SUFFIX_CPU = _ia64
|
||||||
|
!endif
|
||||||
|
!if "$(SHARED)" == "1"
|
||||||
|
WXDLLFLAG = dll
|
||||||
|
!endif
|
||||||
|
!if "$(SHARED)" == "0"
|
||||||
|
LIBTYPE_SUFFIX = lib
|
||||||
|
!endif
|
||||||
|
!if "$(SHARED)" == "1"
|
||||||
|
LIBTYPE_SUFFIX = dll
|
||||||
|
!endif
|
||||||
|
!if "$(TARGET_CPU)" == "amd64"
|
||||||
|
LINK_TARGET_CPU = /MACHINE:AMD64
|
||||||
|
!endif
|
||||||
|
!if "$(TARGET_CPU)" == "amd64"
|
||||||
|
LINK_TARGET_CPU = /MACHINE:AMD64
|
||||||
|
!endif
|
||||||
|
!if "$(TARGET_CPU)" == "ia64"
|
||||||
|
LINK_TARGET_CPU = /MACHINE:IA64
|
||||||
|
!endif
|
||||||
|
!if "$(TARGET_CPU)" == "ia64"
|
||||||
|
LINK_TARGET_CPU = /MACHINE:IA64
|
||||||
|
!endif
|
||||||
|
!if "$(MONOLITHIC)" == "0"
|
||||||
|
EXTRALIBS_FOR_BASE =
|
||||||
|
!endif
|
||||||
|
!if "$(MONOLITHIC)" == "1"
|
||||||
|
EXTRALIBS_FOR_BASE =
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
|
||||||
|
__DEBUGINFO_0 = /Zi
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
|
||||||
|
__DEBUGINFO_0 =
|
||||||
|
!endif
|
||||||
|
!if "$(DEBUG_INFO)" == "0"
|
||||||
|
__DEBUGINFO_0 =
|
||||||
|
!endif
|
||||||
|
!if "$(DEBUG_INFO)" == "1"
|
||||||
|
__DEBUGINFO_0 = /Zi
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
|
||||||
|
__DEBUGINFO_1 = /DEBUG
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
|
||||||
|
__DEBUGINFO_1 =
|
||||||
|
!endif
|
||||||
|
!if "$(DEBUG_INFO)" == "0"
|
||||||
|
__DEBUGINFO_1 =
|
||||||
|
!endif
|
||||||
|
!if "$(DEBUG_INFO)" == "1"
|
||||||
|
__DEBUGINFO_1 = /DEBUG
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
|
||||||
|
____DEBUGRUNTIME_2_p = /D_DEBUG
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
|
||||||
|
____DEBUGRUNTIME_2_p =
|
||||||
|
!endif
|
||||||
|
!if "$(DEBUG_RUNTIME_LIBS)" == "0"
|
||||||
|
____DEBUGRUNTIME_2_p =
|
||||||
|
!endif
|
||||||
|
!if "$(DEBUG_RUNTIME_LIBS)" == "1"
|
||||||
|
____DEBUGRUNTIME_2_p = /D_DEBUG
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
|
||||||
|
____DEBUGRUNTIME_2_p_1 = /d _DEBUG
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
|
||||||
|
____DEBUGRUNTIME_2_p_1 =
|
||||||
|
!endif
|
||||||
|
!if "$(DEBUG_RUNTIME_LIBS)" == "0"
|
||||||
|
____DEBUGRUNTIME_2_p_1 =
|
||||||
|
!endif
|
||||||
|
!if "$(DEBUG_RUNTIME_LIBS)" == "1"
|
||||||
|
____DEBUGRUNTIME_2_p_1 = /d _DEBUG
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
|
||||||
|
__DEBUGRUNTIME_3 = d
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
|
||||||
|
__DEBUGRUNTIME_3 =
|
||||||
|
!endif
|
||||||
|
!if "$(DEBUG_RUNTIME_LIBS)" == "0"
|
||||||
|
__DEBUGRUNTIME_3 =
|
||||||
|
!endif
|
||||||
|
!if "$(DEBUG_RUNTIME_LIBS)" == "1"
|
||||||
|
__DEBUGRUNTIME_3 = d
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "debug"
|
||||||
|
__OPTIMIZEFLAG_4 = /Od
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "release"
|
||||||
|
__OPTIMIZEFLAG_4 = /O2
|
||||||
|
!endif
|
||||||
|
!if "$(USE_THREADS)" == "0"
|
||||||
|
__THREADSFLAG_7 = L
|
||||||
|
!endif
|
||||||
|
!if "$(USE_THREADS)" == "1"
|
||||||
|
__THREADSFLAG_7 = T
|
||||||
|
!endif
|
||||||
|
!if "$(RUNTIME_LIBS)" == "dynamic"
|
||||||
|
__RUNTIME_LIBS_8 = D
|
||||||
|
!endif
|
||||||
|
!if "$(RUNTIME_LIBS)" == "static"
|
||||||
|
__RUNTIME_LIBS_8 = $(__THREADSFLAG_7)
|
||||||
|
!endif
|
||||||
|
!if "$(USE_RTTI)" == "0"
|
||||||
|
__RTTIFLAG_9 =
|
||||||
|
!endif
|
||||||
|
!if "$(USE_RTTI)" == "1"
|
||||||
|
__RTTIFLAG_9 = /GR
|
||||||
|
!endif
|
||||||
|
!if "$(USE_EXCEPTIONS)" == "0"
|
||||||
|
__EXCEPTIONSFLAG_10 =
|
||||||
|
!endif
|
||||||
|
!if "$(USE_EXCEPTIONS)" == "1"
|
||||||
|
__EXCEPTIONSFLAG_10 = /EHsc
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
|
||||||
|
__NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
|
||||||
|
__NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
|
||||||
|
__NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
|
||||||
|
__NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
|
||||||
|
!endif
|
||||||
|
!if "$(WXUNIV)" == "1"
|
||||||
|
__WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
|
||||||
|
!endif
|
||||||
|
!if "$(WXUNIV)" == "1"
|
||||||
|
__WXUNIV_DEFINE_p_1 = /d __WXUNIVERSAL__
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
|
||||||
|
__DEBUG_DEFINE_p = /D__WXDEBUG__
|
||||||
|
!endif
|
||||||
|
!if "$(DEBUG_FLAG)" == "1"
|
||||||
|
__DEBUG_DEFINE_p = /D__WXDEBUG__
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
|
||||||
|
__DEBUG_DEFINE_p_1 = /d __WXDEBUG__
|
||||||
|
!endif
|
||||||
|
!if "$(DEBUG_FLAG)" == "1"
|
||||||
|
__DEBUG_DEFINE_p_1 = /d __WXDEBUG__
|
||||||
|
!endif
|
||||||
|
!if "$(USE_EXCEPTIONS)" == "0"
|
||||||
|
__EXCEPTIONS_DEFINE_p = /DwxNO_EXCEPTIONS
|
||||||
|
!endif
|
||||||
|
!if "$(USE_EXCEPTIONS)" == "0"
|
||||||
|
__EXCEPTIONS_DEFINE_p_1 = /d wxNO_EXCEPTIONS
|
||||||
|
!endif
|
||||||
|
!if "$(USE_RTTI)" == "0"
|
||||||
|
__RTTI_DEFINE_p = /DwxNO_RTTI
|
||||||
|
!endif
|
||||||
|
!if "$(USE_RTTI)" == "0"
|
||||||
|
__RTTI_DEFINE_p_1 = /d wxNO_RTTI
|
||||||
|
!endif
|
||||||
|
!if "$(USE_THREADS)" == "0"
|
||||||
|
__THREAD_DEFINE_p = /DwxNO_THREADS
|
||||||
|
!endif
|
||||||
|
!if "$(USE_THREADS)" == "0"
|
||||||
|
__THREAD_DEFINE_p_1 = /d wxNO_THREADS
|
||||||
|
!endif
|
||||||
|
!if "$(UNICODE)" == "1"
|
||||||
|
__UNICODE_DEFINE_p = /D_UNICODE
|
||||||
|
!endif
|
||||||
|
!if "$(UNICODE)" == "1"
|
||||||
|
__UNICODE_DEFINE_p_1 = /d _UNICODE
|
||||||
|
!endif
|
||||||
|
!if "$(MSLU)" == "1"
|
||||||
|
__MSLU_DEFINE_p = /DwxUSE_UNICODE_MSLU=1
|
||||||
|
!endif
|
||||||
|
!if "$(MSLU)" == "1"
|
||||||
|
__MSLU_DEFINE_p_1 = /d wxUSE_UNICODE_MSLU=1
|
||||||
|
!endif
|
||||||
|
!if "$(USE_GDIPLUS)" == "1"
|
||||||
|
__GFXCTX_DEFINE_p = /DwxUSE_GRAPHICS_CONTEXT=1
|
||||||
|
!endif
|
||||||
|
!if "$(USE_GDIPLUS)" == "1"
|
||||||
|
__GFXCTX_DEFINE_p_1 = /d wxUSE_GRAPHICS_CONTEXT=1
|
||||||
|
!endif
|
||||||
|
!if "$(SHARED)" == "1"
|
||||||
|
__DLLFLAG_p = /DWXUSINGDLL
|
||||||
|
!endif
|
||||||
|
!if "$(SHARED)" == "1"
|
||||||
|
__DLLFLAG_p_1 = /d WXUSINGDLL
|
||||||
|
!endif
|
||||||
|
!if "$(MONOLITHIC)" == "0"
|
||||||
|
__WXLIB_CORE_p = \
|
||||||
|
wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
|
||||||
|
!endif
|
||||||
|
!if "$(MONOLITHIC)" == "0"
|
||||||
|
__WXLIB_BASE_p = \
|
||||||
|
wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
|
||||||
|
!endif
|
||||||
|
!if "$(MONOLITHIC)" == "1"
|
||||||
|
__WXLIB_MONO_p = \
|
||||||
|
wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
|
||||||
|
!endif
|
||||||
|
!if "$(USE_GUI)" == "1"
|
||||||
|
__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
|
||||||
|
!endif
|
||||||
|
!if "$(USE_GUI)" == "1"
|
||||||
|
__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
|
||||||
|
!endif
|
||||||
|
!if "$(USE_GUI)" == "1"
|
||||||
|
__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
|
||||||
|
!endif
|
||||||
|
!if "$(MSLU)" == "1"
|
||||||
|
__UNICOWS_LIB_p = unicows.lib
|
||||||
|
!endif
|
||||||
|
!if "$(USE_GDIPLUS)" == "1"
|
||||||
|
__GDIPLUS_LIB_p = gdiplus.lib
|
||||||
|
!endif
|
||||||
|
|
||||||
|
|
||||||
|
all: $(OBJS)
|
||||||
|
$(OBJS):
|
||||||
|
-if not exist $(OBJS) mkdir $(OBJS)
|
||||||
|
|
||||||
|
### Targets: ###
|
||||||
|
|
||||||
|
all: $(OBJS)\power.exe
|
||||||
|
|
||||||
|
clean:
|
||||||
|
-if exist $(OBJS)\*.obj del $(OBJS)\*.obj
|
||||||
|
-if exist $(OBJS)\*.res del $(OBJS)\*.res
|
||||||
|
-if exist $(OBJS)\*.pch del $(OBJS)\*.pch
|
||||||
|
-if exist $(OBJS)\power.exe del $(OBJS)\power.exe
|
||||||
|
-if exist $(OBJS)\power.ilk del $(OBJS)\power.ilk
|
||||||
|
-if exist $(OBJS)\power.pdb del $(OBJS)\power.pdb
|
||||||
|
|
||||||
|
$(OBJS)\power.exe: $(POWER_OBJECTS) $(OBJS)\power_sample.res
|
||||||
|
link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
|
||||||
|
$(POWER_OBJECTS) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__GDIPLUS_LIB_p) kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib
|
||||||
|
<<
|
||||||
|
|
||||||
|
$(OBJS)\power_sample.res: .\..\..\samples\sample.rc
|
||||||
|
rc /fo$@ /d WIN32 $(____DEBUGRUNTIME_2_p_1) $(__NO_VC_CRTDBG_p_1) /d __WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__EXCEPTIONS_DEFINE_p_1) $(__RTTI_DEFINE_p_1) $(__THREAD_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) $(__MSLU_DEFINE_p_1) $(__GFXCTX_DEFINE_p_1) /i $(SETUPHDIR) /i .\..\..\include /i . $(__DLLFLAG_p_1) /d _WINDOWS /i .\..\..\samples $**
|
||||||
|
|
||||||
|
$(OBJS)\power_power.obj: .\power.cpp
|
||||||
|
$(CXX) /c /nologo /TP /Fo$@ $(POWER_CXXFLAGS) $**
|
||||||
|
|
262
samples/power/makefile.wat
Normal file
262
samples/power/makefile.wat
Normal file
@@ -0,0 +1,262 @@
|
|||||||
|
# =========================================================================
|
||||||
|
# This makefile was generated by
|
||||||
|
# Bakefile 0.2.1 (http://bakefile.sourceforge.net)
|
||||||
|
# Do not modify, all changes will be overwritten!
|
||||||
|
# =========================================================================
|
||||||
|
|
||||||
|
!include ../../build/msw/config.wat
|
||||||
|
|
||||||
|
# -------------------------------------------------------------------------
|
||||||
|
# Do not modify the rest of this file!
|
||||||
|
# -------------------------------------------------------------------------
|
||||||
|
|
||||||
|
# Speed up compilation a bit:
|
||||||
|
!ifdef __LOADDLL__
|
||||||
|
! loaddll wcc wccd
|
||||||
|
! loaddll wccaxp wccdaxp
|
||||||
|
! loaddll wcc386 wccd386
|
||||||
|
! loaddll wpp wppdi86
|
||||||
|
! loaddll wppaxp wppdaxp
|
||||||
|
! loaddll wpp386 wppd386
|
||||||
|
! loaddll wlink wlink
|
||||||
|
! loaddll wlib wlibd
|
||||||
|
!endif
|
||||||
|
|
||||||
|
# We need these variables in some bakefile-made rules:
|
||||||
|
WATCOM_CWD = $+ $(%cdrive):$(%cwd) $-
|
||||||
|
|
||||||
|
### Conditionally set variables: ###
|
||||||
|
|
||||||
|
PORTNAME =
|
||||||
|
!ifeq USE_GUI 0
|
||||||
|
PORTNAME = base
|
||||||
|
!endif
|
||||||
|
!ifeq USE_GUI 1
|
||||||
|
PORTNAME = msw
|
||||||
|
!endif
|
||||||
|
WXDEBUGFLAG =
|
||||||
|
!ifeq BUILD debug
|
||||||
|
!ifeq DEBUG_FLAG default
|
||||||
|
WXDEBUGFLAG = d
|
||||||
|
!endif
|
||||||
|
!endif
|
||||||
|
!ifeq DEBUG_FLAG 1
|
||||||
|
WXDEBUGFLAG = d
|
||||||
|
!endif
|
||||||
|
WXUNICODEFLAG =
|
||||||
|
!ifeq UNICODE 1
|
||||||
|
WXUNICODEFLAG = u
|
||||||
|
!endif
|
||||||
|
WXUNIVNAME =
|
||||||
|
!ifeq WXUNIV 1
|
||||||
|
WXUNIVNAME = univ
|
||||||
|
!endif
|
||||||
|
WXDLLFLAG =
|
||||||
|
!ifeq SHARED 1
|
||||||
|
WXDLLFLAG = dll
|
||||||
|
!endif
|
||||||
|
LIBTYPE_SUFFIX =
|
||||||
|
!ifeq SHARED 0
|
||||||
|
LIBTYPE_SUFFIX = lib
|
||||||
|
!endif
|
||||||
|
!ifeq SHARED 1
|
||||||
|
LIBTYPE_SUFFIX = dll
|
||||||
|
!endif
|
||||||
|
EXTRALIBS_FOR_BASE =
|
||||||
|
!ifeq MONOLITHIC 0
|
||||||
|
EXTRALIBS_FOR_BASE =
|
||||||
|
!endif
|
||||||
|
!ifeq MONOLITHIC 1
|
||||||
|
EXTRALIBS_FOR_BASE =
|
||||||
|
!endif
|
||||||
|
__DEBUGINFO_0 =
|
||||||
|
!ifeq BUILD debug
|
||||||
|
!ifeq DEBUG_INFO default
|
||||||
|
__DEBUGINFO_0 = -d2
|
||||||
|
!endif
|
||||||
|
!endif
|
||||||
|
!ifeq BUILD release
|
||||||
|
!ifeq DEBUG_INFO default
|
||||||
|
__DEBUGINFO_0 = -d0
|
||||||
|
!endif
|
||||||
|
!endif
|
||||||
|
!ifeq DEBUG_INFO 0
|
||||||
|
__DEBUGINFO_0 = -d0
|
||||||
|
!endif
|
||||||
|
!ifeq DEBUG_INFO 1
|
||||||
|
__DEBUGINFO_0 = -d2
|
||||||
|
!endif
|
||||||
|
__DEBUGINFO_1 =
|
||||||
|
!ifeq BUILD debug
|
||||||
|
!ifeq DEBUG_INFO default
|
||||||
|
__DEBUGINFO_1 = debug all
|
||||||
|
!endif
|
||||||
|
!endif
|
||||||
|
!ifeq BUILD release
|
||||||
|
!ifeq DEBUG_INFO default
|
||||||
|
__DEBUGINFO_1 =
|
||||||
|
!endif
|
||||||
|
!endif
|
||||||
|
!ifeq DEBUG_INFO 0
|
||||||
|
__DEBUGINFO_1 =
|
||||||
|
!endif
|
||||||
|
!ifeq DEBUG_INFO 1
|
||||||
|
__DEBUGINFO_1 = debug all
|
||||||
|
!endif
|
||||||
|
__OPTIMIZEFLAG_2 =
|
||||||
|
!ifeq BUILD debug
|
||||||
|
__OPTIMIZEFLAG_2 = -od
|
||||||
|
!endif
|
||||||
|
!ifeq BUILD release
|
||||||
|
__OPTIMIZEFLAG_2 = -ot -ox
|
||||||
|
!endif
|
||||||
|
__THREADSFLAG_5 =
|
||||||
|
!ifeq USE_THREADS 0
|
||||||
|
__THREADSFLAG_5 =
|
||||||
|
!endif
|
||||||
|
!ifeq USE_THREADS 1
|
||||||
|
__THREADSFLAG_5 = -bm
|
||||||
|
!endif
|
||||||
|
__RUNTIME_LIBS_6 =
|
||||||
|
!ifeq RUNTIME_LIBS dynamic
|
||||||
|
__RUNTIME_LIBS_6 = -br
|
||||||
|
!endif
|
||||||
|
!ifeq RUNTIME_LIBS static
|
||||||
|
__RUNTIME_LIBS_6 =
|
||||||
|
!endif
|
||||||
|
__RTTIFLAG_7 =
|
||||||
|
!ifeq USE_RTTI 0
|
||||||
|
__RTTIFLAG_7 =
|
||||||
|
!endif
|
||||||
|
!ifeq USE_RTTI 1
|
||||||
|
__RTTIFLAG_7 = -xr
|
||||||
|
!endif
|
||||||
|
__EXCEPTIONSFLAG_8 =
|
||||||
|
!ifeq USE_EXCEPTIONS 0
|
||||||
|
__EXCEPTIONSFLAG_8 =
|
||||||
|
!endif
|
||||||
|
!ifeq USE_EXCEPTIONS 1
|
||||||
|
__EXCEPTIONSFLAG_8 = -xs
|
||||||
|
!endif
|
||||||
|
__WXLIB_CORE_p =
|
||||||
|
!ifeq MONOLITHIC 0
|
||||||
|
__WXLIB_CORE_p = &
|
||||||
|
wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
|
||||||
|
!endif
|
||||||
|
__WXLIB_BASE_p =
|
||||||
|
!ifeq MONOLITHIC 0
|
||||||
|
__WXLIB_BASE_p = &
|
||||||
|
wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
|
||||||
|
!endif
|
||||||
|
__WXLIB_MONO_p =
|
||||||
|
!ifeq MONOLITHIC 1
|
||||||
|
__WXLIB_MONO_p = &
|
||||||
|
wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
|
||||||
|
!endif
|
||||||
|
__LIB_TIFF_p =
|
||||||
|
!ifeq USE_GUI 1
|
||||||
|
__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
|
||||||
|
!endif
|
||||||
|
__LIB_JPEG_p =
|
||||||
|
!ifeq USE_GUI 1
|
||||||
|
__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
|
||||||
|
!endif
|
||||||
|
__LIB_PNG_p =
|
||||||
|
!ifeq USE_GUI 1
|
||||||
|
__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
|
||||||
|
!endif
|
||||||
|
__GDIPLUS_LIB_p =
|
||||||
|
!ifeq USE_GDIPLUS 1
|
||||||
|
__GDIPLUS_LIB_p = gdiplus.lib
|
||||||
|
!endif
|
||||||
|
__WXUNIV_DEFINE_p =
|
||||||
|
!ifeq WXUNIV 1
|
||||||
|
__WXUNIV_DEFINE_p = -d__WXUNIVERSAL__
|
||||||
|
!endif
|
||||||
|
__DEBUG_DEFINE_p =
|
||||||
|
!ifeq BUILD debug
|
||||||
|
!ifeq DEBUG_FLAG default
|
||||||
|
__DEBUG_DEFINE_p = -d__WXDEBUG__
|
||||||
|
!endif
|
||||||
|
!endif
|
||||||
|
!ifeq DEBUG_FLAG 1
|
||||||
|
__DEBUG_DEFINE_p = -d__WXDEBUG__
|
||||||
|
!endif
|
||||||
|
__EXCEPTIONS_DEFINE_p =
|
||||||
|
!ifeq USE_EXCEPTIONS 0
|
||||||
|
__EXCEPTIONS_DEFINE_p = -dwxNO_EXCEPTIONS
|
||||||
|
!endif
|
||||||
|
__RTTI_DEFINE_p =
|
||||||
|
!ifeq USE_RTTI 0
|
||||||
|
__RTTI_DEFINE_p = -dwxNO_RTTI
|
||||||
|
!endif
|
||||||
|
__THREAD_DEFINE_p =
|
||||||
|
!ifeq USE_THREADS 0
|
||||||
|
__THREAD_DEFINE_p = -dwxNO_THREADS
|
||||||
|
!endif
|
||||||
|
__UNICODE_DEFINE_p =
|
||||||
|
!ifeq UNICODE 1
|
||||||
|
__UNICODE_DEFINE_p = -d_UNICODE
|
||||||
|
!endif
|
||||||
|
__GFXCTX_DEFINE_p =
|
||||||
|
!ifeq USE_GDIPLUS 1
|
||||||
|
__GFXCTX_DEFINE_p = -dwxUSE_GRAPHICS_CONTEXT=1
|
||||||
|
!endif
|
||||||
|
__DLLFLAG_p =
|
||||||
|
!ifeq SHARED 1
|
||||||
|
__DLLFLAG_p = -dWXUSINGDLL
|
||||||
|
!endif
|
||||||
|
|
||||||
|
### Variables: ###
|
||||||
|
|
||||||
|
WX_RELEASE_NODOT = 28
|
||||||
|
OBJS = &
|
||||||
|
wat_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
|
||||||
|
LIBDIRNAME = .\..\..\lib\wat_$(LIBTYPE_SUFFIX)$(CFG)
|
||||||
|
SETUPHDIR = &
|
||||||
|
$(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
|
||||||
|
POWER_CXXFLAGS = $(__DEBUGINFO_0) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG_5) &
|
||||||
|
$(__RUNTIME_LIBS_6) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &
|
||||||
|
$(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) &
|
||||||
|
$(__UNICODE_DEFINE_p) $(__GFXCTX_DEFINE_p) -i=$(SETUPHDIR) &
|
||||||
|
-i=.\..\..\include -wx -wcd=549 -wcd=656 -wcd=657 -wcd=667 -i=. $(__DLLFLAG_p) &
|
||||||
|
-i=.\..\..\samples -dNOPCH $(__RTTIFLAG_7) $(__EXCEPTIONSFLAG_8) $(CPPFLAGS) &
|
||||||
|
$(CXXFLAGS)
|
||||||
|
POWER_OBJECTS = &
|
||||||
|
$(OBJS)\power_power.obj
|
||||||
|
|
||||||
|
|
||||||
|
all : $(OBJS)
|
||||||
|
$(OBJS) :
|
||||||
|
-if not exist $(OBJS) mkdir $(OBJS)
|
||||||
|
|
||||||
|
### Targets: ###
|
||||||
|
|
||||||
|
all : .SYMBOLIC $(OBJS)\power.exe
|
||||||
|
|
||||||
|
clean : .SYMBOLIC
|
||||||
|
-if exist $(OBJS)\*.obj del $(OBJS)\*.obj
|
||||||
|
-if exist $(OBJS)\*.res del $(OBJS)\*.res
|
||||||
|
-if exist $(OBJS)\*.lbc del $(OBJS)\*.lbc
|
||||||
|
-if exist $(OBJS)\*.ilk del $(OBJS)\*.ilk
|
||||||
|
-if exist $(OBJS)\*.pch del $(OBJS)\*.pch
|
||||||
|
-if exist $(OBJS)\power.exe del $(OBJS)\power.exe
|
||||||
|
|
||||||
|
$(OBJS)\power.exe : $(POWER_OBJECTS) $(OBJS)\power_sample.res
|
||||||
|
@%create $(OBJS)\power.lbc
|
||||||
|
@%append $(OBJS)\power.lbc option quiet
|
||||||
|
@%append $(OBJS)\power.lbc name $^@
|
||||||
|
@%append $(OBJS)\power.lbc option caseexact
|
||||||
|
@%append $(OBJS)\power.lbc $(LDFLAGS) $(__DEBUGINFO_1) libpath $(LIBDIRNAME) system nt_win ref '_WinMain@16'
|
||||||
|
@for %i in ($(POWER_OBJECTS)) do @%append $(OBJS)\power.lbc file %i
|
||||||
|
@for %i in ( $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(EXTRALIBS_FOR_BASE) $(__GDIPLUS_LIB_p) kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib) do @%append $(OBJS)\power.lbc library %i
|
||||||
|
@%append $(OBJS)\power.lbc option resource=$(OBJS)\power_sample.res
|
||||||
|
@for %i in () do @%append $(OBJS)\power.lbc option stack=%i
|
||||||
|
wlink @$(OBJS)\power.lbc
|
||||||
|
|
||||||
|
$(OBJS)\power_sample.res : .AUTODEPEND .\..\..\samples\sample.rc
|
||||||
|
wrc -q -ad -bt=nt -r -fo=$^@ -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__GFXCTX_DEFINE_p) -i=$(SETUPHDIR) -i=.\..\..\include -i=. $(__DLLFLAG_p) -i=.\..\..\samples $<
|
||||||
|
|
||||||
|
$(OBJS)\power_power.obj : .AUTODEPEND .\power.cpp
|
||||||
|
$(CXX) -bt=nt -zq -fo=$^@ $(POWER_CXXFLAGS) $<
|
||||||
|
|
13
samples/power/power.bkl
Normal file
13
samples/power/power.bkl
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
<?xml version="1.0" ?>
|
||||||
|
<!-- $Id$ -->
|
||||||
|
|
||||||
|
<makefile>
|
||||||
|
<include file="../../build/bakefiles/common_samples.bkl"/>
|
||||||
|
|
||||||
|
<exe id="power" template="wx_sample" template_append="wx_append">
|
||||||
|
<sources>power.cpp</sources>
|
||||||
|
<wx-lib>core</wx-lib>
|
||||||
|
<wx-lib>base</wx-lib>
|
||||||
|
</exe>
|
||||||
|
</makefile>
|
||||||
|
|
199
samples/power/power.cpp
Normal file
199
samples/power/power.cpp
Normal file
@@ -0,0 +1,199 @@
|
|||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
// Name: power.cpp
|
||||||
|
// Purpose: wxWidgets power management sample
|
||||||
|
// Author: Vadim Zeitlin
|
||||||
|
// Created: 2006-05-27
|
||||||
|
// RCS-ID: $Id$
|
||||||
|
// Copyright: (C) 2006 Vadim Zeitlin <vadim@wxwindows.org>
|
||||||
|
// Licence: wxWindows licence
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
// ============================================================================
|
||||||
|
// declarations
|
||||||
|
// ============================================================================
|
||||||
|
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
// headers
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#include "wx/wxprec.h"
|
||||||
|
|
||||||
|
#ifdef __BORLANDC__
|
||||||
|
#pragma hdrstop
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef WX_PRECOMP
|
||||||
|
#include "wx/app.h"
|
||||||
|
#include "wx/frame.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include "wx/textctrl.h"
|
||||||
|
#include "wx/msgdlg.h"
|
||||||
|
|
||||||
|
#include "wx/power.h"
|
||||||
|
|
||||||
|
#if !defined(__WXMSW__) && !defined(__WXPM__)
|
||||||
|
#include "../sample.xpm"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
// main frame class
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
class MyFrame : public wxFrame
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
MyFrame()
|
||||||
|
: wxFrame(NULL, wxID_ANY, _T("wxWidgets Power Management Sample"),
|
||||||
|
wxDefaultPosition, wxSize(500, 200))
|
||||||
|
{
|
||||||
|
wxTextCtrl *text = new wxTextCtrl(this, wxID_ANY, _T(""),
|
||||||
|
wxDefaultPosition, wxDefaultSize,
|
||||||
|
wxTE_MULTILINE | wxTE_READONLY);
|
||||||
|
m_logOld = wxLog::SetActiveTarget(new wxLogTextCtrl(text));
|
||||||
|
|
||||||
|
CreateStatusBar();
|
||||||
|
|
||||||
|
SetIcon(wxICON(sample));
|
||||||
|
|
||||||
|
UpdatePowerSettings(wxPOWER_UNKNOWN, wxBATTERY_UNKNOWN_STATE);
|
||||||
|
|
||||||
|
Show();
|
||||||
|
}
|
||||||
|
|
||||||
|
virtual ~MyFrame()
|
||||||
|
{
|
||||||
|
delete wxLog::SetActiveTarget(m_logOld);
|
||||||
|
}
|
||||||
|
|
||||||
|
private:
|
||||||
|
void OnIdle(wxIdleEvent& WXUNUSED(event))
|
||||||
|
{
|
||||||
|
const wxPowerType powerType = wxGetPowerType();
|
||||||
|
const wxBatteryState batteryState = wxGetBatteryState();
|
||||||
|
if ( powerType != m_powerType || batteryState != m_batteryState )
|
||||||
|
{
|
||||||
|
UpdatePowerSettings(powerType, batteryState);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#ifdef wxHAS_POWER_EVENTS
|
||||||
|
void OnSuspending(wxPowerEvent& event)
|
||||||
|
{
|
||||||
|
wxLogMessage(_T("System suspend starting..."));
|
||||||
|
if ( wxMessageBox(_T("Veto suspend?"), _T("Please answer"),
|
||||||
|
wxYES_NO, this) == wxYES )
|
||||||
|
{
|
||||||
|
event.Veto();
|
||||||
|
wxLogMessage(_T("Vetoed suspend."));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void OnSuspended(wxPowerEvent& WXUNUSED(event))
|
||||||
|
{
|
||||||
|
wxLogMessage(_T("System is going to suspend."));
|
||||||
|
}
|
||||||
|
|
||||||
|
void OnSuspendCancel(wxPowerEvent& WXUNUSED(event))
|
||||||
|
{
|
||||||
|
wxLogMessage(_T("System suspend was cancelled."));
|
||||||
|
}
|
||||||
|
|
||||||
|
void OnResume(wxPowerEvent& WXUNUSED(event))
|
||||||
|
{
|
||||||
|
wxLogMessage(_T("System resumed from suspend."));
|
||||||
|
}
|
||||||
|
#endif // wxHAS_POWER_EVENTS
|
||||||
|
|
||||||
|
|
||||||
|
void UpdatePowerSettings(wxPowerType powerType, wxBatteryState batteryState)
|
||||||
|
{
|
||||||
|
wxString powerStr;
|
||||||
|
switch ( m_powerType = powerType )
|
||||||
|
{
|
||||||
|
case wxPOWER_SOCKET:
|
||||||
|
powerStr = _T("wall");
|
||||||
|
break;
|
||||||
|
|
||||||
|
case wxPOWER_BATTERY:
|
||||||
|
powerStr = _T("battery");
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
wxFAIL_MSG(_T("unknown wxPowerType value"));
|
||||||
|
// fall through
|
||||||
|
|
||||||
|
case wxPOWER_UNKNOWN:
|
||||||
|
powerStr = _T("psychic");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
wxString batteryStr;
|
||||||
|
switch ( m_batteryState = batteryState )
|
||||||
|
{
|
||||||
|
case wxBATTERY_NORMAL_STATE:
|
||||||
|
batteryStr = _T("charged");
|
||||||
|
break;
|
||||||
|
|
||||||
|
case wxBATTERY_LOW_STATE:
|
||||||
|
batteryStr = _T("low");
|
||||||
|
break;
|
||||||
|
|
||||||
|
case wxBATTERY_CRITICAL_STATE:
|
||||||
|
batteryStr = _T("critical");
|
||||||
|
break;
|
||||||
|
|
||||||
|
case wxBATTERY_SHUTDOWN_STATE:
|
||||||
|
batteryStr = _T("empty");
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
wxFAIL_MSG(_T("unknown wxBatteryState value"));
|
||||||
|
// fall through
|
||||||
|
|
||||||
|
case wxBATTERY_UNKNOWN_STATE:
|
||||||
|
batteryStr = _T("unknown");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
SetStatusText(wxString::Format(
|
||||||
|
_T("System is on %s power, battery state is %s"),
|
||||||
|
powerStr.c_str(),
|
||||||
|
batteryStr.c_str()));
|
||||||
|
}
|
||||||
|
|
||||||
|
wxPowerType m_powerType;
|
||||||
|
wxBatteryState m_batteryState;
|
||||||
|
|
||||||
|
wxLog *m_logOld;
|
||||||
|
|
||||||
|
DECLARE_EVENT_TABLE()
|
||||||
|
};
|
||||||
|
|
||||||
|
BEGIN_EVENT_TABLE(MyFrame, wxFrame)
|
||||||
|
EVT_IDLE(MyFrame::OnIdle)
|
||||||
|
|
||||||
|
#ifdef wxHAS_POWER_EVENTS
|
||||||
|
EVT_POWER_SUSPENDING(MyFrame::OnSuspending)
|
||||||
|
EVT_POWER_SUSPENDED(MyFrame::OnSuspended)
|
||||||
|
EVT_POWER_SUSPEND_CANCEL(MyFrame::OnSuspendCancel)
|
||||||
|
EVT_POWER_RESUME(MyFrame::OnResume)
|
||||||
|
#endif // wxHAS_POWER_EVENTS
|
||||||
|
END_EVENT_TABLE()
|
||||||
|
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
// main application class
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
class MyApp : public wxApp
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
virtual bool OnInit()
|
||||||
|
{
|
||||||
|
new MyFrame;
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
IMPLEMENT_APP(MyApp)
|
480
samples/power/power.dsp
Normal file
480
samples/power/power.dsp
Normal file
@@ -0,0 +1,480 @@
|
|||||||
|
# Microsoft Developer Studio Project File - Name="power" - Package Owner=<4>
|
||||||
|
# Microsoft Developer Studio Generated Build File, Format Version 6.00
|
||||||
|
# ** DO NOT EDIT **
|
||||||
|
|
||||||
|
# TARGTYPE "Win32 (x86) Application" 0x0101
|
||||||
|
|
||||||
|
CFG=power - Win32 Debug
|
||||||
|
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
|
||||||
|
!MESSAGE use the Export Makefile command and run
|
||||||
|
!MESSAGE
|
||||||
|
!MESSAGE NMAKE /f "power.mak".
|
||||||
|
!MESSAGE
|
||||||
|
!MESSAGE You can specify a configuration when running NMAKE
|
||||||
|
!MESSAGE by defining the macro CFG on the command line. For example:
|
||||||
|
!MESSAGE
|
||||||
|
!MESSAGE NMAKE /f "power.mak" CFG="power - Win32 Debug"
|
||||||
|
!MESSAGE
|
||||||
|
!MESSAGE Possible choices for configuration are:
|
||||||
|
!MESSAGE
|
||||||
|
!MESSAGE "power - Win32 DLL Universal Unicode Release" (based on "Win32 (x86) Application")
|
||||||
|
!MESSAGE "power - Win32 DLL Universal Unicode Debug" (based on "Win32 (x86) Application")
|
||||||
|
!MESSAGE "power - Win32 DLL Universal Release" (based on "Win32 (x86) Application")
|
||||||
|
!MESSAGE "power - Win32 DLL Universal Debug" (based on "Win32 (x86) Application")
|
||||||
|
!MESSAGE "power - Win32 DLL Unicode Release" (based on "Win32 (x86) Application")
|
||||||
|
!MESSAGE "power - Win32 DLL Unicode Debug" (based on "Win32 (x86) Application")
|
||||||
|
!MESSAGE "power - Win32 DLL Release" (based on "Win32 (x86) Application")
|
||||||
|
!MESSAGE "power - Win32 DLL Debug" (based on "Win32 (x86) Application")
|
||||||
|
!MESSAGE "power - Win32 Universal Unicode Release" (based on "Win32 (x86) Application")
|
||||||
|
!MESSAGE "power - Win32 Universal Unicode Debug" (based on "Win32 (x86) Application")
|
||||||
|
!MESSAGE "power - Win32 Universal Release" (based on "Win32 (x86) Application")
|
||||||
|
!MESSAGE "power - Win32 Universal Debug" (based on "Win32 (x86) Application")
|
||||||
|
!MESSAGE "power - Win32 Unicode Release" (based on "Win32 (x86) Application")
|
||||||
|
!MESSAGE "power - Win32 Unicode Debug" (based on "Win32 (x86) Application")
|
||||||
|
!MESSAGE "power - Win32 Release" (based on "Win32 (x86) Application")
|
||||||
|
!MESSAGE "power - Win32 Debug" (based on "Win32 (x86) Application")
|
||||||
|
!MESSAGE
|
||||||
|
|
||||||
|
# Begin Project
|
||||||
|
# PROP AllowPerConfigDependencies 0
|
||||||
|
# PROP Scc_ProjName ""
|
||||||
|
# PROP Scc_LocalPath ""
|
||||||
|
CPP=cl.exe
|
||||||
|
MTL=midl.exe
|
||||||
|
RSC=rc.exe
|
||||||
|
|
||||||
|
!IF "$(CFG)" == "power - Win32 DLL Universal Unicode Release"
|
||||||
|
|
||||||
|
# PROP BASE Use_MFC 0
|
||||||
|
# PROP BASE Use_Debug_Libraries 0
|
||||||
|
# PROP BASE Output_Dir "vc_mswunivudll"
|
||||||
|
# PROP BASE Intermediate_Dir "vc_mswunivudll\power"
|
||||||
|
# PROP BASE Target_Dir ""
|
||||||
|
# PROP Use_MFC 0
|
||||||
|
# PROP Use_Debug_Libraries 0
|
||||||
|
# PROP Output_Dir "vc_mswunivudll"
|
||||||
|
# PROP Intermediate_Dir "vc_mswunivudll\power"
|
||||||
|
# PROP Target_Dir ""
|
||||||
|
# ADD BASE CPP /nologo /FD /MD /Fdvc_mswunivudll\power.pdb /O2 /GR /EHsc /I ".\..\..\lib\vc_dll\mswunivu" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "_UNICODE" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD CPP /nologo /FD /MD /Fdvc_mswunivudll\power.pdb /O2 /GR /EHsc /I ".\..\..\lib\vc_dll\mswunivu" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "_UNICODE" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD BASE MTL /nologo /D "WIN32" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "_UNICODE" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD MTL /nologo /D "WIN32" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "_UNICODE" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD BASE RSC /l 0x409 /d "__WXMSW__" /d "__WXUNIVERSAL__" /d "_UNICODE" /i ".\..\..\lib\vc_dll\mswunivu" /i ".\..\..\include" /i "." /d "WXUSINGDLL" /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
# ADD RSC /l 0x409 /d "__WXMSW__" /d "__WXUNIVERSAL__" /d "_UNICODE" /i ".\..\..\lib\vc_dll\mswunivu" /i ".\..\..\include" /i "." /d "WXUSINGDLL" /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
BSC32=bscmake.exe
|
||||||
|
# ADD BASE BSC32 /nologo
|
||||||
|
# ADD BSC32 /nologo
|
||||||
|
LINK32=link.exe
|
||||||
|
# ADD BASE LINK32 wxmswuniv28u_core.lib wxbase28u.lib wxtiff.lib wxjpeg.lib wxpng.lib wxzlib.lib wxregexu.lib wxexpat.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib /nologo /machine:i386 /out:"vc_mswunivudll\power.exe" /libpath:".\..\..\lib\vc_dll" /subsystem:windows
|
||||||
|
# ADD LINK32 wxmswuniv28u_core.lib wxbase28u.lib wxtiff.lib wxjpeg.lib wxpng.lib wxzlib.lib wxregexu.lib wxexpat.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib /nologo /machine:i386 /out:"vc_mswunivudll\power.exe" /libpath:".\..\..\lib\vc_dll" /subsystem:windows
|
||||||
|
|
||||||
|
!ELSEIF "$(CFG)" == "power - Win32 DLL Universal Unicode Debug"
|
||||||
|
|
||||||
|
# PROP BASE Use_MFC 0
|
||||||
|
# PROP BASE Use_Debug_Libraries 1
|
||||||
|
# PROP BASE Output_Dir "vc_mswunivuddll"
|
||||||
|
# PROP BASE Intermediate_Dir "vc_mswunivuddll\power"
|
||||||
|
# PROP BASE Target_Dir ""
|
||||||
|
# PROP Use_MFC 0
|
||||||
|
# PROP Use_Debug_Libraries 1
|
||||||
|
# PROP Output_Dir "vc_mswunivuddll"
|
||||||
|
# PROP Intermediate_Dir "vc_mswunivuddll\power"
|
||||||
|
# PROP Target_Dir ""
|
||||||
|
# ADD BASE CPP /nologo /FD /MDd /Zi /Gm /GZ /Fdvc_mswunivuddll\power.pdb /Od /GR /EHsc /I ".\..\..\lib\vc_dll\mswunivud" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "__WXDEBUG__" /D "_UNICODE" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD CPP /nologo /FD /MDd /Zi /Gm /GZ /Fdvc_mswunivuddll\power.pdb /Od /GR /EHsc /I ".\..\..\lib\vc_dll\mswunivud" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "__WXDEBUG__" /D "_UNICODE" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD BASE MTL /nologo /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "__WXDEBUG__" /D "_UNICODE" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD MTL /nologo /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "__WXDEBUG__" /D "_UNICODE" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD BASE RSC /l 0x409 /d "_DEBUG" /d "__WXMSW__" /d "__WXUNIVERSAL__" /d "__WXDEBUG__" /d "_UNICODE" /i ".\..\..\lib\vc_dll\mswunivud" /i ".\..\..\include" /i "." /d "WXUSINGDLL" /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
# ADD RSC /l 0x409 /d "_DEBUG" /d "__WXMSW__" /d "__WXUNIVERSAL__" /d "__WXDEBUG__" /d "_UNICODE" /i ".\..\..\lib\vc_dll\mswunivud" /i ".\..\..\include" /i "." /d "WXUSINGDLL" /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
BSC32=bscmake.exe
|
||||||
|
# ADD BASE BSC32 /nologo
|
||||||
|
# ADD BSC32 /nologo
|
||||||
|
LINK32=link.exe
|
||||||
|
# ADD BASE LINK32 wxmswuniv28ud_core.lib wxbase28ud.lib wxtiffd.lib wxjpegd.lib wxpngd.lib wxzlibd.lib wxregexud.lib wxexpatd.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib /nologo /machine:i386 /out:"vc_mswunivuddll\power.exe" /debug /libpath:".\..\..\lib\vc_dll" /subsystem:windows
|
||||||
|
# ADD LINK32 wxmswuniv28ud_core.lib wxbase28ud.lib wxtiffd.lib wxjpegd.lib wxpngd.lib wxzlibd.lib wxregexud.lib wxexpatd.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib /nologo /machine:i386 /out:"vc_mswunivuddll\power.exe" /debug /libpath:".\..\..\lib\vc_dll" /subsystem:windows
|
||||||
|
|
||||||
|
!ELSEIF "$(CFG)" == "power - Win32 DLL Universal Release"
|
||||||
|
|
||||||
|
# PROP BASE Use_MFC 0
|
||||||
|
# PROP BASE Use_Debug_Libraries 0
|
||||||
|
# PROP BASE Output_Dir "vc_mswunivdll"
|
||||||
|
# PROP BASE Intermediate_Dir "vc_mswunivdll\power"
|
||||||
|
# PROP BASE Target_Dir ""
|
||||||
|
# PROP Use_MFC 0
|
||||||
|
# PROP Use_Debug_Libraries 0
|
||||||
|
# PROP Output_Dir "vc_mswunivdll"
|
||||||
|
# PROP Intermediate_Dir "vc_mswunivdll\power"
|
||||||
|
# PROP Target_Dir ""
|
||||||
|
# ADD BASE CPP /nologo /FD /MD /Fdvc_mswunivdll\power.pdb /O2 /GR /EHsc /I ".\..\..\lib\vc_dll\mswuniv" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD CPP /nologo /FD /MD /Fdvc_mswunivdll\power.pdb /O2 /GR /EHsc /I ".\..\..\lib\vc_dll\mswuniv" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD BASE MTL /nologo /D "WIN32" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD MTL /nologo /D "WIN32" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD BASE RSC /l 0x409 /d "__WXMSW__" /d "__WXUNIVERSAL__" /i ".\..\..\lib\vc_dll\mswuniv" /i ".\..\..\include" /i "." /d "WXUSINGDLL" /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
# ADD RSC /l 0x409 /d "__WXMSW__" /d "__WXUNIVERSAL__" /i ".\..\..\lib\vc_dll\mswuniv" /i ".\..\..\include" /i "." /d "WXUSINGDLL" /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
BSC32=bscmake.exe
|
||||||
|
# ADD BASE BSC32 /nologo
|
||||||
|
# ADD BSC32 /nologo
|
||||||
|
LINK32=link.exe
|
||||||
|
# ADD BASE LINK32 wxmswuniv28_core.lib wxbase28.lib wxtiff.lib wxjpeg.lib wxpng.lib wxzlib.lib wxregex.lib wxexpat.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib /nologo /machine:i386 /out:"vc_mswunivdll\power.exe" /libpath:".\..\..\lib\vc_dll" /subsystem:windows
|
||||||
|
# ADD LINK32 wxmswuniv28_core.lib wxbase28.lib wxtiff.lib wxjpeg.lib wxpng.lib wxzlib.lib wxregex.lib wxexpat.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib /nologo /machine:i386 /out:"vc_mswunivdll\power.exe" /libpath:".\..\..\lib\vc_dll" /subsystem:windows
|
||||||
|
|
||||||
|
!ELSEIF "$(CFG)" == "power - Win32 DLL Universal Debug"
|
||||||
|
|
||||||
|
# PROP BASE Use_MFC 0
|
||||||
|
# PROP BASE Use_Debug_Libraries 1
|
||||||
|
# PROP BASE Output_Dir "vc_mswunivddll"
|
||||||
|
# PROP BASE Intermediate_Dir "vc_mswunivddll\power"
|
||||||
|
# PROP BASE Target_Dir ""
|
||||||
|
# PROP Use_MFC 0
|
||||||
|
# PROP Use_Debug_Libraries 1
|
||||||
|
# PROP Output_Dir "vc_mswunivddll"
|
||||||
|
# PROP Intermediate_Dir "vc_mswunivddll\power"
|
||||||
|
# PROP Target_Dir ""
|
||||||
|
# ADD BASE CPP /nologo /FD /MDd /Zi /Gm /GZ /Fdvc_mswunivddll\power.pdb /Od /GR /EHsc /I ".\..\..\lib\vc_dll\mswunivd" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "__WXDEBUG__" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD CPP /nologo /FD /MDd /Zi /Gm /GZ /Fdvc_mswunivddll\power.pdb /Od /GR /EHsc /I ".\..\..\lib\vc_dll\mswunivd" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "__WXDEBUG__" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD BASE MTL /nologo /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "__WXDEBUG__" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD MTL /nologo /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "__WXDEBUG__" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD BASE RSC /l 0x409 /d "_DEBUG" /d "__WXMSW__" /d "__WXUNIVERSAL__" /d "__WXDEBUG__" /i ".\..\..\lib\vc_dll\mswunivd" /i ".\..\..\include" /i "." /d "WXUSINGDLL" /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
# ADD RSC /l 0x409 /d "_DEBUG" /d "__WXMSW__" /d "__WXUNIVERSAL__" /d "__WXDEBUG__" /i ".\..\..\lib\vc_dll\mswunivd" /i ".\..\..\include" /i "." /d "WXUSINGDLL" /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
BSC32=bscmake.exe
|
||||||
|
# ADD BASE BSC32 /nologo
|
||||||
|
# ADD BSC32 /nologo
|
||||||
|
LINK32=link.exe
|
||||||
|
# ADD BASE LINK32 wxmswuniv28d_core.lib wxbase28d.lib wxtiffd.lib wxjpegd.lib wxpngd.lib wxzlibd.lib wxregexd.lib wxexpatd.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib /nologo /machine:i386 /out:"vc_mswunivddll\power.exe" /debug /libpath:".\..\..\lib\vc_dll" /subsystem:windows
|
||||||
|
# ADD LINK32 wxmswuniv28d_core.lib wxbase28d.lib wxtiffd.lib wxjpegd.lib wxpngd.lib wxzlibd.lib wxregexd.lib wxexpatd.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib /nologo /machine:i386 /out:"vc_mswunivddll\power.exe" /debug /libpath:".\..\..\lib\vc_dll" /subsystem:windows
|
||||||
|
|
||||||
|
!ELSEIF "$(CFG)" == "power - Win32 DLL Unicode Release"
|
||||||
|
|
||||||
|
# PROP BASE Use_MFC 0
|
||||||
|
# PROP BASE Use_Debug_Libraries 0
|
||||||
|
# PROP BASE Output_Dir "vc_mswudll"
|
||||||
|
# PROP BASE Intermediate_Dir "vc_mswudll\power"
|
||||||
|
# PROP BASE Target_Dir ""
|
||||||
|
# PROP Use_MFC 0
|
||||||
|
# PROP Use_Debug_Libraries 0
|
||||||
|
# PROP Output_Dir "vc_mswudll"
|
||||||
|
# PROP Intermediate_Dir "vc_mswudll\power"
|
||||||
|
# PROP Target_Dir ""
|
||||||
|
# ADD BASE CPP /nologo /FD /MD /Fdvc_mswudll\power.pdb /O2 /GR /EHsc /I ".\..\..\lib\vc_dll\mswu" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "__WXMSW__" /D "_UNICODE" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD CPP /nologo /FD /MD /Fdvc_mswudll\power.pdb /O2 /GR /EHsc /I ".\..\..\lib\vc_dll\mswu" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "__WXMSW__" /D "_UNICODE" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD BASE MTL /nologo /D "WIN32" /D "__WXMSW__" /D "_UNICODE" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD MTL /nologo /D "WIN32" /D "__WXMSW__" /D "_UNICODE" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD BASE RSC /l 0x409 /d "__WXMSW__" /d "_UNICODE" /i ".\..\..\lib\vc_dll\mswu" /i ".\..\..\include" /i "." /d "WXUSINGDLL" /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
# ADD RSC /l 0x409 /d "__WXMSW__" /d "_UNICODE" /i ".\..\..\lib\vc_dll\mswu" /i ".\..\..\include" /i "." /d "WXUSINGDLL" /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
BSC32=bscmake.exe
|
||||||
|
# ADD BASE BSC32 /nologo
|
||||||
|
# ADD BSC32 /nologo
|
||||||
|
LINK32=link.exe
|
||||||
|
# ADD BASE LINK32 wxmsw28u_core.lib wxbase28u.lib wxtiff.lib wxjpeg.lib wxpng.lib wxzlib.lib wxregexu.lib wxexpat.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib /nologo /machine:i386 /out:"vc_mswudll\power.exe" /libpath:".\..\..\lib\vc_dll" /subsystem:windows
|
||||||
|
# ADD LINK32 wxmsw28u_core.lib wxbase28u.lib wxtiff.lib wxjpeg.lib wxpng.lib wxzlib.lib wxregexu.lib wxexpat.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib /nologo /machine:i386 /out:"vc_mswudll\power.exe" /libpath:".\..\..\lib\vc_dll" /subsystem:windows
|
||||||
|
|
||||||
|
!ELSEIF "$(CFG)" == "power - Win32 DLL Unicode Debug"
|
||||||
|
|
||||||
|
# PROP BASE Use_MFC 0
|
||||||
|
# PROP BASE Use_Debug_Libraries 1
|
||||||
|
# PROP BASE Output_Dir "vc_mswuddll"
|
||||||
|
# PROP BASE Intermediate_Dir "vc_mswuddll\power"
|
||||||
|
# PROP BASE Target_Dir ""
|
||||||
|
# PROP Use_MFC 0
|
||||||
|
# PROP Use_Debug_Libraries 1
|
||||||
|
# PROP Output_Dir "vc_mswuddll"
|
||||||
|
# PROP Intermediate_Dir "vc_mswuddll\power"
|
||||||
|
# PROP Target_Dir ""
|
||||||
|
# ADD BASE CPP /nologo /FD /MDd /Zi /Gm /GZ /Fdvc_mswuddll\power.pdb /Od /GR /EHsc /I ".\..\..\lib\vc_dll\mswud" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXDEBUG__" /D "_UNICODE" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD CPP /nologo /FD /MDd /Zi /Gm /GZ /Fdvc_mswuddll\power.pdb /Od /GR /EHsc /I ".\..\..\lib\vc_dll\mswud" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXDEBUG__" /D "_UNICODE" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD BASE MTL /nologo /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXDEBUG__" /D "_UNICODE" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD MTL /nologo /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXDEBUG__" /D "_UNICODE" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD BASE RSC /l 0x409 /d "_DEBUG" /d "__WXMSW__" /d "__WXDEBUG__" /d "_UNICODE" /i ".\..\..\lib\vc_dll\mswud" /i ".\..\..\include" /i "." /d "WXUSINGDLL" /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
# ADD RSC /l 0x409 /d "_DEBUG" /d "__WXMSW__" /d "__WXDEBUG__" /d "_UNICODE" /i ".\..\..\lib\vc_dll\mswud" /i ".\..\..\include" /i "." /d "WXUSINGDLL" /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
BSC32=bscmake.exe
|
||||||
|
# ADD BASE BSC32 /nologo
|
||||||
|
# ADD BSC32 /nologo
|
||||||
|
LINK32=link.exe
|
||||||
|
# ADD BASE LINK32 wxmsw28ud_core.lib wxbase28ud.lib wxtiffd.lib wxjpegd.lib wxpngd.lib wxzlibd.lib wxregexud.lib wxexpatd.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib /nologo /machine:i386 /out:"vc_mswuddll\power.exe" /debug /libpath:".\..\..\lib\vc_dll" /subsystem:windows
|
||||||
|
# ADD LINK32 wxmsw28ud_core.lib wxbase28ud.lib wxtiffd.lib wxjpegd.lib wxpngd.lib wxzlibd.lib wxregexud.lib wxexpatd.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib /nologo /machine:i386 /out:"vc_mswuddll\power.exe" /debug /libpath:".\..\..\lib\vc_dll" /subsystem:windows
|
||||||
|
|
||||||
|
!ELSEIF "$(CFG)" == "power - Win32 DLL Release"
|
||||||
|
|
||||||
|
# PROP BASE Use_MFC 0
|
||||||
|
# PROP BASE Use_Debug_Libraries 0
|
||||||
|
# PROP BASE Output_Dir "vc_mswdll"
|
||||||
|
# PROP BASE Intermediate_Dir "vc_mswdll\power"
|
||||||
|
# PROP BASE Target_Dir ""
|
||||||
|
# PROP Use_MFC 0
|
||||||
|
# PROP Use_Debug_Libraries 0
|
||||||
|
# PROP Output_Dir "vc_mswdll"
|
||||||
|
# PROP Intermediate_Dir "vc_mswdll\power"
|
||||||
|
# PROP Target_Dir ""
|
||||||
|
# ADD BASE CPP /nologo /FD /MD /Fdvc_mswdll\power.pdb /O2 /GR /EHsc /I ".\..\..\lib\vc_dll\msw" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "__WXMSW__" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD CPP /nologo /FD /MD /Fdvc_mswdll\power.pdb /O2 /GR /EHsc /I ".\..\..\lib\vc_dll\msw" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "__WXMSW__" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD BASE MTL /nologo /D "WIN32" /D "__WXMSW__" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD MTL /nologo /D "WIN32" /D "__WXMSW__" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD BASE RSC /l 0x409 /d "__WXMSW__" /i ".\..\..\lib\vc_dll\msw" /i ".\..\..\include" /i "." /d "WXUSINGDLL" /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
# ADD RSC /l 0x409 /d "__WXMSW__" /i ".\..\..\lib\vc_dll\msw" /i ".\..\..\include" /i "." /d "WXUSINGDLL" /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
BSC32=bscmake.exe
|
||||||
|
# ADD BASE BSC32 /nologo
|
||||||
|
# ADD BSC32 /nologo
|
||||||
|
LINK32=link.exe
|
||||||
|
# ADD BASE LINK32 wxmsw28_core.lib wxbase28.lib wxtiff.lib wxjpeg.lib wxpng.lib wxzlib.lib wxregex.lib wxexpat.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib /nologo /machine:i386 /out:"vc_mswdll\power.exe" /libpath:".\..\..\lib\vc_dll" /subsystem:windows
|
||||||
|
# ADD LINK32 wxmsw28_core.lib wxbase28.lib wxtiff.lib wxjpeg.lib wxpng.lib wxzlib.lib wxregex.lib wxexpat.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib /nologo /machine:i386 /out:"vc_mswdll\power.exe" /libpath:".\..\..\lib\vc_dll" /subsystem:windows
|
||||||
|
|
||||||
|
!ELSEIF "$(CFG)" == "power - Win32 DLL Debug"
|
||||||
|
|
||||||
|
# PROP BASE Use_MFC 0
|
||||||
|
# PROP BASE Use_Debug_Libraries 1
|
||||||
|
# PROP BASE Output_Dir "vc_mswddll"
|
||||||
|
# PROP BASE Intermediate_Dir "vc_mswddll\power"
|
||||||
|
# PROP BASE Target_Dir ""
|
||||||
|
# PROP Use_MFC 0
|
||||||
|
# PROP Use_Debug_Libraries 1
|
||||||
|
# PROP Output_Dir "vc_mswddll"
|
||||||
|
# PROP Intermediate_Dir "vc_mswddll\power"
|
||||||
|
# PROP Target_Dir ""
|
||||||
|
# ADD BASE CPP /nologo /FD /MDd /Zi /Gm /GZ /Fdvc_mswddll\power.pdb /Od /GR /EHsc /I ".\..\..\lib\vc_dll\mswd" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXDEBUG__" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD CPP /nologo /FD /MDd /Zi /Gm /GZ /Fdvc_mswddll\power.pdb /Od /GR /EHsc /I ".\..\..\lib\vc_dll\mswd" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXDEBUG__" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD BASE MTL /nologo /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXDEBUG__" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD MTL /nologo /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXDEBUG__" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD BASE RSC /l 0x409 /d "_DEBUG" /d "__WXMSW__" /d "__WXDEBUG__" /i ".\..\..\lib\vc_dll\mswd" /i ".\..\..\include" /i "." /d "WXUSINGDLL" /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
# ADD RSC /l 0x409 /d "_DEBUG" /d "__WXMSW__" /d "__WXDEBUG__" /i ".\..\..\lib\vc_dll\mswd" /i ".\..\..\include" /i "." /d "WXUSINGDLL" /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
BSC32=bscmake.exe
|
||||||
|
# ADD BASE BSC32 /nologo
|
||||||
|
# ADD BSC32 /nologo
|
||||||
|
LINK32=link.exe
|
||||||
|
# ADD BASE LINK32 wxmsw28d_core.lib wxbase28d.lib wxtiffd.lib wxjpegd.lib wxpngd.lib wxzlibd.lib wxregexd.lib wxexpatd.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib /nologo /machine:i386 /out:"vc_mswddll\power.exe" /debug /libpath:".\..\..\lib\vc_dll" /subsystem:windows
|
||||||
|
# ADD LINK32 wxmsw28d_core.lib wxbase28d.lib wxtiffd.lib wxjpegd.lib wxpngd.lib wxzlibd.lib wxregexd.lib wxexpatd.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib /nologo /machine:i386 /out:"vc_mswddll\power.exe" /debug /libpath:".\..\..\lib\vc_dll" /subsystem:windows
|
||||||
|
|
||||||
|
!ELSEIF "$(CFG)" == "power - Win32 Universal Unicode Release"
|
||||||
|
|
||||||
|
# PROP BASE Use_MFC 0
|
||||||
|
# PROP BASE Use_Debug_Libraries 0
|
||||||
|
# PROP BASE Output_Dir "vc_mswunivu"
|
||||||
|
# PROP BASE Intermediate_Dir "vc_mswunivu\power"
|
||||||
|
# PROP BASE Target_Dir ""
|
||||||
|
# PROP Use_MFC 0
|
||||||
|
# PROP Use_Debug_Libraries 0
|
||||||
|
# PROP Output_Dir "vc_mswunivu"
|
||||||
|
# PROP Intermediate_Dir "vc_mswunivu\power"
|
||||||
|
# PROP Target_Dir ""
|
||||||
|
# ADD BASE CPP /nologo /FD /MD /Fdvc_mswunivu\power.pdb /O2 /GR /EHsc /I ".\..\..\lib\vc_lib\mswunivu" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "_UNICODE" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD CPP /nologo /FD /MD /Fdvc_mswunivu\power.pdb /O2 /GR /EHsc /I ".\..\..\lib\vc_lib\mswunivu" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "_UNICODE" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD BASE MTL /nologo /D "WIN32" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "_UNICODE" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD MTL /nologo /D "WIN32" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "_UNICODE" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD BASE RSC /l 0x409 /d "__WXMSW__" /d "__WXUNIVERSAL__" /d "_UNICODE" /i ".\..\..\lib\vc_lib\mswunivu" /i ".\..\..\include" /i "." /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
# ADD RSC /l 0x409 /d "__WXMSW__" /d "__WXUNIVERSAL__" /d "_UNICODE" /i ".\..\..\lib\vc_lib\mswunivu" /i ".\..\..\include" /i "." /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
BSC32=bscmake.exe
|
||||||
|
# ADD BASE BSC32 /nologo
|
||||||
|
# ADD BSC32 /nologo
|
||||||
|
LINK32=link.exe
|
||||||
|
# ADD BASE LINK32 wxmswuniv28u_core.lib wxbase28u.lib wxtiff.lib wxjpeg.lib wxpng.lib wxzlib.lib wxregexu.lib wxexpat.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib /nologo /machine:i386 /out:"vc_mswunivu\power.exe" /libpath:".\..\..\lib\vc_lib" /subsystem:windows
|
||||||
|
# ADD LINK32 wxmswuniv28u_core.lib wxbase28u.lib wxtiff.lib wxjpeg.lib wxpng.lib wxzlib.lib wxregexu.lib wxexpat.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib /nologo /machine:i386 /out:"vc_mswunivu\power.exe" /libpath:".\..\..\lib\vc_lib" /subsystem:windows
|
||||||
|
|
||||||
|
!ELSEIF "$(CFG)" == "power - Win32 Universal Unicode Debug"
|
||||||
|
|
||||||
|
# PROP BASE Use_MFC 0
|
||||||
|
# PROP BASE Use_Debug_Libraries 1
|
||||||
|
# PROP BASE Output_Dir "vc_mswunivud"
|
||||||
|
# PROP BASE Intermediate_Dir "vc_mswunivud\power"
|
||||||
|
# PROP BASE Target_Dir ""
|
||||||
|
# PROP Use_MFC 0
|
||||||
|
# PROP Use_Debug_Libraries 1
|
||||||
|
# PROP Output_Dir "vc_mswunivud"
|
||||||
|
# PROP Intermediate_Dir "vc_mswunivud\power"
|
||||||
|
# PROP Target_Dir ""
|
||||||
|
# ADD BASE CPP /nologo /FD /MDd /Zi /Gm /GZ /Fdvc_mswunivud\power.pdb /Od /GR /EHsc /I ".\..\..\lib\vc_lib\mswunivud" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "__WXDEBUG__" /D "_UNICODE" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD CPP /nologo /FD /MDd /Zi /Gm /GZ /Fdvc_mswunivud\power.pdb /Od /GR /EHsc /I ".\..\..\lib\vc_lib\mswunivud" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "__WXDEBUG__" /D "_UNICODE" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD BASE MTL /nologo /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "__WXDEBUG__" /D "_UNICODE" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD MTL /nologo /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "__WXDEBUG__" /D "_UNICODE" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD BASE RSC /l 0x409 /d "_DEBUG" /d "__WXMSW__" /d "__WXUNIVERSAL__" /d "__WXDEBUG__" /d "_UNICODE" /i ".\..\..\lib\vc_lib\mswunivud" /i ".\..\..\include" /i "." /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
# ADD RSC /l 0x409 /d "_DEBUG" /d "__WXMSW__" /d "__WXUNIVERSAL__" /d "__WXDEBUG__" /d "_UNICODE" /i ".\..\..\lib\vc_lib\mswunivud" /i ".\..\..\include" /i "." /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
BSC32=bscmake.exe
|
||||||
|
# ADD BASE BSC32 /nologo
|
||||||
|
# ADD BSC32 /nologo
|
||||||
|
LINK32=link.exe
|
||||||
|
# ADD BASE LINK32 wxmswuniv28ud_core.lib wxbase28ud.lib wxtiffd.lib wxjpegd.lib wxpngd.lib wxzlibd.lib wxregexud.lib wxexpatd.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib /nologo /machine:i386 /out:"vc_mswunivud\power.exe" /debug /libpath:".\..\..\lib\vc_lib" /subsystem:windows
|
||||||
|
# ADD LINK32 wxmswuniv28ud_core.lib wxbase28ud.lib wxtiffd.lib wxjpegd.lib wxpngd.lib wxzlibd.lib wxregexud.lib wxexpatd.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib /nologo /machine:i386 /out:"vc_mswunivud\power.exe" /debug /libpath:".\..\..\lib\vc_lib" /subsystem:windows
|
||||||
|
|
||||||
|
!ELSEIF "$(CFG)" == "power - Win32 Universal Release"
|
||||||
|
|
||||||
|
# PROP BASE Use_MFC 0
|
||||||
|
# PROP BASE Use_Debug_Libraries 0
|
||||||
|
# PROP BASE Output_Dir "vc_mswuniv"
|
||||||
|
# PROP BASE Intermediate_Dir "vc_mswuniv\power"
|
||||||
|
# PROP BASE Target_Dir ""
|
||||||
|
# PROP Use_MFC 0
|
||||||
|
# PROP Use_Debug_Libraries 0
|
||||||
|
# PROP Output_Dir "vc_mswuniv"
|
||||||
|
# PROP Intermediate_Dir "vc_mswuniv\power"
|
||||||
|
# PROP Target_Dir ""
|
||||||
|
# ADD BASE CPP /nologo /FD /MD /Fdvc_mswuniv\power.pdb /O2 /GR /EHsc /I ".\..\..\lib\vc_lib\mswuniv" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD CPP /nologo /FD /MD /Fdvc_mswuniv\power.pdb /O2 /GR /EHsc /I ".\..\..\lib\vc_lib\mswuniv" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD BASE MTL /nologo /D "WIN32" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD MTL /nologo /D "WIN32" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD BASE RSC /l 0x409 /d "__WXMSW__" /d "__WXUNIVERSAL__" /i ".\..\..\lib\vc_lib\mswuniv" /i ".\..\..\include" /i "." /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
# ADD RSC /l 0x409 /d "__WXMSW__" /d "__WXUNIVERSAL__" /i ".\..\..\lib\vc_lib\mswuniv" /i ".\..\..\include" /i "." /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
BSC32=bscmake.exe
|
||||||
|
# ADD BASE BSC32 /nologo
|
||||||
|
# ADD BSC32 /nologo
|
||||||
|
LINK32=link.exe
|
||||||
|
# ADD BASE LINK32 wxmswuniv28_core.lib wxbase28.lib wxtiff.lib wxjpeg.lib wxpng.lib wxzlib.lib wxregex.lib wxexpat.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib /nologo /machine:i386 /out:"vc_mswuniv\power.exe" /libpath:".\..\..\lib\vc_lib" /subsystem:windows
|
||||||
|
# ADD LINK32 wxmswuniv28_core.lib wxbase28.lib wxtiff.lib wxjpeg.lib wxpng.lib wxzlib.lib wxregex.lib wxexpat.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib /nologo /machine:i386 /out:"vc_mswuniv\power.exe" /libpath:".\..\..\lib\vc_lib" /subsystem:windows
|
||||||
|
|
||||||
|
!ELSEIF "$(CFG)" == "power - Win32 Universal Debug"
|
||||||
|
|
||||||
|
# PROP BASE Use_MFC 0
|
||||||
|
# PROP BASE Use_Debug_Libraries 1
|
||||||
|
# PROP BASE Output_Dir "vc_mswunivd"
|
||||||
|
# PROP BASE Intermediate_Dir "vc_mswunivd\power"
|
||||||
|
# PROP BASE Target_Dir ""
|
||||||
|
# PROP Use_MFC 0
|
||||||
|
# PROP Use_Debug_Libraries 1
|
||||||
|
# PROP Output_Dir "vc_mswunivd"
|
||||||
|
# PROP Intermediate_Dir "vc_mswunivd\power"
|
||||||
|
# PROP Target_Dir ""
|
||||||
|
# ADD BASE CPP /nologo /FD /MDd /Zi /Gm /GZ /Fdvc_mswunivd\power.pdb /Od /GR /EHsc /I ".\..\..\lib\vc_lib\mswunivd" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "__WXDEBUG__" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD CPP /nologo /FD /MDd /Zi /Gm /GZ /Fdvc_mswunivd\power.pdb /Od /GR /EHsc /I ".\..\..\lib\vc_lib\mswunivd" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "__WXDEBUG__" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD BASE MTL /nologo /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "__WXDEBUG__" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD MTL /nologo /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "__WXDEBUG__" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD BASE RSC /l 0x409 /d "_DEBUG" /d "__WXMSW__" /d "__WXUNIVERSAL__" /d "__WXDEBUG__" /i ".\..\..\lib\vc_lib\mswunivd" /i ".\..\..\include" /i "." /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
# ADD RSC /l 0x409 /d "_DEBUG" /d "__WXMSW__" /d "__WXUNIVERSAL__" /d "__WXDEBUG__" /i ".\..\..\lib\vc_lib\mswunivd" /i ".\..\..\include" /i "." /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
BSC32=bscmake.exe
|
||||||
|
# ADD BASE BSC32 /nologo
|
||||||
|
# ADD BSC32 /nologo
|
||||||
|
LINK32=link.exe
|
||||||
|
# ADD BASE LINK32 wxmswuniv28d_core.lib wxbase28d.lib wxtiffd.lib wxjpegd.lib wxpngd.lib wxzlibd.lib wxregexd.lib wxexpatd.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib /nologo /machine:i386 /out:"vc_mswunivd\power.exe" /debug /libpath:".\..\..\lib\vc_lib" /subsystem:windows
|
||||||
|
# ADD LINK32 wxmswuniv28d_core.lib wxbase28d.lib wxtiffd.lib wxjpegd.lib wxpngd.lib wxzlibd.lib wxregexd.lib wxexpatd.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib /nologo /machine:i386 /out:"vc_mswunivd\power.exe" /debug /libpath:".\..\..\lib\vc_lib" /subsystem:windows
|
||||||
|
|
||||||
|
!ELSEIF "$(CFG)" == "power - Win32 Unicode Release"
|
||||||
|
|
||||||
|
# PROP BASE Use_MFC 0
|
||||||
|
# PROP BASE Use_Debug_Libraries 0
|
||||||
|
# PROP BASE Output_Dir "vc_mswu"
|
||||||
|
# PROP BASE Intermediate_Dir "vc_mswu\power"
|
||||||
|
# PROP BASE Target_Dir ""
|
||||||
|
# PROP Use_MFC 0
|
||||||
|
# PROP Use_Debug_Libraries 0
|
||||||
|
# PROP Output_Dir "vc_mswu"
|
||||||
|
# PROP Intermediate_Dir "vc_mswu\power"
|
||||||
|
# PROP Target_Dir ""
|
||||||
|
# ADD BASE CPP /nologo /FD /MD /Fdvc_mswu\power.pdb /O2 /GR /EHsc /I ".\..\..\lib\vc_lib\mswu" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "__WXMSW__" /D "_UNICODE" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD CPP /nologo /FD /MD /Fdvc_mswu\power.pdb /O2 /GR /EHsc /I ".\..\..\lib\vc_lib\mswu" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "__WXMSW__" /D "_UNICODE" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD BASE MTL /nologo /D "WIN32" /D "__WXMSW__" /D "_UNICODE" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD MTL /nologo /D "WIN32" /D "__WXMSW__" /D "_UNICODE" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD BASE RSC /l 0x409 /d "__WXMSW__" /d "_UNICODE" /i ".\..\..\lib\vc_lib\mswu" /i ".\..\..\include" /i "." /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
# ADD RSC /l 0x409 /d "__WXMSW__" /d "_UNICODE" /i ".\..\..\lib\vc_lib\mswu" /i ".\..\..\include" /i "." /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
BSC32=bscmake.exe
|
||||||
|
# ADD BASE BSC32 /nologo
|
||||||
|
# ADD BSC32 /nologo
|
||||||
|
LINK32=link.exe
|
||||||
|
# ADD BASE LINK32 wxmsw28u_core.lib wxbase28u.lib wxtiff.lib wxjpeg.lib wxpng.lib wxzlib.lib wxregexu.lib wxexpat.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib /nologo /machine:i386 /out:"vc_mswu\power.exe" /libpath:".\..\..\lib\vc_lib" /subsystem:windows
|
||||||
|
# ADD LINK32 wxmsw28u_core.lib wxbase28u.lib wxtiff.lib wxjpeg.lib wxpng.lib wxzlib.lib wxregexu.lib wxexpat.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib /nologo /machine:i386 /out:"vc_mswu\power.exe" /libpath:".\..\..\lib\vc_lib" /subsystem:windows
|
||||||
|
|
||||||
|
!ELSEIF "$(CFG)" == "power - Win32 Unicode Debug"
|
||||||
|
|
||||||
|
# PROP BASE Use_MFC 0
|
||||||
|
# PROP BASE Use_Debug_Libraries 1
|
||||||
|
# PROP BASE Output_Dir "vc_mswud"
|
||||||
|
# PROP BASE Intermediate_Dir "vc_mswud\power"
|
||||||
|
# PROP BASE Target_Dir ""
|
||||||
|
# PROP Use_MFC 0
|
||||||
|
# PROP Use_Debug_Libraries 1
|
||||||
|
# PROP Output_Dir "vc_mswud"
|
||||||
|
# PROP Intermediate_Dir "vc_mswud\power"
|
||||||
|
# PROP Target_Dir ""
|
||||||
|
# ADD BASE CPP /nologo /FD /MDd /Zi /Gm /GZ /Fdvc_mswud\power.pdb /Od /GR /EHsc /I ".\..\..\lib\vc_lib\mswud" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXDEBUG__" /D "_UNICODE" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD CPP /nologo /FD /MDd /Zi /Gm /GZ /Fdvc_mswud\power.pdb /Od /GR /EHsc /I ".\..\..\lib\vc_lib\mswud" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXDEBUG__" /D "_UNICODE" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD BASE MTL /nologo /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXDEBUG__" /D "_UNICODE" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD MTL /nologo /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXDEBUG__" /D "_UNICODE" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD BASE RSC /l 0x409 /d "_DEBUG" /d "__WXMSW__" /d "__WXDEBUG__" /d "_UNICODE" /i ".\..\..\lib\vc_lib\mswud" /i ".\..\..\include" /i "." /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
# ADD RSC /l 0x409 /d "_DEBUG" /d "__WXMSW__" /d "__WXDEBUG__" /d "_UNICODE" /i ".\..\..\lib\vc_lib\mswud" /i ".\..\..\include" /i "." /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
BSC32=bscmake.exe
|
||||||
|
# ADD BASE BSC32 /nologo
|
||||||
|
# ADD BSC32 /nologo
|
||||||
|
LINK32=link.exe
|
||||||
|
# ADD BASE LINK32 wxmsw28ud_core.lib wxbase28ud.lib wxtiffd.lib wxjpegd.lib wxpngd.lib wxzlibd.lib wxregexud.lib wxexpatd.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib /nologo /machine:i386 /out:"vc_mswud\power.exe" /debug /libpath:".\..\..\lib\vc_lib" /subsystem:windows
|
||||||
|
# ADD LINK32 wxmsw28ud_core.lib wxbase28ud.lib wxtiffd.lib wxjpegd.lib wxpngd.lib wxzlibd.lib wxregexud.lib wxexpatd.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib /nologo /machine:i386 /out:"vc_mswud\power.exe" /debug /libpath:".\..\..\lib\vc_lib" /subsystem:windows
|
||||||
|
|
||||||
|
!ELSEIF "$(CFG)" == "power - Win32 Release"
|
||||||
|
|
||||||
|
# PROP BASE Use_MFC 0
|
||||||
|
# PROP BASE Use_Debug_Libraries 0
|
||||||
|
# PROP BASE Output_Dir "vc_msw"
|
||||||
|
# PROP BASE Intermediate_Dir "vc_msw\power"
|
||||||
|
# PROP BASE Target_Dir ""
|
||||||
|
# PROP Use_MFC 0
|
||||||
|
# PROP Use_Debug_Libraries 0
|
||||||
|
# PROP Output_Dir "vc_msw"
|
||||||
|
# PROP Intermediate_Dir "vc_msw\power"
|
||||||
|
# PROP Target_Dir ""
|
||||||
|
# ADD BASE CPP /nologo /FD /MD /Fdvc_msw\power.pdb /O2 /GR /EHsc /I ".\..\..\lib\vc_lib\msw" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "__WXMSW__" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD CPP /nologo /FD /MD /Fdvc_msw\power.pdb /O2 /GR /EHsc /I ".\..\..\lib\vc_lib\msw" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "__WXMSW__" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD BASE MTL /nologo /D "WIN32" /D "__WXMSW__" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD MTL /nologo /D "WIN32" /D "__WXMSW__" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD BASE RSC /l 0x409 /d "__WXMSW__" /i ".\..\..\lib\vc_lib\msw" /i ".\..\..\include" /i "." /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
# ADD RSC /l 0x409 /d "__WXMSW__" /i ".\..\..\lib\vc_lib\msw" /i ".\..\..\include" /i "." /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
BSC32=bscmake.exe
|
||||||
|
# ADD BASE BSC32 /nologo
|
||||||
|
# ADD BSC32 /nologo
|
||||||
|
LINK32=link.exe
|
||||||
|
# ADD BASE LINK32 wxmsw28_core.lib wxbase28.lib wxtiff.lib wxjpeg.lib wxpng.lib wxzlib.lib wxregex.lib wxexpat.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib /nologo /machine:i386 /out:"vc_msw\power.exe" /libpath:".\..\..\lib\vc_lib" /subsystem:windows
|
||||||
|
# ADD LINK32 wxmsw28_core.lib wxbase28.lib wxtiff.lib wxjpeg.lib wxpng.lib wxzlib.lib wxregex.lib wxexpat.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib /nologo /machine:i386 /out:"vc_msw\power.exe" /libpath:".\..\..\lib\vc_lib" /subsystem:windows
|
||||||
|
|
||||||
|
!ELSEIF "$(CFG)" == "power - Win32 Debug"
|
||||||
|
|
||||||
|
# PROP BASE Use_MFC 0
|
||||||
|
# PROP BASE Use_Debug_Libraries 1
|
||||||
|
# PROP BASE Output_Dir "vc_mswd"
|
||||||
|
# PROP BASE Intermediate_Dir "vc_mswd\power"
|
||||||
|
# PROP BASE Target_Dir ""
|
||||||
|
# PROP Use_MFC 0
|
||||||
|
# PROP Use_Debug_Libraries 1
|
||||||
|
# PROP Output_Dir "vc_mswd"
|
||||||
|
# PROP Intermediate_Dir "vc_mswd\power"
|
||||||
|
# PROP Target_Dir ""
|
||||||
|
# ADD BASE CPP /nologo /FD /MDd /Zi /Gm /GZ /Fdvc_mswd\power.pdb /Od /GR /EHsc /I ".\..\..\lib\vc_lib\mswd" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXDEBUG__" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD CPP /nologo /FD /MDd /Zi /Gm /GZ /Fdvc_mswd\power.pdb /Od /GR /EHsc /I ".\..\..\lib\vc_lib\mswd" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXDEBUG__" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD BASE MTL /nologo /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXDEBUG__" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD MTL /nologo /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXDEBUG__" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD BASE RSC /l 0x409 /d "_DEBUG" /d "__WXMSW__" /d "__WXDEBUG__" /i ".\..\..\lib\vc_lib\mswd" /i ".\..\..\include" /i "." /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
# ADD RSC /l 0x409 /d "_DEBUG" /d "__WXMSW__" /d "__WXDEBUG__" /i ".\..\..\lib\vc_lib\mswd" /i ".\..\..\include" /i "." /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
BSC32=bscmake.exe
|
||||||
|
# ADD BASE BSC32 /nologo
|
||||||
|
# ADD BSC32 /nologo
|
||||||
|
LINK32=link.exe
|
||||||
|
# ADD BASE LINK32 wxmsw28d_core.lib wxbase28d.lib wxtiffd.lib wxjpegd.lib wxpngd.lib wxzlibd.lib wxregexd.lib wxexpatd.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib /nologo /machine:i386 /out:"vc_mswd\power.exe" /debug /libpath:".\..\..\lib\vc_lib" /subsystem:windows
|
||||||
|
# ADD LINK32 wxmsw28d_core.lib wxbase28d.lib wxtiffd.lib wxjpegd.lib wxpngd.lib wxzlibd.lib wxregexd.lib wxexpatd.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib /nologo /machine:i386 /out:"vc_mswd\power.exe" /debug /libpath:".\..\..\lib\vc_lib" /subsystem:windows
|
||||||
|
|
||||||
|
!ENDIF
|
||||||
|
|
||||||
|
# Begin Target
|
||||||
|
|
||||||
|
# Name "power - Win32 DLL Universal Unicode Release"
|
||||||
|
# Name "power - Win32 DLL Universal Unicode Debug"
|
||||||
|
# Name "power - Win32 DLL Universal Release"
|
||||||
|
# Name "power - Win32 DLL Universal Debug"
|
||||||
|
# Name "power - Win32 DLL Unicode Release"
|
||||||
|
# Name "power - Win32 DLL Unicode Debug"
|
||||||
|
# Name "power - Win32 DLL Release"
|
||||||
|
# Name "power - Win32 DLL Debug"
|
||||||
|
# Name "power - Win32 Universal Unicode Release"
|
||||||
|
# Name "power - Win32 Universal Unicode Debug"
|
||||||
|
# Name "power - Win32 Universal Release"
|
||||||
|
# Name "power - Win32 Universal Debug"
|
||||||
|
# Name "power - Win32 Unicode Release"
|
||||||
|
# Name "power - Win32 Unicode Debug"
|
||||||
|
# Name "power - Win32 Release"
|
||||||
|
# Name "power - Win32 Debug"
|
||||||
|
# Begin Group "Source Files"
|
||||||
|
|
||||||
|
# PROP Default_Filter ""
|
||||||
|
# Begin Source File
|
||||||
|
|
||||||
|
SOURCE=.\power.cpp
|
||||||
|
# End Source File
|
||||||
|
# Begin Source File
|
||||||
|
|
||||||
|
SOURCE=.\..\..\samples\sample.rc
|
||||||
|
# End Source File
|
||||||
|
# End Group
|
||||||
|
# End Target
|
||||||
|
# End Project
|
||||||
|
|
11
setup.h_vms
11
setup.h_vms
@@ -3,7 +3,7 @@
|
|||||||
* Template for the set.h file for VMS *
|
* Template for the set.h file for VMS *
|
||||||
* Created from setup.h_in *
|
* Created from setup.h_in *
|
||||||
* Author : J.Jansen (joukj@hrem.nano.tudelft.nl) *
|
* Author : J.Jansen (joukj@hrem.nano.tudelft.nl) *
|
||||||
* Date : 7 November 2006 *
|
* Date : 14 November 2006 *
|
||||||
* *
|
* *
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
@@ -309,11 +309,7 @@ typedef pid_t GPid;
|
|||||||
|
|
||||||
#define wxUSE_XRC 1
|
#define wxUSE_XRC 1
|
||||||
|
|
||||||
#if wxUSE_XRC
|
#define wxUSE_XML wxUSE_XRC
|
||||||
#define wxUSE_XML 1
|
|
||||||
#else
|
|
||||||
# define wxUSE_XML 1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define wxUSE_AUI 1
|
#define wxUSE_AUI 1
|
||||||
|
|
||||||
@@ -1151,6 +1147,9 @@ typedef pid_t GPid;
|
|||||||
#undef HAVE_WCTYPE_H
|
#undef HAVE_WCTYPE_H
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Define if you have <widec.h> (Solaris only) */
|
||||||
|
#undef HAVE_WIDEC_H
|
||||||
|
|
||||||
/* Define if you have the <iconv.h> header file and iconv() symbol. */
|
/* Define if you have the <iconv.h> header file and iconv() symbol. */
|
||||||
#define HAVE_ICONV_H 1
|
#define HAVE_ICONV_H 1
|
||||||
|
|
||||||
|
@@ -308,19 +308,16 @@ void wxAuiDefaultTabArt::DrawBackground(wxDC& dc,
|
|||||||
{
|
{
|
||||||
// draw background
|
// draw background
|
||||||
wxRect r(rect.x, rect.y, rect.width+2, rect.height-3);
|
wxRect r(rect.x, rect.y, rect.width+2, rect.height-3);
|
||||||
wxColor start_colour = StepColour(m_base_colour, 90);
|
wxColor top_color = StepColour(m_base_colour, 90);
|
||||||
wxColor end_colour = StepColour(m_base_colour, 110);
|
wxColor bottom_color = StepColour(m_base_colour, 110);
|
||||||
dc.GradientFillLinear(r, start_colour, end_colour, wxSOUTH);
|
dc.GradientFillLinear(r, top_color, bottom_color, wxSOUTH);
|
||||||
|
|
||||||
// draw base lines
|
// draw base lines
|
||||||
int y = rect.GetHeight();
|
int y = rect.GetHeight();
|
||||||
int w = rect.GetWidth();
|
int w = rect.GetWidth();
|
||||||
dc.SetPen(m_border_pen);
|
dc.SetPen(m_border_pen);
|
||||||
dc.DrawLine(0, y-4, w, y-4);
|
dc.SetBrush(m_base_colour_brush);
|
||||||
dc.DrawLine(0, y-1, w, y-1);
|
dc.DrawRectangle(-1, y-4, w+2, 4);
|
||||||
dc.SetPen(wxPen(start_colour));
|
|
||||||
dc.DrawLine(0, y-3, w, y-3);
|
|
||||||
dc.DrawLine(0, y-2, w, y-2);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -440,23 +437,24 @@ void wxAuiDefaultTabArt::DrawTab(wxDC& dc,
|
|||||||
// this white helps fill out the gradient at the top of the tab
|
// this white helps fill out the gradient at the top of the tab
|
||||||
dc.SetPen(*wxWHITE_PEN);
|
dc.SetPen(*wxWHITE_PEN);
|
||||||
dc.SetBrush(*wxWHITE_BRUSH);
|
dc.SetBrush(*wxWHITE_BRUSH);
|
||||||
dc.DrawRectangle(r.x+2, r.y+2, r.width-3, r.height);
|
dc.DrawRectangle(r.x+2, r.y+1, r.width-3, r.height);
|
||||||
|
|
||||||
// these two points help the rounded corners appear more antialiased
|
// these two points help the rounded corners appear more antialiased
|
||||||
dc.SetPen(m_base_colour_pen);
|
dc.SetPen(m_base_colour_pen);
|
||||||
dc.DrawPoint(r.x+2, r.y+2);
|
dc.DrawPoint(r.x+2, r.y+1);
|
||||||
dc.DrawPoint(r.x+r.width-2, r.y+2);
|
dc.DrawPoint(r.x+r.width-2, r.y+1);
|
||||||
|
|
||||||
// set rectangle down a bit for gradient drawing
|
// set rectangle down a bit for gradient drawing
|
||||||
r.SetHeight(r.GetHeight()/2);
|
r.SetHeight(r.GetHeight()/2);
|
||||||
r.x += 2;
|
r.x += 2;
|
||||||
r.width -= 2;
|
r.width -= 2;
|
||||||
r.y += r.height;
|
r.y += r.height;
|
||||||
|
r.y -= 2;
|
||||||
|
|
||||||
// draw gradient background
|
// draw gradient background
|
||||||
wxColor start_color = StepColour(m_base_colour, 95);
|
wxColor top_color = *wxWHITE;
|
||||||
wxColor end_color = *wxWHITE;
|
wxColor bottom_color = m_base_colour;
|
||||||
dc.GradientFillLinear(r, start_color, end_color, wxNORTH);
|
dc.GradientFillLinear(r, bottom_color, top_color, wxNORTH);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -464,22 +462,27 @@ void wxAuiDefaultTabArt::DrawTab(wxDC& dc,
|
|||||||
|
|
||||||
wxRect r(tab_x, tab_y+1, tab_width, tab_height-3);
|
wxRect r(tab_x, tab_y+1, tab_width, tab_height-3);
|
||||||
|
|
||||||
// draw base background color for inactive tabs
|
|
||||||
dc.SetPen(m_base_colour_pen);
|
|
||||||
dc.SetBrush(m_base_colour_brush);
|
|
||||||
dc.DrawRectangle(r.x, r.y, r.width, r.height);
|
|
||||||
|
|
||||||
// start the gradent up a bit and leave the inside border inset
|
// start the gradent up a bit and leave the inside border inset
|
||||||
// by a pixel for a 3D look. Only the top half of the inactive
|
// by a pixel for a 3D look. Only the top half of the inactive
|
||||||
// tab will have a slight gradient
|
// tab will have a slight gradient
|
||||||
r.x += 2;
|
r.x += 3;
|
||||||
r.width -= 2;
|
r.y++;
|
||||||
|
r.width -= 4;
|
||||||
r.height /= 2;
|
r.height /= 2;
|
||||||
|
r.height--;
|
||||||
|
|
||||||
// -- draw bottom gradient fill for glossy look
|
// -- draw top gradient fill for glossy look
|
||||||
wxColor top_color = m_base_colour;
|
wxColor top_color = m_base_colour;
|
||||||
wxColor bottom_color = StepColour(top_color, 106);
|
wxColor bottom_color = StepColour(top_color, 106);
|
||||||
dc.GradientFillLinear(r, bottom_color, top_color, wxNORTH);
|
dc.GradientFillLinear(r, bottom_color, top_color, wxNORTH);
|
||||||
|
|
||||||
|
r.y += r.height;
|
||||||
|
r.y--;
|
||||||
|
|
||||||
|
// -- draw bottom fill for glossy look
|
||||||
|
top_color = m_base_colour;
|
||||||
|
bottom_color = m_base_colour;
|
||||||
|
dc.GradientFillLinear(r, top_color, bottom_color, wxSOUTH);
|
||||||
}
|
}
|
||||||
|
|
||||||
// draw tab outline
|
// draw tab outline
|
||||||
@@ -491,11 +494,11 @@ void wxAuiDefaultTabArt::DrawTab(wxDC& dc,
|
|||||||
// this gets rid of the top one of those lines in the tab control
|
// this gets rid of the top one of those lines in the tab control
|
||||||
if (active)
|
if (active)
|
||||||
{
|
{
|
||||||
wxColor start_color = StepColour(m_base_colour, 93);
|
wxColor start_color = m_base_colour;
|
||||||
dc.SetPen(wxPen(start_color));
|
dc.SetPen(m_base_colour_pen);
|
||||||
dc.DrawLine(border_points[0].x,
|
dc.DrawLine(border_points[0].x+1,
|
||||||
border_points[0].y,
|
border_points[0].y,
|
||||||
border_points[5].x+1,
|
border_points[5].x,
|
||||||
border_points[5].y);
|
border_points[5].y);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2417,8 +2420,6 @@ void wxAuiNotebook::InitNotebook(long style)
|
|||||||
m_dummy_wnd = NULL;
|
m_dummy_wnd = NULL;
|
||||||
m_flags = (unsigned int)style;
|
m_flags = (unsigned int)style;
|
||||||
m_tab_ctrl_height = 20;
|
m_tab_ctrl_height = 20;
|
||||||
m_requested_bmp_size = wxDefaultSize;
|
|
||||||
m_requested_tabctrl_height = -1;
|
|
||||||
|
|
||||||
m_normal_font = *wxNORMAL_FONT;
|
m_normal_font = *wxNORMAL_FONT;
|
||||||
m_selected_font = *wxNORMAL_FONT;
|
m_selected_font = *wxNORMAL_FONT;
|
||||||
|
@@ -1825,7 +1825,8 @@ bool wxDb::DispAllErrors(HENV aHenv, HDBC aHdbc, HSTMT aHstmt)
|
|||||||
|
|
||||||
while (SQLError(aHenv, aHdbc, aHstmt, (SQLTCHAR FAR *) sqlState, &nativeError, (SQLTCHAR FAR *) errorMsg, SQL_MAX_MESSAGE_LENGTH - 1, &cbErrorMsg) == SQL_SUCCESS)
|
while (SQLError(aHenv, aHdbc, aHstmt, (SQLTCHAR FAR *) sqlState, &nativeError, (SQLTCHAR FAR *) errorMsg, SQL_MAX_MESSAGE_LENGTH - 1, &cbErrorMsg) == SQL_SUCCESS)
|
||||||
{
|
{
|
||||||
odbcErrMsg.Printf(wxT("SQL State = %s\nNative Error Code = %li\nError Message = %s\n"), sqlState, nativeError, errorMsg);
|
odbcErrMsg.Printf(wxT("SQL State = %s\nNative Error Code = %li\nError Message = %s\n"),
|
||||||
|
sqlState, (long)nativeError, errorMsg);
|
||||||
logError(odbcErrMsg, sqlState);
|
logError(odbcErrMsg, sqlState);
|
||||||
if (!silent)
|
if (!silent)
|
||||||
{
|
{
|
||||||
@@ -1863,7 +1864,8 @@ void wxDb::DispNextError(void)
|
|||||||
{
|
{
|
||||||
wxString odbcErrMsg;
|
wxString odbcErrMsg;
|
||||||
|
|
||||||
odbcErrMsg.Printf(wxT("SQL State = %s\nNative Error Code = %li\nError Message = %s\n"), sqlState, nativeError, errorMsg);
|
odbcErrMsg.Printf(wxT("SQL State = %s\nNative Error Code = %li\nError Message = %s\n"),
|
||||||
|
sqlState, (long)nativeError, errorMsg);
|
||||||
logError(odbcErrMsg, sqlState);
|
logError(odbcErrMsg, sqlState);
|
||||||
|
|
||||||
if (silent)
|
if (silent)
|
||||||
|
@@ -698,13 +698,14 @@ void wxDCBase::DoGradientFillLinear(const wxRect& rect,
|
|||||||
{
|
{
|
||||||
// save old pen
|
// save old pen
|
||||||
wxPen oldPen = m_pen;
|
wxPen oldPen = m_pen;
|
||||||
|
wxBrush oldBrush = m_brush;
|
||||||
|
|
||||||
wxUint8 nR1 = destColour.Red();
|
wxUint8 nR1 = initialColour.Red();
|
||||||
wxUint8 nG1 = destColour.Green();
|
wxUint8 nG1 = initialColour.Green();
|
||||||
wxUint8 nB1 = destColour.Blue();
|
wxUint8 nB1 = initialColour.Blue();
|
||||||
wxUint8 nR2 = initialColour.Red();
|
wxUint8 nR2 = destColour.Red();
|
||||||
wxUint8 nG2 = initialColour.Green();
|
wxUint8 nG2 = destColour.Green();
|
||||||
wxUint8 nB2 = initialColour.Blue();
|
wxUint8 nB2 = destColour.Blue();
|
||||||
wxUint8 nR, nG, nB;
|
wxUint8 nR, nG, nB;
|
||||||
|
|
||||||
if ( nDirection == wxEAST || nDirection == wxWEST )
|
if ( nDirection == wxEAST || nDirection == wxWEST )
|
||||||
@@ -733,12 +734,14 @@ void wxDCBase::DoGradientFillLinear(const wxRect& rect,
|
|||||||
else
|
else
|
||||||
nB = nB1 + (nB2-nB1)*(w-x)/w;
|
nB = nB1 + (nB2-nB1)*(w-x)/w;
|
||||||
|
|
||||||
SetPen(wxPen(wxColour(nR, nG, nB), 1, wxSOLID));
|
wxColour colour(nR,nG,nB);
|
||||||
|
SetPen(wxPen(colour, 1, wxSOLID));
|
||||||
|
SetBrush(wxBrush(colour));
|
||||||
if(nDirection == wxEAST)
|
if(nDirection == wxEAST)
|
||||||
DrawRectangle(rect.GetLeft()+x, rect.GetTop(),
|
DrawRectangle(rect.GetRight()-x-xDelta, rect.GetTop(),
|
||||||
xDelta, rect.GetHeight());
|
xDelta, rect.GetHeight());
|
||||||
else //nDirection == wxWEST
|
else //nDirection == wxWEST
|
||||||
DrawRectangle(rect.GetRight()-x-xDelta, rect.GetTop(),
|
DrawRectangle(rect.GetLeft()+x, rect.GetTop(),
|
||||||
xDelta, rect.GetHeight());
|
xDelta, rect.GetHeight());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -768,7 +771,9 @@ void wxDCBase::DoGradientFillLinear(const wxRect& rect,
|
|||||||
else
|
else
|
||||||
nB = nB1 + (nB2-nB1)*(w-y)/w;
|
nB = nB1 + (nB2-nB1)*(w-y)/w;
|
||||||
|
|
||||||
SetPen(wxPen(wxColour(nR, nG, nB), 1, wxSOLID));
|
wxColour colour(nR,nG,nB);
|
||||||
|
SetPen(wxPen(colour, 1, wxSOLID));
|
||||||
|
SetBrush(wxBrush(colour));
|
||||||
if(nDirection == wxNORTH)
|
if(nDirection == wxNORTH)
|
||||||
DrawRectangle(rect.GetLeft(), rect.GetTop()+y,
|
DrawRectangle(rect.GetLeft(), rect.GetTop()+y,
|
||||||
rect.GetWidth(), yDelta);
|
rect.GetWidth(), yDelta);
|
||||||
@@ -779,6 +784,7 @@ void wxDCBase::DoGradientFillLinear(const wxRect& rect,
|
|||||||
}
|
}
|
||||||
|
|
||||||
SetPen(oldPen);
|
SetPen(oldPen);
|
||||||
|
SetBrush(oldBrush);
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxDCBase::DoGradientFillConcentric(const wxRect& rect,
|
void wxDCBase::DoGradientFillConcentric(const wxRect& rect,
|
||||||
|
@@ -435,10 +435,17 @@ bool wxMultiChoiceDialog::Create( wxWindow *parent,
|
|||||||
long style,
|
long style,
|
||||||
const wxPoint& pos )
|
const wxPoint& pos )
|
||||||
{
|
{
|
||||||
|
long styleLbox;
|
||||||
|
#if wxUSE_CHECKLISTBOX
|
||||||
|
styleLbox = wxLB_ALWAYS_SB;
|
||||||
|
#else
|
||||||
|
styleLbox = wxLB_ALWAYS_SB | wxLB_EXTENDED;
|
||||||
|
#endif
|
||||||
|
|
||||||
if ( !wxAnyChoiceDialog::Create(parent, message, caption,
|
if ( !wxAnyChoiceDialog::Create(parent, message, caption,
|
||||||
n, choices,
|
n, choices,
|
||||||
style, pos,
|
style, pos,
|
||||||
wxLB_ALWAYS_SB | wxLB_EXTENDED) )
|
styleLbox) )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
@@ -458,6 +465,30 @@ bool wxMultiChoiceDialog::Create( wxWindow *parent,
|
|||||||
|
|
||||||
void wxMultiChoiceDialog::SetSelections(const wxArrayInt& selections)
|
void wxMultiChoiceDialog::SetSelections(const wxArrayInt& selections)
|
||||||
{
|
{
|
||||||
|
#if wxUSE_CHECKLISTBOX
|
||||||
|
wxCheckListBox* checkListBox = wxDynamicCast(m_listbox, wxCheckListBox);
|
||||||
|
if (checkListBox)
|
||||||
|
{
|
||||||
|
// first clear all currently selected items
|
||||||
|
size_t n,
|
||||||
|
count = checkListBox->GetCount();
|
||||||
|
for ( n = 0; n < count; ++n )
|
||||||
|
{
|
||||||
|
if (checkListBox->IsChecked(n))
|
||||||
|
checkListBox->Check(n, false);
|
||||||
|
}
|
||||||
|
|
||||||
|
// now select the ones which should be selected
|
||||||
|
count = selections.GetCount();
|
||||||
|
for ( n = 0; n < count; n++ )
|
||||||
|
{
|
||||||
|
checkListBox->Check(selections[n]);
|
||||||
|
}
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// first clear all currently selected items
|
// first clear all currently selected items
|
||||||
size_t n,
|
size_t n,
|
||||||
count = m_listbox->GetCount();
|
count = m_listbox->GetCount();
|
||||||
@@ -477,6 +508,21 @@ void wxMultiChoiceDialog::SetSelections(const wxArrayInt& selections)
|
|||||||
bool wxMultiChoiceDialog::TransferDataFromWindow()
|
bool wxMultiChoiceDialog::TransferDataFromWindow()
|
||||||
{
|
{
|
||||||
m_selections.Empty();
|
m_selections.Empty();
|
||||||
|
|
||||||
|
#if wxUSE_CHECKLISTBOX
|
||||||
|
wxCheckListBox* checkListBox = wxDynamicCast(m_listbox, wxCheckListBox);
|
||||||
|
if (checkListBox)
|
||||||
|
{
|
||||||
|
size_t count = checkListBox->GetCount();
|
||||||
|
for ( size_t n = 0; n < count; n++ )
|
||||||
|
{
|
||||||
|
if ( checkListBox->IsChecked(n) )
|
||||||
|
m_selections.Add(n);
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
size_t count = m_listbox->GetCount();
|
size_t count = m_listbox->GetCount();
|
||||||
for ( size_t n = 0; n < count; n++ )
|
for ( size_t n = 0; n < count; n++ )
|
||||||
{
|
{
|
||||||
|
@@ -52,12 +52,6 @@
|
|||||||
#include "wx/mac/private.h"
|
#include "wx/mac/private.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __WXGTK20__
|
|
||||||
#include "wx/gtk/private.h"
|
|
||||||
#include "wx/gtk/win_gtk.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// NOTE: If using the wxListBox visual attributes works everywhere then this can
|
// NOTE: If using the wxListBox visual attributes works everywhere then this can
|
||||||
// be removed, as well as the #else case below.
|
// be removed, as well as the #else case below.
|
||||||
@@ -1456,17 +1450,11 @@ void wxListLineData::Draw( wxDC *dc )
|
|||||||
{
|
{
|
||||||
if (highlighted)
|
if (highlighted)
|
||||||
{
|
{
|
||||||
wxRect rect2( m_gi->m_rectHighlight );
|
int flags = wxCONTROL_SELECTED;
|
||||||
m_owner->CalcScrolledPosition( rect2.x, rect2.y, &rect2.x, &rect2.y );
|
if (m_owner->HasFocus())
|
||||||
|
flags |= wxCONTROL_FOCUSED;
|
||||||
|
wxRendererNative::Get().DrawItemSelectionRect( m_owner, *dc, m_gi->m_rectHighlight, flags );
|
||||||
|
|
||||||
gtk_paint_flat_box( m_owner->m_widget->style,
|
|
||||||
GTK_PIZZA(m_owner->m_wxwindow)->bin_window,
|
|
||||||
GTK_STATE_SELECTED,
|
|
||||||
GTK_SHADOW_NONE,
|
|
||||||
NULL,
|
|
||||||
m_owner->m_wxwindow,
|
|
||||||
"cell_even",
|
|
||||||
rect2.x, rect2.y, rect2.width, rect2.height );
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -1521,17 +1509,10 @@ void wxListLineData::DrawInReportMode( wxDC *dc,
|
|||||||
{
|
{
|
||||||
if (highlighted)
|
if (highlighted)
|
||||||
{
|
{
|
||||||
wxRect rect2( rectHL );
|
int flags = wxCONTROL_SELECTED;
|
||||||
m_owner->CalcScrolledPosition( rect2.x, rect2.y, &rect2.x, &rect2.y );
|
if (m_owner->HasFocus())
|
||||||
|
flags |= wxCONTROL_FOCUSED;
|
||||||
gtk_paint_flat_box( m_owner->m_widget->style,
|
wxRendererNative::Get().DrawItemSelectionRect( m_owner, *dc, rectHL, flags );
|
||||||
GTK_PIZZA(m_owner->m_wxwindow)->bin_window,
|
|
||||||
GTK_STATE_SELECTED,
|
|
||||||
GTK_SHADOW_NONE,
|
|
||||||
NULL,
|
|
||||||
m_owner->m_wxwindow,
|
|
||||||
"cell_even",
|
|
||||||
rect2.x, rect2.y, rect2.width, rect2.height );
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -2801,15 +2782,7 @@ void wxListMainWindow::OnPaint( wxPaintEvent &WXUNUSED(event) )
|
|||||||
dc.SetBrush( *wxTRANSPARENT_BRUSH );
|
dc.SetBrush( *wxTRANSPARENT_BRUSH );
|
||||||
dc.DrawRectangle( rect );
|
dc.DrawRectangle( rect );
|
||||||
#else
|
#else
|
||||||
CalcScrolledPosition( rect.x, rect.y, &rect.x, &rect.y );
|
wxRendererNative::Get().DrawItemSelectionRect( this, dc, rect, wxCONTROL_CURRENT|wxCONTROL_FOCUSED );
|
||||||
|
|
||||||
gtk_paint_focus( m_widget->style,
|
|
||||||
GTK_PIZZA(m_wxwindow)->bin_window,
|
|
||||||
GTK_STATE_SELECTED,
|
|
||||||
NULL,
|
|
||||||
m_wxwindow,
|
|
||||||
"treeview",
|
|
||||||
rect.x, rect.y, rect.width, rect.height );
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@@ -45,11 +45,6 @@
|
|||||||
#include "wx/mac/private.h"
|
#include "wx/mac/private.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __WXGTK20__
|
|
||||||
#include "wx/gtk/private.h"
|
|
||||||
#include "wx/gtk/win_gtk.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
// array types
|
// array types
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
@@ -2250,25 +2245,12 @@ void wxGenericTreeCtrl::PaintItem(wxGenericTreeItem *item, wxDC& dc)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
CalcScrolledPosition( rect.x, rect.y, &rect.x, &rect.y );
|
int flags = wxCONTROL_SELECTED;
|
||||||
|
if (m_hasFocus)
|
||||||
gtk_paint_flat_box( m_widget->style,
|
flags |= wxCONTROL_FOCUSED;
|
||||||
GTK_PIZZA(m_wxwindow)->bin_window,
|
|
||||||
GTK_STATE_SELECTED,
|
|
||||||
GTK_SHADOW_NONE,
|
|
||||||
NULL,
|
|
||||||
m_wxwindow,
|
|
||||||
"cell_even",
|
|
||||||
rect.x, rect.y, rect.width, rect.height );
|
|
||||||
|
|
||||||
if ((item == m_current) && (m_hasFocus))
|
if ((item == m_current) && (m_hasFocus))
|
||||||
gtk_paint_focus( m_widget->style,
|
flags |= wxCONTROL_CURRENT;
|
||||||
GTK_PIZZA(m_wxwindow)->bin_window,
|
wxRendererNative::Get().DrawItemSelectionRect( this, dc, rect, flags );
|
||||||
GTK_STATE_SELECTED,
|
|
||||||
NULL,
|
|
||||||
m_wxwindow,
|
|
||||||
"treeview",
|
|
||||||
rect.x, rect.y, rect.width, rect.height );
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
@@ -2284,28 +2266,15 @@ void wxGenericTreeCtrl::PaintItem(wxGenericTreeItem *item, wxDC& dc)
|
|||||||
#ifndef __WXGTK20__
|
#ifndef __WXGTK20__
|
||||||
dc.DrawRectangle( rect );
|
dc.DrawRectangle( rect );
|
||||||
#else
|
#else
|
||||||
CalcScrolledPosition( rect.x, rect.y, &rect.x, &rect.y );
|
|
||||||
rect.x -= 1;
|
rect.x -= 1;
|
||||||
rect.width += 2;
|
rect.width += 2;
|
||||||
|
|
||||||
gtk_paint_flat_box( m_widget->style,
|
int flags = wxCONTROL_SELECTED;
|
||||||
GTK_PIZZA(m_wxwindow)->bin_window,
|
if (m_hasFocus)
|
||||||
GTK_STATE_SELECTED,
|
flags |= wxCONTROL_FOCUSED;
|
||||||
GTK_SHADOW_NONE,
|
|
||||||
NULL,
|
|
||||||
m_wxwindow,
|
|
||||||
"cell_even",
|
|
||||||
rect.x, rect.y, rect.width, rect.height );
|
|
||||||
|
|
||||||
if ((item == m_current) && (m_hasFocus))
|
if ((item == m_current) && (m_hasFocus))
|
||||||
gtk_paint_focus( m_widget->style,
|
flags |= wxCONTROL_CURRENT;
|
||||||
GTK_PIZZA(m_wxwindow)->bin_window,
|
wxRendererNative::Get().DrawItemSelectionRect( this, dc, rect, flags );
|
||||||
GTK_STATE_SELECTED,
|
|
||||||
NULL,
|
|
||||||
m_wxwindow,
|
|
||||||
"treeview",
|
|
||||||
rect.x, rect.y, rect.width, rect.height );
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
// On GTK+ 2, drawing a 'normal' background is wrong for themes that
|
// On GTK+ 2, drawing a 'normal' background is wrong for themes that
|
||||||
@@ -2324,27 +2293,15 @@ void wxGenericTreeCtrl::PaintItem(wxGenericTreeItem *item, wxDC& dc)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
CalcScrolledPosition( rect.x, rect.y, &rect.x, &rect.y );
|
|
||||||
rect.x -= 1;
|
rect.x -= 1;
|
||||||
rect.width += 2;
|
rect.width += 2;
|
||||||
|
|
||||||
gtk_paint_flat_box( m_widget->style,
|
int flags = wxCONTROL_SELECTED;
|
||||||
GTK_PIZZA(m_wxwindow)->bin_window,
|
if (m_hasFocus)
|
||||||
GTK_STATE_SELECTED,
|
flags |= wxCONTROL_FOCUSED;
|
||||||
GTK_SHADOW_NONE,
|
|
||||||
NULL,
|
|
||||||
m_wxwindow,
|
|
||||||
"cell_even",
|
|
||||||
rect.x, rect.y, rect.width, rect.height );
|
|
||||||
|
|
||||||
if ((item == m_current) && (m_hasFocus))
|
if ((item == m_current) && (m_hasFocus))
|
||||||
gtk_paint_focus( m_widget->style,
|
flags |= wxCONTROL_CURRENT;
|
||||||
GTK_PIZZA(m_wxwindow)->bin_window,
|
wxRendererNative::Get().DrawItemSelectionRect( this, dc, rect, flags );
|
||||||
GTK_STATE_SELECTED,
|
|
||||||
NULL,
|
|
||||||
m_wxwindow,
|
|
||||||
"treeview",
|
|
||||||
rect.x, rect.y, rect.width, rect.height );
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@@ -510,22 +510,25 @@ wxRendererGTK::DrawItemSelectionRect(wxWindow *win,
|
|||||||
wxASSERT_MSG( gdk_window,
|
wxASSERT_MSG( gdk_window,
|
||||||
wxT("cannot use wxRendererNative on wxDC of this type") );
|
wxT("cannot use wxRendererNative on wxDC of this type") );
|
||||||
|
|
||||||
|
int x_diff = 0;
|
||||||
|
if (win->GetLayoutDirection() == wxLayout_RightToLeft)
|
||||||
|
x_diff = rect.width;
|
||||||
|
|
||||||
GtkStateType state;
|
GtkStateType state;
|
||||||
if (flags & wxCONTROL_SELECTED)
|
if (flags & wxCONTROL_SELECTED)
|
||||||
{
|
{
|
||||||
if (flags & wxCONTROL_FOCUSED)
|
// the wxCONTROL_FOCUSED state is deduced
|
||||||
state = GTK_STATE_SELECTED;
|
// directly from the m_wxwindow by GTK+
|
||||||
else
|
state = GTK_STATE_SELECTED;
|
||||||
state = GTK_STATE_INSENSITIVE;
|
|
||||||
|
|
||||||
gtk_paint_flat_box( win->m_wxwindow->style,
|
gtk_paint_flat_box( win->m_widget->style,
|
||||||
gdk_window,
|
gdk_window,
|
||||||
state,
|
state,
|
||||||
GTK_SHADOW_NONE,
|
GTK_SHADOW_NONE,
|
||||||
NULL,
|
NULL,
|
||||||
win->m_wxwindow,
|
win->m_wxwindow,
|
||||||
"treeview",
|
"cell_even",
|
||||||
dc.LogicalToDeviceX(rect.x),
|
dc.LogicalToDeviceX(rect.x) - x_diff,
|
||||||
dc.LogicalToDeviceY(rect.y),
|
dc.LogicalToDeviceY(rect.y),
|
||||||
rect.width,
|
rect.width,
|
||||||
rect.height );
|
rect.height );
|
||||||
@@ -533,8 +536,15 @@ wxRendererGTK::DrawItemSelectionRect(wxWindow *win,
|
|||||||
|
|
||||||
if (flags & wxCONTROL_CURRENT)
|
if (flags & wxCONTROL_CURRENT)
|
||||||
{
|
{
|
||||||
dc.SetPen( *wxBLACK_PEN );
|
gtk_paint_focus( win->m_widget->style,
|
||||||
dc.SetBrush( *wxTRANSPARENT_BRUSH );
|
gdk_window,
|
||||||
dc.DrawRectangle( rect );
|
GTK_STATE_SELECTED,
|
||||||
|
NULL,
|
||||||
|
win->m_wxwindow,
|
||||||
|
"treeview",
|
||||||
|
dc.LogicalToDeviceX(rect.x),
|
||||||
|
dc.LogicalToDeviceY(rect.y),
|
||||||
|
rect.width,
|
||||||
|
rect.height );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -169,11 +169,27 @@ bool wxControl::MSWCreateControl(const wxChar *classname,
|
|||||||
InheritAttributes();
|
InheritAttributes();
|
||||||
if ( !m_hasFont )
|
if ( !m_hasFont )
|
||||||
{
|
{
|
||||||
#if wxUSE_LISTCTRL || wxUSE_TREECTRL
|
bool setFont = true;
|
||||||
|
|
||||||
|
wxFont font = GetDefaultAttributes().font;
|
||||||
|
|
||||||
// if we set a font for {list,tree}ctrls and the font size is changed in
|
// if we set a font for {list,tree}ctrls and the font size is changed in
|
||||||
// the display properties then the font size for these controls doesn't
|
// the display properties then the font size for these controls doesn't
|
||||||
// automatically adjust when they receive WM_SETTINGCHANGE
|
// automatically adjust when they receive WM_SETTINGCHANGE
|
||||||
if ( wxDynamicCastThis(wxListCtrl) || wxDynamicCastThis(wxTreeCtrl) )
|
|
||||||
|
// FIXME: replace the dynamic casts with virtual function calls!!
|
||||||
|
#if wxUSE_LISTCTRL || wxUSE_TREECTRL
|
||||||
|
bool testFont = false;
|
||||||
|
#if wxUSE_LISTCTRL
|
||||||
|
if ( wxDynamicCastThis(wxListCtrl) )
|
||||||
|
testFont = true;
|
||||||
|
#endif // wxUSE_LISTCTRL
|
||||||
|
#if wxUSE_TREECTRL
|
||||||
|
if ( wxDynamicCastThis(wxTreeCtrl) )
|
||||||
|
testFont = true;
|
||||||
|
#endif wxUSE_TREECTRL
|
||||||
|
|
||||||
|
if ( testFont )
|
||||||
{
|
{
|
||||||
// not sure if we need to explicitly set the font here for Win95/NT4
|
// not sure if we need to explicitly set the font here for Win95/NT4
|
||||||
// but we definitely can't do it for any newer version
|
// but we definitely can't do it for any newer version
|
||||||
@@ -182,14 +198,14 @@ bool wxControl::MSWCreateControl(const wxChar *classname,
|
|||||||
|
|
||||||
// TODO: test Win95/NT4 to see if this is needed or breaks the
|
// TODO: test Win95/NT4 to see if this is needed or breaks the
|
||||||
// font resizing as it does on newer versions
|
// font resizing as it does on newer versions
|
||||||
wxFont font = GetDefaultAttributes().font;
|
if ( font != wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT) )
|
||||||
if ( font == wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT) )
|
|
||||||
{
|
{
|
||||||
SetFont(font);
|
setFont = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
|
||||||
#endif // wxUSE_LISTCTRL || wxUSE_TREECTRL
|
#endif // wxUSE_LISTCTRL || wxUSE_TREECTRL
|
||||||
|
|
||||||
|
if ( setFont )
|
||||||
{
|
{
|
||||||
SetFont(GetDefaultAttributes().font);
|
SetFont(GetDefaultAttributes().font);
|
||||||
}
|
}
|
||||||
|
@@ -142,11 +142,11 @@ public :
|
|||||||
virtual void AddArcToPoint( wxDouble x1, wxDouble y1 , wxDouble x2, wxDouble y2, wxDouble r ) ;
|
virtual void AddArcToPoint( wxDouble x1, wxDouble y1 , wxDouble x2, wxDouble y2, wxDouble r ) ;
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// returns the native path
|
// returns the native path
|
||||||
virtual void * GetNativePath() const { return m_path; }
|
virtual void * GetNativePath() const { return m_path; }
|
||||||
|
|
||||||
// give the native path returned by GetNativePath() back (there might be some deallocations necessary)
|
// give the native path returned by GetNativePath() back (there might be some deallocations necessary)
|
||||||
virtual void UnGetNativePath(void * WXUNUSED(path)) const {}
|
virtual void UnGetNativePath(void * WXUNUSED(path)) const {}
|
||||||
|
|
||||||
// transforms each point of this path by the matrix
|
// transforms each point of this path by the matrix
|
||||||
virtual void Transform( const wxGraphicsMatrixData* matrix ) ;
|
virtual void Transform( const wxGraphicsMatrixData* matrix ) ;
|
||||||
@@ -281,10 +281,10 @@ public:
|
|||||||
// clips drawings to the rect
|
// clips drawings to the rect
|
||||||
virtual void Clip( wxDouble x, wxDouble y, wxDouble w, wxDouble h );
|
virtual void Clip( wxDouble x, wxDouble y, wxDouble w, wxDouble h );
|
||||||
|
|
||||||
// resets the clipping to original extent
|
// resets the clipping to original extent
|
||||||
virtual void ResetClip();
|
virtual void ResetClip();
|
||||||
|
|
||||||
virtual void * GetNativeContext();
|
virtual void * GetNativeContext();
|
||||||
|
|
||||||
virtual void StrokePath( const wxGraphicsPath& p );
|
virtual void StrokePath( const wxGraphicsPath& p );
|
||||||
virtual void FillPath( const wxGraphicsPath& p , int fillStyle = wxODDEVEN_RULE );
|
virtual void FillPath( const wxGraphicsPath& p , int fillStyle = wxODDEVEN_RULE );
|
||||||
@@ -1180,7 +1180,7 @@ void wxGDIPlusContext::GetPartialTextExtents(const wxString& text, wxArrayDouble
|
|||||||
|
|
||||||
void* wxGDIPlusContext::GetNativeContext()
|
void* wxGDIPlusContext::GetNativeContext()
|
||||||
{
|
{
|
||||||
return m_context;
|
return m_context;
|
||||||
}
|
}
|
||||||
|
|
||||||
// concatenates this transform with the current transform of this context
|
// concatenates this transform with the current transform of this context
|
||||||
@@ -1212,7 +1212,7 @@ public :
|
|||||||
wxGDIPlusRenderer()
|
wxGDIPlusRenderer()
|
||||||
{
|
{
|
||||||
m_loaded = false;
|
m_loaded = false;
|
||||||
m_gditoken = NULL;
|
m_gditoken = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual ~wxGDIPlusRenderer()
|
virtual ~wxGDIPlusRenderer()
|
||||||
@@ -1269,7 +1269,7 @@ protected :
|
|||||||
|
|
||||||
private :
|
private :
|
||||||
bool m_loaded;
|
bool m_loaded;
|
||||||
DWORD m_gditoken;
|
ULONG_PTR m_gditoken;
|
||||||
|
|
||||||
DECLARE_DYNAMIC_CLASS_NO_COPY(wxGDIPlusRenderer)
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxGDIPlusRenderer)
|
||||||
} ;
|
} ;
|
||||||
|
@@ -109,7 +109,6 @@ void wxRichTextStyleOrganiserDialog::Init()
|
|||||||
m_deleteStyle = NULL;
|
m_deleteStyle = NULL;
|
||||||
m_closeButton = NULL;
|
m_closeButton = NULL;
|
||||||
m_bottomButtonSizer = NULL;
|
m_bottomButtonSizer = NULL;
|
||||||
|
|
||||||
m_restartNumberingCtrl = NULL;
|
m_restartNumberingCtrl = NULL;
|
||||||
m_okButton = NULL;
|
m_okButton = NULL;
|
||||||
m_cancelButton = NULL;
|
m_cancelButton = NULL;
|
||||||
@@ -486,7 +485,7 @@ iaculis malesuada. Donec bibendum ipsum ut ante porta fringilla.\n");
|
|||||||
/// Clears the preview
|
/// Clears the preview
|
||||||
void wxRichTextStyleOrganiserDialog::ClearPreview()
|
void wxRichTextStyleOrganiserDialog::ClearPreview()
|
||||||
{
|
{
|
||||||
m_richTextCtrl->Clear();
|
m_previewCtrl->Clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxRichTextStyleOrganiserDialog::ApplyStyle(wxRichTextCtrl* ctrl)
|
bool wxRichTextStyleOrganiserDialog::ApplyStyle(wxRichTextCtrl* ctrl)
|
||||||
@@ -835,6 +834,28 @@ void wxRichTextStyleOrganiserDialog::OnNewListUpdate( wxUpdateUIEvent& event )
|
|||||||
|
|
||||||
void wxRichTextStyleOrganiserDialog::OnRenameClick( wxCommandEvent& WXUNUSED(event) )
|
void wxRichTextStyleOrganiserDialog::OnRenameClick( wxCommandEvent& WXUNUSED(event) )
|
||||||
{
|
{
|
||||||
|
int sel = m_stylesListBox->GetStyleListBox()->GetSelection();
|
||||||
|
if (sel == -1)
|
||||||
|
return;
|
||||||
|
wxRichTextStyleDefinition* def = m_stylesListBox->GetStyleListBox()->GetStyle(sel);
|
||||||
|
if (!def)
|
||||||
|
return;
|
||||||
|
|
||||||
|
wxString styleName = wxGetTextFromUser(_("Enter a new style name"), _("New Style"), def->GetName());
|
||||||
|
if (!styleName.IsEmpty())
|
||||||
|
{
|
||||||
|
if (styleName == def->GetName())
|
||||||
|
return;
|
||||||
|
|
||||||
|
if (GetStyleSheet()->FindParagraphStyle(styleName) || GetStyleSheet()->FindCharacterStyle(styleName) || GetStyleSheet()->FindListStyle(styleName))
|
||||||
|
{
|
||||||
|
wxMessageBox(_("Sorry, that name is taken. Please choose another."), _("New Style"), wxICON_EXCLAMATION|wxOK, this);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
def->SetName(styleName);
|
||||||
|
m_stylesListBox->UpdateStyles();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
@@ -284,11 +284,10 @@ int wxStackWalker::InitFrames(wxStackFrame *arr, size_t n, void **addresses, cha
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!name.empty() || !filename.empty())
|
// now we've got enough info to initialize curr-th stack frame
|
||||||
{
|
// (at worst, only addresses[i] and syminfo[i] have been initialized,
|
||||||
// now we've got enough info to initialize curr-th stack frame:
|
// but wxStackFrame::OnGetName may still be able to get function name):
|
||||||
arr[curr++].Set(name, filename, syminfo[i], i, line, addresses[i]);
|
arr[curr++].Set(name, filename, syminfo[i], i, line, addresses[i]);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return curr;
|
return curr;
|
||||||
|
11
wxPython/samples/wxPIA_book/Chapter-01/bare.py
Normal file
11
wxPython/samples/wxPIA_book/Chapter-01/bare.py
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
import wx
|
||||||
|
|
||||||
|
class App(wx.App):
|
||||||
|
|
||||||
|
def OnInit(self):
|
||||||
|
frame = wx.Frame(parent=None, title='Bare')
|
||||||
|
frame.Show()
|
||||||
|
return True
|
||||||
|
|
||||||
|
app = App()
|
||||||
|
app.MainLoop()
|
36
wxPython/samples/wxPIA_book/Chapter-01/hello.py
Normal file
36
wxPython/samples/wxPIA_book/Chapter-01/hello.py
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
"""Hello, wxPython! program."""
|
||||||
|
|
||||||
|
import wx
|
||||||
|
|
||||||
|
class Frame(wx.Frame):
|
||||||
|
"""Frame class that displays an image."""
|
||||||
|
|
||||||
|
def __init__(self, image, parent=None, id=-1,
|
||||||
|
pos=wx.DefaultPosition, title='Hello, wxPython!'):
|
||||||
|
"""Create a Frame instance and display image."""
|
||||||
|
temp = image.ConvertToBitmap()
|
||||||
|
size = temp.GetWidth(), temp.GetHeight()
|
||||||
|
wx.Frame.__init__(self, parent, id, title, pos, size)
|
||||||
|
panel = wx.Panel(self)
|
||||||
|
self.bmp = wx.StaticBitmap(parent=panel, bitmap=temp)
|
||||||
|
self.SetClientSize(size)
|
||||||
|
|
||||||
|
class App(wx.App):
|
||||||
|
"""Application class."""
|
||||||
|
|
||||||
|
def OnInit(self):
|
||||||
|
image = wx.Image('wxPython.jpg', wx.BITMAP_TYPE_JPEG)
|
||||||
|
self.frame = Frame(image)
|
||||||
|
self.frame.Show()
|
||||||
|
self.SetTopWindow(self.frame)
|
||||||
|
return True
|
||||||
|
|
||||||
|
def main():
|
||||||
|
app = App()
|
||||||
|
app.MainLoop()
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
||||||
|
|
36
wxPython/samples/wxPIA_book/Chapter-01/python_compare.py
Normal file
36
wxPython/samples/wxPIA_book/Chapter-01/python_compare.py
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
import wx
|
||||||
|
|
||||||
|
class MyApp(wx.App):
|
||||||
|
|
||||||
|
def OnInit(self):
|
||||||
|
frame = MyFrame("Hello World", (50, 60), (450, 340))
|
||||||
|
frame.Show()
|
||||||
|
self.SetTopWindow(frame)
|
||||||
|
return True
|
||||||
|
|
||||||
|
class MyFrame(wx.Frame):
|
||||||
|
|
||||||
|
def __init__(self, title, pos, size):
|
||||||
|
wx.Frame.__init__(self, None, -1, title, pos, size)
|
||||||
|
menuFile = wx.Menu()
|
||||||
|
menuFile.Append(1, "&About...")
|
||||||
|
menuFile.AppendSeparator()
|
||||||
|
menuFile.Append(2, "E&xit")
|
||||||
|
menuBar = wx.MenuBar()
|
||||||
|
menuBar.Append(menuFile, "&File")
|
||||||
|
self.SetMenuBar(menuBar)
|
||||||
|
self.CreateStatusBar()
|
||||||
|
self.SetStatusText("Welcome to wxPython!")
|
||||||
|
self.Bind(wx.EVT_MENU, self.OnAbout, id=1)
|
||||||
|
self.Bind(wx.EVT_MENU, self.OnQuit, id=2)
|
||||||
|
|
||||||
|
def OnQuit(self, event):
|
||||||
|
self.Close()
|
||||||
|
|
||||||
|
def OnAbout(self, event):
|
||||||
|
wx.MessageBox("This is a wxPython Hello world sample",
|
||||||
|
"About Hello World", wx.OK | wx.ICON_INFORMATION, self)
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
app = MyApp(False)
|
||||||
|
app.MainLoop()
|
21
wxPython/samples/wxPIA_book/Chapter-01/sample.py
Normal file
21
wxPython/samples/wxPIA_book/Chapter-01/sample.py
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
#!/bin/env python
|
||||||
|
import wx
|
||||||
|
|
||||||
|
class MyFrame(wx.Frame):
|
||||||
|
|
||||||
|
def __init__(self):
|
||||||
|
wx.Frame.__init__(self, None, -1, "My Frame", size=(300, 300))
|
||||||
|
panel = wx.Panel(self, -1)
|
||||||
|
panel.Bind(wx.EVT_MOTION, self.OnMove)
|
||||||
|
wx.StaticText(panel, -1, "Pos:", pos=(10, 12))
|
||||||
|
self.posCtrl = wx.TextCtrl(panel, -1, "", pos=(40, 10))
|
||||||
|
|
||||||
|
def OnMove(self, event):
|
||||||
|
pos = event.GetPosition()
|
||||||
|
self.posCtrl.SetValue("%s, %s" % (pos.x, pos.y))
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
app = wx.PySimpleApp()
|
||||||
|
frame = MyFrame()
|
||||||
|
frame.Show(True)
|
||||||
|
app.MainLoop()
|
20
wxPython/samples/wxPIA_book/Chapter-01/spare.py
Normal file
20
wxPython/samples/wxPIA_book/Chapter-01/spare.py
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
"""Spare.py is a starting point for simple wxPython programs."""
|
||||||
|
|
||||||
|
import wx
|
||||||
|
|
||||||
|
class Frame(wx.Frame):
|
||||||
|
pass
|
||||||
|
|
||||||
|
class App(wx.App):
|
||||||
|
|
||||||
|
def OnInit(self):
|
||||||
|
self.frame = Frame(parent=None, title='Spare')
|
||||||
|
self.frame.Show()
|
||||||
|
self.SetTopWindow(self.frame)
|
||||||
|
return True
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
app = App()
|
||||||
|
app.MainLoop()
|
BIN
wxPython/samples/wxPIA_book/Chapter-01/wxPython.jpg
Normal file
BIN
wxPython/samples/wxPIA_book/Chapter-01/wxPython.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
36
wxPython/samples/wxPIA_book/Chapter-02/dialog_scratch.py
Normal file
36
wxPython/samples/wxPIA_book/Chapter-02/dialog_scratch.py
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
import wx
|
||||||
|
import images
|
||||||
|
|
||||||
|
class App(wx.App):
|
||||||
|
|
||||||
|
def __init__(self, redirect=True, filename=None):
|
||||||
|
wx.App.__init__(self, redirect, filename)
|
||||||
|
|
||||||
|
def OnInit(self):
|
||||||
|
dlg = wx.MessageDialog(None, 'Is this the coolest thing ever!',
|
||||||
|
'MessageDialog', wx.YES_NO | wx.ICON_QUESTION)
|
||||||
|
result = dlg.ShowModal()
|
||||||
|
dlg.Destroy()
|
||||||
|
|
||||||
|
dlg = wx.TextEntryDialog(None, "Who is buried in Grant's tomb?",
|
||||||
|
'A Question', 'Cary Grant')
|
||||||
|
if dlg.ShowModal() == wx.ID_OK:
|
||||||
|
response = dlg.GetValue()
|
||||||
|
dlg.Destroy()
|
||||||
|
|
||||||
|
dlg = wx.SingleChoiceDialog(None,
|
||||||
|
'What version of Python are you using?', 'Single Choice',
|
||||||
|
['1.5.2', '2.0', '2.1.3', '2.2', '2.3.1'])
|
||||||
|
if dlg.ShowModal() == wx.ID_OK:
|
||||||
|
response = dlg.GetStringSelection()
|
||||||
|
dlg.Destroy()
|
||||||
|
|
||||||
|
return True
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
app = App(False, "output")
|
||||||
|
fred = app.MainLoop()
|
||||||
|
|
24
wxPython/samples/wxPIA_book/Chapter-02/images.py
Normal file
24
wxPython/samples/wxPIA_book/Chapter-02/images.py
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
#----------------------------------------------------------------------
|
||||||
|
# This file was generated by encode_bitmaps.py
|
||||||
|
#
|
||||||
|
from wx import ImageFromStream, BitmapFromImage
|
||||||
|
from wx import EmptyIcon
|
||||||
|
import cStringIO
|
||||||
|
|
||||||
|
def getNewData():
|
||||||
|
return \
|
||||||
|
'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00\x10\x00\x00\x00\x0f\x08\x06\
|
||||||
|
\x00\x00\x00\xedsO/\x00\x00\x00\x04sBIT\x08\x08\x08\x08|\x08d\x88\x00\x00\
|
||||||
|
\x00YIDATx\x9c\xed\xd31\n@!\x0c\x03\xd0\xa4\xfe\xfb\xdfX\xe3\xf0\x97R\xa5(.\
|
||||||
|
\x0ef\x13\xe45\xa2\x92Vp\x92\xcf/\xd4\xaa\xb2\xcd\xb4\xc2\x14\x00\x00in\x90\
|
||||||
|
\x84ZUDl\xa9\xa7\xc3c\xcb-\x80\xfc\x87{d8B6=B\xdb\rfy\xc0\r\xc0\xf0\x0e\xfc\
|
||||||
|
\x1d\xaf\x84\xa7\xbf\xb1\x03\xe1,\x19&\x93\x9a\xd2\x97\x00\x00\x00\x00IEND\
|
||||||
|
\xaeB`\x82'
|
||||||
|
|
||||||
|
def getNewBitmap():
|
||||||
|
return BitmapFromImage(getNewImage())
|
||||||
|
|
||||||
|
def getNewImage():
|
||||||
|
stream = cStringIO.StringIO(getNewData())
|
||||||
|
return ImageFromStream(stream)
|
||||||
|
|
27
wxPython/samples/wxPIA_book/Chapter-02/insert.py
Normal file
27
wxPython/samples/wxPIA_book/Chapter-02/insert.py
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
import wx
|
||||||
|
|
||||||
|
class InsertFrame(wx.Frame):
|
||||||
|
|
||||||
|
def __init__(self, parent, id):
|
||||||
|
wx.Frame.__init__(self, parent, id, 'Frame With Button',
|
||||||
|
size=(300, 100))
|
||||||
|
panel = wx.Panel(self)
|
||||||
|
button = wx.Button(panel, label="Close", pos=(125, 10),
|
||||||
|
size=(50, 50))
|
||||||
|
self.Bind(wx.EVT_BUTTON, self.OnCloseMe, button)
|
||||||
|
self.Bind(wx.EVT_CLOSE, self.OnCloseWindow)
|
||||||
|
|
||||||
|
def OnCloseMe(self, event):
|
||||||
|
self.Close(True)
|
||||||
|
|
||||||
|
def OnCloseWindow(self, event):
|
||||||
|
self.Destroy()
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
app = wx.PySimpleApp()
|
||||||
|
frame = InsertFrame(parent=None, id=-1)
|
||||||
|
frame.Show()
|
||||||
|
app.MainLoop()
|
||||||
|
|
35
wxPython/samples/wxPIA_book/Chapter-02/startup.py
Normal file
35
wxPython/samples/wxPIA_book/Chapter-02/startup.py
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
import wx
|
||||||
|
import sys
|
||||||
|
|
||||||
|
class Frame(wx.Frame):
|
||||||
|
|
||||||
|
def __init__(self, parent, id, title):
|
||||||
|
print "Frame __init__"
|
||||||
|
wx.Frame.__init__(self, parent, id, title)
|
||||||
|
|
||||||
|
class App(wx.App):
|
||||||
|
|
||||||
|
def __init__(self, redirect=True, filename=None):
|
||||||
|
print "App __init__"
|
||||||
|
wx.App.__init__(self, redirect, filename)
|
||||||
|
|
||||||
|
def OnInit(self):
|
||||||
|
print "OnInit"
|
||||||
|
self.frame = Frame(parent=None, id=-1, title='Startup')
|
||||||
|
self.frame.Show()
|
||||||
|
self.SetTopWindow(self.frame)
|
||||||
|
print >> sys.stderr, "A pretend error message"
|
||||||
|
print "app name: <", self.GetVendorName(), ">"
|
||||||
|
return True
|
||||||
|
|
||||||
|
def OnExit(self):
|
||||||
|
print "OnExit"
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
app = App(redirect=True)
|
||||||
|
print "before MainLoop"
|
||||||
|
fred = app.MainLoop()
|
||||||
|
print "after MainLoop", fred
|
||||||
|
|
41
wxPython/samples/wxPIA_book/Chapter-02/toolbar.py
Normal file
41
wxPython/samples/wxPIA_book/Chapter-02/toolbar.py
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
import wx
|
||||||
|
import images
|
||||||
|
|
||||||
|
class ToolbarFrame(wx.Frame):
|
||||||
|
|
||||||
|
def __init__(self, parent, id):
|
||||||
|
wx.Frame.__init__(self, parent, id, 'Toolbars',
|
||||||
|
size=(300, 200))
|
||||||
|
panel = wx.Panel(self)
|
||||||
|
panel.SetBackgroundColour('White')
|
||||||
|
statusBar = self.CreateStatusBar()
|
||||||
|
toolbar = self.CreateToolBar()
|
||||||
|
toolbar.AddSimpleTool(wx.NewId(), images.getNewBitmap(),
|
||||||
|
"New", "Long help for 'New'")
|
||||||
|
toolbar.Realize()
|
||||||
|
menuBar = wx.MenuBar()
|
||||||
|
menu1 = wx.Menu()
|
||||||
|
menuBar.Append(menu1, "&File")
|
||||||
|
menu2 = wx.Menu()
|
||||||
|
menu2.Append(wx.NewId(), "&Copy", "Copy in status bar")
|
||||||
|
menu2.Append(wx.NewId(), "C&ut", "")
|
||||||
|
menu2.Append(wx.NewId(), "Paste", "")
|
||||||
|
menu2.AppendSeparator()
|
||||||
|
menu2.Append(wx.NewId(), "&Options...", "Display Options")
|
||||||
|
menuBar.Append(menu2, "&Edit")
|
||||||
|
self.SetMenuBar(menuBar)
|
||||||
|
|
||||||
|
def OnCloseMe(self, event):
|
||||||
|
self.Close(True)
|
||||||
|
|
||||||
|
def OnCloseWindow(self, event):
|
||||||
|
self.Destroy()
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
app = wx.PySimpleApp()
|
||||||
|
frame = ToolbarFrame(parent=None, id=-1)
|
||||||
|
frame.Show()
|
||||||
|
app.MainLoop()
|
||||||
|
|
64
wxPython/samples/wxPIA_book/Chapter-03/customEvent.py
Normal file
64
wxPython/samples/wxPIA_book/Chapter-03/customEvent.py
Normal file
@@ -0,0 +1,64 @@
|
|||||||
|
import wx
|
||||||
|
|
||||||
|
class TwoButtonEvent(wx.PyCommandEvent):
|
||||||
|
def __init__(self, evtType, id):
|
||||||
|
wx.PyCommandEvent.__init__(self, evtType, id)
|
||||||
|
self.clickCount = 0
|
||||||
|
|
||||||
|
def GetClickCount(self):
|
||||||
|
return self.clickCount
|
||||||
|
|
||||||
|
def SetClickCount(self, count):
|
||||||
|
self.clickCount = count
|
||||||
|
|
||||||
|
myEVT_TWO_BUTTON = wx.NewEventType()
|
||||||
|
EVT_TWO_BUTTON = wx.PyEventBinder(myEVT_TWO_BUTTON, 1)
|
||||||
|
|
||||||
|
class TwoButtonPanel(wx.Panel):
|
||||||
|
def __init__(self, parent, id=-1, leftText="Left",
|
||||||
|
rightText="Right"):
|
||||||
|
wx.Panel.__init__(self, parent, id)
|
||||||
|
self.leftButton = wx.Button(self, label=leftText)
|
||||||
|
self.rightButton = wx.Button(self, label=rightText,
|
||||||
|
pos=(100,0))
|
||||||
|
self.leftClick = False
|
||||||
|
self.rightClick = False
|
||||||
|
self.clickCount = 0
|
||||||
|
self.leftButton.Bind(wx.EVT_LEFT_DOWN, self.OnLeftClick)
|
||||||
|
self.rightButton.Bind(wx.EVT_LEFT_DOWN, self.OnRightClick)
|
||||||
|
|
||||||
|
def OnLeftClick(self, event):
|
||||||
|
self.leftClick = True
|
||||||
|
self.OnClick()
|
||||||
|
event.Skip()
|
||||||
|
|
||||||
|
def OnRightClick(self, event):
|
||||||
|
self.rightClick = True
|
||||||
|
self.OnClick()
|
||||||
|
event.Skip()
|
||||||
|
|
||||||
|
def OnClick(self):
|
||||||
|
self.clickCount += 1
|
||||||
|
if self.leftClick and self.rightClick:
|
||||||
|
self.leftClick = False
|
||||||
|
self.rightClick = False
|
||||||
|
evt = TwoButtonEvent(myEVT_TWO_BUTTON, self.GetId())
|
||||||
|
evt.SetClickCount(self.clickCount)
|
||||||
|
self.GetEventHandler().ProcessEvent(evt)
|
||||||
|
|
||||||
|
|
||||||
|
class CustomEventFrame(wx.Frame):
|
||||||
|
def __init__(self, parent, id):
|
||||||
|
wx.Frame.__init__(self, parent, id, 'Click Count: 0',
|
||||||
|
size=(300, 100))
|
||||||
|
panel = TwoButtonPanel(self)
|
||||||
|
self.Bind(EVT_TWO_BUTTON, self.OnTwoClick, panel)
|
||||||
|
|
||||||
|
def OnTwoClick(self, event):
|
||||||
|
self.SetTitle("Click Count: %s" % event.GetClickCount())
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
app = wx.PySimpleApp()
|
||||||
|
frame = CustomEventFrame(parent=None, id=-1)
|
||||||
|
frame.Show()
|
||||||
|
app.MainLoop()
|
28
wxPython/samples/wxPIA_book/Chapter-03/double_event_one.py
Normal file
28
wxPython/samples/wxPIA_book/Chapter-03/double_event_one.py
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
import wx
|
||||||
|
|
||||||
|
class DoubleEventFrame(wx.Frame):
|
||||||
|
|
||||||
|
def __init__(self, parent, id):
|
||||||
|
wx.Frame.__init__(self, parent, id, 'Frame With Button',
|
||||||
|
size=(300, 100))
|
||||||
|
self.panel = wx.Panel(self, -1)
|
||||||
|
self.button = wx.Button(self.panel, -1, "Click Me", pos=(100, 15))
|
||||||
|
self.Bind(wx.EVT_BUTTON, self.OnButtonClick, self.button)
|
||||||
|
self.button.Bind(wx.EVT_LEFT_DOWN, self.OnMouseDown)
|
||||||
|
|
||||||
|
def OnButtonClick(self, event):
|
||||||
|
self.panel.SetBackgroundColour('Green')
|
||||||
|
self.panel.Refresh()
|
||||||
|
|
||||||
|
def OnMouseDown(self, event):
|
||||||
|
self.button.SetLabel("Again!")
|
||||||
|
event.Skip()
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
app = wx.PySimpleApp()
|
||||||
|
frame = DoubleEventFrame(parent=None, id=-1)
|
||||||
|
frame.Show()
|
||||||
|
app.MainLoop()
|
||||||
|
|
24
wxPython/samples/wxPIA_book/Chapter-03/menu_event.py
Normal file
24
wxPython/samples/wxPIA_book/Chapter-03/menu_event.py
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
import wx
|
||||||
|
|
||||||
|
class MenuEventFrame(wx.Frame):
|
||||||
|
|
||||||
|
def __init__(self, parent, id):
|
||||||
|
wx.Frame.__init__(self, parent, id, 'Menus', size=(300, 200))
|
||||||
|
menuBar = wx.MenuBar()
|
||||||
|
menu1 = wx.Menu()
|
||||||
|
menuItem = menu1.Append(-1, "&Exit...")
|
||||||
|
menuBar.Append(menu1, "&File")
|
||||||
|
self.SetMenuBar(menuBar)
|
||||||
|
self.Bind(wx.EVT_MENU, self.OnCloseMe, menuItem)
|
||||||
|
|
||||||
|
def OnCloseMe(self, event):
|
||||||
|
self.Close(True)
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
app = wx.PySimpleApp()
|
||||||
|
frame = MenuEventFrame(parent=None, id=-1)
|
||||||
|
frame.Show()
|
||||||
|
app.MainLoop()
|
||||||
|
|
34
wxPython/samples/wxPIA_book/Chapter-03/mouse_event.py
Normal file
34
wxPython/samples/wxPIA_book/Chapter-03/mouse_event.py
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
import wx
|
||||||
|
|
||||||
|
class MouseEventFrame(wx.Frame):
|
||||||
|
|
||||||
|
def __init__(self, parent, id):
|
||||||
|
wx.Frame.__init__(self, parent, id, 'Frame With Button',
|
||||||
|
size=(300, 100))
|
||||||
|
self.panel = wx.Panel(self)
|
||||||
|
self.button = wx.Button(self.panel, label="Not Over", pos=(100, 15))
|
||||||
|
self.Bind(wx.EVT_BUTTON, self.OnButtonClick, self.button)
|
||||||
|
self.button.Bind(wx.EVT_ENTER_WINDOW, self.OnEnterWindow)
|
||||||
|
self.button.Bind(wx.EVT_LEAVE_WINDOW, self.OnLeaveWindow)
|
||||||
|
|
||||||
|
def OnButtonClick(self, event):
|
||||||
|
self.panel.SetBackgroundColour('Green')
|
||||||
|
self.panel.Refresh()
|
||||||
|
|
||||||
|
def OnEnterWindow(self, event):
|
||||||
|
self.button.SetLabel("Over Me!")
|
||||||
|
event.Skip()
|
||||||
|
|
||||||
|
def OnLeaveWindow(self, event):
|
||||||
|
self.button.SetLabel("Not Over")
|
||||||
|
event.Skip()
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
app = wx.PySimpleApp()
|
||||||
|
frame = MouseEventFrame(parent=None, id=-1)
|
||||||
|
frame.Show()
|
||||||
|
app.MainLoop()
|
||||||
|
|
48
wxPython/samples/wxPIA_book/Chapter-04/PyWrap.py
Normal file
48
wxPython/samples/wxPIA_book/Chapter-04/PyWrap.py
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
"""PyWrap is a command line utility that runs a wxPython program with
|
||||||
|
additional runtime-tools, such as PyCrust."""
|
||||||
|
|
||||||
|
__author__ = "Patrick K. O'Brien <pobrien@orbtech.com>"
|
||||||
|
__cvsid__ = "$Id$"
|
||||||
|
__revision__ = "$Revision$"[11:-2]
|
||||||
|
|
||||||
|
import wx
|
||||||
|
from wx import py
|
||||||
|
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def wrap(app):
|
||||||
|
wx.InitAllImageHandlers()
|
||||||
|
frame = py.crust.CrustFrame()
|
||||||
|
frame.SetSize((750, 525))
|
||||||
|
frame.Show(True)
|
||||||
|
frame.shell.interp.locals['app'] = app
|
||||||
|
app.MainLoop()
|
||||||
|
|
||||||
|
def main(modulename=None):
|
||||||
|
sys.path.insert(0, os.curdir)
|
||||||
|
if not modulename:
|
||||||
|
if len(sys.argv) < 2:
|
||||||
|
print "Please specify a module name."
|
||||||
|
raise SystemExit
|
||||||
|
modulename = sys.argv[1]
|
||||||
|
if modulename.endswith('.py'):
|
||||||
|
modulename = modulename[:-3]
|
||||||
|
module = __import__(modulename)
|
||||||
|
# Find the App class.
|
||||||
|
App = None
|
||||||
|
d = module.__dict__
|
||||||
|
for item in d.keys():
|
||||||
|
try:
|
||||||
|
if issubclass(d[item], wx.App):
|
||||||
|
App = d[item]
|
||||||
|
except (NameError, TypeError):
|
||||||
|
pass
|
||||||
|
if App is None:
|
||||||
|
print "No App class was found."
|
||||||
|
raise SystemExit
|
||||||
|
app = App()
|
||||||
|
wrap(app)
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
24
wxPython/samples/wxPIA_book/Chapter-04/images.py
Normal file
24
wxPython/samples/wxPIA_book/Chapter-04/images.py
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
#----------------------------------------------------------------------
|
||||||
|
# This file was generated by encode_bitmaps.py
|
||||||
|
#
|
||||||
|
from wx import ImageFromStream, BitmapFromImage
|
||||||
|
from wx import EmptyIcon
|
||||||
|
import cStringIO
|
||||||
|
|
||||||
|
def getNewData():
|
||||||
|
return \
|
||||||
|
'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00\x10\x00\x00\x00\x0f\x08\x06\
|
||||||
|
\x00\x00\x00\xedsO/\x00\x00\x00\x04sBIT\x08\x08\x08\x08|\x08d\x88\x00\x00\
|
||||||
|
\x00YIDATx\x9c\xed\xd31\n@!\x0c\x03\xd0\xa4\xfe\xfb\xdfX\xe3\xf0\x97R\xa5(.\
|
||||||
|
\x0ef\x13\xe45\xa2\x92Vp\x92\xcf/\xd4\xaa\xb2\xcd\xb4\xc2\x14\x00\x00in\x90\
|
||||||
|
\x84ZUDl\xa9\xa7\xc3c\xcb-\x80\xfc\x87{d8B6=B\xdb\rfy\xc0\r\xc0\xf0\x0e\xfc\
|
||||||
|
\x1d\xaf\x84\xa7\xbf\xb1\x03\xe1,\x19&\x93\x9a\xd2\x97\x00\x00\x00\x00IEND\
|
||||||
|
\xaeB`\x82'
|
||||||
|
|
||||||
|
def getNewBitmap():
|
||||||
|
return BitmapFromImage(getNewImage())
|
||||||
|
|
||||||
|
def getNewImage():
|
||||||
|
stream = cStringIO.StringIO(getNewData())
|
||||||
|
return ImageFromStream(stream)
|
||||||
|
|
60
wxPython/samples/wxPIA_book/Chapter-04/pycrust-foundation.py
Normal file
60
wxPython/samples/wxPIA_book/Chapter-04/pycrust-foundation.py
Normal file
@@ -0,0 +1,60 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
import wx
|
||||||
|
from wx.py.shell import ShellFrame
|
||||||
|
from wx.py.filling import FillingFrame
|
||||||
|
import images
|
||||||
|
|
||||||
|
class ToolbarFrame(wx.Frame):
|
||||||
|
|
||||||
|
def __init__(self, parent, id):
|
||||||
|
wx.Frame.__init__(self, parent, id, 'Toolbars',
|
||||||
|
size=(300, 200))
|
||||||
|
panel = wx.Panel(self, -1)
|
||||||
|
panel.SetBackgroundColour('White')
|
||||||
|
statusBar = self.CreateStatusBar()
|
||||||
|
toolbar = self.CreateToolBar()
|
||||||
|
toolbar.AddSimpleTool(wx.NewId(), images.getNewBitmap(),
|
||||||
|
"New", "Long help for 'New'")
|
||||||
|
toolbar.Realize()
|
||||||
|
menuBar = wx.MenuBar()
|
||||||
|
menu1 = wx.Menu()
|
||||||
|
menuBar.Append(menu1, "&File")
|
||||||
|
menu2 = wx.Menu()
|
||||||
|
menu2.Append(wx.NewId(), "&Copy", "Copy in status bar")
|
||||||
|
menu2.Append(wx.NewId(), "C&ut", "")
|
||||||
|
menu2.Append(wx.NewId(), "Paste", "")
|
||||||
|
menu2.AppendSeparator()
|
||||||
|
menu2.Append(wx.NewId(), "&Options...", "Display Options")
|
||||||
|
menuBar.Append(menu2, "&Edit")
|
||||||
|
|
||||||
|
menu3 = wx.Menu()
|
||||||
|
shell = menu3.Append(-1, "&Python shell",
|
||||||
|
"Open Python shell frame")
|
||||||
|
filling = menu3.Append(-1, "&Namespace viewer",
|
||||||
|
"Open namespace viewer frame")
|
||||||
|
menuBar.Append(menu3, "&Debug")
|
||||||
|
self.Bind(wx.EVT_MENU, self.OnShell, shell)
|
||||||
|
self.Bind(wx.EVT_MENU, self.OnFilling, filling)
|
||||||
|
|
||||||
|
self.SetMenuBar(menuBar)
|
||||||
|
|
||||||
|
def OnCloseMe(self, event):
|
||||||
|
self.Close(True)
|
||||||
|
|
||||||
|
def OnCloseWindow(self, event):
|
||||||
|
self.Destroy()
|
||||||
|
|
||||||
|
def OnShell(self, event):
|
||||||
|
frame = ShellFrame(parent=self)
|
||||||
|
frame.Show()
|
||||||
|
|
||||||
|
def OnFilling(self, event):
|
||||||
|
frame = FillingFrame(parent=self)
|
||||||
|
frame.Show()
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
app = wx.PySimpleApp()
|
||||||
|
app.frame = ToolbarFrame(parent=None, id=-1)
|
||||||
|
app.frame.Show()
|
||||||
|
app.MainLoop()
|
4
wxPython/samples/wxPIA_book/Chapter-04/pywrap
Normal file
4
wxPython/samples/wxPIA_book/Chapter-04/pywrap
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
from wx.py.PyWrap import main
|
||||||
|
main()
|
20
wxPython/samples/wxPIA_book/Chapter-04/spare.py
Normal file
20
wxPython/samples/wxPIA_book/Chapter-04/spare.py
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
"""Spare.py is a starting point for simple wxPython programs."""
|
||||||
|
|
||||||
|
import wx
|
||||||
|
|
||||||
|
class Frame(wx.Frame):
|
||||||
|
pass
|
||||||
|
|
||||||
|
class App(wx.App):
|
||||||
|
|
||||||
|
def OnInit(self):
|
||||||
|
self.frame = Frame(parent=None, id=-1, title='Spare')
|
||||||
|
self.frame.Show()
|
||||||
|
self.SetTopWindow(self.frame)
|
||||||
|
return True
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
app = App()
|
||||||
|
app.MainLoop()
|
15
wxPython/samples/wxPIA_book/Chapter-05/abstractmodel.py
Normal file
15
wxPython/samples/wxPIA_book/Chapter-05/abstractmodel.py
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
class AbstractModel(object):
|
||||||
|
|
||||||
|
def __init__(self):
|
||||||
|
self.listeners = []
|
||||||
|
|
||||||
|
def addListener(self, listenerFunc):
|
||||||
|
self.listeners.append(listenerFunc)
|
||||||
|
|
||||||
|
def removeListener(self, listenerFunc):
|
||||||
|
self.listeners.remove(listenerFunc)
|
||||||
|
|
||||||
|
def update(self):
|
||||||
|
for eachFunc in self.listeners:
|
||||||
|
eachFunc(self)
|
||||||
|
|
77
wxPython/samples/wxPIA_book/Chapter-05/badExample.py
Normal file
77
wxPython/samples/wxPIA_book/Chapter-05/badExample.py
Normal file
@@ -0,0 +1,77 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
import wx
|
||||||
|
|
||||||
|
class RefactorExample(wx.Frame):
|
||||||
|
|
||||||
|
def __init__(self, parent, id):
|
||||||
|
wx.Frame.__init__(self, parent, id, 'Refactor Example',
|
||||||
|
size=(340, 200))
|
||||||
|
panel = wx.Panel(self, -1)
|
||||||
|
panel.SetBackgroundColour("White")
|
||||||
|
prevButton = wx.Button(panel, -1, "<< PREV", pos=(80, 0))
|
||||||
|
self.Bind(wx.EVT_BUTTON, self.OnPrev, prevButton)
|
||||||
|
nextButton = wx.Button(panel, -1, "NEXT >>", pos=(160, 0))
|
||||||
|
self.Bind(wx.EVT_BUTTON, self.OnNext, nextButton)
|
||||||
|
self.Bind(wx.EVT_CLOSE, self.OnCloseWindow)
|
||||||
|
|
||||||
|
menuBar = wx.MenuBar()
|
||||||
|
menu1 = wx.Menu()
|
||||||
|
openMenuItem = menu1.Append(-1, "&Open", "Copy in status bar")
|
||||||
|
self.Bind(wx.EVT_MENU, self.OnOpen, openMenuItem)
|
||||||
|
quitMenuItem = menu1.Append(-1, "&Quit", "Quit")
|
||||||
|
self.Bind(wx.EVT_MENU, self.OnCloseWindow, quitMenuItem)
|
||||||
|
menuBar.Append(menu1, "&File")
|
||||||
|
menu2 = wx.Menu()
|
||||||
|
copyItem = menu2.Append(-1, "&Copy", "Copy")
|
||||||
|
self.Bind(wx.EVT_MENU, self.OnCopy, copyItem)
|
||||||
|
cutItem = menu2.Append(-1, "C&ut", "Cut")
|
||||||
|
self.Bind(wx.EVT_MENU, self.OnCut, cutItem)
|
||||||
|
pasteItem = menu2.Append(-1, "Paste", "Paste")
|
||||||
|
self.Bind(wx.EVT_MENU, self.OnPaste, pasteItem)
|
||||||
|
menuBar.Append(menu2, "&Edit")
|
||||||
|
self.SetMenuBar(menuBar)
|
||||||
|
|
||||||
|
static = wx.StaticText(panel, wx.NewId(), "First Name",
|
||||||
|
pos=(10, 50))
|
||||||
|
static.SetBackgroundColour("White")
|
||||||
|
text = wx.TextCtrl(panel, wx.NewId(), "", size=(100, -1),
|
||||||
|
pos=(80, 50))
|
||||||
|
|
||||||
|
static2 = wx.StaticText(panel, wx.NewId(), "Last Name",
|
||||||
|
pos=(10, 80))
|
||||||
|
static2.SetBackgroundColour("White")
|
||||||
|
text2 = wx.TextCtrl(panel, wx.NewId(), "", size=(100, -1),
|
||||||
|
pos=(80, 80))
|
||||||
|
|
||||||
|
firstButton = wx.Button(panel, -1, "FIRST")
|
||||||
|
self.Bind(wx.EVT_BUTTON, self.OnFirst, firstButton)
|
||||||
|
|
||||||
|
menu2.AppendSeparator()
|
||||||
|
optItem = menu2.Append(-1, "&Options...", "Display Options")
|
||||||
|
self.Bind(wx.EVT_MENU, self.OnOptions, optItem)
|
||||||
|
|
||||||
|
lastButton = wx.Button(panel, -1, "LAST", pos=(240, 0))
|
||||||
|
self.Bind(wx.EVT_BUTTON, self.OnLast, lastButton)
|
||||||
|
|
||||||
|
|
||||||
|
# Just grouping the empty event handlers together
|
||||||
|
def OnPrev(self, event): pass
|
||||||
|
def OnNext(self, event): pass
|
||||||
|
def OnLast(self, event): pass
|
||||||
|
def OnFirst(self, event): pass
|
||||||
|
def OnOpen(self, event): pass
|
||||||
|
def OnCopy(self, event): pass
|
||||||
|
def OnCut(self, event): pass
|
||||||
|
def OnPaste(self, event): pass
|
||||||
|
def OnOptions(self, event): pass
|
||||||
|
|
||||||
|
def OnCloseWindow(self, event):
|
||||||
|
self.Destroy()
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
app = wx.PySimpleApp()
|
||||||
|
frame = RefactorExample(parent=None, id=-1)
|
||||||
|
frame.Show()
|
||||||
|
app.MainLoop()
|
||||||
|
|
34
wxPython/samples/wxPIA_book/Chapter-05/generictable.py
Normal file
34
wxPython/samples/wxPIA_book/Chapter-05/generictable.py
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
import wx
|
||||||
|
import wx.grid
|
||||||
|
|
||||||
|
class GenericTable(wx.grid.PyGridTableBase):
|
||||||
|
|
||||||
|
def __init__(self, data, rowLabels=None, colLabels=None):
|
||||||
|
wx.grid.PyGridTableBase.__init__(self)
|
||||||
|
self.data = data
|
||||||
|
self.rowLabels = rowLabels
|
||||||
|
self.colLabels = colLabels
|
||||||
|
|
||||||
|
def GetNumberRows(self):
|
||||||
|
return len(self.data)
|
||||||
|
|
||||||
|
def GetNumberCols(self):
|
||||||
|
return len(self.data[0])
|
||||||
|
|
||||||
|
def GetColLabelValue(self, col):
|
||||||
|
if self.colLabels:
|
||||||
|
return self.colLabels[col]
|
||||||
|
|
||||||
|
def GetRowLabelValue(self, row):
|
||||||
|
if self.rowLabels:
|
||||||
|
return self.rowLabels[row]
|
||||||
|
|
||||||
|
def IsEmptyCell(self, row, col):
|
||||||
|
return False
|
||||||
|
|
||||||
|
def GetValue(self, row, col):
|
||||||
|
return self.data[row][col]
|
||||||
|
|
||||||
|
def SetValue(self, row, col, value):
|
||||||
|
pass
|
||||||
|
|
96
wxPython/samples/wxPIA_book/Chapter-05/goodExample.py
Normal file
96
wxPython/samples/wxPIA_book/Chapter-05/goodExample.py
Normal file
@@ -0,0 +1,96 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
import wx
|
||||||
|
|
||||||
|
class RefactorExample(wx.Frame):
|
||||||
|
|
||||||
|
def __init__(self, parent, id):
|
||||||
|
wx.Frame.__init__(self, parent, id, 'Refactor Example',
|
||||||
|
size=(340, 200))
|
||||||
|
panel = wx.Panel(self, -1)
|
||||||
|
panel.SetBackgroundColour("White")
|
||||||
|
self.Bind(wx.EVT_CLOSE, self.OnCloseWindow)
|
||||||
|
self.createMenuBar()
|
||||||
|
self.createButtonBar(panel)
|
||||||
|
self.createTextFields(panel)
|
||||||
|
|
||||||
|
def menuData(self):
|
||||||
|
return (("&File",
|
||||||
|
("&Open", "Open in status bar", self.OnOpen),
|
||||||
|
("&Quit", "Quit", self.OnCloseWindow)),
|
||||||
|
("&Edit",
|
||||||
|
("&Copy", "Copy", self.OnCopy),
|
||||||
|
("C&ut", "Cut", self.OnCut),
|
||||||
|
("&Paste", "Paste", self.OnPaste),
|
||||||
|
("", "", ""),
|
||||||
|
("&Options...", "DisplayOptions", self.OnOptions)))
|
||||||
|
|
||||||
|
def createMenuBar(self):
|
||||||
|
menuBar = wx.MenuBar()
|
||||||
|
for eachMenuData in self.menuData():
|
||||||
|
menuLabel = eachMenuData[0]
|
||||||
|
menuItems = eachMenuData[1:]
|
||||||
|
menuBar.Append(self.createMenu(menuItems), menuLabel)
|
||||||
|
self.SetMenuBar(menuBar)
|
||||||
|
|
||||||
|
def createMenu(self, menuData):
|
||||||
|
menu = wx.Menu()
|
||||||
|
for eachLabel, eachStatus, eachHandler in menuData:
|
||||||
|
if not eachLabel:
|
||||||
|
menu.AppendSeparator()
|
||||||
|
continue
|
||||||
|
menuItem = menu.Append(-1, eachLabel, eachStatus)
|
||||||
|
self.Bind(wx.EVT_MENU, eachHandler, menuItem)
|
||||||
|
return menu
|
||||||
|
|
||||||
|
def buttonData(self):
|
||||||
|
return (("First", self.OnFirst),
|
||||||
|
("<< PREV", self.OnPrev),
|
||||||
|
("NEXT >>", self.OnNext),
|
||||||
|
("Last", self.OnLast))
|
||||||
|
|
||||||
|
def createButtonBar(self, panel, yPos = 0):
|
||||||
|
xPos = 0
|
||||||
|
for eachLabel, eachHandler in self.buttonData():
|
||||||
|
pos = (xPos, yPos)
|
||||||
|
button = self.buildOneButton(panel, eachLabel, eachHandler, pos)
|
||||||
|
xPos += button.GetSize().width
|
||||||
|
|
||||||
|
def buildOneButton(self, parent, label, handler, pos=(0,0)):
|
||||||
|
button = wx.Button(parent, -1, label, pos)
|
||||||
|
self.Bind(wx.EVT_BUTTON, handler, button)
|
||||||
|
return button
|
||||||
|
|
||||||
|
def textFieldData(self):
|
||||||
|
return (("First Name", (10, 50)),
|
||||||
|
("Last Name", (10, 80)))
|
||||||
|
|
||||||
|
def createTextFields(self, panel):
|
||||||
|
for eachLabel, eachPos in self.textFieldData():
|
||||||
|
self.createCaptionedText(panel, eachLabel, eachPos)
|
||||||
|
|
||||||
|
def createCaptionedText(self, panel, label, pos):
|
||||||
|
static = wx.StaticText(panel, wx.NewId(), label, pos)
|
||||||
|
static.SetBackgroundColour("White")
|
||||||
|
textPos = (pos[0] + 75, pos[1])
|
||||||
|
wx.TextCtrl(panel, wx.NewId(), "", size=(100, -1), pos=textPos)
|
||||||
|
|
||||||
|
# Just grouping the empty event handlers together
|
||||||
|
def OnPrev(self, event): pass
|
||||||
|
def OnNext(self, event): pass
|
||||||
|
def OnLast(self, event): pass
|
||||||
|
def OnFirst(self, event): pass
|
||||||
|
def OnOpen(self, event): pass
|
||||||
|
def OnCopy(self, event): pass
|
||||||
|
def OnCut(self, event): pass
|
||||||
|
def OnPaste(self, event): pass
|
||||||
|
def OnOptions(self, event): pass
|
||||||
|
def OnCloseWindow(self, event):
|
||||||
|
self.Destroy()
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
app = wx.PySimpleApp()
|
||||||
|
frame = RefactorExample(parent=None, id=-1)
|
||||||
|
frame.Show()
|
||||||
|
app.MainLoop()
|
||||||
|
|
34
wxPython/samples/wxPIA_book/Chapter-05/gridGeneric.py
Normal file
34
wxPython/samples/wxPIA_book/Chapter-05/gridGeneric.py
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
import wx
|
||||||
|
import wx.grid
|
||||||
|
import generictable
|
||||||
|
|
||||||
|
|
||||||
|
data = (("Bob", "Dernier"), ("Ryne", "Sandberg"),
|
||||||
|
("Gary", "Matthews"), ("Leon", "Durham"),
|
||||||
|
("Keith", "Moreland"), ("Ron", "Cey"),
|
||||||
|
("Jody", "Davis"), ("Larry", "Bowa"),
|
||||||
|
("Rick", "Sutcliffe"))
|
||||||
|
|
||||||
|
colLabels = ("Last", "First")
|
||||||
|
rowLabels = ("CF", "2B", "LF", "1B", "RF", "3B", "C", "SS", "P")
|
||||||
|
|
||||||
|
|
||||||
|
class SimpleGrid(wx.grid.Grid):
|
||||||
|
def __init__(self, parent):
|
||||||
|
wx.grid.Grid.__init__(self, parent, -1)
|
||||||
|
tableBase = generictable.GenericTable(data, rowLabels,
|
||||||
|
colLabels)
|
||||||
|
self.SetTable(tableBase)
|
||||||
|
|
||||||
|
class TestFrame(wx.Frame):
|
||||||
|
def __init__(self, parent):
|
||||||
|
wx.Frame.__init__(self, parent, -1, "A Grid",
|
||||||
|
size=(275, 275))
|
||||||
|
grid = SimpleGrid(self)
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
app = wx.PySimpleApp()
|
||||||
|
frame = TestFrame(None)
|
||||||
|
frame.Show(True)
|
||||||
|
app.MainLoop()
|
||||||
|
|
54
wxPython/samples/wxPIA_book/Chapter-05/gridModel.py
Normal file
54
wxPython/samples/wxPIA_book/Chapter-05/gridModel.py
Normal file
@@ -0,0 +1,54 @@
|
|||||||
|
import wx
|
||||||
|
import wx.grid
|
||||||
|
|
||||||
|
class LineupTable(wx.grid.PyGridTableBase):
|
||||||
|
|
||||||
|
data = (("CF", "Bob", "Dernier"), ("2B", "Ryne", "Sandberg"),
|
||||||
|
("LF", "Gary", "Matthews"), ("1B", "Leon", "Durham"),
|
||||||
|
("RF", "Keith", "Moreland"), ("3B", "Ron", "Cey"),
|
||||||
|
("C", "Jody", "Davis"), ("SS", "Larry", "Bowa"),
|
||||||
|
("P", "Rick", "Sutcliffe"))
|
||||||
|
|
||||||
|
colLabels = ("Last", "First")
|
||||||
|
|
||||||
|
def __init__(self):
|
||||||
|
wx.grid.PyGridTableBase.__init__(self)
|
||||||
|
|
||||||
|
def GetNumberRows(self):
|
||||||
|
return len(self.data)
|
||||||
|
|
||||||
|
def GetNumberCols(self):
|
||||||
|
return len(self.data[0]) - 1
|
||||||
|
|
||||||
|
def GetColLabelValue(self, col):
|
||||||
|
return self.colLabels[col]
|
||||||
|
|
||||||
|
def GetRowLabelValue(self, row):
|
||||||
|
return self.data[row][0]
|
||||||
|
|
||||||
|
def IsEmptyCell(self, row, col):
|
||||||
|
return False
|
||||||
|
|
||||||
|
def GetValue(self, row, col):
|
||||||
|
return self.data[row][col + 1]
|
||||||
|
|
||||||
|
def SetValue(self, row, col, value):
|
||||||
|
pass
|
||||||
|
|
||||||
|
class SimpleGrid(wx.grid.Grid):
|
||||||
|
def __init__(self, parent):
|
||||||
|
wx.grid.Grid.__init__(self, parent, -1)
|
||||||
|
self.SetTable(LineupTable())
|
||||||
|
|
||||||
|
class TestFrame(wx.Frame):
|
||||||
|
def __init__(self, parent):
|
||||||
|
wx.Frame.__init__(self, parent, -1, "A Grid",
|
||||||
|
size=(275, 275))
|
||||||
|
grid = SimpleGrid(self)
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
app = wx.PySimpleApp()
|
||||||
|
frame = TestFrame(None)
|
||||||
|
frame.Show(True)
|
||||||
|
app.MainLoop()
|
||||||
|
|
49
wxPython/samples/wxPIA_book/Chapter-05/gridNoModel.py
Normal file
49
wxPython/samples/wxPIA_book/Chapter-05/gridNoModel.py
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
import wx
|
||||||
|
import wx.grid
|
||||||
|
|
||||||
|
class SimpleGrid(wx.grid.Grid):
|
||||||
|
def __init__(self, parent):
|
||||||
|
wx.grid.Grid.__init__(self, parent, -1)
|
||||||
|
self.CreateGrid(9, 2)
|
||||||
|
self.SetColLabelValue(0, "First")
|
||||||
|
self.SetColLabelValue(1, "Last")
|
||||||
|
self.SetRowLabelValue(0, "CF")
|
||||||
|
self.SetCellValue(0, 0, "Bob")
|
||||||
|
self.SetCellValue(0, 1, "Dernier")
|
||||||
|
self.SetRowLabelValue(1, "2B")
|
||||||
|
self.SetCellValue(1, 0, "Ryne")
|
||||||
|
self.SetCellValue(1, 1, "Sandberg")
|
||||||
|
self.SetRowLabelValue(2, "LF")
|
||||||
|
self.SetCellValue(2, 0, "Gary")
|
||||||
|
self.SetCellValue(2, 1, "Matthews")
|
||||||
|
self.SetRowLabelValue(3, "1B")
|
||||||
|
self.SetCellValue(3, 0, "Leon")
|
||||||
|
self.SetCellValue(3, 1, "Durham")
|
||||||
|
self.SetRowLabelValue(4, "RF")
|
||||||
|
self.SetCellValue(4, 0, "Keith")
|
||||||
|
self.SetCellValue(4, 1, "Moreland")
|
||||||
|
self.SetRowLabelValue(5, "3B")
|
||||||
|
self.SetCellValue(5, 0, "Ron")
|
||||||
|
self.SetCellValue(5, 1, "Cey")
|
||||||
|
self.SetRowLabelValue(6, "C")
|
||||||
|
self.SetCellValue(6, 0, "Jody")
|
||||||
|
self.SetCellValue(6, 1, "Davis")
|
||||||
|
self.SetRowLabelValue(7, "SS")
|
||||||
|
self.SetCellValue(7, 0, "Larry")
|
||||||
|
self.SetCellValue(7, 1, "Bowa")
|
||||||
|
self.SetRowLabelValue(8, "P")
|
||||||
|
self.SetCellValue(8, 0, "Rick")
|
||||||
|
self.SetCellValue(8, 1, "Sutcliffe")
|
||||||
|
|
||||||
|
class TestFrame(wx.Frame):
|
||||||
|
def __init__(self, parent):
|
||||||
|
wx.Frame.__init__(self, parent, -1, "A Grid",
|
||||||
|
size=(275, 275))
|
||||||
|
grid = SimpleGrid(self)
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
app = wx.PySimpleApp()
|
||||||
|
frame = TestFrame(None)
|
||||||
|
frame.Show(True)
|
||||||
|
app.MainLoop()
|
||||||
|
|
41
wxPython/samples/wxPIA_book/Chapter-05/lineuptable.py
Normal file
41
wxPython/samples/wxPIA_book/Chapter-05/lineuptable.py
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
import wx
|
||||||
|
import wx.grid
|
||||||
|
|
||||||
|
class LineupEntry:
|
||||||
|
|
||||||
|
def __init__(self, pos, first, last):
|
||||||
|
self.pos = pos
|
||||||
|
self.first = first
|
||||||
|
self.last = last
|
||||||
|
|
||||||
|
class LineupTable(wx.grid.PyGridTableBase):
|
||||||
|
|
||||||
|
colLabels = ("First", "Last")
|
||||||
|
colAttrs = ("first", "last")
|
||||||
|
|
||||||
|
def __init__(self, entries):
|
||||||
|
wx.grid.PyGridTableBase.__init__(self)
|
||||||
|
self.entries = entries
|
||||||
|
|
||||||
|
def GetNumberRows(self):
|
||||||
|
return len(self.entries)
|
||||||
|
|
||||||
|
def GetNumberCols(self):
|
||||||
|
return 2
|
||||||
|
|
||||||
|
def GetColLabelValue(self, col):
|
||||||
|
return self.colLabels[col]
|
||||||
|
|
||||||
|
def GetRowLabelValue(self, col):
|
||||||
|
return self.entries[row].pos
|
||||||
|
|
||||||
|
def IsEmptyCell(self, row, col):
|
||||||
|
return False
|
||||||
|
|
||||||
|
def GetValue(self, row, col):
|
||||||
|
entry = self.entries[row]
|
||||||
|
return getattr(entry, self.colAttrs[col])
|
||||||
|
|
||||||
|
def SetValue(self, row, col, value):
|
||||||
|
pass
|
||||||
|
|
89
wxPython/samples/wxPIA_book/Chapter-05/modelExample.py
Normal file
89
wxPython/samples/wxPIA_book/Chapter-05/modelExample.py
Normal file
@@ -0,0 +1,89 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
import wx
|
||||||
|
import abstractmodel
|
||||||
|
|
||||||
|
class SimpleName(abstractmodel.AbstractModel):
|
||||||
|
|
||||||
|
def __init__(self, first="", last=""):
|
||||||
|
abstractmodel.AbstractModel.__init__(self)
|
||||||
|
self.set(first, last)
|
||||||
|
|
||||||
|
def set(self, first, last):
|
||||||
|
self.first = first
|
||||||
|
self.last = last
|
||||||
|
self.update()
|
||||||
|
|
||||||
|
class ModelExample(wx.Frame):
|
||||||
|
|
||||||
|
def __init__(self, parent, id):
|
||||||
|
wx.Frame.__init__(self, parent, id, 'Flintstones',
|
||||||
|
size=(340, 200))
|
||||||
|
panel = wx.Panel(self)
|
||||||
|
panel.SetBackgroundColour("White")
|
||||||
|
self.Bind(wx.EVT_CLOSE, self.OnCloseWindow)
|
||||||
|
self.textFields = {}
|
||||||
|
self.createTextFields(panel)
|
||||||
|
self.model = SimpleName()
|
||||||
|
self.model.addListener(self.OnUpdate)
|
||||||
|
self.createButtonBar(panel)
|
||||||
|
|
||||||
|
def buttonData(self):
|
||||||
|
return (("Fredify", self.OnFred),
|
||||||
|
("Wilmafy", self.OnWilma),
|
||||||
|
("Barnify", self.OnBarney),
|
||||||
|
("Bettify", self.OnBetty))
|
||||||
|
|
||||||
|
def createButtonBar(self, panel, yPos = 0):
|
||||||
|
xPos = 0
|
||||||
|
for eachLabel, eachHandler in self.buttonData():
|
||||||
|
pos = (xPos, yPos)
|
||||||
|
button = self.buildOneButton(panel, eachLabel, eachHandler, pos)
|
||||||
|
xPos += button.GetSize().width
|
||||||
|
|
||||||
|
def buildOneButton(self, parent, label, handler, pos=(0,0)):
|
||||||
|
button = wx.Button(parent, -1, label, pos)
|
||||||
|
self.Bind(wx.EVT_BUTTON, handler, button)
|
||||||
|
return button
|
||||||
|
|
||||||
|
def textFieldData(self):
|
||||||
|
return (("First Name", (10, 50)),
|
||||||
|
("Last Name", (10, 80)))
|
||||||
|
|
||||||
|
def createTextFields(self, panel):
|
||||||
|
for eachLabel, eachPos in self.textFieldData():
|
||||||
|
self.createCaptionedText(panel, eachLabel, eachPos)
|
||||||
|
|
||||||
|
def createCaptionedText(self, panel, label, pos):
|
||||||
|
static = wx.StaticText(panel, wx.NewId(), label, pos)
|
||||||
|
static.SetBackgroundColour("White")
|
||||||
|
textPos = (pos[0] + 75, pos[1])
|
||||||
|
self.textFields[label] = wx.TextCtrl(panel, wx.NewId(),
|
||||||
|
"", size=(100, -1), pos=textPos,
|
||||||
|
style=wx.TE_READONLY)
|
||||||
|
|
||||||
|
def OnUpdate(self, model):
|
||||||
|
self.textFields["First Name"].SetValue(model.first)
|
||||||
|
self.textFields["Last Name"].SetValue(model.last)
|
||||||
|
|
||||||
|
def OnFred(self, event):
|
||||||
|
self.model.set("Fred", "Flintstone")
|
||||||
|
|
||||||
|
def OnBarney(self, event):
|
||||||
|
self.model.set("Barney", "Rubble")
|
||||||
|
|
||||||
|
def OnWilma(self, event):
|
||||||
|
self.model.set("Wilma", "Flintstone")
|
||||||
|
|
||||||
|
def OnBetty(self, event):
|
||||||
|
self.model.set("Betty", "Rubble")
|
||||||
|
|
||||||
|
def OnCloseWindow(self, event):
|
||||||
|
self.Destroy()
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
app = wx.PySimpleApp()
|
||||||
|
frame = ModelExample(parent=None, id=-1)
|
||||||
|
frame.Show()
|
||||||
|
app.MainLoop()
|
||||||
|
|
37
wxPython/samples/wxPIA_book/Chapter-05/testEventExample.py
Normal file
37
wxPython/samples/wxPIA_book/Chapter-05/testEventExample.py
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
import unittest
|
||||||
|
import modelExample
|
||||||
|
import wx
|
||||||
|
|
||||||
|
class TestExample(unittest.TestCase):
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
self.app = wx.PySimpleApp()
|
||||||
|
self.frame = modelExample.ModelExample(parent=None, id=-1)
|
||||||
|
|
||||||
|
def tearDown(self):
|
||||||
|
self.frame.Destroy()
|
||||||
|
|
||||||
|
def testModel(self):
|
||||||
|
self.frame.OnBarney(None)
|
||||||
|
self.assertEqual("Barney", self.frame.model.first,
|
||||||
|
msg="First is wrong")
|
||||||
|
self.assertEqual("Rubble", self.frame.model.last)
|
||||||
|
|
||||||
|
def testEvent(self):
|
||||||
|
panel = self.frame.GetChildren()[0]
|
||||||
|
for each in panel.GetChildren():
|
||||||
|
if each.GetLabel() == "Wilmafy":
|
||||||
|
wilma = each
|
||||||
|
break
|
||||||
|
event = wx.CommandEvent(wx.wxEVT_COMMAND_BUTTON_CLICKED, wilma.GetId())
|
||||||
|
wilma.GetEventHandler().ProcessEvent(event)
|
||||||
|
self.assertEqual("Wilma", self.frame.model.first)
|
||||||
|
self.assertEqual("Flintstone", self.frame.model.last)
|
||||||
|
|
||||||
|
def suite():
|
||||||
|
suite = unittest.makeSuite(TestExample, 'test')
|
||||||
|
return suite
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main(defaultTest='suite')
|
||||||
|
|
26
wxPython/samples/wxPIA_book/Chapter-05/testExample.py
Normal file
26
wxPython/samples/wxPIA_book/Chapter-05/testExample.py
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
import unittest
|
||||||
|
import modelExample
|
||||||
|
import wx
|
||||||
|
|
||||||
|
class TestExample(unittest.TestCase):
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
self.app = wx.PySimpleApp()
|
||||||
|
self.frame = modelExample.ModelExample(parent=None, id=-1)
|
||||||
|
|
||||||
|
def tearDown(self):
|
||||||
|
self.frame.Destroy()
|
||||||
|
|
||||||
|
def testModel(self):
|
||||||
|
self.frame.OnBarney(None)
|
||||||
|
self.assertEqual("Barney", self.frame.model.first,
|
||||||
|
msg="First is wrong")
|
||||||
|
self.assertEqual("Rubble", self.frame.model.last)
|
||||||
|
|
||||||
|
def suite():
|
||||||
|
suite = unittest.makeSuite(TestExample, 'test')
|
||||||
|
return suite
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main(defaultTest='suite')
|
||||||
|
|
106
wxPython/samples/wxPIA_book/Chapter-06/example1.py
Normal file
106
wxPython/samples/wxPIA_book/Chapter-06/example1.py
Normal file
@@ -0,0 +1,106 @@
|
|||||||
|
import wx
|
||||||
|
|
||||||
|
|
||||||
|
class SketchWindow(wx.Window):
|
||||||
|
def __init__(self, parent, ID):
|
||||||
|
wx.Window.__init__(self, parent, ID)
|
||||||
|
self.SetBackgroundColour("White")
|
||||||
|
self.color = "Black"
|
||||||
|
self.thickness = 1
|
||||||
|
self.pen = wx.Pen(self.color, self.thickness, wx.SOLID)
|
||||||
|
self.lines = []
|
||||||
|
self.curLine = []
|
||||||
|
self.pos = (0, 0)
|
||||||
|
self.InitBuffer()
|
||||||
|
|
||||||
|
self.Bind(wx.EVT_LEFT_DOWN, self.OnLeftDown)
|
||||||
|
self.Bind(wx.EVT_LEFT_UP, self.OnLeftUp)
|
||||||
|
self.Bind(wx.EVT_MOTION, self.OnMotion)
|
||||||
|
self.Bind(wx.EVT_SIZE, self.OnSize)
|
||||||
|
self.Bind(wx.EVT_IDLE, self.OnIdle)
|
||||||
|
self.Bind(wx.EVT_PAINT, self.OnPaint)
|
||||||
|
|
||||||
|
def InitBuffer(self):
|
||||||
|
size = self.GetClientSize()
|
||||||
|
#self.buffer = wx.EmptyBitmap(max(1, size.width), max(1, size.height))
|
||||||
|
self.buffer = wx.EmptyBitmap(size.width, size.height)
|
||||||
|
if self.buffer.Ok():
|
||||||
|
dc = wx.BufferedDC(None, self.buffer)
|
||||||
|
dc.SetBackground(wx.Brush(self.GetBackgroundColour()))
|
||||||
|
dc.Clear()
|
||||||
|
self.DrawLines(dc)
|
||||||
|
self.reInitBuffer = False
|
||||||
|
|
||||||
|
def GetLinesData(self):
|
||||||
|
return self.lines[:]
|
||||||
|
|
||||||
|
def SetLinesData(self, lines):
|
||||||
|
self.lines = lines[:]
|
||||||
|
self.InitBuffer()
|
||||||
|
self.Refresh()
|
||||||
|
|
||||||
|
def OnLeftDown(self, event):
|
||||||
|
self.curLine = []
|
||||||
|
self.pos = event.GetPositionTuple()
|
||||||
|
self.CaptureMouse()
|
||||||
|
|
||||||
|
def OnLeftUp(self, event):
|
||||||
|
if self.HasCapture():
|
||||||
|
self.lines.append((self.color,
|
||||||
|
self.thickness,
|
||||||
|
self.curLine))
|
||||||
|
self.curLine = []
|
||||||
|
self.ReleaseMouse()
|
||||||
|
|
||||||
|
def OnMotion(self, event):
|
||||||
|
if event.Dragging() and event.LeftIsDown():
|
||||||
|
dc = wx.BufferedDC(wx.ClientDC(self), self.buffer)
|
||||||
|
self.drawMotion(dc, event)
|
||||||
|
event.Skip()
|
||||||
|
|
||||||
|
def drawMotion(self, dc, event):
|
||||||
|
dc.SetPen(self.pen)
|
||||||
|
newPos = event.GetPositionTuple()
|
||||||
|
coords = self.pos + newPos
|
||||||
|
self.curLine.append(coords)
|
||||||
|
dc.DrawLine(*coords)
|
||||||
|
self.pos = newPos
|
||||||
|
|
||||||
|
def OnSize(self, event):
|
||||||
|
self.reInitBuffer = True
|
||||||
|
|
||||||
|
def OnIdle(self, event):
|
||||||
|
if self.reInitBuffer:
|
||||||
|
self.InitBuffer()
|
||||||
|
self.Refresh(False)
|
||||||
|
|
||||||
|
def OnPaint(self, event):
|
||||||
|
dc = wx.BufferedPaintDC(self, self.buffer)
|
||||||
|
|
||||||
|
def DrawLines(self, dc):
|
||||||
|
for colour, thickness, line in self.lines:
|
||||||
|
pen = wx.Pen(colour, thickness, wx.SOLID)
|
||||||
|
dc.SetPen(pen)
|
||||||
|
for coords in line:
|
||||||
|
dc.DrawLine(*coords)
|
||||||
|
|
||||||
|
def SetColor(self, color):
|
||||||
|
self.color = color
|
||||||
|
self.pen = wx.Pen(self.color, self.thickness, wx.SOLID)
|
||||||
|
|
||||||
|
def SetThickness(self, num):
|
||||||
|
self.thickness = num
|
||||||
|
self.pen = wx.Pen(self.color, self.thickness, wx.SOLID)
|
||||||
|
|
||||||
|
|
||||||
|
class SketchFrame(wx.Frame):
|
||||||
|
def __init__(self, parent):
|
||||||
|
wx.Frame.__init__(self, parent, -1, "Sketch Frame",
|
||||||
|
size=(800,600))
|
||||||
|
self.sketch = SketchWindow(self, -1)
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
app = wx.PySimpleApp()
|
||||||
|
frame = SketchFrame(None)
|
||||||
|
frame.Show(True)
|
||||||
|
app.MainLoop()
|
21
wxPython/samples/wxPIA_book/Chapter-06/example2.py
Normal file
21
wxPython/samples/wxPIA_book/Chapter-06/example2.py
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
import wx
|
||||||
|
from example1 import SketchWindow
|
||||||
|
|
||||||
|
|
||||||
|
class SketchFrame(wx.Frame):
|
||||||
|
def __init__(self, parent):
|
||||||
|
wx.Frame.__init__(self, parent, -1, "Sketch Frame",
|
||||||
|
size=(800,600))
|
||||||
|
self.sketch = SketchWindow(self, -1)
|
||||||
|
self.sketch.Bind(wx.EVT_MOTION, self.OnSketchMotion)
|
||||||
|
self.statusbar = self.CreateStatusBar()
|
||||||
|
|
||||||
|
def OnSketchMotion(self, event):
|
||||||
|
self.statusbar.SetStatusText(str(event.GetPositionTuple()))
|
||||||
|
event.Skip()
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
app = wx.PySimpleApp()
|
||||||
|
frame = SketchFrame(None)
|
||||||
|
frame.Show(True)
|
||||||
|
app.MainLoop()
|
27
wxPython/samples/wxPIA_book/Chapter-06/example3.py
Normal file
27
wxPython/samples/wxPIA_book/Chapter-06/example3.py
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
import wx
|
||||||
|
from example1 import SketchWindow
|
||||||
|
|
||||||
|
class SketchFrame(wx.Frame):
|
||||||
|
def __init__(self, parent):
|
||||||
|
wx.Frame.__init__(self, parent, -1, "Sketch Frame",
|
||||||
|
size=(800,600))
|
||||||
|
self.sketch = SketchWindow(self, -1)
|
||||||
|
self.sketch.Bind(wx.EVT_MOTION, self.OnSketchMotion)
|
||||||
|
self.statusbar = self.CreateStatusBar()
|
||||||
|
self.statusbar.SetFieldsCount(3)
|
||||||
|
self.statusbar.SetStatusWidths([-1, -2, -3])
|
||||||
|
|
||||||
|
def OnSketchMotion(self, event):
|
||||||
|
self.statusbar.SetStatusText("Pos: %s" %
|
||||||
|
str(event.GetPositionTuple()), 0)
|
||||||
|
self.statusbar.SetStatusText("Current Pts: %s" %
|
||||||
|
len(self.sketch.curLine), 1)
|
||||||
|
self.statusbar.SetStatusText("Line Count: %s" %
|
||||||
|
len(self.sketch.lines), 2)
|
||||||
|
event.Skip()
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
app = wx.PySimpleApp()
|
||||||
|
frame = SketchFrame(None)
|
||||||
|
frame.Show(True)
|
||||||
|
app.MainLoop()
|
92
wxPython/samples/wxPIA_book/Chapter-06/example4.py
Normal file
92
wxPython/samples/wxPIA_book/Chapter-06/example4.py
Normal file
@@ -0,0 +1,92 @@
|
|||||||
|
import wx
|
||||||
|
from example1 import SketchWindow
|
||||||
|
|
||||||
|
|
||||||
|
class SketchFrame(wx.Frame):
|
||||||
|
def __init__(self, parent):
|
||||||
|
wx.Frame.__init__(self, parent, -1, "Sketch Frame",
|
||||||
|
size=(800,600))
|
||||||
|
self.sketch = SketchWindow(self, -1)
|
||||||
|
self.sketch.Bind(wx.EVT_MOTION, self.OnSketchMotion)
|
||||||
|
self.initStatusBar()
|
||||||
|
self.createMenuBar()
|
||||||
|
|
||||||
|
def initStatusBar(self):
|
||||||
|
self.statusbar = self.CreateStatusBar()
|
||||||
|
self.statusbar.SetFieldsCount(3)
|
||||||
|
self.statusbar.SetStatusWidths([-1, -2, -3])
|
||||||
|
|
||||||
|
def OnSketchMotion(self, event):
|
||||||
|
self.statusbar.SetStatusText("Pos: %s" %
|
||||||
|
str(event.GetPositionTuple()), 0)
|
||||||
|
self.statusbar.SetStatusText("Current Pts: %s" %
|
||||||
|
len(self.sketch.curLine), 1)
|
||||||
|
self.statusbar.SetStatusText("Line Count: %s" %
|
||||||
|
len(self.sketch.lines), 2)
|
||||||
|
event.Skip()
|
||||||
|
|
||||||
|
def menuData(self):
|
||||||
|
return [("&File", (
|
||||||
|
("&New", "New Sketch file", self.OnNew),
|
||||||
|
("&Open", "Open sketch file", self.OnOpen),
|
||||||
|
("&Save", "Save sketch file", self.OnSave),
|
||||||
|
("", "", ""),
|
||||||
|
("&Color", (
|
||||||
|
("&Black", "", self.OnColor,
|
||||||
|
wx.ITEM_RADIO),
|
||||||
|
("&Red", "", self.OnColor,
|
||||||
|
wx.ITEM_RADIO),
|
||||||
|
("&Green", "", self.OnColor,
|
||||||
|
wx.ITEM_RADIO),
|
||||||
|
("&Blue", "", self.OnColor,
|
||||||
|
wx.ITEM_RADIO))),
|
||||||
|
("", "", ""),
|
||||||
|
("&Quit", "Quit", self.OnCloseWindow)))]
|
||||||
|
|
||||||
|
def createMenuBar(self):
|
||||||
|
menuBar = wx.MenuBar()
|
||||||
|
for eachMenuData in self.menuData():
|
||||||
|
menuLabel = eachMenuData[0]
|
||||||
|
menuItems = eachMenuData[1]
|
||||||
|
menuBar.Append(self.createMenu(menuItems), menuLabel)
|
||||||
|
self.SetMenuBar(menuBar)
|
||||||
|
|
||||||
|
def createMenu(self, menuData):
|
||||||
|
menu = wx.Menu()
|
||||||
|
for eachItem in menuData:
|
||||||
|
if len(eachItem) == 2:
|
||||||
|
label = eachItem[0]
|
||||||
|
subMenu = self.createMenu(eachItem[1])
|
||||||
|
menu.AppendMenu(wx.NewId(), label, subMenu)
|
||||||
|
else:
|
||||||
|
self.createMenuItem(menu, *eachItem)
|
||||||
|
return menu
|
||||||
|
|
||||||
|
def createMenuItem(self, menu, label, status, handler,
|
||||||
|
kind=wx.ITEM_NORMAL):
|
||||||
|
if not label:
|
||||||
|
menu.AppendSeparator()
|
||||||
|
return
|
||||||
|
menuItem = menu.Append(-1, label, status, kind)
|
||||||
|
self.Bind(wx.EVT_MENU, handler, menuItem)
|
||||||
|
|
||||||
|
def OnNew(self, event): pass
|
||||||
|
def OnOpen(self, event): pass
|
||||||
|
def OnSave(self, event): pass
|
||||||
|
|
||||||
|
def OnColor(self, event):
|
||||||
|
menubar = self.GetMenuBar()
|
||||||
|
itemId = event.GetId()
|
||||||
|
item = menubar.FindItemById(itemId)
|
||||||
|
color = item.GetLabel()
|
||||||
|
self.sketch.SetColor(color)
|
||||||
|
|
||||||
|
def OnCloseWindow(self, event):
|
||||||
|
self.Destroy()
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
app = wx.PySimpleApp()
|
||||||
|
frame = SketchFrame(None)
|
||||||
|
frame.Show(True)
|
||||||
|
app.MainLoop()
|
132
wxPython/samples/wxPIA_book/Chapter-06/example5.py
Normal file
132
wxPython/samples/wxPIA_book/Chapter-06/example5.py
Normal file
@@ -0,0 +1,132 @@
|
|||||||
|
import wx
|
||||||
|
from example1 import SketchWindow
|
||||||
|
|
||||||
|
|
||||||
|
class SketchFrame(wx.Frame):
|
||||||
|
def __init__(self, parent):
|
||||||
|
wx.Frame.__init__(self, parent, -1, "Sketch Frame",
|
||||||
|
size=(800,600))
|
||||||
|
self.sketch = SketchWindow(self, -1)
|
||||||
|
self.sketch.Bind(wx.EVT_MOTION, self.OnSketchMotion)
|
||||||
|
self.initStatusBar()
|
||||||
|
self.createMenuBar()
|
||||||
|
self.createToolBar()
|
||||||
|
|
||||||
|
def initStatusBar(self):
|
||||||
|
self.statusbar = self.CreateStatusBar()
|
||||||
|
self.statusbar.SetFieldsCount(3)
|
||||||
|
self.statusbar.SetStatusWidths([-1, -2, -3])
|
||||||
|
|
||||||
|
def OnSketchMotion(self, event):
|
||||||
|
self.statusbar.SetStatusText("Pos: %s" %
|
||||||
|
str(event.GetPositionTuple()), 0)
|
||||||
|
self.statusbar.SetStatusText("Current Pts: %s" %
|
||||||
|
len(self.sketch.curLine), 1)
|
||||||
|
self.statusbar.SetStatusText("Line Count: %s" %
|
||||||
|
len(self.sketch.lines), 2)
|
||||||
|
event.Skip()
|
||||||
|
|
||||||
|
def menuData(self):
|
||||||
|
return [("&File", (
|
||||||
|
("&New", "New Sketch file", self.OnNew),
|
||||||
|
("&Open", "Open sketch file", self.OnOpen),
|
||||||
|
("&Save", "Save sketch file", self.OnSave),
|
||||||
|
("", "", ""),
|
||||||
|
("&Color", (
|
||||||
|
("&Black", "", self.OnColor, wx.ITEM_RADIO),
|
||||||
|
("&Red", "", self.OnColor, wx.ITEM_RADIO),
|
||||||
|
("&Green", "", self.OnColor, wx.ITEM_RADIO),
|
||||||
|
("&Blue", "", self.OnColor, wx.ITEM_RADIO))),
|
||||||
|
("", "", ""),
|
||||||
|
("&Quit", "Quit", self.OnCloseWindow)))]
|
||||||
|
|
||||||
|
def createMenuBar(self):
|
||||||
|
menuBar = wx.MenuBar()
|
||||||
|
for eachMenuData in self.menuData():
|
||||||
|
menuLabel = eachMenuData[0]
|
||||||
|
menuItems = eachMenuData[1]
|
||||||
|
menuBar.Append(self.createMenu(menuItems), menuLabel)
|
||||||
|
self.SetMenuBar(menuBar)
|
||||||
|
|
||||||
|
def createMenu(self, menuData):
|
||||||
|
menu = wx.Menu()
|
||||||
|
for eachItem in menuData:
|
||||||
|
if len(eachItem) == 2:
|
||||||
|
label = eachItem[0]
|
||||||
|
subMenu = self.createMenu(eachItem[1])
|
||||||
|
menu.AppendMenu(wx.NewId(), label, subMenu)
|
||||||
|
else:
|
||||||
|
self.createMenuItem(menu, *eachItem)
|
||||||
|
return menu
|
||||||
|
|
||||||
|
def createMenuItem(self, menu, label, status, handler, kind=wx.ITEM_NORMAL):
|
||||||
|
if not label:
|
||||||
|
menu.AppendSeparator()
|
||||||
|
return
|
||||||
|
menuItem = menu.Append(-1, label, status, kind)
|
||||||
|
self.Bind(wx.EVT_MENU, handler, menuItem)
|
||||||
|
|
||||||
|
def createToolBar(self):
|
||||||
|
toolbar = self.CreateToolBar()
|
||||||
|
for each in self.toolbarData():
|
||||||
|
self.createSimpleTool(toolbar, *each)
|
||||||
|
toolbar.AddSeparator()
|
||||||
|
for each in self.toolbarColorData():
|
||||||
|
self.createColorTool(toolbar, each)
|
||||||
|
toolbar.Realize()
|
||||||
|
|
||||||
|
def createSimpleTool(self, toolbar, label, filename, help, handler):
|
||||||
|
if not label:
|
||||||
|
toolbar.AddSeparator()
|
||||||
|
return
|
||||||
|
bmp = wx.Image(filename, wx.BITMAP_TYPE_BMP).ConvertToBitmap()
|
||||||
|
tool = toolbar.AddSimpleTool(-1, bmp, label, help)
|
||||||
|
self.Bind(wx.EVT_MENU, handler, tool)
|
||||||
|
|
||||||
|
def toolbarData(self):
|
||||||
|
return (("New", "new.bmp", "Create new sketch", self.OnNew),
|
||||||
|
("", "", "", ""),
|
||||||
|
("Open", "open.bmp", "Open existing sketch", self.OnOpen),
|
||||||
|
("Save", "save.bmp", "Save existing sketch", self.OnSave))
|
||||||
|
|
||||||
|
def createColorTool(self, toolbar, color):
|
||||||
|
bmp = self.MakeBitmap(color)
|
||||||
|
tool = toolbar.AddRadioTool(-1, bmp, shortHelp=color)
|
||||||
|
self.Bind(wx.EVT_MENU, self.OnColor, tool)
|
||||||
|
|
||||||
|
def MakeBitmap(self, color):
|
||||||
|
bmp = wx.EmptyBitmap(16, 15)
|
||||||
|
dc = wx.MemoryDC()
|
||||||
|
dc.SelectObject(bmp)
|
||||||
|
dc.SetBackground(wx.Brush(color))
|
||||||
|
dc.Clear()
|
||||||
|
dc.SelectObject(wx.NullBitmap)
|
||||||
|
return bmp
|
||||||
|
|
||||||
|
def toolbarColorData(self):
|
||||||
|
return ("Black", "Red", "Green", "Blue")
|
||||||
|
|
||||||
|
def OnNew(self, event): pass
|
||||||
|
def OnOpen(self, event): pass
|
||||||
|
def OnSave(self, event): pass
|
||||||
|
|
||||||
|
def OnColor(self, event):
|
||||||
|
menubar = self.GetMenuBar()
|
||||||
|
itemId = event.GetId()
|
||||||
|
item = menubar.FindItemById(itemId)
|
||||||
|
if not item:
|
||||||
|
toolbar = self.GetToolBar()
|
||||||
|
item = toolbar.FindById(itemId)
|
||||||
|
color = item.GetShortHelp()
|
||||||
|
else:
|
||||||
|
color = item.GetLabel()
|
||||||
|
self.sketch.SetColor(color)
|
||||||
|
|
||||||
|
def OnCloseWindow(self, event):
|
||||||
|
self.Destroy()
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
app = wx.PySimpleApp()
|
||||||
|
frame = SketchFrame(None)
|
||||||
|
frame.Show(True)
|
||||||
|
app.MainLoop()
|
192
wxPython/samples/wxPIA_book/Chapter-06/example6.py
Normal file
192
wxPython/samples/wxPIA_book/Chapter-06/example6.py
Normal file
@@ -0,0 +1,192 @@
|
|||||||
|
import wx
|
||||||
|
import cPickle
|
||||||
|
import os
|
||||||
|
|
||||||
|
from example1 import SketchWindow
|
||||||
|
|
||||||
|
|
||||||
|
class SketchFrame(wx.Frame):
|
||||||
|
def __init__(self, parent):
|
||||||
|
self.title = "Sketch Frame"
|
||||||
|
wx.Frame.__init__(self, parent, -1, self.title,
|
||||||
|
size=(800,600))
|
||||||
|
self.filename = ""
|
||||||
|
self.sketch = SketchWindow(self, -1)
|
||||||
|
self.sketch.Bind(wx.EVT_MOTION, self.OnSketchMotion)
|
||||||
|
self.initStatusBar()
|
||||||
|
self.createMenuBar()
|
||||||
|
self.createToolBar()
|
||||||
|
|
||||||
|
def initStatusBar(self):
|
||||||
|
self.statusbar = self.CreateStatusBar()
|
||||||
|
self.statusbar.SetFieldsCount(3)
|
||||||
|
self.statusbar.SetStatusWidths([-1, -2, -3])
|
||||||
|
|
||||||
|
def OnSketchMotion(self, event):
|
||||||
|
self.statusbar.SetStatusText("Pos: %s" %
|
||||||
|
str(event.GetPositionTuple()), 0)
|
||||||
|
self.statusbar.SetStatusText("Current Pts: %s" %
|
||||||
|
len(self.sketch.curLine), 1)
|
||||||
|
self.statusbar.SetStatusText("Line Count: %s" %
|
||||||
|
len(self.sketch.lines), 2)
|
||||||
|
event.Skip()
|
||||||
|
|
||||||
|
def menuData(self):
|
||||||
|
return [("&File", (
|
||||||
|
("&New", "New Sketch file", self.OnNew),
|
||||||
|
("&Open", "Open sketch file", self.OnOpen),
|
||||||
|
("&Save", "Save sketch file", self.OnSave),
|
||||||
|
("", "", ""),
|
||||||
|
("&Color", (
|
||||||
|
("&Black", "", self.OnColor, wx.ITEM_RADIO),
|
||||||
|
("&Red", "", self.OnColor, wx.ITEM_RADIO),
|
||||||
|
("&Green", "", self.OnColor, wx.ITEM_RADIO),
|
||||||
|
("&Blue", "", self.OnColor, wx.ITEM_RADIO),
|
||||||
|
("&Other...", "", self.OnOtherColor, wx.ITEM_RADIO))),
|
||||||
|
("", "", ""),
|
||||||
|
("&Quit", "Quit", self.OnCloseWindow)))]
|
||||||
|
|
||||||
|
def createMenuBar(self):
|
||||||
|
menuBar = wx.MenuBar()
|
||||||
|
for eachMenuData in self.menuData():
|
||||||
|
menuLabel = eachMenuData[0]
|
||||||
|
menuItems = eachMenuData[1]
|
||||||
|
menuBar.Append(self.createMenu(menuItems), menuLabel)
|
||||||
|
self.SetMenuBar(menuBar)
|
||||||
|
|
||||||
|
def createMenu(self, menuData):
|
||||||
|
menu = wx.Menu()
|
||||||
|
for eachItem in menuData:
|
||||||
|
if len(eachItem) == 2:
|
||||||
|
label = eachItem[0]
|
||||||
|
subMenu = self.createMenu(eachItem[1])
|
||||||
|
menu.AppendMenu(wx.NewId(), label, subMenu)
|
||||||
|
else:
|
||||||
|
self.createMenuItem(menu, *eachItem)
|
||||||
|
return menu
|
||||||
|
|
||||||
|
def createMenuItem(self, menu, label, status, handler, kind=wx.ITEM_NORMAL):
|
||||||
|
if not label:
|
||||||
|
menu.AppendSeparator()
|
||||||
|
return
|
||||||
|
menuItem = menu.Append(-1, label, status, kind)
|
||||||
|
self.Bind(wx.EVT_MENU, handler, menuItem)
|
||||||
|
|
||||||
|
def createToolBar(self):
|
||||||
|
toolbar = self.CreateToolBar()
|
||||||
|
for each in self.toolbarData():
|
||||||
|
self.createSimpleTool(toolbar, *each)
|
||||||
|
toolbar.AddSeparator()
|
||||||
|
for each in self.toolbarColorData():
|
||||||
|
self.createColorTool(toolbar, each)
|
||||||
|
toolbar.Realize()
|
||||||
|
|
||||||
|
def createSimpleTool(self, toolbar, label, filename, help, handler):
|
||||||
|
if not label:
|
||||||
|
toolbar.AddSeparator()
|
||||||
|
return
|
||||||
|
bmp = wx.Image(filename, wx.BITMAP_TYPE_BMP).ConvertToBitmap()
|
||||||
|
tool = toolbar.AddSimpleTool(-1, bmp, label, help)
|
||||||
|
self.Bind(wx.EVT_MENU, handler, tool)
|
||||||
|
|
||||||
|
def toolbarData(self):
|
||||||
|
return (("New", "new.bmp", "Create new sketch", self.OnNew),
|
||||||
|
("", "", "", ""),
|
||||||
|
("Open", "open.bmp", "Open existing sketch", self.OnOpen),
|
||||||
|
("Save", "save.bmp", "Save existing sketch", self.OnSave))
|
||||||
|
|
||||||
|
def createColorTool(self, toolbar, color):
|
||||||
|
bmp = self.MakeBitmap(color)
|
||||||
|
tool = toolbar.AddRadioTool(-1, bmp, shortHelp=color)
|
||||||
|
self.Bind(wx.EVT_MENU, self.OnColor, tool)
|
||||||
|
|
||||||
|
def MakeBitmap(self, color):
|
||||||
|
bmp = wx.EmptyBitmap(16, 15)
|
||||||
|
dc = wx.MemoryDC()
|
||||||
|
dc.SelectObject(bmp)
|
||||||
|
dc.SetBackground(wx.Brush(color))
|
||||||
|
dc.Clear()
|
||||||
|
dc.SelectObject(wx.NullBitmap)
|
||||||
|
return bmp
|
||||||
|
|
||||||
|
def toolbarColorData(self):
|
||||||
|
return ("Black", "Red", "Green", "Blue")
|
||||||
|
|
||||||
|
def OnNew(self, event): pass
|
||||||
|
|
||||||
|
def OnColor(self, event):
|
||||||
|
menubar = self.GetMenuBar()
|
||||||
|
itemId = event.GetId()
|
||||||
|
item = menubar.FindItemById(itemId)
|
||||||
|
if not item:
|
||||||
|
toolbar = self.GetToolBar()
|
||||||
|
item = toolbar.FindById(itemId)
|
||||||
|
color = item.GetShortHelp()
|
||||||
|
else:
|
||||||
|
color = item.GetLabel()
|
||||||
|
self.sketch.SetColor(color)
|
||||||
|
|
||||||
|
def OnCloseWindow(self, event):
|
||||||
|
self.Destroy()
|
||||||
|
|
||||||
|
def SaveFile(self):
|
||||||
|
if self.filename:
|
||||||
|
data = self.sketch.GetLinesData()
|
||||||
|
f = open(self.filename, 'w')
|
||||||
|
cPickle.dump(data, f)
|
||||||
|
f.close()
|
||||||
|
|
||||||
|
def ReadFile(self):
|
||||||
|
if self.filename:
|
||||||
|
try:
|
||||||
|
f = open(self.filename, 'r')
|
||||||
|
data = cPickle.load(f)
|
||||||
|
f.close()
|
||||||
|
self.sketch.SetLinesData(data)
|
||||||
|
except cPickle.UnpicklingError:
|
||||||
|
wx.MessageBox("%s is not a sketch file." % self.filename,
|
||||||
|
"oops!", style=wx.OK|wx.ICON_EXCLAMATION)
|
||||||
|
|
||||||
|
wildcard = "Sketch files (*.sketch)|*.sketch|All files (*.*)|*.*"
|
||||||
|
|
||||||
|
def OnOpen(self, event):
|
||||||
|
dlg = wx.FileDialog(self, "Open sketch file...", os.getcwd(),
|
||||||
|
style=wx.OPEN, wildcard=self.wildcard)
|
||||||
|
if dlg.ShowModal() == wx.ID_OK:
|
||||||
|
self.filename = dlg.GetPath()
|
||||||
|
self.ReadFile()
|
||||||
|
self.SetTitle(self.title + ' -- ' + self.filename)
|
||||||
|
dlg.Destroy()
|
||||||
|
|
||||||
|
def OnSave(self, event):
|
||||||
|
if not self.filename:
|
||||||
|
self.OnSaveAs(event)
|
||||||
|
else:
|
||||||
|
self.SaveFile()
|
||||||
|
|
||||||
|
def OnSaveAs(self, event):
|
||||||
|
dlg = wx.FileDialog(self, "Save sketch as...", os.getcwd(),
|
||||||
|
style=wx.SAVE | wx.OVERWRITE_PROMPT,
|
||||||
|
wildcard = self.wildcard)
|
||||||
|
if dlg.ShowModal() == wx.ID_OK:
|
||||||
|
filename = dlg.GetPath()
|
||||||
|
if not os.path.splitext(filename)[1]:
|
||||||
|
filename = filename + '.sketch'
|
||||||
|
self.filename = filename
|
||||||
|
self.SaveFile()
|
||||||
|
self.SetTitle(self.title + ' -- ' + self.filename)
|
||||||
|
dlg.Destroy()
|
||||||
|
|
||||||
|
def OnOtherColor(self, event):
|
||||||
|
dlg = wx.ColourDialog(frame)
|
||||||
|
dlg.GetColourData().SetChooseFull(True)
|
||||||
|
if dlg.ShowModal() == wx.ID_OK:
|
||||||
|
self.sketch.SetColor(dlg.GetColourData().GetColour())
|
||||||
|
dlg.Destroy()
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
app = wx.PySimpleApp()
|
||||||
|
frame = SketchFrame(None)
|
||||||
|
frame.Show(True)
|
||||||
|
app.MainLoop()
|
331
wxPython/samples/wxPIA_book/Chapter-06/example7.py
Normal file
331
wxPython/samples/wxPIA_book/Chapter-06/example7.py
Normal file
@@ -0,0 +1,331 @@
|
|||||||
|
import wx
|
||||||
|
import wx.html
|
||||||
|
import cPickle
|
||||||
|
import os
|
||||||
|
from wx.lib import buttons
|
||||||
|
|
||||||
|
from example1 import SketchWindow
|
||||||
|
|
||||||
|
class SketchFrame(wx.Frame):
|
||||||
|
def __init__(self, parent):
|
||||||
|
self.title = "Sketch Frame"
|
||||||
|
wx.Frame.__init__(self, parent, -1, self.title,
|
||||||
|
size=(800,600))
|
||||||
|
self.filename = ""
|
||||||
|
self.sketch = SketchWindow(self, -1)
|
||||||
|
wx.EVT_MOTION(self.sketch, self.OnSketchMotion)
|
||||||
|
self.initStatusBar()
|
||||||
|
self.createMenuBar()
|
||||||
|
self.createToolBar()
|
||||||
|
self.createPanel()
|
||||||
|
|
||||||
|
def createPanel(self):
|
||||||
|
controlPanel = ControlPanel(self, -1, self.sketch)
|
||||||
|
box = wx.BoxSizer(wx.HORIZONTAL)
|
||||||
|
box.Add(controlPanel, 0, wx.EXPAND)
|
||||||
|
box.Add(self.sketch, 1, wx.EXPAND)
|
||||||
|
self.SetSizer(box)
|
||||||
|
|
||||||
|
def initStatusBar(self):
|
||||||
|
self.statusbar = self.CreateStatusBar()
|
||||||
|
self.statusbar.SetFieldsCount(3)
|
||||||
|
self.statusbar.SetStatusWidths([-1, -2, -3])
|
||||||
|
|
||||||
|
def OnSketchMotion(self, event):
|
||||||
|
self.statusbar.SetStatusText("Pos: %s" %
|
||||||
|
str(event.GetPositionTuple()), 0)
|
||||||
|
self.statusbar.SetStatusText("Current Pts: %s" %
|
||||||
|
len(self.sketch.curLine), 1)
|
||||||
|
self.statusbar.SetStatusText("Line Count: %s" %
|
||||||
|
len(self.sketch.lines), 2)
|
||||||
|
event.Skip()
|
||||||
|
|
||||||
|
def menuData(self):
|
||||||
|
return [("&File", (
|
||||||
|
("&New", "New Sketch file", self.OnNew),
|
||||||
|
("&Open", "Open sketch file", self.OnOpen),
|
||||||
|
("&Save", "Save sketch file", self.OnSave),
|
||||||
|
("", "", ""),
|
||||||
|
("&Color", (
|
||||||
|
("&Black", "", self.OnColor, wx.ITEM_RADIO),
|
||||||
|
("&Red", "", self.OnColor, wx.ITEM_RADIO),
|
||||||
|
("&Green", "", self.OnColor, wx.ITEM_RADIO),
|
||||||
|
("&Blue", "", self.OnColor, wx.ITEM_RADIO),
|
||||||
|
("&Other...", "", self.OnOtherColor, wx.ITEM_RADIO))),
|
||||||
|
("", "", ""),
|
||||||
|
("About...", "Show about window", self.OnAbout),
|
||||||
|
("&Quit", "Quit", self.OnCloseWindow)))]
|
||||||
|
|
||||||
|
def createMenuBar(self):
|
||||||
|
menuBar = wx.MenuBar()
|
||||||
|
for eachMenuData in self.menuData():
|
||||||
|
menuLabel = eachMenuData[0]
|
||||||
|
menuItems = eachMenuData[1]
|
||||||
|
menuBar.Append(self.createMenu(menuItems), menuLabel)
|
||||||
|
self.SetMenuBar(menuBar)
|
||||||
|
|
||||||
|
def createMenu(self, menuData):
|
||||||
|
menu = wx.Menu()
|
||||||
|
for eachItem in menuData:
|
||||||
|
if len(eachItem) == 2:
|
||||||
|
label = eachItem[0]
|
||||||
|
subMenu = self.createMenu(eachItem[1])
|
||||||
|
menu.AppendMenu(wx.NewId(), label, subMenu)
|
||||||
|
else:
|
||||||
|
self.createMenuItem(menu, *eachItem)
|
||||||
|
return menu
|
||||||
|
|
||||||
|
def createMenuItem(self, menu, label, status, handler, kind=wx.ITEM_NORMAL):
|
||||||
|
if not label:
|
||||||
|
menu.AppendSeparator()
|
||||||
|
return
|
||||||
|
menuItem = menu.Append(-1, label, status, kind)
|
||||||
|
self.Bind(wx.EVT_MENU, handler, menuItem)
|
||||||
|
|
||||||
|
def createToolBar(self):
|
||||||
|
toolbar = self.CreateToolBar()
|
||||||
|
for each in self.toolbarData():
|
||||||
|
self.createSimpleTool(toolbar, *each)
|
||||||
|
toolbar.AddSeparator()
|
||||||
|
for each in self.toolbarColorData():
|
||||||
|
self.createColorTool(toolbar, each)
|
||||||
|
toolbar.Realize()
|
||||||
|
|
||||||
|
def createSimpleTool(self, toolbar, label, filename, help, handler):
|
||||||
|
if not label:
|
||||||
|
toolbar.AddSeparator()
|
||||||
|
return
|
||||||
|
bmp = wx.Image(filename, wx.BITMAP_TYPE_BMP).ConvertToBitmap()
|
||||||
|
tool = toolbar.AddSimpleTool(-1, bmp, label, help)
|
||||||
|
self.Bind(wx.EVT_MENU, handler, tool)
|
||||||
|
|
||||||
|
def toolbarData(self):
|
||||||
|
return (("New", "new.bmp", "Create new sketch", self.OnNew),
|
||||||
|
("", "", "", ""),
|
||||||
|
("Open", "open.bmp", "Open existing sketch", self.OnOpen),
|
||||||
|
("Save", "save.bmp", "Save existing sketch", self.OnSave))
|
||||||
|
|
||||||
|
def createColorTool(self, toolbar, color):
|
||||||
|
bmp = self.MakeBitmap(color)
|
||||||
|
tool = toolbar.AddRadioTool(-1, bmp, shortHelp=color)
|
||||||
|
self.Bind(wx.EVT_MENU, self.OnColor, tool)
|
||||||
|
|
||||||
|
def MakeBitmap(self, color):
|
||||||
|
bmp = wx.EmptyBitmap(16, 15)
|
||||||
|
dc = wx.MemoryDC()
|
||||||
|
dc.SelectObject(bmp)
|
||||||
|
dc.SetBackground(wx.Brush(color))
|
||||||
|
dc.Clear()
|
||||||
|
dc.SelectObject(wx.NullBitmap)
|
||||||
|
return bmp
|
||||||
|
|
||||||
|
def toolbarColorData(self):
|
||||||
|
return ("Black", "Red", "Green", "Blue")
|
||||||
|
|
||||||
|
def OnNew(self, event): pass
|
||||||
|
|
||||||
|
def OnColor(self, event):
|
||||||
|
menubar = self.GetMenuBar()
|
||||||
|
itemId = event.GetId()
|
||||||
|
item = menubar.FindItemById(itemId)
|
||||||
|
if not item:
|
||||||
|
toolbar = self.GetToolBar()
|
||||||
|
item = toolbar.FindById(itemId)
|
||||||
|
color = item.GetShortHelp()
|
||||||
|
else:
|
||||||
|
color = item.GetLabel()
|
||||||
|
self.sketch.SetColor(color)
|
||||||
|
|
||||||
|
def OnCloseWindow(self, event):
|
||||||
|
self.Destroy()
|
||||||
|
|
||||||
|
def SaveFile(self):
|
||||||
|
if self.filename:
|
||||||
|
data = self.sketch.GetLinesData()
|
||||||
|
f = open(self.filename, 'w')
|
||||||
|
cPickle.dump(data, f)
|
||||||
|
f.close()
|
||||||
|
|
||||||
|
def ReadFile(self):
|
||||||
|
if self.filename:
|
||||||
|
try:
|
||||||
|
f = open(self.filename, 'r')
|
||||||
|
data = cPickle.load(f)
|
||||||
|
f.close()
|
||||||
|
self.sketch.SetLinesData(data)
|
||||||
|
except cPickle.UnpicklingError:
|
||||||
|
wx.MessageBox("%s is not a sketch file." % self.filename,
|
||||||
|
"oops!", style=wx.OK|wx.ICON_EXCLAMATION)
|
||||||
|
|
||||||
|
wildcard = "Sketch files (*.sketch)|*.sketch|All files (*.*)|*.*"
|
||||||
|
|
||||||
|
def OnOpen(self, event):
|
||||||
|
dlg = wx.FileDialog(self, "Open sketch file...", os.getcwd(),
|
||||||
|
style=wx.OPEN, wildcard=self.wildcard)
|
||||||
|
if dlg.ShowModal() == wx.ID_OK:
|
||||||
|
self.filename = dlg.GetPath()
|
||||||
|
self.ReadFile()
|
||||||
|
self.SetTitle(self.title + ' -- ' + self.filename)
|
||||||
|
dlg.Destroy()
|
||||||
|
|
||||||
|
def OnSave(self, event):
|
||||||
|
if not self.filename:
|
||||||
|
self.OnSaveAs(event)
|
||||||
|
else:
|
||||||
|
self.SaveFile()
|
||||||
|
|
||||||
|
def OnSaveAs(self, event):
|
||||||
|
dlg = wx.FileDialog(self, "Save sketch as...", os.getcwd(),
|
||||||
|
style=wx.SAVE | wx.OVERWRITE_PROMPT,
|
||||||
|
wildcard = self.wildcard)
|
||||||
|
if dlg.ShowModal() == wx.ID_OK:
|
||||||
|
filename = dlg.GetPath()
|
||||||
|
if not os.path.splitext(filename)[1]:
|
||||||
|
filename = filename + '.sketch'
|
||||||
|
self.filename = filename
|
||||||
|
self.SaveFile()
|
||||||
|
self.SetTitle(self.title + ' -- ' + self.filename)
|
||||||
|
dlg.Destroy()
|
||||||
|
|
||||||
|
def OnOtherColor(self, event):
|
||||||
|
dlg = wx.ColourDialog(frame)
|
||||||
|
dlg.GetColourData().SetChooseFull(True)
|
||||||
|
if dlg.ShowModal() == wx.ID_OK:
|
||||||
|
self.sketch.SetColor(dlg.GetColourData().GetColour())
|
||||||
|
dlg.Destroy()
|
||||||
|
|
||||||
|
def OnAbout(self, event):
|
||||||
|
dlg = SketchAbout(self)
|
||||||
|
dlg.ShowModal()
|
||||||
|
dlg.Destroy()
|
||||||
|
|
||||||
|
|
||||||
|
class SketchAbout(wx.Dialog):
|
||||||
|
text = '''
|
||||||
|
<html>
|
||||||
|
<body bgcolor="#ACAA60">
|
||||||
|
<center><table bgcolor="#455481" width="100%" cellspacing="0"
|
||||||
|
cellpadding="0" border="1">
|
||||||
|
<tr>
|
||||||
|
<td align="center"><h1>Sketch!</h1></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</center>
|
||||||
|
<p><b>Sketch</b> is a demonstration program for <b>wxPython In Action</b>
|
||||||
|
Chapter 7. It is based on the SuperDoodle demo included with wxPython,
|
||||||
|
available at http://www.wxpython.org/
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p><b>SuperDoodle</b> and <b>wxPython</b> are brought to you by
|
||||||
|
<b>Robin Dunn</b> and <b>Total Control Software</b>, Copyright
|
||||||
|
© 1997-2006.</p>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
'''
|
||||||
|
|
||||||
|
def __init__(self, parent):
|
||||||
|
wx.Dialog.__init__(self, parent, -1, 'About Sketch',
|
||||||
|
size=(440, 400) )
|
||||||
|
|
||||||
|
html = wx.html.HtmlWindow(self)
|
||||||
|
html.SetPage(self.text)
|
||||||
|
button = wx.Button(self, wx.ID_OK, "Okay")
|
||||||
|
|
||||||
|
sizer = wx.BoxSizer(wx.VERTICAL)
|
||||||
|
sizer.Add(html, 1, wx.EXPAND|wx.ALL, 5)
|
||||||
|
sizer.Add(button, 0, wx.ALIGN_CENTER|wx.ALL, 5)
|
||||||
|
|
||||||
|
self.SetSizer(sizer)
|
||||||
|
self.Layout()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
class ControlPanel(wx.Panel):
|
||||||
|
|
||||||
|
BMP_SIZE = 16
|
||||||
|
BMP_BORDER = 3
|
||||||
|
NUM_COLS = 4
|
||||||
|
SPACING = 4
|
||||||
|
|
||||||
|
colorList = ('Black', 'Yellow', 'Red', 'Green', 'Blue', 'Purple',
|
||||||
|
'Brown', 'Aquamarine', 'Forest Green', 'Light Blue',
|
||||||
|
'Goldenrod', 'Cyan', 'Orange', 'Navy', 'Dark Grey',
|
||||||
|
'Light Grey')
|
||||||
|
maxThickness = 16
|
||||||
|
|
||||||
|
def __init__(self, parent, ID, sketch):
|
||||||
|
wx.Panel.__init__(self, parent, ID, style=wx.RAISED_BORDER)
|
||||||
|
self.sketch = sketch
|
||||||
|
buttonSize = (self.BMP_SIZE + 2 * self.BMP_BORDER,
|
||||||
|
self.BMP_SIZE + 2 * self.BMP_BORDER)
|
||||||
|
colorGrid = self.createColorGrid(parent, buttonSize)
|
||||||
|
thicknessGrid = self.createThicknessGrid(buttonSize)
|
||||||
|
self.layout(colorGrid, thicknessGrid)
|
||||||
|
|
||||||
|
def createColorGrid(self, parent, buttonSize):
|
||||||
|
self.colorMap = {}
|
||||||
|
self.colorButtons = {}
|
||||||
|
colorGrid = wx.GridSizer(cols=self.NUM_COLS, hgap=2, vgap=2)
|
||||||
|
for eachColor in self.colorList:
|
||||||
|
bmp = parent.MakeBitmap(eachColor)
|
||||||
|
b = buttons.GenBitmapToggleButton(self, -1, bmp, size=buttonSize)
|
||||||
|
b.SetBezelWidth(1)
|
||||||
|
b.SetUseFocusIndicator(False)
|
||||||
|
self.Bind(wx.EVT_BUTTON, self.OnSetColour, b)
|
||||||
|
colorGrid.Add(b, 0)
|
||||||
|
self.colorMap[b.GetId()] = eachColor
|
||||||
|
self.colorButtons[eachColor] = b
|
||||||
|
self.colorButtons[self.colorList[0]].SetToggle(True)
|
||||||
|
return colorGrid
|
||||||
|
|
||||||
|
def createThicknessGrid(self, buttonSize):
|
||||||
|
self.thicknessIdMap = {}
|
||||||
|
self.thicknessButtons = {}
|
||||||
|
thicknessGrid = wx.GridSizer(cols=self.NUM_COLS, hgap=2, vgap=2)
|
||||||
|
for x in range(1, self.maxThickness + 1):
|
||||||
|
b = buttons.GenToggleButton(self, -1, str(x), size=buttonSize)
|
||||||
|
b.SetBezelWidth(1)
|
||||||
|
b.SetUseFocusIndicator(False)
|
||||||
|
self.Bind(wx.EVT_BUTTON, self.OnSetThickness, b)
|
||||||
|
thicknessGrid.Add(b, 0)
|
||||||
|
self.thicknessIdMap[b.GetId()] = x
|
||||||
|
self.thicknessButtons[x] = b
|
||||||
|
self.thicknessButtons[1].SetToggle(True)
|
||||||
|
return thicknessGrid
|
||||||
|
|
||||||
|
def layout(self, colorGrid, thicknessGrid):
|
||||||
|
box = wx.BoxSizer(wx.VERTICAL)
|
||||||
|
box.Add(colorGrid, 0, wx.ALL, self.SPACING)
|
||||||
|
box.Add(thicknessGrid, 0, wx.ALL, self.SPACING)
|
||||||
|
self.SetSizer(box)
|
||||||
|
box.Fit(self)
|
||||||
|
|
||||||
|
def OnSetColour(self, event):
|
||||||
|
color = self.colorMap[event.GetId()]
|
||||||
|
if color != self.sketch.color:
|
||||||
|
self.colorButtons[self.sketch.color].SetToggle(False)
|
||||||
|
self.sketch.SetColor(color)
|
||||||
|
|
||||||
|
def OnSetThickness(self, event):
|
||||||
|
thickness = self.thicknessIdMap[event.GetId()]
|
||||||
|
if thickness != self.sketch.thickness:
|
||||||
|
self.thicknessButtons[self.sketch.thickness].SetToggle(False)
|
||||||
|
self.sketch.SetThickness(thickness)
|
||||||
|
|
||||||
|
|
||||||
|
class SketchApp(wx.App):
|
||||||
|
|
||||||
|
def OnInit(self):
|
||||||
|
bmp = wx.Image("splash.png").ConvertToBitmap()
|
||||||
|
wx.SplashScreen(bmp, wx.SPLASH_CENTRE_ON_SCREEN | wx.SPLASH_TIMEOUT,
|
||||||
|
1000, None, -1)
|
||||||
|
wx.Yield()
|
||||||
|
|
||||||
|
frame = SketchFrame(None)
|
||||||
|
frame.Show(True)
|
||||||
|
self.SetTopWindow(frame)
|
||||||
|
return True
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
app = SketchApp(False)
|
||||||
|
app.MainLoop()
|
BIN
wxPython/samples/wxPIA_book/Chapter-06/new.bmp
Normal file
BIN
wxPython/samples/wxPIA_book/Chapter-06/new.bmp
Normal file
Binary file not shown.
After Width: | Height: | Size: 238 B |
BIN
wxPython/samples/wxPIA_book/Chapter-06/open.bmp
Normal file
BIN
wxPython/samples/wxPIA_book/Chapter-06/open.bmp
Normal file
Binary file not shown.
After Width: | Height: | Size: 238 B |
BIN
wxPython/samples/wxPIA_book/Chapter-06/save.bmp
Normal file
BIN
wxPython/samples/wxPIA_book/Chapter-06/save.bmp
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
BIN
wxPython/samples/wxPIA_book/Chapter-06/splash.png
Normal file
BIN
wxPython/samples/wxPIA_book/Chapter-06/splash.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.8 KiB |
BIN
wxPython/samples/wxPIA_book/Chapter-07/bitmap.bmp
Normal file
BIN
wxPython/samples/wxPIA_book/Chapter-07/bitmap.bmp
Normal file
Binary file not shown.
After Width: | Height: | Size: 13 KiB |
25
wxPython/samples/wxPIA_book/Chapter-07/bitmap_button.py
Normal file
25
wxPython/samples/wxPIA_book/Chapter-07/bitmap_button.py
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
import wx
|
||||||
|
|
||||||
|
class BitmapButtonFrame(wx.Frame):
|
||||||
|
def __init__(self):
|
||||||
|
wx.Frame.__init__(self, None, -1, 'Bitmap Button Example',
|
||||||
|
size=(200, 150))
|
||||||
|
panel = wx.Panel(self, -1)
|
||||||
|
bmp = wx.Image("bitmap.bmp", wx.BITMAP_TYPE_BMP).ConvertToBitmap()
|
||||||
|
self.button = wx.BitmapButton(panel, -1, bmp, pos=(10, 20))
|
||||||
|
self.Bind(wx.EVT_BUTTON, self.OnClick, self.button)
|
||||||
|
self.button.SetDefault()
|
||||||
|
self.button2 = wx.BitmapButton(panel, -1, bmp, pos=(100, 20),
|
||||||
|
style=0)
|
||||||
|
self.Bind(wx.EVT_BUTTON, self.OnClick, self.button2)
|
||||||
|
|
||||||
|
def OnClick(self, event):
|
||||||
|
self.Destroy()
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
app = wx.PySimpleApp()
|
||||||
|
frame = BitmapButtonFrame()
|
||||||
|
frame.Show()
|
||||||
|
app.MainLoop()
|
||||||
|
|
||||||
|
|
21
wxPython/samples/wxPIA_book/Chapter-07/button.py
Normal file
21
wxPython/samples/wxPIA_book/Chapter-07/button.py
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
import wx
|
||||||
|
|
||||||
|
class ButtonFrame(wx.Frame):
|
||||||
|
def __init__(self):
|
||||||
|
wx.Frame.__init__(self, None, -1, 'Button Example',
|
||||||
|
size=(300, 100))
|
||||||
|
panel = wx.Panel(self, -1)
|
||||||
|
self.button = wx.Button(panel, -1, "Hello", pos=(50, 20))
|
||||||
|
self.Bind(wx.EVT_BUTTON, self.OnClick, self.button)
|
||||||
|
self.button.SetDefault()
|
||||||
|
|
||||||
|
def OnClick(self, event):
|
||||||
|
self.button.SetLabel("Clicked")
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
app = wx.PySimpleApp()
|
||||||
|
frame = ButtonFrame()
|
||||||
|
frame.Show()
|
||||||
|
app.MainLoop()
|
||||||
|
|
||||||
|
|
16
wxPython/samples/wxPIA_book/Chapter-07/checkbox.py
Normal file
16
wxPython/samples/wxPIA_book/Chapter-07/checkbox.py
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
import wx
|
||||||
|
|
||||||
|
class CheckBoxFrame(wx.Frame):
|
||||||
|
def __init__(self):
|
||||||
|
wx.Frame.__init__(self, None, -1, 'Checkbox Example',
|
||||||
|
size=(150, 200))
|
||||||
|
panel = wx.Panel(self, -1)
|
||||||
|
wx.CheckBox(panel, -1, "Alpha", (35, 40), (150, 20))
|
||||||
|
wx.CheckBox(panel, -1, "Beta", (35, 60), (150, 20))
|
||||||
|
wx.CheckBox(panel, -1, "Gamma", (35, 80), (150, 20))
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
app = wx.PySimpleApp()
|
||||||
|
CheckBoxFrame().Show()
|
||||||
|
app.MainLoop()
|
||||||
|
|
16
wxPython/samples/wxPIA_book/Chapter-07/choice.py
Normal file
16
wxPython/samples/wxPIA_book/Chapter-07/choice.py
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
import wx
|
||||||
|
|
||||||
|
class ChoiceFrame(wx.Frame):
|
||||||
|
def __init__(self):
|
||||||
|
wx.Frame.__init__(self, None, -1, 'Choice Example',
|
||||||
|
size=(250, 200))
|
||||||
|
panel = wx.Panel(self, -1)
|
||||||
|
sampleList = ['zero', 'one', 'two', 'three', 'four', 'five',
|
||||||
|
'six', 'seven', 'eight']
|
||||||
|
wx.StaticText(panel, -1, "Select one:", (15, 20))
|
||||||
|
wx.Choice(panel, -1, (85, 18), choices=sampleList)
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
app = wx.PySimpleApp()
|
||||||
|
ChoiceFrame().Show()
|
||||||
|
app.MainLoop()
|
19
wxPython/samples/wxPIA_book/Chapter-07/combo_box.py
Normal file
19
wxPython/samples/wxPIA_book/Chapter-07/combo_box.py
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
import wx
|
||||||
|
|
||||||
|
class ComboBoxFrame(wx.Frame):
|
||||||
|
def __init__(self):
|
||||||
|
wx.Frame.__init__(self, None, -1, 'Combo Box Example',
|
||||||
|
size=(350, 300))
|
||||||
|
panel = wx.Panel(self, -1)
|
||||||
|
sampleList = ['zero', 'one', 'two', 'three', 'four', 'five',
|
||||||
|
'six', 'seven', 'eight']
|
||||||
|
wx.StaticText(panel, -1, "Select one:", (15, 15))
|
||||||
|
wx.ComboBox(panel, -1, "default value", (15, 30), wx.DefaultSize,
|
||||||
|
sampleList, wx.CB_DROPDOWN)
|
||||||
|
wx.ComboBox(panel, -1, "default value", (150, 30), wx.DefaultSize,
|
||||||
|
sampleList, wx.CB_SIMPLE)
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
app = wx.PySimpleApp()
|
||||||
|
ComboBoxFrame().Show()
|
||||||
|
app.MainLoop()
|
23
wxPython/samples/wxPIA_book/Chapter-07/gauge.py
Normal file
23
wxPython/samples/wxPIA_book/Chapter-07/gauge.py
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
import wx
|
||||||
|
|
||||||
|
class GaugeFrame(wx.Frame):
|
||||||
|
def __init__(self):
|
||||||
|
wx.Frame.__init__(self, None, -1, 'Gauge Example',
|
||||||
|
size=(350, 150))
|
||||||
|
panel = wx.Panel(self, -1)
|
||||||
|
self.count = 0
|
||||||
|
self.gauge = wx.Gauge(panel, -1, 50, (20, 50), (250, 25))
|
||||||
|
self.gauge.SetBezelFace(3)
|
||||||
|
self.gauge.SetShadowWidth(3)
|
||||||
|
self.Bind(wx.EVT_IDLE, self.OnIdle)
|
||||||
|
|
||||||
|
def OnIdle(self, event):
|
||||||
|
self.count = self.count + 1
|
||||||
|
if self.count >= 50:
|
||||||
|
self.count = 0
|
||||||
|
self.gauge.SetValue(self.count)
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
app = wx.PySimpleApp()
|
||||||
|
GaugeFrame().Show()
|
||||||
|
app.MainLoop()
|
56
wxPython/samples/wxPIA_book/Chapter-07/generic_button.py
Normal file
56
wxPython/samples/wxPIA_book/Chapter-07/generic_button.py
Normal file
@@ -0,0 +1,56 @@
|
|||||||
|
import wx
|
||||||
|
import wx.lib.buttons as buttons
|
||||||
|
|
||||||
|
class GenericButtonFrame(wx.Frame):
|
||||||
|
def __init__(self):
|
||||||
|
wx.Frame.__init__(self, None, -1, 'Generic Button Example',
|
||||||
|
size=(500, 350))
|
||||||
|
panel = wx.Panel(self, -1)
|
||||||
|
|
||||||
|
sizer = wx.FlexGridSizer(1, 3, 20, 20)
|
||||||
|
b = wx.Button(panel, -1, "A wx.Button")
|
||||||
|
b.SetDefault()
|
||||||
|
sizer.Add(b)
|
||||||
|
|
||||||
|
b = wx.Button(panel, -1, "non-default wx.Button")
|
||||||
|
sizer.Add(b)
|
||||||
|
sizer.Add((10,10))
|
||||||
|
|
||||||
|
b = buttons.GenButton(panel, -1, 'Generic Button')
|
||||||
|
sizer.Add(b)
|
||||||
|
|
||||||
|
b = buttons.GenButton(panel, -1, 'disabled Generic')
|
||||||
|
b.Enable(False)
|
||||||
|
sizer.Add(b)
|
||||||
|
|
||||||
|
b = buttons.GenButton(panel, -1, 'bigger')
|
||||||
|
b.SetFont(wx.Font(20, wx.SWISS, wx.NORMAL, wx.BOLD, False))
|
||||||
|
b.SetBezelWidth(5)
|
||||||
|
b.SetBackgroundColour("Navy")
|
||||||
|
b.SetForegroundColour("white")
|
||||||
|
b.SetToolTipString("This is a BIG button...")
|
||||||
|
sizer.Add(b)
|
||||||
|
|
||||||
|
bmp = wx.Image("bitmap.bmp", wx.BITMAP_TYPE_BMP).ConvertToBitmap()
|
||||||
|
b = buttons.GenBitmapButton(panel, -1, bmp)
|
||||||
|
sizer.Add(b)
|
||||||
|
|
||||||
|
b = buttons.GenBitmapToggleButton(panel, -1, bmp)
|
||||||
|
sizer.Add(b)
|
||||||
|
|
||||||
|
b = buttons.GenBitmapTextButton(panel, -1, bmp, "Bitmapped Text",
|
||||||
|
size=(175, 75))
|
||||||
|
b.SetUseFocusIndicator(False)
|
||||||
|
sizer.Add(b)
|
||||||
|
|
||||||
|
b = buttons.GenToggleButton(panel, -1, "Toggle Button")
|
||||||
|
sizer.Add(b)
|
||||||
|
|
||||||
|
panel.SetSizer(sizer)
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
app = wx.PySimpleApp()
|
||||||
|
frame = GenericButtonFrame()
|
||||||
|
frame.Show()
|
||||||
|
app.MainLoop()
|
||||||
|
|
21
wxPython/samples/wxPIA_book/Chapter-07/list_box.py
Normal file
21
wxPython/samples/wxPIA_book/Chapter-07/list_box.py
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
import wx
|
||||||
|
|
||||||
|
class ListBoxFrame(wx.Frame):
|
||||||
|
def __init__(self):
|
||||||
|
wx.Frame.__init__(self, None, -1, 'List Box Example',
|
||||||
|
size=(250, 200))
|
||||||
|
panel = wx.Panel(self, -1)
|
||||||
|
|
||||||
|
sampleList = ['zero', 'one', 'two', 'three', 'four', 'five',
|
||||||
|
'six', 'seven', 'eight', 'nine', 'ten', 'eleven',
|
||||||
|
'twelve', 'thirteen', 'fourteen']
|
||||||
|
|
||||||
|
listBox = wx.ListBox(panel, -1, (20, 20), (80, 120), sampleList,
|
||||||
|
wx.LB_SINGLE)
|
||||||
|
listBox.SetSelection(3)
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
app = wx.PySimpleApp()
|
||||||
|
ListBoxFrame().Show()
|
||||||
|
app.MainLoop()
|
||||||
|
|
32
wxPython/samples/wxPIA_book/Chapter-07/radio.py
Normal file
32
wxPython/samples/wxPIA_book/Chapter-07/radio.py
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
import wx
|
||||||
|
|
||||||
|
class RadioButtonFrame(wx.Frame):
|
||||||
|
def __init__(self):
|
||||||
|
wx.Frame.__init__(self, None, -1, 'Radio Example',
|
||||||
|
size=(200, 200))
|
||||||
|
panel = wx.Panel(self, -1)
|
||||||
|
radio1 = wx.RadioButton(panel, -1, "Elmo", pos=(20, 50), style=wx.RB_GROUP)
|
||||||
|
radio2 = wx.RadioButton(panel, -1, "Ernie", pos=(20, 80))
|
||||||
|
radio3 = wx.RadioButton(panel, -1, "Bert", pos=(20, 110))
|
||||||
|
text1 = wx.TextCtrl(panel, -1, "", pos=(80, 50))
|
||||||
|
text2 = wx.TextCtrl(panel, -1, "", pos=(80, 80))
|
||||||
|
text3 = wx.TextCtrl(panel, -1, "", pos=(80, 110))
|
||||||
|
self.texts = {"Elmo": text1, "Ernie": text2, "Bert": text3}
|
||||||
|
for eachText in [text2, text3]:
|
||||||
|
eachText.Enable(False)
|
||||||
|
for eachRadio in [radio1, radio2, radio3]:
|
||||||
|
self.Bind(wx.EVT_RADIOBUTTON, self.OnRadio, eachRadio)
|
||||||
|
self.selectedText = text1
|
||||||
|
|
||||||
|
def OnRadio(self, event):
|
||||||
|
if self.selectedText:
|
||||||
|
self.selectedText.Enable(False)
|
||||||
|
radioSelected = event.GetEventObject()
|
||||||
|
text = self.texts[radioSelected.GetLabel()]
|
||||||
|
text.Enable(True)
|
||||||
|
self.selectedText = text
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
app = wx.PySimpleApp()
|
||||||
|
RadioButtonFrame().Show()
|
||||||
|
app.MainLoop()
|
19
wxPython/samples/wxPIA_book/Chapter-07/radio_box.py
Normal file
19
wxPython/samples/wxPIA_book/Chapter-07/radio_box.py
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
import wx
|
||||||
|
|
||||||
|
class RadioBoxFrame(wx.Frame):
|
||||||
|
def __init__(self):
|
||||||
|
wx.Frame.__init__(self, None, -1, 'Radio Box Example',
|
||||||
|
size=(350, 200))
|
||||||
|
panel = wx.Panel(self, -1)
|
||||||
|
sampleList = ['zero', 'one', 'two', 'three', 'four', 'five',
|
||||||
|
'six', 'seven', 'eight']
|
||||||
|
wx.RadioBox(panel, -1, "A Radio Box", (10, 10), wx.DefaultSize,
|
||||||
|
sampleList, 2, wx.RA_SPECIFY_COLS)
|
||||||
|
|
||||||
|
wx.RadioBox(panel, -1, "", (150, 10), wx.DefaultSize,
|
||||||
|
sampleList, 3, wx.RA_SPECIFY_COLS | wx.NO_BORDER)
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
app = wx.PySimpleApp()
|
||||||
|
RadioBoxFrame().Show()
|
||||||
|
app.MainLoop()
|
22
wxPython/samples/wxPIA_book/Chapter-07/slider.py
Normal file
22
wxPython/samples/wxPIA_book/Chapter-07/slider.py
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
import wx
|
||||||
|
|
||||||
|
class SliderFrame(wx.Frame):
|
||||||
|
def __init__(self):
|
||||||
|
wx.Frame.__init__(self, None, -1, 'Slider Example',
|
||||||
|
size=(300, 350))
|
||||||
|
panel = wx.Panel(self, -1)
|
||||||
|
self.count = 0
|
||||||
|
slider = wx.Slider(panel, 100, 25, 1, 100, pos=(10, 10),
|
||||||
|
size=(250, -1),
|
||||||
|
style=wx.SL_HORIZONTAL | wx.SL_AUTOTICKS | wx.SL_LABELS )
|
||||||
|
slider.SetTickFreq(5, 1)
|
||||||
|
slider = wx.Slider(panel, 100, 25, 1, 100, pos=(125, 70),
|
||||||
|
size=(-1, 250),
|
||||||
|
style=wx.SL_VERTICAL | wx.SL_AUTOTICKS | wx.SL_LABELS )
|
||||||
|
slider.SetTickFreq(20, 1)
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
app = wx.PySimpleApp()
|
||||||
|
frame = SliderFrame()
|
||||||
|
frame.Show()
|
||||||
|
app.MainLoop()
|
15
wxPython/samples/wxPIA_book/Chapter-07/spinner.py
Normal file
15
wxPython/samples/wxPIA_book/Chapter-07/spinner.py
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
import wx
|
||||||
|
|
||||||
|
class SpinnerFrame(wx.Frame):
|
||||||
|
def __init__(self):
|
||||||
|
wx.Frame.__init__(self, None, -1, 'Spinner Example',
|
||||||
|
size=(100, 100))
|
||||||
|
panel = wx.Panel(self, -1)
|
||||||
|
sc = wx.SpinCtrl(panel, -1, "", (30, 20), (80, -1))
|
||||||
|
sc.SetRange(1,100)
|
||||||
|
sc.SetValue(5)
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
app = wx.PySimpleApp()
|
||||||
|
SpinnerFrame().Show()
|
||||||
|
app.MainLoop()
|
38
wxPython/samples/wxPIA_book/Chapter-07/static_text.py
Normal file
38
wxPython/samples/wxPIA_book/Chapter-07/static_text.py
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
import wx
|
||||||
|
|
||||||
|
class StaticTextFrame(wx.Frame):
|
||||||
|
def __init__(self):
|
||||||
|
wx.Frame.__init__(self, None, -1, 'Static Text Example',
|
||||||
|
size=(400, 300))
|
||||||
|
panel = wx.Panel(self, -1)
|
||||||
|
wx.StaticText(panel, -1, "This is an example of static text",
|
||||||
|
(100, 10))
|
||||||
|
rev = wx.StaticText(panel, -1, "Static Text With Reversed Colors",
|
||||||
|
(100, 30))
|
||||||
|
rev.SetForegroundColour('white')
|
||||||
|
rev.SetBackgroundColour('black')
|
||||||
|
center = wx.StaticText(panel, -1, "align center", (100, 50),
|
||||||
|
(160, -1), wx.ALIGN_CENTER)
|
||||||
|
center.SetForegroundColour('white')
|
||||||
|
center.SetBackgroundColour('black')
|
||||||
|
right = wx.StaticText(panel, -1, "align right", (100, 70),
|
||||||
|
(160, -1), wx.ALIGN_RIGHT)
|
||||||
|
right.SetForegroundColour('white')
|
||||||
|
right.SetBackgroundColour('black')
|
||||||
|
str = "You can also change the font."
|
||||||
|
text = wx.StaticText(panel, -1, str, (20, 100))
|
||||||
|
font = wx.Font(18, wx.DECORATIVE, wx.ITALIC, wx.NORMAL)
|
||||||
|
text.SetFont(font)
|
||||||
|
wx.StaticText(panel, -1, "Your text\ncan be split\n"
|
||||||
|
"over multiple lines\n\neven blank ones", (20,150))
|
||||||
|
wx.StaticText(panel, -1, "Multi-line text\ncan also\n"
|
||||||
|
"be right aligned\n\neven with a blank", (220,150),
|
||||||
|
style=wx.ALIGN_RIGHT)
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
app = wx.PySimpleApp()
|
||||||
|
frame = StaticTextFrame()
|
||||||
|
frame.Show()
|
||||||
|
app.MainLoop()
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user