You can subscribe to this list here.
| 2005 |
Jan
(98) |
Feb
(101) |
Mar
(60) |
Apr
(38) |
May
(26) |
Jun
|
Jul
|
Aug
(159) |
Sep
(78) |
Oct
(31) |
Nov
|
Dec
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(4) |
Sep
(6) |
Oct
|
Nov
(1) |
Dec
(3) |
| 2010 |
Jan
|
Feb
|
Mar
|
Apr
(3) |
May
(5) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2011 |
Jan
(8) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Emilien K. <cur...@us...> - 2005-08-06 17:22:37
|
Update of /cvsroot/wxdevcenter/wxDevCenter/build/debug In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26353/build/debug Log Message: Directory /cvsroot/wxdevcenter/wxDevCenter/build/debug added to the repository |
|
From: Emilien K. <cur...@us...> - 2005-08-06 17:20:26
|
Update of /cvsroot/wxdevcenter/wxDevCenter/lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26030/lib Added Files: .empty Log Message: Empty file to make directory created by cvs. --- NEW FILE: .empty --- |
|
From: Emilien K. <cur...@us...> - 2005-08-06 17:20:22
|
Update of /cvsroot/wxdevcenter/wxDevCenter/lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25971/lib Log Message: Directory /cvsroot/wxdevcenter/wxDevCenter/lib added to the repository |
|
From: Emilien K. <cur...@us...> - 2005-08-06 17:19:57
|
Update of /cvsroot/wxdevcenter/wxDevCenter/bin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25898/bin Added Files: .empty Log Message: Empty file to make directory created by cvs. --- NEW FILE: .empty --- |
|
From: Emilien K. <cur...@us...> - 2005-08-06 17:19:53
|
Update of /cvsroot/wxdevcenter/wxDevCenter/bin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25880/bin Log Message: Directory /cvsroot/wxdevcenter/wxDevCenter/bin added to the repository |
|
From: Emilien K. <cur...@us...> - 2005-08-06 16:43:49
|
Update of /cvsroot/wxdevcenter/wxDevCenter In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20056 Added Files: GNUmakefile Log Message: Initial import. --- NEW FILE: GNUmakefile --- # ========================================================================= # This makefile was generated by # Bakefile 0.1.9 (http://bakefile.sourceforge.net) # Do not modify, all changes will be overwritten! # ========================================================================= # ------------------------------------------------------------------------- # These are configurable options: # ------------------------------------------------------------------------- # 'install' program location INSTALL = install # Location where the package is installed by 'make install' prefix = /usr/local # AR = ar # RANLIB = ranlib # C++ compiler CXX = g++ # Standard flags for C++ CXXFLAGS = # Standard preprocessor flags (common for CC and CXX) CPPFLAGS = # Standard linker flags LDFLAGS = # What type of library to build ? [0,1] SHARED = 1 # Compile Unicode build of wxWidgets ? [0,1] UNICODE = 0 # Type of compiled binaries. [debug,release] BUILD = debug # Version of wxWidgets. [25, 26] WXVER = 26 # Port to use for wxWidgets library. [msw,gtk,gtk2,x11,mac,os2] WXPORTNAME = gtk2 # ------------------------------------------------------------------------- # Do not modify the rest of this file! # ------------------------------------------------------------------------- ### Variables: ### CPPDEPS = -MT$@ -MF`echo $@ | sed -e 's,\.o$$,.d,'` -MD SPECIFIC_CXXFLAGS = -D_THREAD_SAFE -pthread $(__WARNINGS) $(__UNICODE_DEFINE_p) \ $(__DEBUG_DEFINE_p) $(__OPTIMIZEFLAG) $(__DEBUGINFO) $(__WXUSINGDLL_p) \ `wx-config --cppflags` -Iinclude -DwxDC_INSTALL_TARGET=\"$(prefix)\" \ $(CPPFLAGS) $(CXXFLAGS) SPECIFIC_OBJECTS = \ ./build/$(BUILD)/specific_Config.o \ ./build/$(BUILD)/specific_FileSystemStandard.o WXDEVCENTERLIB_CXXFLAGS = -D_THREAD_SAFE -pthread $(__WARNINGS) \ $(__UNICODE_DEFINE_p) $(__DEBUG_DEFINE_p) $(__OPTIMIZEFLAG) $(__DEBUGINFO) \ $(__WXUSINGDLL_p) `wx-config --cppflags` -Iinclude -fPIC -DPIC $(CPPFLAGS) \ $(CXXFLAGS) WXDEVCENTERLIB_OBJECTS = \ ./build/$(BUILD)/wxDevCenterLib_AboutBox.o \ ./build/$(BUILD)/wxDevCenterLib_Application.o \ ./build/$(BUILD)/wxDevCenterLib_Config.o \ ./build/$(BUILD)/wxDevCenterLib_DocManager.o \ ./build/$(BUILD)/wxDevCenterLib_DocType.o \ ./build/$(BUILD)/wxDevCenterLib_Document.o \ ./build/$(BUILD)/wxDevCenterLib_Element.o \ ./build/$(BUILD)/wxDevCenterLib_FileSystem.o \ ./build/$(BUILD)/wxDevCenterLib_FileSystemCtrl.o \ ./build/$(BUILD)/wxDevCenterLib_FileSystemStandard.o \ ./build/$(BUILD)/wxDevCenterLib_FileTools.o \ ./build/$(BUILD)/wxDevCenterLib_Frame.o \ ./build/$(BUILD)/wxDevCenterLib_MainFrame.o \ ./build/$(BUILD)/wxDevCenterLib_Manager.o \ ./build/$(BUILD)/wxDevCenterLib_MDIFrame.o \ ./build/$(BUILD)/wxDevCenterLib_MiniView.o \ ./build/$(BUILD)/wxDevCenterLib_Plugin.o \ ./build/$(BUILD)/wxDevCenterLib_Project.o \ ./build/$(BUILD)/wxDevCenterLib_StatusBar.o \ ./build/$(BUILD)/wxDevCenterLib_View.o \ ./build/$(BUILD)/wxDevCenterLib_WorkBar.o WXDEVCENTER_CXXFLAGS = -D_THREAD_SAFE -pthread $(__WARNINGS) \ $(__UNICODE_DEFINE_p) $(__DEBUG_DEFINE_p) $(__OPTIMIZEFLAG) $(__DEBUGINFO) \ $(__WXUSINGDLL_p) `wx-config --cppflags` -Iinclude $(CPPFLAGS) $(CXXFLAGS) WXDEVCENTER_OBJECTS = \ ./build/$(BUILD)/wxDevCenter_AppImpl.o ### Conditionally set variables: ### ifeq ($(BUILD),debug) SUFFIX = D endif ifeq ($(BUILD),debug) ifeq ($(UNICODE),1) WXLIBPOSTFIX = ud endif endif ifeq ($(BUILD),debug) ifeq ($(UNICODE),0) WXLIBPOSTFIX = d endif endif ifeq ($(BUILD),release) ifeq ($(UNICODE),1) WXLIBPOSTFIX = u endif endif ifeq ($(WXVER),25) WXVERSIONTAG = 2.5 endif ifeq ($(WXVER),26) WXVERSIONTAG = 2.6 endif ifeq ($(BUILD),debug) __WARNINGS = -W -Wall endif ifeq ($(BUILD),release) __WARNINGS = endif ifeq ($(UNICODE),1) __UNICODE_DEFINE_p = -D_UNICODE endif ifeq ($(BUILD),debug) __DEBUG_DEFINE_p = -D__WXDEBUG__ endif ifeq ($(BUILD),debug) __OPTIMIZEFLAG = -O0 endif ifeq ($(BUILD),release) __OPTIMIZEFLAG = -O2 endif ifeq ($(SHARED),1) __WXUSINGDLL_p = -DWXUSINGDLL endif ifeq ($(BUILD),debug) __DEBUGINFO = -g endif ifeq ($(BUILD),release) __DEBUGINFO = endif all: ./build/$(BUILD) ./build/$(BUILD): @mkdir -p ./build/$(BUILD) ### Targets: ### all: ./lib/libspecific.a lib/libwxDevCenterLib.so ./bin/wxDevCenter$(SUFFIX) install: all install_wxDevCenterLib install_wxDevCenter $(INSTALL) -d $(prefix)/include for f in wxDevCenter.h wxDevCenterPlugin.h wxDevCenter/AboutBox.h wxDevCenter/Application.h wxDevCenter/Config.h wxDevCenter/DocView.h wxDevCenter/Element.h wxDevCenter/FileSystem.h wxDevCenter/FileSystemCtrl.h wxDevCenter/FileSystemStandard.h wxDevCenter/FileTools.h wxDevCenter/Frame.h wxDevCenter/language.h wxDevCenter/MainFrame.h wxDevCenter/Manager.h wxDevCenter/MDIFrame.h wxDevCenter/Plugin.h wxDevCenter/Project.h wxDevCenter/setup.h wxDevCenter/StatusBar.h wxDevCenter/WorkBar.h wxDevCenter/unix/Config.h wxDevCenter/unix/FileSystemStandard.h; do \ if test ! -d $(prefix)/include/`dirname $$f` ; then \ $(INSTALL) -d $(prefix)/include/`dirname $$f`; \ fi; \ $(INSTALL) -m 644 include//$$f $(prefix)/include/$$f; \ done $(INSTALL) -d $(prefix)/share/wxDevCenter/data for f in icons/cd-dvd.ico icons/computer.ico icons/desktop.ico icons/dir.ico icons/docs.ico icons/floppy.ico icons/harddrive.ico icons/icon-big.ico icons/icon-list.ico icons/icon-report.ico icons/none.ico icons/Progs.ico icons/ramdisk.ico icons/remote.ico icons/removeable.ico icons/shortcut.ico icons/unknow.ico icons/wxDevCenter.ico img/wx.png img/wxDevCenter.png; do \ if test ! -d $(prefix)/share/wxDevCenter/data/`dirname $$f` ; then \ $(INSTALL) -d $(prefix)/share/wxDevCenter/data/`dirname $$f`; \ fi; \ $(INSTALL) -m 644 data//$$f $(prefix)/share/wxDevCenter/data/$$f; \ done uninstall: clean: rm -f ./build/$(BUILD)/*.o rm -f ./build/$(BUILD)/*.d rm -f ./lib/libspecific.a rm -f lib/libwxDevCenterLib.so rm -f lib/libwxDevCenterLib.so rm -f ./bin/wxDevCenter$(SUFFIX) ./lib/libspecific.a: $(SPECIFIC_OBJECTS) rm -f $@ $(AR) rcu $@ $(SPECIFIC_OBJECTS) $(RANLIB) $@ lib/libwxDevCenterLib.so: $(WXDEVCENTERLIB_OBJECTS) ./lib/libspecific.a ./lib/libspecific.a $(CXX) -shared -fPIC -o $@ $(WXDEVCENTERLIB_OBJECTS) $(LDFLAGS) -pthread $(__DEBUGINFO) `wx-config --libs` -lwx_base$(WXLIBPOSTFIX)-$(WXVERSIONTAG) ./lib/libspecific.a -lwx_base$(WXLIBPOSTFIX)-$(WXVERSIONTAG) -lwx_base$(WXLIBPOSTFIX)_xml-$(WXVERSIONTAG) -lwx_$(WXPORTNAME)$(WXLIBPOSTFIX)_core-$(WXVERSIONTAG) -lwx_$(WXPORTNAME)$(WXLIBPOSTFIX)_adv-$(WXVERSIONTAG) -lwx_$(WXPORTNAME)$(WXLIBPOSTFIX)_fl-$(WXVERSIONTAG) -lwxdockit-2.1 install_wxDevCenterLib: $(INSTALL) -d $(prefix)/lib $(INSTALL) -m 644 lib/libwxDevCenterLib.so $(prefix)/lib install -c lib/libwxDevCenterLib.so $(prefix)/lib ./bin/wxDevCenter$(SUFFIX): $(WXDEVCENTER_OBJECTS) lib/libwxDevCenterLib.so $(CXX) -o $@ $(WXDEVCENTER_OBJECTS) $(LDFLAGS) -pthread $(__DEBUGINFO) `wx-config --libs` -L./lib -lwx_base$(WXLIBPOSTFIX)-$(WXVERSIONTAG) -lwxDevCenterLib -lwx_base$(WXLIBPOSTFIX)-$(WXVERSIONTAG) -lwx_$(WXPORTNAME)$(WXLIBPOSTFIX)_core-$(WXVERSIONTAG) install_wxDevCenter: $(INSTALL) -d $(prefix)/bin install -c ./bin/wxDevCenter$(SUFFIX) $(prefix)/bin ./build/$(BUILD)/specific_Config.o: ./src/unix/Config.cpp $(CXX) -c -o $@ $(SPECIFIC_CXXFLAGS) $(CPPDEPS) $< ./build/$(BUILD)/specific_FileSystemStandard.o: ./src/unix/FileSystemStandard.cpp $(CXX) -c -o $@ $(SPECIFIC_CXXFLAGS) $(CPPDEPS) $< ./build/$(BUILD)/wxDevCenterLib_AboutBox.o: ./src/AboutBox.cpp $(CXX) -c -o $@ $(WXDEVCENTERLIB_CXXFLAGS) $(CPPDEPS) $< ./build/$(BUILD)/wxDevCenterLib_Application.o: ./src/Application.cpp $(CXX) -c -o $@ $(WXDEVCENTERLIB_CXXFLAGS) $(CPPDEPS) $< ./build/$(BUILD)/wxDevCenterLib_Config.o: ./src/Config.cpp $(CXX) -c -o $@ $(WXDEVCENTERLIB_CXXFLAGS) $(CPPDEPS) $< ./build/$(BUILD)/wxDevCenterLib_DocManager.o: ./src/DocManager.cpp $(CXX) -c -o $@ $(WXDEVCENTERLIB_CXXFLAGS) $(CPPDEPS) $< ./build/$(BUILD)/wxDevCenterLib_DocType.o: ./src/DocType.cpp $(CXX) -c -o $@ $(WXDEVCENTERLIB_CXXFLAGS) $(CPPDEPS) $< ./build/$(BUILD)/wxDevCenterLib_Document.o: ./src/Document.cpp $(CXX) -c -o $@ $(WXDEVCENTERLIB_CXXFLAGS) $(CPPDEPS) $< ./build/$(BUILD)/wxDevCenterLib_Element.o: ./src/Element.cpp $(CXX) -c -o $@ $(WXDEVCENTERLIB_CXXFLAGS) $(CPPDEPS) $< ./build/$(BUILD)/wxDevCenterLib_FileSystem.o: ./src/FileSystem.cpp $(CXX) -c -o $@ $(WXDEVCENTERLIB_CXXFLAGS) $(CPPDEPS) $< ./build/$(BUILD)/wxDevCenterLib_FileSystemCtrl.o: ./src/FileSystemCtrl.cpp $(CXX) -c -o $@ $(WXDEVCENTERLIB_CXXFLAGS) $(CPPDEPS) $< ./build/$(BUILD)/wxDevCenterLib_FileSystemStandard.o: ./src/FileSystemStandard.cpp $(CXX) -c -o $@ $(WXDEVCENTERLIB_CXXFLAGS) $(CPPDEPS) $< ./build/$(BUILD)/wxDevCenterLib_FileTools.o: ./src/FileTools.cpp $(CXX) -c -o $@ $(WXDEVCENTERLIB_CXXFLAGS) $(CPPDEPS) $< ./build/$(BUILD)/wxDevCenterLib_Frame.o: ./src/Frame.cpp $(CXX) -c -o $@ $(WXDEVCENTERLIB_CXXFLAGS) $(CPPDEPS) $< ./build/$(BUILD)/wxDevCenterLib_MainFrame.o: ./src/MainFrame.cpp $(CXX) -c -o $@ $(WXDEVCENTERLIB_CXXFLAGS) $(CPPDEPS) $< ./build/$(BUILD)/wxDevCenterLib_Manager.o: ./src/Manager.cpp $(CXX) -c -o $@ $(WXDEVCENTERLIB_CXXFLAGS) $(CPPDEPS) $< ./build/$(BUILD)/wxDevCenterLib_MDIFrame.o: ./src/MDIFrame.cpp $(CXX) -c -o $@ $(WXDEVCENTERLIB_CXXFLAGS) $(CPPDEPS) $< ./build/$(BUILD)/wxDevCenterLib_MiniView.o: ./src/MiniView.cpp $(CXX) -c -o $@ $(WXDEVCENTERLIB_CXXFLAGS) $(CPPDEPS) $< ./build/$(BUILD)/wxDevCenterLib_Plugin.o: ./src/Plugin.cpp $(CXX) -c -o $@ $(WXDEVCENTERLIB_CXXFLAGS) $(CPPDEPS) $< ./build/$(BUILD)/wxDevCenterLib_Project.o: ./src/Project.cpp $(CXX) -c -o $@ $(WXDEVCENTERLIB_CXXFLAGS) $(CPPDEPS) $< ./build/$(BUILD)/wxDevCenterLib_StatusBar.o: ./src/StatusBar.cpp $(CXX) -c -o $@ $(WXDEVCENTERLIB_CXXFLAGS) $(CPPDEPS) $< ./build/$(BUILD)/wxDevCenterLib_View.o: ./src/View.cpp $(CXX) -c -o $@ $(WXDEVCENTERLIB_CXXFLAGS) $(CPPDEPS) $< ./build/$(BUILD)/wxDevCenterLib_WorkBar.o: ./src/WorkBar.cpp $(CXX) -c -o $@ $(WXDEVCENTERLIB_CXXFLAGS) $(CPPDEPS) $< ./build/$(BUILD)/wxDevCenter_AppImpl.o: ./src/AppImpl.cpp $(CXX) -c -o $@ $(WXDEVCENTER_CXXFLAGS) $(CPPDEPS) $< .PHONY: all install uninstall clean install_wxDevCenterLib install_wxDevCenter # Dependencies tracking: -include ./build/$(BUILD)/*.d |
|
From: Emilien K. <cur...@us...> - 2005-08-06 16:13:33
|
Update of /cvsroot/wxdevcenter/wxDevCenter/build In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15127/build Modified Files: wxDevCenter.bkl Log Message: Add install path to macro definition to search in the correct path for data. Index: wxDevCenter.bkl =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/build/wxDevCenter.bkl,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** wxDevCenter.bkl 6 Aug 2005 15:39:14 -0000 1.7 --- wxDevCenter.bkl 6 Aug 2005 16:13:22 -0000 1.8 *************** *** 29,32 **** --- 29,35 ---- </sources> + <!-- Set the install directory. --> + <define>wxDC_INSTALL_TARGET="$(prefix)"</define> + <wxlib /> <wxlib-base>xml</wxlib-base> |
|
From: Emilien K. <cur...@us...> - 2005-08-06 16:12:49
|
Update of /cvsroot/wxdevcenter/wxDevCenter/src/unix In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15026/src/unix Modified Files: Config.cpp Log Message: Change default paths to include install path. Index: Config.cpp =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/src/unix/Config.cpp,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** Config.cpp 5 Aug 2005 18:59:12 -0000 1.7 --- Config.cpp 6 Aug 2005 16:12:37 -0000 1.8 *************** *** 55,63 **** m_pConfig = new wxConfig(WXDC_SETUP_APPIDENT, WXDC_SETUP_VENDOR); ! m_strInstallPath = ReadConfig(WXDC_CONF_KEYNAME_INSTALLDIR , wxT("/usr")); ! m_strDataPath = ReadConfig(WXDC_CONF_KEYNAME_DATADIR , wxString(wxT("/usr/shared/")) + WXDC_SETUP_APPIDENT + wxT("/data")); ! m_strFeaturesPath = ReadConfig(WXDC_CONF_KEYNAME_FEATURESDIR , wxString(wxT("/usr/lib/")) + WXDC_SETUP_APPIDENT + wxT("/features")); ! m_strPluginsPath = ReadConfig(WXDC_CONF_KEYNAME_PLUGINSDIR , wxString(wxT("/usr/lib/")) + WXDC_SETUP_APPIDENT + wxT("/plugins")); ! m_strConfPath = ReadConfig(WXDC_CONF_KEYNAME_CONFDIR , wxString(wxT("/usr/shared/")) + WXDC_SETUP_APPIDENT + wxT("/conf")); m_strUserConfPath = ReadConfig(WXDC_CONF_KEYNAME_USERCONFDIR , wxGetHomeDir() + wxT("/.") + WXDC_SETUP_APPIDENT + wxT("/conf")); --- 55,63 ---- m_pConfig = new wxConfig(WXDC_SETUP_APPIDENT, WXDC_SETUP_VENDOR); ! m_strInstallPath = ReadConfig(WXDC_CONF_KEYNAME_INSTALLDIR , wxT(wxDC_INSTALL_TARGET)); ! m_strDataPath = ReadConfig(WXDC_CONF_KEYNAME_DATADIR , wxString(wxDC_INSTALL_TARGET) + wxString(wxT("/share/")) + WXDC_SETUP_APPIDENT + wxT("/data")); ! m_strFeaturesPath = ReadConfig(WXDC_CONF_KEYNAME_FEATURESDIR , wxString(wxDC_INSTALL_TARGET) + wxString(wxT("/lib/")) + WXDC_SETUP_APPIDENT + wxT("/features")); ! m_strPluginsPath = ReadConfig(WXDC_CONF_KEYNAME_PLUGINSDIR , wxString(wxDC_INSTALL_TARGET) + wxString(wxT("/lib/")) + WXDC_SETUP_APPIDENT + wxT("/plugins")); ! m_strConfPath = ReadConfig(WXDC_CONF_KEYNAME_CONFDIR , wxString(wxDC_INSTALL_TARGET) + wxString(wxT("/share/")) + WXDC_SETUP_APPIDENT + wxT("/conf")); m_strUserConfPath = ReadConfig(WXDC_CONF_KEYNAME_USERCONFDIR , wxGetHomeDir() + wxT("/.") + WXDC_SETUP_APPIDENT + wxT("/conf")); |
|
From: Emilien K. <cur...@us...> - 2005-08-06 15:39:23
|
Update of /cvsroot/wxdevcenter/wxDevCenter/build In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9318/build Modified Files: wxDevCenter.bkl wx.bkl Log Message: Add some automatic features for unix. Index: wx.bkl =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/build/wx.bkl,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** wx.bkl 5 Aug 2005 18:59:12 -0000 1.4 --- wx.bkl 6 Aug 2005 15:39:14 -0000 1.5 *************** *** 9,13 **** <values>0,1</values> <values-description>LIB,DLL</values-description> ! <default-value>0</default-value> <description> What type of library to build ? --- 9,13 ---- <values>0,1</values> <values-description>LIB,DLL</values-description> ! <default-value>1</default-value> <description> What type of library to build ? *************** *** 45,52 **** </option> <!-- wxWidgets port. --> <option name="WXPORTNAME"> <values>msw,gtk,gtk2,x11,mac,os2</values> ! <default-value>msw</default-value> <description>Port to use for wxWidgets library.</description> </option> --- 45,60 ---- </option> + + <set var="WXPORTNAME_DEFAULT"> + <if cond="PLATFORM_WIN32=='1'">msw</if> + <if cond="PLATFORM_UNIX=='1'">gtk2</if> + <if cond="PLATFORM_MAC=='1'">mac</if> + <if cond="PLATFORM_OS2=='1'">os2</if> + </set> + <!-- wxWidgets port. --> <option name="WXPORTNAME"> <values>msw,gtk,gtk2,x11,mac,os2</values> ! <default-value>$(WXPORTNAME_DEFAULT)</default-value> <description>Port to use for wxWidgets library.</description> </option> *************** *** 106,112 **** <set var="WXDEF_PLATEFORM"> <if cond="PLATFORM_WIN32=='1'">__WINDOWS__</if> ! <if cond="PLATFORM_UNIX=='1'">__UNIX_LIKE__</if> <if cond="PLATFORM_MAC=='1'">__WXMAC__ </if> ! <if cond="PLATFORM_OS2=='1'">__WXOS2__ </if> </set> --- 114,120 ---- <set var="WXDEF_PLATEFORM"> <if cond="PLATFORM_WIN32=='1'">__WINDOWS__</if> ! <!-- <if cond="PLATFORM_UNIX=='1'">__UNIX_LIKE__</if> <if cond="PLATFORM_MAC=='1'">__WXMAC__ </if> ! <if cond="PLATFORM_OS2=='1'">__WXOS2__ </if>--> </set> *************** *** 204,207 **** --- 212,221 ---- <define>$(WXUSINGDLL)</define> <define>$(WXDEF_PLATEFORM)</define> + <if cond="PLATFORM_UNIX=='1'"> + <cppflags>`wx-config --cppflags`</cppflags> + </if> + <if cond="PLATFORM_UNIX=='1'"> + <ldflags>`wx-config --libs`</ldflags> + </if> </template> Index: wxDevCenter.bkl =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/build/wxDevCenter.bkl,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** wxDevCenter.bkl 5 Aug 2005 18:59:12 -0000 1.6 --- wxDevCenter.bkl 6 Aug 2005 15:39:14 -0000 1.7 *************** *** 6,10 **** <set var="DIRSPEC"> <if cond="PLATFORM_WIN32=='1'">msw</if> ! <if cond="PLATFORM_UNIX =='1'">unix</if> </set> --- 6,10 ---- <set var="DIRSPEC"> <if cond="PLATFORM_WIN32=='1'">msw</if> ! <if cond="PLATFORM_UNIX=='1'">unix</if> </set> *************** *** 12,16 **** <set var="WXDOCKIT_SUFFIX"> <if cond="TARGETING_WIN32=='1'">$(SUFFIX)</if> ! <if cond="TARGETING_WIN32=='0'"></if> </set> --- 12,16 ---- <set var="WXDOCKIT_SUFFIX"> <if cond="TARGETING_WIN32=='1'">$(SUFFIX)</if> ! <if cond="TARGETING_WIN32=='0'">-2.1</if> </set> |
|
From: Andreas T. <cor...@us...> - 2005-08-05 18:59:53
|
Update of /cvsroot/wxdevcenter/wxDevCenter/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25883/src Modified Files: Application.cpp Plugin.cpp Log Message: Corrections related to unix. Index: Application.cpp =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/src/Application.cpp,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** Application.cpp 2 Aug 2005 12:50:54 -0000 1.24 --- Application.cpp 5 Aug 2005 18:59:11 -0000 1.25 *************** *** 427,430 **** --- 427,435 ---- wxDir::GetAllFiles(strPathRoot.BeforeLast(wxT('/')), &arFiles, strPathRoot.AfterLast(wxT('/')) + wxT(".ico"), wxDIR_FILES); + wxBitmap EmptyBitmap(16, 16, 24); + wxIcon EmptyIcon; + EmptyIcon.CopyFromBitmap(EmptyBitmap); + IB.AddIcon(EmptyIcon); + for(unsigned int n=0; n<arFiles.GetCount(); n++) IB.AddIcon(arFiles[n], wxBITMAP_TYPE_ANY); Index: Plugin.cpp =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/src/Plugin.cpp,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Plugin.cpp 3 Aug 2005 19:21:22 -0000 1.4 --- Plugin.cpp 5 Aug 2005 18:59:11 -0000 1.5 *************** *** 445,467 **** wxLogDebug("Preload feature descriptions :"); ! dir.Open(Application::GetApp().GetConfig().GetFeaturesPath()); ! bCont = dir.GetFirst(&str, wxEmptyString, wxDIR_DIRS); ! while(bCont) { ! wxLogDebug(wxT(" -> %s"), str.GetData()); ! PreLoadFeature(str); ! bCont = dir.GetNext(&str); } ! wxLogDebug("Preload plugin descriptions :"); ! dir.Open(Application::GetApp().GetConfig().GetPluginsPath()); ! bCont = dir.GetFirst(&str, wxEmptyString, wxDIR_DIRS); ! while(bCont) { ! wxLogDebug(wxT(" -> %s"), str.GetData()); ! PreLoadPlugin(str); ! bCont = dir.GetNext(&str); } - } --- 445,470 ---- wxLogDebug("Preload feature descriptions :"); ! if(dir.Open(Application::GetApp().GetConfig().GetFeaturesPath())) { ! bCont = dir.GetFirst(&str, wxEmptyString, wxDIR_DIRS); ! while(bCont) ! { ! wxLogDebug(wxT(" -> %s"), str.GetData()); ! PreLoadFeature(str); ! bCont = dir.GetNext(&str); ! } } ! wxLogDebug("Preload plugin descriptions :"); ! if(dir.Open(Application::GetApp().GetConfig().GetPluginsPath())) { ! bCont = dir.GetFirst(&str, wxEmptyString, wxDIR_DIRS); ! while(bCont) ! { ! wxLogDebug(wxT(" -> %s"), str.GetData()); ! PreLoadPlugin(str); ! bCont = dir.GetNext(&str); ! } } } |
|
From: Andreas T. <cor...@us...> - 2005-08-05 18:59:53
|
Update of /cvsroot/wxdevcenter/wxDevCenter/build In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25883/build Modified Files: wxDevCenter.bkl wx.bkl Log Message: Corrections related to unix. Index: wx.bkl =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/build/wx.bkl,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** wx.bkl 14 May 2005 12:15:54 -0000 1.3 --- wx.bkl 5 Aug 2005 18:59:12 -0000 1.4 *************** *** 47,51 **** <!-- wxWidgets port. --> <option name="WXPORTNAME"> ! <values>msw,gtk,x11,mac,os2</values> <default-value>msw</default-value> <description>Port to use for wxWidgets library.</description> --- 47,51 ---- <!-- wxWidgets port. --> <option name="WXPORTNAME"> ! <values>msw,gtk,gtk2,x11,mac,os2</values> <default-value>msw</default-value> <description>Port to use for wxWidgets library.</description> *************** *** 112,115 **** --- 112,121 ---- + <set var="TARGETING_WIN32"> + <if cond="FORMAT=='autoconf' or FORMAT=='gnu'">0</if> + <if cond="FORMAT!='autoconf' and FORMAT!='gnu'">1</if> + </set> + + <!-- wxWidgets library variable definitions. --> *************** *** 122,142 **** <set var="WXVERSIONTAG"> ! <if cond="WXVER=='25'">25</if> ! <if cond="WXVER=='26'">26</if> ! </set> ! ! <set var="TARGETING_WIN32"> ! <if cond="FORMAT=='autoconf' or FORMAT=='gnu'">0</if> ! <if cond="FORMAT!='autoconf' and FORMAT!='gnu'">1</if> </set> <set var="WXNAMEPREFIX"> <if cond="TARGETING_WIN32=='1'">wxbase$(WXVERSIONTAG)$(WXLIBPOSTFIX)</if> ! <if cond="TARGETING_WIN32=='0'">wx_base</if> </set> <set var="WXNAMEPREFIXGUI"> <if cond="TARGETING_WIN32=='1'">wx$(WXPORTNAME)$(WXVERSIONTAG)$(WXLIBPOSTFIX)</if> ! <if cond="TARGETING_WIN32=='0'">wx_$(WXPORTNAME)</if> </set> --- 128,145 ---- <set var="WXVERSIONTAG"> ! <if cond="TARGETING_WIN32=='1' and WXVER=='25'">25</if> ! <if cond="TARGETING_WIN32=='1' and WXVER=='26'">26</if> ! <if cond="TARGETING_WIN32=='0' and WXVER=='25'">2.5</if> ! <if cond="TARGETING_WIN32=='0' and WXVER=='26'">2.6</if> </set> <set var="WXNAMEPREFIX"> <if cond="TARGETING_WIN32=='1'">wxbase$(WXVERSIONTAG)$(WXLIBPOSTFIX)</if> ! <if cond="TARGETING_WIN32=='0'">wx_base$(WXLIBPOSTFIX)</if> </set> <set var="WXNAMEPREFIXGUI"> <if cond="TARGETING_WIN32=='1'">wx$(WXPORTNAME)$(WXVERSIONTAG)$(WXLIBPOSTFIX)</if> ! <if cond="TARGETING_WIN32=='0'">wx_$(WXPORTNAME)$(WXLIBPOSTFIX)</if> </set> *************** *** 150,154 **** </if> <if cond="TARGETING_WIN32=='0'"> ! <sys-lib>lib$(WXNAMEPREFIX)$(WXVERSIONTAG)</sys-lib> </if> </define-tag> --- 153,157 ---- </if> <if cond="TARGETING_WIN32=='0'"> ! <sys-lib>$(WXNAMEPREFIX)-$(WXVERSIONTAG)</sys-lib> </if> </define-tag> *************** *** 160,164 **** </if> <if cond="TARGETING_WIN32=='0'"> ! <sys-lib>lib$(WXNAMEPREFIX)_$(value)$(WXVERSIONTAG)</sys-lib> </if> </define-tag> --- 163,167 ---- </if> <if cond="TARGETING_WIN32=='0'"> ! <sys-lib>$(WXNAMEPREFIX)_$(value)-$(WXVERSIONTAG)</sys-lib> </if> </define-tag> *************** *** 170,174 **** </if> <if cond="TARGETING_WIN32=='0'"> ! <sys-lib>lib$(WXNAMEPREFIXGUI)_$(value)$(WXVERSIONTAG)</sys-lib> </if> </define-tag> --- 173,177 ---- </if> <if cond="TARGETING_WIN32=='0'"> ! <sys-lib>$(WXNAMEPREFIXGUI)_$(value)-$(WXVERSIONTAG)</sys-lib> </if> </define-tag> *************** *** 180,184 **** </if> <if cond="TARGETING_WIN32=='0'"> ! <sys-lib>lib$(WXNAMEPREFIX)$(WXVERSIONTAG)</sys-lib> <!-- Already in wxlib. --> </if> </define-tag> --- 183,187 ---- </if> <if cond="TARGETING_WIN32=='0'"> ! <sys-lib>$(WXNAMEPREFIX)$(WXVERSIONTAG)</sys-lib> <!-- Already in wxlib. --> </if> </define-tag> Index: wxDevCenter.bkl =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/build/wxDevCenter.bkl,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** wxDevCenter.bkl 3 Aug 2005 19:20:38 -0000 1.5 --- wxDevCenter.bkl 5 Aug 2005 18:59:12 -0000 1.6 *************** *** 9,12 **** --- 9,18 ---- </set> + <!-- Set debug library name for wxDockIt only on windows.--> + <set var="WXDOCKIT_SUFFIX"> + <if cond="TARGETING_WIN32=='1'">$(SUFFIX)</if> + <if cond="TARGETING_WIN32=='0'"></if> + </set> + <!-- Set the build directory. --> <set var="BUILDDIR">.$(DIRSEP)build$(DIRSEP)$(BUILD)</set> *************** *** 67,71 **** <wxlib-gui>adv</wxlib-gui> <wxlib-gui>fl</wxlib-gui> ! <sys-lib>wxdockit$(SUFFIX)</sys-lib> <win32-res>res-win32/wxDevCenter.rc</win32-res> --- 73,77 ---- <wxlib-gui>adv</wxlib-gui> <wxlib-gui>fl</wxlib-gui> ! <sys-lib>wxdockit$(WXDOCKIT_SUFFIX)</sys-lib> <win32-res>res-win32/wxDevCenter.rc</win32-res> |
|
From: Andreas T. <cor...@us...> - 2005-08-05 18:59:30
|
Update of /cvsroot/wxdevcenter/wxDevCenter/src/unix In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25883/src/unix Modified Files: Config.cpp Log Message: Corrections related to unix. Index: Config.cpp =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/src/unix/Config.cpp,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** Config.cpp 14 May 2005 12:15:56 -0000 1.6 --- Config.cpp 5 Aug 2005 18:59:12 -0000 1.7 *************** *** 118,121 **** --- 118,127 ---- } + // Retourne le chemin racine des fonctionnalités. + wxString ConfigUnix::GetFeaturesPath() + { + return m_strFeaturesPath; + } + // Retourne le chemin racine des pluggins. wxString ConfigUnix::GetPluginsPath() |
|
From: Emilien K. <cur...@us...> - 2005-08-03 19:21:33
|
Update of /cvsroot/wxdevcenter/wxDevCenter/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19286/src Modified Files: Plugin.cpp Project.cpp View.cpp Log Message: Fix number of bugs and warnings for gcc compilation. Index: Project.cpp =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/src/Project.cpp,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** Project.cpp 14 May 2005 12:15:56 -0000 1.6 --- Project.cpp 3 Aug 2005 19:21:23 -0000 1.7 *************** *** 39,44 **** */ Project::Project(): - wxEvtHandler(), Element(), m_strName(""), m_strPath(""), --- 39,44 ---- */ Project::Project(): Element(), + wxEvtHandler(), m_strName(""), m_strPath(""), Index: Plugin.cpp =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/src/Plugin.cpp,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** Plugin.cpp 14 May 2005 12:15:56 -0000 1.3 --- Plugin.cpp 3 Aug 2005 19:21:22 -0000 1.4 *************** *** 60,64 **** bool ModuleRefData::Load(wxString strPath) { ! wxLogDebug("Loading module %s", strPath); BaseElementManager* pOldBEM = Element::s_pElementManager; --- 60,64 ---- bool ModuleRefData::Load(wxString strPath) { ! wxLogDebug(wxT("Loading module %s"), strPath.GetData()); BaseElementManager* pOldBEM = Element::s_pElementManager; *************** *** 247,251 **** bool bOk = true; ! wxLogDebug("Loading plugin %s ...", strName); // Préchargement des plugins dépendants. --- 247,251 ---- bool bOk = true; ! wxLogDebug(wxT("Loading plugin %s ..."), strName.GetData()); // Préchargement des plugins dépendants. *************** *** 354,358 **** bool bOk = true; ! wxLogDebug("Loading feature %s ...", strName); // Préchargement des fonctionnalité dépendantes. --- 354,358 ---- bool bOk = true; ! wxLogDebug(wxT("Loading feature %s ..."), strName.GetData()); // Préchargement des fonctionnalité dépendantes. *************** *** 449,453 **** while(bCont) { ! wxLogDebug(" -> %s", str); PreLoadFeature(str); bCont = dir.GetNext(&str); --- 449,453 ---- while(bCont) { ! wxLogDebug(wxT(" -> %s"), str.GetData()); PreLoadFeature(str); bCont = dir.GetNext(&str); *************** *** 459,463 **** while(bCont) { ! wxLogDebug(" -> %s", str); PreLoadPlugin(str); bCont = dir.GetNext(&str); --- 459,463 ---- while(bCont) { ! wxLogDebug(wxT(" -> %s"), str.GetData()); PreLoadPlugin(str); bCont = dir.GetNext(&str); *************** *** 526,530 **** Module* PluginLoader::LoadModule(wxString strPath) { ! wxLogDebug("Loading module %s", strPath); strPath.Prepend(Application::GetApp().GetConfig().GetPluginsPath() + wxT("/")); --- 526,530 ---- Module* PluginLoader::LoadModule(wxString strPath) { ! wxLogDebug(wxT("Loading module %s"), strPath.GetData()); strPath.Prepend(Application::GetApp().GetConfig().GetPluginsPath() + wxT("/")); *************** *** 542,546 **** plugins::Plugin* PluginLoader::LoadPlugin(wxString strName) { ! wxLogDebug("Loading plugin %s", strName); plugins::Plugin& plugin = m_PluginMap[strName]; --- 542,546 ---- plugins::Plugin* PluginLoader::LoadPlugin(wxString strName) { ! wxLogDebug(wxT("Loading plugin %s"), strName.GetData()); plugins::Plugin& plugin = m_PluginMap[strName]; *************** *** 556,560 **** Feature* PluginLoader::LoadFeature(wxString strName) { ! wxLogDebug("Loading feature %s", strName); Feature& feature = m_FeatureMap[strName]; --- 556,560 ---- Feature* PluginLoader::LoadFeature(wxString strName) { ! wxLogDebug(wxT("Loading feature %s"), strName.GetData()); Feature& feature = m_FeatureMap[strName]; *************** *** 570,574 **** bool PluginLoader::InitializePlugin(wxString strName) { ! wxLogDebug("Initializing plugin %s", strName); Plugin& plugin = m_PluginMap[strName]; --- 570,574 ---- bool PluginLoader::InitializePlugin(wxString strName) { ! wxLogDebug(wxT("Initializing plugin %s"), strName.GetData()); Plugin& plugin = m_PluginMap[strName]; *************** *** 582,586 **** bool PluginLoader::InitializeFeature(wxString strName) { ! wxLogDebug("Initializing feature %s", strName); Feature& feature = m_FeatureMap[strName]; --- 582,586 ---- bool PluginLoader::InitializeFeature(wxString strName) { ! wxLogDebug(wxT("Initializing feature %s"), strName.GetData()); Feature& feature = m_FeatureMap[strName]; *************** *** 594,598 **** bool PluginLoader::InitializeModule(wxString strName) { ! wxLogDebug("Initializing module %s", strName); Module& module = m_ModuleMap[strName]; --- 594,598 ---- bool PluginLoader::InitializeModule(wxString strName) { ! wxLogDebug(wxT("Initializing module %s"), strName.GetData()); Module& module = m_ModuleMap[strName]; Index: View.cpp =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/src/View.cpp,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** View.cpp 2 Aug 2005 12:50:54 -0000 1.7 --- View.cpp 3 Aug 2005 19:21:23 -0000 1.8 *************** *** 30,34 **** using namespace wxDevCenter; ! IMPLEMENT_DYNAMIC_CLASS2(View, wxPanel, Element) BEGIN_EVENT_TABLE(View, wxPanel) --- 30,34 ---- using namespace wxDevCenter; ! IMPLEMENT_DYNAMIC_CLASS2(View, Element, wxPanel) BEGIN_EVENT_TABLE(View, wxPanel) *************** *** 38,43 **** View::View(): wxPanel(), - plugins::PluginItem(), m_pDocument(NULL) { --- 38,43 ---- View::View(): + Element(), wxPanel(), m_pDocument(NULL) { |
|
From: Emilien K. <cur...@us...> - 2005-08-03 19:21:32
|
Update of /cvsroot/wxdevcenter/wxDevCenter/include/wxDevCenter In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19286/include/wxDevCenter Modified Files: DocView.h Element.h Manager.h Plugin.h Log Message: Fix number of bugs and warnings for gcc compilation. Index: Manager.h =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/include/wxDevCenter/Manager.h,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** Manager.h 2 Aug 2005 12:50:54 -0000 1.5 --- Manager.h 3 Aug 2005 19:21:22 -0000 1.6 *************** *** 198,202 **** if(pos!=-1) { ! Remove(pos); return true; } --- 198,202 ---- if(pos!=-1) { ! Vector<ItemType*>::Remove(pos); return true; } *************** *** 205,209 **** /** Désenregistrement d'un objet. * @param Index Index de l'objet à supprimer.*/ ! void Unregister(unsigned int Index){Remove(Index);} /** @} */ }; --- 205,209 ---- /** Désenregistrement d'un objet. * @param Index Index de l'objet à supprimer.*/ ! void Unregister(unsigned int Index){Vector<ItemType*>::Remove(Index);} /** @} */ }; *************** *** 424,428 **** { for(unsigned int n=0; n<m_ObjectManager.GetCount(); n++) ! if(m_ObjectManager.Item(n).GetClassInfo()==&(GetTemplate(nIndex).GetClassInfo())) return true; return false; --- 424,428 ---- { for(unsigned int n=0; n<m_ObjectManager.GetCount(); n++) ! if(m_ObjectManager.Item(n).GetClassInfo()==&(TemplateManager<ObjectType, Template>::GetTemplate(nIndex).GetClassInfo())) return true; return false; *************** *** 433,437 **** { for(unsigned int n=0; n<m_ObjectManager.GetCount(); n++) ! if(m_ObjectManager.Item(n).GetClassInfo()==&(GetTemplate(nIndex).GetClassInfo())) return &(m_ObjectManager.Item(n)); return false; --- 433,437 ---- { for(unsigned int n=0; n<m_ObjectManager.GetCount(); n++) ! if(m_ObjectManager.Item(n).GetClassInfo()==&(TemplateManager<ObjectType, Template>::GetTemplate(nIndex).GetClassInfo())) return &(m_ObjectManager.Item(n)); return false; *************** *** 442,446 **** { for(unsigned int n=0; n<m_ObjectManager.GetCount(); n++) ! if(m_ObjectManager.Item(n).GetClassInfo()==&(GetTemplate(nIndex).GetClassInfo())) return &(m_ObjectManager.Item(n)); return false; --- 442,446 ---- { for(unsigned int n=0; n<m_ObjectManager.GetCount(); n++) ! if(m_ObjectManager.Item(n).GetClassInfo()==&(TemplateManager<ObjectType, Template>::GetTemplate(nIndex).GetClassInfo())) return &(m_ObjectManager.Item(n)); return false; *************** *** 457,462 **** if(pObj==NULL) { ! pObj = TemplateManager<ObjectType, Template>::CreateObjectFromTemplate(Index); ! m_ObjectManager.Register(pObject); } return pObj; --- 457,462 ---- if(pObj==NULL) { ! pObj = TemplateManager<ObjectType, Template>::CreateObjectFromTemplate(nIndex); ! m_ObjectManager.Register(pObj); } return pObj; Index: Element.h =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/include/wxDevCenter/Element.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Element.h 2 Aug 2005 12:50:54 -0000 1.2 --- Element.h 3 Aug 2005 19:21:22 -0000 1.3 *************** *** 88,96 **** { ! class WXDC_DLL_BASE Element; ! class WXDC_DLL_BASE BaseElementManager; namespace plugins { ! class WXDC_DLL_BASE ModuleRefData; } --- 88,96 ---- { ! class Element; ! class BaseElementManager; namespace plugins { ! class ModuleRefData; } Index: DocView.h =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/include/wxDevCenter/DocView.h,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** DocView.h 2 Aug 2005 12:50:54 -0000 1.16 --- DocView.h 3 Aug 2005 19:21:22 -0000 1.17 *************** *** 106,110 **** * Classe interface de vue pour la représentation visuelle des données des documents. */ ! class WXDC_DLL_BASE View : public wxPanel, virtual public Element { friend class Application; --- 106,110 ---- * Classe interface de vue pour la représentation visuelle des données des documents. */ ! class WXDC_DLL_BASE View : virtual public Element, public wxPanel { friend class Application; *************** *** 487,493 **** /** Constructeur.*/ ViewTemplate(wxClassInfo* pInfo, wxString strName, wxString strDescript, wxString strIcon): ! ObjectTemplate<View>(pInfo, strName, strDescript), strIcons(strIcon), ! ObjectManager<View>(){} ! }; --- 487,493 ---- /** Constructeur.*/ ViewTemplate(wxClassInfo* pInfo, wxString strName, wxString strDescript, wxString strIcon): ! ObjectTemplate<View>(pInfo, strName, strDescript), ! ObjectManager<View>(), ! strIcons(strIcon){} }; Index: Plugin.h =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/include/wxDevCenter/Plugin.h,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** Plugin.h 14 May 2005 12:15:55 -0000 1.3 --- Plugin.h 3 Aug 2005 19:21:22 -0000 1.4 *************** *** 51,63 **** // Prédéclaration des classes : ! struct WXDC_DLL_BASE Version; ! class WXDC_DLL_BASE ModuleRefData; ! class WXDC_DLL_BASE Module; ! class WXDC_DLL_BASE Plugin; ! class WXDC_DLL_BASE Feature; ! class WXDC_DLL_BASE PluginLoader; ! class WXDC_DLL_BASE FeatureDescriptionFile; ! class WXDC_DLL_BASE PluginDescriptionFile; typedef ObjectManager<PluginItem> PluginItemManager; --- 51,63 ---- // Prédéclaration des classes : ! struct Version; ! class ModuleRefData; ! class Module; ! class Plugin; ! class Feature; ! class PluginLoader; ! class FeatureDescriptionFile; ! class PluginDescriptionFile; typedef ObjectManager<PluginItem> PluginItemManager; *************** *** 122,131 **** wxString operator()(wxString) { ! return wxString::Format("%hu.%hd.%d.%d", major, minor, patch, release); } wxString ToString()const { ! return wxString::Format("%hu.%hd.%d.%d", major, minor, patch, release); } }; --- 122,131 ---- wxString operator()(wxString) { ! return wxString::Format(wxT("%hu.%hd.%ld.%ld"), major, minor, patch, release); } wxString ToString()const { ! return wxString::Format(wxT("%hu.%hd.%ld.%ld"), major, minor, patch, release); } }; *************** *** 203,207 **** Module(); /** Constructeur.*/ ! Module(const Module& module){Ref(module);} /** Débugage : Dump du contenu. */ --- 203,207 ---- Module(); /** Constructeur.*/ ! Module(const Module& module):wxObject(){Ref(module);} /** Débugage : Dump du contenu. */ |
|
From: Emilien K. <cur...@us...> - 2005-08-03 19:20:48
|
Update of /cvsroot/wxdevcenter/wxDevCenter/build In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19115/build Modified Files: wxDevCenter.bkl Log Message: Total remake of resources and manifests. Index: wxDevCenter.bkl =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/build/wxDevCenter.bkl,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** wxDevCenter.bkl 2 Aug 2005 17:13:00 -0000 1.4 --- wxDevCenter.bkl 3 Aug 2005 19:20:38 -0000 1.5 *************** *** 69,72 **** --- 69,75 ---- <sys-lib>wxdockit$(SUFFIX)</sys-lib> + <win32-res>res-win32/wxDevCenter.rc</win32-res> + <win32-res>res-win32/wxDevCenter.fragment.manifest</win32-res> + <install-to>$(LIBDIR)</install-to> </dll> *************** *** 88,99 **** <win32-res>res-win32/wxDevCenter.rc</win32-res> ! <!--<win32-res>res-win32/wxDevCenter.fragment.manifest</win32-res>--> ! <wxlib /> - <wxlib-base>xml</wxlib-base> <wxlib-gui>core</wxlib-gui> - <wxlib-gui>adv</wxlib-gui> - <wxlib-gui>fl</wxlib-gui> - <sys-lib>wxdockit$(SUFFIX)</sys-lib> <install-to>$(BINDIR)</install-to> --- 91,97 ---- <win32-res>res-win32/wxDevCenter.rc</win32-res> ! <win32-res>res-win32/wxDevCenter.fragment.manifest</win32-res> <wxlib /> <wxlib-gui>core</wxlib-gui> <install-to>$(BINDIR)</install-to> |
|
From: Emilien K. <cur...@us...> - 2005-08-03 19:20:20
|
Update of /cvsroot/wxdevcenter/wxDevCenter/res-win32 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18944/res-win32 Modified Files: wxDevCenter.rc Removed Files: wxDevCenter.exe.manifest wxDevCenter.manifest wxDevCenterD.exe.manifest Log Message: Total remake of resources and manifests. --- wxDevCenter.exe.manifest DELETED --- --- wxDevCenter.manifest DELETED --- Index: wxDevCenter.rc =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/res-win32/wxDevCenter.rc,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** wxDevCenter.rc 15 Apr 2005 15:43:47 -0000 1.2 --- wxDevCenter.rc 3 Aug 2005 19:20:09 -0000 1.3 *************** *** 1,112 **** ///////////////////////////////////////////////////////////////////////////// - // File: wx.rc - // Purpose: wxWindows resource definitions. ALWAYS include - // this in your application resource file. - // - // wxWindows version 1.50 - // Copyright (c) 1993 Artificial Intelligence Applications Institute, - // The University of Edinburgh - // - // Author: Julian Smart - // Date: 9-4-93 - // - // Permission to use, copy, modify, and distribute this software and its - // documentation for any purpose is hereby granted without fee, provided - // that the above copyright notice, author statement and this permission - // notice appear in all copies of this software and related documentation. - // - // THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, EXPRESS, - // IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF - // MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. - // - // IN NO EVENT SHALL THE ARTIFICIAL INTELLIGENCE APPLICATIONS INSTITUTE OR THE - // UNIVERSITY OF EDINBURGH BE LIABLE FOR ANY SPECIAL, INCIDENTAL, INDIRECT OR - // CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES WHATSOEVER RESULTING FROM - // LOSS OF USE, DATA OR PROFITS, WHETHER OR NOT ADVISED OF THE POSSIBILITY OF - // DAMAGE, AND ON ANY THEORY OF LIABILITY, ARISING OUT OF OR IN CONNECTION WITH - // THE USE OR PERFORMANCE OF THIS SOFTWARE. - // - // Version: $Id$ ///////////////////////////////////////////////////////////////////////////// ! #if (defined( __GNUWIN32__ ) && !defined(__TWIN32__)) || defined(__MWERKS__) ! #include <wx/msw/gnuwin32/winresrc.h> ! #else ! #include <windows.h> ! #endif ! ! #if defined(_WIN32_WCE) ! #include "wx/msw/wince/wince.rc" ! #endif ! ! ////////////////////////////////////////////////////////////////////////////// ! // ! // This is the MDI Window menu ! // ! ! wxWindowMenu MENU DISCARDABLE ! BEGIN ! POPUP "&Window" ! BEGIN ! MENUITEM "&Cascade", 4002 ! MENUITEM "Tile &Horizontally", 4001 ! MENUITEM "Tile &Vertically", 4005 ! MENUITEM "", -1 ! MENUITEM "&Arrange Icons", 4003 ! MENUITEM "&Next", 4004 ! END ! END ! ! ////////////////////////////////////////////////////////////////////////////// ! // ! // Standard wxWindows Cursors ! // ! ! WXCURSOR_HAND CURSOR DISCARDABLE "wx/msw/hand.cur" ! WXCURSOR_BULLSEYE CURSOR DISCARDABLE "wx/msw/bullseye.cur" ! WXCURSOR_PENCIL CURSOR DISCARDABLE "wx/msw/pencil.cur" ! WXCURSOR_MAGNIFIER CURSOR DISCARDABLE "wx/msw/magnif1.cur" ! WXCURSOR_NO_ENTRY CURSOR DISCARDABLE "wx/msw/noentry.cur" ! WXCURSOR_ROLLER CURSOR DISCARDABLE "wx/msw/roller.cur" ! WXCURSOR_WATCH CURSOR DISCARDABLE "wx/msw/watch1.cur" ! WXCURSOR_PBRUSH CURSOR DISCARDABLE "wx/msw/pbrush.cur" ! WXCURSOR_PLEFT CURSOR DISCARDABLE "wx/msw/pntleft.cur" ! WXCURSOR_PRIGHT CURSOR DISCARDABLE "wx/msw/pntright.cur" ! WXCURSOR_QARROW CURSOR DISCARDABLE "wx/msw/query.cur" ! WXCURSOR_BLANK CURSOR DISCARDABLE "wx/msw/blank.cur" ! WXCURSOR_RIGHT_ARROW CURSOR DISCARDABLE "wx/msw/rightarr.cur" ! ! ! ////////////////////////////////////////////////////////////////////////////// ! // ! // Default Icons ! // ! ! //wxDEFAULT_FRAME ICON "wx/msw/std.ico" ! //wxDEFAULT_MDIPARENTFRAME ICON "wx/msw/mdi.ico" ! //wxDEFAULT_MDICHILDFRAME ICON "wx/msw/child.ico" ! ! // Standard small icons ! wxICON_SMALL_CLOSED_FOLDER ICON "wx/msw/folder1.ico" ! wxICON_SMALL_OPEN_FOLDER ICON "wx/msw/folder2.ico" ! wxICON_SMALL_FILE ICON "wx/msw/file1.ico" ! wxICON_SMALL_COMPUTER ICON "wx/msw/computer.ico" ! wxICON_SMALL_DRIVE ICON "wx/msw/drive.ico" ! wxICON_SMALL_CDROM ICON "wx/msw/cdrom.ico" ! wxICON_SMALL_FLOPPY ICON "wx/msw/floppy.ico" ! wxICON_SMALL_REMOVEABLE ICON "wx/msw/removble.ico" ! ! IDI_WXDEVCENTER ICON "../data/icons/wxDevCenter.ico" ! ! ////////////////////////////////////////////////////////////////////////////// ! // ! // Bitmaps ! // ! ! // For wxContextHelpButton ! csquery BITMAP "wx/msw/csquery.bmp" - // For obtaining the RGB values of standard colours - wxBITMAP_STD_COLOURS BITMAP "wx/msw/colours.bmp" ////////////////////////////////////////////////////////////////////////////// --- 1,8 ---- ///////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////// ! #include <wx/msw/wx.rc> ! #include <wx/msw/wxdockit.rc> ////////////////////////////////////////////////////////////////////////////// *************** *** 114,118 **** // Manifest file for Windows XP // ! #if !defined(__WIN64__) #if !defined(wxUSE_NO_MANIFEST) || (wxUSE_NO_MANIFEST == 0) --- 10,14 ---- // Manifest file for Windows XP // ! /* #if !defined(__WIN64__) #if !defined(wxUSE_NO_MANIFEST) || (wxUSE_NO_MANIFEST == 0) *************** *** 125,126 **** --- 21,23 ---- #endif + */ --- wxDevCenterD.exe.manifest DELETED --- |
|
From: Emilien K. <cur...@us...> - 2005-08-02 17:13:51
|
Update of /cvsroot/wxdevcenter/wxDevCenter/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21533/src Modified Files: MainFrame.cpp Log Message: Utilisation de wxDockIt à la place de wxFrameLayout pour l'integration des workbars. Index: MainFrame.cpp =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/src/MainFrame.cpp,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** MainFrame.cpp 2 Aug 2005 12:50:54 -0000 1.16 --- MainFrame.cpp 2 Aug 2005 17:13:01 -0000 1.17 *************** *** 36,56 **** #include <wx/sashwin.h> ! ! ! ! // fl headers ! #include <wx/fl/controlbar.h> // core API ! // extra plugins ! #include <wx/fl/barhintspl.h> // bevel for bars with "X"s and grooves ! #include <wx/fl/rowdragpl.h> // NC-look with draggable rows ! #include <wx/fl/cbcustom.h> // customization plugin ! #include <wx/fl/hintanimpl.h> ! ! // beauty-care ! #include <wx/fl/gcupdatesmgr.h> // smooth d&d ! #include <wx/fl/antiflickpl.h> // double-buffered repaint of decorations ! #include <wx/fl/dyntbar.h> // auto-layout toolbar ! #include <wx/fl/dyntbarhnd.h> // control-bar dimension handler for it ! --- 36,43 ---- #include <wx/sashwin.h> ! // wxdockit includes ! #include <wx/layoutmanager.h> ! #include <wx/dockwindow.h> ! #include <wx/dockhost.h> *************** *** 91,97 **** EVT_MENU(IDM_HELP_ABOUT , MainFrame::OnMenuHelpAbout) - EVT_MENU_RANGE(IDM_WINDOW_WORKBAR_FIRST, IDM_WINDOW_WORKBAR_LAST, MainFrame::OnWorkBarMenu) - EVT_UPDATE_UI_RANGE(IDM_WINDOW_WORKBAR_FIRST, IDM_WINDOW_WORKBAR_LAST, MainFrame::OnUpdateWorkBarMenu) - EVT_UPDATE_UI(IDM_PROJECT_CLOSE , MainFrame::OnUpdateProjectClose) EVT_UPDATE_UI(IDM_FILE_CLOSE , MainFrame::OnUpdateWhenHasDoc) --- 78,81 ---- *************** *** 110,114 **** MainFrame::MainFrame(void): TopFrame(WXDC_NAME, wxDefaultPosition, wxDefaultSize, wxDEFAULT_FRAME_STYLE|wxCLIP_CHILDREN), ! m_pFrameLayout(NULL), m_WorkBarArray(), m_pGlobalSizer(NULL), --- 94,98 ---- MainFrame::MainFrame(void): TopFrame(WXDC_NAME, wxDefaultPosition, wxDefaultSize, wxDEFAULT_FRAME_STYLE|wxCLIP_CHILDREN), ! m_pLayoutManager(NULL), m_WorkBarArray(), m_pGlobalSizer(NULL), *************** *** 116,124 **** m_pMenuItemWorkBar(NULL) { - // Création de la barre de status. - SetStatusBar(new StatusBar(this)); - - // Création de la barre des menu puis réinitialisation de celle-ci - BuildMenu(); // Création de la fenetre cadre cliente. --- 100,103 ---- *************** *** 126,137 **** SetViewFrame(pChild); ! m_pFrameLayout = new wxFrameLayout(this, pChild); ! m_pFrameLayout->SetUpdatesManager( new cbGCUpdatesMgr() ); ! ! // setup plugins for testing ! m_pFrameLayout->PushDefaultPlugins(); ! m_pFrameLayout->AddPlugin( CLASSINFO( cbBarHintsPlugin ) ); // fancy "X"es and bevel for bars ! m_pFrameLayout->AddPlugin( CLASSINFO( cbAntiflickerPlugin ) ); ! m_pFrameLayout->AddPlugin( CLASSINFO( cbHintAnimationPlugin ) ); // Chargement de l'icone de l'application. --- 105,112 ---- SetViewFrame(pChild); ! // Création du wxDockIt's layout manager. ! m_pLayoutManager = new wxLayoutManager( this ); ! m_pLayoutManager->AddDefaultHosts(); ! m_pLayoutManager->SetLayout( wxDWF_LIVE_UPDATE|wxDWF_SPLITTER_BORDERS, pChild ); // Chargement de l'icone de l'application. *************** *** 139,142 **** --- 114,123 ---- SetIcon(m_Icon); + // Création de la barre de status. + SetStatusBar(new StatusBar(this)); + + // Création de la barre des menu puis réinitialisation de celle-ci + BuildMenu(); + SetDropTarget(new MainFrameDropTarget); } *************** *** 430,450 **** wxSize sz = pWorkBar->GetMinSize(); ! // drop in some bars ! cbDimInfo sizes( sz.x, sz.y, // when docked horizontally ! sz.x, sz.y, // when docked vertically ! sz.x, sz.y, // when floated ! FALSE, // the bar is not fixed-size ! 4, // vertical gap (bar border) ! 4 // horizontal gap (bar border) ! ); - m_pFrameLayout->AddBar( (wxWindow*)pWorkBar, // bar window - sizes, FL_ALIGN_LEFT, // alignment ( 0-top,1-bottom, etc) - 0, // insert into 0th row (vert. position) - 0, // offset from the start of row (in pixels) - strName, // name for reference in customization pop-ups - FALSE - ); m_WorkBarArray.Register(pWorkBar); RebuildWorkBarMenu(); return true; --- 411,426 ---- wxSize sz = pWorkBar->GetMinSize(); ! wxDockWindow *pDockWindow = new wxDockWindow(this, wxID_ANY, strName, wxPoint(64, 64), sz, strName); ! pDockWindow->SetClient(pWorkBar); ! m_pLayoutManager->AddDockWindow(pDockWindow); ! ! wxHostInfo HostInfo = m_pLayoutManager->GetDockHost(wxDEFAULT_LEFT_HOST); ! m_pLayoutManager->DockWindow(pDockWindow, HostInfo); ! ! pWorkBar->SetExtraData(pDockWindow); m_WorkBarArray.Register(pWorkBar); + + RebuildWorkBarMenu(); return true; *************** *** 454,461 **** bool MainFrame::RemoveWorkBar(WorkBar* pWorkBar) { ! cbBarInfo* pBI = m_pFrameLayout->FindBarByWindow((wxWindow*)pWorkBar); ! if(pBI!=NULL) { ! m_pFrameLayout->RemoveBar(pBI); m_WorkBarArray.Unregister(pWorkBar); RebuildWorkBarMenu(); --- 430,436 ---- bool MainFrame::RemoveWorkBar(WorkBar* pWorkBar) { ! if(pWorkBar->GetExtraData()!=NULL) { ! m_pLayoutManager->UndockWindow((wxDockWindowBase*)pWorkBar->GetExtraData()); m_WorkBarArray.Unregister(pWorkBar); RebuildWorkBarMenu(); *************** *** 469,513 **** { wxMenu *pMenu = m_pMenuItemWorkBar->GetSubMenu(); - if(pMenu) - { - while(pMenu->GetMenuItemCount()>0) - { - wxMenuItem* pChildItem = pMenu->FindItemByPosition(0); - pMenu->Destroy(pChildItem); - } ! for(unsigned int i=0; i<m_WorkBarArray.GetCount(); i++) ! { ! pMenu->Append(IDM_WINDOW_WORKBAR_FIRST+i, m_WorkBarArray.Item(i).GetName(), wxT(""), wxITEM_CHECK); ! } ! } ! } ! ! // Intercepte la mise à jour des menus de workbar. ! void MainFrame::OnUpdateWorkBarMenu(wxUpdateUIEvent& event) ! { ! cbBarInfo* pBI = m_pFrameLayout->FindBarByWindow((wxWindow*)&m_WorkBarArray.Item(event.GetId()-IDM_WINDOW_WORKBAR_FIRST)); ! if(pBI) ! event.Check( !(pBI->mState==wxCBAR_HIDDEN) ); ! else ! event.Enable(false); ! } ! ! // Intercepte un menu de workbar. ! void MainFrame::OnWorkBarMenu(wxCommandEvent& event) ! { ! cbBarInfo* pBI = m_pFrameLayout->FindBarByWindow((wxWindow*)&m_WorkBarArray.Item(event.GetId()-IDM_WINDOW_WORKBAR_FIRST)); ! if(pBI) ! m_pFrameLayout->InverseVisibility(pBI); } - /** Force la mise à jour de la fenetre via les wxUpdateUIEvent.*/ void MainFrame::UpdateWindowUI(long flags) { wxFrame::UpdateWindowUI(flags); - - for(unsigned long l=0; l<m_WorkBarArray.GetCount(); l++) - m_WorkBarArray[l].UpdateWindowUI(flags); - } --- 444,454 ---- { wxMenu *pMenu = m_pMenuItemWorkBar->GetSubMenu(); ! m_pLayoutManager->SetWindowMenu(pMenu); } /** Force la mise à jour de la fenetre via les wxUpdateUIEvent.*/ void MainFrame::UpdateWindowUI(long flags) { wxFrame::UpdateWindowUI(flags); } |
|
From: Emilien K. <cur...@us...> - 2005-08-02 17:13:50
|
Update of /cvsroot/wxdevcenter/wxDevCenter/build In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21533/build Modified Files: wxDevCenter.bkl Log Message: Utilisation de wxDockIt à la place de wxFrameLayout pour l'integration des workbars. Index: wxDevCenter.bkl =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/build/wxDevCenter.bkl,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** wxDevCenter.bkl 2 Aug 2005 12:50:54 -0000 1.3 --- wxDevCenter.bkl 2 Aug 2005 17:13:00 -0000 1.4 *************** *** 67,70 **** --- 67,71 ---- <wxlib-gui>adv</wxlib-gui> <wxlib-gui>fl</wxlib-gui> + <sys-lib>wxdockit$(SUFFIX)</sys-lib> <install-to>$(LIBDIR)</install-to> *************** *** 94,97 **** --- 95,99 ---- <wxlib-gui>adv</wxlib-gui> <wxlib-gui>fl</wxlib-gui> + <sys-lib>wxdockit$(SUFFIX)</sys-lib> <install-to>$(BINDIR)</install-to> |
|
From: Emilien K. <cur...@us...> - 2005-08-02 17:13:40
|
Update of /cvsroot/wxdevcenter/wxDevCenter/include/wxDevCenter In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21533/include/wxDevCenter Modified Files: MainFrame.h WorkBar.h Log Message: Utilisation de wxDockIt à la place de wxFrameLayout pour l'integration des workbars. Index: MainFrame.h =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/include/wxDevCenter/MainFrame.h,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** MainFrame.h 14 May 2005 12:15:54 -0000 1.11 --- MainFrame.h 2 Aug 2005 17:13:01 -0000 1.12 *************** *** 35,39 **** class wxSashWindow; ! class wxFrameLayout; namespace wxDevCenter --- 35,39 ---- class wxSashWindow; ! class wxLayoutManager; namespace wxDevCenter *************** *** 44,49 **** /** Fenêtre cadre principal. ! * Fenêtre cadre contenant toutes les autres fenêtres et notament le conteneur de vues et les contrôles d'arborescence. ! */ class MainFrame : public TopFrame { --- 44,49 ---- /** Fenêtre cadre principal. ! * Fenêtre cadre contenant toutes les autres fenêtres et notament le conteneur de vues et les contrôles d'arborescence. ! */ class MainFrame : public TopFrame { *************** *** 57,62 **** virtual ~MainFrame(void); ! /** FrameLayout object.*/ ! wxFrameLayout* m_pFrameLayout; /** Liste des WorkBar attachée.*/ --- 57,62 ---- virtual ~MainFrame(void); ! /** LayoutManager.*/ ! wxLayoutManager* m_pLayoutManager; /** Liste des WorkBar attachée.*/ *************** *** 104,112 **** void RebuildWorkBarMenu(); - /** Intercepte la mise à jour des menus de workbar.*/ - void OnUpdateWorkBarMenu(wxUpdateUIEvent& event); - /** Intercepte un menu de workbar.*/ - void OnWorkBarMenu(wxCommandEvent& event); - /** @name Interception des évènements. * @{*/ --- 104,107 ---- Index: WorkBar.h =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/include/wxDevCenter/WorkBar.h,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** WorkBar.h 2 Aug 2005 12:50:54 -0000 1.7 --- WorkBar.h 2 Aug 2005 17:13:01 -0000 1.8 *************** *** 51,54 **** --- 51,56 ---- wxString m_strName; + /** Info complémentaire. A utiliser uniquement par le conteneur pour se retrouver.*/ + void* m_pExtraData; public: WorkBar(void); *************** *** 63,66 **** --- 65,74 ---- * @param Adresse de la fenetre parente.*/ virtual bool Create(wxWindow* parent){return wxPanel::Create(parent, -1);} + + /** Fixe des données additionnelles.*/ + void SetExtraData(void* pExtraData){m_pExtraData = pExtraData;} + /** Retourne les données additionnelles.*/ + void* GetExtraData()const{return m_pExtraData;} + }; |
|
From: Emilien K. <cur...@us...> - 2005-08-02 12:51:08
|
Update of /cvsroot/wxdevcenter/wxDevCenter/include/wxDevCenter In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23161/include/wxDevCenter Modified Files: DocView.h Element.h FileSystem.h Frame.h Manager.h WorkBar.h setup.h Log Message: Passage à la nouvelle architecture basée sur la classe Element. Index: Manager.h =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/include/wxDevCenter/Manager.h,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Manager.h 14 May 2005 12:15:54 -0000 1.4 --- Manager.h 2 Aug 2005 12:50:54 -0000 1.5 *************** *** 210,244 **** - /** Classe de base de gestionnaire d'objets initialisables. - * Gestion d'objets enregistrés. - * @ref Gestionnaires - */ - template<class ItemType> - class WXDC_DLL_BASE ElementManager : public ObjectManager<ItemType>, public Element - { - public: - /** Constructeur.*/ - ElementManager():ObjectManager<ItemType>(),Element(){} - /** @name Surcharge des fonctions de manipulations. - * @{ */ - /** Enregistrement d'un objet. - * @param pObj Adresse de l'objet. - * @return Vrai si correctement enregistré.*/ - bool Register(ItemType* pObj){return ObjectManager<ItemType>::Register(pObj);} - /** Enregistrement d'un objet. - * @param Obj Objet à enregistrer. - * @return Vrai si correctement enregistré.*/ - bool Register(ItemType& Obj){return ObjectManager<ItemType>::Register(Obj);} - /** Désenregistrement d'un objet. - * @param pObj Adresse de l'objet. - * @return Faux si l'objet n'a pa été désenregistré.*/ - bool Unregister(ItemType* pObj){return ObjectManager<ItemType>::Unregister(pObj);} - /** Désenregistrement d'un objet. - * @param Index Index de l'objet à supprimer.*/ - void Unregister(unsigned int Index){Item(Index).Finalize();ObjectManager<ItemType>::Unregister(Index);} - /** @} */ - }; - - /** Patron d'objet manageable. --- 210,213 ---- *************** *** 267,279 **** * Alloue et initialise l'objet. * @return Adresse de l'objet (NULL si problème d'initialisation).*/ ! ObjectType* CreateObject() { ObjectType* pObj =(ObjectType*) (m_pClassInfo->CreateObject()); - if(pObj!=NULL) - if(!pObj->Initialize()) - { - delete pObj; - pObj = NULL; - } return pObj; } --- 236,242 ---- * Alloue et initialise l'objet. * @return Adresse de l'objet (NULL si problème d'initialisation).*/ ! virtual ObjectType* CreateObject() { ObjectType* pObj =(ObjectType*) (m_pClassInfo->CreateObject()); return pObj; } *************** *** 294,298 **** */ template<class ObjectType, class Template=ObjectTemplate<ObjectType> > ! class WXDC_DLL_BASE TemplateManager : private ElementManager<Template> { public: --- 257,261 ---- */ template<class ObjectType, class Template=ObjectTemplate<ObjectType> > ! class WXDC_DLL_BASE TemplateManager : public Element, private ObjectManager<Template> { public: *************** *** 301,332 **** /** Retourne le nombre de patrons enregistrés. * @return Nombre de patrons enregistrés.*/ ! unsigned int GetTemplateCount()const{return ElementManager<Template>::GetCount();} /** Recherche d'un patron. * @param pTemplate Adresse du patron à rechercher. * @return Index du patron ou -1 si non trouvé.*/ ! int FindTemplate(const Template* pTemplate)const{return ElementManager<Template>::Find(pTemplate);} /** Accès à un patron. * @param nIndex Index du patron. * @return Référence du patron.*/ ! Template& GetTemplate(unsigned int nIndex){return ElementManager<Template>::Item(nIndex);} /** Accès constant à un patron. * @param nIndex Index du patron. * @return Référence du patron.*/ ! const Template& GetTemplate(unsigned int nIndex)const{return ElementManager<Template>::Item(nIndex);} /** Enregistrement d'un patron. * @param pTemplate Adresse du patron. * @return Vrai si correctement enregistré.*/ ! bool RegisterTemplate(Template* pTemplate){return ElementManager<Template>::Register(pTemplate);} /** Enregistrement d'un patron. * @param Templ Patron à enregistrer. * @return Vrai si correctement enregistré.*/ ! bool RegisterTemplate(Template& Templ){return ElementManager<Template>::Register(Templ);} /** Désenregistrement d'un patron. * @param pTempl Adresse du patron. * @return Faux si le patron n'a pa été désenregistré.*/ ! bool UnregisterTemplate(Template* pTempl){return ElementManager<Template>::Unregister(pTempl);} /** Désenregistrement d'un patron. * @param Index Index du patron à supprimer.*/ ! void UnregisterTemplate(unsigned int Index){ElementManager<Template>::Unregister(Index);} /** @} */ --- 264,295 ---- /** Retourne le nombre de patrons enregistrés. * @return Nombre de patrons enregistrés.*/ ! unsigned int GetTemplateCount()const{return ObjectManager<Template>::GetCount();} /** Recherche d'un patron. * @param pTemplate Adresse du patron à rechercher. * @return Index du patron ou -1 si non trouvé.*/ ! int FindTemplate(const Template* pTemplate)const{return ObjectManager<Template>::Find(pTemplate);} /** Accès à un patron. * @param nIndex Index du patron. * @return Référence du patron.*/ ! Template& GetTemplate(unsigned int nIndex){return ObjectManager<Template>::Item(nIndex);} /** Accès constant à un patron. * @param nIndex Index du patron. * @return Référence du patron.*/ ! const Template& GetTemplate(unsigned int nIndex)const{return ObjectManager<Template>::Item(nIndex);} /** Enregistrement d'un patron. * @param pTemplate Adresse du patron. * @return Vrai si correctement enregistré.*/ ! bool RegisterTemplate(Template* pTemplate){return ObjectManager<Template>::Register(pTemplate);} /** Enregistrement d'un patron. * @param Templ Patron à enregistrer. * @return Vrai si correctement enregistré.*/ ! bool RegisterTemplate(Template& Templ){return ObjectManager<Template>::Register(Templ);} /** Désenregistrement d'un patron. * @param pTempl Adresse du patron. * @return Faux si le patron n'a pa été désenregistré.*/ ! bool UnregisterTemplate(Template* pTempl){return ObjectManager<Template>::Unregister(pTempl);} /** Désenregistrement d'un patron. * @param Index Index du patron à supprimer.*/ ! void UnregisterTemplate(unsigned int Index){ObjectManager<Template>::Unregister(Index);} /** @} */ *************** *** 339,352 **** virtual ObjectType* CreateObjectFromTemplate(unsigned int Index){return GetTemplate(Index).CreateObject();} /** @} */ - - /** @name Initialisation et finalisation. - * @{ */ - /** Initialise l'objet. - * Si l'initialisation rend faux alors l'objet ne sera pas enregistré. - * @return Status d'initialisation.*/ - virtual bool Initialize(){return ElementManager<Template>::Initialize();} - /** Finalise l'objet.*/ - virtual void Finalize(){ElementManager<Template>::Finalize();} - /** @} */ }; --- 302,305 ---- *************** *** 394,398 **** private: /** Gestionnaire interne des objets créés depuis les patrons.*/ ! ElementManager<ObjectType> m_ObjectManager; protected: /** Création d'un objet depuis un patron enregistré. --- 347,351 ---- private: /** Gestionnaire interne des objets créés depuis les patrons.*/ ! ObjectManager<ObjectType> m_ObjectManager; protected: /** Création d'un objet depuis un patron enregistré. *************** *** 443,449 **** * Si l'initialisation rend faux alors l'objet ne sera pas enregistré. * @return Status d'initialisation.*/ ! virtual bool Initialize(){return TemplateManager<ObjectType, Template>::Initialize() && m_ObjectManager.Initialize();} /** Finalise l'objet.*/ ! virtual void Finalize(){m_ObjectManager.Finalize(); TemplateManager<ObjectType, Template>::Finalize();} /** @} */ }; --- 396,402 ---- * Si l'initialisation rend faux alors l'objet ne sera pas enregistré. * @return Status d'initialisation.*/ ! virtual bool Initialize(){return TemplateManager<ObjectType, Template>::Initialize();} /** Finalise l'objet.*/ ! virtual void Finalize(){TemplateManager<ObjectType, Template>::Finalize();} /** @} */ }; *************** *** 459,463 **** private: /** Gestionnaire interne des objets créés depuis les patrons.*/ ! ElementManager<ObjectType> m_ObjectManager; public: /** Constructeur.*/ --- 412,416 ---- private: /** Gestionnaire interne des objets créés depuis les patrons.*/ ! ObjectManager<ObjectType> m_ObjectManager; public: /** Constructeur.*/ Index: Element.h =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/include/wxDevCenter/Element.h,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Element.h 14 May 2005 12:15:55 -0000 1.1 --- Element.h 2 Aug 2005 12:50:54 -0000 1.2 *************** *** 23,28 **** // 02111-1307, USA. ! /** @page Eléments. ! * @todo Page d'explication des éléments. */ --- 23,81 ---- // 02111-1307, USA. ! /** @page Elements Eléments. ! * Dans le cadre de la nouvelle architecture de plugins, ! * il était nécessaire d'avoir une base commune pour tous les objets contenus dans lesdis plugins. ! * C'est le rôle des éléments. ! * ! * L'idée est de faire dériver tout élément de plugin de wxDevCenter::Element pour pouvoir utiliser ! * un système de recencement, d'initialisation/finalisation et de gestion dé dépendances. ! * ! * @section Element_Interface L'interface des éléments. ! * L'interface de wxDevCenter::Element fournis 4 fonctions virtuelles permettant de les gérer correctement: ! * - bool wxDevCenter::Element::Initialize() qui permet d'initialiser un plugin. ! * - void wxDevCenter::Element::Finalize() qui permet de finaliser un plugin. ! * - bool wxDevCenter::Element::Destroy(bool) qui permet de détruire l'élément. ! * - bool wxDevCenter::Element::CanDestroy() qui permet de demander à un élément si il peut être détruit (sans perte de donnée). ! * La destruction d'un élément doit obligatoirement être faite par wxDevCenter::Element::Destroy car appeler uniquement le destructeur peut faire sauter certaines étapes de désenregistrement. ! * ! * @section Element_Life Vie d'un élément. ! * L'interface vue ci-dessus permet de considérer la vie d'un élément comme suit : ! * - Allocation ! * - Construction ! * - Initialisation ! * - Exploitation de l'élément ! * - Test de possibilité de suppression ! * - Finalisation ! * - Destruction ! * ! * @subsection Construction Construction ! * Lors de la construction, il est obligatoire d'appeler le constructeur par défaut wxDevCenter::Element::Element car c'est lui qui permet d'inscrire l'élément dans le système. ! * ! * @subsection Initialisation Initialisation ! * @par ! * L'initialisation est la phase dédiée à la gestion des dépendances pour l'élément. ! * En effet, celui-ci devra profiter de cette étape pour créer et initialiser les éléments dont il a besoin. ! * @par ! * De plus, C'est la phase où l'élément s'enregistre dans les gestionnaires. La plupart du temps, un objet n'est pas @em standalone, mais relié à un gestionnaire (wxDevCenter::ElementManager ou autre). ! * @par ! * Si une erreur se produit lors de l'initialisation, la fonction d'initialisation peut retourner faux si elle juge que ce problème est blocant pour l'application. ! * ! * @subsection Finalisation Finalisation ! * La finalisation est le pendant de l'initialisation mais pour la fin de vie de l'élément. ! * C'est dans cette fonction que les éléments liés doivent être récursivement finalisés. ! * Ainsi que l'élément doit être désenregistré des divers gestionnaires où il a été inscrit. ! * ! * @subsection Test Test de possibilité de destruction ! * La fonction de test de possibilité de destruction sert à faire tous les test pour savoir si le système peut détruire l'élément sans perte de donnée. ! * Cette fonction sert à déterminer si une opération de destruction doit être arrétée ou non. ! * ! * @subsection Destruction Destruction ! * @par ! * La fonction de destruction permet de réellement détruire l'objet. ! * Elle permet la destruction des éléments dépendants. ! * Si le paramètre de force n'est pas activé, la fonction peut décider de ne pas détruire l'objet et de retourner faux, ceci dans la logique du test de destruction. ! * @par ! * La fonction de base appelle le destructeur. Elle doit être appelée mais en dernier. ! * */ *************** *** 96,100 **** * Cette fonction sert à tester si l'élément peut être détruit sans en être forcé. * @ return Vrai si l'élément peut être supprimé sans le forcer.*/ ! virtual bool CanDestroy()const; }; --- 149,153 ---- * Cette fonction sert à tester si l'élément peut être détruit sans en être forcé. * @ return Vrai si l'élément peut être supprimé sans le forcer.*/ ! virtual bool CanDestroy(); }; Index: setup.h =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/include/wxDevCenter/setup.h,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** setup.h 14 May 2005 12:15:55 -0000 1.5 --- setup.h 2 Aug 2005 12:50:54 -0000 1.6 *************** *** 66,69 **** --- 66,70 ---- //#endif + #define wxIMPLEMENT_CLASS_COMMON0(name, func) \ wxClassInfo name::ms_classInfo(wxT(#name), \ Index: WorkBar.h =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/include/wxDevCenter/WorkBar.h,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** WorkBar.h 14 May 2005 12:15:55 -0000 1.6 --- WorkBar.h 2 Aug 2005 12:50:54 -0000 1.7 *************** *** 89,93 **** virtual void Finalize(); virtual bool Destroy(bool bForce=true); ! virtual bool CanDestroy()const; /** @} */ }; --- 89,93 ---- virtual void Finalize(); virtual bool Destroy(bool bForce=true); ! virtual bool CanDestroy(); /** @} */ }; *************** *** 109,113 **** virtual void Finalize(); virtual bool Destroy(bool bForce=true); ! virtual bool CanDestroy()const; /** @} */ }; --- 109,113 ---- virtual void Finalize(); virtual bool Destroy(bool bForce=true); ! virtual bool CanDestroy(); /** @} */ }; Index: Frame.h =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/include/wxDevCenter/Frame.h,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** Frame.h 14 May 2005 12:15:54 -0000 1.9 --- Frame.h 2 Aug 2005 12:50:54 -0000 1.10 *************** *** 238,242 **** virtual void OnViewChanging(View *pOldView=NULL, View *pNewView=NULL); virtual void OnViewChanged(View *pNewView=NULL, View *pOldView=NULL); - virtual void RemoveView(View *pView)=0; public: virtual void ScrollToView(View *pView)=0; --- 238,241 ---- *************** *** 250,253 **** --- 249,254 ---- /** Teste si les évènements peuvent être redirigés vers les vues.*/ virtual bool CanProcessEventFromParent(){return false;} + + virtual void RemoveView(View *pView)=0; }; Index: DocView.h =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/include/wxDevCenter/DocView.h,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** DocView.h 14 May 2005 12:15:54 -0000 1.15 --- DocView.h 2 Aug 2005 12:50:54 -0000 1.16 *************** *** 152,155 **** --- 152,166 ---- virtual ~View(void); + + /** @name Fonctions d'interface d'élément. + * @{ */ + virtual bool Initialize(); + virtual void Finalize(); + virtual bool Destroy(bool bForce=true); + virtual bool CanDestroy(); + /** @ */ + + + /** Fixe le texte du status de la vue.*/ void SetStatusText(wxString strText); *************** *** 243,247 **** /** @} */ ! /** @name Type de document et vies attachées. @{ */ /** Retourne l'adresse du descripteur de type de document.*/ DocTemplate* GetDocTemplate(){return m_pDocumentTemplate;}; --- 254,258 ---- /** @} */ ! /** @name Type de document et vues attachées. @{ */ /** Retourne l'adresse du descripteur de type de document.*/ DocTemplate* GetDocTemplate(){return m_pDocumentTemplate;}; *************** *** 252,261 **** * @param pUpdateInfo Pointeur vers une structure (ou classe) ayant des précisions sur les modifications.*/ void UpdateAllViews(View *pSender, unsigned int nUpdateCode=0, void* pUpdateInfo=NULL); ! /** Attache une vue au document.*/ ! void AttachView(View *pView); ! /** Détache une vue du document.*/ ! void DetachView(View *pView); /** @} */ protected: /** @name Fonction virtuelles de spécialisation du document. --- 263,285 ---- * @param pUpdateInfo Pointeur vers une structure (ou classe) ayant des précisions sur les modifications.*/ void UpdateAllViews(View *pSender, unsigned int nUpdateCode=0, void* pUpdateInfo=NULL); ! ! /** Enregistre une vue au document. ! * @param pView Adresse de la vue.*/ ! bool RegisterView(View *pView){return m_ViewArray.Register(pView);} ! /** Désenregistre une vue du document. ! * @param pView Adresse de la vue.*/ ! void UnregisterView(View *pView){m_ViewArray.Unregister(pView);} /** @} */ + /** @name Fonctions d'interface d'élément. + * @{ */ + virtual bool Initialize(); + virtual void Finalize(); + virtual bool Destroy(bool bForce=true); + virtual bool CanDestroy(); + /** @ */ + + + protected: /** @name Fonction virtuelles de spécialisation du document. *************** *** 455,459 **** * Patron de vue. */ ! class WXDC_DLL_BASE ViewTemplate : public ObjectTemplate<View> { public: --- 479,483 ---- * Patron de vue. */ ! class WXDC_DLL_BASE ViewTemplate : public ObjectTemplate<View>, public ObjectManager<View> { public: *************** *** 463,467 **** /** Constructeur.*/ ViewTemplate(wxClassInfo* pInfo, wxString strName, wxString strDescript, wxString strIcon): ! ObjectTemplate<View>(pInfo, strName, strDescript), strIcons(strIcon){} }; --- 487,493 ---- /** Constructeur.*/ ViewTemplate(wxClassInfo* pInfo, wxString strName, wxString strDescript, wxString strIcon): ! ObjectTemplate<View>(pInfo, strName, strDescript), strIcons(strIcon), ! ObjectManager<View>(){} ! }; *************** *** 509,518 **** ~DocTemplate(); ! /** @name Fonctions d'interface de PluginItem. * @{ */ virtual bool Initialize(); virtual void Finalize(); virtual bool Destroy(bool bForce=true); ! virtual bool CanDestroy()const; /** @ */ --- 535,544 ---- ~DocTemplate(); ! /** @name Fonctions d'interface d'élément. * @{ */ virtual bool Initialize(); virtual void Finalize(); virtual bool Destroy(bool bForce=true); ! virtual bool CanDestroy(); /** @ */ *************** *** 565,574 **** * @see View */ ! class WXDC_DLL_BASE DocManager : public MultiObjectTemplateManager<Document, DocTemplate> { friend class Application; private: /** Gestionnaire des vues.*/ ! ElementManager<View> m_ViewManager; protected: /** Fenêtre conteneur par défaut des vues.*/ --- 591,607 ---- * @see View */ ! class WXDC_DLL_BASE DocManager : public Element, public wxObject { friend class Application; private: + /** Gestionnaire des types de documents.*/ + TemplateManager<Document, DocTemplate> m_TemplateManager; + /** Gestionnaire des vues.*/ ! ObjectManager<View> m_ViewManager; ! ! /** Gestionnaire des documents.*/ ! ObjectManager<Document> m_DocumentManager; ! protected: /** Fenêtre conteneur par défaut des vues.*/ *************** *** 579,599 **** public: /** Nombre de documents.*/ ! unsigned int GetDocumentCount()const{return MultiObjectTemplateManager<Document, DocTemplate>::GetObjectCount();} /** Document par l'indice dans le tableau de référencement.*/ ! const Document* GetDocument(unsigned int nIndex)const{return &(MultiObjectTemplateManager<Document, DocTemplate>::GetObject(nIndex));} ! Document* GetDocument(unsigned int nIndex){return &(MultiObjectTemplateManager<Document, DocTemplate>::GetObject(nIndex));} /** Document par son chemin.*/ const Document* GetDocument(FilePath &strDocPath)const; Document* GetDocument(FilePath &strDocPath); ! /** Crée un document. ! * Crée un document à partir de l'identifiant de son patron puis l'enregistre dans la liste des documents. * @param nIndex Index du patron de document. */ Document* CreateDocument(unsigned int nIndex); ! /** Ferme le document spécifié. ! * Ferme un document et toutes ses vues attachées. ! * Si le document a été modifié, une demande d'enregistrement est posée à l'utilisateur et le document est enregistré le cas échéant. ! * @return Retourne false si l'utilisateur annule l'action.*/ ! bool CloseDocument(Document *pDoc); /** Ferme tous les documents ouverts. * Ferme tous les documents ouverts et toutes les vues attachées. --- 612,628 ---- public: /** Nombre de documents.*/ ! unsigned int GetDocumentCount()const{return m_DocumentManager.GetCount();} /** Document par l'indice dans le tableau de référencement.*/ ! const Document* GetDocument(unsigned int nIndex)const{return &(m_DocumentManager[nIndex]);} ! Document* GetDocument(unsigned int nIndex){return &(m_DocumentManager[nIndex]);} /** Document par son chemin.*/ const Document* GetDocument(FilePath &strDocPath)const; Document* GetDocument(FilePath &strDocPath); ! /** Crée un document vièrge. ! * Crée un document à partir de l'identifiant de son patron puis l'initialise. * @param nIndex Index du patron de document. */ Document* CreateDocument(unsigned int nIndex); ! /** Ferme tous les documents ouverts. * Ferme tous les documents ouverts et toutes les vues attachées. *************** *** 603,611 **** /** Sauvegarde les données modifiées du documents.*/ bool SaveDocument(Document *pDoc); ! protected: ! /** Supprime le document spécifié. ! * Le document est supposé libre de vue et sauevgardé si besoin est. ! * Aucune vérification ne sera effectuée.*/ ! void DeleteDocument(Document* pDocument); /** @}*/ --- 632,644 ---- /** Sauvegarde les données modifiées du documents.*/ bool SaveDocument(Document *pDoc); ! ! /** Enregistre un document. ! * @param pDoc Adresse du document. ! * @return Vrai si le document est correctement enregistré. ! */ ! bool RegisterDocument(Document* pDoc){return m_DocumentManager.Register(pDoc);} ! /** Désenregistre un document. ! * @param pDoc Adresse du document.*/ ! void UnregisterDocument(Document* pDoc){m_DocumentManager.Unregister(pDoc);} /** @}*/ *************** *** 613,625 **** /** @name Manipulation des patrons de documents. * @{*/ - public: /** Nombre de patrons de documents.*/ ! unsigned int GetDocTemplateCount()const{return MultiObjectTemplateManager<Document, DocTemplate>::GetTemplateCount();} /** Patron de document par son indice dans le tableau de référencement. * @param nIndex Indice du type de document.*/ ! const DocTemplate& GetDocTemplate(unsigned int nIndex)const{return MultiObjectTemplateManager<Document, DocTemplate>::GetTemplate(nIndex);} ! DocTemplate& GetDocTemplate(unsigned int nIndex){return MultiObjectTemplateManager<Document, DocTemplate>::GetTemplate(nIndex);} /** Retrouve l'identifiant du patron depuis son adresse.*/ ! int FindDocTemplate(const DocTemplate* pTemplate)const{return MultiObjectTemplateManager<Document, DocTemplate>::FindTemplate(pTemplate);} /** Patron de document correspondant à un nom de patron. * @param strDocName Nom du patron de document.*/ --- 646,657 ---- /** @name Manipulation des patrons de documents. * @{*/ /** Nombre de patrons de documents.*/ ! unsigned int GetDocTemplateCount()const{return m_TemplateManager.GetTemplateCount();} /** Patron de document par son indice dans le tableau de référencement. * @param nIndex Indice du type de document.*/ ! const DocTemplate& GetDocTemplate(unsigned int nIndex)const{return m_TemplateManager.GetTemplate(nIndex);} ! DocTemplate& GetDocTemplate(unsigned int nIndex){return m_TemplateManager.GetTemplate(nIndex);} /** Retrouve l'identifiant du patron depuis son adresse.*/ ! int FindDocTemplate(const DocTemplate* pTemplate)const{return m_TemplateManager.FindTemplate(pTemplate);} /** Patron de document correspondant à un nom de patron. * @param strDocName Nom du patron de document.*/ *************** *** 645,649 **** * @return Indice du nouveau patron ou -1 si erreur. */ ! int RegisterDocTemplate(DocTemplate* pTemplate); /** @}*/ --- 677,688 ---- * @return Indice du nouveau patron ou -1 si erreur. */ ! int RegisterDocTemplate(DocTemplate* pTemplate){return m_TemplateManager.RegisterTemplate(pTemplate);} ! /** Désenregistrement d'un patron. ! * @param pTempl Adresse du patron. ! * @return Faux si le patron n'a pa été désenregistré.*/ ! bool UnregisterDocTemplate(DocTemplate* pTempl){return m_TemplateManager.UnregisterTemplate(pTempl);} ! /** Désenregistrement d'un patron. ! * @param Index Index du patron à supprimer.*/ ! void UnregisterDocTemplate(unsigned int Index){m_TemplateManager.UnregisterTemplate(Index);} /** @}*/ *************** *** 661,668 **** * Crée une vue correspondant à l'indetifiant de vue spécifié et l'attache au document précisé. * @param pDoc Document auquel attacher la vue. ! * @param nViewIndex Indice de la vue correspondant au patron du type de document. ! * @return Adresse de la nouvelle vue, -1 si erreur. */ ! View* CreateView(Document *pDoc, unsigned int nViewIndex); /** Crée une vue. * Crée une vue correspondant au patron de vue spécifié et l'attache au document précisé. --- 700,707 ---- * Crée une vue correspondant à l'indetifiant de vue spécifié et l'attache au document précisé. * @param pDoc Document auquel attacher la vue. ! * @param iViewIndex Indice de la vue correspondant au patron du type de document, 0 pour le premier patron enregistré (par défaut), -1 pour demander à l'utilisateur si plusieurs choix. ! * @return Adresse de la nouvelle vue, -1 si erreur. */ ! View* CreateView(Document *pDoc, int iViewIndex = -1); /** Crée une vue. * Crée une vue correspondant au patron de vue spécifié et l'attache au document précisé. *************** *** 680,683 **** --- 719,728 ---- * Ne doit être appelée que de CloseDocument ou CloseView (ou associé).*/ void DeleteView(View *pView); + /** Enregistre une vue. + * @param pView Vue.*/ + bool RegisterView(View *pView){return m_ViewManager.Register(pView);} + /** Enregistre une vue. + * @param pView Vue.*/ + void UnregisterView(View *pView){m_ViewManager.Unregister(pView);} /** @}*/ *************** *** 789,804 **** virtual ~DocType(void); ! /** Initialisation. ! * Permet d'initialiser des données spécifiques aux types de documents comme des données globales/statiques. ! * Appelé avant toute création d'un document de ce type. ! * @return Si faux le type de documents ne sera pas utilisé. ! */ virtual bool Initialize(); ! ! /** Nettoyage. ! * Appelé pendant le désenregistrement du type de document (fin de l'appli ...). ! * Permet de nettoyer des données spécifiques aux types de documents comme des données globales/statiques. ! */ ! virtual void Free(); }; --- 834,844 ---- virtual ~DocType(void); ! /** @name Fonctions d'interface de PluginItem. ! * @{ */ virtual bool Initialize(); ! virtual void Finalize(); ! virtual bool Destroy(bool bForce=true); ! virtual bool CanDestroy(); ! /** @ */ }; Index: FileSystem.h =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/include/wxDevCenter/FileSystem.h,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** FileSystem.h 14 May 2005 12:15:54 -0000 1.7 --- FileSystem.h 2 Aug 2005 12:50:54 -0000 1.8 *************** *** 218,222 **** * Fait le lien entre les noms de fichiers, les systèmes de fichiers et les archives. */ ! class WXDC_DLL_BASE FileSystemManager : public ElementManager<FileSystem> { public: --- 218,222 ---- * Fait le lien entre les noms de fichiers, les systèmes de fichiers et les archives. */ ! class WXDC_DLL_BASE FileSystemManager : public Element, public ObjectManager<FileSystem> { public: |
|
From: Emilien K. <cur...@us...> - 2005-08-02 12:51:08
|
Update of /cvsroot/wxdevcenter/wxDevCenter/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23161/src Modified Files: Application.cpp DocManager.cpp DocType.cpp Document.cpp Element.cpp FileSystem.cpp MDIFrame.cpp MainFrame.cpp View.cpp WorkBar.cpp Log Message: Passage à la nouvelle architecture basée sur la classe Element. Index: MainFrame.cpp =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/src/MainFrame.cpp,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** MainFrame.cpp 14 May 2005 12:15:56 -0000 1.15 --- MainFrame.cpp 2 Aug 2005 12:50:54 -0000 1.16 *************** *** 217,227 **** { View *pView = GetViewFrame()->GetActiveView(); - Document *pDoc; - if(pView!=NULL) ! { ! pDoc = pView->GetDocument(); ! Application::GetApp().GetDocManager().CloseDocument(pDoc); ! } } --- 217,222 ---- { View *pView = GetViewFrame()->GetActiveView(); if(pView!=NULL) ! pView->GetDocument()->Destroy(false); } *************** *** 236,240 **** void MainFrame::OnMenuWindowClose(wxCommandEvent& WXUNUSED(event)) { ! Application::GetApp().GetDocManager().CloseView(GetViewFrame()->GetActiveView()); } --- 231,235 ---- void MainFrame::OnMenuWindowClose(wxCommandEvent& WXUNUSED(event)) { ! GetViewFrame()->GetActiveView()->Destroy(false); } *************** *** 264,275 **** { Document *pDoc = pActiveView->GetDocument(); ! int iTypeView = Application::GetApp().GetDocManager().ChooseViewType(Application::GetApp().GetDocManager().FindTemplate(pDoc->GetDocTemplate())); if(iTypeView!=-1) ! { ! View *pNewView = Application::GetApp().GetDocManager().CreateView(pDoc, iTypeView); ! pDoc->AttachView(pNewView); ! AddView(pNewView); ! pNewView->OnInitialUpdate(); ! } } } --- 259,265 ---- { Document *pDoc = pActiveView->GetDocument(); ! int iTypeView = Application::GetApp().GetDocManager().ChooseViewType(Application::GetApp().GetDocManager().FindDocTemplate(pDoc->GetDocTemplate())); if(iTypeView!=-1) ! Application::GetApp().GetDocManager().CreateView(pDoc, (unsigned int)iTypeView); } } Index: DocType.cpp =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/src/DocType.cpp,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** DocType.cpp 14 May 2005 12:15:56 -0000 1.4 --- DocType.cpp 2 Aug 2005 12:50:54 -0000 1.5 *************** *** 29,38 **** using namespace wxDevCenter; - /** - * Tableaux dynamiques de types de documents : - */ - - namespace wxDevCenter - { /** --- 29,32 ---- *************** *** 51,63 **** m_strExt.Add(tkz.GetNextToken()); - // Enregistrement des données de la vue. - RegisterViewTemplate(&m_ViewTemplate); - - // Enregistrement du mini-doc si précisé. - // if(pMiniDocClassInfo!=NULL) - // SetMiniDoc(pMiniDocClassInfo); - - // Déclaration du type de documents. - Application::GetApp().GetDocManager().RegisterDocTemplate(this); } --- 45,48 ---- *************** *** 67,80 **** - // Initialisation. bool DocType::Initialize() { ! return true; } ! // Nettoyage. ! void DocType::Free() { } } --- 52,83 ---- bool DocType::Initialize() { ! if(!DocTemplate::Initialize()) ! return false; ! ! // Enregistrement du mini-doc si précisé. ! // if(pMiniDocClassInfo!=NULL) ! // SetMiniDoc(pMiniDocClassInfo); ! ! // Enregistrement des données de la vue. ! RegisterViewTemplate(&m_ViewTemplate); ! ! return Application::GetApp().GetDocManager().RegisterDocTemplate(this)!=-1; } ! void DocType::Finalize() { + DocTemplate::Finalize(); + Application::GetApp().GetDocManager().UnregisterDocTemplate(this); + } + + bool DocType::Destroy(bool bForce) + { + return DocTemplate::Destroy(bForce); } + bool DocType::CanDestroy() + { + return DocTemplate::CanDestroy(); } Index: Element.cpp =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/src/Element.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Element.cpp 14 May 2005 12:15:56 -0000 1.1 --- Element.cpp 2 Aug 2005 12:50:54 -0000 1.2 *************** *** 51,55 **** m_bIsInit = true; ! wxLogDebug("%p (%s) initialized", this, this->GetClassInfo()->GetClassName()); return true; --- 51,55 ---- m_bIsInit = true; ! wxLogDebug("0x%p (%s) initialized", this, this->GetClassInfo()->GetClassName()); return true; *************** *** 75,79 **** // Fonction virtuelle de test de destruction de l'élément de plugin. ! bool Element::CanDestroy()const { return true; --- 75,79 ---- // Fonction virtuelle de test de destruction de l'élément de plugin. ! bool Element::CanDestroy() { return true; Index: WorkBar.cpp =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/src/WorkBar.cpp,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** WorkBar.cpp 14 May 2005 12:15:56 -0000 1.6 --- WorkBar.cpp 2 Aug 2005 12:50:54 -0000 1.7 *************** *** 60,64 **** } ! bool WorkBarTemplate::CanDestroy()const { return ObjectTemplate<WorkBar>::CanDestroy(); --- 60,64 ---- } ! bool WorkBarTemplate::CanDestroy() { return ObjectTemplate<WorkBar>::CanDestroy(); *************** *** 90,94 **** } ! bool WorkBarType::CanDestroy()const { return false; --- 90,94 ---- } ! bool WorkBarType::CanDestroy() { return false; Index: MDIFrame.cpp =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/src/MDIFrame.cpp,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** MDIFrame.cpp 14 May 2005 12:15:56 -0000 1.6 --- MDIFrame.cpp 2 Aug 2005 12:50:54 -0000 1.7 *************** *** 186,191 **** while(GetPageCount()>0) { ! if(!Application::GetApp().GetDocManager().CloseView((View*)GetPage(0))) ! return false; } return true; --- 186,193 ---- while(GetPageCount()>0) { ! View* pView = wxDynamicCast(GetPage(0), View); ! if(pView) ! if(pView->Destroy(false)) ! return false; } return true; *************** *** 211,215 **** wxWindow* pPage = GetCurrentPage(); if(pPage) ! return pPage->ProcessEvent(event); else return false; --- 213,217 ---- wxWindow* pPage = GetCurrentPage(); if(pPage) ! return wxDynamicCast(pPage, wxWindow)->ProcessEvent(event); else return false; Index: FileSystem.cpp =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/src/FileSystem.cpp,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** FileSystem.cpp 14 May 2005 12:15:56 -0000 1.5 --- FileSystem.cpp 2 Aug 2005 12:50:54 -0000 1.6 *************** *** 234,238 **** FileSystemManager::FileSystemManager(): ! ElementManager<FileSystem>() { } --- 234,239 ---- FileSystemManager::FileSystemManager(): ! Element(), ! ObjectManager<FileSystem>() { } *************** *** 265,269 **** bool FileSystemManager::Register(FileSystem* pFileSystem, bool bMountWorkBar) { ! if(!ElementManager<FileSystem>::Register(pFileSystem)) return false; if(bMountWorkBar) --- 266,270 ---- bool FileSystemManager::Register(FileSystem* pFileSystem, bool bMountWorkBar) { ! if(!ObjectManager<FileSystem>::Register(pFileSystem)) return false; if(bMountWorkBar) *************** *** 276,280 **** { Application::GetApp().GetWorkBarManager().UnregisterWorkBar(CLASSINFO(FileSystemTreeWorkBar), pFileSystem); ! return ElementManager<FileSystem>::Unregister(pFileSystem); } --- 277,281 ---- { Application::GetApp().GetWorkBarManager().UnregisterWorkBar(CLASSINFO(FileSystemTreeWorkBar), pFileSystem); ! return ObjectManager<FileSystem>::Unregister(pFileSystem); } Index: Application.cpp =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/src/Application.cpp,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -d -r1.23 -r1.24 *** Application.cpp 14 May 2005 12:15:56 -0000 1.23 --- Application.cpp 2 Aug 2005 12:50:54 -0000 1.24 *************** *** 219,222 **** --- 219,229 ---- Document *pDoc = m_DocManager.CreateDocument(nDocType); + if(pDoc==NULL) + return false; + if(!pDoc->Initialize()) + { + delete pDoc; + return false; + } if(!pDoc->OnNewDocument()) { *************** *** 226,230 **** View *pView = m_DocManager.CreateView(pDoc, nDocView); ! pDoc->AttachView(pView); m_pMainFrame->AddView(pView); pView->OnInitialUpdate(); --- 233,242 ---- View *pView = m_DocManager.CreateView(pDoc, nDocView); ! if(pView==NULL) ! { ! delete pDoc; ! return false; ! } ! m_pMainFrame->AddView(pView); pView->OnInitialUpdate(); *************** *** 293,297 **** // Création et attache de la vue pView = m_DocManager.CreateView(pDoc, nDocView); ! pDoc->AttachView(pView); m_pMainFrame->AddView(pView); pView->OnInitialUpdate(); --- 305,314 ---- // Création et attache de la vue pView = m_DocManager.CreateView(pDoc, nDocView); ! if(pView==NULL) ! { ! delete pDoc; ! return false; ! } ! m_pMainFrame->AddView(pView); pView->OnInitialUpdate(); Index: DocManager.cpp =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/src/DocManager.cpp,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** DocManager.cpp 14 May 2005 12:15:56 -0000 1.9 --- DocManager.cpp 2 Aug 2005 12:50:54 -0000 1.10 *************** *** 65,69 **** } ! bool DocTemplate::CanDestroy()const { return plugins::PluginItem::CanDestroy(); --- 65,69 ---- } ! bool DocTemplate::CanDestroy() { return plugins::PluginItem::CanDestroy(); *************** *** 98,102 **** DocManager::DocManager(void): ! MultiObjectTemplateManager<Document, DocTemplate>(), m_ViewManager(), m_pDefaultViewContainer(NULL) --- 98,103 ---- DocManager::DocManager(void): ! Element(), ! wxObject(), m_ViewManager(), m_pDefaultViewContainer(NULL) *************** *** 131,159 **** } ! // Crée un document. Document* DocManager::CreateDocument(unsigned int nIndex) { ! Document *pDoc = CreateObject(nIndex); pDoc->m_pDocumentManager = this; ! pDoc->m_pDocumentTemplate = &GetTemplate(nIndex); ! return pDoc; ! } ! // Ferme le document spécifié. ! bool DocManager::CloseDocument(Document *pDoc) ! { ! // On teste si le document peut etre fermé ! if(pDoc->CanCloseDocument()) ! { ! // On ferme toutes les vues attachées au document. ! // Le document sera détruit automatiquement par la fermeture de la dernière vue. ! for(int i = pDoc->m_ViewArray.GetCount()-1; i>=0; i--) ! CloseView(&pDoc->m_ViewArray.Item(i)); ! return true; ! } ! else ! return false; } // Ferme tous les documents ouverts. bool DocManager::CloseAllDocuments() --- 132,149 ---- } ! // Crée un document vièrge. Document* DocManager::CreateDocument(unsigned int nIndex) { ! Document *pDoc = m_TemplateManager.CreateObjectFromTemplate(nIndex); pDoc->m_pDocumentManager = this; ! pDoc->m_pDocumentTemplate = &GetDocTemplate(nIndex); ! if(pDoc->Initialize()) ! return pDoc; ! else ! return NULL; } + // Ferme tous les documents ouverts. bool DocManager::CloseAllDocuments() *************** *** 161,165 **** while(GetDocumentCount()>0) { ! if(!CloseDocument(GetDocument(0))) return false; } --- 151,155 ---- while(GetDocumentCount()>0) { ! if(!GetDocument(0)->Destroy(false)) return false; } *************** *** 175,187 **** } - // Detruit le document spécifié. - void DocManager::DeleteDocument(Document* pDocument) - { - // Pré-ferme le document. - pDocument->OnCloseDocument(); - // Détruit le document (finalise, désenregistre et détruit). - DestroyObject(pDocument); - } - /** --- 165,168 ---- *************** *** 278,291 **** } - // Ajoute un patron de document à la liste des patrons. - int DocManager::RegisterDocTemplate(DocTemplate* pTemplate) - { - if(!RegisterTemplate(pTemplate)) - return -1; - else - return FindTemplate(pTemplate); - } - - --- 259,262 ---- *************** *** 295,308 **** // Crée une vue ! View* DocManager::CreateView(Document *pDoc, unsigned int nViewIndex) { View *pView = NULL; ! DocTemplate *pTemplate = pDoc->m_pDocumentTemplate; ! pView = pTemplate->GetViewTemplate(nViewIndex).CreateObject(); if(pView==NULL) return NULL; ! if(!m_ViewManager.Register(pView)) { delete pView; --- 266,290 ---- // Crée une vue ! View* DocManager::CreateView(Document *pDoc, int iViewIndex) { View *pView = NULL; ! DocTemplate *pTemplate = pDoc->m_pDocumentTemplate; ! // Met le type de vue par défaut. ! /** @todo Changer le type de vue par défaut en demande à l'utilisateur.*/ ! if(iViewIndex==-1) ! iViewIndex = 0; ! ! // Allocation ! pView = pTemplate->GetViewTemplate(iViewIndex).CreateObject(); if(pView==NULL) return NULL; ! // Construction ! pView->m_pViewTemplate = &pTemplate->GetViewTemplate(iViewIndex); ! pView->m_pDocument = pDoc; ! ! // Initialisation ! if(!pView->Initialize()) { delete pView; *************** *** 310,320 **** } ! pView->m_pViewTemplate = &pTemplate->GetViewTemplate(nViewIndex); ! pView->m_pDocument = NULL; ! if(pDoc!=NULL) ! pDoc->AttachView(pView); pView->Create(m_pDefaultViewContainer, -1, wxDefaultPosition, wxDefaultSize, wxNO_BORDER); pView->Hide(); pView->OnCreate(); pView->Show(); return pView; --- 292,300 ---- } ! // Création et affichage pView->Create(m_pDefaultViewContainer, -1, wxDefaultPosition, wxDefaultSize, wxNO_BORDER); pView->Hide(); pView->OnCreate(); + pView->OnInitialUpdate(); pView->Show(); return pView; *************** *** 335,339 **** return NULL; ! if(!m_ViewManager.Register(pView)) { delete pView; --- 315,322 ---- return NULL; ! pView->m_pViewTemplate = pViewTemp; ! pView->m_pDocument = pDoc; ! ! if(!pView->Initialize()) { delete pView; *************** *** 341,351 **** } - pView->m_pViewTemplate = pViewTemp; - pView->m_pDocument = NULL; - if(pDoc!=NULL) - pDoc->AttachView(pView); pView->Create(m_pDefaultViewContainer, -1, wxDefaultPosition, wxDefaultSize, wxNO_BORDER); pView->Hide(); pView->OnCreate(); pView->Show(); return pView; --- 324,331 ---- } pView->Create(m_pDefaultViewContainer, -1, wxDefaultPosition, wxDefaultSize, wxNO_BORDER); pView->Hide(); pView->OnCreate(); + pView->OnInitialUpdate(); pView->Show(); return pView; *************** *** 368,377 **** DeleteView(pView); - //On ferme le document si il n'a plus de vue. - if(pDoc->m_ViewArray.GetCount()==0) - { - DeleteDocument(pDoc); - } - return true; } --- 348,351 ---- *************** *** 380,394 **** void DocManager::DeleteView(View *pView) { ! // Processus pre-fermeture de la vue. ! pView->OnClose(); ! ! // Détache la vue du document. ! pView->GetDocument()->DetachView(pView); ! ! // Destruction de la vue. ! pView->GetFrame()->RemoveView(pView); ! ! // Désenregistre la vue (désinscrit la vue, la finalize et la détruit). ! m_ViewManager.Unregister(pView); } --- 354,358 ---- void DocManager::DeleteView(View *pView) { ! pView->Destroy(true); } Index: Document.cpp =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/src/Document.cpp,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** Document.cpp 14 May 2005 12:15:56 -0000 1.11 --- Document.cpp 2 Aug 2005 12:50:54 -0000 1.12 *************** *** 55,58 **** --- 55,97 ---- ////////////////////////////////////////////////////////////////////// + // Fonctions d'interface d'élément. + + bool Document::Initialize() + { + if(!Element::Initialize()) + return false; + + if(!Application::GetApp().GetDocManager().RegisterDocument(this)) + return false; + + return true; + } + + void Document::Finalize() + { + OnCloseDocument(); + Application::GetApp().GetDocManager().UnregisterDocument(this); + Element::Finalize(); + } + + bool Document::Destroy(bool bForce) + { + if(!bForce) + if(!CanCloseDocument()) + return false; + + while(m_ViewArray.GetCount()>0) + m_ViewArray[0].Destroy(bForce); + + return Element::Destroy(bForce); + } + + bool Document::CanDestroy() + { + return Element::CanDestroy() && CanCloseDocument(); + } + + + ////////////////////////////////////////////////////////////////////// // Etat du document *************** *** 119,138 **** } - // Attache la vue en parametre au document - void Document::AttachView(View *pView) - { - if(pView->m_pDocument!=NULL) - pView->m_pDocument->DetachView(pView); - pView->m_pDocument = this; - m_ViewArray.Register(pView); - } - - // Détache la vue en parametre du document - void Document::DetachView(View *pView) - { - m_ViewArray.Unregister(pView); - pView->m_pDocument = NULL; - } - ////////////////////////////////////////////////////////////////////// // Processus de sérialisation du document --- 158,161 ---- *************** *** 222,226 **** return SaveModified(); break; ! case wxNO: // Ne pas enregistrer mais fermer return true; break; --- 245,250 ---- return SaveModified(); break; ! case wxNO: // Ne pas enregistrer mais fermer donc marquer le document comme sauvegardé ! m_bIsDocumentModified = false; return true; break; Index: View.cpp =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/src/View.cpp,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** View.cpp 14 May 2005 12:15:56 -0000 1.6 --- View.cpp 2 Aug 2005 12:50:54 -0000 1.7 *************** *** 53,56 **** --- 53,108 ---- + ////////////////////////////////////////////////////////////////////// + // Fonctions virtuelles d'interface Elément + + bool View::Initialize() + { + Element::Initialize(); + + if(m_pDocument!=NULL) + if(!m_pDocument->RegisterView(this)) + return false; + if(!Application::GetApp().GetDocManager().RegisterView(this)) + { + if(m_pDocument!=NULL) + m_pDocument->UnregisterView(this); + return false; + } + if(!((ObjectManager<wxDevCenter::View>*)m_pViewTemplate)->Register(this)) + { + if(m_pDocument!=NULL) + m_pDocument->UnregisterView(this); + Application::GetApp().GetDocManager().UnregisterView(this); + return false; + } + return true; + } + + void View::Finalize() + { + m_pChildFrame->RemoveView(this); + if(m_pDocument!=NULL) + m_pDocument->UnregisterView(this); + ((ObjectManager<wxDevCenter::View>*)m_pViewTemplate)->Unregister(this); + Application::GetApp().GetDocManager().UnregisterView(this); + Element::Finalize(); + } + + bool View::Destroy(bool bForce) + { + // Processus pre-fermeture de la vue. + OnClose(); + return Element::Destroy(bForce); + } + + bool View::CanDestroy() + { + if(!m_pDocument->CanDestroy()) + return false; + return Element::CanDestroy(); + } + + + // Fixe le texte du status de la vue. void View::SetStatusText(wxString strText) |
|
From: Emilien K. <cur...@us...> - 2005-08-02 12:51:07
|
Update of /cvsroot/wxdevcenter/wxDevCenter/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23161/include Modified Files: wxDevCenter.h Log Message: Passage à la nouvelle architecture basée sur la classe Element. Index: wxDevCenter.h =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/include/wxDevCenter.h,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** wxDevCenter.h 14 May 2005 12:15:54 -0000 1.3 --- wxDevCenter.h 2 Aug 2005 12:50:54 -0000 1.4 *************** *** 43,46 **** --- 43,51 ---- + #undef wxIMPLEMENT_CLASS_COMMON2 + #define wxIMPLEMENT_CLASS_COMMON2(name, basename1, basename2, func) \ + wxIMPLEMENT_CLASS_COMMON(name, basename1, &basename2::ms_classInfo, func) + + // Definition des macros d'import/export de symboles #define WXDC_DLL_EXPORT WXEXPORT *************** *** 59,65 **** #include <wxDevCenter/language.h> - // Insertion de la configuration. - #include <wxDevCenter/setup.h> - // Entete globale de l'application. #include <wxDevCenter/Element.h> --- 64,67 ---- |
|
From: Emilien K. <cur...@us...> - 2005-08-02 12:51:07
|
Update of /cvsroot/wxdevcenter/wxDevCenter/build In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23161/build Modified Files: wxDevCenter.bkl Log Message: Passage à la nouvelle architecture basée sur la classe Element. Index: wxDevCenter.bkl =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/build/wxDevCenter.bkl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** wxDevCenter.bkl 14 May 2005 12:15:54 -0000 1.2 --- wxDevCenter.bkl 2 Aug 2005 12:50:54 -0000 1.3 *************** *** 87,91 **** <win32-res>res-win32/wxDevCenter.rc</win32-res> ! <win32-res>res-win32/wxDevCenter.fragment.manifest</win32-res> <wxlib /> --- 87,91 ---- <win32-res>res-win32/wxDevCenter.rc</win32-res> ! <!--<win32-res>res-win32/wxDevCenter.fragment.manifest</win32-res>--> <wxlib /> |
|
From: Emilien K. <cur...@us...> - 2005-05-17 09:46:48
|
Update of /cvsroot/wxdevcenter/web/fr/doc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3767/fr/doc Modified Files: submenu.inc.php Added Files: techdoc.php Log Message: Ajout du fichier de documentation technique. Index: submenu.inc.php =================================================================== RCS file: /cvsroot/wxdevcenter/web/fr/doc/submenu.inc.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** submenu.inc.php 16 May 2005 13:22:13 -0000 1.1 --- submenu.inc.php 17 May 2005 09:46:39 -0000 1.2 *************** *** 1,7 **** <?php ! $submenu = array("<a href=\"./index.php\">Index</a>"); $submenuIndex = 0; ?> \ No newline at end of file --- 1,9 ---- <?php ! $submenu = array("<a href=\"./index.php\">Index</a>", ! "<a href=\"./techdoc.php\">Doc technique</a>"); $submenuIndex = 0; + $submenuTechDoc = 1; ?> \ No newline at end of file --- NEW FILE: techdoc.php --- <?php include ("../../page.inc.php"); include("submenu.inc.php"); WritePageHead("wxDevCenter > Documentation", "Documentation technique", $menuFR, $menuDoc, $submenu, $submenuTechDoc); ?> <div class="sideBox"> <h1>Documentation technique</h1> <ul> <li></li> </ul> </div> <div class="mainPage"> <h1 id="doctech">Documentation technique.</h1> </div> <?php WritePageFoot(); ?> |
|
From: Emilien K. <cur...@us...> - 2005-05-17 09:34:05
|
Update of /cvsroot/wxdevcenter/web In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31431 Modified Files: page.inc.php Log Message: Global path. Index: page.inc.php =================================================================== RCS file: /cvsroot/wxdevcenter/web/page.inc.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** page.inc.php 16 May 2005 13:22:13 -0000 1.1 --- page.inc.php 17 May 2005 09:33:45 -0000 1.2 *************** *** 2,7 **** ! $globalpath = "http://localhost/wxDevCenter"; ! //$globalpath = "http://wxdevcenter.sourceforge.net"; $menuFR = array("<a href=\"$globalpath/fr/\">Commun</a>", --- 2,7 ---- ! //$globalpath = "http://localhost/wxDevCenter"; ! $globalpath = "http://wxdevcenter.sourceforge.net"; $menuFR = array("<a href=\"$globalpath/fr/\">Commun</a>", |