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-05-17 02:47:21
|
Update of /cvsroot/wxdevcenter/web/fr/wxDevCenter In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18522/fr/wxDevCenter Modified Files: changelog.php index.php roadmap.php Added Files: submenu.inc.php Log Message: Utilisation des submenu.inc.php. --- NEW FILE: submenu.inc.php --- <?php $submenu = array("<a href=\"./index.php\">Vue d'ensemble</a>", "<a href=\"./roadmap.php\">Feuille de route / A faire</a>", "<a href=\"./changelog.php\">Liste des changements</a>", "<a href=\"http://sourceforge.net/project/showfiles.php?group_id=125537\">Téléchargements</a> "); $submenuIndex = 0; $submenuRoadMap = 1; $submenuChangeLog = 2; ?> Index: roadmap.php =================================================================== RCS file: /cvsroot/wxdevcenter/web/fr/wxDevCenter/roadmap.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** roadmap.php 15 Apr 2005 12:53:39 -0000 1.1 --- roadmap.php 16 May 2005 13:21:55 -0000 1.2 *************** *** 1,17 **** <?php ! include ("../../page.php"); ! ! $menu = array("<a href=\"../index.php\">Commun</a>", ! "<a href=\"./index.php\">wxDevCenter</a>", ! "<a href=\"../StdPlugin/index.php\">StdPlugin</a>"); ! $submenu = array("<a href=\"./index.php\">Vue d'ensemble</a>", ! "<a href=\"./roadmap.php\">Feuille de route / A faire</a>", ! "<a href=\"./changelog.php\">Liste des changements</a>", ! "<a href=\"./doc.php\">Documentation</a>", ! "<a href=\"http://sourceforge.net/project/showfiles.php?group_id=125537\">Téléchargements</a> "); - WritePageHead("wxDevCenter - Feuille de route", $menu, 1, $submenu, 1, "../.."); ?> --- 1,9 ---- <?php ! include ("../../page.inc.php"); ! include("submenu.inc.php"); ! WritePageHead("wxDevCenter", "Feuille de route/A faire", $menuFR, $menuWXDevCenter, $submenu, $submenuRoadMap); ?> Index: changelog.php =================================================================== RCS file: /cvsroot/wxdevcenter/web/fr/wxDevCenter/changelog.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** changelog.php 15 Apr 2005 12:53:39 -0000 1.1 --- changelog.php 16 May 2005 13:21:55 -0000 1.2 *************** *** 1,17 **** <?php ! include ("../../page.php"); ! ! $menu = array("<a href=\"../index.php\">Commun</a>", ! "<a href=\"./index.php\">wxDevCenter</a>", ! "<a href=\"../StdPlugin/index.php\">StdPlugin</a>"); ! $submenu = array("<a href=\"./index.php\">Vue d'ensemble</a>", ! "<a href=\"./roadmap.php\">Feuille de route / A faire</a>", ! "<a href=\"./changelog.php\">Liste des changements</a>", ! "<a href=\"./doc.php\">Documentation</a>", ! "<a href=\"http://sourceforge.net/project/showfiles.php?group_id=125537\">Téléchargements</a> "); - WritePageHead("wxDevCenter - Liste des changements", $menu, 1, $submenu, 2, "../.."); ?> <div class="sideBox"> --- 1,9 ---- <?php ! include ("../../page.inc.php"); ! include("submenu.inc.php"); ! WritePageHead("wxDevCenter", "Liste des changements", $menuFR, $menuWXDevCenter, $submenu, $submenuChangeLog); ?> <div class="sideBox"> Index: index.php =================================================================== RCS file: /cvsroot/wxdevcenter/web/fr/wxDevCenter/index.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** index.php 15 Apr 2005 13:05:04 -0000 1.2 --- index.php 16 May 2005 13:21:55 -0000 1.3 *************** *** 1,17 **** <?php ! include ("../../page.php"); ! ! $menu = array("<a href=\"../index.php\">Commun</a>", ! "<a href=\"./index.php\">wxDevCenter</a>", ! "<a href=\"../StdPlugin/index.php\">StdPlugin</a>"); ! $submenu = array("<a href=\"./index.php\">Vue d'ensemble</a>", ! "<a href=\"./roadmap.php\">Feuille de route / A faire</a>", ! "<a href=\"./changelog.php\">Liste des changements</a>", ! "<a href=\"./doc.php\">Documentation</a>", ! "<a href=\"http://sourceforge.net/project/showfiles.php?group_id=125537\">Téléchargements</a> "); - WritePageHead("wxDevCenter - Vue d'ensemble", $menu, 1, $submenu, 0, "../.."); ?> <div class="sideBox"> --- 1,9 ---- <?php ! include ("../../page.inc.php"); ! include("submenu.inc.php"); ! WritePageHead("wxDevCenter", "Vue d'ensemble", $menuFR, $menuWXDevCenter, $submenu, $submenuIndex); ?> <div class="sideBox"> |
|
From: Emilien K. <cur...@us...> - 2005-05-17 01:36:08
|
Update of /cvsroot/wxdevcenter/web/fr/StdPlugin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18522/fr/StdPlugin Modified Files: changelog.php index.php roadmap.php Added Files: submenu.inc.php Log Message: Utilisation des submenu.inc.php. --- NEW FILE: submenu.inc.php --- <?php $submenu = array("<a href=\"./index.php\">Vue d'ensemble</a>", "<a href=\"./roadmap.php\">Feuille de route / A faire</a>", "<a href=\"./changelog.php\">Liste des modifications</a>"); $submenuIndex = 0; $submenuRoadMap = 1; $submenuChangeLog = 2; ?> Index: roadmap.php =================================================================== RCS file: /cvsroot/wxdevcenter/web/fr/StdPlugin/roadmap.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** roadmap.php 15 Apr 2005 12:53:39 -0000 1.1 --- roadmap.php 16 May 2005 13:21:54 -0000 1.2 *************** *** 1,16 **** <?php ! include ("../../page.php"); ! ! $menu = array("<a href=\"../index.php\">Commun</a>", ! "<a href=\"../wxDevCenter/index.php\">wxDevCenter</a>", ! "<a href=\"./index.php\">StdPlugin</a>"); ! $submenu = array("<a href=\"./index.php\">Vue d'ensemble</a>", ! "<a href=\"./roadmap.php\">Feuille de route / A faire</a>", ! "<a href=\"./changelog.php\">Liste des modifications</a>" ! ); - WritePageHead("StdPlugin - Feuille de route", $menu, 2, $submenu, 1, "../.."); ?> --- 1,9 ---- <?php ! include ("../../page.inc.php"); ! include("submenu.inc.php"); ! WritePageHead("StdPlugin", "Feuille de route", $menuFR, $menuStdPlugin, $submenu, $submenuRoadMap); ?> Index: changelog.php =================================================================== RCS file: /cvsroot/wxdevcenter/web/fr/StdPlugin/changelog.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** changelog.php 15 Apr 2005 12:53:39 -0000 1.1 --- changelog.php 16 May 2005 13:21:54 -0000 1.2 *************** *** 1,16 **** <?php ! include ("../../page.php"); ! ! $menu = array("<a href=\"../index.php\">Commun</a>", ! "<a href=\"../wxDevCenter/index.php\">wxDevCenter</a>", ! "<a href=\"./index.php\">StdPlugin</a>"); ! $submenu = array("<a href=\"./index.php\">Vue d'ensemble</a>", ! "<a href=\"./roadmap.php\">Feuille de route / A faire</a>", ! "<a href=\"./changelog.php\">Liste des modifications</a>" ! ); - WritePageHead("StdPlugin - Liste des modifications", $menu, 2, $submenu, 2, "../.."); ?> --- 1,9 ---- <?php ! include ("../../page.inc.php"); ! include("submenu.inc.php"); ! WritePageHead("StdPlugin", "Liste des modifications", $menuFR, $menuStdPlugin, $submenu, $submenuChangeLog); ?> Index: index.php =================================================================== RCS file: /cvsroot/wxdevcenter/web/fr/StdPlugin/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 16 May 2005 13:21:54 -0000 1.2 *************** *** 1,16 **** <?php ! include ("../../page.php"); ! ! $menu = array("<a href=\"../index.php\">Commun</a>", ! "<a href=\"../wxDevCenter/index.php\">wxDevCenter</a>", ! "<a href=\"./index.php\">StdPlugin</a>"); ! $submenu = array("<a href=\"./index.php\">Vue d'ensemble</a>", ! "<a href=\"./roadmap.php\">Feuille de route / A faire</a>", ! "<a href=\"./changelog.php\">Liste des modifications</a>" ! ); - WritePageHead("StdPlugin - Vue d'ensemble", $menu, 2, $submenu, 0, "../.."); ?> --- 1,9 ---- <?php ! include ("../../page.inc.php"); ! include("submenu.inc.php"); ! WritePageHead("StdPlugin", "Vue d'ensemble", $menuFR, $menuStdPlugin, $submenu, $submenuIndex); ?> |
|
From: Emilien K. <cur...@us...> - 2005-05-16 22:55:33
|
Update of /cvsroot/wxdevcenter/web/fr In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18522/fr Modified Files: index.php news.php Added Files: submenu.inc.php Log Message: Utilisation des submenu.inc.php. --- NEW FILE: submenu.inc.php --- <?php $submenu = array("<a href=\"./index.php\">Vue d'ensemble</a>", "<a href=\"./news.php\">Nouvelles</a>", "<a href=\"http://sourceforge.net/project/showfiles.php?group_id=125537\">Téléchargements</a> ", "<a href=\"http://sourceforge.net/projects/wxdevcenter/\">Page du projet</a>"); $submenuIndex = 0; $submenuNews = 1; $submenuDownload = 2; $submenuProject = 3; ?> Index: news.php =================================================================== RCS file: /cvsroot/wxdevcenter/web/fr/news.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** news.php 15 Apr 2005 12:53:39 -0000 1.1 --- news.php 16 May 2005 13:21:55 -0000 1.2 *************** *** 1,16 **** <?php ! include ("../page.php"); ! ! $menu = array("<a href=\"./index.php\">Commun</a>", ! "<a href=\"./wxDevCenter/index.php\">wxDevCenter</a>", ! "<a href=\"./StdPlugin/index.php\">StdPlugin</a>"); ! ! $submenu = array("<a href=\"./index.php\">Vue d'ensemble</a>", ! "<a href=\"./news.php\">Nouvelles</a>", ! "<a href=\"http://sourceforge.net/project/showfiles.php?group_id=125537\">Téléchargements</a> ", ! "<a href=\"http://sourceforge.net/projects/wxdevcenter/\">Page du projet</a>"); ! WritePageHead("wxDevCenter - Nouvelles", $menu, 0, $submenu, 1); ?> --- 1,8 ---- <?php ! include("../page.inc.php"); ! include("submenu.inc.php"); ! WritePageHead("wxDevCenter", "Nouvelles", $menuFR, $menuCommon, $submenu, $submenuNews); ?> Index: index.php =================================================================== RCS file: /cvsroot/wxdevcenter/web/fr/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 16 May 2005 13:21:55 -0000 1.2 *************** *** 1,19 **** <?php ! include ("../page.php"); ! ! $menu = array("<a href=\"./index.php\">Commun</a>", ! "<a href=\"./wxDevCenter/index.php\">wxDevCenter</a>", ! "<a href=\"./StdPlugin/index.php\">StdPlugin</a>"); ! ! $submenu = array("<a href=\"./index.php\">Vue d'ensemble</a>", ! "<a href=\"./news.php\">Nouvelles</a>", ! "<a href=\"http://sourceforge.net/project/showfiles.php?group_id=125537\">Téléchargements</a> ", ! "<a href=\"http://sourceforge.net/projects/wxdevcenter/\">Page du projet</a>"); ! WritePageHead("wxDevCenter - Vue d'ensemble", $menu, 0, $submenu, 0); ?> - <div class="sideBox"> <h1>Vue d'ensemble</h1> --- 1,10 ---- <?php ! include("../page.inc.php"); ! include("submenu.inc.php"); ! WritePageHead("wxDevCenter", "Introduction", $menuFR, $menuCommon, $submenu, $submenuIndex); ?> <div class="sideBox"> <h1>Vue d'ensemble</h1> |
|
From: Emilien K. <cur...@us...> - 2005-05-16 19:42:55
|
Update of /cvsroot/wxdevcenter/web/en In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18522/en Modified Files: index.php news.php Added Files: submenu.inc.php Log Message: Utilisation des submenu.inc.php. --- NEW FILE: submenu.inc.php --- <?php $submenu = array("<a href=\"./index.php\">Overview</a>", "<a href=\"./news.php\">News</a>", "<a href=\"http://sourceforge.net/project/showfiles.php?group_id=125537\">Downloads</a> ", "<a href=\"http://sourceforge.net/projects/wxdevcenter/\">Project page</a>"); $submenuIndex = 0; $submenuNews = 1; $submenuDownload = 2; $submenuProject = 3; ?> Index: news.php =================================================================== RCS file: /cvsroot/wxdevcenter/web/en/news.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** news.php 15 Apr 2005 12:53:39 -0000 1.1 --- news.php 16 May 2005 13:21:54 -0000 1.2 *************** *** 1,18 **** <?php ! include ("../page.php"); ! ! $menu = array("<a href=\"./index.php\">Commun</a>", ! "<a href=\"./wxDevCenter/index.php\">wxDevCenter</a>", ! "<a href=\"./StdPlugin/index.php\">StdPlugin</a>"); ! ! $submenu = array("<a href=\"./index.php\">Vue d'ensemble</a>", ! "<a href=\"./news.php\">News</a>", ! "<a href=\"http://sourceforge.net/project/showfiles.php?group_id=125537\">Téléchargements</a> ", ! "<a href=\"http://sourceforge.net/projects/wxdevcenter/\">Page du projet</a>"); ! WritePageHead("wxDevCenter - News", $menu, 0, $submenu, 1, ".."); ?> - <div class="sideBox"> <h1>News</h1> --- 1,9 ---- <?php ! include("../page.inc.php"); ! include("submenu.inc.php"); ! WritePageHead("wxDevCenter", "News", $menuEN, $menuCommon, $submenu, $submenuNews); ?> <div class="sideBox"> <h1>News</h1> Index: index.php =================================================================== RCS file: /cvsroot/wxdevcenter/web/en/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 16 May 2005 13:21:54 -0000 1.2 *************** *** 1,16 **** <?php ! include ("../page.php"); ! ! $menu = array("<a href=\"./index.php\">Common</a>", ! "<a href=\"./wxDevCenter/index.php\">wxDevCenter</a>", ! "<a href=\"./StdPlugin/index.php\">StdPlugin</a>"); ! ! $submenu = array("<a href=\"./index.php\">Overview</a>", ! "<a href=\"./news.php\">News</a>", ! "<a href=\"http://sourceforge.net/project/showfiles.php?group_id=125537\">Downloads</a> ", ! "<a href=\"http://sourceforge.net/projects/wxdevcenter/\">Project page</a>"); ! WritePageHead("wxDevCenter - Overview", $menu, 0, $submenu, 0, ".."); ?> <div class="sideBox"> --- 1,8 ---- <?php ! include("../page.inc.php"); ! include("submenu.inc.php"); ! WritePageHead("wxDevCenter", "Overview", $menuEN, $menuCommon, $submenu, $submenuIndex); ?> <div class="sideBox"> |
|
From: Emilien K. <cur...@us...> - 2005-05-16 19:42:45
|
Update of /cvsroot/wxdevcenter/web/en/StdPlugin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18522/en/StdPlugin Modified Files: changelog.php index.php roadmap.php Added Files: submenu.inc.php Log Message: Utilisation des submenu.inc.php. --- NEW FILE: submenu.inc.php --- <?php $submenu = array("<a href=\"./index.php\">Overview</a>", "<a href=\"./roadmap.php\">Roadmap / Todo</a>", "<a href=\"./changelog.php\">Changelog</a>"); $submenuIndex = 0; $submenuRoadMap = 1; $submenuChangeLog = 2; ?> Index: roadmap.php =================================================================== RCS file: /cvsroot/wxdevcenter/web/en/StdPlugin/roadmap.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** roadmap.php 15 Apr 2005 12:53:39 -0000 1.1 --- roadmap.php 16 May 2005 13:21:54 -0000 1.2 *************** *** 1,16 **** <?php ! include ("../../page.php"); ! ! $menu = array("<a href=\"../index.php\">Common</a>", ! "<a href=\"../wxDevCenter/index.php\">wxDevCenter</a>", ! "<a href=\"./index.php\">StdPlugin</a>"); ! $submenu = array("<a href=\"./index.php\">Overview</a>", ! "<a href=\"./roadmap.php\">Roadmap / Todo</a>", ! "<a href=\"./changelog.php\">Changelog</a>"); - WritePageHead("StdPlugin - Roadmap", $menu, 2, $submenu, 1, "../.."); ?> <div class="sideBox"> <h1>Roadmap</h1> --- 1,11 ---- <?php ! include ("../../page.inc.php"); ! include("submenu.inc.php"); ! WritePageHead("StdPlugin", "Roadmap /Todo", $menuEN, $menuStdPlugin, $submenu, $submenuRoadMap); ?> + <div class="sideBox"> <h1>Roadmap</h1> Index: changelog.php =================================================================== RCS file: /cvsroot/wxdevcenter/web/en/StdPlugin/changelog.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** changelog.php 15 Apr 2005 12:53:39 -0000 1.1 --- changelog.php 16 May 2005 13:21:54 -0000 1.2 *************** *** 1,17 **** <?php ! include ("../../page.php"); ! ! $menu = array("<a href=\"../index.php\">Commun</a>", ! "<a href=\"../wxDevCenter/index.php\">wxDevCenter</a>", ! "<a href=\"./index.php\">StdPlugin</a>"); ! $submenu = array("<a href=\"./index.php\">Vue d'ensemble</a>", ! "<a href=\"./roadmap.php\">Feuille de route / A faire</a>", ! "<a href=\"./changelog.php\">Changelog</a>" ! ); - WritePageHead("StdPlugin - Changelog", $menu, 2, $submenu, 2, "../.."); ?> <div class="sideBox"> <h1>Changelog</h1> --- 1,11 ---- <?php ! include ("../../page.inc.php"); ! include("submenu.inc.php"); ! WritePageHead("StdPlugin", "Changelog", $menuEN, $menuStdPlugin, $submenu, $submenuChangeLog); ?> + <div class="sideBox"> <h1>Changelog</h1> Index: index.php =================================================================== RCS file: /cvsroot/wxdevcenter/web/en/StdPlugin/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 16 May 2005 13:21:54 -0000 1.2 *************** *** 1,16 **** <?php ! include ("../../page.php"); ! ! $menu = array("<a href=\"../index.php\">Common</a>", ! "<a href=\"../wxDevCenter/index.php\">wxDevCenter</a>", ! "<a href=\"./index.php\">StdPlugin</a>"); ! $submenu = array("<a href=\"./index.php\">Overview</a>", ! "<a href=\"./roadmap.php\">Roadmap / Todo</a>", ! "<a href=\"./changelog.php\">Changelog</a>"); - WritePageHead("StdPlugin - Overview", $menu, 2, $submenu, 0, "../.."); ?> <div class="sideBox"> <h1>Overview</h1> --- 1,11 ---- <?php ! include ("../../page.inc.php"); ! include("submenu.inc.php"); ! WritePageHead("StdPlugin", "Overview", $menuEN, $menuStdPlugin, $submenu, $submenuIndex); ?> + <div class="sideBox"> <h1>Overview</h1> |
|
From: Emilien K. <cur...@us...> - 2005-05-16 19:41:07
|
Update of /cvsroot/wxdevcenter/web/en/wxDevCenter In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18522/en/wxDevCenter Modified Files: changelog.php index.php roadmap.php Added Files: submenu.inc.php Log Message: Utilisation des submenu.inc.php. --- NEW FILE: submenu.inc.php --- <?php $submenu = array("<a href=\"./index.php\">Overview</a>", "<a href=\"./roadmap.php\">Roadmap/Todo</a>", "<a href=\"./changelog.php\">Changelog</a>", "<a href=\"http://sourceforge.net/project/showfiles.php?group_id=125537\">Downloads</a> "); $submenuIndex = 0; $submenuRoadMap = 1; $submenuChangeLog = 2; ?> Index: roadmap.php =================================================================== RCS file: /cvsroot/wxdevcenter/web/en/wxDevCenter/roadmap.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** roadmap.php 15 Apr 2005 12:53:39 -0000 1.1 --- roadmap.php 16 May 2005 13:21:54 -0000 1.2 *************** *** 1,16 **** <?php ! include ("../../page.php"); ! ! $menu = array("<a href=\"../index.php\">Common</a>", ! "<a href=\"./index.php\">wxDevCenter</a>", ! "<a href=\"../StdPlugin/index.php\">StdPlugin</a>"); ! $submenu = array("<a href=\"./index.php\">Overview</a>", ! "<a href=\"./roadmap.php\">Roadmap / Todo</a>", ! "<a href=\"./changelog.php\">Changelog</a>", ! "<a href=\"http://sourceforge.net/project/showfiles.php?group_id=125537\">Downloads</a> "); - WritePageHead("wxDevCenter - Roadmap", $menu, 1, $submenu, 1, "../.."); ?> <div class="sideBox"> --- 1,9 ---- <?php ! include ("../../page.inc.php"); ! include("submenu.inc.php"); ! WritePageHead("wxDevCenter", "Roadmap / Todo", $menuEN, $menuWXDevCenter, $submenu, $submenuRoadMap); ?> <div class="sideBox"> Index: changelog.php =================================================================== RCS file: /cvsroot/wxdevcenter/web/en/wxDevCenter/changelog.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** changelog.php 15 Apr 2005 12:53:39 -0000 1.1 --- changelog.php 16 May 2005 13:21:54 -0000 1.2 *************** *** 1,16 **** <?php ! include ("../../page.php"); ! ! $menu = array("<a href=\"../index.php\">Common</a>", ! "<a href=\"./index.php\">wxDevCenter</a>", ! "<a href=\"../StdPlugin/index.php\">StdPlugin</a>"); ! $submenu = array("<a href=\"./index.php\">Overview</a>", ! "<a href=\"./roadmap.php\">Roadmap / Todo</a>", ! "<a href=\"./changelog.php\">Changelog</a>", ! "<a href=\"http://sourceforge.net/project/showfiles.php?group_id=125537\">Downloads</a> "); - WritePageHead("wxDevCenter - Changelog", $menu, 1, $submenu, 2, "../.."); ?> <div class="sideBox"> --- 1,9 ---- <?php ! include ("../../page.inc.php"); ! include("submenu.inc.php"); ! WritePageHead("wxDevCenter", "Changelog", $menuEN, $menuWXDevCenter, $submenu, $submenuChangeLog); ?> <div class="sideBox"> Index: index.php =================================================================== RCS file: /cvsroot/wxdevcenter/web/en/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 16 May 2005 13:21:54 -0000 1.2 *************** *** 1,16 **** <?php ! include ("../../page.php"); ! ! $menu = array("<a href=\"../index.php\">Common</a>", ! "<a href=\"./index.php\">wxDevCenter</a>", ! "<a href=\"../StdPlugin/index.php\">StdPlugin</a>"); ! $submenu = array("<a href=\"./index.php\">Overview</a>", ! "<a href=\"./roadmap.php\">Roadmap / Todo</a>", ! "<a href=\"./changelog.php\">Changelog</a>", ! "<a href=\"http://sourceforge.net/project/showfiles.php?group_id=125537\">Downloads</a> "); - WritePageHead("wxDevCenter - Overview", $menu, 1, $submenu, 0, "../.."); ?> <div class="sideBox"> --- 1,9 ---- <?php ! include ("../../page.inc.php"); ! include("submenu.inc.php"); ! WritePageHead("wxDevCenter", "Overview", $menuEN, $menuWXDevCenter, $submenu, $submenuIndex); ?> <div class="sideBox"> |
|
From: Emilien K. <cur...@us...> - 2005-05-16 19:37:36
|
Update of /cvsroot/wxdevcenter/web/style In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18522/style Modified Files: theme.css Log Message: Utilisation des submenu.inc.php. Index: theme.css =================================================================== RCS file: /cvsroot/wxdevcenter/web/style/theme.css,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** theme.css 15 Apr 2005 12:53:39 -0000 1.1 --- theme.css 16 May 2005 13:21:55 -0000 1.2 *************** *** 46,49 **** --- 46,57 ---- } + div.header div.logo + { + border:0; + margin: 6px; + float: left; + clear: left; + } + div.header div.title { *************** *** 63,66 **** --- 71,79 ---- } + .logo + { + border: 3px solif black; + } + /** Main menu */ div.header div.menu ul |
|
From: Emilien K. <cur...@us...> - 2005-05-16 13:22:55
|
Update of /cvsroot/wxdevcenter/web/fr/doc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18522/fr/doc Added Files: index.php submenu.inc.php Log Message: Utilisation des submenu.inc.php. --- NEW FILE: submenu.inc.php --- <?php $submenu = array("<a href=\"./index.php\">Index</a>"); $submenuIndex = 0; ?> --- NEW FILE: index.php --- <?php include ("../../page.inc.php"); include("submenu.inc.php"); WritePageHead("wxDevCenter > Documentation", "Index", $menuFR, $menuDoc, $submenu, $submenuIndex); ?> <div class="sideBox"> <h1>Index</h1> <ul> <li><a href="#doctech">Documentation technique.</a></li> </ul> </div> <div class="mainPage"> <h1 id="doctech">Documentation technique.</h1> <p>Documentation technique.</p> </div> <?php WritePageFoot(); ?> |
|
From: Emilien K. <cur...@us...> - 2005-05-16 13:22:28
|
Update of /cvsroot/wxdevcenter/web In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18522 Added Files: page.inc.php Removed Files: page.php Log Message: Utilisation des submenu.inc.php. --- NEW FILE: page.inc.php --- <?php $globalpath = "http://localhost/wxDevCenter"; //$globalpath = "http://wxdevcenter.sourceforge.net"; $menuFR = array("<a href=\"$globalpath/fr/\">Commun</a>", "<a href=\"$globalpath/fr/wxDevCenter/\">wxDevCenter</a>", "<a href=\"$globalpath/fr/StdPlugin/\">StdPlugin</a>", "<a href=\"$globalpath/fr/doc/\">Doc technique</a>"); $menuEN = array("<a href=\"$globalpath/en/\">Common</a>", "<a href=\"$globalpath/en/wxDevCenter/\">wxDevCenter</a>", "<a href=\"$globalpath/en/StdPlugin/\">StdPlugin</a>", "<a href=\"$globalpath/en/doc/\">Technical doc</a>"); $menuCommon = 0; $menuWXDevCenter = 1; $menuStdPlugin = 2; $menuDoc = 3; function WritePageHead($title, $subtitle, $menu, $menuID, $submenu, $submenuID) { global $globalpath; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr"> <head> <meta http-equiv="content-type" content="application/xhtml+xml; charset=ISO-8859-15" /> <meta name="author" content="Emilien KIA" /> <meta name="generator" content="SciTE - Scintilla Text Editor" /> <link rel="stylesheet" type="text/css" href="<?php echo $globalpath;?>/style/theme.css" title="Default theme" /> <title><?php echo $title;?></title> </head> <body> <!-- ###### Header ###### --> <div class="header"> <div class="logo"><img class="logo" src="<?php echo $globalpath;?>/img/wxDevCenter.png" alt="Logo wxDevCenter" /></div> <div class="title"><?php echo $title;?></div> <div class="subtitle"><?php echo $subtitle;?></div> <div class="menu"> <ul> <?php for($n=0; $n<sizeof($menu);$n++) { if($n==$menuID) echo "<li class=\"hilight\"> $menu[$n] </li>\n"; else echo "<li> $menu[$n] </li>\n"; } ?> </ul> </div> <div class="submenu"> <ul> <?php for($n=0; $n<sizeof($submenu);$n++) { if($n==$submenuID) echo "<li class=\"hilight\"> $submenu[$n] </li>\n"; else echo "<li> $submenu[$n] </li>\n"; } ?> </ul> </div> </div> <?php } function WritePageFoot($text="") { ?> <div style="vertical-align: bottom;"> <div class="sideBox"> <h2>Conformité W3C</h2> <p>Ce site tente d'être conforme aux normes du <a href="http://w3.org">W3C</a>.</p> <ul> <li><a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml11" alt="Valid XHTML 1.1!" height="31" width="88" /></a></li> <li><a href="http://jigsaw.w3.org/css-validator/"><img src="http://jigsaw.w3.org/css-validator/images/vcss" alt="Valid CSS!" /></a></li> </ul> <h2>SourceForge.net</h2> <p>Projet hébergé par <a href="http://sourceforge.net/projects/wxdevcenter/"><img src="http://sourceforge.net/sflogo.php?group_id=125537&type=2" width="125" height="37" alt="SourceForge.net Logo" /></a> </p> </div> </div> <div class="mainPage"> <?php if($text!="") echo " <p>$text</p>\n"; ?> <p> Icones basé sur le thème <a href="http://kde-look.org/content/show.php?content=17362">Gartoon</a>. </p> </div> </body> </html> <?php } ?> --- page.php DELETED --- |
|
From: Emilien K. <cur...@us...> - 2005-05-16 13:22:09
|
Update of /cvsroot/wxdevcenter/web/en/doc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18522/en/doc Added Files: index.php submenu.inc.php Log Message: Utilisation des submenu.inc.php. --- NEW FILE: submenu.inc.php --- <?php $submenu = array("<a href=\"./index.php\">Index</a>"); $submenuIndex = 0; ?> --- NEW FILE: index.php --- <?php include ("../../page.inc.php"); include("submenu.inc.php"); WritePageHead("wxDevCenter > Documentation", "Index", $menuEN, $menuDoc, $submenu, $submenuIndex); ?> <div class="sideBox"> <h1>Index</h1> <ul> <li><a href="#doctech">Technical documentation.</a></li> </ul> </div> <div class="mainPage"> <h1 id="doctech">Technical documentation.</h1> <p>Technical documentation.</p> </div> <?php WritePageFoot(); ?> |
|
From: Emilien K. <cur...@us...> - 2005-05-16 13:12:56
|
Update of /cvsroot/wxdevcenter/web/en/doc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16591/doc Log Message: Directory /cvsroot/wxdevcenter/web/en/doc added to the repository |
|
From: Emilien K. <cur...@us...> - 2005-05-16 13:10:46
|
Update of /cvsroot/wxdevcenter/web/fr/doc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16189/doc Log Message: Directory /cvsroot/wxdevcenter/web/fr/doc added to the repository |
|
From: Emilien K. <cur...@us...> - 2005-05-14 12:45:42
|
Update of /cvsroot/wxdevcenter/StdPlugin/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20640/src Modified Files: BitmapDocView.cpp SimpleTextDocView.cpp Removed Files: StdPlugin.cpp Log Message: Transition to the new feature/plugin system based on the Element class. Index: SimpleTextDocView.cpp =================================================================== RCS file: /cvsroot/wxdevcenter/StdPlugin/src/SimpleTextDocView.cpp,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** SimpleTextDocView.cpp 25 Apr 2005 15:40:14 -0000 1.11 --- SimpleTextDocView.cpp 14 May 2005 12:45:33 -0000 1.12 *************** *** 175,179 **** LanguageProperty::LangagePropertyStyle* pCurStyle; ! wxConfigBase& GlobalConfig = wxGetApp().GetConfig()[WXDC_SIMPLETEXT_CONFIG_ROOT]; GlobalConfig.SetPath(wxT("/")); --- 175,179 ---- LanguageProperty::LangagePropertyStyle* pCurStyle; ! wxConfigBase& GlobalConfig = Application::GetApp().GetConfig()[WXDC_SIMPLETEXT_CONFIG_ROOT]; GlobalConfig.SetPath(wxT("/")); *************** *** 185,189 **** strRoot.Empty(); strRoot << WXDC_SIMPLETEXT_CONFIG_ROOT << wxT("/") << pLang->strShortName; ! wxConfigBase& Config = wxGetApp().GetConfig()[strRoot]; Config.SetPath(wxT("/")); --- 185,189 ---- strRoot.Empty(); strRoot << WXDC_SIMPLETEXT_CONFIG_ROOT << wxT("/") << pLang->strShortName; ! wxConfigBase& Config = Application::GetApp().GetConfig()[strRoot]; Config.SetPath(wxT("/")); *************** *** 226,230 **** LanguageProperty::LangagePropertyStyle* pCurStyle; ! wxConfigBase& GlobalConfig = wxGetApp().GetConfig()[WXDC_SIMPLETEXT_CONFIG_ROOT]; GlobalConfig.SetPath(wxT("/")); --- 226,230 ---- LanguageProperty::LangagePropertyStyle* pCurStyle; ! wxConfigBase& GlobalConfig = Application::GetApp().GetConfig()[WXDC_SIMPLETEXT_CONFIG_ROOT]; GlobalConfig.SetPath(wxT("/")); *************** *** 236,240 **** strRoot.Empty(); strRoot << WXDC_SIMPLETEXT_CONFIG_ROOT << wxT("/") << pLang->strShortName; ! wxConfigBase& Config = wxGetApp().GetConfig()[strRoot]; Config.SetPath(wxT("/")); --- 236,240 ---- strRoot.Empty(); strRoot << WXDC_SIMPLETEXT_CONFIG_ROOT << wxT("/") << pLang->strShortName; ! wxConfigBase& Config = Application::GetApp().GetConfig()[strRoot]; Config.SetPath(wxT("/")); *************** *** 289,298 **** void StdPlugin::Text::RefreshPreferences() { ! unsigned int n, nb=wxGetApp().GetDocManager().GetViewCount(); View *pView; SimpleTextView *pTextView; for(n=0; n<nb; n++) { ! pView = &(wxGetApp().GetDocManager().GetView(n)); if(pView->IsKindOf(CLASSINFO(SimpleTextView))) { --- 289,298 ---- void StdPlugin::Text::RefreshPreferences() { ! unsigned int n, nb=Application::GetApp().GetDocManager().GetViewCount(); View *pView; SimpleTextView *pTextView; for(n=0; n<nb; n++) { ! pView = &(Application::GetApp().GetDocManager().GetView(n)); if(pView->IsKindOf(CLASSINFO(SimpleTextView))) { Index: BitmapDocView.cpp =================================================================== RCS file: /cvsroot/wxdevcenter/StdPlugin/src/BitmapDocView.cpp,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** BitmapDocView.cpp 25 Apr 2005 15:40:14 -0000 1.24 --- BitmapDocView.cpp 14 May 2005 12:45:32 -0000 1.25 *************** *** 27,30 **** --- 27,33 ---- + /** Définition du patron de workbar des couleurs des bitmaps.*/ + wxDevCenter::WorkBarType BitmapWorkBarTemplate(CLASSINFO(BitmapWorkBar), wxT("Bitmap colors"), wxT("Bitmap color manipulations")); + /** Fonction de tracé de ligne dans une bitmap.*/ *************** *** 1004,1041 **** wxBitmap bmp; ! bmp = wxGetApp().LoadAppBitmap(wxT("bmp/handdraw.png"), wxBITMAP_TYPE_PNG); pTB->AddTool(ID_TOOL_HANDDRAW, WXDC_BITMAP_TOOL_HANDDRAW, bmp, WXDC_BITMAP_TOOLHELP_HANDDRAW, wxITEM_CHECK); ! bmp = wxGetApp().LoadAppBitmap(wxT("bmp/spray.png"), wxBITMAP_TYPE_PNG); pTB->AddTool(ID_TOOL_SPRAY, WXDC_BITMAP_TOOL_SPRAY, bmp, WXDC_BITMAP_TOOLHELP_SPRAY, wxITEM_CHECK); pTB->AddSeparator(); ! bmp = wxGetApp().LoadAppBitmap(wxT("bmp/line.png"), wxBITMAP_TYPE_PNG); pTB->AddTool(ID_TOOL_LINE, WXDC_BITMAP_TOOL_LINE, bmp, WXDC_BITMAP_TOOLHELP_LINE, wxITEM_CHECK); ! bmp = wxGetApp().LoadAppBitmap(wxT("bmp/rect.png"), wxBITMAP_TYPE_PNG); pTB->AddTool(ID_TOOL_RECT, WXDC_BITMAP_TOOL_RECT, bmp, WXDC_BITMAP_TOOLHELP_RECT, wxITEM_CHECK); ! bmp = wxGetApp().LoadAppBitmap(wxT("bmp/ellipse.png"), wxBITMAP_TYPE_PNG); pTB->AddTool(ID_TOOL_ELLIPSE, WXDC_BITMAP_TOOL_ELLIPSE, bmp, WXDC_BITMAP_TOOLHELP_ELLIPSE, wxITEM_CHECK); ! bmp = wxGetApp().LoadAppBitmap(wxT("bmp/rrect.png"), wxBITMAP_TYPE_PNG); pTB->AddTool(ID_TOOL_RRECT, WXDC_BITMAP_TOOL_RRECT, bmp, WXDC_BITMAP_TOOLHELP_RRECT, wxITEM_CHECK); ! bmp = wxGetApp().LoadAppBitmap(wxT("bmp/sizeall.png"), wxBITMAP_TYPE_PNG); pTB->AddTool(ID_TOOL_SIZEALL, WXDC_BITMAP_TOOL_SIZEALL, bmp, WXDC_BITMAP_TOOLHELP_SIZEALL, wxITEM_CHECK); pTB->AddSeparator(); ! bmp = wxGetApp().LoadAppBitmap(wxT("bmp/selection.png"), wxBITMAP_TYPE_PNG); pTB->AddTool(ID_TOOL_SELECTION, WXDC_BITMAP_TOOL_SELECTION, bmp, WXDC_BITMAP_TOOLHELP_SELECTION, wxITEM_CHECK); ! bmp = wxGetApp().LoadAppBitmap(wxT("bmp/selall.png"), wxBITMAP_TYPE_PNG); pTB->AddTool(ID_TOOL_SELALL, WXDC_BITMAP_TOOL_SELALL, bmp, WXDC_BITMAP_TOOLHELP_SELALL, wxITEM_CHECK); ! bmp = wxGetApp().LoadAppBitmap(wxT("bmp/selmove.png"), wxBITMAP_TYPE_PNG); pTB->AddTool(ID_TOOL_SELMOVE, WXDC_BITMAP_TOOL_SELMOVE, bmp, WXDC_BITMAP_TOOL_SELMOVE, wxITEM_CHECK); ! bmp = wxGetApp().LoadAppBitmap(wxT("bmp/selremove.png"), wxBITMAP_TYPE_PNG); pTB->AddTool(ID_TOOL_SELREMOVE, WXDC_BITMAP_TOOL_SELREMOVE, bmp, WXDC_BITMAP_TOOLHELP_SELREMOVE, wxITEM_CHECK); ! bmp = wxGetApp().LoadAppBitmap(wxT("bmp/selcut.png"), wxBITMAP_TYPE_PNG); pTB->AddTool(wxID_CUT, WXDC_BITMAP_TOOL_SELCUT, bmp, WXDC_BITMAP_TOOLHELP_SELCUT, wxITEM_CHECK); ! bmp = wxGetApp().LoadAppBitmap(wxT("bmp/selcopy.png"), wxBITMAP_TYPE_PNG); pTB->AddTool(wxID_COPY, WXDC_BITMAP_TOOL_SELCOPY, bmp, WXDC_BITMAP_TOOLHELP_SELCOPY, wxITEM_CHECK); ! bmp = wxGetApp().LoadAppBitmap(wxT("bmp/selpaste.png"), wxBITMAP_TYPE_PNG); pTB->AddTool(wxID_PASTE, WXDC_BITMAP_TOOL_SELPASTE, bmp, WXDC_BITMAP_TOOLHELP_SELPASTE, wxITEM_CHECK); --- 1007,1044 ---- wxBitmap bmp; ! bmp = Application::GetApp().LoadAppBitmap(wxT("bmp/handdraw.png"), wxBITMAP_TYPE_PNG); pTB->AddTool(ID_TOOL_HANDDRAW, WXDC_BITMAP_TOOL_HANDDRAW, bmp, WXDC_BITMAP_TOOLHELP_HANDDRAW, wxITEM_CHECK); ! bmp = Application::GetApp().LoadAppBitmap(wxT("bmp/spray.png"), wxBITMAP_TYPE_PNG); pTB->AddTool(ID_TOOL_SPRAY, WXDC_BITMAP_TOOL_SPRAY, bmp, WXDC_BITMAP_TOOLHELP_SPRAY, wxITEM_CHECK); pTB->AddSeparator(); ! bmp = Application::GetApp().LoadAppBitmap(wxT("bmp/line.png"), wxBITMAP_TYPE_PNG); pTB->AddTool(ID_TOOL_LINE, WXDC_BITMAP_TOOL_LINE, bmp, WXDC_BITMAP_TOOLHELP_LINE, wxITEM_CHECK); ! bmp = Application::GetApp().LoadAppBitmap(wxT("bmp/rect.png"), wxBITMAP_TYPE_PNG); pTB->AddTool(ID_TOOL_RECT, WXDC_BITMAP_TOOL_RECT, bmp, WXDC_BITMAP_TOOLHELP_RECT, wxITEM_CHECK); ! bmp = Application::GetApp().LoadAppBitmap(wxT("bmp/ellipse.png"), wxBITMAP_TYPE_PNG); pTB->AddTool(ID_TOOL_ELLIPSE, WXDC_BITMAP_TOOL_ELLIPSE, bmp, WXDC_BITMAP_TOOLHELP_ELLIPSE, wxITEM_CHECK); ! bmp = Application::GetApp().LoadAppBitmap(wxT("bmp/rrect.png"), wxBITMAP_TYPE_PNG); pTB->AddTool(ID_TOOL_RRECT, WXDC_BITMAP_TOOL_RRECT, bmp, WXDC_BITMAP_TOOLHELP_RRECT, wxITEM_CHECK); ! bmp = Application::GetApp().LoadAppBitmap(wxT("bmp/sizeall.png"), wxBITMAP_TYPE_PNG); pTB->AddTool(ID_TOOL_SIZEALL, WXDC_BITMAP_TOOL_SIZEALL, bmp, WXDC_BITMAP_TOOLHELP_SIZEALL, wxITEM_CHECK); pTB->AddSeparator(); ! bmp = Application::GetApp().LoadAppBitmap(wxT("bmp/selection.png"), wxBITMAP_TYPE_PNG); pTB->AddTool(ID_TOOL_SELECTION, WXDC_BITMAP_TOOL_SELECTION, bmp, WXDC_BITMAP_TOOLHELP_SELECTION, wxITEM_CHECK); ! bmp = Application::GetApp().LoadAppBitmap(wxT("bmp/selall.png"), wxBITMAP_TYPE_PNG); pTB->AddTool(ID_TOOL_SELALL, WXDC_BITMAP_TOOL_SELALL, bmp, WXDC_BITMAP_TOOLHELP_SELALL, wxITEM_CHECK); ! bmp = Application::GetApp().LoadAppBitmap(wxT("bmp/selmove.png"), wxBITMAP_TYPE_PNG); pTB->AddTool(ID_TOOL_SELMOVE, WXDC_BITMAP_TOOL_SELMOVE, bmp, WXDC_BITMAP_TOOL_SELMOVE, wxITEM_CHECK); ! bmp = Application::GetApp().LoadAppBitmap(wxT("bmp/selremove.png"), wxBITMAP_TYPE_PNG); pTB->AddTool(ID_TOOL_SELREMOVE, WXDC_BITMAP_TOOL_SELREMOVE, bmp, WXDC_BITMAP_TOOLHELP_SELREMOVE, wxITEM_CHECK); ! bmp = Application::GetApp().LoadAppBitmap(wxT("bmp/selcut.png"), wxBITMAP_TYPE_PNG); pTB->AddTool(wxID_CUT, WXDC_BITMAP_TOOL_SELCUT, bmp, WXDC_BITMAP_TOOLHELP_SELCUT, wxITEM_CHECK); ! bmp = Application::GetApp().LoadAppBitmap(wxT("bmp/selcopy.png"), wxBITMAP_TYPE_PNG); pTB->AddTool(wxID_COPY, WXDC_BITMAP_TOOL_SELCOPY, bmp, WXDC_BITMAP_TOOLHELP_SELCOPY, wxITEM_CHECK); ! bmp = Application::GetApp().LoadAppBitmap(wxT("bmp/selpaste.png"), wxBITMAP_TYPE_PNG); pTB->AddTool(wxID_PASTE, WXDC_BITMAP_TOOL_SELPASTE, bmp, WXDC_BITMAP_TOOLHELP_SELPASTE, wxITEM_CHECK); *************** *** 1135,1149 **** pTB->SetToolBitmapSize(wxSize(96, 15)); wxBitmap bmp; ! bmp = wxGetApp().LoadAppBitmap("bmp/SOLID.PNG", wxBITMAP_TYPE_PNG); pTB->AddTool(ID_PEN_SOLID, "Solid", bmp, "Solid pen", wxITEM_CHECK); ! bmp = wxGetApp().LoadAppBitmap("bmp/TRANSPARENT.PNG", wxBITMAP_TYPE_PNG); pTB->AddTool(ID_PEN_TRANSPARENT, "Transparent", bmp, "Transparent pen", wxITEM_CHECK); ! bmp = wxGetApp().LoadAppBitmap("bmp/DOT.PNG", wxBITMAP_TYPE_PNG); pTB->AddTool(ID_PEN_DOT, "Dot", bmp, "Dot pen", wxITEM_CHECK); ! bmp = wxGetApp().LoadAppBitmap("bmp/LONG_DASH.PNG", wxBITMAP_TYPE_PNG); pTB->AddTool(ID_PEN_LONG_DASH, "Long dash", bmp, "Long dash pen", wxITEM_CHECK); ! bmp = wxGetApp().LoadAppBitmap("bmp/SHORT_DASH.PNG", wxBITMAP_TYPE_PNG); pTB->AddTool(ID_PEN_SHORT_DASH, "Short dash", bmp, "Short dash pen", wxITEM_CHECK); ! bmp = wxGetApp().LoadAppBitmap("bmp/DOT_DASH.PNG", wxBITMAP_TYPE_PNG); pTB->AddTool(ID_PEN_DOT_DASH, "Dot...dash", bmp, "Dot...dash pen", wxITEM_CHECK); pTB->Realize(); --- 1138,1152 ---- pTB->SetToolBitmapSize(wxSize(96, 15)); wxBitmap bmp; ! bmp = Application::GetApp().LoadAppBitmap("bmp/SOLID.PNG", wxBITMAP_TYPE_PNG); pTB->AddTool(ID_PEN_SOLID, "Solid", bmp, "Solid pen", wxITEM_CHECK); ! bmp = Application::GetApp().LoadAppBitmap("bmp/TRANSPARENT.PNG", wxBITMAP_TYPE_PNG); pTB->AddTool(ID_PEN_TRANSPARENT, "Transparent", bmp, "Transparent pen", wxITEM_CHECK); ! bmp = Application::GetApp().LoadAppBitmap("bmp/DOT.PNG", wxBITMAP_TYPE_PNG); pTB->AddTool(ID_PEN_DOT, "Dot", bmp, "Dot pen", wxITEM_CHECK); ! bmp = Application::GetApp().LoadAppBitmap("bmp/LONG_DASH.PNG", wxBITMAP_TYPE_PNG); pTB->AddTool(ID_PEN_LONG_DASH, "Long dash", bmp, "Long dash pen", wxITEM_CHECK); ! bmp = Application::GetApp().LoadAppBitmap("bmp/SHORT_DASH.PNG", wxBITMAP_TYPE_PNG); pTB->AddTool(ID_PEN_SHORT_DASH, "Short dash", bmp, "Short dash pen", wxITEM_CHECK); ! bmp = Application::GetApp().LoadAppBitmap("bmp/DOT_DASH.PNG", wxBITMAP_TYPE_PNG); pTB->AddTool(ID_PEN_DOT_DASH, "Dot...dash", bmp, "Dot...dash pen", wxITEM_CHECK); pTB->Realize(); --- StdPlugin.cpp DELETED --- |
|
From: Emilien K. <cur...@us...> - 2005-05-14 12:45:42
|
Update of /cvsroot/wxdevcenter/StdPlugin/build In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20640/build Modified Files: StdPlugin.bkl wx.bkl Log Message: Transition to the new feature/plugin system based on the Element class. Index: wx.bkl =================================================================== RCS file: /cvsroot/wxdevcenter/StdPlugin/build/wx.bkl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** wx.bkl 25 Apr 2005 15:40:14 -0000 1.1 --- wx.bkl 14 May 2005 12:45:32 -0000 1.2 *************** *** 101,104 **** --- 101,117 ---- </set> + + <!-- wxWidgets plateforms definitions. --> + <!-- Set the main definition for plateform. --> + <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> + + + <!-- wxWidgets library variable definitions. --> + <!-- wxWidgets libraries string flags. --> <set var="WXLIBPOSTFIX"> *************** *** 108,112 **** </set> - <set var="WXVERSIONTAG"> <if cond="WXVER=='25'">25</if> --- 121,124 ---- *************** *** 188,191 **** --- 200,204 ---- <debug-runtime-libs>$(DEBUGRUNTIME)</debug-runtime-libs> <define>$(WXUSINGDLL)</define> + <define>$(WXDEF_PLATEFORM)</define> </template> Index: StdPlugin.bkl =================================================================== RCS file: /cvsroot/wxdevcenter/StdPlugin/build/StdPlugin.bkl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** StdPlugin.bkl 25 Apr 2005 15:40:14 -0000 1.1 --- StdPlugin.bkl 14 May 2005 12:45:29 -0000 1.2 *************** *** 2,15 **** <makefile> - <set var="PATHTOWXDC"> - ../wxDevCenter - </set> <dll id="Text" template="wxDLL"> <libname>StdPlugin.Text$(SUFFIX)</libname> ! <include>include</include> - <include>$(PATHTOWXDC)/include</include> <sources> src/Controls.cpp --- 2,30 ---- <makefile> + <set var="BUILDDIR">./build/$(BUILD)</set> + + + <option name="WXDCINCLUDE"> + <description>Additional path to find wxDevCenter include directory.</description> + <values>../wxDevCenter/include</values> + </option> + <option name="WXDCLIB"> + <description>Additional path to find wxDevCenter include directory.</description> + <values>../wxDevCenter/bin</values> + </option> + <option name="EXPORTBIN"> + <description>Additional path prefix to export plugins.</description> + <values>../wxDevCenter, .</values> + <default-value>.</default-value> + </option> + + <dll id="Text" template="wxDLL"> <libname>StdPlugin.Text$(SUFFIX)</libname> ! <dirname>$(EXPORTBIN)/plugins/StdPlugin.Text</dirname> ! <include>$(WXDCINCLUDE)</include> <include>include</include> <sources> src/Controls.cpp *************** *** 21,25 **** <wxlib-gui>adv</wxlib-gui> <wxlib-gui>stc</wxlib-gui> ! <sys-lib>wxDevCenter$(SUFFIX)</sys-lib> <install-to>$(LIBDIR)/wxDevCenter/plugins/StdPlugin.Text</install-to> --- 36,41 ---- <wxlib-gui>adv</wxlib-gui> <wxlib-gui>stc</wxlib-gui> ! <lib-path>$(WXDCLIB)</lib-path> ! <sys-lib>wxDevCenterLib</sys-lib> <install-to>$(LIBDIR)/wxDevCenter/plugins/StdPlugin.Text</install-to> *************** *** 28,34 **** <dll id="Bitmap" template="wxDLL"> <libname>StdPlugin.Bitmap$(SUFFIX)</libname> ! <include>include</include> - <include>$(PATHTOWXDC)/include</include> <sources> src/BitmapCtrl.cpp --- 44,50 ---- <dll id="Bitmap" template="wxDLL"> <libname>StdPlugin.Bitmap$(SUFFIX)</libname> ! <dirname>$(EXPORTBIN)/plugins/StdPlugin.Bitmap</dirname> ! <include>$(WXDCINCLUDE)</include> <include>include</include> <sources> src/BitmapCtrl.cpp *************** *** 41,45 **** <wxlib-gui>core</wxlib-gui> <wxlib-gui>adv</wxlib-gui> ! <sys-lib>wxDevCenter$(SUFFIX)</sys-lib> <install-to>$(LIBDIR)/wxDevCenter/plugins/StdPlugin.Bitmap</install-to> --- 57,62 ---- <wxlib-gui>core</wxlib-gui> <wxlib-gui>adv</wxlib-gui> ! <lib-path>$(WXDCLIB)</lib-path> ! <sys-lib>wxDevCenterLib</sys-lib> <install-to>$(LIBDIR)/wxDevCenter/plugins/StdPlugin.Bitmap</install-to> |
|
From: Emilien K. <cur...@us...> - 2005-05-14 12:45:42
|
Update of /cvsroot/wxdevcenter/StdPlugin/include/wxDevCenter In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20640/include/wxDevCenter Modified Files: StdPlugin.h Log Message: Transition to the new feature/plugin system based on the Element class. Index: StdPlugin.h =================================================================== RCS file: /cvsroot/wxdevcenter/StdPlugin/include/wxDevCenter/StdPlugin.h,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** StdPlugin.h 4 Mar 2005 16:35:16 -0000 1.4 --- StdPlugin.h 14 May 2005 12:45:32 -0000 1.5 *************** *** 30,59 **** #define STD_DLL_PLUGIN WXDC_DLL_EXPORT - - namespace StdPlugin - { - - /** Plugin personnalisé. - * On dérive wxDevCenter::Plugin juste pour implémenter une boite de dialogue "A propos de" personnalisée. - */ - class StdPlugin : public wxDevCenter::Plugin - { - public: - StdPlugin(); - virtual wxPanel* CreateAboutPanel(wxWindow* pParent, wxWindowID id); - virtual void InitPlugin(); - virtual void FinalPlugin(); - - }; - - - /** Panneau "A propos de" personnalisé. - */ - class StdPluginAbout : public wxPanel - { - public: - StdPluginAbout(wxWindow* parent, wxWindowID id); - }; - - - } --- 30,31 ---- |
|
From: Emilien K. <cur...@us...> - 2005-05-14 12:16:38
|
Update of /cvsroot/wxdevcenter/wxDevCenter/build In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15322/build Modified Files: install.bkl wx.bkl wxDevCenter.bkl Log Message: Transition to the new feature/plugin system based on the Element class. Index: wx.bkl =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/build/wx.bkl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** wx.bkl 24 Apr 2005 16:10:56 -0000 1.2 --- wx.bkl 14 May 2005 12:15:54 -0000 1.3 *************** *** 39,43 **** <values>25, 26</values> <values-description>wx2.5.x, wx2.6.x</values-description> ! <default-value>25</default-value> <description> Version of wxWidgets. --- 39,43 ---- <values>25, 26</values> <values-description>wx2.5.x, wx2.6.x</values-description> ! <default-value>26</default-value> <description> Version of wxWidgets. *************** *** 101,104 **** --- 101,117 ---- </set> + + <!-- wxWidgets plateforms definitions. --> + <!-- Set the main definition for plateform. --> + <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> + + + <!-- wxWidgets library variable definitions. --> + <!-- wxWidgets libraries string flags. --> <set var="WXLIBPOSTFIX"> *************** *** 108,112 **** </set> - <set var="WXVERSIONTAG"> <if cond="WXVER=='25'">25</if> --- 121,124 ---- *************** *** 188,191 **** --- 200,204 ---- <debug-runtime-libs>$(DEBUGRUNTIME)</debug-runtime-libs> <define>$(WXUSINGDLL)</define> + <define>$(WXDEF_PLATEFORM)</define> </template> Index: install.bkl =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/build/install.bkl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** install.bkl 24 Apr 2005 16:10:56 -0000 1.1 --- install.bkl 14 May 2005 12:15:53 -0000 1.2 *************** *** 15,18 **** --- 15,19 ---- wxDevCenter/Config.h wxDevCenter/DocView.h + wxDevCenter/Element.h wxDevCenter/FileSystem.h wxDevCenter/FileSystemCtrl.h Index: wxDevCenter.bkl =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/build/wxDevCenter.bkl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** wxDevCenter.bkl 24 Apr 2005 16:10:56 -0000 1.1 --- wxDevCenter.bkl 14 May 2005 12:15:54 -0000 1.2 *************** *** 16,20 **** <lib id="specific" template="wxLib"> <include>include</include> ! <sources> src/$(DIRSPEC)/Config.cpp --- 16,21 ---- <lib id="specific" template="wxLib"> <include>include</include> ! <dirname>./bin</dirname> ! <sources> src/$(DIRSPEC)/Config.cpp *************** *** 27,35 **** </lib> ! ! <exe id="wxDevCenter" template="wxEXE"> ! <app-type>gui</app-type> ! <exename>wxDevCenter$(SUFFIX)</exename> <depends>specific</depends> <library>specific</library> --- 28,37 ---- </lib> + <dll id="wxDevCenterLib" template="wxDLL"> + <dllname>wxDevCenterLib</dllname> + <libname>wxDevCenterLib</libname> + <version>0.3.0</version> ! <dirname>./bin</dirname> <depends>specific</depends> <library>specific</library> *************** *** 44,47 **** --- 46,50 ---- src/DocType.cpp src/Document.cpp + src/Element.cpp src/FileSystem.cpp src/FileSystemCtrl.cpp *************** *** 59,68 **** 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> --- 62,97 ---- src/WorkBar.cpp </sources> ! <wxlib /> ! <wxlib-base>xml</wxlib-base> ! <wxlib-gui>core</wxlib-gui> ! <wxlib-gui>adv</wxlib-gui> ! <wxlib-gui>fl</wxlib-gui> ! ! <install-to>$(LIBDIR)</install-to> ! </dll> ! ! ! <exe id="wxDevCenter" template="wxEXE"> ! <app-type>gui</app-type> ! <exename>wxDevCenter$(SUFFIX)</exename> ! ! <depends>wxDevCenterLib</depends> ! <library>wxDevCenterLib</library> ! <dirname>./bin</dirname> ! ! <include>include</include> ! ! <sources> ! src/AppImpl.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>core</wxlib-gui> <wxlib-gui>adv</wxlib-gui> + <wxlib-gui>fl</wxlib-gui> <install-to>$(BINDIR)</install-to> |
|
From: Emilien K. <cur...@us...> - 2005-05-14 12:16:38
|
Update of /cvsroot/wxdevcenter/wxDevCenter/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15322/include Modified Files: wxDevCenter.h wxDevCenterPlugin.h Added Files: wxDevCenterMain.h Log Message: Transition to the new feature/plugin system based on the Element class. Index: wxDevCenterPlugin.h =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/include/wxDevCenterPlugin.h,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** wxDevCenterPlugin.h 3 Dec 2004 16:47:43 -0000 1.1 --- wxDevCenterPlugin.h 14 May 2005 12:15:54 -0000 1.2 *************** *** 34,37 **** --- 34,39 ---- #include <wx/wx.h> // Utilisation de la bibliothèque générale wxWidgets + + // Definition des macros d'import/export de symboles #define WXDC_DLL_EXPORT WXEXPORT *************** *** 39,44 **** --- 41,48 ---- // Définition du sens d'import/export des symboles + #define WXDC_DLL_MAIN WXDC_DLL_IMPORT #define WXDC_DLL_BASE WXDC_DLL_IMPORT #define WXDC_DLL_PLUGIN WXDC_DLL_EXPORT + #define WXDC_IS_MAIN 0 #define WXDC_IS_BASE 0 #define WXDC_IS_PLUGIN 1 Index: wxDevCenter.h =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/include/wxDevCenter.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** wxDevCenter.h 15 Apr 2005 15:37:39 -0000 1.2 --- wxDevCenter.h 14 May 2005 12:15:54 -0000 1.3 *************** *** 29,34 **** - #define WXUSINGDLL - // Insertion de la configuration #include <wxDevCenter/setup.h> --- 29,32 ---- *************** *** 45,49 **** - // Definition des macros d'import/export de symboles #define WXDC_DLL_EXPORT WXEXPORT --- 43,46 ---- *************** *** 51,56 **** --- 48,55 ---- // Définition du sens d'import/export des symboles + #define WXDC_DLL_MAIN WXDC_DLL_IMPORT #define WXDC_DLL_BASE WXDC_DLL_EXPORT #define WXDC_DLL_PLUGIN WXDC_DLL_IMPORT + #define WXDC_IS_MAIN 0 #define WXDC_IS_BASE 1 #define WXDC_IS_PLUGIN 0 *************** *** 58,66 **** // Support du langage. ! #include "wxDevCenter/language.h" // Insertion de la configuration. ! #include "wxDevCenter/setup.h" // Entete globale de l'application. ! #include "wxDevCenter/Application.h" --- 57,68 ---- // Support du langage. ! #include <wxDevCenter/language.h> // Insertion de la configuration. ! #include <wxDevCenter/setup.h> // Entete globale de l'application. ! #include <wxDevCenter/Element.h> ! #include <wxDevCenter/Application.h> ! ! --- NEW FILE: wxDevCenterMain.h --- (This appears to be a binary file; contents omitted.) |
|
From: Emilien K. <cur...@us...> - 2005-05-14 12:16:38
|
Update of /cvsroot/wxdevcenter/wxDevCenter In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15322 Modified Files: CHANGELOG Log Message: Transition to the new feature/plugin system based on the Element class. Index: CHANGELOG =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/CHANGELOG,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** CHANGELOG 1 Apr 2005 20:52:20 -0000 1.10 --- CHANGELOG 14 May 2005 12:15:53 -0000 1.11 *************** *** 4,7 **** --- 4,8 ---- CVS : ----- + - Transition to the new feature/plugin system base on Element. - Make ActionDocument use wxCommandProcessor/wxCommand interface. - Make CommandEvent generated by TopFrame children (like WorkBar) pass by View before being processed by the application. |
|
From: Emilien K. <cur...@us...> - 2005-05-14 12:16:08
|
Update of /cvsroot/wxdevcenter/wxDevCenter/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15322/src Modified Files: AboutBox.cpp Application.cpp DocManager.cpp DocType.cpp Document.cpp FileSystem.cpp FileSystemStandard.cpp FileTools.cpp Frame.cpp MDIFrame.cpp MainFrame.cpp Manager.cpp Plugin.cpp Project.cpp View.cpp WorkBar.cpp Added Files: AppImpl.cpp Element.cpp Log Message: Transition to the new feature/plugin system based on the Element class. Index: DocType.cpp =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/src/DocType.cpp,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** DocType.cpp 16 Mar 2005 14:27:37 -0000 1.3 --- DocType.cpp 14 May 2005 12:15:56 -0000 1.4 *************** *** 59,63 **** // Déclaration du type de documents. ! wxGetApp().GetDocManager().RegisterDocTemplate(this); } --- 59,63 ---- // Déclaration du type de documents. ! Application::GetApp().GetDocManager().RegisterDocTemplate(this); } --- NEW FILE: Element.cpp --- (This appears to be a binary file; contents omitted.) Index: AboutBox.cpp =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/src/AboutBox.cpp,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** AboutBox.cpp 3 Dec 2004 17:27:29 -0000 1.2 --- AboutBox.cpp 14 May 2005 12:15:56 -0000 1.3 *************** *** 87,92 **** { SetBackgroundColour(*wxWHITE); ! m_WXDCLogo = wxGetApp().LoadAppBitmap("wxDevCenter.png", wxBITMAP_TYPE_PNG); ! m_WXLogo = wxGetApp().LoadAppBitmap("wx.png", wxBITMAP_TYPE_PNG); } --- 87,92 ---- { SetBackgroundColour(*wxWHITE); ! m_WXDCLogo = Application::GetApp().LoadAppBitmap("wxDevCenter.png", wxBITMAP_TYPE_PNG); ! m_WXLogo = Application::GetApp().LoadAppBitmap("wx.png", wxBITMAP_TYPE_PNG); } *************** *** 114,118 **** wxListbook(parent, id) { ! PluginManager& PM = wxGetApp().GetPluginManager(); for(unsigned int n=0; n<PM.GetCount(); n++) --- 114,118 ---- wxListbook(parent, id) { ! /* PluginManager& PM = Application::GetApp().GetPluginManager(); for(unsigned int n=0; n<PM.GetCount(); n++) *************** *** 122,126 **** pWindow = new wxWindow(this, -1); AddPage(pWindow, PM[n].GetName()); ! } } --- 122,126 ---- pWindow = new wxWindow(this, -1); AddPage(pWindow, PM[n].GetName()); ! }*/ } Index: MDIFrame.cpp =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/src/MDIFrame.cpp,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** MDIFrame.cpp 4 Apr 2005 08:11:23 -0000 1.5 --- MDIFrame.cpp 14 May 2005 12:15:56 -0000 1.6 *************** *** 44,48 **** ViewFrame(pTopFrame) { ! SetImageList(wxGetApp().GetDocManager().GetImageList(WXDC_SETUP_NOTEBOOK_ICON_SIZE)); } --- 44,48 ---- ViewFrame(pTopFrame) { ! SetImageList(Application::GetApp().GetDocManager().GetImageList(WXDC_SETUP_NOTEBOOK_ICON_SIZE)); } *************** *** 93,97 **** { wxString str = pView->GetDocument()->GetDocumentName(); ! long type = wxGetApp().GetDocManager().FindDocTemplate(pView->GetDocument()->GetDocTemplate()); View *pOldView = GetActiveView(); --- 93,97 ---- { wxString str = pView->GetDocument()->GetDocumentName(); ! long type = Application::GetApp().GetDocManager().FindDocTemplate(pView->GetDocument()->GetDocTemplate()); View *pOldView = GetActiveView(); *************** *** 186,190 **** while(GetPageCount()>0) { ! if(!wxGetApp().GetDocManager().CloseView((View*)GetPage(0))) return false; } --- 186,190 ---- while(GetPageCount()>0) { ! if(!Application::GetApp().GetDocManager().CloseView((View*)GetPage(0))) return false; } Index: View.cpp =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/src/View.cpp,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** View.cpp 12 Apr 2005 12:12:02 -0000 1.5 --- View.cpp 14 May 2005 12:15:56 -0000 1.6 *************** *** 30,36 **** using namespace wxDevCenter; ! IMPLEMENT_DYNAMIC_CLASS(wxDevCenter::View, wxPanel) ! BEGIN_EVENT_TABLE(wxDevCenter::View, wxPanel) END_EVENT_TABLE() --- 30,36 ---- using namespace wxDevCenter; ! IMPLEMENT_DYNAMIC_CLASS2(View, wxPanel, Element) ! BEGIN_EVENT_TABLE(View, wxPanel) END_EVENT_TABLE() *************** *** 39,42 **** --- 39,43 ---- View::View(): wxPanel(), + plugins::PluginItem(), m_pDocument(NULL) { Index: FileTools.cpp =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/src/FileTools.cpp,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** FileTools.cpp 28 Feb 2005 15:26:23 -0000 1.5 --- FileTools.cpp 14 May 2005 12:15:56 -0000 1.6 *************** *** 62,72 **** } - FilePath::FilePath(const wchar_t* psz): - wxString(psz) - { - Validate(); - } - - // Retourne le nom du fichier "titre.ext" wxString FilePath::GetFileName()const --- 62,65 ---- Index: FileSystem.cpp =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/src/FileSystem.cpp,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** FileSystem.cpp 17 Mar 2005 17:51:24 -0000 1.4 --- FileSystem.cpp 14 May 2005 12:15:56 -0000 1.5 *************** *** 59,62 **** --- 59,64 ---- // Fonctions de la classe de base + IMPLEMENT_CLASS2(FileSystem, wxEvtHandler, Element) + // Retourne le répertoire parent. FilePath FileSystem::GetParentDirectory(FilePath strPath) *************** *** 82,86 **** FilePath str = pItemData->GetPath(); if(!pTree->GetFileSystem()->IsDirectory(str)) ! wxGetApp().OpenDocument(str); } else --- 84,88 ---- FilePath str = pItemData->GetPath(); if(!pTree->GetFileSystem()->IsDirectory(str)) ! Application::GetApp().OpenDocument(str); } else *************** *** 232,236 **** FileSystemManager::FileSystemManager(): ! InitializableObjectManager<FileSystem>() { } --- 234,238 ---- FileSystemManager::FileSystemManager(): ! ElementManager<FileSystem>() { } *************** *** 263,270 **** bool FileSystemManager::Register(FileSystem* pFileSystem, bool bMountWorkBar) { ! if(!InitializableObjectManager<FileSystem>::Register(pFileSystem)) return false; if(bMountWorkBar) ! wxGetApp().GetWorkBarManager().RegisterWorkBar(CLASSINFO(FileSystemTreeWorkBar), pFileSystem->GetFileSystemName(), pFileSystem->GetProtocoleName(), pFileSystem); return true; } --- 265,272 ---- bool FileSystemManager::Register(FileSystem* pFileSystem, bool bMountWorkBar) { ! if(!ElementManager<FileSystem>::Register(pFileSystem)) return false; if(bMountWorkBar) ! Application::GetApp().GetWorkBarManager().RegisterWorkBar(CLASSINFO(FileSystemTreeWorkBar), pFileSystem->GetFileSystemName(), pFileSystem->GetProtocoleName(), pFileSystem); return true; } *************** *** 273,278 **** bool FileSystemManager::Unregister(FileSystem* pFileSystem) { ! wxGetApp().GetWorkBarManager().UnregisterWorkBar(CLASSINFO(FileSystemTreeWorkBar), pFileSystem); ! return InitializableObjectManager<FileSystem>::Unregister(pFileSystem); } --- 275,280 ---- bool FileSystemManager::Unregister(FileSystem* pFileSystem) { ! Application::GetApp().GetWorkBarManager().UnregisterWorkBar(CLASSINFO(FileSystemTreeWorkBar), pFileSystem); ! return ElementManager<FileSystem>::Unregister(pFileSystem); } Index: Plugin.cpp =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/src/Plugin.cpp,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Plugin.cpp 7 Mar 2005 15:23:04 -0000 1.2 --- Plugin.cpp 14 May 2005 12:15:56 -0000 1.3 *************** *** 26,126 **** #include <wxDevCenter/Plugin.h> - using namespace wxDevCenter; /** ! * Implémentation de la classe wxDevCenter::Plugin. */ ! Plugin::Plugin(wxString strName, wxString strDescript): wxObject(), ! m_strName(strName), ! m_strDescript(strDescript) { - wxGetApp().GetPluginManager().Add(this); } ! Plugin::~Plugin(void) { } ! // Retourne le nom du plugin. ! wxString Plugin::GetName()const { ! return m_strName; } ! // Retourne la description du plugin. ! wxString Plugin::GetDescription()const { ! return m_strDescript; } ! // Retourne une image représentant le logo du plugin. ! wxBitmap Plugin::GetLogo(wxSize sz) { ! wxBitmap bmp(sz.x, sz.y); ! return bmp; } ! // Initialisation du plugin. ! void Plugin::InitPlugin() { } ! // Finalisalisation du plugin. ! void Plugin::FinalPlugin() { } ! // Retourne un panneau "A propos de" du plugin. ! wxPanel* Plugin::CreateAboutPanel(wxWindow* WXUNUSED(pParent), wxWindowID WXUNUSED(id)) { ! return NULL; } /** ! * Implémentation de la classe wxDevCenter::PluginManager. */ ! PluginManager::PluginManager(void): ! PluginArray() { } ! PluginManager::~PluginManager(void) { } ! // Ajoute un plugin. ! void PluginManager::Add(Plugin* pPlugin) { ! PluginArray::Add(pPlugin); } ! // Initialise les plugins. ! void PluginManager::InitPlugins() { ! for(unsigned int n=0; n<GetCount(); n++) ! Item(n)->InitPlugin(); } ! // Finalise les plugins. ! void PluginManager::FinalPlugins() { ! for(unsigned int n=0; n<GetCount(); n++) ! Item(n)->FinalPlugin(); } ! // Dump des plugins. ! void PluginManager::Dump() { wxString str; ! str << "Plugins : " << GetCount() << "\n"; ! for(unsigned int n=0; n<GetCount(); n++) ! str << Item(n)->GetName(); ! wxMessageBox(str); } --- 26,822 ---- #include <wxDevCenter/Plugin.h> using namespace wxDevCenter; + using namespace plugins; + + /** ! * Implémentation de la classe wxDevCenter::plugins::ModuleRefData. */ ! ModuleRefData::ModuleRefData(): ! wxObjectRefData(), ! m_flagState(Initial), ! m_DLL(), ! m_Elements() ! { ! } ! ! ModuleRefData::~ModuleRefData() ! { ! } ! ! // Débugage : Dump du contenu. ! wxDEBUG_CODE( ! wxString ModuleRefData::Dump() ! { ! wxString str; ! str << m_strPath << wxT(" : ") << m_Elements.GetCount() << wxT(" objects registered.") << wxT("\n"); ! return str; ! } ! ) ! ! // Charge le module. ! bool ModuleRefData::Load(wxString strPath) ! { ! wxLogDebug("Loading module %s", strPath); ! ! BaseElementManager* pOldBEM = Element::s_pElementManager; ! Element::s_pElementManager = &m_Elements; ! ! m_strPath = strPath; ! ! bool flag = m_DLL.Load(strPath, wxDL_VERBATIM); ! ! Element::s_pElementManager = pOldBEM; ! ! return flag; ! } ! ! // Décharge le module. ! bool ModuleRefData::Unload() ! { ! return false; ! } ! ! // Initialise le contenu du module. ! bool ModuleRefData::Initialize() ! { ! wxLogDebug("ModuleRefData::Initialize : %d", m_Elements.GetCount()); ! bool bOK = true; ! for(long l=0; l<(long)m_Elements.GetCount(); l++) ! { ! wxLogDebug("Initialize element %ld : %s", l, m_Elements[l].GetClassInfo()->GetClassName()); ! if(!m_Elements[l].IsInitialized()) ! bOK &= m_Elements[l].Initialize(); ! } ! return bOK; ! } ! ! // Finalise le contenu du module. ! bool ModuleRefData::Finalize() ! { ! return false; ! } ! ! ! ! /** ! * Implémentation de la classe wxDevCenter::plugins::Module. ! */ ! ! IMPLEMENT_CLASS(Module, wxObject) ! ! // Constructeur. ! Module::Module(): ! wxObject() ! { ! } ! ! // Débugage : Dump du contenu. ! wxDEBUG_CODE( ! wxString Module::Dump() ! { ! ModuleRefData* pModRef = GetModuleRef(); ! if(pModRef!=NULL) ! return pModRef->Dump(); ! else ! return wxT("Null module"); ! } ! ) ! ! // Teste si le module est chargé. ! bool Module::IsLoaded()const ! { ! if(GetModuleRef()!=NULL) ! return GetModuleRef()->IsLoaded(); ! else ! return false; ! } ! ! // Teste si le module est initialisé. ! bool Module::IsInitialized()const ! { ! if(GetModuleRef()!=NULL) ! return GetModuleRef()->IsInitialized(); ! else ! return false; ! } ! ! ! // Charge le module et enregistre son contenu. ! bool Module::Load(wxString strPath) ! { ! AllocExclusive(); ! return GetModuleRef()->Load(strPath); ! } ! ! // Décharge le module. ! bool Module::Unload() ! { ! return false; ! } ! ! // Initialise le contenu du module. ! bool Module::Initialize() ! { ! if(GetModuleRef()!=NULL) ! return GetModuleRef()->Initialize(); ! else ! return false; ! } ! ! // Finalise le contenu du module. ! bool Module::Finalize() ! { ! return false; ! } ! ! ! /** ! * Implémentation de la classe wxDevCenter::plugins::Plugin. ! */ ! ! IMPLEMENT_CLASS(Plugin, wxObject) ! ! // Constructeur. ! Plugin::Plugin(): wxObject(), ! m_pLoader(NULL), ! m_Status(Initial) { } ! // Débugage : Dump du contenu. ! wxDEBUG_CODE( ! wxString Plugin::Dump() { + wxString str; + str << m_strName << wxT(" (") << m_Version.ToString() << wxT(")") << wxT(" : ") << m_strDescript << wxT("\n"); + str << wxT("Used plugins : ") << m_arrstrPlugins.GetCount() << wxT("\n"); + for(long l=0; l<(long)m_arrstrPlugins.GetCount(); l++) + str << wxT(" - ") << m_arrstrPlugins[l] << wxT("\n"); + str << wxT("Used modules : ") << m_arrstrModules.GetCount() << wxT("\n"); + for(long l=0; l<(long)m_arrstrModules.GetCount(); l++) + str << wxT(" - ") << m_arrstrModules[l] << wxT("\n"); + return str; } + ) ! // Teste si le plugin est chargé. ! bool Plugin::IsLoaded()const { ! return (m_Status&Loaded)!=0; } ! ! // Teste si le plugin peut être chargé. ! bool Plugin::CheckValidity() { ! return false; } ! // Précharge la description du plugin. ! bool Plugin::PreLoad(wxString strName) { ! wxString strFilePath = Application::GetApp().GetConfig().GetPluginsPath() + wxT("/") + strName + wxT("/plugin.xml"); ! PluginDescriptionFile File(strFilePath); ! if(File.IsValid()) ! { ! m_strName = File.GetName(); ! m_strDescript = File.GetDescript(); ! m_Version = File.GetVersion(); ! m_strAuthor = File.GetAuthor(); ! m_strLicence = File.GetLicence(); ! m_strNotes = File.GetNotes(); ! m_strURL = File.GetURL(); ! File.FillModuleArray(m_arrstrModules); ! File.FillDependantPluginArray(m_arrstrPlugins); ! m_Status = PreLoaded; ! return true; ! } ! m_Status = ErrDescript; ! wxLogDebug("Invalid feature description file"); ! return false; } ! // Charge le plugin. ! bool Plugin::Load(wxString strName) { + unsigned long l; + bool bOk = true; + + wxLogDebug("Loading plugin %s ...", strName); + + // Préchargement des plugins dépendants. + for(l=0; l<m_arrstrPlugins.GetCount(); l++) + bOk &= m_pLoader->LoadPlugin(m_arrstrPlugins[l])!=NULL; + + // Préchargement des modules. + for(l=0; l<m_arrstrModules.GetCount(); l++) + bOk &= m_pLoader->LoadModule(strName + wxT("/") + m_arrstrModules[l])!=NULL; + + m_Status = Loaded | (bOk?0:Partial); + + return bOk; } ! // Décharge le plugin. ! bool Plugin::Unload() { + return false; } ! // Initialise le plugin. ! bool Plugin::Initialize() { ! return false; ! } ! ! // Finalise le plugin. ! bool Plugin::Finalize() ! { ! return false; } + /** ! * Implémentation de la classe wxDevCenter::plugins::Plugin. */ ! IMPLEMENT_CLASS(Feature, wxObject) ! ! // Constructeur. ! Feature::Feature(): ! wxObject(), ! m_pLoader(NULL), ! m_Status(Initial) { } ! // Débugage : Dump du contenu. ! wxDEBUG_CODE( ! wxString Feature::Dump() { + wxString str; + str << m_strName << wxT(" (") << m_Version.ToString() << wxT(")") << wxT(" : ") << m_strDescript << wxT("\n"); + str << wxT("Used features : ") << m_arrstrFeatures.GetCount() << wxT("\n"); + for(long l=0; l<(long)m_arrstrFeatures.GetCount(); l++) + str << wxT(" - ") << m_arrstrFeatures[l] << wxT("\n"); + str << wxT("Used plugins : ") << m_arrstrPlugins.GetCount() << wxT("\n"); + for(long l=0; l<(long)m_arrstrPlugins.GetCount(); l++) + str << wxT(" - ") << m_arrstrPlugins[l] << wxT("\n"); + return str; } + ) ! // Teste si la fonctionnalité peut être chargé. ! bool Feature::CheckValidity() { ! return false; } ! // Teste si la fonctionnalité est chargée. ! bool Feature::IsLoaded()const { ! return (m_Status&Loaded)!=0; } ! // Précharge la description de la fonctionnalité. ! bool Feature::PreLoad(wxString strName) { ! wxString strFilePath = Application::GetApp().GetConfig().GetFeaturesPath() + wxT("/") + strName + wxT("/feature.xml"); ! FeatureDescriptionFile File(strFilePath); ! if(File.IsValid()) ! { ! m_strName = File.GetName(); ! m_strDescript = File.GetDescript(); ! m_Version = File.GetVersion(); ! m_strAuthor = File.GetAuthor(); ! m_strLicence = File.GetLicence(); ! m_strNotes = File.GetNotes(); ! m_strURL = File.GetURL(); ! File.FillDependantFeatureArray(m_arrstrFeatures); ! File.FillDependantPluginArray(m_arrstrPlugins); ! m_Status = PreLoaded; ! return true; ! } ! wxLogDebug("Invalid feature description file"); ! m_Status = ErrDescript; ! return false; } ! // Charge la fonctionnalité. ! bool Feature::Load(wxString strName) ! { ! unsigned long l; ! bool bOk = true; ! ! wxLogDebug("Loading feature %s ...", strName); ! ! // Préchargement des fonctionnalité dépendantes. ! for(l=0; l<m_arrstrFeatures.GetCount(); l++) ! bOk &= m_pLoader->LoadFeature(m_arrstrFeatures[l])!=NULL; ! ! // Préchargement des plugins dépendants. ! for(l=0; l<m_arrstrPlugins.GetCount(); l++) ! bOk &= m_pLoader->LoadPlugin(m_arrstrPlugins[l])!=NULL; ! ! m_Status = Loaded | (bOk?0:Partial); ! ! return bOk; ! } ! ! // Décharge la fonctionnalité. ! bool Feature::Unload() ! { ! return false; ! } ! ! // Initialise la fonctionnalité. ! bool Feature::Initialize() ! { ! return false; ! } ! ! // Finalise la fonctionnalité. ! bool Feature::Finalize() ! { ! return false; ! } ! ! // Retourne une image représentant le logo du plugin. ! wxBitmap Feature::GetLogo(wxSize WXUNUSED(sz)) ! { ! return wxNullBitmap; ! } ! ! // Retourne les crédits de la fonctionnalité. ! wxString Feature::GetCredits()const ! { ! return wxT(""); ! } ! ! // Retourne la licence de la fonctionnalité. ! wxString Feature::GetLicence()const ! { ! return wxT(""); ! } ! ! ! /** ! * Implémentation de la classe wxDevCenter::PluginLoader. ! */ ! ! IMPLEMENT_CLASS(PluginLoader, wxObject) ! ! PluginLoader::PluginLoader(): ! wxObject(), ! m_FeatureMap(), ! m_PluginMap(), ! m_ModuleMap() ! { ! } ! ! // Charge tous les plugins. ! bool PluginLoader::Load() ! { ! // Précharge les descriptions de plugins. ! PreLoadDescription(); ! ! // Charge les fonctionnalités et leurs dépendances. ! for(FeatureMap::iterator iterFeature = m_FeatureMap.begin(); iterFeature != m_FeatureMap.end(); ++iterFeature ) ! LoadFeature(iterFeature->first); ! ! // Charge les plugins et leurs dépendances. ! for(PluginMap::iterator iterPlugin = m_PluginMap.begin(); iterPlugin != m_PluginMap.end(); ++iterPlugin) ! LoadPlugin(iterPlugin->first); ! ! return true; ! } ! ! // Précharge la description des fonctionnalités et des plugins. ! void PluginLoader::PreLoadDescription() { wxString str; ! bool bCont; ! wxDir dir; ! ! wxLogDebug("Preload feature descriptions :"); ! dir.Open(Application::GetApp().GetConfig().GetFeaturesPath()); ! bCont = dir.GetFirst(&str, wxEmptyString, wxDIR_DIRS); ! while(bCont) ! { ! wxLogDebug(" -> %s", str); ! 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(" -> %s", str); ! PreLoadPlugin(str); ! bCont = dir.GetNext(&str); ! } ! ! } ! ! ! // Précharge la description d'une fonctionnalité. ! Feature* PluginLoader::PreLoadFeature(wxString strName) ! { ! Feature& feature = m_FeatureMap[strName]; ! feature.SetPluginLoader(this); ! feature.PreLoad(strName); ! return &feature; ! } ! ! // Précharge la description d'un plugin. ! plugins::Plugin* PluginLoader::PreLoadPlugin(wxString strName) ! { ! plugins::Plugin& plugin = m_PluginMap[strName]; ! plugin.SetPluginLoader(this); ! plugin.PreLoad(strName); ! return &plugin; ! } ! ! ! ! // Débugage : Dump du contenu. ! wxDEBUG_CODE( ! wxString PluginLoader::Dump() ! { ! wxString str; ! str << wxT("Plugin loader : ") << wxT("\n"); ! ! str << wxT("Features : ") << m_FeatureMap.size() << wxT("\n"); ! FeatureMap::iterator it1; ! for( it1 = m_FeatureMap.begin(); it1 != m_FeatureMap.end(); ++it1 ) ! { ! str << wxT(">> ") << it1->first << wxT("\n"); ! str << it1->second.Dump(); ! } ! ! str << wxT("Plugins : ") << m_PluginMap.size() << wxT("\n"); ! PluginMap::iterator it2; ! for( it2 = m_PluginMap.begin(); it2 != m_PluginMap.end(); ++it2 ) ! { ! str << wxT(">> ") << it2->first << wxT("\n"); ! str << it2->second.Dump(); ! } ! ! str << wxT("Modules : ") << m_ModuleMap.size() << wxT("\n"); ! ModuleMap::iterator it3; ! for( it3 = m_ModuleMap.begin(); it3 != m_ModuleMap.end(); ++it3 ) ! { ! str << wxT(">> ") << it3->first << wxT("\n"); ! str << it3->second.Dump(); ! } ! ! return str; ! } ! ) ! ! ! // Charge un module à l'adresse spécifiée. ! Module* PluginLoader::LoadModule(wxString strPath) ! { ! wxLogDebug("Loading module %s", strPath); ! ! strPath.Prepend(Application::GetApp().GetConfig().GetPluginsPath() + wxT("/")); ! ! Module& module = m_ModuleMap[strPath]; ! if(module.IsLoaded()) ! return &module; ! else if(module.Load(strPath)) ! return &module; ! else ! return NULL; ! } ! ! // Charge un plugin ainsi que toutes ses dépendances. ! plugins::Plugin* PluginLoader::LoadPlugin(wxString strName) ! { ! wxLogDebug("Loading plugin %s", strName); ! ! plugins::Plugin& plugin = m_PluginMap[strName]; ! if(plugin.IsLoaded()) ! return &plugin; ! else if(plugin.Load(strName)) ! return &plugin; ! else ! return NULL; ! } ! ! // Charge une fonctionnalité. ! Feature* PluginLoader::LoadFeature(wxString strName) ! { ! wxLogDebug("Loading feature %s", strName); ! ! Feature& feature = m_FeatureMap[strName]; ! if(feature.IsLoaded()) ! return &feature; ! else if(feature.Load(strName)) ! return &feature; ! else ! return NULL; ! } ! ! // Initialise un plugin ainsi que toutes ses dépendances. ! bool PluginLoader::InitializePlugin(wxString strName) ! { ! wxLogDebug("Initializing plugin %s", strName); ! ! Plugin& plugin = m_PluginMap[strName]; ! if(plugin.IsInitialized()) ! return true; ! else ! return plugin.Initialize(); ! } ! ! // Initialise une fonctionnalité. ! bool PluginLoader::InitializeFeature(wxString strName) ! { ! wxLogDebug("Initializing feature %s", strName); ! ! Feature& feature = m_FeatureMap[strName]; ! if(feature.IsInitialized()) ! return true; ! else ! return feature.Initialize(); ! } ! ! // Initialise un module. ! bool PluginLoader::InitializeModule(wxString strName) ! { ! wxLogDebug("Initializing module %s", strName); ! ! Module& module = m_ModuleMap[strName]; ! if(module.IsInitialized()) ! return true; ! else ! return module.Initialize(); ! } ! ! ! // Initialise le contenu chargé. ! void PluginLoader::Initialize() ! { ! wxString str; ! ! wxLogDebug("Initializing ..."); ! ! wxLogDebug("Initialize feature :"); ! FeatureMap::iterator it1; ! for( it1 = m_FeatureMap.begin(); it1 != m_FeatureMap.end(); ++it1 ) ! InitializeFeature(it1->first); ! ! wxLogDebug("Initialize plugin :"); ! PluginMap::iterator it2; ! for( it2 = m_PluginMap.begin(); it2 != m_PluginMap.end(); ++it2 ) ! InitializePlugin(it2->first); ! ! wxLogDebug("Initialize module :"); ! ModuleMap::iterator it3; ! for( it3 = m_ModuleMap.begin(); it3 != m_ModuleMap.end(); ++it3 ) ! InitializeModule(it3->first); ! } ! ! // Finalise le contenu chargé. ! void PluginLoader::Finalize() ! { ! } ! ! ! /** ! * Implémentation de la classe wxDevCenter::plugins::FeatureDescriptionFile. ! */ ! ! // Constructeur. ! FeatureDescriptionFile::FeatureDescriptionFile(wxString strPath): ! wxObject(), ! m_Doc(), ! m_bOk(false) ! { ! if(m_Doc.Load(strPath)) ! Parse(); ! } ! ! // Destructeur. ! FeatureDescriptionFile::~FeatureDescriptionFile() ! { ! } ! ! ! // Parse le fichier xml. ! void FeatureDescriptionFile::Parse() ! { ! wxXmlNode* pRoot = m_Doc.GetRoot(); ! ! // Test de l'entité racine ! if(pRoot->GetName()!=wxT("feature")) ! return; ! ! // Récupération de l'identifiant. ! m_strIdent = pRoot->GetPropVal(wxT("id"), wxT("")); ! // Récupération du nom. ! m_strName = pRoot->GetPropVal(wxT("label"), wxT("")); ! // Récupération de la version. ! m_strVersion = pRoot->GetPropVal(wxT("version"), wxT("0.0.0.0")); ! // Récupération de l'auteur. ! m_strAuthor = pRoot->GetPropVal(wxT("provider-name"), wxT("unknow")); ! // Récupération de l'adresse web. ! m_strURL = pRoot->GetPropVal(wxT("url"), wxT("")); ! ! wxXmlNode* pChild = pRoot->GetChildren(); ! while(pChild!=NULL) ! { ! if(pChild->GetName()==wxT("description")) // Récupération de la description. ! m_strDescript = pChild->GetContent(); ! else if(pChild->GetName()==wxT("license")) // Récupération de la licence. ! m_strLicence = pChild->GetContent(); ! else if(pChild->GetName()==wxT("copyright")) // Récupération des notes. ! m_strNotes = pChild->GetContent(); ! else if(pChild->GetName()==wxT("requires")) // Récupération des dépendances. ! { ! wxXmlNode* pDep = pChild->GetChildren(); ! while(pDep!=NULL) ! { ! if(pDep->GetName()==wxT("feature")) // Import d'une fonctionnalité. ! m_arrstrFeatures.Add(pDep->GetPropVal(wxT("name"), wxT(""))); ! else if(pDep->GetName()==wxT("plugin")) // Import d'un plugin. ! m_arrstrPlugins.Add(pDep->GetPropVal(wxT("name"), wxT(""))); ! pDep = pDep->GetNext(); ! } ! } ! pChild = pChild->GetNext(); ! } ! ! // Suppression des noms vides ! unsigned long l; ! for(l=0; l<m_arrstrFeatures.GetCount(); l++) ! if(m_arrstrFeatures[l].IsEmpty()) ! m_arrstrFeatures.RemoveAt(l--); ! for(l=0; l<m_arrstrPlugins.GetCount(); l++) ! if(m_arrstrPlugins[l].IsEmpty()) ! m_arrstrPlugins.RemoveAt(l--); ! ! m_bOk = true; ! } ! ! ! ! // Remplit une liste de nom des fonctionnalités dépendantes. ! void FeatureDescriptionFile::FillDependantFeatureArray(wxArrayString& array) ! { ! unsigned long l; ! for(l=0; l<m_arrstrFeatures.GetCount(); l++) ! array.Add(m_arrstrFeatures[l]); ! } ! ! // Remplit une liste de nom des plugins dépendants. ! void FeatureDescriptionFile::FillDependantPluginArray(wxArrayString& array) ! { ! unsigned long l; ! for(l=0; l<m_arrstrPlugins.GetCount(); l++) ! array.Add(m_arrstrPlugins[l]); ! } ! ! ! ! /** ! * Implémentation de la classe wxDevCenter::plugins::PluginDescriptionFile. ! */ ! ! // Constructeur. ! PluginDescriptionFile::PluginDescriptionFile(wxString strPath): ! wxObject(), ! m_Doc(), ! m_bOk(false) ! { ! if(m_Doc.Load(strPath)) ! Parse(); ! } ! ! // Destructeur. ! PluginDescriptionFile::~PluginDescriptionFile() ! { ! } ! ! // Parse le fichier xml. ! void PluginDescriptionFile::Parse() ! { ! wxXmlNode* pRoot = m_Doc.GetRoot(); ! ! // Test de l'entité racine ! if(pRoot->GetName()!=wxT("plugin")) ! return; ! ! // Récupération de l'identifiant. ! m_strIdent = pRoot->GetPropVal(wxT("id"), wxT("")); ! // Récupération du nom. ! m_strName = pRoot->GetPropVal(wxT("label"), wxT("")); ! // Récupération de la version. ! m_strVersion = pRoot->GetPropVal(wxT("version"), wxT("0.0.0.0")); ! // Récupération de l'auteur. ! m_strAuthor = pRoot->GetPropVal(wxT("provider-name"), wxT("unknow")); ! // Récupération de l'adresse web. ! m_strURL = pRoot->GetPropVal(wxT("url"), wxT("")); ! ! wxXmlNode* pChild = pRoot->GetChildren(); ! while(pChild!=NULL) ! { ! if(pChild->GetName()==wxT("description")) // Récupération de la description. ! m_strDescript = pChild->GetContent(); ! else if(pChild->GetName()==wxT("license")) // Récupération de la licence. ! m_strLicence = pChild->GetContent(); ! else if(pChild->GetName()==wxT("copyright")) // Récupération des notes. ! m_strNotes = pChild->GetContent(); ! else if(pChild->GetName()==wxT("requires")) // Récupération des dépendances. ! { ! wxXmlNode* pDep = pChild->GetChildren(); ! while(pDep!=NULL) ! { ! if(pDep->GetName()==wxT("plugin")) // Import d'un plugin. ! m_arrstrPlugins.Add(pDep->GetPropVal(wxT("name"), wxT(""))); ! else if(pDep->GetName()==wxT("module")) // Import d'un module. ! m_arrstrModules.Add(pDep->GetPropVal(wxT("name"), wxT(""))); ! ! pDep = pDep->GetNext(); ! } ! } ! pChild = pChild->GetNext(); ! } ! ! // Suppression des noms vides ! unsigned long l; ! for(l=0; l<m_arrstrModules.GetCount(); l++) ! if(m_arrstrModules[l].IsEmpty()) ! m_arrstrModules.RemoveAt(l--); ! for(l=0; l<m_arrstrPlugins.GetCount(); l++) ! if(m_arrstrPlugins[l].IsEmpty()) ! m_arrstrPlugins.RemoveAt(l--); ! ! m_bOk = true; ! } ! ! // Remplit une liste de nom des plugins dépendants. ! void PluginDescriptionFile::FillDependantPluginArray(wxArrayString& array) ! { ! unsigned long l; ! for(l=0; l<m_arrstrPlugins.GetCount(); l++) ! array.Add(m_arrstrPlugins[l]); ! } ! ! // Remplit une liste des chemins relatifs des modules à charger. ! void PluginDescriptionFile::FillModuleArray(wxArrayString& array) ! { ! unsigned long l; ! for(l=0; l<m_arrstrModules.GetCount(); l++) ! array.Add(m_arrstrModules[l]); } --- NEW FILE: AppImpl.cpp --- (This appears to be a binary file; contents omitted.) Index: Frame.cpp =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/src/Frame.cpp,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** Frame.cpp 15 Apr 2005 15:45:07 -0000 1.8 --- Frame.cpp 14 May 2005 12:15:56 -0000 1.9 *************** *** 144,148 **** bool TopFrame::Destroy() { ! wxGetApp().GetWorkBarManager().UnregisterFrame(this); return wxFrame::Destroy(); } --- 144,148 ---- bool TopFrame::Destroy() { ! Application::GetApp().GetWorkBarManager().UnregisterFrame(this); return wxFrame::Destroy(); } Index: WorkBar.cpp =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/src/WorkBar.cpp,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** WorkBar.cpp 15 Apr 2005 15:44:34 -0000 1.5 --- WorkBar.cpp 14 May 2005 12:15:56 -0000 1.6 *************** *** 40,43 **** --- 40,100 ---- /** + * WorkBarTemplate. + */ + + IMPLEMENT_CLASS2(WorkBarTemplate, Element, wxObject) + + bool WorkBarTemplate::Initialize() + { + return ObjectTemplate<WorkBar>::Initialize(); + } + + void WorkBarTemplate::Finalize() + { + ObjectTemplate<WorkBar>::Finalize(); + } + + bool WorkBarTemplate::Destroy(bool bForce) + { + return ObjectTemplate<WorkBar>::Destroy(bForce); + } + + bool WorkBarTemplate::CanDestroy()const + { + return ObjectTemplate<WorkBar>::CanDestroy(); + } + + /** + * WorkBarType. + */ + + IMPLEMENT_CLASS(WorkBarType, WorkBarTemplate) + + bool WorkBarType::Initialize() + { + wxLogDebug("WorkBarType::Initialize !!"); + + if(!WorkBarTemplate::Initialize()) + return false; + Application::GetApp().GetWorkBarManager().RegisterWorkBar(this); + return true; + } + + void WorkBarType::Finalize() + { + } + + bool WorkBarType::Destroy(bool bForce) + { + return false; + } + + bool WorkBarType::CanDestroy()const + { + return false; + } + + + /** * WorkBarManager. */ *************** *** 85,88 **** --- 142,163 ---- } + // Enregistre un type de workbar. + void WorkBarManager::RegisterWorkBar(WorkBarTemplate* pTempl) + { + if(RegisterTemplate(pTempl)) + AddBarToAllFrames(FindTemplate(pTempl)); + } + + // Désenregistre un type de workbar. + void WorkBarManager::UnegisterWorkBar(WorkBarTemplate* pTempl) + { + int i = FindTemplate(pTempl); + if(i!=-1) + { + RemoveBarFromAllFrames((unsigned int)i); + UnregisterTemplate(pTempl); + } + } + // Désenregistre un type de barre. void WorkBarManager::UnregisterWorkBar(wxClassInfo* pClassInfo, ::wxObject* pExtraObj) Index: DocManager.cpp =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/src/DocManager.cpp,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** DocManager.cpp 16 Mar 2005 14:27:37 -0000 1.8 --- DocManager.cpp 14 May 2005 12:15:56 -0000 1.9 *************** *** 34,37 **** --- 34,39 ---- // DocTemplate + IMPLEMENT_CLASS(DocTemplate, Element) + // Constructeur-initialisation DocTemplate::DocTemplate(wxString strName, wxClassInfo *pDocClassInfo, wxString strExt, wxString strDescription): *************** *** 47,50 **** --- 49,74 ---- } + bool DocTemplate::Initialize() + { + return ObjectTemplate<Document>::Initialize(); + } + + void DocTemplate::Finalize() + { + ObjectTemplate<Document>::Finalize(); + plugins::PluginItem::Finalize(); + } + + bool DocTemplate::Destroy(bool bForce) + { + return plugins::PluginItem::Destroy(bForce); + } + + bool DocTemplate::CanDestroy()const + { + return plugins::PluginItem::CanDestroy(); + } + + bool DocTemplate::AddExtension(wxString strExt) { *************** *** 90,94 **** */ - // Document par son chemin. const Document* DocManager::GetDocument(FilePath &strDocPath)const --- 114,117 ---- *************** *** 418,422 **** for(unsigned int n=0; n<GetDocTemplateCount(); n++) { ! wxIconBundle IB = wxGetApp().LoadAppIconBundle(GetDocTemplate(n).GetViewTemplate(0).strIcons); pIL->Add(IB.GetIcon(iSize)); } --- 441,445 ---- for(unsigned int n=0; n<GetDocTemplateCount(); n++) { ! wxIconBundle IB = Application::GetApp().LoadAppIconBundle(GetDocTemplate(n).GetViewTemplate(0).strIcons); pIL->Add(IB.GetIcon(iSize)); } *************** *** 427,431 **** wxIconBundle* DocManager::GetIconBundle(unsigned int nDocType, unsigned int nViewType) { ! return new wxIconBundle(wxGetApp().LoadAppIconBundle(GetDocTemplate(nDocType).GetViewTemplate(nViewType).strIcons)); } --- 450,454 ---- wxIconBundle* DocManager::GetIconBundle(unsigned int nDocType, unsigned int nViewType) { ! return new wxIconBundle(Application::GetApp().LoadAppIconBundle(GetDocTemplate(nDocType).GetViewTemplate(nViewType).strIcons)); } Index: MainFrame.cpp =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/src/MainFrame.cpp,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** MainFrame.cpp 4 Apr 2005 10:25:53 -0000 1.14 --- MainFrame.cpp 14 May 2005 12:15:56 -0000 1.15 *************** *** 57,90 **** using namespace wxDevCenter; - // Definition des identifiants des menus standards : - #define IDM_FILE_NEW wxID_NEW - #define IDM_FILE_OPEN wxID_OPEN - #define IDM_FILE_SAVE wxID_SAVE - #define IDM_FILE_SAVEAS wxID_SAVEAS - #define IDM_FILE_CLOSE wxID_CLOSE - #define IDM_FILE_CLOSEALL 0x0005 - - #define IDM_PROJECT_OPEN 0x0100 - #define IDM_PROJECT_NEW 0x0101 - #define IDM_PROJECT_CLOSE 0x0102 - - #define IDM_WINDOW_CLONE 0x0200 - #define IDM_WINDOW_NEW 0x0201 - #define IDM_WINDOW_CLOSE 0x0202 - #define IDM_WINDOW_CLOSEALL 0x0203 - #define IDM_WINDOW_PREV 0x0204 - #define IDM_WINDOW_NEXT 0x0205 - #define IDM_WINDOW_FIRST 0x0210 - #define IDM_WINDOW_LAST 0x021F - - #define IDM_WINDOW_WORKBAR 0x0300 - #define IDM_WINDOW_WORKBAR_FIRST 0x0301 - #define IDM_WINDOW_WORKBAR_LAST 0x03FF - - #define IDM_HELP_ABOUT 0x0400 - #define IDM_HELP_INDEX 0x0401 - #define IDM_HELP_CONTENT 0x0402 - - #define WXDC_NBSYSTEMMENU 3 --- 57,60 ---- *************** *** 166,170 **** // Chargement de l'icone de l'application. ! m_Icon = wxGetApp().LoadAppIcon("wxDevCenter", wxSize(16, 16)); SetIcon(m_Icon); --- 136,140 ---- // Chargement de l'icone de l'application. ! m_Icon = Application::GetApp().LoadAppIcon("wxDevCenter", wxSize(16, 16)); SetIcon(m_Icon); *************** *** 185,189 **** void MainFrame::OnClose(wxCloseEvent &event) { ! if(!wxGetApp().GetDocManager().CloseAllDocuments()) event.Veto(); else --- 155,159 ---- void MainFrame::OnClose(wxCloseEvent &event) { ! if(!Application::GetApp().GetDocManager().CloseAllDocuments()) event.Veto(); else *************** *** 204,208 **** void MainFrame::OnMenuProjectOpen(wxCommandEvent& WXUNUSED(event)) { ! wxGetApp().LoadProject(); } --- 174,178 ---- void MainFrame::OnMenuProjectOpen(wxCommandEvent& WXUNUSED(event)) { ! Application::GetApp().LoadProject(); } *************** *** 210,214 **** void MainFrame::OnMenuProjectClose(wxCommandEvent& WXUNUSED(event)) { ! wxGetApp().CloseProject(); } --- 180,184 ---- void MainFrame::OnMenuProjectClose(wxCommandEvent& WXUNUSED(event)) { ! Application::GetApp().CloseProject(); } *************** *** 216,220 **** void MainFrame::OnMenuProjectNew(wxCommandEvent& WXUNUSED(event)) { ! wxGetApp().CreateProject(); } --- 186,190 ---- void MainFrame::OnMenuProjectNew(wxCommandEvent& WXUNUSED(event)) { ! Application::GetApp().CreateProject(); } *************** *** 222,226 **** void MainFrame::OnMenuFileNew(wxCommandEvent& WXUNUSED(event)) { ! wxGetApp().CreateNewDocument(); } --- 192,196 ---- void MainFrame::OnMenuFileNew(wxCommandEvent& WXUNUSED(event)) { ! Application::GetApp().CreateNewDocument(); } *************** *** 228,232 **** void MainFrame::OnMenuFileOpen(wxCommandEvent& WXUNUSED(event)) { ! wxGetApp().OpenDocument(); } --- 198,202 ---- void MainFrame::OnMenuFileOpen(wxCommandEvent& WXUNUSED(event)) { ! Application::GetApp().OpenDocument(); } *************** *** 234,238 **** void MainFrame::OnMenuFileSave(wxCommandEvent& WXUNUSED(event)) { ! wxGetApp().SaveDocument(GetViewFrame()->GetActiveView()->GetDocument()); } --- 204,208 ---- void MainFrame::OnMenuFileSave(wxCommandEvent& WXUNUSED(event)) { ! Application::GetApp().SaveDocument(GetViewFrame()->GetActiveView()->GetDocument()); } *************** *** 240,244 **** void MainFrame::OnMenuFileSaveAs(wxCommandEvent& WXUNUSED(event)) { ! wxGetApp().SaveDocument(GetViewFrame()->GetActiveView()->GetDocument(), true); } --- 210,214 ---- void MainFrame::OnMenuFileSaveAs(wxCommandEvent& WXUNUSED(event)) { ! Application::GetApp().SaveDocument(GetViewFrame()->GetActiveView()->GetDocument(), true); } *************** *** 252,256 **** { pDoc = pView->GetDocument(); ! wxGetApp().GetDocManager().CloseDocument(pDoc); } } --- 222,226 ---- { pDoc = pView->GetDocument(); ! Application::GetApp().GetDocManager().CloseDocument(pDoc); } } *************** *** 259,263 **** void MainFrame::OnMenuFileCloseAll(wxCommandEvent& WXUNUSED(event)) { ! wxGetApp().GetDocManager().CloseAllDocuments(); } --- 229,233 ---- void MainFrame::OnMenuFileCloseAll(wxCommandEvent& WXUNUSED(event)) { ! Application::GetApp().GetDocManager().CloseAllDocuments(); } *************** *** 266,270 **** void MainFrame::OnMenuWindowClose(wxCommandEvent& WXUNUSED(event)) { ! wxGetApp().GetDocManager().CloseView(GetViewFrame()->GetActiveView()); } --- 236,240 ---- void MainFrame::OnMenuWindowClose(wxCommandEvent& WXUNUSED(event)) { ! Application::GetApp().GetDocManager().CloseView(GetViewFrame()->GetActiveView()); } *************** *** 281,285 **** if(pActiveView!=NULL) { ! View *pNewView = wxGetApp().GetDocManager().CreateView(pActiveView->GetDocument(), pActiveView->GetViewTemplate()); AddView(pNewView); pNewView->OnInitialUpdate(); --- 251,255 ---- if(pActiveView!=NULL) { ! View *pNewView = Application::GetApp().GetDocManager().CreateView(pActiveView->GetDocument(), pActiveView->GetViewTemplate()); AddView(pNewView); pNewView->OnInitialUpdate(); *************** *** 294,301 **** { Document *pDoc = pActiveView->GetDocument(); ! int iTypeView = wxGetApp().GetDocManager().ChooseViewType(wxGetApp().GetDocManager().FindTemplate(pDoc->GetDocTemplate())); if(iTypeView!=-1) { ! View *pNewView = wxGetApp().GetDocManager().CreateView(pDoc, iTypeView); pDoc->AttachView(pNewView); AddView(pNewView); --- 264,271 ---- { 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); *************** *** 320,334 **** void MainFrame::OnMenuHelpAbout(wxCommandEvent& WXUNUSED(event)) { ! wxGetApp().AboutBox(0); } void MainFrame::OnUpdateProjectClose(wxUpdateUIEvent &event) { ! event.Enable(wxGetApp().IsProjectActive()); } void MainFrame::OnUpdateWhenHasDoc(wxUpdateUIEvent &event) { ! event.Enable(wxGetApp().GetDocManager().GetDocumentCount()!=0); } --- 290,304 ---- void MainFrame::OnMenuHelpAbout(wxCommandEvent& WXUNUSED(event)) { ! Application::GetApp().AboutBox(0); } void MainFrame::OnUpdateProjectClose(wxUpdateUIEvent &event) { ! event.Enable(Application::GetApp().IsProjectActive()); } void MainFrame::OnUpdateWhenHasDoc(wxUpdateUIEvent &event) { ! event.Enable(Application::GetApp().GetDocManager().GetDocumentCount()!=0); } *************** *** 433,437 **** { InsertViewMenu(pNewView); ! SetIcons(wxGetApp().LoadAppIconBundle(pNewView->GetViewTemplate()->strIcons)); str.Append(WXDC_NAME).Append(wxT(" - ")).Append(pNewView->GetDocument()->GetDocumentName()); if(pNewView->GetDocument()->GetModifiedFlag()) --- 403,407 ---- { InsertViewMenu(pNewView); ! SetIcons(Application::GetApp().LoadAppIconBundle(pNewView->GetViewTemplate()->strIcons)); str.Append(WXDC_NAME).Append(wxT(" - ")).Append(pNewView->GetDocument()->GetDocumentName()); if(pNewView->GetDocument()->GetModifiedFlag()) *************** *** 439,442 **** --- 409,413 ---- SetTitle(str); } + UpdateWindowUI(); event.Skip(); } *************** *** 450,454 **** { FilePath str = filenames[0]; ! wxGetApp().OpenDocument(str); return true; } --- 421,425 ---- { FilePath str = filenames[0]; ! Application::GetApp().OpenDocument(str); return true; } *************** *** 504,508 **** } - // Reconstruit le menu des WorkBar. void MainFrame::RebuildWorkBarMenu() --- 475,478 ---- *************** *** 529,533 **** cbBarInfo* pBI = m_pFrameLayout->FindBarByWindow((wxWindow*)&m_WorkBarArray.Item(event.GetId()-IDM_WINDOW_WORKBAR_FIRST)); if(pBI) ! event.Check( (pBI->mState&wxCBAR_HIDDEN ) == 0 ); else event.Enable(false); --- 499,503 ---- 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); *************** *** 540,542 **** if(pBI) m_pFrameLayout->InverseVisibility(pBI); ! } \ No newline at end of file --- 510,523 ---- 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); ! ! } Index: Application.cpp =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/src/Application.cpp,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** Application.cpp 4 Apr 2005 10:25:53 -0000 1.22 --- Application.cpp 14 May 2005 12:15:56 -0000 1.23 *************** *** 39,46 **** #include <wx/tokenzr.h> - // Déclaration de la classe application - IMPLEMENT_APP(wxDevCenter::Application); - - // Utilisation du namespace using namespace wxDevCenter; --- 39,42 ---- *************** *** 50,53 **** --- 46,53 ---- END_EVENT_TABLE() + #include <wx/datetime.h> + + + Application* Application::ms_pTheApp = NULL; bool Application::OnInit(void) *************** *** 67,77 **** m_WorkBarManager.Initialize(); // Crée la config utilisateur. m_ConfigManager.CreateUserProfile(); - // Charge les plugins. - LoadPlugins(); - m_PluginManager.InitPlugins(); - // Enregistre les différents types de documents/vues m_DocManager.RegisterDocTypes(); --- 67,78 ---- m_WorkBarManager.Initialize(); + // Charge les plugins : phase de tests + m_PluginLoader.Load(); + wxLogDebug(m_PluginLoader.Dump()); + m_PluginLoader.Initialize(); + // Crée la config utilisateur. m_ConfigManager.CreateUserProfile(); // Enregistre les différents types de documents/vues m_DocManager.RegisterDocTypes(); *************** *** 92,96 **** // Enregistre la fenêtre principale dans le WorkBarManager ! wxGetApp().GetWorkBarManager().RegisterFrame(m_pMainFrame); // Lance l'application. --- 93,97 ---- // Enregistre la fenêtre principale dans le WorkBarManager ! Application::GetApp().GetWorkBarManager().RegisterFrame(m_pMainFrame); // Lance l'application. *************** *** 105,110 **** // Enregistrement de la config m_ConfigManager.Finalize(); - // Finalisation des plugins. - m_PluginManager.FinalPlugins(); return wxApp::OnExit(); --- 106,109 ---- *************** *** 131,134 **** --- 130,134 ---- m_IconBundleCache(40) { + ms_pTheApp = this; } *************** *** 193,226 **** ////////////////////////////////////////////////////////////////////// - // Gestion des plugins - - // Charge les plugins depuis le répertoire des plugins. - void Application::LoadPlugins() - { - unsigned int n; - wxString strPath = GetConfig().ReadConfig(WXDC_CONFIG_PLUGIN_PATH, wxT("")); - if(!strPath.IsEmpty()) - { - wxArrayString arFiles; - wxArrayString arWild; - wxStringTokenizer ST(WXDC_CONFIG_PLUGIN_WILDCARD, wxT(";")); - while(ST.HasMoreTokens()) - arWild.Add(ST.GetNextToken()); - for(n=0; n<arWild.GetCount(); n++) - wxDir::GetAllFiles(strPath, &arFiles, arWild[n]); - - for(n=0; n<arFiles.GetCount(); n++) - { - wxDynamicLibrary DL; - if(DL.Load(arFiles[n])) - DL.Detach(); - } - } - } - - - - - ////////////////////////////////////////////////////////////////////// // Gestion des documents --- 193,196 ---- *************** *** 470,471 **** --- 440,442 ---- } + Index: Project.cpp =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/src/Project.cpp,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** Project.cpp 15 Apr 2005 15:41:46 -0000 1.5 --- Project.cpp 14 May 2005 12:15:56 -0000 1.6 *************** *** 30,34 **** using namespace wxDevCenter; ! IMPLEMENT_DYNAMIC_CLASS(wxDevCenter::Project, wxEvtHandler); /** --- 30,37 ---- using namespace wxDevCenter; ! IMPLEMENT_DYNAMIC_CLASS2(Project, Element, wxEvtHandler) ! ! IMPLEMENT_DYNAMIC_CLASS2(ProjectTemplate, Element, wxObject) ! /** *************** *** 37,41 **** Project::Project(): wxEvtHandler(), ! InitializableInterface(), m_strName(""), m_strPath(""), --- 40,44 ---- Project::Project(): wxEvtHandler(), ! Element(), m_strName(""), m_strPath(""), *************** *** 88,91 **** --- 91,95 ---- ProjectTemplate::ProjectTemplate(wxClassInfo* pProjectClassInfo, wxString strName, wxString strDescript, wxString strIcon, wxString strExt): ObjectTemplate<Project>(pProjectClassInfo, strName, strDescript), + wxObject(), m_strIcon(strIcon) { *************** *** 134,138 **** ProjectTemplate(pProjectClassInfo, strName, strDescript, strIcon, strExt) { ! wxGetApp().GetProjectManager().RegisterTemplate(this); } --- 138,142 ---- ProjectTemplate(pProjectClassInfo, strName, strDescript, strIcon, strExt) { ! Application::GetApp().GetProjectManager().RegisterTemplate(this); } *************** *** 197,201 **** { // Appelle de le chargement du projet. ! Archive* pAr = wxGetApp().CreateDocumentArchive(strFile, Archive::read); if(pAr!=NULL) { --- 201,205 ---- { // Appelle de le chargement du projet. ! Archive* pAr = Application::GetApp().CreateDocumentArchive(strFile, Archive::read); if(pAr!=NULL) { *************** *** 218,222 **** // Appelle de le chargement du projet. FilePath path = GetProject().GetPath(); ! Archive* pAr = wxGetApp().CreateDocumentArchive(path, Archive::write); if(pAr!=NULL) { --- 222,226 ---- // Appelle de le chargement du projet. FilePath path = GetProject().GetPath(); ! Archive* pAr = Application::GetApp().CreateDocumentArchive(path, Archive::write); if(pAr!=NULL) { Index: Document.cpp =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/src/Document.cpp,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** Document.cpp 15 Apr 2005 15:41:37 -0000 1.10 --- Document.cpp 14 May 2005 12:15:56 -0000 1.11 *************** *** 30,34 **** using namespace wxDevCenter; ! IMPLEMENT_DYNAMIC_CLASS(wxDevCenter::Document, wxEvtHandler) BEGIN_EVENT_TABLE(Document, wxEvtHandler) --- 30,34 ---- using namespace wxDevCenter; ! IMPLEMENT_DYNAMIC_CLASS2(Document, Element, wxEvtHandler) BEGIN_EVENT_TABLE(Document, wxEvtHandler) *************** *** 38,41 **** --- 38,42 ---- Document::Document(void): + Element(), wxEvtHandler(), m_pDocumentManager(NULL), *************** *** 172,176 **** SetDocumentPath(strDocumentPath); ! Archive *pArchive = wxGetApp().CreateDocumentArchive(strDocumentPath, wxStreamBuffer::read); if(pArchive==NULL) { --- 173,177 ---- SetDocumentPath(strDocumentPath); ! Archive *pArchive = Application::GetApp().CreateDocumentArchive(strDocumentPath, wxStreamBuffer::read); if(pArchive==NULL) { *************** *** 191,195 **** SetDocumentPath(strDocumentPath); ! Archive *pArchive = wxGetApp().CreateDocumentArchive(strDocumentPath, wxStreamBuffer::write); if(pArchive==NULL) { --- 192,196 ---- SetDocumentPath(strDocumentPath); ! Archive *pArchive = Application::GetApp().CreateDocumentArchive(strDocumentPath, wxStreamBuffer::write); if(pArchive==NULL) { *************** *** 292,296 **** ////////////////////////////////////////////////////////////////////// ! IMPLEMENT_DYNAMIC_CLASS(wxDevCenter::ActionDocument, wxDevCenter::Document) BEGIN_EVENT_TABLE(ActionDocument, Document) --- 293,297 ---- ////////////////////////////////////////////////////////////////////// ! IMPLEMENT_DYNAMIC_CLASS(ActionDocument, Document) BEGIN_EVENT_TABLE(ActionDocument, Document) Index: Manager.cpp =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/src/Manager.cpp,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Manager.cpp 16 Mar 2005 14:27:37 -0000 1.2 --- Manager.cpp 14 May 2005 12:15:56 -0000 1.3 *************** *** 26,28 **** #include <wxDevCenter/Manager.h> ! IMPLEMENT_DYNAMIC_CLASS(wxDevCenter::ManagedObject, wxObject); --- 26,30 ---- #include <wxDevCenter/Manager.h> ! using namespace wxDevCenter; ! ! Index: FileSystemStandard.cpp =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/src/FileSystemStandard.cpp,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** FileSystemStandard.cpp 16 Mar 2005 14:27:37 -0000 1.14 --- FileSystemStandard.cpp 14 May 2005 12:15:56 -0000 1.15 *************** *** 61,65 **** else { ! type = wxGetApp().GetDocManager().GetDocTemplateFromExt(strPath.GetFileExt()); if(type!=-1) type += WXDC_STDFS_FILETYPES; --- 61,65 ---- else { ! type = Application::GetApp().GetDocManager().GetDocTemplateFromExt(strPath.GetFileExt()); if(type!=-1) type += WXDC_STDFS_FILETYPES; *************** *** 72,106 **** wxImageList* FileSystemStandardBase::GetImageList(int width) { ! wxImageList* pIL = new wxImageList(width, width, true, WXDC_STDFS_FILETYPES + wxGetApp().GetDocManager().GetDocTemplateCount()); wxIconBundle IB; ! IB = wxGetApp().LoadAppIconBundle(wxT("none")); pIL->Add(IB.GetIcon(width)); ! IB = wxGetApp().LoadAppIconBundle(wxT("unknow")); pIL->Add(IB.GetIcon(width)); ! IB = wxGetApp().LoadAppIconBundle(wxT("dir")); pIL->Add(IB.GetIcon(width)); ! IB = wxGetApp().LoadAppIconBundle(wxT("desktop")); pIL->Add(IB.GetIcon(width)); ! IB = wxGetApp().LoadAppIconBundle(wxT("desktop")); pIL->Add(IB.GetIcon(width)); ! IB = wxGetApp().LoadAppIconBundle(wxT("docs")); pIL->Add(IB.GetIcon(width)); ! IB = wxGetApp().LoadAppIconBundle(wxT("computer")); pIL->Add(IB.GetIcon(width)); ! IB = wxGetApp().LoadAppIconBundle(wxT("floppy")); pIL->Add(IB.GetIcon(width)); ! IB = wxGetApp().LoadAppIconBundle(wxT("harddrive")); pIL->Add(IB.GetIcon(width)); ! IB = wxGetApp().LoadAppIconBundle(wxT("cd-dvd")); pIL->Add(IB.GetIcon(width)); ! IB = wxGetApp().LoadAppIconBundle(wxT("ramdisk")); pIL->Add(IB.GetIcon(width)); ! IB = wxGetApp().LoadAppIconBundle(wxT("remote")); pIL->Add(IB.GetIcon(width)); ! for(unsigned long l=0; l<wxGetApp().GetDocManager().GetDocTemplateCount(); l++) { ! IB = wxGetApp().LoadAppIconBundle(wxGetApp().GetDocManager().GetDocTemplate(l).GetViewTemplate(0).strIcons); pIL->Add(IB.GetIcon(width)); } --- 72,106 ---- wxImageList* FileSystemStandardBase::GetImageList(int width) { ! wxImageList* pIL = new wxImageList(width, width, true, WXDC_STDFS_FILETYPES + Application::GetApp().GetDocManager().GetDocTemplateCount()); wxIconBundle IB; ! IB = Application::GetApp().LoadAppIconBundle(wxT("none")); pIL->Add(IB.GetIcon(width)); ! IB = Application::GetApp().LoadAppIconBundle(wxT("unknow")); pIL->Add(IB.GetIcon(width)); ! IB = Application::GetApp().LoadAppIconBundle(wxT("dir")); pIL->Add(IB.GetIcon(width)); ! IB = Application::GetApp().LoadAppIconBundle(wxT("desktop")); pIL->Add(IB.GetIcon(width)); ! IB = Application::GetApp().LoadAppIconBundle(wxT("desktop")); pIL->Add(IB.GetIcon(width)); ! IB = Application::GetApp().LoadAppIconBundle(wxT("docs")); pIL->Add(IB.GetIcon(width)); ! IB = Application::GetApp().LoadAppIconBundle(wxT("computer")); pIL->Add(IB.GetIcon(width)); ! IB = Application::GetApp().LoadAppIconBundle(wxT("floppy")); pIL->Add(IB.GetIcon(width)); ! IB = Application::GetApp().LoadAppIconBundle(wxT("harddrive")); pIL->Add(IB.GetIcon(width)); ! IB = Application::GetApp().LoadAppIconBundle(wxT("cd-dvd")); pIL->Add(IB.GetIcon(width)); ! IB = Application::GetApp().LoadAppIconBundle(wxT("ramdisk")); pIL->Add(IB.GetIcon(width)); ! IB = Application::GetApp().LoadAppIconBundle(wxT("remote")); pIL->Add(IB.GetIcon(width)); ! for(unsigned long l=0; l<Application::GetApp().GetDocManager().GetDocTemplateCount(); l++) { ! IB = Application::GetApp().LoadAppIconBundle(Application::GetApp().GetDocManager().GetDocTemplate(l).GetViewTemplate(0).strIcons); pIL->Add(IB.GetIcon(width)); } |
|
From: Emilien K. <cur...@us...> - 2005-05-14 12:16:08
|
Update of /cvsroot/wxdevcenter/wxDevCenter/src/unix In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15322/src/unix Modified Files: Config.cpp Log Message: Transition to the new feature/plugin system based on the Element class. Index: Config.cpp =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/src/unix/Config.cpp,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** Config.cpp 23 Feb 2005 14:21:22 -0000 1.5 --- Config.cpp 14 May 2005 12:15:56 -0000 1.6 *************** *** 57,60 **** --- 57,61 ---- 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")); |
|
From: Emilien K. <cur...@us...> - 2005-05-14 12:16:07
|
Update of /cvsroot/wxdevcenter/wxDevCenter/include/wxDevCenter In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15322/include/wxDevCenter Modified Files: Application.h Config.h DocView.h FileSystem.h FileSystemStandard.h FileTools.h Frame.h MainFrame.h Manager.h Plugin.h Project.h WorkBar.h setup.h Added Files: Element.h Log Message: Transition to the new feature/plugin system based on the Element class. Index: Project.h =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/include/wxDevCenter/Project.h,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** Project.h 15 Apr 2005 15:41:36 -0000 1.6 --- Project.h 14 May 2005 12:15:55 -0000 1.7 *************** *** 46,52 **** * @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); // Données membres : protected: --- 46,52 ---- * @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 Element, public wxEvtHandler { ! DECLARE_DYNAMIC_CLASS(Project) // Données membres : protected: *************** *** 112,117 **** * - Les infos RTTI de la classe du projet. */ ! class WXDC_DLL_BASE ProjectTemplate : public ObjectTemplate<Project> { protected: /** Chemin relatif de son icone.*/ --- 112,118 ---- * - Les infos RTTI de la classe du projet. */ ! class WXDC_DLL_BASE ProjectTemplate : public ObjectTemplate<Project>, public wxObject { + DECLARE_DYNAMIC_CLASS(ProjectTemplate) protected: /** Chemin relatif de son icone.*/ *************** *** 158,162 **** /** Crée un objet projet. * Ne fait que allouer la mémoire et appeler le constructeur par défaut.*/ ! Project* CreateProject(){return CreateObject();} }; --- 159,163 ---- /** Crée un objet projet. * Ne fait que allouer la mémoire et appeler le constructeur par défaut.*/ ! Project* CreateProject(){return (Project*) CreateObject();} }; Index: Config.h =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/include/wxDevCenter/Config.h,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** Config.h 7 Mar 2005 15:23:02 -0000 1.7 --- Config.h 14 May 2005 12:15:54 -0000 1.8 *************** *** 149,152 **** --- 149,156 ---- */ virtual wxString GetDataPath()=0; + /** Retourne le chemin racine des fonctionnalités. + * @return Chemin racine des fonctionnalités. + */ + virtual wxString GetFeaturesPath()=0; /** Retourne le chemin racine des pluggins. * @return Chemin racine des plugins. *************** *** 199,202 **** --- 203,207 ---- #define WXDC_CONF_KEYNAME_INSTALLDIR wxT("InstallDir") #define WXDC_CONF_KEYNAME_DATADIR wxT("DataDir") + #define WXDC_CONF_KEYNAME_FEATURESDIR wxT("FeatureDir") #define WXDC_CONF_KEYNAME_PLUGINSDIR wxT("PluginDir") #define WXDC_CONF_KEYNAME_CONFDIR wxT("ConfDir") Index: MainFrame.h =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/include/wxDevCenter/MainFrame.h,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** MainFrame.h 4 Apr 2005 08:11:21 -0000 1.10 --- MainFrame.h 14 May 2005 12:15:54 -0000 1.11 *************** *** 178,181 **** --- 178,183 ---- /** @} */ + /** Force la mise à jour de la fenetre via les wxUpdateUIEvent.*/ + virtual void UpdateWindowUI(long flags = wxUPDATE_UI_NONE); }; Index: setup.h =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/include/wxDevCenter/setup.h,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** setup.h 18 Apr 2005 12:42:18 -0000 1.4 --- setup.h 14 May 2005 12:15:55 -0000 1.5 *************** *** 48,92 **** - #define WXUSINGDLL - - - #ifdef _WINDOWS ! #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") ! #pragma comment(lib, "wxregexd.lib") - #pragma comment(lib, "wxpngd.lib") - #pragma comment(lib, "wxjpegd.lib") - #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") - #pragma comment(lib, "wxregex.lib") ! #pragma comment(lib, "wxpng.lib") ! #pragma comment(lib, "wxjpeg.lib") ! #pragma comment(lib, "wxtiff.lib") ! #pragma comment(lib, "wxmsw26_stc.lib") ! #pragma comment(lib, "wxmsw26_fl.lib") - #endif - #endif #endif --- 48,86 ---- ! #if defined(__WINDOWS__) ! #pragma warning(disable : 4005 4996) ! #endif ! /** @name Paliatif au manque de definitions de macros de wxWidgets. ! * @{ */ ! // Chtite déclaration supplémentaire (comme wxDEPRECATED) pour les bouts de code de débugage. ! //#ifdef WXDEBUG ! #define wxDEBUG_CODE(code) code ! //#else ! //#define wxDEBUG_CODE(code) ! //#endif ! #define wxIMPLEMENT_CLASS_COMMON0(name, func) \ ! wxClassInfo name::ms_classInfo(wxT(#name), \ ! NULL, NULL, \ ! (int) sizeof(name), \ ! (wxObjectConstructorFn) func); \ ! \ ! wxClassInfo *name::GetClassInfo() const \ ! { return &name::ms_classInfo; } ! #define IMPLEMENT_DYNAMIC_CLASS0(name) \ ! wxIMPLEMENT_CLASS_COMMON0(name, name::wxCreateObject) \ ! wxObject* name::wxCreateObject() \ ! { return new name; } ! #define IMPLEMENT_ABSTRACT_CLASS0(name) \ ! wxIMPLEMENT_CLASS_COMMON0(name, NULL) ! #define IMPLEMENT_CLASS0 IMPLEMENT_ABSTRACT_CLASS0 ! /** @} */ #endif Index: WorkBar.h =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/include/wxDevCenter/WorkBar.h,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** WorkBar.h 15 Apr 2005 15:44:33 -0000 1.5 --- WorkBar.h 14 May 2005 12:15:55 -0000 1.6 *************** *** 36,40 **** * Dérivent de wxPanel pour faciliter l'intégration. */ ! class WXDC_DLL_BASE WorkBar : public wxPanel, public InitializableInterface { friend class WorkBarManager; --- 36,40 ---- * Dérivent de wxPanel pour faciliter l'intégration. */ ! class WXDC_DLL_BASE WorkBar : public wxPanel, virtual public Element { friend class WorkBarManager; *************** *** 50,53 **** --- 50,54 ---- /** Nom de la workbar.*/ wxString m_strName; + public: WorkBar(void); *************** *** 59,63 **** wxString GetName()const{return m_strName;} - /** Fonction de création effective de la fenetre. * @param Adresse de la fenetre parente.*/ --- 60,63 ---- *************** *** 65,71 **** }; /** Patron de workbar.*/ ! class WXDC_DLL_BASE WorkBarTemplate : public ObjectTemplate<WorkBar> { private: /** Donnée complémentaire pour spécialiser la WorkBar.*/ --- 65,73 ---- }; + /** Patron de workbar.*/ ! class WXDC_DLL_BASE WorkBarTemplate : public ObjectTemplate<WorkBar>, public wxObject { + DECLARE_CLASS(WorkBarTemplate) private: /** Donnée complémentaire pour spécialiser la WorkBar.*/ *************** *** 75,78 **** --- 77,81 ---- WorkBarTemplate(wxClassInfo* pClassInfo, wxString strName, wxString strDescript, wxObject* pExtraObj): ObjectTemplate<WorkBar>(pClassInfo, strName, strDescript), + wxObject(), m_pExtraObject(pExtraObj) {} *************** *** 80,83 **** --- 83,114 ---- /** Accesseur sur la donnée complémentaire.*/ wxObject* GetExtraObject(){return m_pExtraObject;} + + /** @name Surcharge des fonctions d'élément. + * @{ */ + virtual bool Initialize(); + virtual void Finalize(); + virtual bool Destroy(bool bForce=true); + virtual bool CanDestroy()const; + /** @} */ + }; + + /** Type de workbar. + * Patron autoenregistrable de workbar.*/ + class WXDC_DLL_BASE WorkBarType : public WorkBarTemplate + { + DECLARE_CLASS(WorkBarType) + public: + /** Constructeur.*/ + WorkBarType(wxClassInfo* pClassInfo, wxString strName, wxString strDescript=wxT(""), wxObject* pExtraObj=NULL): + WorkBarTemplate(pClassInfo, strName, strDescript, pExtraObj) + {} + + /** @name Surcharge des fonctions d'élément. + * @{ */ + virtual bool Initialize(); + virtual void Finalize(); + virtual bool Destroy(bool bForce=true); + virtual bool CanDestroy()const; + /** @} */ }; *************** *** 118,121 **** --- 149,160 ---- */ void RegisterWorkBar(wxClassInfo* pClassInfo, wxString strName, wxString strDescript, ::wxObject* pExtraObj=NULL); + /** Enregistre un type de workbar. + * @param pTempl Adresse d'un patron de workbar. + */ + void RegisterWorkBar(WorkBarTemplate* pTempl); + /** Désenregistre un type de workbar. + * @param pTempl Adresse d'un patron de workbar. + */ + void UnegisterWorkBar(WorkBarTemplate* pTempl); /** Désenregistre un type de barre. * @param pClassInfo Info RTTI de la barre à désenregistrer. Index: Frame.h =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/include/wxDevCenter/Frame.h,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** Frame.h 4 Apr 2005 08:11:21 -0000 1.8 --- Frame.h 14 May 2005 12:15:54 -0000 1.9 *************** *** 35,38 **** --- 35,69 ---- { + // Definition des identifiants des menus standards : + #define IDM_FILE_NEW wxID_NEW + #define IDM_FILE_OPEN wxID_OPEN + #define IDM_FILE_SAVE wxID_SAVE + #define IDM_FILE_SAVEAS wxID_SAVEAS + #define IDM_FILE_CLOSE wxID_CLOSE + #define IDM_FILE_CLOSEALL 0x0005 + + #define IDM_PROJECT_OPEN 0x0100 + #define IDM_PROJECT_NEW 0x0101 + #define IDM_PROJECT_CLOSE 0x0102 + + #define IDM_WINDOW_CLONE 0x0200 + #define IDM_WINDOW_NEW 0x0201 + #define IDM_WINDOW_CLOSE 0x0202 + #define IDM_WINDOW_CLOSEALL 0x0203 + #define IDM_WINDOW_PREV 0x0204 + #define IDM_WINDOW_NEXT 0x0205 + #define IDM_WINDOW_FIRST 0x0210 + #define IDM_WINDOW_LAST 0x021F + + #define IDM_WINDOW_WORKBAR 0x0300 + #define IDM_WINDOW_WORKBAR_FIRST 0x0301 + #define IDM_WINDOW_WORKBAR_LAST 0x03FF + + #define IDM_HELP_ABOUT 0x0400 + #define IDM_HELP_INDEX 0x0401 + #define IDM_HELP_CONTENT 0x0402 + + + class WXDC_DLL_BASE TopFrame; class WXDC_DLL_BASE ViewFrame; *************** *** 180,183 **** --- 211,220 ---- virtual bool RemoveWorkBar(WorkBar* WXUNUSED(pWorkBar)){return false;} + /** Affiche/Cache une workbar. + * @param pWorkBar Adresse de la workbar à afficher. + * @param bShow Vrai si afficher et faux si cacher. + * @return True si l'action a été effectuée correctement.*/ + virtual bool ShowWorkBar(WorkBar* WXUNUSED(pWorkBar), bool WXUNUSED(bShow)){return false;} + /** Surcharge du processus de destruction. * Utilisé pour vider le cadre de ses WorkBar et la désenregistrer du WorkBarManager.*/ Index: Plugin.h =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/include/wxDevCenter/Plugin.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Plugin.h 7 Mar 2005 15:23:02 -0000 1.2 --- Plugin.h 14 May 2005 12:15:55 -0000 1.3 *************** *** 32,124 **** #include <wx/dynarray.h> namespace wxDevCenter { ! /** Classe de base de plugin. ! * A utiliser tel quel ou à dériver pour spécialiser le plugin. */ class WXDC_DLL_BASE Plugin : public wxObject { protected: wxString m_strName; wxString m_strDescript; public: ! Plugin(wxString strName=WXDC_PLUGIN_UNKOW_NAME, wxString strDescript=WXDC_PLUGIN_UNKOW_NAME); ! virtual ~Plugin(void); - /** @name Propriétés générales du plugin. - * Ces propritétés doivent être disponibles avant l'initialisation et après la finalisation du plugin. - * @{ */ - /** Retourne le nom du plugin. - * @return Nom du plugin.*/ - virtual wxString GetName()const; - /** Retourne la description du plugin. - * @return Description du plugin.*/ - virtual wxString GetDescription()const; /** Retourne une image représentant le logo du plugin. * @return Logo du plugin.*/ virtual wxBitmap GetLogo(wxSize sz); ! /** @} */ ! ! /** @name Initialisation/finalisation. ! * @{ */ ! /** Initialisation du plugin. ! * Fonction appelé au moment du chargement du plugin.*/ ! virtual void InitPlugin(); ! /** Finalisalisation du plugin. ! * Fonction appelé au moment du déchargement du plugin.*/ ! virtual void FinalPlugin(); ! /** @} */ ! ! /** Retourne un panneau "A propos de" du plugin. ! * @param pParent Adresse dela fenetre parent. ! * @param id Identifiant de filiation. ! * @return Adresse du panneau (peut etre nul si pas de panneau). ! */ ! virtual wxPanel* CreateAboutPanel(wxWindow* pParent, wxWindowID id); }; ! WX_DEFINE_USER_EXPORTED_ARRAY(Plugin*, PluginArray, class WXDC_DLL_BASE); ! /** Classe de gestion des plugins. */ ! class WXDC_DLL_BASE PluginManager : protected PluginArray { public: ! PluginManager(void); ! virtual ~PluginManager(void); ! /** Ajoute un plugin. ! * @param pPlugin Adresse du plugin à ajouter. ! */ ! void Add(Plugin* pPlugin); ! /** Compte le nombre de plugins. ! * @return Le nombre de plugins. */ ! unsigned int GetCount()const{return PluginArray::GetCount();} ! /** Retourne un plugin. ! * @param nIndex Indice du plugin. ! * @return Référence vers un plugin. */ ! Plugin& GetPlugin(unsigned int nIndex){return *Item(nIndex);} ! /** Retourne un plugin. ! * @param nIndex Indice du plugin. ! * @return Référence vers un plugin. */ ! Plugin& operator[](unsigned int nIndex){return *Item(nIndex);} - /** Initialise les plugins. */ - void InitPlugins(); - /** Finalise les plugins. */ - void FinalPlugins(); ! /** Dump des plugins.*/ ! void Dump(); }; ! } #endif --- 32,594 ---- #include <wx/dynarray.h> + #include <wx/dynlib.h> + #include <wx/xml/xml.h> + + #include <wxDevCenter/Element.h> + #include <wxDevCenter/Manager.h> namespace wxDevCenter { ! class WXDC_DLL_BASE BaseElementManager : public ObjectManager<Element> ! { ! }; ! ! ! namespace plugins ! { ! ! ! // 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; ! ! ! /** Structure représentant une version.*/ ! struct WXDC_DLL_BASE Version ! { ! unsigned short major; ! short minor; ! long patch; ! long release; ! ! bool operator==(const Version& v)const{return (major==v.major) && (minor==v.minor) && (patch==v.patch) && (release==v.release);} ! bool operator!=(const Version& v)const{return (major!=v.major) || (minor!=v.minor) || (patch!=v.patch) || (release!=v.release);} ! bool operator<(const Version& v)const ! { ! return (major<v.major) || ! ((major==v.major)&&(minor<v.minor)) || ! ((major==v.major)&&(minor==v.minor)&&(patch<v.patch)) || ! ((major==v.major)&&(minor==v.minor)&&(patch==v.patch)&&(release<v.release)); ! } ! bool operator<=(const Version& v)const ! { ! return (major<=v.major) || ! ((major==v.major)&&(minor<=v.minor)) || ! ((major==v.major)&&(minor==v.minor)&&(patch<=v.patch)) || ! ((major==v.major)&&(minor==v.minor)&&(patch==v.patch)&&(release<=v.release)); ! } ! bool operator>(const Version& v)const ! { ! return (major>v.major) || ! ((major==v.major)&&(minor>v.minor)) || ! ((major==v.major)&&(minor==v.minor)&&(patch>v.patch)) || ! ((major==v.major)&&(minor==v.minor)&&(patch==v.patch)&&(release>v.release)); ! } ! bool operator>=(const Version& v)const ! { ! return (major>=v.major) || ! ((major==v.major)&&(minor>=v.minor)) || ! ((major==v.major)&&(minor==v.minor)&&(patch>=v.patch)) || ! ((major==v.major)&&(minor==v.minor)&&(patch==v.patch)&&(release>=v.release)); ! } ! ! Version& operator=(wxString str) ! { ! wxString s; ! long l; ! s = str.BeforeFirst(wxT('.')); ! str = str.AfterFirst(wxT('.')); ! l = 0; s.ToULong((unsigned long*)&l); major = (unsigned short) l; ! s = str.BeforeFirst(wxT('.')); ! str = str.AfterFirst(wxT('.')); ! l = 0; s.ToLong(&l); minor = (short)l; ! s = str.BeforeFirst(wxT('.')); ! str = str.AfterFirst(wxT('.')); ! l = 0; s.ToLong(&l); patch = l; ! l = 0; str.ToLong(&l); release = l; ! return *this; ! } ! ! 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); ! } ! }; ! ! ! /** Descriptif de module. ! * Objet référençable des modules.*/ ! class WXDC_DLL_BASE ModuleRefData : public wxObjectRefData ! { ! friend class Module; ! protected: ! /** Flag d'état du module.*/ ! unsigned short m_flagState; ! ! /** Chemin du module.*/ ! wxString m_strPath; ! ! /** Objet wx accédant à la dll/so.*/ ! wxDynamicLibrary m_DLL; ! ! /** Gestionnaire des éléments de plugins enregistrés.*/ ! BaseElementManager m_Elements; ! public: ! ModuleRefData(); ! virtual ~ModuleRefData(); ! ! /** Débugage : Dump du contenu. */ ! wxDEBUG_CODE(wxString Dump();) ! ! /** Charge le module. ! * @param strPath Chemin du module. ! * @return Vrai si chargement réussi.*/ ! bool Load(wxString strPath); ! /** Teste si le module est chargé. ! * @return Vrai si le module est chargé.*/ ! bool IsLoaded()const{return m_DLL.IsLoaded();} ! /** Teste si le module est initialisé. ! * @return Vrai si le module est initialisé.*/ ! bool IsInitialized()const{return (m_flagState&Initialized)!=0;} ! ! /** Décharge le module.*/ ! bool Unload(); ! /** Initialise le contenu du module.*/ ! bool Initialize(); ! /** Finalise le contenu du module.*/ ! bool Finalize(); ! ! /** Drapeaux d'états du module.*/ ! enum ModuleState ! { ! Initial = 0x0000, ! Registered = 0x0001, ! Loaded = 0x0002, ! Initialized = 0x0004, ! Error = 0xFFFF ! }; ! ! }; ! ! /** Classe de description d'un module. ! * Un module est une dll/so qui contient des objets enregistrables. ! */ ! class WXDC_DLL_BASE Module : public wxObject ! { ! friend class Plugin; ! DECLARE_CLASS(Module) ! protected: ! /** Accesseur sur la référence de module.*/ ! ModuleRefData* GetModuleRef()const {return (ModuleRefData*) GetRefData();} ! // create a new m_refData ! virtual wxObjectRefData *CreateRefData() const{return new ModuleRefData;} ! ! public: ! /** Constructeur.*/ ! Module(); ! /** Constructeur.*/ ! Module(const Module& module){Ref(module);} ! ! /** Débugage : Dump du contenu. */ ! wxDEBUG_CODE(wxString Dump();) ! ! /** Teste si le module est chargé.*/ ! bool IsLoaded()const; ! /** Teste si le module est initialisé.*/ ! bool IsInitialized()const; ! ! /** Charge le module et enregistre son contenu. ! * @param strPath Chemin absolu du module à charger.*/ ! bool Load(wxString strPath); ! /** Décharge le module.*/ ! bool Unload(); ! /** Initialise le contenu du module.*/ ! bool Initialize(); ! /** Finalise le contenu du module.*/ ! bool Finalize(); ! ! ! }; ! ! ! /** Classe de description d'un plugin. ! * Un plugin est un regroupement logique de modules (dll/so). */ class WXDC_DLL_BASE Plugin : public wxObject { + friend class Feature; + DECLARE_CLASS(Plugin) + public: + enum PluginStatusFlag + { + Initial = 0x0000, + PreLoaded = 0x0001, + Loaded = 0x0002, + Initialized = 0x0004, + Partial = 0x0010, + ErrBlocked = 0x0100, + ErrDescript = 0x0200, + WarningMask = 0x00F0, + ErrMask = 0x0F00 + }; protected: + /** Adresse du PluginLoader auquel la fonctionnalité est attachée.*/ + PluginLoader* m_pLoader; + /** Status du plugin.*/ + unsigned short m_Status; + + /** Nom de la fonctionnalité.*/ wxString m_strName; + /** Description de la fonctionnalité.*/ wxString m_strDescript; + /** Version de la fonctionnalité.*/ + Version m_Version; + /** Auteur du plugin.*/ + wxString m_strAuthor; + /** Licence du plugin.*/ + wxString m_strLicence; + /** Notes du plugin.*/ + wxString m_strNotes; + /** Url du plugin.*/ + wxString m_strURL; + /** Liste des modules du plugin.*/ + wxArrayString m_arrstrModules; + /** Liste des plugins dépendants.*/ + wxArrayString m_arrstrPlugins; public: ! /** Constructeur.*/ ! Plugin(); ! ! /** Débugage : Dump du contenu. */ ! wxDEBUG_CODE(wxString Dump();) ! ! /** Attache le chargeur de plugin.*/ ! void SetPluginLoader(PluginLoader* pLoader){m_pLoader = pLoader;} ! ! /** Teste si le plugin est chargé.*/ ! bool IsLoaded()const; ! /** Teste si le plugin est initialisé. ! * @return Vrai si le plugin est initialisé.*/ ! bool IsInitialized()const{return (m_Status&Initialized)!=0;} ! ! /** Acces sur le nom.*/ ! wxString GetName()const{return m_strName;} ! /** Acces sur la description.*/ ! wxString GetDescript()const{return m_strDescript;} ! /** Acces sur la version.*/ ! Version GetVersion()const{return m_Version;} ! ! /** Teste si le plugin peut être chargé.*/ ! bool CheckValidity(); ! /** Précharge la description du plugin. ! * @param strName Nom du plugin ! * @return Faux si le plugin est mal décrit.*/ ! bool PreLoad(wxString strName); ! /** Charge le plugin. ! * @param strName Nom du plugin.*/ ! bool Load(wxString strName); ! /** Décharge le plugin.*/ ! bool Unload(); ! /** Initialise le plugin.*/ ! bool Initialize(); ! /** Finalise le plugin.*/ ! bool Finalize(); ! }; ! ! ! /** Classe de description des fonctionnalités. ! * Une fonctionnalité est un regroupement de plugins. ! */ ! class WXDC_DLL_BASE Feature : public wxObject ! { ! DECLARE_CLASS(Feature) ! public: ! enum FeatureStatusFlag ! { ! Initial = 0x0000, ! PreLoaded = 0x0001, ! Loaded = 0x0002, ! Initialized = 0x0004, ! Partial = 0x0010, ! ErrBlocked = 0x0100, ! ErrDescript = 0x0200, ! WarningMask = 0x00F0, ! ErrFlag = 0x0F00 ! }; ! protected: ! /** Adresse du PluginLoader auquel la fonctionnalité est attachée.*/ ! PluginLoader* m_pLoader; ! /** Etat de la fonctionnalité.*/ ! unsigned short m_Status; ! ! /** Nom de la fonctionnalité.*/ ! wxString m_strName; ! /** Description de la fonctionnalité.*/ ! wxString m_strDescript; ! /** Version de la fonctionnalité.*/ ! Version m_Version; ! /** Auteur de la fonctionnalité.*/ ! wxString m_strAuthor; ! /** Licence de la fonctionnalité.*/ ! wxString m_strLicence; ! /** Notes de la fonctionnalité.*/ ! wxString m_strNotes; ! /** URL de la fonctionnalité.*/ ! wxString m_strURL; ! ! /** Liste des fonctionnalité dépendante.*/ ! wxArrayString m_arrstrFeatures; ! /** Liste des plugins attachés.*/ ! wxArrayString m_arrstrPlugins; ! ! public: ! /** Constructeur.*/ ! Feature(); ! ! /** Débugage : Dump du contenu. */ ! wxDEBUG_CODE(wxString Dump();) ! ! /** Attache le chargeur de plugin.*/ ! void SetPluginLoader(PluginLoader* pLoader){m_pLoader = pLoader;} ! ! /** Teste si la fonctionnalité peut être chargé.*/ ! bool CheckValidity(); ! /** Précharge la description de la fonctionnalité. ! * @param strName Nom de la fonctionnalité. ! * @return Faux si la fonctionnalité est mal décrite.*/ ! bool PreLoad(wxString strName); ! /** Teste si la fonctionnalité est chargée.*/ ! bool IsLoaded()const; ! /** Teste si le plugin est initialisé. ! * @return Vrai si le plugin est initialisé.*/ ! bool IsInitialized()const{return (m_Status&Initialized)!=0;} ! /** Charge la fonctionnalité. ! * @param strName Nom de la fonctionnalité.*/ ! bool Load(wxString strName); ! /** Décharge la fonctionnalité.*/ ! bool Unload(); ! /** Initialise la fonctionnalité.*/ ! bool Initialize(); ! /** Finalise la fonctionnalité.*/ ! bool Finalize(); ! ! /** Acces sur le nom.*/ ! wxString GetName()const{return m_strName;} ! /** Acces sur la description.*/ ! wxString GetDescript()const{return m_strDescript;} ! /** Acces sur la version.*/ ! Version GetVersion()const{return m_Version;} /** Retourne une image représentant le logo du plugin. * @return Logo du plugin.*/ virtual wxBitmap GetLogo(wxSize sz); ! /** Retourne les crédits de la fonctionnalité.*/ ! virtual wxString GetCredits()const; ! /** Retourne la licence de la fonctionnalité.*/ ! virtual wxString GetLicence()const; }; ! WX_DECLARE_STRING_HASH_MAP_WITH_DECL(Feature, FeatureMap, class WXDC_DLL_BASE); ! WX_DECLARE_STRING_HASH_MAP_WITH_DECL(Plugin, PluginMap, class WXDC_DLL_BASE); ! WX_DECLARE_STRING_HASH_MAP_WITH_DECL(Module, ModuleMap, class WXDC_DLL_BASE); ! ! /** Chargeur de plugins avec prise en charge des fonctionnalités. */ ! class WXDC_DLL_BASE PluginLoader : public wxObject { + DECLARE_CLASS(PluginLoader) + protected: + FeatureMap m_FeatureMap; /**> Fonctionnalité indéxé par son nom.*/ + PluginMap m_PluginMap; /**> Plugin indexé par son nom.*/ + ModuleMap m_ModuleMap; /**> Module indexé par son chemin.*/ + public: ! /** Constructeur.*/ ! PluginLoader(); ! /** Charge tous les plugins.*/ ! bool Load(); ! /** Charge un module à l'adresse spécifiée. ! * @param strPath Adrese du module. ! * @return Adresse du descripteur de module associé si chargé et NULL sinon..*/ ! Module* LoadModule(wxString strPath); ! ! /** Précharge la description des fonctionnalités et des plugins.*/ ! void PreLoadDescription(); ! ! /** Débugage : Dump du contenu. */ ! wxDEBUG_CODE(wxString Dump();) ! ! ! /** Précharge la description d'une fonctionnalité. ! * Le fichier "feature.xml" est parsé et analysé. ! * @param strName Nom de la fonctionnalité. ! * @return Adresse du descripteur de fonctionnalité si chargé, NULL sinon.*/ ! Feature* PreLoadFeature(wxString strName); ! ! /** Précharge la description d'un plugin. ! * Le fichier "plugin.xml" est parsé et analysé. ! * @param strName Nom du plugin. ! * @return Adrese du descripteur des plugins si chargé, NULL sinon.*/ ! Plugin* PreLoadPlugin(wxString strName); ! ! /** Charge un plugin ainsi que toutes ses dépendances. ! * Le plugin est recherché uniquement dans le répertoire des plugins. ! * @param strName Nom du plugin. ! * @return Adrese du descripteur des plugins si chargé, NULL sinon.*/ ! Plugin* LoadPlugin(wxString strName); ! ! /** Charge une fonctionnalité. ! * La fonctionnalité est recherchée uniquement dans le répertoire des fonctionnalité. ! * @param strName Nom de la fonctionnalité. ! * @return Adresse du descripteur de fonctionnalité si chargé, NULL sinon.*/ ! Feature* LoadFeature(wxString strName); ! ! /** Initialise un plugin ainsi que toutes ses dépendances. ! * @param strName Nom du plugin. ! * @return Vrai si le plugin est correctement initialisé. */ ! bool InitializePlugin(wxString strName); ! /** Initialise une fonctionnalité. ! * @param strName Nom de la fonctionnalité. ! * @return Vrai si la fonctionnalité est correctement initialisé. ! */ ! bool InitializeFeature(wxString strName); ! /** Initialise un module. ! * @param strName Nom du module. ! * @return Vrai si le module est correctement initialisé. ! */ ! bool InitializeModule(wxString strName); ! /** Initialise le contenu chargé. ! * Tente d'initialiser le contenu chargé avec succes en prenant en compte les dépendances. */ ! void Initialize(); ! /** Finalise le contenu chargé. ! * Finalise le contenu chargé en prenant en compte les dépendances. */ ! void Finalize(); ! }; ! class WXDC_DLL_BASE FeatureDescriptionFile : public wxObject ! { ! protected: ! wxXmlDocument m_Doc; ! bool m_bOk; ! wxString m_strIdent, ! m_strName, ! m_strDescript, ! m_strVersion, ! m_strAuthor, ! m_strLicence, ! m_strNotes, ! m_strURL; ! wxArrayString m_arrstrFeatures, m_arrstrPlugins; ! public: ! /** Constructeur. ! * @param strPath Chemin du fichier à lire.*/ ! FeatureDescriptionFile(wxString strPath); ! ! /** Destructeur.*/ ! ~FeatureDescriptionFile(); ! ! /** Parse le fichier xml.*/ ! void Parse(); ! ! /** Teste si le fichier de description est valide.*/ ! bool IsValid()const{return m_bOk;} ! ! /** Retourne l'identifiant de la fonctionnalité.*/ ! wxString GetIdent(){return m_strIdent;} ! /** Retourne le nom de la fonctionnalité.*/ ! wxString GetName(){return m_strName;} ! /** Retourne la description de la fonctionnalité.*/ ! wxString GetDescript(){return m_strDescript;} ! /** Retourne la version de la fonctionnalité.*/ ! wxString GetVersion(){return m_strVersion;} ! /** Retourne l'auteur de la fonctionnalité.*/ ! wxString GetAuthor(){return m_strAuthor;} ! /** Retourne la licence d'utilisation de la fonctionnalité.*/ ! wxString GetLicence(){return m_strLicence;} ! /** Retourne les notes à propos de la fonctionnalité.*/ ! wxString GetNotes(){return m_strNotes;} ! /** Retourne l'URL de la fonctionnalité.*/ ! wxString GetURL(){return m_strURL;} ! /** Remplit une liste de nom des fonctionnalités dépendantes.*/ ! void FillDependantFeatureArray(wxArrayString& array); ! /** Remplit une liste de nom des plugins dépendants.*/ ! void FillDependantPluginArray(wxArrayString& array); }; ! class WXDC_DLL_BASE PluginDescriptionFile : public wxObject ! { ! protected: ! wxXmlDocument m_Doc; ! bool m_bOk; ! wxString m_strIdent, ! m_strName, ! m_strDescript, ! m_strVersion, ! m_strAuthor, ! m_strLicence, ! m_strNotes, ! m_strURL; ! wxArrayString m_arrstrModules, m_arrstrPlugins; ! public: ! /** Constructeur. ! * @param strPath Chemin du fichier à lire.*/ ! PluginDescriptionFile(wxString strPath); ! ! /** Destructeur.*/ ! ~PluginDescriptionFile(); ! ! /** Parse le fichier xml.*/ ! void Parse(); ! ! /** Teste si le fichier de description est valide.*/ ! bool IsValid()const{return m_bOk;} ! ! /** Retourne l'identifiant du plugin.*/ ! wxString GetIdent(){return m_strIdent;} ! /** Retourne le nom du plugin.*/ ! wxString GetName(){return m_strName;} ! /** Retourne la description du plugin.*/ ! wxString GetDescript(){return m_strDescript;} ! /** Retourne la version du plugin.*/ ! wxString GetVersion(){return m_strVersion;} ! /** Retourne l'auteur du plugin.*/ ! wxString GetAuthor(){return m_strAuthor;} ! /** Retourne la licence d'utilisation du plugin.*/ ! wxString GetLicence(){return m_strLicence;} ! /** Retourne les notes à propos du plugin.*/ ! wxString GetNotes(){return m_strNotes;} ! /** Retourne l'URL du plugin.*/ ! wxString GetURL(){return m_strURL;} ! /** Remplit une liste de nom des plugins dépendants.*/ ! void FillDependantPluginArray(wxArrayString& array); ! /** Remplit une liste des chemins relatifs des modules à charger.*/ ! void FillModuleArray(wxArrayString& array); ! }; ! ! ! }} #endif Index: DocView.h =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/include/wxDevCenter/DocView.h,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** DocView.h 15 Apr 2005 15:41:35 -0000 1.14 --- DocView.h 14 May 2005 12:15:54 -0000 1.15 *************** *** 62,65 **** --- 62,67 ---- #include <wxDevCenter/Frame.h> + #include <wxDevCenter/Plugin.h> + namespace wxDevCenter { *************** *** 104,108 **** * Classe interface de vue pour la représentation visuelle des données des documents. */ ! class WXDC_DLL_BASE View : public wxPanel, public InitializableInterface { friend class Application; --- 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; *************** *** 191,195 **** * Classe Interface de document à dériver pour créer des documents spécifiques. */ ! class WXDC_DLL_BASE Document : public wxEvtHandler, public InitializableInterface { friend class DocManager; --- 193,197 ---- * Classe Interface de document à dériver pour créer des documents spécifiques. */ ! class WXDC_DLL_BASE Document : public Element, public wxEvtHandler { friend class DocManager; *************** *** 197,201 **** friend class Application; /** 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::Document); /** Déclaration de la table d'interception des évènements.*/ DECLARE_EVENT_TABLE() --- 199,203 ---- friend class Application; /** 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(Document) /** Déclaration de la table d'interception des évènements.*/ DECLARE_EVENT_TABLE() *************** *** 490,493 **** --- 492,496 ---- friend class Application; friend class DocManager; + DECLARE_CLASS(DocTemplate) private: /** Gestionnaire de patron de vues.*/ *************** *** 506,509 **** --- 509,521 ---- ~DocTemplate(); + /** @name Fonctions d'interface de PluginItem. + * @{ */ + virtual bool Initialize(); + virtual void Finalize(); + virtual bool Destroy(bool bForce=true); + virtual bool CanDestroy()const; + /** @ */ + + /** @name Gestion des patrons de vues. * @{ */ *************** *** 558,562 **** private: /** Gestionnaire des vues.*/ ! InitializableObjectManager<View> m_ViewManager; protected: /** Fenêtre conteneur par défaut des vues.*/ --- 570,574 ---- private: /** Gestionnaire des vues.*/ ! ElementManager<View> m_ViewManager; protected: /** Fenêtre conteneur par défaut des vues.*/ *************** *** 708,712 **** { /** 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() --- 720,724 ---- { /** 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(ActionDocument) /** Déclaration de la table des évènements.*/ DECLARE_EVENT_TABLE() Index: FileSystem.h =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/include/wxDevCenter/FileSystem.h,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** FileSystem.h 17 Mar 2005 17:51:24 -0000 1.6 --- FileSystem.h 14 May 2005 12:15:54 -0000 1.7 *************** *** 111,116 **** * @see UnixStandardFileSystem */ ! class WXDC_DLL_BASE FileSystem : public wxEvtHandler, public InitializableInterface { DECLARE_EVENT_TABLE() public: --- 111,117 ---- * @see UnixStandardFileSystem */ ! class WXDC_DLL_BASE FileSystem : public wxEvtHandler, public Element { + DECLARE_CLASS(FileSystem) DECLARE_EVENT_TABLE() public: *************** *** 217,221 **** * Fait le lien entre les noms de fichiers, les systèmes de fichiers et les archives. */ ! class WXDC_DLL_BASE FileSystemManager : public InitializableObjectManager<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 ElementManager<FileSystem> { public: Index: Manager.h =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/include/wxDevCenter/Manager.h,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** Manager.h 17 Mar 2005 14:37:41 -0000 1.3 --- Manager.h 14 May 2005 12:15:54 -0000 1.4 *************** *** 43,50 **** * Juste les opérations de base : Enregistrer/Désenregistrer, acces, compte ... * ! * @subsection InitializableObjectManager Gestionnaire d'objets initialisables. ! * Le wxDevCenter::InitializableObjectManager est un gestionnaire d'objets initialisables. ! * Toute classe utilisée comme objet de ce gestionnaire doit implémenter l'interface wxDevCenter::InitializableInterface. ! * Cette interface définit des fonctions virtuelles d'initialisation (wxDevCenter::InitializableInterface::Initialize) et de finalisation (wxDevCenter::InitializableInterface::Finalize) * appelées respectivement à l'enregistrement et au désenregistrement des objets dans le gestionnaire. * Cela permet de manipuler des objets plus ou moins dynamqiues. --- 43,50 ---- * Juste les opérations de base : Enregistrer/Désenregistrer, acces, compte ... * ! * @subsection ElementManager Gestionnaire d'objets initialisables. ! * Le wxDevCenter::ElementManager est un gestionnaire d'objets initialisables. ! * Toute classe utilisée comme objet de ce gestionnaire doit implémenter l'interface wxDevCenter::Element. ! * Cette interface définit des fonctions virtuelles d'initialisation (wxDevCenter::Element::Initialize) et de finalisation (wxDevCenter::Element::Finalize) * appelées respectivement à l'enregistrement et au désenregistrement des objets dans le gestionnaire. * Cela permet de manipuler des objets plus ou moins dynamqiues. *************** *** 54,58 **** * Ces objets doivent être RTTI-dynamiques (DECLARE_DYNAMIC_CLASS). ! * Pour cela, il faut que ces objets dérivent de wxDevCenter::ManagedObject qui est ni plmus ni moins qu'un wxDevCenter::InitializableInterface augmenté des infos RTTI. * Il faut aussi créer un patron d'objet (wxDevCenter::ObjectTemplate) qui contient les informations nécessaire à la création dynamique des objets. * Et enfin, créer le gestionnaire en question. --- 54,58 ---- * Ces objets doivent être RTTI-dynamiques (DECLARE_DYNAMIC_CLASS). ! * Pour cela, il faut que ces objets dérivent de wxDevCenter::ManagedObject qui est ni plmus ni moins qu'un wxDevCenter::Element augmenté des infos RTTI. * Il faut aussi créer un patron d'objet (wxDevCenter::ObjectTemplate) qui contient les informations nécessaire à la création dynamique des objets. * Et enfin, créer le gestionnaire en question. *************** *** 70,73 **** --- 70,77 ---- #define __WXDEVCENTER_MANAGER + + #include <wxDevCenter/Element.h> + #include <wxDevCenter/Plugin.h> + namespace wxDevCenter { *************** *** 206,223 **** - /** Classe interface des objets enregistrables [init/finit]ialisables. - * @ref Gestionnaires - */ - class WXDC_DLL_BASE InitializableInterface - { - public: - /** Initialise l'objet. - * Si l'initialisation rend faux alors l'objet ne sera pas enregistré. - * @return Status d'initialisation.*/ - virtual bool Initialize(){return true;} - /** Finalise l'objet.*/ - virtual void Finalize(){} - }; - /** Classe de base de gestionnaire d'objets initialisables. * Gestion d'objets enregistrés. --- 210,213 ---- *************** *** 225,233 **** */ template<class ItemType> ! class WXDC_DLL_BASE InitializableObjectManager : public ObjectManager<ItemType>, public InitializableInterface { public: /** Constructeur.*/ ! InitializableObjectManager():ObjectManager<ItemType>(){} /** @name Surcharge des fonctions de manipulations. * @{ */ --- 215,223 ---- */ 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. * @{ */ *************** *** 235,256 **** * @param pObj Adresse de l'objet. * @return Vrai si correctement enregistré.*/ ! bool Register(ItemType* pObj){if(pObj->Initialize())return ObjectManager<ItemType>::Register(pObj);else return false;} /** Enregistrement d'un objet. * @param Obj Objet à enregistrer. * @return Vrai si correctement enregistré.*/ ! bool Register(ItemType& Obj){if(Obj.Initialize())return ObjectManager<ItemType>::Register(Obj);else return false;} /** 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) ! { ! if(ObjectManager<ItemType>::Unregister(pObj)) ! { ! pObj->Finalize(); ! return true; ! } ! else ! return false; ! } /** Désenregistrement d'un objet. * @param Index Index de l'objet à supprimer.*/ --- 225,237 ---- * @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.*/ *************** *** 261,287 **** - - - /** Interface des objets manageables. - * Ces objets doivent être initialisables (wxDevCenter::InitializableInterface) - * et RTTI-dynamique (utilisant DECLARE_DYNAMIC_CLASS). - * @ref Gestionnaires - */ - class WXDC_DLL_BASE ManagedObject : public wxObject, public InitializableInterface - { - DECLARE_DYNAMIC_CLASS(ManagedObject); - public: - /** Constructeur.*/ - ManagedObject(): - wxObject() - {} - }; - - /** Patron d'objet manageable. * @ref Gestionnaires */ template<class ObjectType> ! class WXDC_DLL_BASE ObjectTemplate : public wxObject, public InitializableInterface { protected: --- 242,250 ---- /** Patron d'objet manageable. * @ref Gestionnaires */ template<class ObjectType> ! class WXDC_DLL_BASE ObjectTemplate : public Element { protected: *************** *** 296,300 **** /** Constructeur.*/ ObjectTemplate(wxClassInfo* pInfo, wxString strName, wxString strDescript): - wxObject(), m_pClassInfo(pInfo), m_strName(strName), --- 259,262 ---- *************** *** 307,311 **** ObjectType* CreateObject() { ! ObjectType* pObj =(ObjectType*) m_pClassInfo->CreateObject(); if(pObj!=NULL) if(!pObj->Initialize()) --- 269,273 ---- ObjectType* CreateObject() { ! ObjectType* pObj =(ObjectType*) (m_pClassInfo->CreateObject()); if(pObj!=NULL) if(!pObj->Initialize()) *************** *** 332,336 **** */ template<class ObjectType, class Template=ObjectTemplate<ObjectType> > ! class WXDC_DLL_BASE TemplateManager : private InitializableObjectManager<Template> { public: --- 294,298 ---- */ template<class ObjectType, class Template=ObjectTemplate<ObjectType> > ! class WXDC_DLL_BASE TemplateManager : private ElementManager<Template> { public: *************** *** 339,370 **** /** Retourne le nombre de patrons enregistrés. * @return Nombre de patrons enregistrés.*/ ! unsigned int GetTemplateCount()const{return InitializableObjectManager<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 InitializableObjectManager<Template>::Find(pTemplate);} /** Accès à un patron. * @param nIndex Index du patron. * @return Référence du patron.*/ ! Template& GetTemplate(unsigned int nIndex){return InitializableObjectManager<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 InitializableObjectManager<Template>::Item(nIndex);} /** Enregistrement d'un patron. * @param pTemplate Adresse du patron. * @return Vrai si correctement enregistré.*/ ! bool RegisterTemplate(Template* pTemplate){return InitializableObjectManager<Template>::Register(pTemplate);} /** Enregistrement d'un patron. * @param Templ Patron à enregistrer. * @return Vrai si correctement enregistré.*/ ! bool RegisterTemplate(Template& Templ){return InitializableObjectManager<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 InitializableObjectManager<Template>::Unregister(pTempl);} /** Désenregistrement d'un patron. * @param Index Index du patron à supprimer.*/ ! void UnregisterTemplate(unsigned int Index){InitializableObjectManager<Template>::Unregister(Index);} /** @} */ --- 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);} /** @} */ *************** *** 383,389 **** * Si l'initialisation rend faux alors l'objet ne sera pas enregistré. * @return Status d'initialisation.*/ ! virtual bool Initialize(){return InitializableObjectManager<Template>::Initialize();} /** Finalise l'objet.*/ ! virtual void Finalize(){InitializableObjectManager<Template>::Finalize();} /** @} */ }; --- 345,351 ---- * 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();} /** @} */ }; *************** *** 432,436 **** private: /** Gestionnaire interne des objets créés depuis les patrons.*/ ! InitializableObjectManager<ObjectType> m_ObjectManager; protected: /** Création d'un objet depuis un patron enregistré. --- 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é. *************** *** 497,501 **** private: /** Gestionnaire interne des objets créés depuis les patrons.*/ ! InitializableObjectManager<ObjectType> m_ObjectManager; public: /** Constructeur.*/ --- 459,463 ---- private: /** Gestionnaire interne des objets créés depuis les patrons.*/ ! ElementManager<ObjectType> m_ObjectManager; public: /** Constructeur.*/ --- NEW FILE: Element.h --- (This appears to be a binary file; contents omitted.) Index: FileTools.h =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/include/wxDevCenter/FileTools.h,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** FileTools.h 7 Mar 2005 15:23:02 -0000 1.5 --- FileTools.h 14 May 2005 12:15:54 -0000 1.6 *************** *** 48,52 **** FilePath(const char* psz, size_t nLength = wxSTRING_MAXLEN); FilePath(const unsigned char* psz, size_t nLength = wxSTRING_MAXLEN); - FilePath(const wchar_t* psz); /** Retourne le nom du fichier "titre.ext".*/ --- 48,51 ---- Index: FileSystemStandard.h =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/include/wxDevCenter/FileSystemStandard.h,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** FileSystemStandard.h 16 Mar 2005 14:27:36 -0000 1.10 --- FileSystemStandard.h 14 May 2005 12:15:54 -0000 1.11 *************** *** 61,65 **** public: virtual wxString GetFileSystemName()const{return WXDC_SYSTEM_STDFS_NAME;} ! virtual wxIconBundle GetIconBundle()const{return wxGetApp().LoadAppIconBundle("desktop");} wxString GetProtocoleName()const{return "file";} --- 61,65 ---- public: virtual wxString GetFileSystemName()const{return WXDC_SYSTEM_STDFS_NAME;} ! virtual wxIconBundle GetIconBundle()const{return Application::GetApp().LoadAppIconBundle("desktop");} wxString GetProtocoleName()const{return "file";} Index: Application.h =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/include/wxDevCenter/Application.h,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** Application.h 4 Apr 2005 08:11:18 -0000 1.11 --- Application.h 14 May 2005 12:15:54 -0000 1.12 *************** *** 64,72 **** { DECLARE_EVENT_TABLE() protected : /** Gestionnaire de projets.*/ ProjectManager m_ProjectManager; - /** Gestionnaire des plugins.*/ - PluginManager m_PluginManager; /** Gestionnaire de types de documents et de vues.*/ DocManager m_DocManager; --- 64,76 ---- { DECLARE_EVENT_TABLE() + private: + /** The unique Application object.*/ + static Application* ms_pTheApp; protected : + /** Chargeur de plugins.*/ + plugins::PluginLoader m_PluginLoader; + /** Gestionnaire de projets.*/ ProjectManager m_ProjectManager; /** Gestionnaire de types de documents et de vues.*/ DocManager m_DocManager; *************** *** 114,117 **** --- 118,125 ---- /** Fenêtre principale.*/ MainFrame& GetMainFrame(){return *m_pMainFrame;} + + /** Acces sur l'application. + * @return Référence de l'application.*/ + static Application& GetApp(){return *ms_pTheApp;} /** @}*/ *************** *** 242,249 **** * Gestion des plugins. * @{*/ ! /** Chargement des plugins.*/ ! void LoadPlugins(); ! /** Retourne le gestionnaire de plugins.*/ ! PluginManager& GetPluginManager(){return m_PluginManager;} /** @}*/ --- 250,255 ---- * Gestion des plugins. * @{*/ ! /** Retourne le chargeur de plugins.*/ ! plugins::PluginLoader& GetPluginLoader(){return m_PluginLoader;} /** @}*/ *************** *** 259,263 **** /** Déclare un objet application global.*/ ! DECLARE_APP(WXDC_DLL_BASE wxDevCenter::Application) #endif --- 265,269 ---- /** Déclare un objet application global.*/ ! DECLARE_APP(WXDC_DLL_MAIN wxDevCenter::Application) #endif |
|
From: Emilien K. <cur...@us...> - 2005-05-14 12:16:07
|
Update of /cvsroot/wxdevcenter/wxDevCenter/src/msw In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15322/src/msw Modified Files: Config.cpp Log Message: Transition to the new feature/plugin system based on the Element class. Index: Config.cpp =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/src/msw/Config.cpp,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** Config.cpp 23 Feb 2005 14:21:21 -0000 1.5 --- Config.cpp 14 May 2005 12:15:56 -0000 1.6 *************** *** 55,63 **** m_pConfig = new wxConfig(WXDC_SETUP_APPIDENT, WXDC_SETUP_VENDOR); m_strInstallPath = ReadConfig(WXDC_CONF_KEYNAME_INSTALLDIR , wxT("")); m_strDataPath = ReadConfig(WXDC_CONF_KEYNAME_DATADIR , wxT("")); m_strPluginsPath = ReadConfig(WXDC_CONF_KEYNAME_PLUGINSDIR , wxT("")); m_strConfPath = ReadConfig(WXDC_CONF_KEYNAME_CONFDIR , wxT("")); ! m_strUserConfPath = ReadConfig(WXDC_CONF_KEYNAME_USERCONFDIR , wxGetHomeDir() + wxT("/.") + WXDC_SETUP_APPIDENT + wxT("/conf")); } --- 55,67 ---- m_pConfig = new wxConfig(WXDC_SETUP_APPIDENT, WXDC_SETUP_VENDOR); + wxString strDefHomeDir = wxGetHomeDir(); + strDefHomeDir << wxT("/.") << WXDC_SETUP_APPIDENT << wxT("/conf"); + m_strInstallPath = ReadConfig(WXDC_CONF_KEYNAME_INSTALLDIR , wxT("")); m_strDataPath = ReadConfig(WXDC_CONF_KEYNAME_DATADIR , wxT("")); + m_strFeaturesPath = ReadConfig(WXDC_CONF_KEYNAME_FEATURESDIR , wxT("")); m_strPluginsPath = ReadConfig(WXDC_CONF_KEYNAME_PLUGINSDIR , wxT("")); m_strConfPath = ReadConfig(WXDC_CONF_KEYNAME_CONFDIR , wxT("")); ! m_strUserConfPath = ReadConfig(WXDC_CONF_KEYNAME_USERCONFDIR , strDefHomeDir); } *************** *** 116,119 **** --- 120,129 ---- } + // Retourne le chemin racine des fonctionnalités. + wxString ConfigWindows::GetFeaturesPath() + { + return m_strFeaturesPath; + } + // Retourne le chemin racine des pluggins. wxString ConfigWindows::GetPluginsPath() |
|
From: Emilien K. <cur...@us...> - 2005-05-14 12:16:04
|
Update of /cvsroot/wxdevcenter/wxDevCenter/include/wxDevCenter/unix In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15322/include/wxDevCenter/unix Modified Files: Config.h Log Message: Transition to the new feature/plugin system based on the Element class. Index: Config.h =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/include/wxDevCenter/unix/Config.h,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** Config.h 23 Feb 2005 14:21:20 -0000 1.5 --- Config.h 14 May 2005 12:15:55 -0000 1.6 *************** *** 41,44 **** --- 41,46 ---- /** Chemin d'installation des données.*/ wxString m_strDataPath; + /** Chemin d'installation des fonctionnalités.*/ + wxString m_strFeaturesPath; /** Chemin d'installation des plugins.*/ wxString m_strPluginsPath; *************** *** 98,101 **** --- 100,107 ---- */ virtual wxString GetDataPath(); + /** Retourne le chemin racine des fonctionnalités. + * @return Chemin racine des fonctionnalités. + */ + virtual wxString GetFeaturesPath(); /** Retourne le chemin racine des pluggins. * @return Chemin racine des plugins. |
|
From: Emilien K. <cur...@us...> - 2005-05-14 12:16:03
|
Update of /cvsroot/wxdevcenter/wxDevCenter/include/wxDevCenter/msw In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15322/include/wxDevCenter/msw Modified Files: Config.h Log Message: Transition to the new feature/plugin system based on the Element class. Index: Config.h =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/include/wxDevCenter/msw/Config.h,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** Config.h 23 Feb 2005 14:21:19 -0000 1.5 --- Config.h 14 May 2005 12:15:55 -0000 1.6 *************** *** 41,44 **** --- 41,46 ---- /** Chemin d'installation des données.*/ wxString m_strDataPath; + /** Chemin d'installation des fonctionnalités.*/ + wxString m_strFeaturesPath; /** Chemin d'installation des plugins.*/ wxString m_strPluginsPath; *************** *** 99,102 **** --- 101,108 ---- */ virtual wxString GetDataPath(); + /** Retourne le chemin racine des fonctionnalités. + * @return Chemin racine des fonctionnalités. + */ + virtual wxString GetFeaturesPath(); /** Retourne le chemin racine des pluggins. * @return Chemin racine des plugins. |
|
From: Emilien K. <cur...@us...> - 2005-04-25 15:40:41
|
Update of /cvsroot/wxdevcenter/StdPlugin/build In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32116/build Added Files: StdPlugin.bkl install.bkl wx.bkl Log Message: Nouvelle archi des bakefiles. --- 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> --- NEW FILE: install.bkl --- <?xml version="1.0" ?> <makefile> <using module="datafiles" /> <!-- 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> --- NEW FILE: StdPlugin.bkl --- <?xml version="1.0" ?> <makefile> <set var="PATHTOWXDC"> ../wxDevCenter </set> <dll id="Text" template="wxDLL"> <libname>StdPlugin.Text$(SUFFIX)</libname> <include>include</include> <include>$(PATHTOWXDC)/include</include> <sources> src/Controls.cpp src/SimpleTextDocView.cpp </sources> <wxlib /> <wxlib-gui>core</wxlib-gui> <wxlib-gui>adv</wxlib-gui> <wxlib-gui>stc</wxlib-gui> <sys-lib>wxDevCenter$(SUFFIX)</sys-lib> <install-to>$(LIBDIR)/wxDevCenter/plugins/StdPlugin.Text</install-to> </dll> <dll id="Bitmap" template="wxDLL"> <libname>StdPlugin.Bitmap$(SUFFIX)</libname> <include>include</include> <include>$(PATHTOWXDC)/include</include> <sources> src/BitmapCtrl.cpp src/BitmapDocView.cpp src/Controls.cpp src/extMouse.cpp </sources> <wxlib /> <wxlib-gui>core</wxlib-gui> <wxlib-gui>adv</wxlib-gui> <sys-lib>wxDevCenter$(SUFFIX)</sys-lib> <install-to>$(LIBDIR)/wxDevCenter/plugins/StdPlugin.Bitmap</install-to> </dll> </makefile> |