../../utils/*.bkl
../../utils/*/*.bkl
../../utils/*/*/*.bkl
+ ../../contrib/utils/*/*.bkl
../../contrib/samples/*.bkl
../../contrib/samples/*/*.bkl
../../contrib/samples/*/*/*.bkl
<template id="wx_contrib_headers">
<srcdir>$(CONTRIB_HDR_DIR)</srcdir>
</template>
-
+
+ <template id="wx_contrib_util" template="wx_util">
+ <include>$(CONTRIB_HDR_DIR)</include>
+ </template>
</makefile>
#include <math.h>
#include <string.h>
+static inline wxChar* copystring(const wxChar* s)
+ { return wxStrcpy(new wxChar[wxStrlen(s) + 1], s); }
IMPLEMENT_DYNAMIC_CLASS(wxPropertyValue, wxObject)
}
wxChar *wxPropertyValidator::IntToString (int number) {
- return ::IntToString (number);
+ static wxChar buf[20];
+
+ wxSprintf (buf, wxT("%d"), number);
+ return buf;
}
wxChar *wxPropertyValidator::LongToString (long number) {
- return ::LongToString (number);
- }
+ static wxChar buf[20];
+
+ wxSprintf (buf, wxT("%ld"), number);
+ return buf;
+}
#endif // wxUSE_PROPSHEET
#include <math.h>
#include <string.h>
+static inline wxChar* copystring(const wxChar* s)
+ { return wxStrcpy(new wxChar[wxStrlen(s) + 1], s); }
+
// ----------------------------------------------------------------------------
// Property text edit control
// ----------------------------------------------------------------------------
#include "wx/deprecated/resource.h"
#include "wx/deprecated/wxexpr.h"
+static inline wxChar* copystring(const wxChar* s)
+ { return wxStrcpy(new wxChar[wxStrlen(s) + 1], s); }
+
// Forward (private) declarations
bool wxResourceInterpretResources(wxResourceTable& table, wxExprDatabase& db);
wxItemResource *wxResourceInterpretDialog(wxResourceTable& table, wxExpr *expr, bool isPanel = FALSE);
#include "wx/deprecated/expr.h"
#include "wx/deprecated/wxexpr.h"
+static inline wxChar* copystring(const wxChar* s)
+ { return wxStrcpy(new wxChar[wxStrlen(s) + 1], s); }
+
extern "C" void add_expr(char *);
extern "C" void LexFromFile(FILE *fd);
extern "C" void LexFromString(char *buf);
-# $Id$
+# =========================================================================
+# This makefile was generated by
+# Bakefile 0.1.1 (http://bakefile.sourceforge.net)
+# Do not modify, all changes will be overwritten!
+# =========================================================================
-top_srcdir = @top_srcdir@/..
-top_builddir = ../../..
-program_dir = contrib/utils/convertrc
-PROGRAM=convert
+@MAKE_SET@
-APPEXTRALIBS=$(top_builddir)/lib/lib@WX_LIBRARY_BASENAME@_wxdeprecated-@WX_RELEASE@.@WX_TARGET_LIBRARY_TYPE@
-APPEXTRADEFS=-I$(top_srcdir)/contrib/include
+prefix = @prefix@
+exec_prefix = @exec_prefix@
+INSTALL = @INSTALL@
+CPPFLAGS = @CPPFLAGS@
+CXX = @CXX@
+CXXFLAGS = @CXXFLAGS@
+EXEEXT = @EXEEXT@
+EXTRALIBS = @EXTRALIBS@
+EXTRALIBS_GUI = @EXTRALIBS_GUI@
+EXTRALIBS_XML = @EXTRALIBS_XML@
+HOST_SUFFIX = @HOST_SUFFIX@
+INSTALL_DIR = @INSTALL_DIR@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+LDFLAGS = @LDFLAGS@
+LDFLAGS_GUI = @LDFLAGS_GUI@
+RESCOMP = @RESCOMP@
+SETFILE = @SETFILE@
+STRIP = @STRIP@
+TOOLCHAIN_NAME = @TOOLCHAIN_NAME@
+TOOLKIT = @TOOLKIT@
+TOOLKIT_LOWERCASE = @TOOLKIT_LOWERCASE@
+TOOLKIT_VERSION = @TOOLKIT_VERSION@
+bindir = @bindir@
+srcdir = @srcdir@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
-OBJECTS=convert.o rc2xml.o rc2wxr.o wxr2xml.o
+### Variables: ###
-include $(top_builddir)/src/makeprog.env
+CONVERTRC_CXXFLAGS = $(CPPFLAGS) -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \
+ -I$(top_srcdir)/include -I$(srcdir) $(__DLLFLAG_p) \
+ -I$(srcdir)/../../../samples -I$(srcdir)/../../include $(CXXFLAGS)
+CONVERTRC_OBJECTS = \
+ convertrc_convert.o \
+ convertrc_rc2wxr.o \
+ convertrc_rc2xml.o \
+ convertrc_wxr2xml.o \
+ $(__convertrc___win32rc)
+LIBDIRNAME = $(top_builddir)lib
+
+### Conditionally set variables: ###
+
+@COND_DEPS_TRACKING_0@CXXC = $(CXX)
+@COND_DEPS_TRACKING_1@CXXC = $(top_builddir)./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_SHARED_1@__DLLFLAG_p = -DWXUSINGDLL
+@COND_SHARED_1@__DLLFLAG_p_1 = -d WXUSINGDLL
+@COND_SHARED_1@__DLLFLAG_p_2 = --define WXUSINGDLL
+@COND_WXUSE_EXPAT_BUILTIN@__LIB_EXPAT_p = \
+@COND_WXUSE_EXPAT_BUILTIN@ -lwxexpat$(WXDEBUGFLAG)$(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)$(HOST_SUFFIX)
+@COND_WXUSE_ODBC_BUILTIN@__LIB_ODBC_p = \
+@COND_WXUSE_ODBC_BUILTIN@ -lwxodbc$(WXDEBUGFLAG)$(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)$(HOST_SUFFIX)
+@COND_WXUSE_REGEX_BUILTIN@__LIB_REGEX_p = \
+@COND_WXUSE_REGEX_BUILTIN@ -lwxregex$(WXDEBUGFLAG)$(HOST_SUFFIX)
+@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)$(HOST_SUFFIX)
+@COND_WXUSE_ZLIB_BUILTIN@__LIB_ZLIB_p = \
+@COND_WXUSE_ZLIB_BUILTIN@ -lwxzlib$(WXDEBUGFLAG)$(HOST_SUFFIX)
+COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_1 = $(RESCOMP) -d __DARWIN__ -t APPL -d \
+ __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_1) -i $(top_srcdir)/include -i $(srcdir) \
+ $(__DLLFLAG_p_1) -i $(srcdir)/../../../samples -i $(srcdir)/../../include -o \
+ convertrc$(EXEEXT) Carbon.r $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).0.r \
+ sample.r
+@COND_TOOLKIT_MAC@__MACOSX_RESOURCES_p_1 = $(COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_1)
+@COND_MONOLITHIC_0@__WXLIB_BASE_p = \
+@COND_MONOLITHIC_0@ -lwx_base$(WXBASEPORT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)-2.5$(HOST_SUFFIX)
+COND_MONOLITHIC_0___WXLIB_CORE_p = \
+ -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core-2.5$(HOST_SUFFIX)
+@COND_MONOLITHIC_0@__WXLIB_CORE_p = $(COND_MONOLITHIC_0___WXLIB_CORE_p)
+COND_MONOLITHIC_1___WXLIB_MONO_p = \
+ -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)-2.5$(HOST_SUFFIX)
+@COND_MONOLITHIC_1@__WXLIB_MONO_p = $(COND_MONOLITHIC_1___WXLIB_MONO_p)
+@COND_MONOLITHIC_0@__WXLIB_XML_p = \
+@COND_MONOLITHIC_0@ -lwx_base$(WXBASEPORT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)_xml-2.5$(HOST_SUFFIX)
+@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_PLATFORM_MAC_1@__convertrc___mac_rezcmd = $(__MACOSX_RESOURCES_p_1)
+@COND_PLATFORM_MAC_1@__convertrc___mac_setfilecmd = \
+@COND_PLATFORM_MAC_1@ $(SETFILE) -a C convertrc$(EXEEXT)
+@COND_PLATFORM_WIN32_1@__convertrc___win32rc = convertrc_wxconvert_rc.o
+
+### Targets: ###
+
+all: convertrc$(EXEEXT)
+
+clean:
+ rm -rf ./.deps ./.pch
+ rm -f ./*.o
+ rm -f convertrc$(EXEEXT)
+
+convertrc$(EXEEXT): $(CONVERTRC_OBJECTS) $(__convertrc___win32rc)
+ $(CXX) -o $@ $(CONVERTRC_OBJECTS) $(LDFLAGS) -L$(LIBDIRNAME) $(LDFLAGS_GUI) $(__WXLIB_CORE_p) -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)_deprecated-2.5$(HOST_SUFFIX) $(__WXLIB_XML_p) $(EXTRALIBS_XML) $(__WXLIB_BASE_p) $(EXTRALIBS_XML) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) $(__LIB_ZLIB_p) $(__LIB_ODBC_p) $(__LIB_REGEX_p) $(__LIB_EXPAT_p) $(EXTRALIBS) $(EXTRALIBS_GUI)
+ $(__convertrc___mac_rezcmd)
+ $(__convertrc___mac_setfilecmd)
+
+convertrc_convert.o: $(srcdir)/convert.cpp
+ $(CXXC) -c -o $@ $(CONVERTRC_CXXFLAGS) $<
+
+convertrc_rc2wxr.o: $(srcdir)/rc2wxr.cpp
+ $(CXXC) -c -o $@ $(CONVERTRC_CXXFLAGS) $<
+
+convertrc_rc2xml.o: $(srcdir)/rc2xml.cpp
+ $(CXXC) -c -o $@ $(CONVERTRC_CXXFLAGS) $<
+
+convertrc_wxconvert_rc.o: $(srcdir)/wxconvert.rc
+ $(RESCOMP) -i$< -o$@ --define __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_2) --include-dir $(top_srcdir)/include --include-dir $(srcdir) $(__DLLFLAG_p_2) --include-dir $(srcdir)/../../../samples --include-dir $(srcdir)/../../include
+
+convertrc_wxr2xml.o: $(srcdir)/wxr2xml.cpp
+ $(CXXC) -c -o $@ $(CONVERTRC_CXXFLAGS) $<
+
+distclean: clean
+ rm -f configure config.cache config.log config.status bk-deps bk-make-pch shared-ld-sh Makefile
+
+install: all install_convertrc
+
+install-strip: install
+ $(STRIP) $(bindir)/convertrc$(EXEEXT)
+
+install_convertrc:
+ $(INSTALL_DIR) $(bindir)
+ $(INSTALL_PROGRAM) convertrc$(EXEEXT) $(bindir)
+
+uninstall:
+
+
+# Include dependency info, if present:
+@IF_GNU_MAKE@-include .deps/*.d
+
+.PHONY: all clean distclean install install_convertrc uninstall
--- /dev/null
+<?xml version="1.0" ?>
+<makefile>
+
+ <include file="../../../build/bakefiles/common_samples.bkl"/>
+ <include file="../../../build/bakefiles/common_contrib.bkl"/>
+
+ <exe id="convertrc" template="wx_contrib_util" template_append="wx_append">
+ <sources>
+ convert.cpp
+ rc2wxr.cpp
+ rc2xml.cpp
+ wxr2xml.cpp
+ </sources>
+ <wx-lib>core</wx-lib>
+ <wx-lib>deprecated</wx-lib>
+ <wx-lib>xml</wx-lib>
+ <wx-lib>base</wx-lib>
+ <win32-res>wxconvert.rc</win32-res>
+ <ldlibs>$(EXTRALIBS_XML)</ldlibs>
+ <install-to>$(BINDIR)</install-to>
+ </exe>
+
+</makefile>
//Generate Dialog text
-fprintf(m_wxr,"static char *dialog%i = \"dialog(name = '%s',\\\n",dlgid,dlgname);
+fprintf(m_wxr,"static char *dialog%i = \"dialog(name = '%s',\\\n",dlgid,dlgname.c_str());
//be lazy about style for now. add it later
title=GetQuoteField();
-fprintf(m_wxr,"title = '%s',\\\n",title);
+fprintf(m_wxr,"title = '%s',\\\n",title.c_str());
}
ReadRect(x,y,width,height);
-fprintf(m_wxr," control = [%i,wxStaticText,'%s','0','%s',",m_controlid,phrase,varname);
+fprintf(m_wxr," control = [%i,wxStaticText,'%s','0','%s',",m_controlid,phrase.c_str(),varname.c_str());
fprintf(m_wxr,"%i,%i,%i,%i,'',\\\n",x,y,width,height);
ReadRect(x,y,width,height);
-fprintf(m_wxr," control = [%i,wxTextCtrl,'','0','%s',",m_controlid,varname);
+fprintf(m_wxr," control = [%i,wxTextCtrl,'','0','%s',",m_controlid,varname.c_str());
fprintf(m_wxr,"%i,%i,%i,%i,'',\\\n",x,y,width,height);
ReadRect(x,y,width,height);
-fprintf(m_wxr," control = [%i,wxButton,'%s','0','%s',",c,phrase,varname);
+fprintf(m_wxr," control = [%i,wxButton,'%s','0','%s',",c,phrase.c_str(),varname.c_str());
fprintf(m_wxr,"%i,%i,%i,%i,'',\\\n",x,y,width,height);
ReadRect(x,y,width,height);
-fprintf(m_wxr," control = [%i,wxStaticBox,'%s','0','%s',",m_controlid,phrase,varname);
+fprintf(m_wxr," control = [%i,wxStaticBox,'%s','0','%s',",m_controlid,phrase.c_str(),varname.c_str());
fprintf(m_wxr,"%i,%i,%i,%i,'',\\\n",x,y,width,height);
-fprintf(m_wxr," control = [%i,wxChoice,'','0','%s',",m_controlid,varname);
+fprintf(m_wxr," control = [%i,wxChoice,'','0','%s',",m_controlid,varname.c_str());
fprintf(m_wxr,"%i,%i,%i,%i,[],\\\n",x,y,width,height);
menuid++;
-fprintf(m_wxr,"static char *MenuBar%i = \"menu(name = '%s',\\\n",menuid,name);
+fprintf(m_wxr,"static char *MenuBar%i = \"menu(name = '%s',\\\n",menuid,name.c_str());
fprintf(m_wxr,"menu = \\\n");
tok=tok.Left(spot);
-fprintf(m_wxr," ['%s',%i,'',\\\n",tok,menuitem);
+fprintf(m_wxr," ['%s',%i,'',\\\n",tok.c_str(),menuitem);
while ((tok!="BEGIN")&(tok!="{"))
menuitem++;
-fprintf(m_wxr," ['%s',%i,''],\\\n",tok,menuitem);
+fprintf(m_wxr," ['%s',%i,''],\\\n",tok.c_str(),menuitem);
}
while (ReadOrs(tok));
-fprintf(m_wxr," control = [%i,wxSlider,'','wxSL_HORIZONTAL','%s',",m_controlid,varname);
+fprintf(m_wxr," control = [%i,wxSlider,'','wxSL_HORIZONTAL','%s',",m_controlid,varname.c_str());
int x,y,width,height;
while (ReadOrs(tok));
-fprintf(m_wxr," control = [%i,wxGauge,'','wxGA_HORIZONTAL','%s',",m_controlid,varname);
+fprintf(m_wxr," control = [%i,wxGauge,'','wxGA_HORIZONTAL','%s',",m_controlid,varname.c_str());
int x,y,width,height;
{
- fprintf(m_wxr," control = [%i,wxCheckBox,'%s','0','%s',",m_controlid,label,varname);
+ fprintf(m_wxr," control = [%i,wxCheckBox,'%s','0','%s',",m_controlid,label.c_str(),varname.c_str());
while (ReadOrs(tok));
{
- fprintf(m_wxr," control = [%i,wxRadioButton,'%s','0','%s',",m_controlid,label,varname);
+ fprintf(m_wxr," control = [%i,wxRadioButton,'%s','0','%s',",m_controlid,label.c_str(),varname.c_str());
while(ReadOrs(tok));
-# $Id$
-
-top_srcdir = @top_srcdir@/..
-top_builddir = ../../..
-program_dir = contrib/utils/wxrcedit
-
-PROGRAM=wxrcedit
-
-OBJECTS=edapp.o editor.o nodehnd.o xmlhelpr.o preview.o nodesdb.o \
- pe_basic.o pe_adv.o propedit.o propframe.o splittree.o
-
-DATADIRS = df
-DATAFILES = df/break.df df/control.df df/menu_item.df df/notebookpage.df \
- df/panel_item.df df/panelbase.df df/separator.df df/sizer_item.df \
- df/sizeritem.df df/spacer.df df/tool.df df/toolbar_item.df \
- df/unknown.df df/window.df df/wxBitmapButton.df df/wxBoxSizer.df \
- df/wxButton.df df/wxCalendarCtrl.df df/wxCheckBox.df \
- df/wxCheckList.df df/wxChoice.df df/wxComboBox.df df/wxDialog.df \
- df/wxFlexGridSizer.df df/wxGauge.df df/wxGridSizer.df \
- df/wxHtmlWindow.df df/wxListBox.df df/wxListCtrl.df df/wxMenu.df \
- df/wxMenuBar.df df/wxMenuItem.df df/wxNotebook.df df/wxPanel.df \
- df/wxRadioBox.df df/wxRadioButton.df df/wxScrollBar.df \
- df/wxSlider.df df/wxSpinButton.df df/wxSpinCtrl.df \
- df/wxStaticBitmap.df df/wxStaticBox.df df/wxStaticBoxSizer.df \
- df/wxStaticLine.df df/wxStaticText.df df/wxTextCtrl.df \
- df/wxToolBar.df df/wxTreeCtrl.df df/wxFrame.df
-
-APPEXTRALIBS=$(top_builddir)/lib/lib@WX_LIBRARY_BASENAME@_xrc-@WX_RELEASE@.@WX_TARGET_LIBRARY_TYPE@
-APPEXTRADEFS=-I$(top_srcdir)/contrib/include
-
-include $(top_builddir)/src/makeprog.env
+# =========================================================================
+# This makefile was generated by
+# Bakefile 0.1.1 (http://bakefile.sourceforge.net)
+# Do not modify, all changes will be overwritten!
+# =========================================================================
+
+
+@MAKE_SET@
+
+prefix = @prefix@
+exec_prefix = @exec_prefix@
+INSTALL = @INSTALL@
+CPPFLAGS = @CPPFLAGS@
+CXX = @CXX@
+CXXFLAGS = @CXXFLAGS@
+EXEEXT = @EXEEXT@
+EXTRALIBS = @EXTRALIBS@
+EXTRALIBS_GUI = @EXTRALIBS_GUI@
+EXTRALIBS_XML = @EXTRALIBS_XML@
+HOST_SUFFIX = @HOST_SUFFIX@
+INSTALL_DIR = @INSTALL_DIR@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+LDFLAGS = @LDFLAGS@
+LDFLAGS_GUI = @LDFLAGS_GUI@
+RESCOMP = @RESCOMP@
+SETFILE = @SETFILE@
+STRIP = @STRIP@
+TOOLCHAIN_NAME = @TOOLCHAIN_NAME@
+TOOLKIT = @TOOLKIT@
+TOOLKIT_LOWERCASE = @TOOLKIT_LOWERCASE@
+TOOLKIT_VERSION = @TOOLKIT_VERSION@
+bindir = @bindir@
+srcdir = @srcdir@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+
+### Variables: ###
+
+LIBDIRNAME = $(top_builddir)lib
+WXRCEDIT_CXXFLAGS = $(CPPFLAGS) -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \
+ -I$(top_srcdir)/include -I$(srcdir) $(__DLLFLAG_p) \
+ -I$(srcdir)/../../../samples -I$(srcdir)/../../include $(CXXFLAGS)
+WXRCEDIT_OBJECTS = \
+ wxrcedit_edapp.o \
+ wxrcedit_editor.o \
+ wxrcedit_nodehnd.o \
+ wxrcedit_nodesdb.o \
+ wxrcedit_pe_adv.o \
+ wxrcedit_pe_basic.o \
+ wxrcedit_preview.o \
+ wxrcedit_propedit.o \
+ wxrcedit_propframe.o \
+ wxrcedit_splittree.o \
+ wxrcedit_xmlhelpr.o \
+ $(__wxrcedit___win32rc)
+
+### Conditionally set variables: ###
+
+@COND_DEPS_TRACKING_0@CXXC = $(CXX)
+@COND_DEPS_TRACKING_1@CXXC = $(top_builddir)./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_SHARED_1@__DLLFLAG_p = -DWXUSINGDLL
+@COND_SHARED_1@__DLLFLAG_p_1 = -d WXUSINGDLL
+@COND_SHARED_1@__DLLFLAG_p_2 = --define WXUSINGDLL
+@COND_WXUSE_EXPAT_BUILTIN@__LIB_EXPAT_p = \
+@COND_WXUSE_EXPAT_BUILTIN@ -lwxexpat$(WXDEBUGFLAG)$(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)$(HOST_SUFFIX)
+@COND_WXUSE_ODBC_BUILTIN@__LIB_ODBC_p = \
+@COND_WXUSE_ODBC_BUILTIN@ -lwxodbc$(WXDEBUGFLAG)$(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)$(HOST_SUFFIX)
+@COND_WXUSE_REGEX_BUILTIN@__LIB_REGEX_p = \
+@COND_WXUSE_REGEX_BUILTIN@ -lwxregex$(WXDEBUGFLAG)$(HOST_SUFFIX)
+@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)$(HOST_SUFFIX)
+@COND_WXUSE_ZLIB_BUILTIN@__LIB_ZLIB_p = \
+@COND_WXUSE_ZLIB_BUILTIN@ -lwxzlib$(WXDEBUGFLAG)$(HOST_SUFFIX)
+COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_1 = $(RESCOMP) -d __DARWIN__ -t APPL -d \
+ __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_1) -i $(top_srcdir)/include -i $(srcdir) \
+ $(__DLLFLAG_p_1) -i $(srcdir)/../../../samples -i $(srcdir)/../../include -o \
+ wxrcedit$(EXEEXT) Carbon.r $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).0.r \
+ sample.r
+@COND_TOOLKIT_MAC@__MACOSX_RESOURCES_p_1 = $(COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_1)
+COND_MONOLITHIC_0___WXLIB_ADV_p = \
+ -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)_adv-2.5$(HOST_SUFFIX)
+@COND_MONOLITHIC_0@__WXLIB_ADV_p = $(COND_MONOLITHIC_0___WXLIB_ADV_p)
+@COND_MONOLITHIC_0@__WXLIB_BASE_p = \
+@COND_MONOLITHIC_0@ -lwx_base$(WXBASEPORT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)-2.5$(HOST_SUFFIX)
+COND_MONOLITHIC_0___WXLIB_CORE_p = \
+ -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core-2.5$(HOST_SUFFIX)
+@COND_MONOLITHIC_0@__WXLIB_CORE_p = $(COND_MONOLITHIC_0___WXLIB_CORE_p)
+COND_MONOLITHIC_0___WXLIB_HTML_p = \
+ -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)_html-2.5$(HOST_SUFFIX)
+@COND_MONOLITHIC_0@__WXLIB_HTML_p = $(COND_MONOLITHIC_0___WXLIB_HTML_p)
+COND_MONOLITHIC_1___WXLIB_MONO_p = \
+ -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)-2.5$(HOST_SUFFIX)
+@COND_MONOLITHIC_1@__WXLIB_MONO_p = $(COND_MONOLITHIC_1___WXLIB_MONO_p)
+@COND_MONOLITHIC_0@__WXLIB_XML_p = \
+@COND_MONOLITHIC_0@ -lwx_base$(WXBASEPORT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)_xml-2.5$(HOST_SUFFIX)
+@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_PLATFORM_MAC_1@__wxrcedit___mac_rezcmd = $(__MACOSX_RESOURCES_p_1)
+@COND_PLATFORM_MAC_1@__wxrcedit___mac_setfilecmd = \
+@COND_PLATFORM_MAC_1@ $(SETFILE) -a C wxrcedit$(EXEEXT)
+@COND_PLATFORM_WIN32_1@__wxrcedit___win32rc = wxrcedit_wxrcedit_rc.o
+
+### Targets: ###
+
+all: wxrcedit$(EXEEXT)
+
+clean:
+ rm -rf ./.deps ./.pch
+ rm -f ./*.o
+ rm -f wxrcedit$(EXEEXT)
+
+distclean: clean
+ rm -f configure config.cache config.log config.status bk-deps bk-make-pch shared-ld-sh Makefile
+
+install: all install_wxrcedit
+
+install-strip: install
+ $(STRIP) $(bindir)/wxrcedit$(EXEEXT)
+
+install_wxrcedit:
+ $(INSTALL_DIR) $(bindir)
+ $(INSTALL_PROGRAM) wxrcedit$(EXEEXT) $(bindir)
+
+uninstall:
+
+wxrcedit$(EXEEXT): $(WXRCEDIT_OBJECTS) $(__wxrcedit___win32rc)
+ $(CXX) -o $@ $(WXRCEDIT_OBJECTS) $(LDFLAGS) -L$(LIBDIRNAME) $(LDFLAGS_GUI) -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)_xrc-2.5$(HOST_SUFFIX) $(__WXLIB_ADV_p) $(__WXLIB_HTML_p) $(__WXLIB_CORE_p) $(__WXLIB_XML_p) $(EXTRALIBS_XML) $(__WXLIB_BASE_p) $(EXTRALIBS_XML) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) $(__LIB_ZLIB_p) $(__LIB_ODBC_p) $(__LIB_REGEX_p) $(__LIB_EXPAT_p) $(EXTRALIBS) $(EXTRALIBS_GUI)
+ $(__wxrcedit___mac_rezcmd)
+ $(__wxrcedit___mac_setfilecmd)
+
+wxrcedit_edapp.o: $(srcdir)/edapp.cpp
+ $(CXXC) -c -o $@ $(WXRCEDIT_CXXFLAGS) $<
+
+wxrcedit_editor.o: $(srcdir)/editor.cpp
+ $(CXXC) -c -o $@ $(WXRCEDIT_CXXFLAGS) $<
+
+wxrcedit_nodehnd.o: $(srcdir)/nodehnd.cpp
+ $(CXXC) -c -o $@ $(WXRCEDIT_CXXFLAGS) $<
+
+wxrcedit_nodesdb.o: $(srcdir)/nodesdb.cpp
+ $(CXXC) -c -o $@ $(WXRCEDIT_CXXFLAGS) $<
+
+wxrcedit_pe_adv.o: $(srcdir)/pe_adv.cpp
+ $(CXXC) -c -o $@ $(WXRCEDIT_CXXFLAGS) $<
+
+wxrcedit_pe_basic.o: $(srcdir)/pe_basic.cpp
+ $(CXXC) -c -o $@ $(WXRCEDIT_CXXFLAGS) $<
+
+wxrcedit_preview.o: $(srcdir)/preview.cpp
+ $(CXXC) -c -o $@ $(WXRCEDIT_CXXFLAGS) $<
+
+wxrcedit_propedit.o: $(srcdir)/propedit.cpp
+ $(CXXC) -c -o $@ $(WXRCEDIT_CXXFLAGS) $<
+
+wxrcedit_propframe.o: $(srcdir)/propframe.cpp
+ $(CXXC) -c -o $@ $(WXRCEDIT_CXXFLAGS) $<
+
+wxrcedit_splittree.o: $(srcdir)/splittree.cpp
+ $(CXXC) -c -o $@ $(WXRCEDIT_CXXFLAGS) $<
+
+wxrcedit_wxrcedit_rc.o: $(srcdir)/wxrcedit.rc
+ $(RESCOMP) -i$< -o$@ --define __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_2) --include-dir $(top_srcdir)/include --include-dir $(srcdir) $(__DLLFLAG_p_2) --include-dir $(srcdir)/../../../samples --include-dir $(srcdir)/../../include
+
+wxrcedit_xmlhelpr.o: $(srcdir)/xmlhelpr.cpp
+ $(CXXC) -c -o $@ $(WXRCEDIT_CXXFLAGS) $<
+
+
+# Include dependency info, if present:
+@IF_GNU_MAKE@-include .deps/*.d
+
+.PHONY: all clean distclean install install_wxrcedit uninstall
#include "wx/wx.h"
#endif
-#include "wx/xrc/xml.h"
+#include "wx/xml/xml.h"
#include "wx/image.h"
#include "wx/wx.h"
#endif
#include "wx/wx.h"
-#include "wx/xrc/xml.h"
+#include "wx/xml/xml.h"
#include "wx/xrc/xmlres.h"
#include "wx/splitter.h"
#include "wx/config.h"
static void RecursivelyExpand(wxTreeCtrl *t, wxTreeItemId item)
{
t->Expand(item);
- long cookie;
+ void* cookie;
wxTreeItemId id = t->GetFirstChild(item, cookie);
while (id.IsOk())
{
wxTreeItemId item;
XmlTreeData *dt;
wxXmlNode *nd;
- long cookie;
+ void* cookie;
item = m_TreeCtrl->GetFirstChild(*root, cookie);
while (item.IsOk())
#endif
#include "nodehnd.h"
-#include "wx/xrc/xml.h"
+#include "wx/xml/xml.h"
#include "wx/filefn.h"
#include "wx/wx.h"
#include "wx/arrimpl.cpp"
class EditorFrame;
#include "wx/treectrl.h"
-#include "wx/xrc/xml.h"
+#include "wx/xml/xml.h"
#include "nodesdb.h"
-
+#include "wx/arrstr.h"
#define _NODESDB_H_
#include "wx/dynarray.h"
+#include "wx/arrstr.h"
class WXDLLEXPORT wxXmlNode;
class WXDLLEXPORT wxString;
#endif
#include "wx/wx.h"
-#include "wx/xrc/xml.h"
+#include "wx/xml/xml.h"
#include "wx/tokenzr.h"
#include "wx/wx.h"
#include "wx/dialog.h"
#endif
#include "wx/wx.h"
-#include "wx/xrc/xml.h"
+#include "wx/xml/xml.h"
#include "wx/tokenzr.h"
#include "pe_basic.h"
#include "xmlhelpr.h"
#endif
#include "wx/wx.h"
-#include "wx/xrc/xml.h"
+#include "wx/xml/xml.h"
#include "wx/xrc/xmlres.h"
#include "wx/config.h"
#include "wx/log.h"
#endif
#include "wx/wx.h"
-#include "wx/xrc/xml.h"
+#include "wx/xml/xml.h"
#include "propframe.h"
#include "propedit.h"
#include "xmlhelpr.h"
#endif
#include "wx/wx.h"
-#include "wx/xrc/xml.h"
+#include "wx/xml/xml.h"
#include "wx/config.h"
#include "splittree.h"
#include "xmlhelpr.h"
// ----------------------------------------------------------------------------
// headers
// ----------------------------------------------------------------------------
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(__APPLE__)
#pragma implementation "splittree.h"
#endif
rect = CombineRectangles(rect, itemSize);
}
- long cookie;
+ void* cookie;
wxTreeItemId childId = GetFirstChild(id, cookie);
- while (childId != 0)
+ while (childId)
{
CalcTreeSize(childId, rect);
childId = GetNextChild(childId, cookie);
{
}
+wxThinSplitterWindow::~wxThinSplitterWindow()
+{
+}
+
void wxThinSplitterWindow::SizeWindows()
{
// The client size may have changed inbetween
void wxThinSplitterWindow::DrawSash(wxDC& dc)
{
- if ( m_sashPosition == 0 || !m_windowTwo)
+ if ( GetSashPosition() == 0 || !m_windowTwo)
return;
if (GetWindowStyle() & wxSP_NOSASH)
return;
{
y1 = 2; h1 -= 3;
}
- dc.DrawRectangle(m_sashPosition, y1, m_sashSize, h1);
+ dc.DrawRectangle(GetSashPosition(), y1, GetSashSize(), h1);
}
else
{
{
x1 = 2; w1 -= 3;
}
- dc.DrawRectangle(x1, m_sashPosition, w1, m_sashSize);
+ dc.DrawRectangle(x1, GetSashPosition(), w1, GetSashSize());
}
dc.SetPen(wxNullPen);
const wxPoint& pos = wxDefaultPosition,
const wxSize& sz = wxDefaultSize,
long style = wxSP_3D | wxCLIP_CHILDREN);
+ ~wxThinSplitterWindow();
//// Overrides
--- /dev/null
+<?xml version="1.0" ?>
+<makefile>
+
+ <include file="../../../build/bakefiles/common_samples.bkl"/>
+ <include file="../../../build/bakefiles/common_contrib.bkl"/>
+
+ <exe id="wxrcedit" template="wx_contrib_util" template_append="wx_append">
+ <sources>
+ edapp.cpp
+ editor.cpp
+ nodehnd.cpp
+ nodesdb.cpp
+ pe_adv.cpp
+ pe_basic.cpp
+ preview.cpp
+ propedit.cpp
+ propframe.cpp
+ splittree.cpp
+ xmlhelpr.cpp
+ </sources>
+ <wx-lib>xrc</wx-lib>
+ <wx-lib>adv</wx-lib>
+ <wx-lib>html</wx-lib>
+ <wx-lib>core</wx-lib>
+ <wx-lib>xml</wx-lib>
+ <wx-lib>base</wx-lib>
+ <win32-res>wxrcedit.rc</win32-res>
+ <ldlibs>$(EXTRALIBS_XML)</ldlibs>
+ <install-to>$(BINDIR)</install-to>
+ </exe>
+
+</makefile>
#pragma hdrstop
#endif
-#include "wx/xrc/xml.h"
+#include "wx/xml/xml.h"
#include "wx/wx.h"
#include "wx/tokenzr.h"
#include "xmlhelpr.h"