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-04-25 15:40:39
|
Update of /cvsroot/wxdevcenter/StdPlugin/include/wxDevCenter/StdPlugin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32116/include/wxDevCenter/StdPlugin Modified Files: BitmapDocView.h Log Message: Nouvelle archi des bakefiles. Index: BitmapDocView.h =================================================================== RCS file: /cvsroot/wxdevcenter/StdPlugin/include/wxDevCenter/StdPlugin/BitmapDocView.h,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** BitmapDocView.h 12 Apr 2005 12:10:55 -0000 1.18 --- BitmapDocView.h 25 Apr 2005 15:40:14 -0000 1.19 *************** *** 420,424 **** /** Type de mises à jours des vues.*/ ! enum { BmpDocUpdateAll = 0, BmpDocUpdateDraw = 1, // r = zone de mise à jour (largeur de trait inclus). --- 420,424 ---- /** Type de mises à jours des vues.*/ ! enum BmpDocUpdateMode{ BmpDocUpdateAll = 0, BmpDocUpdateDraw = 1, // r = zone de mise à jour (largeur de trait inclus). *************** *** 549,552 **** --- 549,556 ---- /** @}*/ + /** Interception de la mise à jour des workbar. + * Sert à activer la workbar de dessin et à désactiver les autres.*/ + void OnUpdateWorkBar(wxUpdateUIEvent& event); + public: /** Demande un changement d'outil. |
|
From: Emilien K. <cur...@us...> - 2005-04-25 15:40:38
|
Update of /cvsroot/wxdevcenter/StdPlugin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32116 Modified Files: StdPlugin.bkl Removed Files: wx.bkl Log Message: Nouvelle archi des bakefiles. --- wx.bkl DELETED --- Index: StdPlugin.bkl =================================================================== RCS file: /cvsroot/wxdevcenter/StdPlugin/StdPlugin.bkl,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** StdPlugin.bkl 28 Feb 2005 20:22:12 -0000 1.4 --- StdPlugin.bkl 25 Apr 2005 15:40:13 -0000 1.5 *************** *** 2,177 **** <makefile> ! <set var="DEFSHARED_VALUE">1</set><!-- wxDevCenter do not work in static mode. --> ! <set var="DEFWXVER_VALUE">2_5</set><!-- wxDevCenter do not work with wx24API. --> ! ! <set var="WXLIB_FL">1</set><!-- wxDevCenter require wxFrameLayout. --> ! <set var="WXLIB_STC">1</set><!-- wxDevCenter require wxStyledTextCtrl. --> ! ! <include file="wx.bkl"/> ! ! <using module="datafiles"/> ! ! <option name="WXWIN" category="path"> ! <default-value>c:\wxWidgets</default-value> ! <description>The wxWidgets library main folder</description> ! </option> ! ! <set var="DIRSPEC"> ! <if cond="PLATFORM_WIN32=='1'">msw</if> ! <if cond="PLATFORM_UNIX =='1'">unix</if> ! </set> ! ! <set var="DEBUGFLAG"> ! <if cond="BUILD=='debug'">d</if> ! </set> ! ! <dll id="StdPlugin" template="wxbase"> ! <libname>StdPlugin$(DEBUGFLAG)</libname> ! ! <if cond="FORMAT!='autoconf'"> ! <include>$(WXWIN)\include</include> ! <include>$(WXWIN)$(WXLIBINCLUDE)</include> ! <lib-path>$(WXWIN)$(WXLIBPATH)</lib-path> ! </if> ! ! <include>include</include> ! <precomp-headers>on</precomp-headers> ! <precomp-headers-header>wxDevCenter.h</precomp-headers-header> ! <sources> ! src/BitmapCtrl.cpp ! src/BitmapDocView.cpp ! src/Controls.cpp ! src/extMouse.cpp ! src/OrganigramPanel.cpp ! src/SimpleTextDocView.cpp ! src/StdPlugin.cpp ! </sources> ! <win32-res>res-win32/wxDevCenter.rc</win32-res> ! ! <wxlibs/> ! <syslibs/> ! ! <install-to>$(LIBDIR)/wxDevCenter/plugins</install-to> ! </dll> ! ! <!-- Install headers. --> ! <data-files-tree > ! <srcdir>include/wxDevCenter</srcdir> ! <install-to>$(INCLUDEDIR)/wxDevCenter</install-to> ! <files> ! StdPlugin.h ! StdPlugin/BitmapCtrl.h ! StdPlugin/BitmapDocView.h ! StdPlugin/Controls.h ! StdPlugin/extmouse.h ! StdPlugin/language.h ! StdPlugin/OrganigramPanel.h ! StdPlugin/SimpleTextDocView.h ! </files> ! </data-files-tree> ! ! <!-- Install data. --> ! <data-files-tree > ! <srcdir>data</srcdir> ! <install-to>$(DATADIR)/wxDevCenter/data</install-to> ! <files> ! icons/filetypes/bmp.ico ! icons/filetypes/txt.ico ! img/scintilla.png ! img/bmp/brush.png ! img/bmp/DOT.png ! img/bmp/DOT_DASH.PNG ! img/bmp/ellipse.png ! img/bmp/handdraw.png ! img/bmp/line.png ! img/bmp/LONG_DASH.PNG ! img/bmp/rect.png ! img/bmp/rrect.png ! img/bmp/selall.png ! img/bmp/selcopy.png ! img/bmp/selcut.png ! img/bmp/selection.png ! img/bmp/selmove.png ! img/bmp/selpaste.png ! img/bmp/selremove.png ! img/bmp/sizeall.png ! img/bmp/SHORT_DASH.PNG ! img/bmp/SOLID.PNG ! img/bmp/spray.png ! img/bmp/TRANSPARENT.PNG ! </files> ! </data-files-tree> - <!-- Install data. --> - <data-files-tree > - <srcdir>conf</srcdir> - <install-to>$(DATADIR)/wxDevCenter/conf</install-to> - <files> - Text.conf - Text/.conf - Text/ADA.conf - Text/APDL.conf - Text/ASM.conf - Text/ASP.conf - Text/AU3.conf - Text/AVE.conf - Text/BAAM.conf - Text/BASH.conf - Text/Batch.conf - Text/Bullant.conf - Text/CLW no case.conf - Text/CLW.conf - Text/Config.conf - Text/CPP no case.conf - Text/CPP.conf - Text/CSS.conf - Text/Diff.conf - Text/Eiffel.conf - Text/EiffelKW.conf - Text/ERLANG.conf - Text/Error list.conf - Text/ESCRIPT.conf - Text/F77.conf - Text/FORTH.conf - Text/Fortran.conf - Text/GUI2CLI.conf - Text/HTML.conf - Text/KIX.conf - Text/LaTeX.conf - Text/Lisp.conf - Text/LOT.conf - Text/LOUT.conf - Text/LUA.conf - Text/Makefile.conf - Text/MATLab.conf - Text/METAPOST.conf - Text/MMIXAL.conf - Text/MS-SQL.conf - Text/NN Cron Table.conf - Text/NSIS.conf - Text/Octave.conf - Text/Pascal.conf - Text/Perl.conf - Text/PHP.conf - Text/POV.conf - Text/Power Basic.conf - Text/Properties.conf - Text/PS.conf - Text/Python.conf - Text/Ruby.conf - Text/Scriptol.conf - Text/SPECMAN.conf - Text/SQL.conf - Text/TCL.conf - Text/TeX.conf - Text/Text.conf - Text/Verilog.conf - Text/Visual Basic Script.conf - Text/Visual Basic.conf - Text/XCode.conf - Text/XML.conf - Text/YAML.conf - </files> - </data-files-tree> </makefile> --- 2,9 ---- <makefile> ! <include file="build/wx.bkl" /> ! <include file="build/StdPlugin.bkl" /> ! <include file="build/install.bkl" /> </makefile> |
|
From: Emilien K. <cur...@us...> - 2005-04-25 15:40:22
|
Update of /cvsroot/wxdevcenter/StdPlugin/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32116/src Modified Files: BitmapDocView.cpp SimpleTextDocView.cpp Log Message: Nouvelle archi des bakefiles. Index: SimpleTextDocView.cpp =================================================================== RCS file: /cvsroot/wxdevcenter/StdPlugin/src/SimpleTextDocView.cpp,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** SimpleTextDocView.cpp 16 Mar 2005 14:26:35 -0000 1.10 --- SimpleTextDocView.cpp 25 Apr 2005 15:40:14 -0000 1.11 *************** *** 36,43 **** --- 36,59 ---- #include <stdio.h> + + + using namespace wxDevCenter; using namespace StdPlugin::Text; + /** Définition du type de document 'Texte simple'.*/ + wxDevCenter::DocType TxtType(WXDC_DOCTYPE_TEXT_NAME, CLASSINFO(SimpleTextDocument), WXDC_DOCTYPE_TEXT_DESCRIPT, wxT("txt;log"), + WXDC_VIEWTYPE_TEXT_NAME, CLASSINFO(SimpleTextView), WXDC_VIEWTYPE_TEXT_DESCRIPT, wxT("filetypes/txt")); + + /** Définition du type de document 'Programme CPP'.*/ + wxDevCenter::DocType CppType(WXDC_DOCTYPE_CPP_NAME, CLASSINFO(SimpleTextDocument), WXDC_DOCTYPE_CPP_DESCRIPT, "c;cpp;cxx;h;hpp;hxx;cc;hh;java", + WXDC_VIEWTYPE_TEXT_NAME, CLASSINFO(SimpleTextView), WXDC_VIEWTYPE_TEXT_DESCRIPT, "filetypes/txt"); + + /** Définition du type de document 'Script LUA'.*/ + wxDevCenter::DocType LuaType(WXDC_DOCTYPE_LUA_NAME, CLASSINFO(SimpleTextDocument), WXDC_DOCTYPE_LUA_DESCRIPT, "lua", + WXDC_VIEWTYPE_TEXT_NAME, CLASSINFO(SimpleTextView), WXDC_VIEWTYPE_TEXT_DESCRIPT, "filetypes/txt"); + + IMPLEMENT_DYNAMIC_CLASS(SimpleTextView, wxDevCenter::View) Index: BitmapDocView.cpp =================================================================== RCS file: /cvsroot/wxdevcenter/StdPlugin/src/BitmapDocView.cpp,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -d -r1.23 -r1.24 *** BitmapDocView.cpp 12 Apr 2005 12:10:55 -0000 1.23 --- BitmapDocView.cpp 25 Apr 2005 15:40:14 -0000 1.24 *************** *** 21,24 **** --- 21,31 ---- + /** Définition du type de document 'Image Bitmap'.*/ + wxDevCenter::DocType BitmapType(WXDC_DOCTYPE_IMAGE_NAME, CLASSINFO(BitmapDocument), WXDC_DOCTYPE_IMAGE_DESCRIPT, wxT("bmp;gif;png;tiff;jpg;jpeg"), + WXDC_VIEWTYPE_IMAGE_STD_NAME, CLASSINFO(BitmapView), WXDC_VIEWTYPE_IMAGE_STD_DESCRIPT, wxT("filetypes/bmp"), CLASSINFO(BitmapMiniDoc)); + + + + /** Fonction de tracé de ligne dans une bitmap.*/ void BitmapDrawLine(wxBitmap& bmp, wxPoint pos1, wxPoint pos2, const wxPen& pen) *************** *** 918,921 **** --- 925,931 ---- EVT_MENU_RANGE(ID_PEN_STYLE_FIRST, ID_PEN_STYLE_LAST, BitmapView::OnPenStyle) EVT_TEXT(ID_PEN_SIZE, BitmapView::OnPenSizeChange) + + EVT_UPDATE_UI(-1, BitmapView::OnUpdateWorkBar) + END_EVENT_TABLE() *************** *** 1060,1063 **** --- 1070,1075 ---- case BitmapDocument::BmpDocUpdateSel: wxLogDebug(" Selection"); + m_pBitmapCtrl->ClearSaveBitmap(); + UpdateBitmapContent(wxRect(0, 0, GetDocument()->GetBitmap().GetWidth(), GetDocument()->GetBitmap().GetHeight())); m_pBitmapCtrl->Refresh(); *************** *** 1554,1558 **** } ! ////////////////////////////////////////////////////////////////////// --- 1566,1577 ---- } ! // Interception de la mise à jour des workbar. ! void BitmapView::OnUpdateWorkBar(wxUpdateUIEvent& event) ! { ! wxObject *pObj = event.GetEventObject(); ! if(pObj!=NULL) ! event.Enable(wxDynamicCast(pObj, BitmapWorkBar)!=NULL); ! event.Skip(); ! } ////////////////////////////////////////////////////////////////////// |
|
From: Emilien K. <cur...@us...> - 2005-04-24 16:11:05
|
Update of /cvsroot/wxdevcenter/wxDevCenter In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15945 Modified Files: wxDevCenter.bkl Log Message: Index: wxDevCenter.bkl =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/wxDevCenter.bkl,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** wxDevCenter.bkl 23 Apr 2005 16:30:21 -0000 1.10 --- wxDevCenter.bkl 24 Apr 2005 16:10:56 -0000 1.11 *************** *** 2,138 **** <makefile> - <include file="build/wx.bkl" /> - <using module="datafiles" /> - - - <!-- Determine what plateform is used. --> - <set var="DIRSPEC"> - <if cond="PLATFORM_WIN32=='1'">msw</if> - <if cond="PLATFORM_UNIX =='1'">unix</if> - </set> - - <!-- Set the build directory. --> - <set var="BUILDDIR">.$(DIRSEP)build$(DIRSEP)$(BUILD)</set> - - - - <lib id="specific" template="wxLib"> - <include>include</include> - <!-- <precomp-headers>on</precomp-headers> --> - <!-- <precomp-headers-header>wxDevCenter.h</precomp-headers-header> --> - - <sources> - src/$(DIRSPEC)/Config.cpp - src/$(DIRSPEC)/FileSystemStandard.cpp - </sources> - - <wxlib /> - <wxlib-base>xml</wxlib-base> - <wxlib-gui>adv</wxlib-gui> - </lib> - - - - <exe id="wxDevCenter" template="wxEXE"> - <app-type>gui</app-type> - <exename>wxDevCenter$(SUFFIX)</exename> - <depends>specific</depends> - <library>specific</library> - - <include>include</include> - <!-- <precomp-headers>on</precomp-headers> --> - <!-- <precomp-headers-header>wxDevCenter.h</precomp-headers-header> --> - - <sources> - src/AboutBox.cpp - src/Application.cpp - src/Config.cpp - src/DocManager.cpp - src/DocType.cpp - src/Document.cpp - src/FileSystem.cpp - src/FileSystemCtrl.cpp - src/FileSystemStandard.cpp - src/FileTools.cpp - src/Frame.cpp - src/MainFrame.cpp - src/Manager.cpp - src/MDIFrame.cpp - src/MiniView.cpp - src/Plugin.cpp - src/Project.cpp - src/StatusBar.cpp - src/View.cpp - src/WorkBar.cpp - </sources> - <!-- <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>adv</wxlib-gui> - - <install-to>$(BINDIR)</install-to> - </exe> ! <!-- Install headers. --> ! <data-files-tree > ! <srcdir>include</srcdir> ! <install-to>$(INCLUDEDIR)</install-to> ! <files> ! wxDevCenter.h ! wxDevCenterPlugin.h ! wxDevCenter/AboutBox.h ! wxDevCenter/Application.h ! wxDevCenter/Config.h ! wxDevCenter/DocView.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/$(DIRSPEC)/Config.h ! wxDevCenter/$(DIRSPEC)/FileSystemStandard.h ! </files> ! </data-files-tree> ! ! <!-- Install data. --> ! <data-files-tree > ! <srcdir>data</srcdir> ! <install-to>$(DATADIR)/wxDevCenter/data</install-to> ! <files> ! 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 ! </files> ! </data-files-tree> </makefile> --- 2,10 ---- <makefile> <include file="build/wx.bkl" /> + <include file="build/wxDevCenter.bkl" /> ! <include file="build/install.bkl" /> </makefile> |
|
From: Emilien K. <cur...@us...> - 2005-04-24 16:11:05
|
Update of /cvsroot/wxdevcenter/wxDevCenter/build In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15945/build Modified Files: wx.bkl Added Files: install.bkl wxDevCenter.bkl Log Message: Index: wx.bkl =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/build/wx.bkl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** wx.bkl 23 Apr 2005 16:31:06 -0000 1.1 --- wx.bkl 24 Apr 2005 16:10:56 -0000 1.2 *************** *** 2,5 **** --- 2,6 ---- <makefile> + <!-- Options --> --- NEW FILE: install.bkl --- <?xml version="1.0" ?> <makefile> <using module="datafiles" /> <!-- Install headers. --> <data-files-tree > <srcdir>include</srcdir> <install-to>$(INCLUDEDIR)</install-to> <files> wxDevCenter.h wxDevCenterPlugin.h wxDevCenter/AboutBox.h wxDevCenter/Application.h wxDevCenter/Config.h wxDevCenter/DocView.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/$(DIRSPEC)/Config.h wxDevCenter/$(DIRSPEC)/FileSystemStandard.h </files> </data-files-tree> <!-- Install data. --> <data-files-tree > <srcdir>data</srcdir> <install-to>$(DATADIR)/wxDevCenter/data</install-to> <files> 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 </files> </data-files-tree> </makefile> --- NEW FILE: wxDevCenter.bkl --- <?xml version="1.0" ?> <makefile> <!-- Determine what plateform is used. --> <set var="DIRSPEC"> <if cond="PLATFORM_WIN32=='1'">msw</if> <if cond="PLATFORM_UNIX =='1'">unix</if> </set> <!-- Set the build directory. --> <set var="BUILDDIR">.$(DIRSEP)build$(DIRSEP)$(BUILD)</set> <lib id="specific" template="wxLib"> <include>include</include> <sources> src/$(DIRSPEC)/Config.cpp src/$(DIRSPEC)/FileSystemStandard.cpp </sources> <wxlib /> <wxlib-base>xml</wxlib-base> <wxlib-gui>adv</wxlib-gui> </lib> <exe id="wxDevCenter" template="wxEXE"> <app-type>gui</app-type> <exename>wxDevCenter$(SUFFIX)</exename> <depends>specific</depends> <library>specific</library> <include>include</include> <sources> src/AboutBox.cpp src/Application.cpp src/Config.cpp src/DocManager.cpp src/DocType.cpp src/Document.cpp src/FileSystem.cpp src/FileSystemCtrl.cpp src/FileSystemStandard.cpp src/FileTools.cpp src/Frame.cpp src/MainFrame.cpp src/Manager.cpp src/MDIFrame.cpp src/MiniView.cpp src/Plugin.cpp src/Project.cpp src/StatusBar.cpp src/View.cpp src/WorkBar.cpp </sources> <!-- <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>adv</wxlib-gui> <install-to>$(BINDIR)</install-to> </exe> </makefile> |
|
From: Emilien K. <cur...@us...> - 2005-04-24 15:31:11
|
Update of /cvsroot/wxdevcenter/StdPlugin/build In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29926/build Log Message: Directory /cvsroot/wxdevcenter/StdPlugin/build added to the repository |
|
From: Emilien K. <cur...@us...> - 2005-04-23 16:31:15
|
Update of /cvsroot/wxdevcenter/wxDevCenter/build In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25580/build Added Files: wx.bkl Log Message: Nouvelle version du bakefile wx. --- NEW FILE: wx.bkl --- <?xml version="1.0" ?> <makefile> <!-- Options --> <!-- Static or shared library compilation. --> <option name="SHARED"> <values>0,1</values> <values-description>LIB,DLL</values-description> <default-value>0</default-value> <description> What type of library to build ? </description> </option> <!-- Unicode strings or not (unicode or ansi). --> <option name="UNICODE"> <values>0,1</values> <values-description>ANSI,Unicode</values-description> <default-value>0</default-value> <description> Compile Unicode build of wxWidgets ? </description> </option> <!-- Build mode. --> <option name="BUILD"> <values>debug,release</values> <values-description>Debug,Release</values-description> <default-value>debug</default-value> <description> Type of compiled binaries. </description> </option> <!-- wxWidgets version. --> <option name="WXVER"> <values>25, 26</values> <values-description>wx2.5.x, wx2.6.x</values-description> <default-value>25</default-value> <description> Version of wxWidgets. </description> </option> <!-- 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> </option> <!-- Variables declarations. --> <!-- ISDLL : 1 if choose to compile library for dynamic use. --> <set var="ISDLL" cond="SHARED=='1'">1</set> <set var="ISDLL" cond="SHARED=='0'">0</set> <!-- Preporcessor definition to say if wx is used in shared mode. --> <set var="WXUSINGDLL"> <if cond="SHARED=='1'">WXUSINGDLL</if> </set> <set var="SUFFIX"> <if cond="BUILD=='debug'">D</if> </set> <!-- UNICODE_DEFINE : Preprocessor definition for unicode use. --> <set var="UNICODE_DEFINE"> <if cond="FORMAT!='autoconf' and UNICODE=='1'">_UNICODE</if> </set> <set var="DEBUG_DEFINE"> <if cond="FORMAT!='autoconf' and BUILD=='debug'">__WXDEBUG__</if> </set> <!-- DEBUGINFO : is debug mode actived ? --> <set var="DEBUGINFO"> <if cond="BUILD=='debug'">on</if> <if cond="BUILD=='release'">off</if> </set> <!-- DEBUGRUNTIME : is runtime debug library used ? --> <set var="DEBUGRUNTIME"> <if cond="BUILD=='debug'">on</if> <if cond="BUILD=='release'">off</if> </set> <!-- OPTIMIZEFLAG : type of optimization. --> <set var="OPTIMIZEFLAG"> <if cond="BUILD=='debug'">off</if> <if cond="BUILD=='release'">speed</if> </set> <!-- WARNINGS : level of compilation warning to show. --> <set var="WARNINGS"> <if cond="BUILD=='debug'">max</if> <if cond="BUILD=='release'">no</if> </set> <!-- wxWidgets libraries string flags. --> <set var="WXLIBPOSTFIX"> <if cond="BUILD=='debug' and UNICODE=='1'">ud</if> <if cond="BUILD=='debug' and UNICODE=='0'">d</if> <if cond="BUILD=='release' and UNICODE=='1'">u</if> </set> <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> <!-- wxWidgets library tag. --> <!-- wxWidgets lib. --> <define-tag name="wxlib" rules="exe,dll,lib"> <if cond="TARGETING_WIN32=='1'"> <sys-lib>$(WXNAMEPREFIX)</sys-lib> </if> <if cond="TARGETING_WIN32=='0'"> <sys-lib>lib$(WXNAMEPREFIX)$(WXVERSIONTAG)</sys-lib> </if> </define-tag> <!-- wxWidgets base lib. Can be : net, odbc, xml. --> <define-tag name="wxlib-base" rules="exe,dll,lib"> <if cond="TARGETING_WIN32=='1'"> <sys-lib>$(WXNAMEPREFIX)_$(value)</sys-lib> </if> <if cond="TARGETING_WIN32=='0'"> <sys-lib>lib$(WXNAMEPREFIX)_$(value)$(WXVERSIONTAG)</sys-lib> </if> </define-tag> <!-- wxWidgets GUI lib. Can be : adv, animate, core, dbgrid, deprecated, fl, gizmos, gl, html, mmedia, ogl, plot, stc, svg, xrc. --> <define-tag name="wxlib-gui" rules="exe,dll,lib"> <if cond="TARGETING_WIN32=='1'"> <sys-lib>$(WXNAMEPREFIXGUI)_$(value)</sys-lib> </if> <if cond="TARGETING_WIN32=='0'"> <sys-lib>lib$(WXNAMEPREFIXGUI)_$(value)$(WXVERSIONTAG)</sys-lib> </if> </define-tag> <!-- wxWidgets dependent lib. Can be : expat, jpeg, png, regex, tiff, zlib. --> <define-tag name="wxlib-depend" rules="exe,dll,lib"> <if cond="TARGETING_WIN32=='1'"> <sys-lib>wx$(value)$(WXLIBPOSTFIX)</sys-lib> </if> <if cond="TARGETING_WIN32=='0'"> <sys-lib>lib$(WXNAMEPREFIX)$(WXVERSIONTAG)</sys-lib> <!-- Already in wxlib. --> </if> </define-tag> <!-- Template definitions. --> <!-- Base for all target using wxWidgets. --> <template id="wxBase"> <cxx-rtti>on</cxx-rtti> <cxx-exceptions>on</cxx-exceptions> <threading>multi</threading> <warnings>$(WARNINGS)</warnings> <define>$(UNICODE_DEFINE)</define> <define>$(DEBUG_DEFINE)</define> <optimize>$(OPTIMIZEFLAG)</optimize> <debug-info>$(DEBUGINFO)</debug-info> <debug-runtime-libs>$(DEBUGRUNTIME)</debug-runtime-libs> <define>$(WXUSINGDLL)</define> </template> <!-- Lib based on wxWidgets. --> <template id="wxLib" template="wxBase"> </template> <!-- Base for module (dll or exe) based on wxWidgets. --> <template id="wxModule" template="wxBase"> <!-- If targeting the Windows OS, link with the libraries manually. --> <if cond="FORMAT!='autoconf' and FORMAT!='gnu'"> <if cond="FORMAT=='borland'"> <sys-lib>ole2w32</sys-lib> </if> <if cond="FORMAT!='borland'"> <sys-lib>kernel32</sys-lib> <sys-lib>user32</sys-lib> <sys-lib>gdi32</sys-lib> <sys-lib>comdlg32</sys-lib> <sys-lib>winspool</sys-lib> <sys-lib>winmm</sys-lib> <sys-lib>shell32</sys-lib> <sys-lib>comctl32</sys-lib> <sys-lib>odbc32</sys-lib> <sys-lib>ole32</sys-lib> <sys-lib>oleaut32</sys-lib> <sys-lib>uuid</sys-lib> <sys-lib>rpcrt4</sys-lib> <sys-lib>advapi32</sys-lib> <sys-lib>wsock32</sys-lib> </if> <if cond="FORMAT=='msvc' or FORMAT=='msvc6prj' or FORMAT=='borland'"> <sys-lib>oleacc</sys-lib> </if> </if> <!-- end if windows. --> <wxlib /> </template> <template id="wxDLL" template="wxModule"> </template> <template id="wxEXE" template="wxModule"> </template> </makefile> |
|
From: Emilien K. <cur...@us...> - 2005-04-23 16:30:30
|
Update of /cvsroot/wxdevcenter/wxDevCenter In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25286 Modified Files: wxDevCenter.bkl Log Message: Nouvelle version du bakefile wx. Index: wxDevCenter.bkl =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/wxDevCenter.bkl,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** wxDevCenter.bkl 16 Mar 2005 14:27:39 -0000 1.9 --- wxDevCenter.bkl 23 Apr 2005 16:30:21 -0000 1.10 *************** *** 2,22 **** <makefile> - <set var="DEFSHARED_VALUE">1</set><!-- wxDevCenter do not work in static mode. --> - <set var="DEFWXVER_VALUE">2_5</set><!-- wxDevCenter do not work with wx24API. --> - - <set var="WXLIB_FL">1</set><!-- wxDevCenter require wxFrameLayout. --> - <set var="WXLIB_STC">1</set><!-- wxDevCenter require wxStyledTextCtrl. --> - - <include file="wx.bkl"/> - - <using module="datafiles"/> - - <option name="WXWIN" category="path"> - <default-value>c:\wxWidgets</default-value> - <description>The wxWidgets library main folder</description> - </option> <set var="DIRSPEC"> <if cond="PLATFORM_WIN32=='1'">msw</if> --- 2,11 ---- <makefile> + <include file="build/wx.bkl" /> + <using module="datafiles" /> + <!-- Determine what plateform is used. --> <set var="DIRSPEC"> <if cond="PLATFORM_WIN32=='1'">msw</if> *************** *** 24,43 **** </set> ! <set var="DEBUGFLAG"> ! <if cond="BUILD=='debug'">d</if> ! </set> ! <lib id="specific" template="wxbase"> ! <if cond="FORMAT!='autoconf' and FORMAT!='gnu'"> ! <include>$(WXWIN)\include</include> ! <include>$(WXWIN)$(WXLIBINCLUDE)</include> ! <lib-path>$(WXWIN)$(WXLIBPATH)</lib-path> ! </if> ! <include>include</include> ! <precomp-headers>on</precomp-headers> ! <precomp-headers-header>wxDevCenter.h</precomp-headers-header> <sources> --- 13,25 ---- </set> ! <!-- Set the build directory. --> ! <set var="BUILDDIR">.$(DIRSEP)build$(DIRSEP)$(BUILD)</set> ! <lib id="specific" template="wxLib"> <include>include</include> ! <!-- <precomp-headers>on</precomp-headers> --> ! <!-- <precomp-headers-header>wxDevCenter.h</precomp-headers-header> --> <sources> *************** *** 46,73 **** </sources> ! <wxlibs/> ! <syslibs/> </lib> ! <exe id="wxDevCenter" template="wxbase"> ! ! <if cond="FORMAT!='autoconf' and FORMAT!='gnu'"> ! <include>$(WXWIN)\include</include> ! <include>$(WXWIN)$(WXLIBINCLUDE)</include> ! <lib-path>$(WXWIN)$(WXLIBPATH)</lib-path> ! </if> ! <app-type>gui</app-type> ! <exename>wxDevCenter$(DEBUGFLAG)</exename> <depends>specific</depends> <library>specific</library> - <app-type>gui</app-type> - <include>include</include> ! <precomp-headers>on</precomp-headers> ! <precomp-headers-header>wxDevCenter.h</precomp-headers-header> <sources> --- 28,47 ---- </sources> ! <wxlib /> ! <wxlib-base>xml</wxlib-base> ! <wxlib-gui>adv</wxlib-gui> </lib> ! <exe id="wxDevCenter" template="wxEXE"> <app-type>gui</app-type> ! <exename>wxDevCenter$(SUFFIX)</exename> <depends>specific</depends> <library>specific</library> <include>include</include> ! <!-- <precomp-headers>on</precomp-headers> --> ! <!-- <precomp-headers-header>wxDevCenter.h</precomp-headers-header> --> <sources> *************** *** 84,87 **** --- 58,62 ---- src/Frame.cpp src/MainFrame.cpp + src/Manager.cpp src/MDIFrame.cpp src/MiniView.cpp *************** *** 90,101 **** src/StatusBar.cpp src/View.cpp </sources> ! <win32-res>res-win32/wxDevCenter.rc</win32-res> ! <wxlibs/> ! <syslibs/> <install-to>$(BINDIR)</install-to> - </exe> --- 65,78 ---- src/StatusBar.cpp src/View.cpp + src/WorkBar.cpp </sources> ! <!-- <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>adv</wxlib-gui> <install-to>$(BINDIR)</install-to> </exe> *************** *** 119,122 **** --- 96,100 ---- wxDevCenter/language.h wxDevCenter/MainFrame.h + wxDevCenter/Manager.h wxDevCenter/MDIFrame.h wxDevCenter/Plugin.h *************** *** 124,127 **** --- 102,106 ---- wxDevCenter/setup.h wxDevCenter/StatusBar.h + wxDevCenter/WorkBar.h wxDevCenter/$(DIRSPEC)/Config.h wxDevCenter/$(DIRSPEC)/FileSystemStandard.h |
|
From: Emilien K. <cur...@us...> - 2005-04-23 16:28:13
|
Update of /cvsroot/wxdevcenter/wxDevCenter/build In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24537/build Log Message: Directory /cvsroot/wxdevcenter/wxDevCenter/build added to the repository |
|
From: Emilien K. <cur...@us...> - 2005-04-19 09:30:57
|
Update of /cvsroot/wxdevcenter/wxDevCenter/src/msw In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26421/src/msw Modified Files: FileSystemStandard.cpp Log Message: Utilisation des classe de base de registre de wx à la place des fonction du WINSDK. Index: FileSystemStandard.cpp =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/src/msw/FileSystemStandard.cpp,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** FileSystemStandard.cpp 16 Mar 2005 14:34:58 -0000 1.3 --- FileSystemStandard.cpp 19 Apr 2005 09:30:46 -0000 1.4 *************** *** 26,29 **** --- 26,30 ---- #include <wx/utils.h> + #include <wx/config.h> using namespace wxDevCenter; *************** *** 334,355 **** m_strNameComputer(WXDC_WINDOWS_COMPUTER) { ! HKEY key; ! char buffer[MAX_PATH]; ! unsigned long size; ! ! ! if(RegOpenKeyEx(HKEY_CURRENT_USER, "Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders", 0, KEY_READ, &key)==ERROR_SUCCESS) { ! size=MAX_PATH; ! RegQueryValueEx(key, "Desktop", NULL, NULL, (unsigned char*)buffer, &size); ! m_strPathDesktop = FilePath(buffer); ! ! size=MAX_PATH; ! RegQueryValueEx(key, "Personal", NULL, NULL, (unsigned char*)buffer, &size); ! m_strPathDocuments = FilePath(buffer); } else ! m_strFindPath = "Error"; ! m_strComputerName = wxGetHostName(); --- 335,348 ---- m_strNameComputer(WXDC_WINDOWS_COMPUTER) { ! wxRegKey key("HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders"); ! key.Open(); ! if(key.IsOpened()) { ! key.QueryValue(wxT("Desktop"), m_strPathDesktop); ! key.QueryValue(wxT("Personal"), m_strPathDocuments); ! key.Close(); } else ! m_strFindPath = wxT("Error"); m_strComputerName = wxGetHostName(); |
|
From: Emilien K. <cur...@us...> - 2005-04-18 12:42:27
|
Update of /cvsroot/wxdevcenter/wxDevCenter/include/wxDevCenter In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21063/include/wxDevCenter Modified Files: setup.h Log Message: Passage à wx26 Index: setup.h =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/include/wxDevCenter/setup.h,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** setup.h 12 Feb 2005 16:54:34 -0000 1.3 --- setup.h 18 Apr 2005 12:42:18 -0000 1.4 *************** *** 55,62 **** #ifdef WXDEBUG /** Si mode debug, inclure les libs debug.*/ ! #pragma comment(lib, "wxbase25d.lib") ! #pragma comment(lib, "wxbase25d_net.lib") ! #pragma comment(lib, "wxmsw25d_core.lib") ! #pragma comment(lib, "wxmsw25d_adv.lib") #pragma comment(lib, "wxzlibd.lib") --- 55,62 ---- #ifdef WXDEBUG /** Si mode debug, inclure les libs debug.*/ ! #pragma comment(lib, "wxbase26d.lib") ! #pragma comment(lib, "wxbase26d_net.lib") ! #pragma comment(lib, "wxmsw26d_core.lib") ! #pragma comment(lib, "wxmsw26d_adv.lib") #pragma comment(lib, "wxzlibd.lib") *************** *** 67,79 **** #pragma comment(lib, "wxtiffd.lib") ! #pragma comment(lib, "wxmsw25d_stc.lib") ! #pragma comment(lib, "wxmsw25d_fl.lib") #else /** Sinon mode debug, inclure les libs release.*/ ! #pragma comment(lib, "wxbase25.lib") ! #pragma comment(lib, "wxbase25_net.lib") ! #pragma comment(lib, "wxmsw25_core.lib") ! #pragma comment(lib, "wxmsw25_adv.lib") #pragma comment(lib, "wxzlib.lib") --- 67,79 ---- #pragma comment(lib, "wxtiffd.lib") ! #pragma comment(lib, "wxmsw26d_stc.lib") ! #pragma comment(lib, "wxmsw26d_fl.lib") #else /** Sinon mode debug, inclure les libs release.*/ ! #pragma comment(lib, "wxbase26.lib") ! #pragma comment(lib, "wxbase26_net.lib") ! #pragma comment(lib, "wxmsw26_core.lib") ! #pragma comment(lib, "wxmsw26_adv.lib") #pragma comment(lib, "wxzlib.lib") *************** *** 84,89 **** #pragma comment(lib, "wxtiff.lib") ! #pragma comment(lib, "wxmsw25_stc.lib") ! #pragma comment(lib, "wxmsw25_fl.lib") #endif --- 84,89 ---- #pragma comment(lib, "wxtiff.lib") ! #pragma comment(lib, "wxmsw26_stc.lib") ! #pragma comment(lib, "wxmsw26_fl.lib") #endif |
|
From: Emilien K. <cur...@us...> - 2005-04-15 15:45:16
|
Update of /cvsroot/wxdevcenter/wxDevCenter/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3805/src Modified Files: Frame.cpp Log Message: Fix le passage de l'évènement de fermeture de la fenetre cadre. Index: Frame.cpp =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/src/Frame.cpp,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** Frame.cpp 4 Apr 2005 08:11:23 -0000 1.7 --- Frame.cpp 15 Apr 2005 15:45:07 -0000 1.8 *************** *** 108,112 **** wxEventType type = event.GetEventType(); ! if(GetViewFrame() && type!=wxEVT_CHILD_FOCUS) { if(GetViewFrame()->CanProcessEventFromParent()) --- 108,112 ---- wxEventType type = event.GetEventType(); ! if(GetViewFrame() && type!=wxEVT_CHILD_FOCUS && type!=wxEVT_CLOSE_WINDOW) { if(GetViewFrame()->CanProcessEventFromParent()) |
|
From: Emilien K. <cur...@us...> - 2005-04-15 15:44:43
|
Update of /cvsroot/wxdevcenter/wxDevCenter/include/wxDevCenter In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3557/include/wxDevCenter Modified Files: WorkBar.h Log Message: Fixe les acces sur le namespace global. Index: WorkBar.h =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/include/wxDevCenter/WorkBar.h,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** WorkBar.h 30 Mar 2005 18:47:08 -0000 1.4 --- WorkBar.h 15 Apr 2005 15:44:33 -0000 1.5 *************** *** 117,130 **** * @param pExtraObj Adresse de l'objet additionnel. */ ! void RegisterWorkBar(wxClassInfo* pClassInfo, wxString strName, wxString strDescript, wxObject* pExtraObj=NULL); /** Désenregistre un type de barre. * @param pClassInfo Info RTTI de la barre à désenregistrer. * @param pExtraObj Adresse de l'objet additionnel.*/ ! void UnregisterWorkBar(wxClassInfo* pClassInfo, wxObject* pExtraObj=NULL); /** Cherche une barre. * @param pClassInfo Info RTTI de la barre à désenregistrer. * @param pExtraObj Adresse de l'objet additionnel. * @return Numéro du patron de la barre, -1 si non trouvé.*/ ! int Find(const wxClassInfo* pClassInfo, wxObject* pExtraObj=NULL); /** @} */ --- 117,130 ---- * @param pExtraObj Adresse de l'objet additionnel. */ ! void RegisterWorkBar(wxClassInfo* pClassInfo, wxString strName, wxString strDescript, ::wxObject* pExtraObj=NULL); /** Désenregistre un type de barre. * @param pClassInfo Info RTTI de la barre à désenregistrer. * @param pExtraObj Adresse de l'objet additionnel.*/ ! void UnregisterWorkBar(wxClassInfo* pClassInfo, ::wxObject* pExtraObj=NULL); /** Cherche une barre. * @param pClassInfo Info RTTI de la barre à désenregistrer. * @param pExtraObj Adresse de l'objet additionnel. * @return Numéro du patron de la barre, -1 si non trouvé.*/ ! int Find(const wxClassInfo* pClassInfo, ::wxObject* pExtraObj=NULL); /** @} */ |
|
From: Emilien K. <cur...@us...> - 2005-04-15 15:44:43
|
Update of /cvsroot/wxdevcenter/wxDevCenter/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3557/src Modified Files: WorkBar.cpp Log Message: Fixe les acces sur le namespace global. Index: WorkBar.cpp =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/src/WorkBar.cpp,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** WorkBar.cpp 30 Mar 2005 18:47:22 -0000 1.4 --- WorkBar.cpp 15 Apr 2005 15:44:34 -0000 1.5 *************** *** 76,80 **** // Enregistre un type de workbar. ! void WorkBarManager::RegisterWorkBar(wxClassInfo* pClassInfo, wxString strName, wxString strDescript, wxObject* pExtraObj) { WorkBarTemplate* pWFT = new WorkBarTemplate(pClassInfo, strName, strDescript, pExtraObj); --- 76,80 ---- // Enregistre un type de workbar. ! void WorkBarManager::RegisterWorkBar(wxClassInfo* pClassInfo, wxString strName, wxString strDescript, ::wxObject* pExtraObj) { WorkBarTemplate* pWFT = new WorkBarTemplate(pClassInfo, strName, strDescript, pExtraObj); *************** *** 86,90 **** // Désenregistre un type de barre. ! void WorkBarManager::UnregisterWorkBar(wxClassInfo* pClassInfo, wxObject* pExtraObj) { int i = Find(pClassInfo, pExtraObj); --- 86,90 ---- // Désenregistre un type de barre. ! void WorkBarManager::UnregisterWorkBar(wxClassInfo* pClassInfo, ::wxObject* pExtraObj) { int i = Find(pClassInfo, pExtraObj); *************** *** 99,103 **** // Cherche une barre. ! int WorkBarManager::Find(const wxClassInfo* pClassInfo, wxObject* pExtraObj) { for(unsigned int n=0; n<GetTemplateCount(); n++) --- 99,103 ---- // Cherche une barre. ! int WorkBarManager::Find(const wxClassInfo* pClassInfo, ::wxObject* pExtraObj) { for(unsigned int n=0; n<GetTemplateCount(); n++) |
|
From: Emilien K. <cur...@us...> - 2005-04-15 15:44:13
|
Update of /cvsroot/wxdevcenter/wxDevCenter/res-win32 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2653/res-win32 Modified Files: wxDevCenter.manifest wxDevCenter.rc Added Files: wxDevCenter.exe.manifest wxDevCenter.fragment.manifest wxDevCenterD.exe.manifest Log Message: Modifs des manifets windows pour utiliser les thèmes windows. Définition d'un fragment et des manifestes différents pour la version debug et release. --- NEW FILE: wxDevCenter.exe.manifest --- <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> <assemblyIdentity version="0.64.1.0" processorArchitecture="x86" name="Controls" type="win32" /> <description>wxDevCenter</description> <dependency> <dependentAssembly> <assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="X86" language="*" /> </dependentAssembly> </dependency> </assembly> Index: wxDevCenter.rc =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/res-win32/wxDevCenter.rc,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** wxDevCenter.rc 3 Dec 2004 16:47:44 -0000 1.1 --- wxDevCenter.rc 15 Apr 2005 15:43:47 -0000 1.2 *************** *** 117,121 **** #if !defined(__WIN64__) #if !defined(wxUSE_NO_MANIFEST) || (wxUSE_NO_MANIFEST == 0) ! 1 24 "wxDevCenter.manifest" #endif #endif --- 117,125 ---- #if !defined(__WIN64__) #if !defined(wxUSE_NO_MANIFEST) || (wxUSE_NO_MANIFEST == 0) ! #if defined(_DEBUG) || defined(WXDEBUG) ! 1 24 "wxDevCenterD.exe.manifest" ! #else ! 1 24 "wxDevCenter.exe.manifest" ! #endif #endif #endif --- NEW FILE: wxDevCenter.fragment.manifest --- <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> <dependency> <dependentAssembly> <assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="X86" language="*" publicKeyToken="6595b64144ccf1df" /> </dependentAssembly> </dependency> </assembly> Index: wxDevCenter.manifest =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/res-win32/wxDevCenter.manifest,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** wxDevCenter.manifest 3 Dec 2004 16:47:44 -0000 1.1 --- wxDevCenter.manifest 15 Apr 2005 15:43:47 -0000 1.2 *************** *** 15,19 **** version="6.0.0.0" processorArchitecture="X86" - publicKeyToken="6595b64144ccf1df" language="*" /> --- 15,18 ---- --- NEW FILE: wxDevCenterD.exe.manifest --- <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> <dependency> <dependentAssembly> <assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="X86" language="*" publicKeyToken="6595b64144ccf1df" /> </dependentAssembly> </dependency> </assembly> |
|
From: Emilien K. <cur...@us...> - 2005-04-15 15:42:16
|
Update of /cvsroot/wxdevcenter/wxDevCenter/include/wxDevCenter In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1846/include/wxDevCenter Modified Files: DocView.h Project.h Log Message: Néttoyage. Redirection des évènements passant et non traités par le document au projet si existant. Fonctions d'attache/déttache du document à un projet. Index: Project.h =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/include/wxDevCenter/Project.h,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** Project.h 16 Mar 2005 14:27:36 -0000 1.5 --- Project.h 15 Apr 2005 15:41:36 -0000 1.6 *************** *** 46,50 **** * @warning Les classes de projets doivent impérativement être RTTI-dynamiques et leurs constructeurs ne peuvent prendre aucun paramètre. */ ! class WXDC_DLL_BASE Project : public ManagedObject { DECLARE_DYNAMIC_CLASS(Project); --- 46,50 ---- * @warning Les classes de projets doivent impérativement être RTTI-dynamiques et leurs constructeurs ne peuvent prendre aucun paramètre. */ ! class WXDC_DLL_BASE Project : public wxEvtHandler, public InitializableInterface { DECLARE_DYNAMIC_CLASS(Project); Index: DocView.h =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/include/wxDevCenter/DocView.h,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** DocView.h 12 Apr 2005 12:12:01 -0000 1.13 --- DocView.h 15 Apr 2005 15:41:35 -0000 1.14 *************** *** 72,76 **** class Archive; class ViewFrame; ! // Prédéclaration des classes du fichier entete. --- 72,76 ---- class Archive; class ViewFrame; ! class Project; // Prédéclaration des classes du fichier entete. *************** *** 83,91 **** class WXDC_DLL_BASE MiniDoc; - class DocManager; - class DocTemplate; - - class DocTypeArray; - --- 83,86 ---- *************** *** 212,215 **** --- 207,214 ---- /** Liste dynamique des vues attachées à ce document.*/ ObjectManager<View> m_ViewArray; + + /** Adresse du projet si le document est attaché à un projet.*/ + Project* m_pProject; + /** Le document a-t-il été modifié ?*/ bool m_bIsDocumentModified; *************** *** 222,225 **** --- 221,225 ---- virtual ~Document(void); + /** @name Test de modification du document. @{*/ /** Fixe si le document a été modifié. * A appeler (vrai) si le document subit une modification. *************** *** 228,232 **** /** Le document a-t-il été modifié ?*/ virtual bool GetModifiedFlag()const; ! /** Fixe le chemin du document.*/ void SetDocumentPath(FilePath strPath); --- 228,234 ---- /** Le document a-t-il été modifié ?*/ virtual bool GetModifiedFlag()const; ! /** @} */ ! ! /** @name Acces sur les Données générales. @{ */ /** Fixe le chemin du document.*/ void SetDocumentPath(FilePath strPath); *************** *** 237,240 **** --- 239,245 ---- /** Retourne le chemin vers le fichier du document.*/ FilePath GetDocumentPath()const; + /** @} */ + + /** @name Type de document et vies attachées. @{ */ /** Retourne l'adresse du descripteur de type de document.*/ DocTemplate* GetDocTemplate(){return m_pDocumentTemplate;}; *************** *** 249,254 **** --- 254,263 ---- /** Détache une vue du document.*/ void DetachView(View *pView); + /** @} */ protected: + /** @name Fonction virtuelles de spécialisation du document. + * Se sont les fonctions à dériver pour implémenter la gestion spécifique de la sérialisation des données. + * @{ */ /** Sauvegarde du document. * A dériver pour implémenter la sauvegarde des données. *************** *** 296,299 **** --- 305,331 ---- * @return Retourne false si le document ne peut etre fermé.*/ virtual bool SaveModified(); + /** @} */ + + /** @name Fonctions virtuelles de liaison du document à un projet. @{ */ + /** Prétraitement avant attachement à un projet. + * @param pProject Adresse du nouveau projet. + * @return Faux prévient de l'attachement.*/ + virtual bool CanAttachToProject(Project* pProject); + /** Fonction d'attachement à un projet. + * @param pProject Adresse du nouveau projet. + * @param pathNew Nouveau chemin attribué par le document. Vide si non modifié. + * @return Faux si l'attachement à échoué.*/ + virtual bool OnAttachToProject(Project* pProject, FilePath pathNew); + /** Teste si un document peu être détaché d'un document. + * @return Faux si ne peut détacher le document.*/ + virtual bool CanDetachFromProject(Project* pProject); + /** Fonction de détachement d'un projet. + * @param FilePath pathNew Nouveau chemin du document, vide si non modifié. + * @param Faux si erreur dans le détachement.*/ + virtual bool OnDetachFromProject(FilePath pathNew); + /** @} */ + + /** Surcharge de l'exéction des évènements pour les passer au projet s'il existe.*/ + virtual bool ProcesEvent(wxEvent& event); }; |
|
From: Emilien K. <cur...@us...> - 2005-04-15 15:41:54
|
Update of /cvsroot/wxdevcenter/wxDevCenter/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1846/src Modified Files: Document.cpp Project.cpp Log Message: Néttoyage. Redirection des évènements passant et non traités par le document au projet si existant. Fonctions d'attache/déttache du document à un projet. Index: Project.cpp =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/src/Project.cpp,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Project.cpp 16 Mar 2005 14:27:37 -0000 1.4 --- Project.cpp 15 Apr 2005 15:41:46 -0000 1.5 *************** *** 30,34 **** using namespace wxDevCenter; ! IMPLEMENT_DYNAMIC_CLASS(wxDevCenter::Project, wxObject); /** --- 30,34 ---- using namespace wxDevCenter; ! IMPLEMENT_DYNAMIC_CLASS(wxDevCenter::Project, wxEvtHandler); /** *************** *** 36,40 **** */ Project::Project(): ! ManagedObject(), m_strName(""), m_strPath(""), --- 36,41 ---- */ Project::Project(): ! wxEvtHandler(), ! InitializableInterface(), m_strName(""), m_strPath(""), Index: Document.cpp =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/src/Document.cpp,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** Document.cpp 12 Apr 2005 12:12:01 -0000 1.9 --- Document.cpp 15 Apr 2005 15:41:37 -0000 1.10 *************** *** 39,43 **** Document::Document(void): wxEvtHandler(), ! m_bIsDocumentModified(false) { } --- 39,48 ---- Document::Document(void): wxEvtHandler(), ! m_pDocumentManager(NULL), ! m_pDocumentTemplate(NULL), ! m_pProject(NULL), ! m_bIsDocumentModified(false), ! m_strName(wxT("")), ! m_strPath(wxT("")) { } *************** *** 237,240 **** --- 242,290 ---- + /** + * Fonctions virtuelles de liaison du document à un projet. + */ + + // Prétraitement avant attachement à un projet. + bool Document::CanAttachToProject(Project* WXUNUSED(pProject)) + { + return true; + } + + // Fonction d'attachement à un projet. + bool Document::OnAttachToProject(Project* WXUNUSED(pProject), FilePath pathNew) + { + if(pathNew.IsEmpty()) + SetDocumentPath(pathNew); + return true; + } + + // Teste si un document peu être détaché d'un document. + bool Document::CanDetachFromProject(Project* WXUNUSED(pProject)) + { + return true; + } + + // Fonction de détachement d'un projet. + bool Document::OnDetachFromProject(FilePath pathNew) + { + if(pathNew.IsEmpty()) + SetDocumentPath(pathNew); + return true; + } + + + /** + * Interception et redirection des évènements. + */ + // Surcharge de l'exéction des évènements pour les passer au projet s'il existe. + bool Document::ProcesEvent(wxEvent& event) + { + if(m_pProject!=NULL) + if(m_pProject->ProcessEvent(event)) + return true; + return wxEvtHandler::ProcessEvent(event); + } + ////////////////////////////////////////////////////////////////////// |
|
From: Emilien K. <cur...@us...> - 2005-04-15 15:37:47
|
Update of /cvsroot/wxdevcenter/wxDevCenter/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32635/include Modified Files: wxDevCenter.h Log Message: Utilisation des entêtes précompilées de wx. Index: wxDevCenter.h =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/include/wxDevCenter.h,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** wxDevCenter.h 3 Dec 2004 16:47:43 -0000 1.1 --- wxDevCenter.h 15 Apr 2005 15:37:39 -0000 1.2 *************** *** 35,39 **** // Entetes wxWidgets ! #include <wx/wx.h> // Utilisation de la bibliothèque générale wxWidgets // Definition des macros d'import/export de symboles --- 35,48 ---- // Entetes wxWidgets ! // For compilers that support precompilation, includes "wx/wx.h". ! #include "wx/wxprec.h" ! #ifdef __BORLANDC__ ! #pragma hdrstop ! #endif ! #ifndef WX_PRECOMP ! #include <wx/wx.h> ! #endif ! ! // Definition des macros d'import/export de symboles |
|
From: Emilien K. <cur...@us...> - 2005-04-15 13:05:20
|
Update of /cvsroot/wxdevcenter/web/fr/wxDevCenter In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13438/fr/wxDevCenter Modified Files: index.php Log Message: Modifs légère pour tester l'update automatique. Index: index.php =================================================================== RCS file: /cvsroot/wxdevcenter/web/fr/wxDevCenter/index.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** index.php 15 Apr 2005 12:53:39 -0000 1.1 --- index.php 15 Apr 2005 13:05:04 -0000 1.2 *************** *** 35,39 **** <p>Elle se charge de charger les plugins et d'en enregistrer le contenu. </p> ! <p>Les plugins implémentent les intefaces qui leurs sont nécessaire pour éditer leurs types de documents. </p> --- 35,39 ---- <p>Elle se charge de charger les plugins et d'en enregistrer le contenu. </p> ! <p>Les plugins implémentent les intefaces qui leurs sont nécessaire pour éditer leurs types de documents et leurs projets. </p> |
|
From: Emilien K. <cur...@us...> - 2005-04-12 12:12:45
|
Update of /cvsroot/wxdevcenter/wxDevCenter/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15378/src Modified Files: Document.cpp View.cpp Log Message: Change the view to document event handling. Index: Document.cpp =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/src/Document.cpp,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** Document.cpp 4 Apr 2005 12:20:13 -0000 1.8 --- Document.cpp 12 Apr 2005 12:12:01 -0000 1.9 *************** *** 120,124 **** pView->m_pDocument = this; m_ViewArray.Register(pView); - pView->PushEventHandler(this); } --- 120,123 ---- *************** *** 128,132 **** m_ViewArray.Unregister(pView); pView->m_pDocument = NULL; - pView->RemoveEventHandler(this); } --- 127,130 ---- *************** *** 246,249 **** --- 244,249 ---- IMPLEMENT_DYNAMIC_CLASS(wxDevCenter::ActionDocument, wxDevCenter::Document) + BEGIN_EVENT_TABLE(ActionDocument, Document) + END_EVENT_TABLE() ActionDocument::ActionDocument(int maxCommands): Index: View.cpp =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/src/View.cpp,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** View.cpp 15 Jan 2005 09:47:22 -0000 1.4 --- View.cpp 12 Apr 2005 12:12:02 -0000 1.5 *************** *** 33,56 **** BEGIN_EVENT_TABLE(wxDevCenter::View, wxPanel) - EVT_MENU_RANGE(IDM_VIEW_MIN, IDM_VIEW_MAX , View::OnMenu) - EVT_MENU(IDM_EDIT_UNDO , View::OnMenu) - EVT_MENU(IDM_EDIT_REDO , View::OnMenu) - EVT_MENU(IDM_EDIT_CUT , View::OnMenu) - EVT_MENU(IDM_EDIT_COPY , View::OnMenu) - EVT_MENU(IDM_EDIT_PASTE , View::OnMenu) - EVT_MENU(IDM_EDIT_CLEAR , View::OnMenu) - EVT_MENU(IDM_EDIT_FIND , View::OnMenu) - EVT_MENU(IDM_EDIT_DUPLICATE , View::OnMenu) - EVT_MENU(IDM_EDIT_SELECTALL , View::OnMenu) - EVT_UPDATE_UI_RANGE(IDM_VIEW_MIN, IDM_VIEW_MAX, View::OnUpdateMenuUI) - EVT_UPDATE_UI(IDM_EDIT_UNDO , View::OnUpdateMenuUI) - EVT_UPDATE_UI(IDM_EDIT_REDO , View::OnUpdateMenuUI) - EVT_UPDATE_UI(IDM_EDIT_CUT , View::OnUpdateMenuUI) - EVT_UPDATE_UI(IDM_EDIT_COPY , View::OnUpdateMenuUI) - EVT_UPDATE_UI(IDM_EDIT_PASTE , View::OnUpdateMenuUI) - EVT_UPDATE_UI(IDM_EDIT_CLEAR , View::OnUpdateMenuUI) - EVT_UPDATE_UI(IDM_EDIT_FIND , View::OnUpdateMenuUI) - EVT_UPDATE_UI(IDM_EDIT_DUPLICATE , View::OnUpdateMenuUI) - EVT_UPDATE_UI(IDM_EDIT_SELECTALL , View::OnUpdateMenuUI) END_EVENT_TABLE() --- 33,36 ---- *************** *** 146,160 **** } ! ////////////////////////////////////////////////////////////////////// ! // Interception des évènements des menus ! void View::OnMenu(wxCommandEvent& WXUNUSED(event)) ! { ! // Surtout ne rien faire. ! // Et surtout pas Skip !!! ! } ! ! void View::OnUpdateMenuUI(wxUpdateUIEvent& WXUNUSED(event)) { ! // Surtout ne rien faire. ! // Surtout pas Skip !!! } --- 126,137 ---- } ! // Redirige les évènements vers le document attaché. ! bool View::ProcessEvent(wxEvent& event) { ! if(GetDocument()!=NULL) ! { ! if(GetDocument()->ProcessEvent(event)) ! return true; ! } ! return wxPanel::ProcessEvent(event); } |
|
From: Emilien K. <cur...@us...> - 2005-04-12 12:12:15
|
Update of /cvsroot/wxdevcenter/wxDevCenter/include/wxDevCenter In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15378/include/wxDevCenter Modified Files: DocView.h Log Message: Change the view to document event handling. Index: DocView.h =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/include/wxDevCenter/DocView.h,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** DocView.h 4 Apr 2005 12:20:00 -0000 1.12 --- DocView.h 12 Apr 2005 12:12:01 -0000 1.13 *************** *** 133,143 **** ViewTemplate *m_pViewTemplate; - /** Interception des évènements menus. - * Ne fais rien sur l'interception des évènements menus pour éviter le "bouclage" de l'évènement. - */ - void OnMenu(wxCommandEvent& event); - /** Interception des évènements de mise à jour des menus.*/ - void OnUpdateMenuUI(wxUpdateUIEvent& event); - /** Demande l'insertion des menus spécifiques dans la barre de menus. * @param pMenuBar Barre de menu où insérer les menus spécifiques. --- 133,136 ---- *************** *** 154,157 **** --- 147,153 ---- */ virtual void OnChangeFilename(); + + /** Redirige les évènements vers le document attaché.*/ + virtual bool ProcessEvent(wxEvent& event); public: /** Constructeur. Constructeur standard sans passage de paramètre de construction spécifique.*/ *************** *** 681,684 **** --- 677,682 ---- /** Déclaration de classe dynamique. Déclare la classe comme pouvant être crée dynamiquement depuis ses infos RTTI de caractère.*/ DECLARE_DYNAMIC_CLASS(wxDevCenter::ActionDocument); + /** Déclaration de la table des évènements.*/ + DECLARE_EVENT_TABLE() protected: /** Exécuteur de commandes.*/ |
|
From: Emilien K. <cur...@us...> - 2005-04-12 12:11:29
|
Update of /cvsroot/wxdevcenter/StdPlugin/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14213/src Modified Files: BitmapCtrl.cpp BitmapDocView.cpp Log Message: Change BitmapDocument to use actions. Index: BitmapCtrl.cpp =================================================================== RCS file: /cvsroot/wxdevcenter/StdPlugin/src/BitmapCtrl.cpp,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** BitmapCtrl.cpp 4 Mar 2005 16:35:16 -0000 1.14 --- BitmapCtrl.cpp 12 Apr 2005 12:10:55 -0000 1.15 *************** *** 29,32 **** --- 29,34 ---- #include <wx/event.h> #include <wx/dcbuffer.h> + #include <wx/listimpl.cpp> + using namespace wxDevCenter; *************** *** 34,37 **** --- 36,40 ---- + #define BMP_ANCHOR_INFLATE_WIDTH 3 *************** *** 66,70 **** void BitmapCtrl::SetBitmap(const wxBitmap& Bmp) { ! m_Bmp = Bmp; SetVirtualSize(m_Bmp.GetWidth(), m_Bmp.GetHeight()); Refresh(); --- 69,73 ---- void BitmapCtrl::SetBitmap(const wxBitmap& Bmp) { ! m_Bmp = Bmp.GetSubBitmap(wxRect(0, 0, Bmp.GetWidth(), Bmp.GetHeight())); SetVirtualSize(m_Bmp.GetWidth(), m_Bmp.GetHeight()); Refresh(); *************** *** 447,450 **** --- 450,454 ---- dc.SelectObject(m_Bmp); dc.DrawBitmap(m_SaveBuffer, m_ptSaveBuffer); + dc.SelectObject(wxNullBitmap); } } *************** *** 453,456 **** void BitmapCtrl::ClearSaveBitmap() { ! m_SaveBuffer = wxBitmap(NULL, 0, 0); } --- 457,460 ---- void BitmapCtrl::ClearSaveBitmap() { ! m_SaveBuffer = wxNullBitmap; } Index: BitmapDocView.cpp =================================================================== RCS file: /cvsroot/wxdevcenter/StdPlugin/src/BitmapDocView.cpp,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** BitmapDocView.cpp 4 Apr 2005 09:18:30 -0000 1.22 --- BitmapDocView.cpp 12 Apr 2005 12:10:55 -0000 1.23 *************** *** 20,23 **** --- 20,102 ---- using namespace StdPlugin::Bitmap; + + /** Fonction de tracé de ligne dans une bitmap.*/ + void BitmapDrawLine(wxBitmap& bmp, wxPoint pos1, wxPoint pos2, const wxPen& pen) + { + wxLogDebug("BitmapDrawLine %p", &bmp); + wxMemoryDC dc; + dc.SelectObject(bmp); [...1498 lines suppressed...] ! } ! else ! { ! dcTarget.Blit(rect.x, rect.y, rect.width, rect.height, &dcSource, rect.x, rect.y); ! } ! dcTarget.SelectObject(wxNullBitmap); ! dcSource.SelectObject(wxNullBitmap); ! } } *************** *** 1390,1391 **** --- 1670,1673 ---- return MiniView::OnUpdate(); } + + |
|
From: Emilien K. <cur...@us...> - 2005-04-12 12:11:29
|
Update of /cvsroot/wxdevcenter/StdPlugin/include/wxDevCenter/StdPlugin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14213/include/wxDevCenter/StdPlugin Modified Files: BitmapCtrl.h BitmapDocView.h language.h Log Message: Change BitmapDocument to use actions. Index: BitmapCtrl.h =================================================================== RCS file: /cvsroot/wxdevcenter/StdPlugin/include/wxDevCenter/StdPlugin/BitmapCtrl.h,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** BitmapCtrl.h 7 Mar 2005 15:23:50 -0000 1.10 --- BitmapCtrl.h 12 Apr 2005 12:10:55 -0000 1.11 *************** *** 41,44 **** --- 41,45 ---- + /** Style à appliquer aux BitmapCtrl pour afficher les ancres de dimensionnement.*/ #define BMP_SHOW_ANCHOR 0x100 *************** *** 77,94 **** public: /** Constructeur standard des controles. - * */ BitmapCtrl(wxWindow* parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0); /** Destructeur.*/ virtual ~BitmapCtrl(void); /** Accès direct à l'image liée au controle. * A utiliser pour modifier directement l'image. */ wxBitmap& Bitmap(){return m_Bmp;} - /** Attache un image au controle. * @param Bmp Nouvelle image fixée au controle.*/ void SetBitmap(const wxBitmap& Bmp); /** Fixe le niveau de zoom. * @param iZoom Nouveau niveau de zoom. --- 78,99 ---- public: /** Constructeur standard des controles. */ BitmapCtrl(wxWindow* parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0); /** Destructeur.*/ virtual ~BitmapCtrl(void); + + /** @name Manipulation de l'image. + * @{ */ /** Accès direct à l'image liée au controle. * A utiliser pour modifier directement l'image. */ wxBitmap& Bitmap(){return m_Bmp;} /** Attache un image au controle. * @param Bmp Nouvelle image fixée au controle.*/ void SetBitmap(const wxBitmap& Bmp); + /** @} */ + /** @name Manipulation du zoom. + * @{ */ /** Fixe le niveau de zoom. * @param iZoom Nouveau niveau de zoom. *************** *** 99,113 **** */ int GetZoom()const; /** Permet d'utiliser l'extra-scroll. * @param bExtraScroll Utilise ou non l'extra-scroll. */ void EnableExtraScroll(bool bExtraScroll); - /** Teste si l'extrascroll est actif. * @return TRUE si l'extrascroll est actif. */ bool IsExtraScroll()const{return m_bExtraScroll;} /** Sauvegarde une partie de l'image. * @param r Rectangle de sauvegarde en coordonnées bitmap. --- 104,124 ---- */ int GetZoom()const; + /** @} */ + /** @name Manipulation de l'extra scroll. + * @{ */ /** Permet d'utiliser l'extra-scroll. * @param bExtraScroll Utilise ou non l'extra-scroll. */ void EnableExtraScroll(bool bExtraScroll); /** Teste si l'extrascroll est actif. * @return TRUE si l'extrascroll est actif. */ bool IsExtraScroll()const{return m_bExtraScroll;} + /** @} */ + + /** @name Sauvegarde d'une partie de l'image. + * @{ */ /** Sauvegarde une partie de l'image. * @param r Rectangle de sauvegarde en coordonnées bitmap. *************** *** 120,151 **** /** Supprime la sauvegarde d'image.*/ void ClearSaveBitmap(); /** Centre l'image. ! * Uniquement en mode ExtraScroll.*/ void CenterOnImage(); - /** Scrolle le contrôle jusqu'à une coordonnée. ! * Les coordonnées sont données en repère-image. ! * Si coordonnées négative en mode ExtraScroll, la zone virtuelle est agrandie. ! * @param pos Nouvelles coordonnées. ! */ void ScrollTo(wxPoint pos); /** Calcul les coordonnées dans le bitmap à partir de la coordonnée de la zone client. ! * @param ptClient Point en coordonnées clientes. ! * @return Point en coordonnées bitmap. (-1,-1) si en dehors de l'image. ! */ wxPoint ClientToBitmap(wxPoint ptClient)const; wxSize ClientToBitmap(wxSize szClient)const{register wxPoint pt(ClientToBitmap(wxPoint(szClient.x, szClient.y))); return wxSize(pt.x, pt.y);} wxRect ClientToBitmap(wxRect r)const{return wxRect(ClientToBitmap(r.GetPosition()), ClientToBitmap(r.GetSize()));} - /** Calcul les coordonnées dans la zone cliente à partir des coordonnées bitmap. ! * @param ptBitmap Point en coordonnées bitmap. ! * @return Point en coordonnées clientes. ! */ wxPoint BitmapToClient(wxPoint ptBitmap)const; wxSize BitmapToClient(wxSize szClient)const{register wxPoint pt(BitmapToClient(wxPoint(szClient.x, szClient.y))); return wxSize(pt.x, pt.y);} wxRect BitmapToClient(wxRect r)const{return wxRect(BitmapToClient(r.GetPosition()), BitmapToClient(r.GetSize()));} - /** Flags de test de position.*/ enum HitTestFlag --- 131,163 ---- /** Supprime la sauvegarde d'image.*/ void ClearSaveBitmap(); + /** @} */ + + /** @name Position de l'image. + * @{ */ /** Centre l'image. ! * Uniquement en mode ExtraScroll.*/ void CenterOnImage(); /** Scrolle le contrôle jusqu'à une coordonnée. ! * Les coordonnées sont données en repère-image. ! * Si coordonnées négative en mode ExtraScroll, la zone virtuelle est agrandie. ! * @param pos Nouvelles coordonnées.*/ void ScrollTo(wxPoint pos); + /** @} */ + /** @name Manipulation des coordonnées. + * @{ */ /** Calcul les coordonnées dans le bitmap à partir de la coordonnée de la zone client. ! * @param ptClient Point en coordonnées clientes. ! * @return Point en coordonnées bitmap. (-1,-1) si en dehors de l'image.*/ wxPoint ClientToBitmap(wxPoint ptClient)const; wxSize ClientToBitmap(wxSize szClient)const{register wxPoint pt(ClientToBitmap(wxPoint(szClient.x, szClient.y))); return wxSize(pt.x, pt.y);} wxRect ClientToBitmap(wxRect r)const{return wxRect(ClientToBitmap(r.GetPosition()), ClientToBitmap(r.GetSize()));} /** Calcul les coordonnées dans la zone cliente à partir des coordonnées bitmap. ! * @param ptBitmap Point en coordonnées bitmap. ! * @return Point en coordonnées clientes.*/ wxPoint BitmapToClient(wxPoint ptBitmap)const; wxSize BitmapToClient(wxSize szClient)const{register wxPoint pt(BitmapToClient(wxPoint(szClient.x, szClient.y))); return wxSize(pt.x, pt.y);} wxRect BitmapToClient(wxRect r)const{return wxRect(BitmapToClient(r.GetPosition()), BitmapToClient(r.GetSize()));} /** Flags de test de position.*/ enum HitTestFlag *************** *** 162,166 **** BMP_HTF_ANCHOR_W = 0x800 }; - /** Teste une position sur la zone client. * Les ancres ne sont testés que si elles sont affichées. --- 174,177 ---- *************** *** 169,172 **** --- 180,184 ---- */ HitTestFlag HitTest(wxPoint pos)const; + /** @}*/ protected: /** Retourne le coefficient de scalling (wxDC) depuis le zoom m_iZoom.*/ Index: BitmapDocView.h =================================================================== RCS file: /cvsroot/wxdevcenter/StdPlugin/include/wxDevCenter/StdPlugin/BitmapDocView.h,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** BitmapDocView.h 4 Apr 2005 09:18:29 -0000 1.17 --- BitmapDocView.h 12 Apr 2005 12:10:55 -0000 1.18 *************** *** 94,101 **** ! ! class BitmapDocument : public wxDevCenter::Document { DECLARE_EVENT_TABLE() --- 94,281 ---- ! namespace action ! { + /** Classe de base des actions du BitmapDocument. + * N'existe que pour la hierarchie de classe.*/ + class BitmapAction : public wxCommand + { + protected: + /** Document attaché.*/ + BitmapDocument* m_pDoc; + public: + BitmapAction(BitmapDocument* pDoc, bool canUndo = false, const wxString& name = wxEmptyString):wxCommand(canUndo, name), m_pDoc(pDoc){} + }; ! /** Classe de base des actions de démarrage d'un BitmapDocument. ! * N'existe que pour initialiser le document.*/ ! class Start : public BitmapAction ! { ! public: ! Start(BitmapDocument* pDoc, bool canUndo = false, const wxString& name = wxEmptyString):BitmapAction(pDoc, canUndo, name){} ! /** Une action de démarrage ne peut jamais, par définition, être annulée.*/ ! bool CanUndo(){return false;} ! /** Undo impossible.*/ ! bool Undo(){return false;} ! /** Do ne faisant rien.*/ ! bool Do(){return true;} ! }; ! ! /** Classe d'action sur le chargement d'une image.*/ ! class Load : public Start ! { ! public: ! Load(BitmapDocument* pDoc):Start(pDoc, false, WXDC_BITMAP_CMD_LOAD){} ! }; ! ! /** Classe d'action sur la création d'une image vierge.*/ ! class Create : public Start ! { ! public: ! Create(BitmapDocument* pDoc):Start(pDoc, false, WXDC_BITMAP_CMD_CREATE){} ! }; ! ! /** Classe de base de dessin sur la bitmap.*/ ! class Drawing : public BitmapAction ! { ! protected: ! /** Buffer de sauvegarde de la zone modifiée. ! * Utile pour annuler les actions.*/ ! wxBitmap m_Buffer; ! /** Emplacement du buffer de sauvegarde.*/ ! wxPoint m_ptBuffer; ! ! /** Demande de sauvegarder une partie de l'image passée en paramètre. ! * @param bmp Source de l'image à sauvegarder. ! * @param r Rectangle de position de sauvegarde.*/ ! void SetBuffer(const wxBitmap& bmp, wxRect r); ! public: ! /** Constructeur.*/ ! Drawing(BitmapDocument* pDoc):BitmapAction(pDoc, true){} ! /** Une action de dessin peut généralement être annulée.*/ ! bool CanUndo(){return true;} ! /** Faire le undo en blittant le buffer d'image.*/ ! bool Undo(); ! }; ! ! /** Classe de dessin d'une ligne sur la bitmap.*/ ! class LineDrawing : public Drawing ! { ! protected: ! /** Crayon de dessin.*/ ! wxPen m_pen; ! wxPoint m_ptStart, m_ptEnd; ! public: ! /** Constructeur.*/ ! LineDrawing(BitmapDocument* pDoc, const wxPen& pen, wxPoint ptStart, wxPoint ptEnd); ! /** Faire l'action.*/ ! bool Do(); ! /** Donner un nom à la commande.*/ ! wxString GetName(); ! }; ! ! /** Classe de dessin simple sur la bitmap.*/ ! class SimpleDrawing : public Drawing ! { ! public: ! enum SimpleDrawingCode ! { ! None, ! Rect, ! RRect, ! Ellipse ! }; ! protected: ! /** Code de tracé.*/ ! SimpleDrawingCode m_code; ! /** Crayon de dessin.*/ ! wxPen m_pen; ! /** Pinceau de dessin.*/ ! wxBrush m_brush; ! /** Rectangle du tracé.*/ ! wxRect m_rect; ! public: ! /** Constructeur.*/ ! SimpleDrawing(BitmapDocument* pDoc, SimpleDrawingCode code, const wxPen& pen, const wxBrush& brush, wxRect r); ! /** Faire l'action.*/ ! bool Do(); ! /** Donner un nom à la commande.*/ ! wxString GetName(); ! }; ! ! /** Classe de base des actions de sélection d'une partie de l'image bitmap.*/ ! class Selection : public BitmapAction ! { ! public: ! /** Constructeur.*/ ! Selection(BitmapDocument* pDoc):BitmapAction(pDoc, true){} ! }; ! ! /** Classe de base des actions de sélections qui changent le contenu de la sélection.*/ ! class ChangeSelection : public Selection ! { ! protected: ! /** Ancienne sélection.*/ ! wxBitmap m_bmpOld; ! /** Ancienne position de la sélection.*/ ! wxPoint m_posOld; ! /** Nouvelle sélection.*/ ! wxBitmap m_bmpNew; ! /** Nouvelle position de la sélection.*/ ! wxPoint m_posNew; ! public: ! /** Constructeur.*/ ! ChangeSelection(BitmapDocument* pDoc, const wxBitmap& bmpOld, wxPoint posOld, const wxBitmap& bmpNew, wxPoint posNew); ! virtual bool CanUndo(){return true;} ! virtual bool Undo(); ! virtual bool Do(); ! }; ! ! /** Classe d'action : Couper vers sélection.*/ ! class CutToSelection : public ChangeSelection ! { ! protected: ! wxRect m_rSel; ! wxBrush m_brush; ! public: ! CutToSelection(BitmapDocument* pDoc, wxRect r, const wxBrush& brush); ! virtual bool Undo(); ! virtual bool Do(); ! wxString GetName(){return WXDC_BITMAP_CMD_SELECT;} ! }; ! ! /** Classe d'action : désélectionner.*/ ! class Deselect : public ChangeSelection ! { ! public: ! Deselect(BitmapDocument* pDoc); ! wxString GetName(){return WXDC_BITMAP_CMD_DESELECT;} ! }; ! ! /** Classe d'action : Déplacer la sélection.*/ ! class MoveSelection : public Selection ! { ! protected: ! wxPoint m_posOld, m_posNew; ! public: ! MoveSelection(BitmapDocument* pDoc, wxPoint pos); ! virtual bool Undo(); ! virtual bool Do(); ! wxString GetName(){return WXDC_BITMAP_CMD_MOVESEL;} ! }; ! ! /** Classe d'action : Colle une bitmap à l'endroit indiqué.*/ ! class PasteSelection : public Drawing ! { ! public: ! PasteSelection(BitmapDocument* pDoc); ! bool Do(); ! wxString GetName(){return WXDC_BITMAP_CMD_PASTESEL;} ! }; ! } ! ! ! ! class BitmapDocument : public wxDevCenter::ActionDocument { DECLARE_EVENT_TABLE() *************** *** 106,109 **** --- 286,296 ---- wxBitmap m_Bmp; + /** Buffer de sélection.*/ + wxBitmap m_bmpSel; + /** Position de la sélection.*/ + wxPoint m_posSel; + /** Offset de position.*/ + wxPoint m_offSel; + /** Charge le texte depuis l'archive.*/ bool LoadDocument(wxDevCenter::Archive *ar); *************** *** 111,120 **** bool SaveDocument(wxDevCenter::Archive *ar); ! void UpdateAllViews(wxDevCenter::View *pSender, unsigned int nUpdateCode=0, wxRect* pRect=NULL); public: BitmapDocument(); /** Acces au buffer de l'image.*/ wxBitmap& GetBitmap(){return m_Bmp;} /** @name Fonctions basiques de dessin. --- 298,313 ---- bool SaveDocument(wxDevCenter::Archive *ar); ! virtual bool OnNewDocument(); ! virtual bool OnOpenDocument(wxDevCenter::FilePath strDocumentPath); ! public: + void UpdateAllViews(wxDevCenter::View *pSender, unsigned int nUpdateCode=0, wxRect* pRect=NULL); + BitmapDocument(); /** Acces au buffer de l'image.*/ wxBitmap& GetBitmap(){return m_Bmp;} + /** Retourne la taille de l'image.*/ + wxSize GetBitmapSize()const{return wxSize(m_Bmp.GetWidth(), m_Bmp.GetHeight());} /** @name Fonctions basiques de dessin. *************** *** 171,174 **** --- 364,416 ---- /** @} */ + /** @name Gestion de la sélection. + * @{ */ + /** Fixe une nouvelle sélection. Ne rafraichit pas les vues.*/ + void SetSelection(const wxBitmap& bmp, wxPoint pos); + /** Déplace la sélection à un endroit donné. Ne rafraichit pas les vues.*/ + void SetSelectionPosition(wxPoint pos); + /** Accesseur sur la bitmap de sélection.*/ + const wxBitmap& GetSelectionBitmap()const{return m_bmpSel;} + /** Accesseur sur la position de la sélection.*/ + wxPoint GetSelectionPosition()const{return m_posSel;} + /** Accesseur sur la taille de la sélection.*/ + wxSize GetSelectionSize()const{return wxSize(m_bmpSel.GetWidth(), m_bmpSel.GetHeight());} + /** Accesseur sur le rectangle de sélection.*/ + wxRect GetSelectionRect()const{return wxRect(m_posSel.x, m_posSel.y, m_bmpSel.GetWidth(), m_bmpSel.GetHeight());} + /** Teste si une sélection existe.*/ + bool HasSelection()const{return m_bmpSel.Ok() && m_bmpSel.GetWidth()>0 && m_bmpSel.GetHeight()>0;} + /** Change l'offset de sélection.*/ + void SetSelectionOffset(wxPoint offset){m_offSel = offset;} + /** Retourne l'offset de sélection.*/ + wxPoint GetSelectionOffset()const{return m_offSel;} + + /** Sélectionne une partie de l'image. + * @param r Coordonnées e la partie d'image à copier. + * @param brush Pinceau de remplissage.*/ + void Select(wxRect r, const wxBrush brush=wxNullBrush); + /** Désélectionne.*/ + void Deselect(); + /** Déplace la sélection. + * @param pos Nouvelle position de la sélection.*/ + void MoveSelection(wxPoint pos); + /** Déplace la sélection. + * @param offset Déplacement à effectuer.*/ + void MoveSelection(wxSize offset); + /** Déplace la sélection de la valeur de l'offset et réinitialise l'offset.*/ + void MoveSelection(); + /** Colle la sélection à l'endoit où elle se trouve, offset compris.*/ + void PasteSelection(); + /** @} */ + + /** @name Gestion du presse-papier. + * @{ */ + /** Copier la sélection vers le presse-papiers.*/ + bool CopyToClipboard(); + /** Couper la sélection vers le presse-papiers.*/ + bool CutToClipboard(); + /** Coller le contenu du presse-papiers dans la sélection.*/ + bool PasteFromClipboard(); + /** @} */ + /** Revoie le type de bitmap depuis l'extension d'un fichier. * @param strFile Nom du fichier. *************** *** 180,185 **** enum { BmpDocUpdateAll = 0, ! BmpDocUpdateDraw = 1, // r = zone de mise à jour. }; }; --- 422,440 ---- enum { BmpDocUpdateAll = 0, ! BmpDocUpdateDraw = 1, // r = zone de mise à jour (largeur de trait inclus). ! BmpDocUpdateSel = 2 // r = ancienne zone desélection (cadre de sélection non compris). }; + + protected: + /** Interception de l'évènement de coupage vers le presse-papiers.*/ + void OnCutToClipboard(wxCommandEvent& event); + /** Interception de l'évènement de copiage vers le presse-papiers.*/ + void OnCopyToClipboard(wxCommandEvent& event); + /** Interception de l'évènement de collage vers le presse-papiers.*/ + void OnPasteFromClipboard(wxCommandEvent& event); + /** Interception de la mise à jour des menu d'envoi vers le presse-papiers.*/ + void OnUpdateSendToClipboard(wxUpdateUIEvent& event); + /** Interception de la mise à jour des menus de reception depuis le presse-papiers.*/ + void OnUpdatePasteFromClipboard(wxUpdateUIEvent& event); }; *************** *** 195,199 **** void OnInitialUpdate(); BitmapCtrl *m_pBitmapCtrl; - wxPanel *m_pControlPanel; /** Interception du menu : Affichage/Centrer.*/ --- 450,453 ---- *************** *** 207,211 **** void OnUpdateExtraScroll(wxUpdateUIEvent& event); - /** Crayon de contour.*/ wxPen m_Pen; --- 461,464 ---- *************** *** 237,244 **** BVD_SELMOVE = 9, BVD_SELREMOVE = 10, ! BVD_SELCUT = 11, ! BVD_SELCOPY = 12, ! BVD_SELPASTE = 13, ! BVD_SIZEALL = 14 }; /** Fonction de tracé courante.*/ --- 490,494 ---- BVD_SELMOVE = 9, BVD_SELREMOVE = 10, ! BVD_SIZEALL = 11 }; /** Fonction de tracé courante.*/ *************** *** 267,281 **** ! /** Sauvegarde de la position de la sélection.*/ ! wxPoint m_ptSel; /** Sauvegarde d'un point.*/ wxPoint m_pt; ! /** Sauvegarde d'une partie d'image (sélection).*/ ! wxBitmap m_bmpBuffer; ! /** Position du buffer.*/ ! wxPoint m_ptBuffer; ! /** Offset de la position du buffer vis-à-vis de la souris.*/ ! wxPoint m_ptBufferOffset; /** Interception d'un déplacement de souris (non drag).*/ void OnLeftMove(wxExtendedMouseEvent& event); --- 517,542 ---- ! /** @name Mise à jour du controle de bitmap. ! * @{ */ ! /** Mise à jour de tout ou partie du controle de bitmap. ! * Ne de mande pa de rafraichir le controle. ! * @param region Region à mettre à jour. */ ! void UpdateBitmapContent(const wxRegion& region); ! /** Mise à jour de tout ou partie du controle de bitmap. ! * Ne de mande pa de rafraichir le controle. ! * @param rect Rectangle à mettre à jour.*/ ! void UpdateBitmapContent(wxRect rect); ! /** @} */ ! ! /** @name Données de manipulations. ! *@{*/ ! /** Drapeau d'indication de copie de sélection.*/ ! bool m_bCopySel; /** Sauvegarde d'un point.*/ wxPoint m_pt; ! /** @}*/ + /** @name Interception des évènements souris. + *@{*/ /** Interception d'un déplacement de souris (non drag).*/ void OnLeftMove(wxExtendedMouseEvent& event); *************** *** 286,317 **** /** Interception d'une fin de drag gauche.*/ void OnLeftDragEnd(wxExtendedMouseEvent& event); ! ! /** @name Fonctions interne de manipulation du buffer. ! * @{ */ ! /** Teste si il existe un buffer. ! * @return True si une partie d'image est bufferisée.*/ ! bool HasBuffer()const; ! /** Bufferise une partie de l'image. ! * @param rect Coordonnées de la sous-bitmap à bufferiser.*/ ! void DoBuffer(wxRect rect); ! /** Déplace le buffer à une certaine place. ! * @param pos Position où placer le buffer. ! */ ! void MoveBuffer(wxPoint pos); ! /** Déplace le buffer d'un certaine position. ! * @param offset Déplacement du buffer. ! */ ! void MoveBuffer(wxSize offset); ! /** Dessine le buffer avec le rectangle de ssélection.*/ ! void DrawBuffer(); ! /** Colle le buffer sur l'image.*/ ! void PasteBuffer(); ! /** Efface le buffer.*/ ! void EmptyBuffer(); ! /** Fixe un buffer depuis une bitmap extérieur. ! * @param bmp Bitmap utilisée comme buffer. ! * @param pos Position du buffer.*/ ! void SetBuffer(const wxBitmap& bmp, wxPoint pos=wxPoint(0,0)); ! /** @} */ public: --- 547,551 ---- /** Interception d'une fin de drag gauche.*/ void OnLeftDragEnd(wxExtendedMouseEvent& event); ! /** @}*/ public: *************** *** 326,336 **** void OnUpdate(View *pSender, unsigned int nUpdateCode, void* pUpdateInfo); - - /** Coupe la sélection dans le presse-papier.*/ - void CutSelection(); - /** Copie la sélection dans le presse-papier.*/ - void CopySelection(); - /** Colle le contenu du presse-papier en tant que sélection.*/ - void PasteSelection(); /** Supprime la sélection.*/ void RemoveSelection(); --- 560,563 ---- Index: language.h =================================================================== RCS file: /cvsroot/wxdevcenter/StdPlugin/include/wxDevCenter/StdPlugin/language.h,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** language.h 7 Mar 2005 15:23:53 -0000 1.14 --- language.h 12 Apr 2005 12:10:55 -0000 1.15 *************** *** 340,343 **** --- 340,355 ---- #define WXDC_BITMAP_TOOLHELP_SIZEALL wxT("Size all bitmap") + #define WXDC_BITMAP_CMD_LOAD wxT("Load bitmap") + #define WXDC_BITMAP_CMD_CREATE wxT("Create new bitmap") + #define WXDC_BITMAP_CMD_LINE wxT("Line") + #define WXDC_BITMAP_CMD_RECT wxT("Rectangle") + #define WXDC_BITMAP_CMD_RRECT wxT("Rounded rectangle") + #define WXDC_BITMAP_CMD_ELLIPSE wxT("Ellipse") + #define WXDC_BITMAP_CMD_SELECT wxT("Selection") + #define WXDC_BITMAP_CMD_COPY wxT("Copy selection") + #define WXDC_BITMAP_CMD_DESELECT wxT("Deselect") + #define WXDC_BITMAP_CMD_MOVESEL wxT("Move selection") + #define WXDC_BITMAP_CMD_PASTESEL wxT("Paste selection") + #define WXDC_BITMAP_LABEL_HTML wxT("HTML : #") |
|
From: Emilien K. <cur...@us...> - 2005-04-12 12:11:06
|
Update of /cvsroot/wxdevcenter/StdPlugin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14213 Modified Files: CHANGELOG Log Message: Change BitmapDocument to use actions. Index: CHANGELOG =================================================================== RCS file: /cvsroot/wxdevcenter/StdPlugin/CHANGELOG,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** CHANGELOG 4 Mar 2005 16:35:15 -0000 1.2 --- CHANGELOG 12 Apr 2005 12:10:54 -0000 1.3 *************** *** 4,7 **** --- 4,8 ---- CVS : ----- + - Change BitmapDocument to use actions. - Use of namespaces. |
|
From: Emilien K. <cur...@us...> - 2005-04-04 12:20:23
|
Update of /cvsroot/wxdevcenter/wxDevCenter/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20743/src Modified Files: Document.cpp Log Message: Quelques ajouts sur l'API des documents à actions. Quelques ajouts dans la liaisons du document à actions avec l'exécuteur de commandes pour simplifier l'API. Index: Document.cpp =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/src/Document.cpp,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** Document.cpp 4 Apr 2005 08:11:22 -0000 1.7 --- Document.cpp 4 Apr 2005 12:20:13 -0000 1.8 *************** *** 256,257 **** --- 256,270 ---- { } + + // Surcharge du processus de sauvegarde. + bool ActionDocument::OnSaveDocument(FilePath strDocumentPath) + { + if(Document::OnSaveDocument(strDocumentPath)) + { + m_CommandProcessor.MarkAsSaved(); + return true; + } + else + return false; + } + |