From: <de...@us...> - 2008-08-25 20:37:00
|
Revision: 3835 http://fudaa.svn.sourceforge.net/fudaa/?rev=3835&view=rev Author: deniger Date: 2008-08-25 20:37:03 +0000 (Mon, 25 Aug 2008) Log Message: ----------- Modified Paths: -------------- branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostProjet.java branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostVisuPanel.java Modified: branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostProjet.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostProjet.java 2008-08-25 20:36:21 UTC (rev 3834) +++ branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostProjet.java 2008-08-25 20:37:03 UTC (rev 3835) @@ -68,6 +68,8 @@ import org.fudaa.ebli.courbe.EGGraphe; import org.fudaa.ebli.ressource.EbliResource; import org.fudaa.ebli.visuallibrary.EbliNodeDefault; +import org.fudaa.ebli.visuallibrary.EbliScene; +import org.fudaa.ebli.visuallibrary.calque.EbliWidgetCalqueLegende; import org.fudaa.ebli.visuallibrary.graphe.EbliWidgetCreatorGraphe; import org.fudaa.fudaa.commun.FudaaLib; import org.fudaa.fudaa.commun.courbe.FudaaCourbeTimeListModel; @@ -272,7 +274,7 @@ * Fenetre fille qui contient le layout scene. Cette fenetre remplace petit a * petit fille_ */ - transient TrPostLayoutFille filleLayout_ = new TrPostLayoutFille(this); + transient TrPostLayoutFille filleLayout_; transient BuInternalFrame frVariables_; @@ -804,8 +806,8 @@ } - protected TrPostVisuPanel buildVisuPanel() { - return new TrPostVisuPanel(impl_, this, new BCalqueLegende()); + protected TrPostVisuPanel buildVisuPanel(EbliScene _scene) { + return new TrPostVisuPanel(impl_, this, new EbliWidgetCalqueLegende(_scene)); } /** @@ -976,7 +978,7 @@ public void act() { filleLayout_ = new TrPostLayoutFille(TrPostProjet.this); - final TrPostVisuPanel pnVisu = buildVisuPanel(); + final TrPostVisuPanel pnVisu = buildVisuPanel(filleLayout_.getScene()); // fille_ = new TrPostFille(pnVisu); Modified: branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostVisuPanel.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostVisuPanel.java 2008-08-25 20:36:21 UTC (rev 3834) +++ branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostVisuPanel.java 2008-08-25 20:37:03 UTC (rev 3835) @@ -44,6 +44,9 @@ import org.fudaa.ebli.commun.EbliActionPaletteAbstract; import org.fudaa.ebli.commun.EbliActionSimple; import org.fudaa.ebli.commun.EbliLib; +import org.fudaa.ebli.geometrie.GrBoite; +import org.fudaa.ebli.visuallibrary.EbliScene; +import org.fudaa.ebli.visuallibrary.calque.EbliWidgetCalqueLegende; import org.fudaa.fudaa.commun.impl.FudaaCommonImplementation; import org.fudaa.fudaa.meshviewer.MvSelectionNodeOrEltData; import org.fudaa.fudaa.meshviewer.export.MvExportFactory; @@ -468,12 +471,9 @@ } /** - * @param _impl - * l'implementation - * @param _src - * la source - * @param _selection - * la selection + * @param _impl l'implementation + * @param _src la source + * @param _selection la selection */ public static void startExport(final CtuluUI _impl, final TrPostSource _src, final MvSelectionNodeOrEltData _selection) { TrExportFactory fac = null; @@ -501,47 +501,16 @@ /** * duplication du trPostVisuPanel. surcharge de la duplication du zeblicalquePanel. */ - public TrPostVisuPanel duplicate(Map options) { + public TrPostVisuPanel duplicate(Map _options) { - final TrPostVisuPanel duplic = new TrPostVisuPanel(this.getImpl(), this.getProjet(), null); - // -- duplication du layer qui contient les memes proprietes --// - duplic.isoLayer_ = (TrIsoLayer) this.isoLayer_.duplicate(); + final TrPostVisuPanel duplic = new TrPostVisuPanel(this.getImpl(), this.getProjet(), new EbliWidgetCalqueLegende( + (EbliScene) _options.get("scene"))); + // -- sauvegarde de l etat --// + BCalqueSaverInterface savedData = getDonneesCalque().getPersistenceMng().save(getDonneesCalque(), null); - // -- duplication des donnees via sauvegarde thread--// - new CtuluTaskOperationGUI(this.impl_, TrResource.getS("Enregistrement")) { + // -- chargement de l etat dans le calque duplique --// + duplic.getDonneesCalque().getPersistenceMng().restore(savedData, duplic, duplic.getDonneesCalque(), null); - public void act() { - - // -- sauvegarde de l etat --// - BCalqueSaverInterface savedData = getDonneesCalque().getPersistenceMng().save(getDonneesCalque(), - impl_.createProgressionInterface(this)); - - // -- chargement de l etat dans le calque duplique --// - duplic.getDonneesCalque().getPersistenceMng().restore(savedData, duplic, duplic.getDonneesCalque(), - impl_.createProgressionInterface(this)); - - // -- destruction des calques doublons du duplic pour recuperer une - // bonne arborescence --// - - // BCalque[] liste = duplic.getDonneesCalque().getCalques(); - // for (int i = 0; i < liste.length; i++) { - // BCalque calque = liste[i]; - // boolean existeDeja = false; - // // --recherche si doublon --// - // for (int j = i + 1; j < liste.length; j++) { - // BCalque calque2 = liste[j]; - // if (calque == calque2) - // liste[j].setDestructible(true); - // // duplic.getDonneesCalque().detruire(liste[j]); - // duplic.detruireCalque(liste[j]); - // - // } - // - // } - - } - }.start(); - return duplic; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |