DESTDIR =
WX_VERSION = 2.5.2
LIBDIRNAME = $(top_builddir)lib
-WXREGEX_CFLAGS = $(____SHARED) $(CPPFLAGS) $(CFLAGS)
+WXREGEX_CFLAGS = -D__WX$(TOOLKIT)__ $(____SHARED) $(CPPFLAGS) $(CFLAGS)
WXREGEX_OBJECTS = \
wxregex_regcomp.o \
wxregex_regexec.o \
@COND_PLATFORM_UNIX_1@PLUGIN_VERSION0 = 2.5.2
@COND_PLATFORM_UNIX_0@PLUGVERDELIM =
@COND_PLATFORM_UNIX_1@PLUGVERDELIM = -
-@COND_BUILD_DEBUG_UNICODE_0@PLUGINSUFFIX = _d
-@COND_BUILD_DEBUG_UNICODE_1@PLUGINSUFFIX = _ud
+@COND_BUILD_DEBUG_UNICODE_0@PLUGINSUFFIX = d
+@COND_BUILD_DEBUG_UNICODE_1@PLUGINSUFFIX = ud
@COND_BUILD_RELEASE_UNICODE_0@PLUGINSUFFIX =
-@COND_BUILD_RELEASE_UNICODE_1@PLUGINSUFFIX = _u
+@COND_BUILD_RELEASE_UNICODE_1@PLUGINSUFFIX = u
@COND_TOOLKIT_WINCE@BASE_WINCE_SRC = src/msw/wince/time.cpp
@COND_TOOLKIT_WINCE@BASE_WINCE_HDR = wx/msw/wince/time.h
@COND_TOOLKIT_WINCE@NET_WINCE_SRC = src/msw/wince/net.cpp
wx/motif/private.h \
wx/motif/radiobox.h \
wx/motif/radiobut.h \
- wx/motif/region.h \
wx/motif/scrolbar.h \
wx/motif/slider.h \
wx/motif/spinbutt.h \
wx/statbox.h \
wx/stattext.h \
wx/statusbr.h \
+ wx/stockitem.h \
wx/textctrl.h \
wx/textdlg.h \
wx/toolbar.h \
monodll_artprov.o \
monodll_artstd.o \
monodll_bmpbase.o \
+ monodll_buttoncmn.o \
monodll_bookctrl.o \
monodll_choiccmn.o \
monodll_clipcmn.o \
monodll_settcmn.o \
monodll_sizer.o \
monodll_statbar.o \
+ monodll_stockitem.o \
monodll_tbarbase.o \
monodll_textcmn.o \
monodll_timercmn.o \
monodll_artprov.o \
monodll_artstd.o \
monodll_bmpbase.o \
+ monodll_buttoncmn.o \
monodll_bookctrl.o \
monodll_choiccmn.o \
monodll_clipcmn.o \
monodll_settcmn.o \
monodll_sizer.o \
monodll_statbar.o \
+ monodll_stockitem.o \
monodll_tbarbase.o \
monodll_textcmn.o \
monodll_timercmn.o \
monolib_artprov.o \
monolib_artstd.o \
monolib_bmpbase.o \
+ monolib_buttoncmn.o \
monolib_bookctrl.o \
monolib_choiccmn.o \
monolib_clipcmn.o \
monolib_settcmn.o \
monolib_sizer.o \
monolib_statbar.o \
+ monolib_stockitem.o \
monolib_tbarbase.o \
monolib_textcmn.o \
monolib_timercmn.o \
monolib_artprov.o \
monolib_artstd.o \
monolib_bmpbase.o \
+ monolib_buttoncmn.o \
monolib_bookctrl.o \
monolib_choiccmn.o \
monolib_clipcmn.o \
monolib_settcmn.o \
monolib_sizer.o \
monolib_statbar.o \
+ monolib_stockitem.o \
monolib_tbarbase.o \
monolib_textcmn.o \
monolib_timercmn.o \
coredll_artprov.o \
coredll_artstd.o \
coredll_bmpbase.o \
+ coredll_buttoncmn.o \
coredll_bookctrl.o \
coredll_choiccmn.o \
coredll_clipcmn.o \
coredll_settcmn.o \
coredll_sizer.o \
coredll_statbar.o \
+ coredll_stockitem.o \
coredll_tbarbase.o \
coredll_textcmn.o \
coredll_timercmn.o \
coredll_artprov.o \
coredll_artstd.o \
coredll_bmpbase.o \
+ coredll_buttoncmn.o \
coredll_bookctrl.o \
coredll_choiccmn.o \
coredll_clipcmn.o \
coredll_settcmn.o \
coredll_sizer.o \
coredll_statbar.o \
+ coredll_stockitem.o \
coredll_tbarbase.o \
coredll_textcmn.o \
coredll_timercmn.o \
corelib_artprov.o \
corelib_artstd.o \
corelib_bmpbase.o \
+ corelib_buttoncmn.o \
corelib_bookctrl.o \
corelib_choiccmn.o \
corelib_clipcmn.o \
corelib_settcmn.o \
corelib_sizer.o \
corelib_statbar.o \
+ corelib_stockitem.o \
corelib_tbarbase.o \
corelib_textcmn.o \
corelib_timercmn.o \
corelib_artprov.o \
corelib_artstd.o \
corelib_bmpbase.o \
+ corelib_buttoncmn.o \
corelib_bookctrl.o \
corelib_choiccmn.o \
corelib_clipcmn.o \
corelib_settcmn.o \
corelib_sizer.o \
corelib_statbar.o \
+ corelib_stockitem.o \
corelib_tbarbase.o \
corelib_textcmn.o \
corelib_timercmn.o \
$(INSTALL_DIR) $(DESTDIR)$(libdir)/wx/config
$(INSTALL_PROGRAM) lib/wx/config/@WXCONFIG_DATA_FILE@ $(DESTDIR)$(libdir)/wx/config
(cd $(DESTDIR)$(libdir)/wx/config && rm -f $(TOOLCHAIN_NAME) && $(LN_S) @WXCONFIG_DATA_FILE@ $(TOOLCHAIN_NAME))
- $(INSTALL_PROGRAM) wx-config $(DESTDIR)$(bindir)
+ $(INSTALL_PROGRAM) wx-config-2.5 $(DESTDIR)$(bindir)
+ (cd $(DESTDIR)$(bindir) && rm -f wx-config && $(LN_S) wx-config-2.5 wx-config)
(cd $(DESTDIR)$(bindir) && rm -f wx$(TOOLCHAIN_NAME)-config && $(LN_S) wx-config wx$(TOOLCHAIN_NAME)-config)
locale_install:
@COND_USE_GUI_1@monodll_bmpbase.o: $(srcdir)/src/common/bmpbase.cpp $(MONODLL_ODEP)
@COND_USE_GUI_1@ $(CXXC) -c -o $@ $(MONODLL_CXXFLAGS) $<
+@COND_USE_GUI_1@monodll_buttoncmn.o: $(srcdir)/src/common/buttoncmn.cpp $(MONODLL_ODEP)
+@COND_USE_GUI_1@ $(CXXC) -c -o $@ $(MONODLL_CXXFLAGS) $<
+
@COND_USE_GUI_1@monodll_bookctrl.o: $(srcdir)/src/common/bookctrl.cpp $(MONODLL_ODEP)
@COND_USE_GUI_1@ $(CXXC) -c -o $@ $(MONODLL_CXXFLAGS) $<
@COND_USE_GUI_1@monodll_statbar.o: $(srcdir)/src/common/statbar.cpp $(MONODLL_ODEP)
@COND_USE_GUI_1@ $(CXXC) -c -o $@ $(MONODLL_CXXFLAGS) $<
+@COND_USE_GUI_1@monodll_stockitem.o: $(srcdir)/src/common/stockitem.cpp $(MONODLL_ODEP)
+@COND_USE_GUI_1@ $(CXXC) -c -o $@ $(MONODLL_CXXFLAGS) $<
+
@COND_USE_GUI_1@monodll_tbarbase.o: $(srcdir)/src/common/tbarbase.cpp $(MONODLL_ODEP)
@COND_USE_GUI_1@ $(CXXC) -c -o $@ $(MONODLL_CXXFLAGS) $<
@COND_USE_GUI_1@monolib_bmpbase.o: $(srcdir)/src/common/bmpbase.cpp $(MONOLIB_ODEP)
@COND_USE_GUI_1@ $(CXXC) -c -o $@ $(MONOLIB_CXXFLAGS) $<
+@COND_USE_GUI_1@monolib_buttoncmn.o: $(srcdir)/src/common/buttoncmn.cpp $(MONOLIB_ODEP)
+@COND_USE_GUI_1@ $(CXXC) -c -o $@ $(MONOLIB_CXXFLAGS) $<
+
@COND_USE_GUI_1@monolib_bookctrl.o: $(srcdir)/src/common/bookctrl.cpp $(MONOLIB_ODEP)
@COND_USE_GUI_1@ $(CXXC) -c -o $@ $(MONOLIB_CXXFLAGS) $<
@COND_USE_GUI_1@monolib_statbar.o: $(srcdir)/src/common/statbar.cpp $(MONOLIB_ODEP)
@COND_USE_GUI_1@ $(CXXC) -c -o $@ $(MONOLIB_CXXFLAGS) $<
+@COND_USE_GUI_1@monolib_stockitem.o: $(srcdir)/src/common/stockitem.cpp $(MONOLIB_ODEP)
+@COND_USE_GUI_1@ $(CXXC) -c -o $@ $(MONOLIB_CXXFLAGS) $<
+
@COND_USE_GUI_1@monolib_tbarbase.o: $(srcdir)/src/common/tbarbase.cpp $(MONOLIB_ODEP)
@COND_USE_GUI_1@ $(CXXC) -c -o $@ $(MONOLIB_CXXFLAGS) $<
@COND_USE_GUI_1@coredll_bmpbase.o: $(srcdir)/src/common/bmpbase.cpp $(COREDLL_ODEP)
@COND_USE_GUI_1@ $(CXXC) -c -o $@ $(COREDLL_CXXFLAGS) $<
+@COND_USE_GUI_1@coredll_buttoncmn.o: $(srcdir)/src/common/buttoncmn.cpp $(COREDLL_ODEP)
+@COND_USE_GUI_1@ $(CXXC) -c -o $@ $(COREDLL_CXXFLAGS) $<
+
@COND_USE_GUI_1@coredll_bookctrl.o: $(srcdir)/src/common/bookctrl.cpp $(COREDLL_ODEP)
@COND_USE_GUI_1@ $(CXXC) -c -o $@ $(COREDLL_CXXFLAGS) $<
@COND_USE_GUI_1@coredll_statbar.o: $(srcdir)/src/common/statbar.cpp $(COREDLL_ODEP)
@COND_USE_GUI_1@ $(CXXC) -c -o $@ $(COREDLL_CXXFLAGS) $<
+@COND_USE_GUI_1@coredll_stockitem.o: $(srcdir)/src/common/stockitem.cpp $(COREDLL_ODEP)
+@COND_USE_GUI_1@ $(CXXC) -c -o $@ $(COREDLL_CXXFLAGS) $<
+
@COND_USE_GUI_1@coredll_tbarbase.o: $(srcdir)/src/common/tbarbase.cpp $(COREDLL_ODEP)
@COND_USE_GUI_1@ $(CXXC) -c -o $@ $(COREDLL_CXXFLAGS) $<
@COND_USE_GUI_1@corelib_bmpbase.o: $(srcdir)/src/common/bmpbase.cpp $(CORELIB_ODEP)
@COND_USE_GUI_1@ $(CXXC) -c -o $@ $(CORELIB_CXXFLAGS) $<
+@COND_USE_GUI_1@corelib_buttoncmn.o: $(srcdir)/src/common/buttoncmn.cpp $(CORELIB_ODEP)
+@COND_USE_GUI_1@ $(CXXC) -c -o $@ $(CORELIB_CXXFLAGS) $<
+
@COND_USE_GUI_1@corelib_bookctrl.o: $(srcdir)/src/common/bookctrl.cpp $(CORELIB_ODEP)
@COND_USE_GUI_1@ $(CXXC) -c -o $@ $(CORELIB_CXXFLAGS) $<
@COND_USE_GUI_1@corelib_statbar.o: $(srcdir)/src/common/statbar.cpp $(CORELIB_ODEP)
@COND_USE_GUI_1@ $(CXXC) -c -o $@ $(CORELIB_CXXFLAGS) $<
+@COND_USE_GUI_1@corelib_stockitem.o: $(srcdir)/src/common/stockitem.cpp $(CORELIB_ODEP)
+@COND_USE_GUI_1@ $(CXXC) -c -o $@ $(CORELIB_CXXFLAGS) $<
+
@COND_USE_GUI_1@corelib_tbarbase.o: $(srcdir)/src/common/tbarbase.cpp $(CORELIB_ODEP)
@COND_USE_GUI_1@ $(CXXC) -c -o $@ $(CORELIB_CXXFLAGS) $<
src/common/artprov.cpp
src/common/artstd.cpp
src/common/bmpbase.cpp
+ src/common/buttoncmn.cpp
src/common/bookctrl.cpp
src/common/choiccmn.cpp
src/common/clipcmn.cpp
src/common/settcmn.cpp
src/common/sizer.cpp
src/common/statbar.cpp
+ src/common/stockitem.cpp
src/common/tbarbase.cpp
src/common/textcmn.cpp
src/common/timercmn.cpp
wx/statbox.h
wx/stattext.h
wx/statusbr.h
+ wx/stockitem.h
wx/textctrl.h
wx/textdlg.h
wx/toolbar.h
SETUPHDIR = \
$(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
WXREGEX_CFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
- $(__OPTIMIZEFLAG) -tWM -I..\..\include -I$(SETUPHDIR) $(__UNICODE_DEFINE_p) \
- -w-8008 -w-8012 -w-8057 -w-8064 -w-8066 -w-8070 $(CPPFLAGS) $(CFLAGS)
+ $(__OPTIMIZEFLAG) -tWM -I..\..\include -I$(SETUPHDIR) -D__WXMSW__ \
+ $(__UNICODE_DEFINE_p) -w-8008 -w-8012 -w-8057 -w-8064 -w-8066 -w-8070 \
+ $(CPPFLAGS) $(CFLAGS)
WXREGEX_OBJECTS = \
$(OBJS)\wxregex_regcomp.obj \
$(OBJS)\wxregex_regexec.obj \
$(OBJS)\monodll_artprov.obj \
$(OBJS)\monodll_artstd.obj \
$(OBJS)\monodll_bmpbase.obj \
+ $(OBJS)\monodll_buttoncmn.obj \
$(OBJS)\monodll_bookctrl.obj \
$(OBJS)\monodll_choiccmn.obj \
$(OBJS)\monodll_clipcmn.obj \
$(OBJS)\monodll_settcmn.obj \
$(OBJS)\monodll_sizer.obj \
$(OBJS)\monodll_statbar.obj \
+ $(OBJS)\monodll_stockitem.obj \
$(OBJS)\monodll_tbarbase.obj \
$(OBJS)\monodll_textcmn.obj \
$(OBJS)\monodll_timercmn.obj \
$(OBJS)\monodll_artprov.obj \
$(OBJS)\monodll_artstd.obj \
$(OBJS)\monodll_bmpbase.obj \
+ $(OBJS)\monodll_buttoncmn.obj \
$(OBJS)\monodll_bookctrl.obj \
$(OBJS)\monodll_choiccmn.obj \
$(OBJS)\monodll_clipcmn.obj \
$(OBJS)\monodll_settcmn.obj \
$(OBJS)\monodll_sizer.obj \
$(OBJS)\monodll_statbar.obj \
+ $(OBJS)\monodll_stockitem.obj \
$(OBJS)\monodll_tbarbase.obj \
$(OBJS)\monodll_textcmn.obj \
$(OBJS)\monodll_timercmn.obj \
$(OBJS)\monolib_artprov.obj \
$(OBJS)\monolib_artstd.obj \
$(OBJS)\monolib_bmpbase.obj \
+ $(OBJS)\monolib_buttoncmn.obj \
$(OBJS)\monolib_bookctrl.obj \
$(OBJS)\monolib_choiccmn.obj \
$(OBJS)\monolib_clipcmn.obj \
$(OBJS)\monolib_settcmn.obj \
$(OBJS)\monolib_sizer.obj \
$(OBJS)\monolib_statbar.obj \
+ $(OBJS)\monolib_stockitem.obj \
$(OBJS)\monolib_tbarbase.obj \
$(OBJS)\monolib_textcmn.obj \
$(OBJS)\monolib_timercmn.obj \
$(OBJS)\monolib_artprov.obj \
$(OBJS)\monolib_artstd.obj \
$(OBJS)\monolib_bmpbase.obj \
+ $(OBJS)\monolib_buttoncmn.obj \
$(OBJS)\monolib_bookctrl.obj \
$(OBJS)\monolib_choiccmn.obj \
$(OBJS)\monolib_clipcmn.obj \
$(OBJS)\monolib_settcmn.obj \
$(OBJS)\monolib_sizer.obj \
$(OBJS)\monolib_statbar.obj \
+ $(OBJS)\monolib_stockitem.obj \
$(OBJS)\monolib_tbarbase.obj \
$(OBJS)\monolib_textcmn.obj \
$(OBJS)\monolib_timercmn.obj \
$(OBJS)\coredll_artprov.obj \
$(OBJS)\coredll_artstd.obj \
$(OBJS)\coredll_bmpbase.obj \
+ $(OBJS)\coredll_buttoncmn.obj \
$(OBJS)\coredll_bookctrl.obj \
$(OBJS)\coredll_choiccmn.obj \
$(OBJS)\coredll_clipcmn.obj \
$(OBJS)\coredll_settcmn.obj \
$(OBJS)\coredll_sizer.obj \
$(OBJS)\coredll_statbar.obj \
+ $(OBJS)\coredll_stockitem.obj \
$(OBJS)\coredll_tbarbase.obj \
$(OBJS)\coredll_textcmn.obj \
$(OBJS)\coredll_timercmn.obj \
$(OBJS)\coredll_artprov.obj \
$(OBJS)\coredll_artstd.obj \
$(OBJS)\coredll_bmpbase.obj \
+ $(OBJS)\coredll_buttoncmn.obj \
$(OBJS)\coredll_bookctrl.obj \
$(OBJS)\coredll_choiccmn.obj \
$(OBJS)\coredll_clipcmn.obj \
$(OBJS)\coredll_settcmn.obj \
$(OBJS)\coredll_sizer.obj \
$(OBJS)\coredll_statbar.obj \
+ $(OBJS)\coredll_stockitem.obj \
$(OBJS)\coredll_tbarbase.obj \
$(OBJS)\coredll_textcmn.obj \
$(OBJS)\coredll_timercmn.obj \
$(OBJS)\corelib_artprov.obj \
$(OBJS)\corelib_artstd.obj \
$(OBJS)\corelib_bmpbase.obj \
+ $(OBJS)\corelib_buttoncmn.obj \
$(OBJS)\corelib_bookctrl.obj \
$(OBJS)\corelib_choiccmn.obj \
$(OBJS)\corelib_clipcmn.obj \
$(OBJS)\corelib_settcmn.obj \
$(OBJS)\corelib_sizer.obj \
$(OBJS)\corelib_statbar.obj \
+ $(OBJS)\corelib_stockitem.obj \
$(OBJS)\corelib_tbarbase.obj \
$(OBJS)\corelib_textcmn.obj \
$(OBJS)\corelib_timercmn.obj \
$(OBJS)\corelib_artprov.obj \
$(OBJS)\corelib_artstd.obj \
$(OBJS)\corelib_bmpbase.obj \
+ $(OBJS)\corelib_buttoncmn.obj \
$(OBJS)\corelib_bookctrl.obj \
$(OBJS)\corelib_choiccmn.obj \
$(OBJS)\corelib_clipcmn.obj \
$(OBJS)\corelib_settcmn.obj \
$(OBJS)\corelib_sizer.obj \
$(OBJS)\corelib_statbar.obj \
+ $(OBJS)\corelib_stockitem.obj \
$(OBJS)\corelib_tbarbase.obj \
$(OBJS)\corelib_textcmn.obj \
$(OBJS)\corelib_timercmn.obj \
$(CXX) -q -c -P -o$@ $(MONODLL_CXXFLAGS) $**
!endif
+!if "$(USE_GUI)" == "1"
+$(OBJS)\monodll_buttoncmn.obj: ..\..\src\common\buttoncmn.cpp
+ $(CXX) -q -c -P -o$@ $(MONODLL_CXXFLAGS) $**
+!endif
+
!if "$(USE_GUI)" == "1"
$(OBJS)\monodll_bookctrl.obj: ..\..\src\common\bookctrl.cpp
$(CXX) -q -c -P -o$@ $(MONODLL_CXXFLAGS) $**
$(CXX) -q -c -P -o$@ $(MONODLL_CXXFLAGS) $**
!endif
+!if "$(USE_GUI)" == "1"
+$(OBJS)\monodll_stockitem.obj: ..\..\src\common\stockitem.cpp
+ $(CXX) -q -c -P -o$@ $(MONODLL_CXXFLAGS) $**
+!endif
+
!if "$(USE_GUI)" == "1"
$(OBJS)\monodll_tbarbase.obj: ..\..\src\common\tbarbase.cpp
$(CXX) -q -c -P -o$@ $(MONODLL_CXXFLAGS) $**
$(CXX) -q -c -P -o$@ $(MONOLIB_CXXFLAGS) $**
!endif
+!if "$(USE_GUI)" == "1"
+$(OBJS)\monolib_buttoncmn.obj: ..\..\src\common\buttoncmn.cpp
+ $(CXX) -q -c -P -o$@ $(MONOLIB_CXXFLAGS) $**
+!endif
+
!if "$(USE_GUI)" == "1"
$(OBJS)\monolib_bookctrl.obj: ..\..\src\common\bookctrl.cpp
$(CXX) -q -c -P -o$@ $(MONOLIB_CXXFLAGS) $**
$(CXX) -q -c -P -o$@ $(MONOLIB_CXXFLAGS) $**
!endif
+!if "$(USE_GUI)" == "1"
+$(OBJS)\monolib_stockitem.obj: ..\..\src\common\stockitem.cpp
+ $(CXX) -q -c -P -o$@ $(MONOLIB_CXXFLAGS) $**
+!endif
+
!if "$(USE_GUI)" == "1"
$(OBJS)\monolib_tbarbase.obj: ..\..\src\common\tbarbase.cpp
$(CXX) -q -c -P -o$@ $(MONOLIB_CXXFLAGS) $**
$(CXX) -q -c -P -o$@ $(COREDLL_CXXFLAGS) $**
!endif
+!if "$(USE_GUI)" == "1"
+$(OBJS)\coredll_buttoncmn.obj: ..\..\src\common\buttoncmn.cpp
+ $(CXX) -q -c -P -o$@ $(COREDLL_CXXFLAGS) $**
+!endif
+
!if "$(USE_GUI)" == "1"
$(OBJS)\coredll_bookctrl.obj: ..\..\src\common\bookctrl.cpp
$(CXX) -q -c -P -o$@ $(COREDLL_CXXFLAGS) $**
$(CXX) -q -c -P -o$@ $(COREDLL_CXXFLAGS) $**
!endif
+!if "$(USE_GUI)" == "1"
+$(OBJS)\coredll_stockitem.obj: ..\..\src\common\stockitem.cpp
+ $(CXX) -q -c -P -o$@ $(COREDLL_CXXFLAGS) $**
+!endif
+
!if "$(USE_GUI)" == "1"
$(OBJS)\coredll_tbarbase.obj: ..\..\src\common\tbarbase.cpp
$(CXX) -q -c -P -o$@ $(COREDLL_CXXFLAGS) $**
$(CXX) -q -c -P -o$@ $(CORELIB_CXXFLAGS) $**
!endif
+!if "$(USE_GUI)" == "1"
+$(OBJS)\corelib_buttoncmn.obj: ..\..\src\common\buttoncmn.cpp
+ $(CXX) -q -c -P -o$@ $(CORELIB_CXXFLAGS) $**
+!endif
+
!if "$(USE_GUI)" == "1"
$(OBJS)\corelib_bookctrl.obj: ..\..\src\common\bookctrl.cpp
$(CXX) -q -c -P -o$@ $(CORELIB_CXXFLAGS) $**
$(CXX) -q -c -P -o$@ $(CORELIB_CXXFLAGS) $**
!endif
+!if "$(USE_GUI)" == "1"
+$(OBJS)\corelib_stockitem.obj: ..\..\src\common\stockitem.cpp
+ $(CXX) -q -c -P -o$@ $(CORELIB_CXXFLAGS) $**
+!endif
+
!if "$(USE_GUI)" == "1"
$(OBJS)\corelib_tbarbase.obj: ..\..\src\common\tbarbase.cpp
$(CXX) -q -c -P -o$@ $(CORELIB_CXXFLAGS) $**
SETUPHDIR = \
$(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
WXREGEX_CFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) -DHAVE_W32API_H \
- -I..\..\include -I$(SETUPHDIR) $(__UNICODE_DEFINE_p) $(CPPFLAGS) $(CFLAGS)
+ -I..\..\include -I$(SETUPHDIR) -D__WXMSW__ $(__UNICODE_DEFINE_p) $(CPPFLAGS) \
+ $(CFLAGS)
WXREGEX_OBJECTS = \
$(OBJS)\wxregex_regcomp.o \
$(OBJS)\wxregex_regexec.o \
$(OBJS)\monodll_artprov.o \
$(OBJS)\monodll_artstd.o \
$(OBJS)\monodll_bmpbase.o \
+ $(OBJS)\monodll_buttoncmn.o \
$(OBJS)\monodll_bookctrl.o \
$(OBJS)\monodll_choiccmn.o \
$(OBJS)\monodll_clipcmn.o \
$(OBJS)\monodll_settcmn.o \
$(OBJS)\monodll_sizer.o \
$(OBJS)\monodll_statbar.o \
+ $(OBJS)\monodll_stockitem.o \
$(OBJS)\monodll_tbarbase.o \
$(OBJS)\monodll_textcmn.o \
$(OBJS)\monodll_timercmn.o \
$(OBJS)\monodll_artprov.o \
$(OBJS)\monodll_artstd.o \
$(OBJS)\monodll_bmpbase.o \
+ $(OBJS)\monodll_buttoncmn.o \
$(OBJS)\monodll_bookctrl.o \
$(OBJS)\monodll_choiccmn.o \
$(OBJS)\monodll_clipcmn.o \
$(OBJS)\monodll_settcmn.o \
$(OBJS)\monodll_sizer.o \
$(OBJS)\monodll_statbar.o \
+ $(OBJS)\monodll_stockitem.o \
$(OBJS)\monodll_tbarbase.o \
$(OBJS)\monodll_textcmn.o \
$(OBJS)\monodll_timercmn.o \
$(OBJS)\monolib_artprov.o \
$(OBJS)\monolib_artstd.o \
$(OBJS)\monolib_bmpbase.o \
+ $(OBJS)\monolib_buttoncmn.o \
$(OBJS)\monolib_bookctrl.o \
$(OBJS)\monolib_choiccmn.o \
$(OBJS)\monolib_clipcmn.o \
$(OBJS)\monolib_settcmn.o \
$(OBJS)\monolib_sizer.o \
$(OBJS)\monolib_statbar.o \
+ $(OBJS)\monolib_stockitem.o \
$(OBJS)\monolib_tbarbase.o \
$(OBJS)\monolib_textcmn.o \
$(OBJS)\monolib_timercmn.o \
$(OBJS)\monolib_artprov.o \
$(OBJS)\monolib_artstd.o \
$(OBJS)\monolib_bmpbase.o \
+ $(OBJS)\monolib_buttoncmn.o \
$(OBJS)\monolib_bookctrl.o \
$(OBJS)\monolib_choiccmn.o \
$(OBJS)\monolib_clipcmn.o \
$(OBJS)\monolib_settcmn.o \
$(OBJS)\monolib_sizer.o \
$(OBJS)\monolib_statbar.o \
+ $(OBJS)\monolib_stockitem.o \
$(OBJS)\monolib_tbarbase.o \
$(OBJS)\monolib_textcmn.o \
$(OBJS)\monolib_timercmn.o \
$(OBJS)\coredll_artprov.o \
$(OBJS)\coredll_artstd.o \
$(OBJS)\coredll_bmpbase.o \
+ $(OBJS)\coredll_buttoncmn.o \
$(OBJS)\coredll_bookctrl.o \
$(OBJS)\coredll_choiccmn.o \
$(OBJS)\coredll_clipcmn.o \
$(OBJS)\coredll_settcmn.o \
$(OBJS)\coredll_sizer.o \
$(OBJS)\coredll_statbar.o \
+ $(OBJS)\coredll_stockitem.o \
$(OBJS)\coredll_tbarbase.o \
$(OBJS)\coredll_textcmn.o \
$(OBJS)\coredll_timercmn.o \
$(OBJS)\coredll_artprov.o \
$(OBJS)\coredll_artstd.o \
$(OBJS)\coredll_bmpbase.o \
+ $(OBJS)\coredll_buttoncmn.o \
$(OBJS)\coredll_bookctrl.o \
$(OBJS)\coredll_choiccmn.o \
$(OBJS)\coredll_clipcmn.o \
$(OBJS)\coredll_settcmn.o \
$(OBJS)\coredll_sizer.o \
$(OBJS)\coredll_statbar.o \
+ $(OBJS)\coredll_stockitem.o \
$(OBJS)\coredll_tbarbase.o \
$(OBJS)\coredll_textcmn.o \
$(OBJS)\coredll_timercmn.o \
$(OBJS)\corelib_artprov.o \
$(OBJS)\corelib_artstd.o \
$(OBJS)\corelib_bmpbase.o \
+ $(OBJS)\corelib_buttoncmn.o \
$(OBJS)\corelib_bookctrl.o \
$(OBJS)\corelib_choiccmn.o \
$(OBJS)\corelib_clipcmn.o \
$(OBJS)\corelib_settcmn.o \
$(OBJS)\corelib_sizer.o \
$(OBJS)\corelib_statbar.o \
+ $(OBJS)\corelib_stockitem.o \
$(OBJS)\corelib_tbarbase.o \
$(OBJS)\corelib_textcmn.o \
$(OBJS)\corelib_timercmn.o \
$(OBJS)\corelib_artprov.o \
$(OBJS)\corelib_artstd.o \
$(OBJS)\corelib_bmpbase.o \
+ $(OBJS)\corelib_buttoncmn.o \
$(OBJS)\corelib_bookctrl.o \
$(OBJS)\corelib_choiccmn.o \
$(OBJS)\corelib_clipcmn.o \
$(OBJS)\corelib_settcmn.o \
$(OBJS)\corelib_sizer.o \
$(OBJS)\corelib_statbar.o \
+ $(OBJS)\corelib_stockitem.o \
$(OBJS)\corelib_tbarbase.o \
$(OBJS)\corelib_textcmn.o \
$(OBJS)\corelib_timercmn.o \
$(CXX) -c -o $@ $(MONODLL_CXXFLAGS) $<
endif
+ifeq ($(USE_GUI),1)
+$(OBJS)\monodll_buttoncmn.o: ../../src/common/buttoncmn.cpp
+ $(CXX) -c -o $@ $(MONODLL_CXXFLAGS) $<
+endif
+
ifeq ($(USE_GUI),1)
$(OBJS)\monodll_bookctrl.o: ../../src/common/bookctrl.cpp
$(CXX) -c -o $@ $(MONODLL_CXXFLAGS) $<
$(CXX) -c -o $@ $(MONODLL_CXXFLAGS) $<
endif
+ifeq ($(USE_GUI),1)
+$(OBJS)\monodll_stockitem.o: ../../src/common/stockitem.cpp
+ $(CXX) -c -o $@ $(MONODLL_CXXFLAGS) $<
+endif
+
ifeq ($(USE_GUI),1)
$(OBJS)\monodll_tbarbase.o: ../../src/common/tbarbase.cpp
$(CXX) -c -o $@ $(MONODLL_CXXFLAGS) $<
$(CXX) -c -o $@ $(MONOLIB_CXXFLAGS) $<
endif
+ifeq ($(USE_GUI),1)
+$(OBJS)\monolib_buttoncmn.o: ../../src/common/buttoncmn.cpp
+ $(CXX) -c -o $@ $(MONOLIB_CXXFLAGS) $<
+endif
+
ifeq ($(USE_GUI),1)
$(OBJS)\monolib_bookctrl.o: ../../src/common/bookctrl.cpp
$(CXX) -c -o $@ $(MONOLIB_CXXFLAGS) $<
$(CXX) -c -o $@ $(MONOLIB_CXXFLAGS) $<
endif
+ifeq ($(USE_GUI),1)
+$(OBJS)\monolib_stockitem.o: ../../src/common/stockitem.cpp
+ $(CXX) -c -o $@ $(MONOLIB_CXXFLAGS) $<
+endif
+
ifeq ($(USE_GUI),1)
$(OBJS)\monolib_tbarbase.o: ../../src/common/tbarbase.cpp
$(CXX) -c -o $@ $(MONOLIB_CXXFLAGS) $<
$(CXX) -c -o $@ $(COREDLL_CXXFLAGS) $<
endif
+ifeq ($(USE_GUI),1)
+$(OBJS)\coredll_buttoncmn.o: ../../src/common/buttoncmn.cpp
+ $(CXX) -c -o $@ $(COREDLL_CXXFLAGS) $<
+endif
+
ifeq ($(USE_GUI),1)
$(OBJS)\coredll_bookctrl.o: ../../src/common/bookctrl.cpp
$(CXX) -c -o $@ $(COREDLL_CXXFLAGS) $<
$(CXX) -c -o $@ $(COREDLL_CXXFLAGS) $<
endif
+ifeq ($(USE_GUI),1)
+$(OBJS)\coredll_stockitem.o: ../../src/common/stockitem.cpp
+ $(CXX) -c -o $@ $(COREDLL_CXXFLAGS) $<
+endif
+
ifeq ($(USE_GUI),1)
$(OBJS)\coredll_tbarbase.o: ../../src/common/tbarbase.cpp
$(CXX) -c -o $@ $(COREDLL_CXXFLAGS) $<
$(CXX) -c -o $@ $(CORELIB_CXXFLAGS) $<
endif
+ifeq ($(USE_GUI),1)
+$(OBJS)\corelib_buttoncmn.o: ../../src/common/buttoncmn.cpp
+ $(CXX) -c -o $@ $(CORELIB_CXXFLAGS) $<
+endif
+
ifeq ($(USE_GUI),1)
$(OBJS)\corelib_bookctrl.o: ../../src/common/bookctrl.cpp
$(CXX) -c -o $@ $(CORELIB_CXXFLAGS) $<
$(CXX) -c -o $@ $(CORELIB_CXXFLAGS) $<
endif
+ifeq ($(USE_GUI),1)
+$(OBJS)\corelib_stockitem.o: ../../src/common/stockitem.cpp
+ $(CXX) -c -o $@ $(CORELIB_CXXFLAGS) $<
+endif
+
ifeq ($(USE_GUI),1)
$(OBJS)\corelib_tbarbase.o: ../../src/common/tbarbase.cpp
$(CXX) -c -o $@ $(CORELIB_CXXFLAGS) $<
WXREGEX_CFLAGS = /M$(__RUNTIME_LIBS)$(__DEBUGRUNTIME_3) /DWIN32 $(__DEBUGINFO) \
/Fd$(LIBDIRNAME)\wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).pdb \
$(____DEBUGRUNTIME_2_p) $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) \
- /I..\..\include /I$(SETUPHDIR) $(__UNICODE_DEFINE_p) $(CPPFLAGS) $(CFLAGS)
+ /I..\..\include /I$(SETUPHDIR) /D__WXMSW__ $(__UNICODE_DEFINE_p) $(CPPFLAGS) \
+ $(CFLAGS)
WXREGEX_OBJECTS = \
$(OBJS)\wxregex_regcomp.obj \
$(OBJS)\wxregex_regexec.obj \
$(OBJS)\monodll_artprov.obj \
$(OBJS)\monodll_artstd.obj \
$(OBJS)\monodll_bmpbase.obj \
+ $(OBJS)\monodll_buttoncmn.obj \
$(OBJS)\monodll_bookctrl.obj \
$(OBJS)\monodll_choiccmn.obj \
$(OBJS)\monodll_clipcmn.obj \
$(OBJS)\monodll_settcmn.obj \
$(OBJS)\monodll_sizer.obj \
$(OBJS)\monodll_statbar.obj \
+ $(OBJS)\monodll_stockitem.obj \
$(OBJS)\monodll_tbarbase.obj \
$(OBJS)\monodll_textcmn.obj \
$(OBJS)\monodll_timercmn.obj \
$(OBJS)\monodll_artprov.obj \
$(OBJS)\monodll_artstd.obj \
$(OBJS)\monodll_bmpbase.obj \
+ $(OBJS)\monodll_buttoncmn.obj \
$(OBJS)\monodll_bookctrl.obj \
$(OBJS)\monodll_choiccmn.obj \
$(OBJS)\monodll_clipcmn.obj \
$(OBJS)\monodll_settcmn.obj \
$(OBJS)\monodll_sizer.obj \
$(OBJS)\monodll_statbar.obj \
+ $(OBJS)\monodll_stockitem.obj \
$(OBJS)\monodll_tbarbase.obj \
$(OBJS)\monodll_textcmn.obj \
$(OBJS)\monodll_timercmn.obj \
$(OBJS)\monolib_artprov.obj \
$(OBJS)\monolib_artstd.obj \
$(OBJS)\monolib_bmpbase.obj \
+ $(OBJS)\monolib_buttoncmn.obj \
$(OBJS)\monolib_bookctrl.obj \
$(OBJS)\monolib_choiccmn.obj \
$(OBJS)\monolib_clipcmn.obj \
$(OBJS)\monolib_settcmn.obj \
$(OBJS)\monolib_sizer.obj \
$(OBJS)\monolib_statbar.obj \
+ $(OBJS)\monolib_stockitem.obj \
$(OBJS)\monolib_tbarbase.obj \
$(OBJS)\monolib_textcmn.obj \
$(OBJS)\monolib_timercmn.obj \
$(OBJS)\monolib_artprov.obj \
$(OBJS)\monolib_artstd.obj \
$(OBJS)\monolib_bmpbase.obj \
+ $(OBJS)\monolib_buttoncmn.obj \
$(OBJS)\monolib_bookctrl.obj \
$(OBJS)\monolib_choiccmn.obj \
$(OBJS)\monolib_clipcmn.obj \
$(OBJS)\monolib_settcmn.obj \
$(OBJS)\monolib_sizer.obj \
$(OBJS)\monolib_statbar.obj \
+ $(OBJS)\monolib_stockitem.obj \
$(OBJS)\monolib_tbarbase.obj \
$(OBJS)\monolib_textcmn.obj \
$(OBJS)\monolib_timercmn.obj \
$(OBJS)\coredll_artprov.obj \
$(OBJS)\coredll_artstd.obj \
$(OBJS)\coredll_bmpbase.obj \
+ $(OBJS)\coredll_buttoncmn.obj \
$(OBJS)\coredll_bookctrl.obj \
$(OBJS)\coredll_choiccmn.obj \
$(OBJS)\coredll_clipcmn.obj \
$(OBJS)\coredll_settcmn.obj \
$(OBJS)\coredll_sizer.obj \
$(OBJS)\coredll_statbar.obj \
+ $(OBJS)\coredll_stockitem.obj \
$(OBJS)\coredll_tbarbase.obj \
$(OBJS)\coredll_textcmn.obj \
$(OBJS)\coredll_timercmn.obj \
$(OBJS)\coredll_artprov.obj \
$(OBJS)\coredll_artstd.obj \
$(OBJS)\coredll_bmpbase.obj \
+ $(OBJS)\coredll_buttoncmn.obj \
$(OBJS)\coredll_bookctrl.obj \
$(OBJS)\coredll_choiccmn.obj \
$(OBJS)\coredll_clipcmn.obj \
$(OBJS)\coredll_settcmn.obj \
$(OBJS)\coredll_sizer.obj \
$(OBJS)\coredll_statbar.obj \
+ $(OBJS)\coredll_stockitem.obj \
$(OBJS)\coredll_tbarbase.obj \
$(OBJS)\coredll_textcmn.obj \
$(OBJS)\coredll_timercmn.obj \
$(OBJS)\corelib_artprov.obj \
$(OBJS)\corelib_artstd.obj \
$(OBJS)\corelib_bmpbase.obj \
+ $(OBJS)\corelib_buttoncmn.obj \
$(OBJS)\corelib_bookctrl.obj \
$(OBJS)\corelib_choiccmn.obj \
$(OBJS)\corelib_clipcmn.obj \
$(OBJS)\corelib_settcmn.obj \
$(OBJS)\corelib_sizer.obj \
$(OBJS)\corelib_statbar.obj \
+ $(OBJS)\corelib_stockitem.obj \
$(OBJS)\corelib_tbarbase.obj \
$(OBJS)\corelib_textcmn.obj \
$(OBJS)\corelib_timercmn.obj \
$(OBJS)\corelib_artprov.obj \
$(OBJS)\corelib_artstd.obj \
$(OBJS)\corelib_bmpbase.obj \
+ $(OBJS)\corelib_buttoncmn.obj \
$(OBJS)\corelib_bookctrl.obj \
$(OBJS)\corelib_choiccmn.obj \
$(OBJS)\corelib_clipcmn.obj \
$(OBJS)\corelib_settcmn.obj \
$(OBJS)\corelib_sizer.obj \
$(OBJS)\corelib_statbar.obj \
+ $(OBJS)\corelib_stockitem.obj \
$(OBJS)\corelib_tbarbase.obj \
$(OBJS)\corelib_textcmn.obj \
$(OBJS)\corelib_timercmn.obj \
$(CXX) /c /nologo /TP /Fo$@ $(MONODLL_CXXFLAGS) $**
!endif
+!if "$(USE_GUI)" == "1"
+$(OBJS)\monodll_buttoncmn.obj: ..\..\src\common\buttoncmn.cpp
+ $(CXX) /c /nologo /TP /Fo$@ $(MONODLL_CXXFLAGS) $**
+!endif
+
!if "$(USE_GUI)" == "1"
$(OBJS)\monodll_bookctrl.obj: ..\..\src\common\bookctrl.cpp
$(CXX) /c /nologo /TP /Fo$@ $(MONODLL_CXXFLAGS) $**
$(CXX) /c /nologo /TP /Fo$@ $(MONODLL_CXXFLAGS) $**
!endif
+!if "$(USE_GUI)" == "1"
+$(OBJS)\monodll_stockitem.obj: ..\..\src\common\stockitem.cpp
+ $(CXX) /c /nologo /TP /Fo$@ $(MONODLL_CXXFLAGS) $**
+!endif
+
!if "$(USE_GUI)" == "1"
$(OBJS)\monodll_tbarbase.obj: ..\..\src\common\tbarbase.cpp
$(CXX) /c /nologo /TP /Fo$@ $(MONODLL_CXXFLAGS) $**
$(CXX) /c /nologo /TP /Fo$@ $(MONOLIB_CXXFLAGS) $**
!endif
+!if "$(USE_GUI)" == "1"
+$(OBJS)\monolib_buttoncmn.obj: ..\..\src\common\buttoncmn.cpp
+ $(CXX) /c /nologo /TP /Fo$@ $(MONOLIB_CXXFLAGS) $**
+!endif
+
!if "$(USE_GUI)" == "1"
$(OBJS)\monolib_bookctrl.obj: ..\..\src\common\bookctrl.cpp
$(CXX) /c /nologo /TP /Fo$@ $(MONOLIB_CXXFLAGS) $**
$(CXX) /c /nologo /TP /Fo$@ $(MONOLIB_CXXFLAGS) $**
!endif
+!if "$(USE_GUI)" == "1"
+$(OBJS)\monolib_stockitem.obj: ..\..\src\common\stockitem.cpp
+ $(CXX) /c /nologo /TP /Fo$@ $(MONOLIB_CXXFLAGS) $**
+!endif
+
!if "$(USE_GUI)" == "1"
$(OBJS)\monolib_tbarbase.obj: ..\..\src\common\tbarbase.cpp
$(CXX) /c /nologo /TP /Fo$@ $(MONOLIB_CXXFLAGS) $**
$(CXX) /c /nologo /TP /Fo$@ $(COREDLL_CXXFLAGS) $**
!endif
+!if "$(USE_GUI)" == "1"
+$(OBJS)\coredll_buttoncmn.obj: ..\..\src\common\buttoncmn.cpp
+ $(CXX) /c /nologo /TP /Fo$@ $(COREDLL_CXXFLAGS) $**
+!endif
+
!if "$(USE_GUI)" == "1"
$(OBJS)\coredll_bookctrl.obj: ..\..\src\common\bookctrl.cpp
$(CXX) /c /nologo /TP /Fo$@ $(COREDLL_CXXFLAGS) $**
$(CXX) /c /nologo /TP /Fo$@ $(COREDLL_CXXFLAGS) $**
!endif
+!if "$(USE_GUI)" == "1"
+$(OBJS)\coredll_stockitem.obj: ..\..\src\common\stockitem.cpp
+ $(CXX) /c /nologo /TP /Fo$@ $(COREDLL_CXXFLAGS) $**
+!endif
+
!if "$(USE_GUI)" == "1"
$(OBJS)\coredll_tbarbase.obj: ..\..\src\common\tbarbase.cpp
$(CXX) /c /nologo /TP /Fo$@ $(COREDLL_CXXFLAGS) $**
$(CXX) /c /nologo /TP /Fo$@ $(CORELIB_CXXFLAGS) $**
!endif
+!if "$(USE_GUI)" == "1"
+$(OBJS)\corelib_buttoncmn.obj: ..\..\src\common\buttoncmn.cpp
+ $(CXX) /c /nologo /TP /Fo$@ $(CORELIB_CXXFLAGS) $**
+!endif
+
!if "$(USE_GUI)" == "1"
$(OBJS)\corelib_bookctrl.obj: ..\..\src\common\bookctrl.cpp
$(CXX) /c /nologo /TP /Fo$@ $(CORELIB_CXXFLAGS) $**
$(CXX) /c /nologo /TP /Fo$@ $(CORELIB_CXXFLAGS) $**
!endif
+!if "$(USE_GUI)" == "1"
+$(OBJS)\corelib_stockitem.obj: ..\..\src\common\stockitem.cpp
+ $(CXX) /c /nologo /TP /Fo$@ $(CORELIB_CXXFLAGS) $**
+!endif
+
!if "$(USE_GUI)" == "1"
$(OBJS)\corelib_tbarbase.obj: ..\..\src\common\tbarbase.cpp
$(CXX) /c /nologo /TP /Fo$@ $(CORELIB_CXXFLAGS) $**
$(OBJS)\monodll_artprov.obj &
$(OBJS)\monodll_artstd.obj &
$(OBJS)\monodll_bmpbase.obj &
+ $(OBJS)\monodll_buttoncmn.obj &
$(OBJS)\monodll_bookctrl.obj &
$(OBJS)\monodll_choiccmn.obj &
$(OBJS)\monodll_clipcmn.obj &
$(OBJS)\monodll_settcmn.obj &
$(OBJS)\monodll_sizer.obj &
$(OBJS)\monodll_statbar.obj &
+ $(OBJS)\monodll_stockitem.obj &
$(OBJS)\monodll_tbarbase.obj &
$(OBJS)\monodll_textcmn.obj &
$(OBJS)\monodll_timercmn.obj &
$(OBJS)\monodll_artprov.obj &
$(OBJS)\monodll_artstd.obj &
$(OBJS)\monodll_bmpbase.obj &
+ $(OBJS)\monodll_buttoncmn.obj &
$(OBJS)\monodll_bookctrl.obj &
$(OBJS)\monodll_choiccmn.obj &
$(OBJS)\monodll_clipcmn.obj &
$(OBJS)\monodll_settcmn.obj &
$(OBJS)\monodll_sizer.obj &
$(OBJS)\monodll_statbar.obj &
+ $(OBJS)\monodll_stockitem.obj &
$(OBJS)\monodll_tbarbase.obj &
$(OBJS)\monodll_textcmn.obj &
$(OBJS)\monodll_timercmn.obj &
$(OBJS)\monolib_artprov.obj &
$(OBJS)\monolib_artstd.obj &
$(OBJS)\monolib_bmpbase.obj &
+ $(OBJS)\monolib_buttoncmn.obj &
$(OBJS)\monolib_bookctrl.obj &
$(OBJS)\monolib_choiccmn.obj &
$(OBJS)\monolib_clipcmn.obj &
$(OBJS)\monolib_settcmn.obj &
$(OBJS)\monolib_sizer.obj &
$(OBJS)\monolib_statbar.obj &
+ $(OBJS)\monolib_stockitem.obj &
$(OBJS)\monolib_tbarbase.obj &
$(OBJS)\monolib_textcmn.obj &
$(OBJS)\monolib_timercmn.obj &
$(OBJS)\monolib_artprov.obj &
$(OBJS)\monolib_artstd.obj &
$(OBJS)\monolib_bmpbase.obj &
+ $(OBJS)\monolib_buttoncmn.obj &
$(OBJS)\monolib_bookctrl.obj &
$(OBJS)\monolib_choiccmn.obj &
$(OBJS)\monolib_clipcmn.obj &
$(OBJS)\monolib_settcmn.obj &
$(OBJS)\monolib_sizer.obj &
$(OBJS)\monolib_statbar.obj &
+ $(OBJS)\monolib_stockitem.obj &
$(OBJS)\monolib_tbarbase.obj &
$(OBJS)\monolib_textcmn.obj &
$(OBJS)\monolib_timercmn.obj &
$(OBJS)\coredll_artprov.obj &
$(OBJS)\coredll_artstd.obj &
$(OBJS)\coredll_bmpbase.obj &
+ $(OBJS)\coredll_buttoncmn.obj &
$(OBJS)\coredll_bookctrl.obj &
$(OBJS)\coredll_choiccmn.obj &
$(OBJS)\coredll_clipcmn.obj &
$(OBJS)\coredll_settcmn.obj &
$(OBJS)\coredll_sizer.obj &
$(OBJS)\coredll_statbar.obj &
+ $(OBJS)\coredll_stockitem.obj &
$(OBJS)\coredll_tbarbase.obj &
$(OBJS)\coredll_textcmn.obj &
$(OBJS)\coredll_timercmn.obj &
$(OBJS)\coredll_artprov.obj &
$(OBJS)\coredll_artstd.obj &
$(OBJS)\coredll_bmpbase.obj &
+ $(OBJS)\coredll_buttoncmn.obj &
$(OBJS)\coredll_bookctrl.obj &
$(OBJS)\coredll_choiccmn.obj &
$(OBJS)\coredll_clipcmn.obj &
$(OBJS)\coredll_settcmn.obj &
$(OBJS)\coredll_sizer.obj &
$(OBJS)\coredll_statbar.obj &
+ $(OBJS)\coredll_stockitem.obj &
$(OBJS)\coredll_tbarbase.obj &
$(OBJS)\coredll_textcmn.obj &
$(OBJS)\coredll_timercmn.obj &
$(OBJS)\corelib_artprov.obj &
$(OBJS)\corelib_artstd.obj &
$(OBJS)\corelib_bmpbase.obj &
+ $(OBJS)\corelib_buttoncmn.obj &
$(OBJS)\corelib_bookctrl.obj &
$(OBJS)\corelib_choiccmn.obj &
$(OBJS)\corelib_clipcmn.obj &
$(OBJS)\corelib_settcmn.obj &
$(OBJS)\corelib_sizer.obj &
$(OBJS)\corelib_statbar.obj &
+ $(OBJS)\corelib_stockitem.obj &
$(OBJS)\corelib_tbarbase.obj &
$(OBJS)\corelib_textcmn.obj &
$(OBJS)\corelib_timercmn.obj &
$(OBJS)\corelib_artprov.obj &
$(OBJS)\corelib_artstd.obj &
$(OBJS)\corelib_bmpbase.obj &
+ $(OBJS)\corelib_buttoncmn.obj &
$(OBJS)\corelib_bookctrl.obj &
$(OBJS)\corelib_choiccmn.obj &
$(OBJS)\corelib_clipcmn.obj &
$(OBJS)\corelib_settcmn.obj &
$(OBJS)\corelib_sizer.obj &
$(OBJS)\corelib_statbar.obj &
+ $(OBJS)\corelib_stockitem.obj &
$(OBJS)\corelib_tbarbase.obj &
$(OBJS)\corelib_textcmn.obj &
$(OBJS)\corelib_timercmn.obj &
SETUPHDIR = &
$(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
WXREGEX_CFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) -bm $(__RUNTIME_LIBS) &
- -i=..\..\include -i=$(SETUPHDIR) $(__UNICODE_DEFINE_p) $(CPPFLAGS) $(CFLAGS)
+ -i=..\..\include -i=$(SETUPHDIR) -d__WXMSW__ $(__UNICODE_DEFINE_p) &
+ $(CPPFLAGS) $(CFLAGS)
WXREGEX_OBJECTS = &
$(OBJS)\wxregex_regcomp.obj &
$(OBJS)\wxregex_regexec.obj &
$(CXX) -zq -fo=$^@ $(MONODLL_CXXFLAGS) $<
!endif
+!ifeq USE_GUI 1
+$(OBJS)\monodll_buttoncmn.obj : .AUTODEPEND ..\..\src\common\buttoncmn.cpp
+ $(CXX) -zq -fo=$^@ $(MONODLL_CXXFLAGS) $<
+!endif
+
!ifeq USE_GUI 1
$(OBJS)\monodll_bookctrl.obj : .AUTODEPEND ..\..\src\common\bookctrl.cpp
$(CXX) -zq -fo=$^@ $(MONODLL_CXXFLAGS) $<
$(CXX) -zq -fo=$^@ $(MONODLL_CXXFLAGS) $<
!endif
+!ifeq USE_GUI 1
+$(OBJS)\monodll_stockitem.obj : .AUTODEPEND ..\..\src\common\stockitem.cpp
+ $(CXX) -zq -fo=$^@ $(MONODLL_CXXFLAGS) $<
+!endif
+
!ifeq USE_GUI 1
$(OBJS)\monodll_tbarbase.obj : .AUTODEPEND ..\..\src\common\tbarbase.cpp
$(CXX) -zq -fo=$^@ $(MONODLL_CXXFLAGS) $<
$(CXX) -zq -fo=$^@ $(MONOLIB_CXXFLAGS) $<
!endif
+!ifeq USE_GUI 1
+$(OBJS)\monolib_buttoncmn.obj : .AUTODEPEND ..\..\src\common\buttoncmn.cpp
+ $(CXX) -zq -fo=$^@ $(MONOLIB_CXXFLAGS) $<
+!endif
+
!ifeq USE_GUI 1
$(OBJS)\monolib_bookctrl.obj : .AUTODEPEND ..\..\src\common\bookctrl.cpp
$(CXX) -zq -fo=$^@ $(MONOLIB_CXXFLAGS) $<
$(CXX) -zq -fo=$^@ $(MONOLIB_CXXFLAGS) $<
!endif
+!ifeq USE_GUI 1
+$(OBJS)\monolib_stockitem.obj : .AUTODEPEND ..\..\src\common\stockitem.cpp
+ $(CXX) -zq -fo=$^@ $(MONOLIB_CXXFLAGS) $<
+!endif
+
!ifeq USE_GUI 1
$(OBJS)\monolib_tbarbase.obj : .AUTODEPEND ..\..\src\common\tbarbase.cpp
$(CXX) -zq -fo=$^@ $(MONOLIB_CXXFLAGS) $<
$(CXX) -zq -fo=$^@ $(COREDLL_CXXFLAGS) $<
!endif
+!ifeq USE_GUI 1
+$(OBJS)\coredll_buttoncmn.obj : .AUTODEPEND ..\..\src\common\buttoncmn.cpp
+ $(CXX) -zq -fo=$^@ $(COREDLL_CXXFLAGS) $<
+!endif
+
!ifeq USE_GUI 1
$(OBJS)\coredll_bookctrl.obj : .AUTODEPEND ..\..\src\common\bookctrl.cpp
$(CXX) -zq -fo=$^@ $(COREDLL_CXXFLAGS) $<
$(CXX) -zq -fo=$^@ $(COREDLL_CXXFLAGS) $<
!endif
+!ifeq USE_GUI 1
+$(OBJS)\coredll_stockitem.obj : .AUTODEPEND ..\..\src\common\stockitem.cpp
+ $(CXX) -zq -fo=$^@ $(COREDLL_CXXFLAGS) $<
+!endif
+
!ifeq USE_GUI 1
$(OBJS)\coredll_tbarbase.obj : .AUTODEPEND ..\..\src\common\tbarbase.cpp
$(CXX) -zq -fo=$^@ $(COREDLL_CXXFLAGS) $<
$(CXX) -zq -fo=$^@ $(CORELIB_CXXFLAGS) $<
!endif
+!ifeq USE_GUI 1
+$(OBJS)\corelib_buttoncmn.obj : .AUTODEPEND ..\..\src\common\buttoncmn.cpp
+ $(CXX) -zq -fo=$^@ $(CORELIB_CXXFLAGS) $<
+!endif
+
!ifeq USE_GUI 1
$(OBJS)\corelib_bookctrl.obj : .AUTODEPEND ..\..\src\common\bookctrl.cpp
$(CXX) -zq -fo=$^@ $(CORELIB_CXXFLAGS) $<
$(CXX) -zq -fo=$^@ $(CORELIB_CXXFLAGS) $<
!endif
+!ifeq USE_GUI 1
+$(OBJS)\corelib_stockitem.obj : .AUTODEPEND ..\..\src\common\stockitem.cpp
+ $(CXX) -zq -fo=$^@ $(CORELIB_CXXFLAGS) $<
+!endif
+
!ifeq USE_GUI 1
$(OBJS)\corelib_tbarbase.obj : .AUTODEPEND ..\..\src\common\tbarbase.cpp
$(CXX) -zq -fo=$^@ $(CORELIB_CXXFLAGS) $<
# End Source File
# Begin Source File
+SOURCE=..\..\src\common\buttoncmn.cpp
+# End Source File
+# Begin Source File
+
SOURCE=..\..\src\common\choiccmn.cpp
# End Source File
# Begin Source File
# End Source File
# Begin Source File
+SOURCE=..\..\src\common\stockitem.cpp
+# End Source File
+# Begin Source File
+
SOURCE=..\..\src\common\tbarbase.cpp
# End Source File
# Begin Source File
# End Source File
# Begin Source File
+SOURCE=..\..\include\wx\stockitem.h
+# End Source File
+# Begin Source File
+
SOURCE=..\..\include\wx\tab.h
# End Source File
# Begin Source File
- implemented wxListCtrl::FindItem() for non-MSW (Robin Stoll)
- added status bar fields styles support (Tim Kosse)
- added samples/splash
+- added support for stock buttons
Unix:
\twocolwidtha{5cm}%
\begin{twocollist}\itemsep=0pt
-\twocolitem{\windowstyle{wxBU\_LEFT}}{Left-justifies the label. Windows only.}
-\twocolitem{\windowstyle{wxBU\_TOP}}{Aligns the label to the top of the button. Windows only.}
-\twocolitem{\windowstyle{wxBU\_RIGHT}}{Right-justifies the bitmap label. Windows only.}
-\twocolitem{\windowstyle{wxBU\_BOTTOM}}{Aligns the label to the bottom of the button. Windows only.}
+\twocolitem{\windowstyle{wxBU\_LEFT}}{Left-justifies the label. Windows and GTK+ only.}
+\twocolitem{\windowstyle{wxBU\_TOP}}{Aligns the label to the top of the button. Windows and GTK+ only.}
+\twocolitem{\windowstyle{wxBU\_RIGHT}}{Right-justifies the bitmap label. Windows and GTK+ only.}
+\twocolitem{\windowstyle{wxBU\_BOTTOM}}{Aligns the label to the bottom of the button. Windows and GTK+ only.}
\twocolitem{\windowstyle{wxBU\_EXACTFIT}}{Creates the button as small as possible instead of making it of the standard size (which is the default behaviour ).}
\twocolitem{\windowstyle{wxNO\_BORDER}}{Creates a flat button. Windows and GTK+ only.}
\end{twocollist}
\param{const wxPoint\& }{pos}, \param{const wxSize\& }{size = wxDefaultSize},\rtfsp
\param{long}{ style = 0}, \param{const wxValidator\& }{validator}, \param{const wxString\& }{name = ``button"}}
+\func{}{wxButton}{\param{wxWindow* }{parent}, \param{wxWindowID}{ id},
+\param{wxStockItemID}{ stock},\rtfsp
+\param{const wxString\& }{descriptiveLabel = wxEmptyString},\rtfsp
+\param{const wxPoint\& }{pos},\rtfsp
+\param{long}{ style = 0}, \param{const wxValidator\& }{validator}, \param{const wxString\& }{name = ``button"}}
+
Constructor, creating and showing a button.
+The second form is used to create {\em stock} button. Stock buttons are
+commonly used buttons such as OK or Cancel. They have standard label and
+dimensions and may have different appearance on some platforms (e.g. GTK+ 2
+decorates them with icons). Using this from is preferred way of creating
+standard buttons.
+
\wxheading{Parameters}
\docparam{parent}{Parent window. Must not be NULL.}
\docparam{name}{Window name.}
+\docparam{stock}{Stock ID of the stock button to create. See the
+\helpref{list of possible values}{stockitems}.}
+
+\docparam{descriptiveLabel}{Optional label to be used on platforms where
+standard buttons have descriptive rather than generic labels. Mac is one such
+platforms, well-behaved Mac apps should use descriptive labels (e.g. "Save"
+and "Don't Save" instead of "OK" and "Cancel").}
+
\wxheading{See also}
\helpref{wxButton::Create}{wxbuttoncreate}, \helpref{wxValidator}{wxvalidator}
\param{const wxPoint\& }{pos}, \param{const wxSize\& }{size = wxDefaultSize},\rtfsp
\param{long}{ style = 0}, \param{const wxValidator\& }{validator}, \param{const wxString\& }{name = ``button"}}
-Button creation function for two-step creation. For more details, see \helpref{wxButton::wxButton}{wxbuttonconstr}.
+\func{bool}{Create}{\param{wxWindow* }{parent}, \param{wxWindowID}{ id},
+\param{wxStockItemID}{ stock},\rtfsp
+\param{const wxString\& }{descriptiveLabel = wxEmptyString},\rtfsp
+\param{const wxPoint\& }{pos},\rtfsp
+\param{long}{ style = 0}, \param{const wxValidator\& }{validator}, \param{const wxString\& }{name = ``button"}}
+
+Button creation function for two-step creation. For more details, see
+\helpref{wxButton::wxButton}{wxbuttonconstr}.
\membersection{wxButton::GetLabel}\label{wxbuttongetlabel}
\input stdevtid.tex
\input keycode.tex
\input langcodes.tex
+\input stockitems.tex
--- /dev/null
+\section{Stock items}\label{stockitems}
+
+Stock item IDs for use in \helpref{wxButton constructor}{wxbuttonconstr}:
+
+\begin{twocollist}\itemsep=0pt
+\twocolitem{wxSTOCK\_ADD}{"Add"}
+\twocolitem{wxSTOCK\_APPLY}{"\&Apply"}
+\twocolitem{wxSTOCK\_BOLD}{"\&Bold"}
+\twocolitem{wxSTOCK\_CANCEL}{"\&Cancel"}
+\twocolitem{wxSTOCK\_CLEAR}{"\&Clear"}
+\twocolitem{wxSTOCK\_CLOSE}{"\&Close"}
+\twocolitem{wxSTOCK\_COPY}{"\&Copy"}
+\twocolitem{wxSTOCK\_CUT}{"Cu\&t"}
+\twocolitem{wxSTOCK\_DELETE}{"\&Delete"}
+\twocolitem{wxSTOCK\_FIND}{"\&Find"}
+\twocolitem{wxSTOCK\_FIND\_AND\_REPLACE}{"Find and rep\&lace"}
+\twocolitem{wxSTOCK\_GO\_BACK}{"\&Back"}
+\twocolitem{wxSTOCK\_GO\_DOWN}{"\&Down"}
+\twocolitem{wxSTOCK\_GO\_FORWARD}{"\&Forward"}
+\twocolitem{wxSTOCK\_GO\_UP}{"\&Up"}
+\twocolitem{wxSTOCK\_HELP}{"\&Help"}
+\twocolitem{wxSTOCK\_HOME}{"\&Home"}
+\twocolitem{wxSTOCK\_INDENT}{"Indent"}
+\twocolitem{wxSTOCK\_INDEX}{"\&Index"}
+\twocolitem{wxSTOCK\_ITALIC}{"\&Italic"}
+\twocolitem{wxSTOCK\_JUSTIFY\_CENTER}{"Centered"}
+\twocolitem{wxSTOCK\_JUSTIFY\_FILL}{"Justified"}
+\twocolitem{wxSTOCK\_JUSTIFY\_LEFT}{"Align Left"}
+\twocolitem{wxSTOCK\_JUSTIFY\_RIGHT}{"Align Right"}
+\twocolitem{wxSTOCK\_NEW}{"\&New"}
+\twocolitem{wxSTOCK\_NO}{"\&No"}
+\twocolitem{wxSTOCK\_OK}{"\&OK"}
+\twocolitem{wxSTOCK\_OPEN}{"\&Open"}
+\twocolitem{wxSTOCK\_PASTE}{"\&Paste"}
+\twocolitem{wxSTOCK\_PREFERENCES}{"\&Preferences"}
+\twocolitem{wxSTOCK\_PRINT}{"\&Print"}
+\twocolitem{wxSTOCK\_PRINT\_PREVIEW}{"Print previe\&w"}
+\twocolitem{wxSTOCK\_PROPERTIES}{"\&Properties"}
+\twocolitem{wxSTOCK\_QUIT}{"\&Quit"}
+\twocolitem{wxSTOCK\_REDO}{"\&Redo"}
+\twocolitem{wxSTOCK\_REFRESH}{"Refresh"}
+\twocolitem{wxSTOCK\_REMOVE}{"Remove"}
+\twocolitem{wxSTOCK\_REVERT\_TO\_SAVED}{"Revert to Saved"}
+\twocolitem{wxSTOCK\_SAVE}{"\&Save"}
+\twocolitem{wxSTOCK\_SAVE\_AS}{"Save \&As..."}
+\twocolitem{wxSTOCK\_STOP}{"\&Stop"}
+\twocolitem{wxSTOCK\_UNDELETE}{"Undelete"}
+\twocolitem{wxSTOCK\_UNDERLINE}{"\&Underline"}
+\twocolitem{wxSTOCK\_UNDO}{"\&Undo"}
+\twocolitem{wxSTOCK\_UNINDENT}{"\&Unindent"}
+\twocolitem{wxSTOCK\_YES}{"\&Yes"}
+\twocolitem{wxSTOCK\_ZOOM\_100}{"\&Actual Size"}
+\twocolitem{wxSTOCK\_ZOOM\_FIT}{"Zoom to \&Fit"}
+\twocolitem{wxSTOCK\_ZOOM\_IN}{"Zoom \&In"}
+\twocolitem{wxSTOCK\_ZOOM\_OUT}{"Zoom \&Out"}
+\end{twocollist}\itemsep=0pt
#ifndef _WX_BUTTON_H_BASE_
#define _WX_BUTTON_H_BASE_
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
+ #pragma interface "buttonbase.h"
+#endif
+
#include "wx/defs.h"
// ----------------------------------------------------------------------------
#define wxBU_EXACTFIT 0x0001
#include "wx/control.h"
+#include "wx/stockitem.h"
class WXDLLEXPORT wxBitmap;
// returns the default button size for this platform
static wxSize GetDefaultSize();
+protected:
+#ifndef __WXGTK20__
+ // create stock button (generic implementation)
+ bool CreateStock(wxWindow *parent, wxWindowID id, wxStockItemID stock,
+ const wxString& descriptiveLabel = wxEmptyString,
+ const wxPoint& pos = wxDefaultPosition,
+ long style = 0,
+ const wxValidator& validator = wxDefaultValidator,
+ const wxString& name = wxButtonNameStr);
+#endif
+
DECLARE_NO_COPY_CLASS(wxButtonBase)
};
{
Create(parent, winid, label, pos, size, style, validator, name);
}
+
+ wxButton(wxWindow *parent, wxWindowID id, wxStockItemID stock,
+ const wxString& descriptiveLabel = wxEmptyString,
+ const wxPoint& pos = wxDefaultPosition,
+ long style = 0,
+ const wxValidator& validator = wxDefaultValidator,
+ const wxString& name = wxButtonNameStr)
+ {
+ Create(parent, id, stock, descriptiveLabel, pos, style, validator, name);
+ }
bool Create(wxWindow *parent, wxWindowID winid,
const wxString& label,
const wxSize& size = wxDefaultSize, long style = 0,
const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxButtonNameStr);
+
+ bool Create(wxWindow *parent, wxWindowID id, wxStockItemID stock,
+ const wxString& descriptiveLabel = wxEmptyString,
+ const wxPoint& pos = wxDefaultPosition,
+ long style = 0,
+ const wxValidator& validator = wxDefaultValidator,
+ const wxString& name = wxButtonNameStr)
+ {
+ return CreateStock(parent, id, stock, descriptiveLabel,
+ pos, style, validator, name);
+ }
+
virtual ~wxButton();
// ------------------------------------------------------------------------
// wxButton
//-----------------------------------------------------------------------------
-class wxButton: public wxControl
+class wxButton: public wxButtonBase
{
public:
wxButton();
const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxButtonNameStr)
{
- Create(parent, id, label, pos, size, style, validator, name);
+ Create(parent, id, label, pos, size, style, validator, name);
}
+
+ wxButton(wxWindow *parent, wxWindowID id, wxStockItemID stock,
+ const wxString& descriptiveLabel = wxEmptyString,
+ const wxPoint& pos = wxDefaultPosition,
+ long style = 0,
+ const wxValidator& validator = wxDefaultValidator,
+ const wxString& name = wxButtonNameStr)
+ {
+ Create(parent, id, stock, descriptiveLabel, pos, style, validator, name);
+ }
+
virtual ~wxButton();
bool Create(wxWindow *parent, wxWindowID id, const wxString& label,
const wxSize& size = wxDefaultSize, long style = 0,
const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxButtonNameStr);
+
+ bool Create(wxWindow *parent, wxWindowID id, wxStockItemID stock,
+ const wxString& descriptiveLabel = wxEmptyString,
+ const wxPoint& pos = wxDefaultPosition,
+ long style = 0,
+ const wxValidator& validator = wxDefaultValidator,
+ const wxString& name = wxButtonNameStr);
virtual void SetDefault();
virtual void SetLabel( const wxString &label );
virtual bool Enable( bool enable = TRUE );
- static wxSize GetDefaultSize();
-
// implementation
// --------------
// wxButton
//-----------------------------------------------------------------------------
-class wxButton: public wxControl
+class wxButton: public wxButtonBase
{
public:
wxButton();
const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxButtonNameStr)
{
- Create(parent, id, label, pos, size, style, validator, name);
+ Create(parent, id, label, pos, size, style, validator, name);
}
+
+ wxButton(wxWindow *parent, wxWindowID id, wxStockItemID stock,
+ const wxString& descriptiveLabel = wxEmptyString,
+ const wxPoint& pos = wxDefaultPosition,
+ long style = 0,
+ const wxValidator& validator = wxDefaultValidator,
+ const wxString& name = wxButtonNameStr)
+ {
+ Create(parent, id, stock, descriptiveLabel, pos, style, validator, name);
+ }
+
virtual ~wxButton();
bool Create(wxWindow *parent, wxWindowID id, const wxString& label,
const wxSize& size = wxDefaultSize, long style = 0,
const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxButtonNameStr);
+
+ bool Create(wxWindow *parent, wxWindowID id, wxStockItemID stock,
+ const wxString& descriptiveLabel = wxEmptyString,
+ const wxPoint& pos = wxDefaultPosition,
+ long style = 0,
+ const wxValidator& validator = wxDefaultValidator,
+ const wxString& name = wxButtonNameStr);
virtual void SetDefault();
virtual void SetLabel( const wxString &label );
virtual bool Enable( bool enable = TRUE );
- static wxSize GetDefaultSize();
-
// implementation
// --------------
{
Create(parent, id, label, pos, size, style, validator, name);
}
+
+ inline wxButton(wxWindow *parent, wxWindowID id, wxStockItemID stock,
+ const wxString& descriptiveLabel = wxEmptyString,
+ const wxPoint& pos = wxDefaultPosition,
+ long style = 0,
+ const wxValidator& validator = wxDefaultValidator,
+ const wxString& name = wxButtonNameStr)
+ {
+ Create(parent, id, stock, descriptiveLabel, pos, style, validator, name);
+ }
bool Create(wxWindow *parent, wxWindowID id, const wxString& label,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, long style = 0,
const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxButtonNameStr);
+
+ bool Create(wxWindow *parent, wxWindowID id, wxStockItemID stock,
+ const wxString& descriptiveLabel = wxEmptyString,
+ const wxPoint& pos = wxDefaultPosition,
+ long style = 0,
+ const wxValidator& validator = wxDefaultValidator,
+ const wxString& name = wxButtonNameStr)
+ {
+ return CreateStock(parent, id, stock, descriptiveLabel,
+ pos, style, validator, name);
+ }
virtual wxInt32 MacControlHit( WXEVENTHANDLERREF handler , WXEVENTREF event ) ;
static wxSize GetDefaultSize();
{
Create(parent, id, label, pos, size, style, validator, name);
}
+
+ inline wxButton(wxWindow *parent, wxWindowID id, wxStockItemID stock,
+ const wxString& descriptiveLabel = wxEmptyString,
+ const wxPoint& pos = wxDefaultPosition,
+ long style = 0,
+ const wxValidator& validator = wxDefaultValidator,
+ const wxString& name = wxButtonNameStr)
+ {
+ Create(parent, id, stock, descriptiveLabel, pos, style, validator, name);
+ }
bool Create(wxWindow *parent, wxWindowID id, const wxString& label,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, long style = 0,
const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxButtonNameStr);
+
+ bool Create(wxWindow *parent, wxWindowID id, wxStockItemID stock,
+ const wxString& descriptiveLabel = wxEmptyString,
+ const wxPoint& pos = wxDefaultPosition,
+ long style = 0,
+ const wxValidator& validator = wxDefaultValidator,
+ const wxString& name = wxButtonNameStr)
+ {
+ return CreateStock(parent, id, stock, descriptiveLabel,
+ pos, style, validator, name);
+ }
virtual void MacHandleControlClick( WXWidget control , wxInt16 controlpart , bool mouseStillDown ) ;
static wxSize GetDefaultSize();
Create(parent, id, label, pos, size, style, validator, name);
}
+ wxButton(wxWindow *parent, wxWindowID id, wxStockItemID stock,
+ const wxString& descriptiveLabel = wxEmptyString,
+ const wxPoint& pos = wxDefaultPosition,
+ long style = 0,
+ const wxValidator& validator = wxDefaultValidator,
+ const wxString& name = wxButtonNameStr)
+ {
+ Create(parent, id, stock, descriptiveLabel, pos, style, validator, name);
+ }
+
bool Create(wxWindow *parent, wxWindowID id, const wxString& label,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, long style = 0,
const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxButtonNameStr);
+ bool Create(wxWindow *parent, wxWindowID id, wxStockItemID stock,
+ const wxString& descriptiveLabel = wxEmptyString,
+ const wxPoint& pos = wxDefaultPosition,
+ long style = 0,
+ const wxValidator& validator = wxDefaultValidator,
+ const wxString& name = wxButtonNameStr)
+ {
+ return CreateStock(parent, id, stock, descriptiveLabel,
+ pos, style, validator, name);
+ }
+
virtual void SetDefault();
virtual void Command(wxCommandEvent& event);
{
Create(parent, id, label, pos, size, style, validator, name);
}
+
+ wxButton(wxWindow *parent, wxWindowID id, wxStockItemID stock,
+ const wxString& descriptiveLabel = wxEmptyString,
+ const wxPoint& pos = wxDefaultPosition,
+ long style = 0,
+ const wxValidator& validator = wxDefaultValidator,
+ const wxString& name = wxButtonNameStr)
+ {
+ Create(parent, id, stock, descriptiveLabel, pos, style, validator, name);
+ }
+
+ bool Create(wxWindow *parent, wxWindowID id, wxStockItemID stock,
+ const wxString& descriptiveLabel = wxEmptyString,
+ const wxPoint& pos = wxDefaultPosition,
+ long style = 0,
+ const wxValidator& validator = wxDefaultValidator,
+ const wxString& name = wxButtonNameStr)
+ {
+ return CreateStock(parent, id, stock, descriptiveLabel,
+ pos, style, validator, name);
+ }
bool Create(wxWindow *parent,
wxWindowID id,
,rsName
);
}
+
+ wxButton(wxWindow *parent, wxWindowID id, wxStockItemID stock,
+ const wxString& descriptiveLabel = wxEmptyString,
+ const wxPoint& pos = wxDefaultPosition,
+ long style = 0,
+ const wxValidator& validator = wxDefaultValidator,
+ const wxString& name = wxButtonNameStr)
+ {
+ Create(parent, id, stock, descriptiveLabel, pos, style, validator, name);
+ }
bool Create( wxWindow* pParent
,wxWindowID vId
,const wxValidator& rValidator = wxDefaultValidator
,const wxString& rsName = wxButtonNameStr
);
+
+ bool Create(wxWindow *parent, wxWindowID id, wxStockItemID stock,
+ const wxString& descriptiveLabel = wxEmptyString,
+ const wxPoint& pos = wxDefaultPosition,
+ long style = 0,
+ const wxValidator& validator = wxDefaultValidator,
+ const wxString& name = wxButtonNameStr)
+ {
+ return CreateStock(parent, id, stock, descriptiveLabel,
+ pos, style, validator, name);
+ }
virtual ~wxButton();
--- /dev/null
+/////////////////////////////////////////////////////////////////////////////
+// Name: wx/stockitem.h
+// Purpose: wxStockItemID enum
+// Author: Vaclav Slavik
+// Modified by:
+// Created: 2004-08-15
+// RCS-ID: $Id$
+// Copyright: (c) Vaclav Slavik, 2004
+// Licence: wxWindows licence
+/////////////////////////////////////////////////////////////////////////////
+
+#ifndef _WX_STOCKITEM_H_
+#define _WX_STOCKITEM_H_
+
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
+ #pragma interface "stockitem.h"
+#endif
+
+#include "wx/defs.h"
+#include "wx/string.h"
+
+// ----------------------------------------------------------------------------
+// Stock item IDs for use with wxButton, wxMenu and wxToolBar:
+// ----------------------------------------------------------------------------
+
+enum wxStockItemID
+{
+ wxSTOCK_NONE = 0,
+ wxSTOCK_ADD,
+ wxSTOCK_APPLY,
+ wxSTOCK_BOLD,
+ wxSTOCK_CANCEL,
+ wxSTOCK_CLEAR,
+ wxSTOCK_CLOSE,
+ wxSTOCK_COPY,
+ wxSTOCK_CUT,
+ wxSTOCK_DELETE,
+ wxSTOCK_FIND,
+ wxSTOCK_FIND_AND_REPLACE,
+ wxSTOCK_GO_BACK,
+ wxSTOCK_GO_DOWN,
+ wxSTOCK_GO_FORWARD,
+ wxSTOCK_GO_UP,
+ wxSTOCK_HELP,
+ wxSTOCK_HOME,
+ wxSTOCK_INDENT,
+ wxSTOCK_INDEX,
+ wxSTOCK_ITALIC,
+ wxSTOCK_JUSTIFY_CENTER,
+ wxSTOCK_JUSTIFY_FILL,
+ wxSTOCK_JUSTIFY_LEFT,
+ wxSTOCK_JUSTIFY_RIGHT,
+ wxSTOCK_NEW,
+ wxSTOCK_NO,
+ wxSTOCK_OK,
+ wxSTOCK_OPEN,
+ wxSTOCK_PASTE,
+ wxSTOCK_PREFERENCES,
+ wxSTOCK_PRINT,
+ wxSTOCK_PRINT_PREVIEW,
+ wxSTOCK_PROPERTIES,
+ wxSTOCK_QUIT,
+ wxSTOCK_REDO,
+ wxSTOCK_REFRESH,
+ wxSTOCK_REMOVE,
+ wxSTOCK_REVERT_TO_SAVED,
+ wxSTOCK_SAVE,
+ wxSTOCK_SAVE_AS,
+ wxSTOCK_STOP,
+ wxSTOCK_UNDELETE,
+ wxSTOCK_UNDERLINE,
+ wxSTOCK_UNDO,
+ wxSTOCK_UNINDENT,
+ wxSTOCK_YES,
+ wxSTOCK_ZOOM_100,
+ wxSTOCK_ZOOM_FIT,
+ wxSTOCK_ZOOM_IN,
+ wxSTOCK_ZOOM_OUT
+ // NB: when you add new item here, add it to stockitem.cpp and
+ // documentation as well
+};
+
+// ----------------------------------------------------------------------------
+// Helper functions:
+// ----------------------------------------------------------------------------
+
+// Returns label that should be used for given stock UI element (e.g. "&OK"
+// for wxSTOCK_OK):
+wxString wxGetStockItemLabel(wxStockItemID item);
+
+#ifdef __WXGTK20__
+// Translates stock ID to GTK+'s stock item string indentifier:
+const char *wxStockItemToGTK(wxStockItemID item);
+#endif
+
+#endif // _WX_STOCKITEM_H_
Create(parent, id, bitmap, label, pos, size, style, validator, name);
}
+
+ wxButton(wxWindow *parent, wxWindowID id, wxStockItemID stock,
+ const wxString& descriptiveLabel = wxEmptyString,
+ const wxPoint& pos = wxDefaultPosition,
+ long style = 0,
+ const wxValidator& validator = wxDefaultValidator,
+ const wxString& name = wxButtonNameStr)
+ {
+ Init();
+
+ Create(parent, id, stock, descriptiveLabel, pos, style, validator, name);
+ }
wxButton(wxWindow *parent,
wxWindowID id,
return Create(parent, id, wxNullBitmap, label,
pos, size, style, validator, name);
}
+
+ bool Create(wxWindow *parent, wxWindowID id, wxStockItemID stock,
+ const wxString& descriptiveLabel = wxEmptyString,
+ const wxPoint& pos = wxDefaultPosition,
+ long style = 0,
+ const wxValidator& validator = wxDefaultValidator,
+ const wxString& name = wxButtonNameStr)
+ {
+ return CreateStock(parent, id, stock, descriptiveLabel,
+ pos, style, validator, name);
+ }
bool Create(wxWindow *parent,
wxWindowID id,
--- /dev/null
+///////////////////////////////////////////////////////////////////////////////
+// Name: common/buttoncmn.cpp
+// Purpose: wxMenu and wxMenuBar methods common to all ports
+// Author: Vaclav Slavik
+// Modified by:
+// Created: 2004-08-15
+// RCS-ID: $Id$
+// Copyright: (c) Vaclav Slavik, 2004
+// Licence: wxWindows licence
+///////////////////////////////////////////////////////////////////////////////
+
+// ============================================================================
+// declarations
+// ============================================================================
+
+// ----------------------------------------------------------------------------
+// headers
+// ----------------------------------------------------------------------------
+
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
+ #pragma implementation "buttonbase.h"
+#endif
+
+// For compilers that support precompilation, includes "wx.h".
+#include "wx/wxprec.h"
+
+#ifdef __BORLANDC__
+ #pragma hdrstop
+#endif
+
+#if wxUSE_BUTTON
+
+#include "wx/button.h"
+
+#ifndef __WXGTK20__
+bool wxButtonBase::CreateStock(wxWindow *parent,
+ wxWindowID id,
+ wxStockItemID stock,
+ const wxString& descriptiveLabel,
+ const wxPoint& pos,
+ long style,
+ const wxValidator& validator,
+ const wxString& name)
+{
+ wxString label;
+#if defined(__WXMAC__) || defined(__WXCOCOA__)
+ if (!descriptiveLabel.empty())
+ {
+ label = descriptiveLabel;
+ }
+ else
+#endif
+ {
+ label = wxGetStockItemLabel(stock);
+ }
+
+ return wxStaticCast(this, wxButton)->Create(parent, id, label,
+ pos, wxDefaultSize,
+ style, validator, name);
+}
+#endif
+
+#endif // wxUSE_BUTTON
--- /dev/null
+///////////////////////////////////////////////////////////////////////////////
+// Name: common/stockitem.cpp
+// Purpose: Stock buttons, menu and toolbar items labels
+// Author: Vaclav Slavik
+// Modified by:
+// Created: 2004-08-15
+// RCS-ID: $Id$
+// Copyright: (c) Vaclav Slavik, 2004
+// Licence: wxWindows licence
+///////////////////////////////////////////////////////////////////////////////
+
+// ============================================================================
+// declarations
+// ============================================================================
+
+// ----------------------------------------------------------------------------
+// headers
+// ----------------------------------------------------------------------------
+
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
+ #pragma implementation "stockitem.h"
+#endif
+
+// For compilers that support precompilation, includes "wx.h".
+#include "wx/wxprec.h"
+
+#ifdef __BORLANDC__
+ #pragma hdrstop
+#endif
+
+#include "wx/stockitem.h"
+#include "wx/intl.h"
+
+wxString wxGetStockItemLabel(wxStockItemID item)
+{
+ #define STOCKITEM(stockid, label) \
+ case stockid: \
+ return label; \
+ break;
+
+ switch (item)
+ {
+ STOCKITEM(wxSTOCK_ADD, _("Add"))
+ STOCKITEM(wxSTOCK_APPLY, _("&Apply"))
+ STOCKITEM(wxSTOCK_BOLD, _("&Bold"))
+ STOCKITEM(wxSTOCK_CANCEL, _("&Cancel"))
+ STOCKITEM(wxSTOCK_CLEAR, _("&Clear"))
+ STOCKITEM(wxSTOCK_CLOSE, _("&Close"))
+ STOCKITEM(wxSTOCK_COPY, _("&Copy"))
+ STOCKITEM(wxSTOCK_CUT, _("Cu&t"))
+ STOCKITEM(wxSTOCK_DELETE, _("&Delete"))
+ STOCKITEM(wxSTOCK_FIND, _("&Find"))
+ STOCKITEM(wxSTOCK_FIND_AND_REPLACE, _("Find and rep&lace"))
+ STOCKITEM(wxSTOCK_GO_BACK, _("&Back"))
+ STOCKITEM(wxSTOCK_GO_DOWN, _("&Down"))
+ STOCKITEM(wxSTOCK_GO_FORWARD, _("&Forward"))
+ STOCKITEM(wxSTOCK_GO_UP, _("&Up"))
+ STOCKITEM(wxSTOCK_HELP, _("&Help"))
+ STOCKITEM(wxSTOCK_HOME, _("&Home"))
+ STOCKITEM(wxSTOCK_INDENT, _("Indent"))
+ STOCKITEM(wxSTOCK_INDEX, _("&Index"))
+ STOCKITEM(wxSTOCK_ITALIC, _("&Italic"))
+ STOCKITEM(wxSTOCK_JUSTIFY_CENTER, _("Centered"))
+ STOCKITEM(wxSTOCK_JUSTIFY_FILL, _("Justified"))
+ STOCKITEM(wxSTOCK_JUSTIFY_LEFT, _("Align Left"))
+ STOCKITEM(wxSTOCK_JUSTIFY_RIGHT, _("Align Right"))
+ STOCKITEM(wxSTOCK_NEW, _("&New"))
+ STOCKITEM(wxSTOCK_NO, _("&No"))
+ STOCKITEM(wxSTOCK_OK, _("&OK"))
+ STOCKITEM(wxSTOCK_OPEN, _("&Open"))
+ STOCKITEM(wxSTOCK_PASTE, _("&Paste"))
+ STOCKITEM(wxSTOCK_PREFERENCES, _("&Preferences"))
+ STOCKITEM(wxSTOCK_PRINT, _("&Print"))
+ STOCKITEM(wxSTOCK_PRINT_PREVIEW, _("Print previe&w"))
+ STOCKITEM(wxSTOCK_PROPERTIES, _("&Properties"))
+ STOCKITEM(wxSTOCK_QUIT, _("&Quit"))
+ STOCKITEM(wxSTOCK_REDO, _("&Redo"))
+ STOCKITEM(wxSTOCK_REFRESH, _("Refresh"))
+ STOCKITEM(wxSTOCK_REMOVE, _("Remove"))
+ STOCKITEM(wxSTOCK_REVERT_TO_SAVED, _("Revert to Saved"))
+ STOCKITEM(wxSTOCK_SAVE, _("&Save"))
+ STOCKITEM(wxSTOCK_SAVE_AS, _("Save &As..."))
+ STOCKITEM(wxSTOCK_STOP, _("&Stop"))
+ STOCKITEM(wxSTOCK_UNDELETE, _("Undelete"))
+ STOCKITEM(wxSTOCK_UNDERLINE, _("&Underline"))
+ STOCKITEM(wxSTOCK_UNDO, _("&Undo"))
+ STOCKITEM(wxSTOCK_UNINDENT, _("&Unindent"))
+ STOCKITEM(wxSTOCK_YES, _("&Yes"))
+ STOCKITEM(wxSTOCK_ZOOM_100, _("&Actual Size"))
+ STOCKITEM(wxSTOCK_ZOOM_FIT, _("Zoom to &Fit"))
+ STOCKITEM(wxSTOCK_ZOOM_IN, _("Zoom &In"))
+ STOCKITEM(wxSTOCK_ZOOM_OUT, _("Zoom &Out"))
+
+ case wxSTOCK_NONE:
+ default:
+ wxFAIL_MSG( _T("invalid stock item ID") );
+ break;
+ };
+
+ #undef STOCKITEM
+
+ return wxEmptyString;
+}
+
+
+#ifdef __WXGTK20__
+
+#include <gtk/gtk.h>
+
+const char *wxStockItemToGTK(wxStockItemID item)
+{
+ #define STOCKITEM(stockid) \
+ case wx##stockid: \
+ return GTK_##stockid; \
+ break;
+
+ switch (item)
+ {
+ STOCKITEM(STOCK_ADD)
+ STOCKITEM(STOCK_APPLY)
+ STOCKITEM(STOCK_BOLD)
+ STOCKITEM(STOCK_CANCEL)
+ STOCKITEM(STOCK_CLEAR)
+ STOCKITEM(STOCK_CLOSE)
+ STOCKITEM(STOCK_COPY)
+ STOCKITEM(STOCK_CUT)
+ STOCKITEM(STOCK_DELETE)
+ STOCKITEM(STOCK_FIND)
+ STOCKITEM(STOCK_FIND_AND_REPLACE)
+ STOCKITEM(STOCK_GO_BACK)
+ STOCKITEM(STOCK_GO_DOWN)
+ STOCKITEM(STOCK_GO_FORWARD)
+ STOCKITEM(STOCK_GO_UP)
+ STOCKITEM(STOCK_HELP)
+ STOCKITEM(STOCK_HOME)
+ STOCKITEM(STOCK_INDENT)
+ STOCKITEM(STOCK_INDEX)
+ STOCKITEM(STOCK_ITALIC)
+ STOCKITEM(STOCK_JUSTIFY_CENTER)
+ STOCKITEM(STOCK_JUSTIFY_FILL)
+ STOCKITEM(STOCK_JUSTIFY_LEFT)
+ STOCKITEM(STOCK_JUSTIFY_RIGHT)
+ STOCKITEM(STOCK_NEW)
+ STOCKITEM(STOCK_NO)
+ STOCKITEM(STOCK_OK)
+ STOCKITEM(STOCK_OPEN)
+ STOCKITEM(STOCK_PASTE)
+ STOCKITEM(STOCK_PREFERENCES)
+ STOCKITEM(STOCK_PRINT)
+ STOCKITEM(STOCK_PRINT_PREVIEW)
+ STOCKITEM(STOCK_PROPERTIES)
+ STOCKITEM(STOCK_QUIT)
+ STOCKITEM(STOCK_REDO)
+ STOCKITEM(STOCK_REFRESH)
+ STOCKITEM(STOCK_REMOVE)
+ STOCKITEM(STOCK_REVERT_TO_SAVED)
+ STOCKITEM(STOCK_SAVE)
+ STOCKITEM(STOCK_SAVE_AS)
+ STOCKITEM(STOCK_STOP)
+ STOCKITEM(STOCK_UNDELETE)
+ STOCKITEM(STOCK_UNDERLINE)
+ STOCKITEM(STOCK_UNDO)
+ STOCKITEM(STOCK_UNINDENT)
+ STOCKITEM(STOCK_YES)
+ STOCKITEM(STOCK_ZOOM_100)
+ STOCKITEM(STOCK_ZOOM_FIT)
+ STOCKITEM(STOCK_ZOOM_IN)
+ STOCKITEM(STOCK_ZOOM_OUT)
+
+ case wxSTOCK_NONE:
+ default:
+ wxFAIL_MSG( _T("invalid stock item ID") );
+ break;
+ };
+
+ #undef STOCKITEM
+
+ return NULL;
+}
+
+#endif // __WXGTK20__
# End Source File
# Begin Source File
+SOURCE=.\common\buttoncmn.cpp
+# End Source File
+# Begin Source File
+
SOURCE=.\common\choiccmn.cpp
# End Source File
# Begin Source File
# End Source File
# Begin Source File
+SOURCE=.\common\stockitem.cpp
+# End Source File
+# Begin Source File
+
SOURCE=.\common\stopwatch.cpp
# End Source File
# Begin Source File
# End Source File
# Begin Source File
+SOURCE=..\include\wx\stockitem.h
+# End Source File
+# Begin Source File
+
SOURCE=..\include\wx\stopwatch.h
# End Source File
# Begin Source File