You can subscribe to this list here.
2008 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(46) |
Jul
(37) |
Aug
(154) |
Sep
(140) |
Oct
(132) |
Nov
(104) |
Dec
(67) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2009 |
Jan
(113) |
Feb
(73) |
Mar
(102) |
Apr
(106) |
May
(114) |
Jun
(67) |
Jul
(116) |
Aug
(48) |
Sep
(108) |
Oct
(296) |
Nov
(56) |
Dec
(53) |
2010 |
Jan
(95) |
Feb
(31) |
Mar
(40) |
Apr
(12) |
May
(10) |
Jun
(27) |
Jul
(19) |
Aug
(81) |
Sep
(48) |
Oct
(45) |
Nov
(40) |
Dec
(7) |
2011 |
Jan
(16) |
Feb
(32) |
Mar
(55) |
Apr
(38) |
May
(24) |
Jun
(37) |
Jul
(12) |
Aug
(16) |
Sep
(97) |
Oct
(90) |
Nov
(101) |
Dec
(89) |
2012 |
Jan
(18) |
Feb
(2) |
Mar
(54) |
Apr
(69) |
May
(97) |
Jun
(131) |
Jul
(70) |
Aug
(48) |
Sep
(48) |
Oct
(119) |
Nov
(194) |
Dec
(60) |
2013 |
Jan
(73) |
Feb
(35) |
Mar
(42) |
Apr
(28) |
May
(7) |
Jun
(17) |
Jul
(27) |
Aug
(10) |
Sep
(38) |
Oct
(12) |
Nov
(4) |
Dec
(16) |
2014 |
Jan
(33) |
Feb
(37) |
Mar
(19) |
Apr
(3) |
May
(47) |
Jun
(26) |
Jul
(22) |
Aug
|
Sep
(10) |
Oct
(30) |
Nov
(24) |
Dec
(19) |
2015 |
Jan
(13) |
Feb
(16) |
Mar
(36) |
Apr
(19) |
May
(5) |
Jun
(5) |
Jul
(3) |
Aug
(11) |
Sep
(22) |
Oct
(7) |
Nov
(14) |
Dec
|
2016 |
Jan
|
Feb
(26) |
Mar
(13) |
Apr
(61) |
May
|
Jun
|
Jul
(4) |
Aug
|
Sep
|
Oct
(27) |
Nov
(14) |
Dec
(21) |
2017 |
Jan
(30) |
Feb
(4) |
Mar
(3) |
Apr
(5) |
May
(69) |
Jun
(29) |
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <de...@us...> - 2008-09-11 22:14:03
|
Revision: 3910 http://fudaa.svn.sourceforge.net/fudaa/?rev=3910&view=rev Author: deniger Date: 2008-09-11 22:14:11 +0000 (Thu, 11 Sep 2008) Log Message: ----------- modification legende Modified Paths: -------------- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliScene.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliSceneController.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidget.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidgetBordure.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidgetSynchroniser.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/CommandUndoRedoBloque.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionBloqueOuDebloqueWidget.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionRetaillageHorizontal.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionRetaillageVertical.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/calque/CalqueLegendeWidgetAdapter.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/calque/EbliWidgetCalqueLegende.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/calque/EbliWidgetControllerCalque.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/calque/EbliWidgetCreatorLegende.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/calque/EbliWidgetVueCalque.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/graphe/EbliWidgetGraphe.java branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/TrLauncherDefault.java branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostActionAddPointFromWidgetCalque.java branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostActionChooseAndCreateCalque.java branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostActionFusionGraphes.java branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostLayoutFille.java branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostLayoutPanelController.java 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 branches/Prepro-0.92-SNAPSHOT/fudaa-distrib/prepro/build.xml Added Paths: ----------- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidgetEditModeListener.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/calque/EbliWidgetPlage.java Removed Paths: ------------- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetEditCreator.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/calque/EbliWidgetPlageTitle.java branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostScene.java branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostSceneEditor.java Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliScene.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliScene.java 2008-09-11 22:12:30 UTC (rev 3909) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliScene.java 2008-09-11 22:14:11 UTC (rev 3910) @@ -4,7 +4,6 @@ import java.util.Collections; import org.fudaa.ctulu.CtuluCommandManager; -import org.fudaa.ebli.visuallibrary.actions.EbliWidgetEditCreator; import org.fudaa.ebli.visuallibrary.tree.EbliWidgetJXTreeTableModel; import org.netbeans.api.visual.action.SelectProvider; import org.netbeans.api.visual.graph.GraphScene; @@ -23,14 +22,11 @@ * model de la scene pour l affichage de ses composants */ EbliWidgetJXTreeTableModel treeModel_; - + /** * controller de la scene qui gere les actions et les constructions graphiques */ private EbliSceneController controller_; - - - private class ObjectSelectProvider implements SelectProvider { @@ -60,20 +56,13 @@ } - /** * Le gestionnaire de commande associe \xE0 la scene */ private CtuluCommandManager cmdMng_; - EbliWidgetEditCreator editor_ = EbliWidgetEditCreator.INSTANCE; - private LayerWidget interactionLayer_; - - - - /** * la visu du graphscene */ @@ -91,14 +80,12 @@ addChild(interactionLayer_); visu_ = new LayerWidget(this); addChild(visu_); - + // -- creation de son model tree --// treeModel_ = new EbliWidgetJXTreeTableModel(this); // -- creation de son controlleur --// controller_ = new EbliSceneController(this); - - } @@ -134,22 +121,16 @@ // -- creation de la widget ici --// if (node.getWidget() == null) - // -- on ne cree la widget que sis necessaire + // -- on ne cree la widget que sis necessaire node.setWidget(node.getCreator().create(this)); - - // -- remplissage des proprietes node.getWidget().setPreferredLocation(node.getPreferedLocation()); - if (node.getPreferedSize() != null) - node.getWidget().setPreferredSize(node.getPreferedSize()); + if (node.getPreferedSize() != null) node.getWidget().setPreferredSize(node.getPreferedSize()); // -- ajout dans la vue layer --// visu_.addChild(node.getWidget()); - - - return node.getWidget(); } @@ -160,19 +141,10 @@ return cmdMng_; } - /** - * @return the editor - */ - public EbliWidgetEditCreator getEditor() { - return editor_; - } - public LayerWidget getLayerVisu() { return visu_; } - - public LayerWidget getVisu() { return visu_; } @@ -192,7 +164,6 @@ // } // // } - @Override protected void notifyNodeAdded(EbliNode node, Widget widget) { // -- notifier tous les listener que le noeud a ete attache --// @@ -241,25 +212,14 @@ cmdMng_ = _cmdMng; } - /** - * @param _editor the editor to set - */ - public void setEditor(EbliWidgetEditCreator _editor) { - editor_ = _editor; - } - - - - public void setVisu_(LayerWidget visu_) { + public void setVisuLayer(LayerWidget visu_) { this.visu_ = visu_; } - public LayerWidget getInteractionLayer() { return interactionLayer_; } - - + public EbliSceneController getController() { return controller_; } Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliSceneController.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliSceneController.java 2008-09-11 22:12:30 UTC (rev 3909) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliSceneController.java 2008-09-11 22:14:11 UTC (rev 3910) @@ -1,5 +1,8 @@ package org.fudaa.ebli.visuallibrary; +import java.util.HashSet; +import java.util.Set; + import javax.swing.ListSelectionModel; import org.fudaa.ebli.visuallibrary.tree.EbliJXTreeTableCellRenderer; @@ -8,6 +11,7 @@ import org.netbeans.api.visual.action.ActionFactory; import org.netbeans.api.visual.action.WidgetAction; import org.netbeans.api.visual.model.ObjectSceneEventType; +import org.netbeans.api.visual.widget.Widget; import com.memoire.bu.BuMenuBar; import com.memoire.bu.BuToolBar; @@ -25,25 +29,40 @@ final private WidgetAction alignWithMoveAction; final private WidgetAction alignWithResizeAction; - - + Set<EbliWidgetEditModeListener> listeners_ = new HashSet<EbliWidgetEditModeListener>(); + + public void addEditListener(EbliWidgetEditModeListener _l) { + listeners_.add(_l); + } + + public void removeEditListener(EbliWidgetEditModeListener _l) { + listeners_.remove(_l); + } + + public void fireEditStart(Widget w) { + for (EbliWidgetEditModeListener l : listeners_) { + l.editStart(w); + } + } + + public void fireEditStop(Widget w) { + for (EbliWidgetEditModeListener l : listeners_) { + l.editStop(w); + } + } + public final WidgetAction rectangularSelection_; - + public EbliSceneController(EbliScene _scene) { - - + scene_ = _scene; - - alignWithMoveAction = ActionFactory.createAlignWithMoveAction(scene_.getVisu(), scene_.getInteractionLayer(), - ActionFactory - .createDefaultAlignWithMoveDecorator(), false); + ActionFactory.createDefaultAlignWithMoveDecorator(), false); alignWithResizeAction = ActionFactory.createAlignWithResizeAction(scene_.getVisu(), scene_.getInteractionLayer(), - ActionFactory - .createDefaultAlignWithMoveDecorator(), false); + ActionFactory.createDefaultAlignWithMoveDecorator(), false); rectangularSelection_ = ActionFactory.createRectangularSelectAction(scene_, scene_.getInteractionLayer()); // -- ajoute l'action du zoom ( ctrl + clic) @@ -52,52 +71,51 @@ // -- ajouter le menu popup de base setMenuBase(); - + } - - + public void setMenuBase() { - // getActions().addAction(ActionFactory.createPopupMenuAction(new - // PopupMenuProvider() { - // public JPopupMenu getPopupMenu(Widget widget, Point localLocation) { - // JPopupMenu popup = new JPopupMenu(); - // - // JMenuItem menuItem1 = popup.add("Ajouter Graphe"); - // menuItem1.addActionListener(new ActionListener() { - // - // public void actionPerformed(ActionEvent e) { - // - // } - // - // }); - // - // JMenuItem menuItem2 = popup.add("Ajouter Maillage"); - // menuItem2.addActionListener(new ActionListener() { - // - // public void actionPerformed(ActionEvent e) { - // - // } - // - // }); - // - // JMenuItem menuItem3 = popup.add("Fermer l'objet"); - // menuItem3.addActionListener(new ActionListener() { - // - // public void actionPerformed(ActionEvent e) { - // - // // fermeture des widgets children - // EbliScene.this.removeChildren(); - // // fermeture du widget donne - // EbliScene.this.removeFromParent(); - // - // } - // - // }); - // return popup; - // } - // })); + // getActions().addAction(ActionFactory.createPopupMenuAction(new + // PopupMenuProvider() { + // public JPopupMenu getPopupMenu(Widget widget, Point localLocation) { + // JPopupMenu popup = new JPopupMenu(); + // + // JMenuItem menuItem1 = popup.add("Ajouter Graphe"); + // menuItem1.addActionListener(new ActionListener() { + // + // public void actionPerformed(ActionEvent e) { + // + // } + // + // }); + // + // JMenuItem menuItem2 = popup.add("Ajouter Maillage"); + // menuItem2.addActionListener(new ActionListener() { + // + // public void actionPerformed(ActionEvent e) { + // + // } + // + // }); + // + // JMenuItem menuItem3 = popup.add("Fermer l'objet"); + // menuItem3.addActionListener(new ActionListener() { + // + // public void actionPerformed(ActionEvent e) { + // + // // fermeture des widgets children + // EbliScene.this.removeChildren(); + // // fermeture du widget donne + // EbliScene.this.removeFromParent(); + // + // } + // + // }); + // return popup; + // } + // })); } - + /** * Methode qui retourne ou cree le tree associe a la scene * @@ -145,7 +163,7 @@ // -- ajout du synchroniser du tree/scene --// - scene_.addObjectSceneListener(new EbliWidgetSynchroniser(scene_.getTreeModel(), treeScene_), + scene_.addObjectSceneListener(new EbliWidgetSynchroniser(scene_.getTreeModel(), treeScene_), ObjectSceneEventType.OBJECT_SELECTION_CHANGED); return treeScene_; @@ -159,6 +177,7 @@ public BuMenuBar getMenubarComponent() { return null; } + public WidgetAction getMoveAction() { return alignWithMoveAction; } @@ -169,5 +188,5 @@ public WidgetAction getRectangularSelection() { return rectangularSelection_; } - + } Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidget.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidget.java 2008-09-11 22:12:30 UTC (rev 3909) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidget.java 2008-09-11 22:14:11 UTC (rev 3910) @@ -7,6 +7,8 @@ import java.util.HashMap; import java.util.Map; +import javax.swing.JComponent; + import org.fudaa.ctulu.CtuluLibString; import org.fudaa.ebli.commun.EbliLib; import org.fudaa.ebli.controle.BConfigurableComposite; @@ -25,37 +27,109 @@ */ public class EbliWidget extends Widget implements BSelecteurTargetInterface { - private EbliScene scene_; + public final static String COLORCONTOUR = "ColorContour"; + public final static String COLORFOND = "colorFond"; + + public final static String FONT = "font"; + /** + * Liste des clef utilisees pour les composants graphiques + */ + public final static String LINEMODEL = "lineModel"; + + public final static String ROTATION = "rotation"; + + protected EbliWidgetController controller_; + boolean isGroup; + boolean isInEditMode_ = false; + + /** * Map contenant tous les objets graphiques de la widget generique. key: lineModel => le lignemodel du ebliWidget. * key: color => couleur de fond. */ protected Map<String, Object> propGraphique; + private EbliScene scene_; - public Map<String, Object> getPropGraphique() { - return propGraphique; - } + private boolean useBorder_ = true; - public void setPropGraphique(Map<String, Object> propGraphique) { - this.propGraphique = propGraphique; + /** + * @param scene + * @param Point : indiaue la location preferentiel. peut etre nul + */ + public EbliWidget(EbliScene scene) { + super(scene); + setScene(scene); + // -- remplisage de la map de propriete grahiques --// + propGraphique = new HashMap<String, Object>(); + + // -- ajout du traceligneModel utilise par les filles--// + propGraphique.put(LINEMODEL, new TraceLigneModel()); + + // -- ajout de la couleur de fond par default blanc--// + propGraphique.put(COLORFOND, Color.WHITE); + + // -- ajout de la couleur de contour par default black--// + propGraphique.put(COLORCONTOUR, Color.BLACK); + + // -- ajout de la font par default--// + propGraphique.put(FONT, new Font("Helvetica.Italic", Font.PLAIN, 12)); + + // -- ajout de l angle de rotation par default PI --// + propGraphique.put(ROTATION, Math.PI); } - protected EbliWidgetController controller_; - /** - * Liste des clef utilisees pour les composants graphiques + * Utilise par la plupart des composant sauf calque et graphe qui necessitent un controller particulier. + * + * @param scene + * @param controllerDefaut */ - public final static String LINEMODEL = "lineModel"; - public final static String COLORCONTOUR = "ColorContour"; - public final static String COLORFOND = "colorFond"; + public EbliWidget(EbliScene scene, boolean controllerDefaut) { + this(scene); - public final static String ROTATION = "rotation"; - public final static String FONT = "font"; + // -- creation du controller par defaut --// + if (controllerDefaut) controller_ = new EbliWidgetController(this); - private boolean useBorder_ = true; + } + public void addPropertyChangeListener(String _key, PropertyChangeListener _l) { + // voir EGObject + + } + + public Map<String, Object> duplicateGraphicalProperties() { + // FIXME il faut juste cloner la map ... + Map<String, Object> mapDupliquee = new HashMap<String, Object>(); + + mapDupliquee.put(LINEMODEL, new TraceLigneModel(getTraceLigneModel())); + mapDupliquee.put(COLORCONTOUR, getColorContour()); + mapDupliquee.put(COLORFOND, getColorFond()); + mapDupliquee.put(ROTATION, getRotation()); + mapDupliquee.put(FONT, getFormeFont()); + return mapDupliquee; + } + + protected void editingStart() { + isInEditMode_ = true; + getEbliScene().getController().fireEditStart(this); + + } + + protected void editingStop() { + isInEditMode_ = false; + getEbliScene().getController().fireEditStop(this); + } + + public Color getColorContour() { + return (Color) propGraphique.get(COLORCONTOUR); + } + + public Color getColorFond() { + return (Color) propGraphique.get(COLORFOND); + } + /** * retourne la liste des interfaces configurees. * @@ -72,28 +146,26 @@ */}; } - protected String getTitle() { - EbliNode n = (EbliNode) getEbliScene().findObject(this); - return n == null ? CtuluLibString.EMPTY_STRING : n.getTitle(); + public EbliWidgetController getController() { + return controller_; } - /** - * Retourne une interface widgetConfigure qui permet de gerer les interfaces a creer - * - * @return - */ - private BConfigurableInterface getSingleConfigureInterface(boolean lineModel_, boolean colorsContours_, - boolean colorFonds_, boolean rotations_, boolean police_) { + public EbliScene getEbliScene() { + return scene_; + } - // -- retourne l interface qui va bien qui permet de creer les composants - // graphiques correspondant --// - return new WidgetConfigure(lineModel_, colorsContours_, colorFonds_, rotations_, police_, this); + public Font getFormeFont() { + return (Font) propGraphique.get(FONT); } - public void addPropertyChangeListener(String _key, PropertyChangeListener _l) { - // voir EGObject - + protected EbliWidget getGroup() { + Widget parent = getParentWidget(); + while (parent != getScene() && parent != null) { + if (parent instanceof EbliWidget && ((EbliWidget) parent).isGroup) { return ((EbliWidget) parent); } + parent = parent.getParentWidget(); + } + return null; } // useless @@ -124,109 +196,67 @@ return propGraphique.get(_key); } - public void removePropertyChangeListener(String _key, PropertyChangeListener _l) {} + public Map<String, Object> getPropGraphique() { + return propGraphique; + } + public double getRotation() { + if (propGraphique.get(ROTATION) instanceof Integer) propGraphique.put(ROTATION, new Double((Integer) propGraphique + .get(ROTATION))); + return (Double) propGraphique.get(ROTATION); + } + /** - * Methode directement appelee apres modification des parametres renvoye par le getproperty. Ajoute les anciens - * parametres dans la commande undo/redo. + * Retourne une interface widgetConfigure qui permet de gerer les interfaces a creer + * + * @return */ - public boolean setProperty(String _key, Object prop) { + private BConfigurableInterface getSingleConfigureInterface(boolean lineModel_, boolean colorsContours_, + boolean colorFonds_, boolean rotations_, boolean police_) { - // --cas particulier si il s agit du tracelignemodel: il faut mettre a jour - // l ancien lignemodel --// - if (_key.equals(LINEMODEL)) { - getTraceLigneModel().updateData((TraceLigneModel) prop); - prop = getTraceLigneModel(); - } else if (_key.equals(ROTATION) && prop instanceof Integer) { - // -- cas particulier si il s agit de la rotation --// - // -- il faut transformer les degres en radian --// - int degre = ((Integer) prop).intValue(); - double radian = degre * Math.PI / 180; - prop = new Double(radian); + // -- retourne l interface qui va bien qui permet de creer les composants + // graphiques correspondant --// + return new WidgetConfigure(lineModel_, colorsContours_, colorFonds_, rotations_, police_, this); - } - - // -- creation de la commande undo/redo --// - CommandeUndoRedoGraphicalProperties undoRedo = new CommandeUndoRedoGraphicalProperties(); - - // -- ajout de la widget en question ainsi que la oldpropertie --// - undoRedo.addWidget(this); - undoRedo.addOldPropertie(this.duplicateGraphicalProperties()); - - // --mise a jout de la map de proprietes --// - propGraphique.put(_key, prop); - - // -- ajout de la nouvelle propertie --// - undoRedo.addNewPropertie(propGraphique); - - // -- enregistrement de la commande undo/redo --// - if (getEbliScene().getCmdMng() != null) { - getEbliScene().getCmdMng().addCmd(undoRedo); - } - - // -- mise a jour des parametres de la map --// - refreshMyProperties(); - - return true; } - public boolean isTitleModifiable() { - return true; + protected String getTitle() { + EbliNode n = (EbliNode) getEbliScene().findObject(this); + return n == null ? CtuluLibString.EMPTY_STRING : n.getTitle(); } /** - * Utilise par la plupart des composant sauf calque et graphe qui necessitent un controller particulier. - * - * @param scene - * @param controllerDefaut + * Retourne les proprietes de la map. */ - public EbliWidget(EbliScene scene, boolean controllerDefaut) { - this(scene); - - // -- creation du controller par defaut --// - if (controllerDefaut) controller_ = new EbliWidgetController(this); - + public TraceLigneModel getTraceLigneModel() { + return (TraceLigneModel) propGraphique.get(LINEMODEL); } /** - * @param scene - * @param Point : indiaue la location preferentiel. peut etre nul + * @return the isGroup: true si le widget represente un groupe de widget comme un groupe par exemple */ - public EbliWidget(EbliScene scene) { - super(scene); - setScene(scene); + public boolean isGroup() { + return isGroup; + } - // -- remplisage de la map de propriete grahiques --// - propGraphique = new HashMap<String, Object>(); + public boolean isHitAt(Point localLocation) { - // -- ajout du traceligneModel utilise par les filles--// - propGraphique.put(LINEMODEL, new TraceLigneModel()); + if (localLocation == null) return false; - // -- ajout de la couleur de fond par default blanc--// - propGraphique.put(COLORFOND, Color.WHITE); - - // -- ajout de la couleur de contour par default black--// - propGraphique.put(COLORCONTOUR, Color.BLACK); - - // -- ajout de la font par default--// - propGraphique.put(FONT, new Font("Helvetica.Italic", Font.PLAIN, 12)); - - // -- ajout de l angle de rotation par default PI --// - propGraphique.put(ROTATION, Math.PI); + if (getBounds() != null) return isVisible() && getBounds().contains(localLocation); + else + // return isVisible() && getPreferredBounds().contains(localLocation); + return false; } - public EbliWidgetController getController_() { - return controller_; + public boolean isInEditMode() { + return isInEditMode_; } - public void setController_(EbliWidgetController controller_) { - this.controller_ = controller_; + public boolean isTitleModifiable() { + return true; } - public EbliScene getEbliScene() { - return scene_; - } - public boolean isUseBorder() { return useBorder_; } @@ -242,117 +272,101 @@ } } - boolean isGroup; - /** - * @return the isGroup: true si le widget represente un groupe de widget comme un groupe par exemple + * Methode qui raffraichis les proprietes de la widget. */ - public boolean isGroup() { - return isGroup; + public void refreshMyProperties() { + getEbliScene().refresh(); } - protected EbliWidget getGroup() { - Widget parent = getParentWidget(); - while (parent != getScene() && parent != null) { - if (parent instanceof EbliWidget && ((EbliWidget) parent).isGroup) { return ((EbliWidget) parent); } - parent = parent.getParentWidget(); - } - return null; + public void removePropertyChangeListener(String _key, PropertyChangeListener _l) {} + + public void setColorContour(Color newColor) { + propGraphique.put(COLORCONTOUR, newColor); } - /** - * @param isGroup the isGroup to set - */ - public void setGroup(boolean isGroup) { - this.isGroup = isGroup; + public void setColorFond(Color newColor) { + propGraphique.put(COLORFOND, newColor); } - public void setScene(EbliScene _scene) { - this.scene_ = _scene; + public void setController_(EbliWidgetController controller_) { + this.controller_ = controller_; } - public void setUseBorder(boolean _useBorder) { - useBorder_ = _useBorder; + public void setFormeFont(Font newFont) { + propGraphique.put(FONT, newFont); } /** - * Methode qui raffraichis les proprietes de la widget. + * @param isGroup the isGroup to set */ - public void refreshMyProperties() { - getEbliScene().refresh(); + public void setGroup(boolean isGroup) { + this.isGroup = isGroup; } - public Map<String, Object> duplicateGraphicalProperties() { - // FIXME il faut juste cloner la map ... - Map<String, Object> mapDupliquee = new HashMap<String, Object>(); - - mapDupliquee.put(LINEMODEL, new TraceLigneModel(getTraceLigneModel())); - mapDupliquee.put(COLORCONTOUR, getColorContour()); - mapDupliquee.put(COLORFOND, getColorFond()); - mapDupliquee.put(ROTATION, getRotation()); - mapDupliquee.put(FONT, getFormeFont()); - return mapDupliquee; - } - - - public boolean isHitAt(Point localLocation) { - - - if (localLocation == null) - return false; - - System.err.println("getBounds:" + this.convertLocalToScene(getBounds())); - System.err.println("Location:" + this.convertSceneToLocal(localLocation)); - if (getBounds() != null) - return isVisible() && getBounds().contains(localLocation); - else - // return isVisible() && getPreferredBounds().contains(localLocation); - return false; - } - /** - * Retourne les proprietes de la map. + * Methode directement appelee apres modification des parametres renvoye par le getproperty. Ajoute les anciens + * parametres dans la commande undo/redo. */ - public TraceLigneModel getTraceLigneModel() { - return (TraceLigneModel) propGraphique.get(LINEMODEL); - } + public boolean setProperty(String _key, Object prop) { - public void setTraceLigneModel(TraceLigneModel _l) { - propGraphique.put(LINEMODEL, _l); - } + // --cas particulier si il s agit du tracelignemodel: il faut mettre a jour + // l ancien lignemodel --// + if (_key.equals(LINEMODEL)) { + getTraceLigneModel().updateData((TraceLigneModel) prop); + prop = getTraceLigneModel(); + } else if (_key.equals(ROTATION) && prop instanceof Integer) { + // -- cas particulier si il s agit de la rotation --// + // -- il faut transformer les degres en radian --// + int degre = ((Integer) prop).intValue(); + double radian = degre * Math.PI / 180; + prop = new Double(radian); - public void setColorContour(Color newColor) { - propGraphique.put(COLORCONTOUR, newColor); - } + } - public Color getColorContour() { - return (Color) propGraphique.get(COLORCONTOUR); - } + // -- creation de la commande undo/redo --// + CommandeUndoRedoGraphicalProperties undoRedo = new CommandeUndoRedoGraphicalProperties(); - public void setColorFond(Color newColor) { - propGraphique.put(COLORFOND, newColor); - } + // -- ajout de la widget en question ainsi que la oldpropertie --// + undoRedo.addWidget(this); + undoRedo.addOldPropertie(this.duplicateGraphicalProperties()); - public Color getColorFond() { - return (Color) propGraphique.get(COLORFOND); + // --mise a jout de la map de proprietes --// + propGraphique.put(_key, prop); + + // -- ajout de la nouvelle propertie --// + undoRedo.addNewPropertie(propGraphique); + + // -- enregistrement de la commande undo/redo --// + if (getEbliScene().getCmdMng() != null) { + getEbliScene().getCmdMng().addCmd(undoRedo); + } + + // -- mise a jour des parametres de la map --// + refreshMyProperties(); + + return true; } - public double getRotation() { - if (propGraphique.get(ROTATION) instanceof Integer) propGraphique.put(ROTATION, new Double((Integer) propGraphique - .get(ROTATION))); - return (Double) propGraphique.get(ROTATION); + public void setPropGraphique(Map<String, Object> propGraphique) { + this.propGraphique = propGraphique; + } public void setRotation(double rotation) { propGraphique.put(ROTATION, rotation); } - public Font getFormeFont() { - return (Font) propGraphique.get(FONT); + public void setScene(EbliScene _scene) { + this.scene_ = _scene; + } + public void setTraceLigneModel(TraceLigneModel _l) { + propGraphique.put(LINEMODEL, _l); } - public void setFormeFont(Font newFont) { - propGraphique.put(FONT, newFont); + public void setUseBorder(boolean _useBorder) { + useBorder_ = _useBorder; } + } \ No newline at end of file Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidgetBordure.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidgetBordure.java 2008-09-11 22:12:30 UTC (rev 3909) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidgetBordure.java 2008-09-11 22:14:11 UTC (rev 3910) @@ -17,7 +17,6 @@ * classe qui genere une bordure pour contenir une widget classique. * * @author genesis - * */ public class EbliWidgetBordure extends EbliWidget { @@ -27,58 +26,65 @@ EbliWidget intern_; /** - * Retourne le controlleur de son objet contenu. Le controlleur de la bordure - * n'a pas besoin d'etre recup\xE9r\xE9. + * Retourne le controlleur de son objet contenu. Le controlleur de la bordure n'a pas besoin d'etre recup\xE9r\xE9. */ @Override - public EbliWidgetController getController_() { - return getIntern().getController_(); + public EbliWidgetController getController() { + return getIntern().getController(); } public float epaisseurHisto_ = 0; + private Insets insets_; + /** * constructeur qui gere un controller uniquement pour les actions. * * @param scene */ public EbliWidgetBordure(EbliWidget _intern) { - this(_intern, true, true); - + this(_intern, true, true); } + @Override + public boolean isInEditMode() { + return intern_.isInEditMode_; + } + public EbliWidgetBordure(EbliWidget _intern, boolean canMove, boolean canResize) { super(_intern.getEbliScene(), false); - + intern_ = _intern; - - //-- mise a jour du layout - setLayout(new OverlayLayoutGap(createInset((int) getTraceLigneModel().getEpaisseur()))); - - // -- ajout du child --// + + insets_ = createInset((int) getTraceLigneModel().getEpaisseur()); + setLayout(new OverlayLayoutGap(insets_)); + + // -- ajout du child --// addChild(intern_); - - // --ajout du controller specifique au bordure --// + + // --ajout du controller specifique au bordure --// this.setController_(new EbliWidgetControllerActionOnly(this, canMove, canResize)); } - - + public Insets createInset(int epaisseur) { return new Insets(epaisseur, epaisseur, epaisseur, epaisseur); } - -protected void paintWidget() { + protected void paintWidget() { + // -- mise a jour de la fonte que si il y a eu une modification --// Graphics2D g = getGraphics(); Rectangle rec = getClientArea(); - + if (epaisseurHisto_ != getTraceLigneModel().getEpaisseur()) { - setLayout(new OverlayLayoutGap(createInset((int) getTraceLigneModel().getEpaisseur()))); + insets_.bottom = (int) getTraceLigneModel().getEpaisseur(); + insets_.top = insets_.bottom; + insets_.left = insets_.bottom; + insets_.right = insets_.bottom; Rectangle newBounds = getBounds(); - newBounds.height += (getTraceLigneModel().getEpaisseur() - epaisseurHisto_) * 2; + newBounds.height += (getTraceLigneModel().getEpaisseur() - epaisseurHisto_) * 2; newBounds.width += (getTraceLigneModel().getEpaisseur() - epaisseurHisto_) * 2; setPreferredBounds(newBounds); } @@ -88,47 +94,44 @@ g.translate(rec.x, rec.y); // la ligne - + TraceLigne l = new TraceLigne(getTraceLigneModel()); - + l.setCouleur(getColorContour()); l.dessineRectangle(g, (int) (l.getEpaisseur() / 2), (int) (l.getEpaisseur() / 2), (int) (rec.width - l .getEpaisseur()), (int) (rec.height - l.getEpaisseur())/* , rec.width */); - + g.translate(-rec.x, -rec.y); - + epaisseurHisto_ = getTraceLigneModel().getEpaisseur(); } /** - * surcharge des methodes getProperty pour recuperer les proprietes graphiques - * et les dipatcher a son conteneur + * surcharge des methodes getProperty pour recuperer les proprietes graphiques et les dipatcher a son conteneur */ public Object getProperty(String _key) { - // -- la bordure ne gere que tracemodel et couleur contour, le reste est + // -- la bordure ne gere que tracemodel et couleur contour, le reste est // dispatch\xE9 a son conteneur --// if (_key.equals(ROTATION)) { - double radian = intern_.getRotation(); + double radian = intern_.getRotation(); return Integer.valueOf((int) (radian * 180 / Math.PI)); - } - else if (_key.equals(FONT)) { + } else if (_key.equals(FONT)) { return intern_.propGraphique.get(_key); } else if (_key.equals(COLORFOND)) { return intern_.propGraphique.get(_key); - } - else - return propGraphique.get(_key); + } else return propGraphique.get(_key); } -/** - * Methode directement appelee apres modification des parametres renvoye par - * le getproperty. Ajoute les anciens parametres dans la commande undo/redo. + /** + * Methode directement appelee apres modification des parametres renvoye par le getproperty. Ajoute les anciens + * parametres dans la commande undo/redo. */ public boolean setProperty(String _key, Object prop) { + if (_key.equals(FONT) || _key.equals(COLORFOND)) { return intern_.setProperty(_key, prop); } // --cas particulier si il s agit du tracelignemodel: il faut mettre a jour // l ancien lignemodel --// @@ -149,21 +152,19 @@ // -- ajout de la widget en question ainsi que la oldpropertie --// undoRedo.addWidget(this); - // --mise a jout de la map de proprietes --// if (_key.equals(LINEMODEL) || _key.equals(COLORCONTOUR)) { undoRedo.addOldPropertie(this.duplicateGraphicalProperties()); propGraphique.put(_key, prop); - // -- ajout de la nouvelle propertie --// + // -- ajout de la nouvelle propertie --// undoRedo.addNewPropertie(propGraphique); } else { undoRedo.addOldPropertie(intern_.duplicateGraphicalProperties()); intern_.propGraphique.put(_key, prop); - // -- ajout de la nouvelle propertie --// + // -- ajout de la nouvelle propertie --// undoRedo.addNewPropertie(intern_.propGraphique); } - // -- enregistrement de la commande undo/redo --// if (getEbliScene().getCmdMng() != null) { @@ -177,15 +178,14 @@ } /** - * surcharge des getter et setter graphical properties pour rediriger les - * infos vers les widgets contenu + * surcharge des getter et setter graphical properties pour rediriger les infos vers les widgets contenu */ public Map<String, Object> getPropGraphique() { - + Map<String, Object> mapMeltingPot = new HashMap<String, Object>(); mapMeltingPot.put(COLORCONTOUR, getColorContour()); mapMeltingPot.put(LINEMODEL, getTraceLigneModel()); - + // -- les autres valeurs conernent le contenu --// mapMeltingPot.put(ROTATION, intern_.getRotation()); mapMeltingPot.put(FONT, intern_.getFormeFont()); @@ -194,22 +194,20 @@ return mapMeltingPot; } - /** - * surcharge des getter et setter graphical properties pour rediriger les - * infos vers les widgets contenu + * surcharge des getter et setter graphical properties pour rediriger les infos vers les widgets contenu */ public void setPropGraphique(Map<String, Object> propGraphique) { this.propGraphique.put(COLORCONTOUR, propGraphique.get(COLORCONTOUR)); this.propGraphique.put(LINEMODEL, propGraphique.get(LINEMODEL)); - - + // -- on redirige les proprietes font,couleur de fond et rotation --// this.intern_.setFormeFont((Font) propGraphique.get(FONT)); this.intern_.setColorFond((Color) propGraphique.get(COLORFOND)); this.intern_.setRotation((Double) propGraphique.get(ROTATION)); - + } + public EbliWidget getIntern() { return intern_; } Added: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidgetEditModeListener.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidgetEditModeListener.java (rev 0) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidgetEditModeListener.java 2008-09-11 22:14:11 UTC (rev 3910) @@ -0,0 +1,20 @@ +/** + * Licence GPL + * Copyright Genesis + */ +package org.fudaa.ebli.visuallibrary; + +import org.netbeans.api.visual.widget.Widget; + +/** + * Un Listener pour le mode edition + * @author deniger + * + */ +public interface EbliWidgetEditModeListener { + + + void editStart(Widget w); + void editStop(Widget w); + +} Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidgetSynchroniser.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidgetSynchroniser.java 2008-09-11 22:12:30 UTC (rev 3909) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidgetSynchroniser.java 2008-09-11 22:14:11 UTC (rev 3910) @@ -114,10 +114,10 @@ // son contenant --// if (node.getWidget() instanceof EbliWidgetBordure) { EbliWidgetBordure bordure = (EbliWidgetBordure) node.getWidget(); - poppup = bordure.intern_.getController_().getPopup(); + poppup = bordure.intern_.getController().getPopup(); } else - poppup = node.getWidget().getController_().getPopup(); + poppup = node.getWidget().getController().getPopup(); poppup.show(arbre_, x, y); Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/CommandUndoRedoBloque.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/CommandUndoRedoBloque.java 2008-09-11 22:12:30 UTC (rev 3909) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/CommandUndoRedoBloque.java 2008-09-11 22:14:11 UTC (rev 3910) @@ -26,8 +26,8 @@ public void undo() { for (Iterator<EbliWidget> it = widget_.iterator(); it.hasNext();) { - if (bloque_) it.next().getController_().replaceActionResizeAndMove(); - else it.next().getController_().removeActionResizeAndMove(); + if (bloque_) it.next().getController().replaceActionResizeAndMove(); + else it.next().getController().removeActionResizeAndMove(); } widget_.get(0).getEbliScene().refresh(); @@ -35,8 +35,8 @@ public void redo() { for (Iterator<EbliWidget> it = widget_.iterator(); it.hasNext();) { - if (bloque_) it.next().getController_().removeActionResizeAndMove(); - else it.next().getController_().replaceActionResizeAndMove(); + if (bloque_) it.next().getController().removeActionResizeAndMove(); + else it.next().getController().replaceActionResizeAndMove(); } widget_.get(0).getEbliScene().refresh(); } Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionBloqueOuDebloqueWidget.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionBloqueOuDebloqueWidget.java 2008-09-11 22:12:30 UTC (rev 3909) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionBloqueOuDebloqueWidget.java 2008-09-11 22:14:11 UTC (rev 3910) @@ -68,9 +68,9 @@ // -- bloquage de la widget --// if (bloque_) - currentNode.getWidget().getController_().removeActionResizeAndMove(); + currentNode.getWidget().getController().removeActionResizeAndMove(); else - currentNode.getWidget().getController_().replaceActionResizeAndMove(); + currentNode.getWidget().getController().replaceActionResizeAndMove(); listeWidget.add(currentNode.getWidget()); // -- rafraichissement de la scene --// Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionRetaillageHorizontal.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionRetaillageHorizontal.java 2008-09-11 22:12:30 UTC (rev 3909) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionRetaillageHorizontal.java 2008-09-11 22:14:11 UTC (rev 3910) @@ -59,7 +59,7 @@ // retaillables --// for (Iterator<EbliNode> it = listeNode.iterator(); it.hasNext();) { EbliNode node = it.next(); - if (node.hasWidget() && node.getWidget().getController_().isCanResize()) + if (node.hasWidget() && node.getWidget().getController().isCanResize()) listeNodeAutorises .add(node); } Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionRetaillageVertical.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionRetaillageVertical.java 2008-09-11 22:12:30 UTC (rev 3909) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionRetaillageVertical.java 2008-09-11 22:14:11 UTC (rev 3910) @@ -60,7 +60,7 @@ // retaillables --// for (Iterator<EbliNode> it = listeNode.iterator(); it.hasNext();) { EbliNode node = it.next(); - if (node.hasWidget() && node.getWidget().getController_().isCanResize()) + if (node.hasWidget() && node.getWidget().getController().isCanResize()) listeNodeAutorises .add(node); } Deleted: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetEditCreator.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetEditCreator.java 2008-09-11 22:12:30 UTC (rev 3909) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetEditCreator.java 2008-09-11 22:14:11 UTC (rev 3910) @@ -1,181 +0,0 @@ -package org.fudaa.ebli.visuallibrary.actions; - -import java.awt.BorderLayout; -import java.awt.Dimension; -import java.awt.Window; -import java.awt.event.WindowAdapter; -import java.awt.event.WindowEvent; -import java.util.Iterator; -import java.util.List; - -import javax.swing.Icon; -import javax.swing.JComponent; -import javax.swing.JFrame; -import javax.swing.JMenu; -import javax.swing.JMenuBar; -import javax.swing.JScrollPane; -import javax.swing.JToolBar; -import javax.swing.JTree; - -import org.flexdock.docking.DockingConstants; -import org.flexdock.docking.DockingManager; -import org.flexdock.docking.DockingPort; -import org.flexdock.docking.defaults.DefaultDockingPort; -import org.flexdock.view.View; -import org.fudaa.ebli.calque.BArbreCalque; -import org.fudaa.ebli.calque.ZEbliCalquesPanel; -import org.fudaa.ebli.commun.EbliActionInterface; -import org.fudaa.ebli.commun.EbliComponentFactory; -import org.fudaa.ebli.commun.EbliLib; -import org.fudaa.ebli.courbe.EGFillePanel; -import org.fudaa.ebli.courbe.EGGrapheTreeModel; -import org.fudaa.ebli.ressource.EbliResource; - -/** - * @author deniger - */ -public class EbliWidgetEditCreator { - - public EbliWidgetEditCreator() { - - } - - /** - * Singleton pour configurer par defaut EbliScene - */ - public static final EbliWidgetEditCreator INSTANCE = new EbliWidgetEditCreator(); - - public Window createFrame(ZEbliCalquesPanel pn, String title) { - JFrame frame = new JFrame(title); - - frame.getContentPane().setLayout(new BorderLayout()); - JMenu[] specificMenus = pn.getSpecificMenus(EbliLib.getS("Vue 2D")); - JMenuBar mb = new JMenuBar(); - frame.setJMenuBar(mb); - for (int i = 0; i < specificMenus.length; i++) { - mb.add(specificMenus[i]); - } - JToolBar tb = new JToolBar(); - List actions = pn.getController().getActions(); - for (Iterator iterator = actions.iterator(); iterator.hasNext();) { - EbliActionInterface object = (EbliActionInterface) iterator.next(); - if (object == null) { - tb.addSeparator(); - } else { - tb.add(object.buildToolButton(EbliComponentFactory.INSTANCE)); - } - } - frame.getContentPane().add(tb, BorderLayout.NORTH); - frame.setIconImage(EbliResource.EBLI.getImage("lissage")); - // pn.setPreferredSize(pn.getPreferredSize()); - final DefaultDockingPort globalPort = createDockingPort(); - JComponent centerComponent = createView(pn, EbliResource.EBLI.getToolIcon("lissage"), EbliLib.getS("Vue 2D")); - - DockingManager.dock(centerComponent, (DockingPort) globalPort); - JComponent rightComponent = createView(new JScrollPane(new BArbreCalque(pn.getArbreCalqueModel())), - EbliResource.EBLI.getToolIcon("arbre"), "arbre", true); - DockingManager.dock(rightComponent, centerComponent, DockingConstants.EAST_REGION, 0.75f); - - frame.getContentPane().add(globalPort, BorderLayout.CENTER); - frame.addWindowListener(new WindowAdapter() { - - @Override - public void windowClosed(WindowEvent _e) { - globalPort.clear(); - } - - }); - - // -- cas particulier, on ajoute la legende --// - pn.addCalqueLegend(); - pn.repaint(); - - return frame; - - } - - public Window createFrame(EGFillePanel pn, String title) { - JFrame frame = new JFrame(title); - - frame.getContentPane().setLayout(new BorderLayout()); - frame.setTitle(title); - frame.setIconImage(EbliResource.EBLI.getImage("curves")); - EbliActionInterface[] specificInterfaces = pn.getSpecificActions(); - JMenuBar mb = new JMenuBar(); - frame.setJMenuBar(mb); - JMenu menu = new JMenu("Menu graphe"); - pn.fillSpecificMenu(menu); - - // for (int i = 0; i < specificInterfaces.length; i++) { - // mb.add(new JMenu(specificInterfaces[i])); - // } - mb.add(menu); - - JToolBar tb = new JToolBar(); - - for (int i = 0; i < specificInterfaces.length; i++) { - EbliActionInterface object = specificInterfaces[i]; - if (object == null) { - tb.addSeparator(); - } else { - tb.add(object.buildToolButton(EbliComponentFactory.INSTANCE)); - } - } - frame.getContentPane().add(tb, BorderLayout.NORTH); - pn.setPreferredSize(pn.getPreferredSize()); - final DefaultDockingPort globalPort = createDockingPort(); - JComponent centerComponent = createView(pn, EbliResource.EBLI.getToolIcon("curves"), EbliLib.getS("Courbes")); - DockingManager.dock(centerComponent, (DockingPort) globalPort); - // POUR TOI LA FORCE AVOIR LE SELECTION MODEL A TOI ATTACHER TU DOIS// - JTree tree = new JTree((EGGrapheTreeModel) pn.getGraphe().getModel()); - tree.setSelectionModel(((EGGrapheTreeModel) pn.getGraphe().getModel()).getSelectionModel()); - JComponent rightComponent = createView(new JScrollPane(tree), EbliResource.EBLI.getToolIcon("arbre"), "arbre", true); - DockingManager.dock(rightComponent, centerComponent, DockingConstants.EAST_REGION, 0.75f); - - frame.getContentPane().add(globalPort, BorderLayout.CENTER); - frame.addWindowListener(new WindowAdapter() { - - @Override - public void windowClosed(WindowEvent _e) { - globalPort.clear(); - } - - }); - return frame; - - } - - protected static DefaultDockingPort createDockingPort() { - DefaultDockingPort port = new DefaultDockingPort(); - port.setPreferredSize(new Dimension(400, 400)); - return port; - } - - // protected static JComponent createDockableComponent(String name) { - // JPanel panel = new JPanel(new BorderLayout()); - // panel.setBorder(new LineBorder(Color.BLUE)); - // panel.add(new JLabel("COUCOU " + name)); - // return createView(panel, name, true); - // } - - public static JComponent createView(JComponent jc, Icon ic, String name) { - return createView(jc, ic, name, false); - } - - public static JComponent createView(JComponent jc, Icon ic, String name, boolean dockage) { - View view = new View(name); - view.setIcon(ic); - view.getViewProperties().setDockingEnabled(false); - if (dockage) { - view.addAction(DockingConstants.CLOSE_ACTION); - view.getViewProperties().setDockingEnabled(true); - } - view.setContentPane(jc); - view.setTitle(name, true); - view.setPreferredSize(jc.getPreferredSize()); - // DockingManager.registerDockable(view.getComponent(), name); - - return view; - } - -} Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/calque/CalqueLegendeWidgetAdapter.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/calque/CalqueLegendeWidgetAdapter.java 2008-09-11 22:12:30 UTC (rev 3909) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/calque/CalqueLegendeWidgetAdapter.java 2008-09-11 22:14:11 UTC (rev 3910) @@ -77,8 +77,8 @@ * @param _scene la scene * @return la widfget de la legende. */ - public static EbliWidget createLegendeWidget(EbliWidgetCalqueLegende _widgetLegende, BCalqueLegendePanel _calqueLegende, - EbliScene _scene) { + public static EbliWidget createLegendeWidget(EbliWidgetCalqueLegende _widgetLegende, + BCalqueLegendePanel _calqueLegende, EbliScene _scene) { // --creation de la widget conteneur --// BPalettePlageInterface listeplages = null; @@ -99,6 +99,7 @@ titre.setVerticalAlignment(VerticalAlignment.CENTER); titre.setLabel(((JLabel) c).getText()); titre.setEnabled(true); + titre.setFont(c.getFont()); _widgetLegende.addChild(titre); } @@ -115,10 +116,12 @@ titre.setAlignment(Alignment.CENTER); titre.setVerticalAlignment(VerticalAlignment.CENTER); titre.setLabel(listeplages.getTitre()); + titre.setFont(pal.getFont()); titre.setEnabled(true); _widgetLegende.addChild(titre); LabelWidget sstitre = new LabelWidget(_scene); sstitre.setAlignment(Alignment.CENTER); + titre.setFont(pal.getFont()); sstitre.setVerticalAlignment(VerticalAlignment.CENTER); sstitre.setLabel(listeplages.getSousTitre()); sstitre.setEnabled(true); @@ -131,7 +134,7 @@ FuLog.warning("jlist " + j + ") " + plage.getLegende()); // -- ajout d'une widget plage --// - EbliWidgetPlageTitle lw = new EbliWidgetPlageTitle(_scene, plage, null); + EbliWidgetPlage lw = new EbliWidgetPlage(_scene, plage, null); lw.setUseBorder(false); lw.setEnabled(true); @@ -187,7 +190,7 @@ _widgetLegende.setController_(new EbliWidgetControllerMenuOnly(_widgetLegende, false)); // -- prendre en compte le resize automatique --// - _widgetLegende.oldFont_ = new Font("Helvetica", Font.BOLD, 40); + _widgetLegende.setFormeFont(new Font("Helvetica", Font.PLAIN, 10)); _widgetLegende.repaint(); return _widgetLegende; @@ -228,7 +231,6 @@ */ @Override protected void addLegendToPanel(BCalqueLegendePanel _pnLeg) { - legendePanel_ = _pnLeg; @@ -242,8 +244,6 @@ */ public EbliNode createLegende(Point _location) { - - EbliNodeDefault def = new EbliNodeDefault(); def.setPreferedLocation(_location); // def.setPreferedSize(new Dimension(150, 250)); Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/calque/EbliWidgetCalqueLegende.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/calque/EbliWidgetCalqueLegende.java 2008-09-11 22:12:30 UTC (rev 3909) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/calque/EbliWidgetCalqueLegende.java 2008-09-11 22:14:11 UTC (rev 3910) @@ -19,11 +19,10 @@ import org.netbeans.api.visual.action.ActionFactory; import org.netbeans.api.visual.action.InplaceEditorProvider; import org.netbeans.api.visual.action.WidgetAction; -import org.netbeans.api.visual.action.InplaceEditorProvider.ExpansionDirection; import org.netbeans.api.visual.widget.LabelWidget; import org.netbeans.api.visual.widget.Widget; -import com.memoire.fu.FuLog; +import com.memoire.bu.BuLib; /** * Creation de la classe widget specifique au calque. Permet de gerer le resize via le changement de font @@ -34,12 +33,13 @@ BCalqueLegendePanel legendePanel_; // BArbreCalqueModel modelTree_; boolean maj = true; - Font oldFont_; + // Font oldFont_; + public EbliWidgetCalqueLegende(EbliScene _scene, boolean _controller/* , BArbreCalqueModel model */, BCalqueLegendePanel _legendePanel) { super(_scene, _controller); - oldFont_ = getFormeFont(); + // oldFont_ = getFormeFont(); // -- la legende est un listener des modifs de son calque --// _legendePanel.getCalque().addPropertyChangeListener("paletteCouleur", this); _legendePanel.getCalque().addPropertyChangeListener("paletteTitle", this); @@ -53,7 +53,6 @@ WidgetAction editorAction = ActionFactory.createInplaceEditorAction(this); // -- ajout de l action au label correspondant --// this.getActions().addAction(editorAction); - } /** @@ -73,91 +72,174 @@ return null; } - public EnumSet<org.netbeans.api.visual.action.InplaceEditorProvider.ExpansionDirection> getExpansionDirections( - org.netbeans.api.visual.action.InplaceEditorProvider.EditorController _controller, Widget _widget, - JComponent _editor) { - return null; + @Override + public void setFormeFont(Font _newFont) { + super.setFormeFont(_newFont); + updateFont(_newFont); } - public Rectangle getInitialEditorComponentBounds( - org.netbeans.api.visual.action.InplaceEditorProvider.EditorController _controller, Widget _widget, - JComponent _editor, Rectangle _viewBounds) { - return null; - } + @Override + public boolean setProperty(String _key, Object _prop) { + boolean res = super.setProperty(_key, _prop); + if ("font".equals(_key)) { + Font ft = (Font) _prop; + updateFont(ft); + return true; + } + return res; - public void notifyClosing(org.netbeans.api.visual.action.InplaceEditorProvider.EditorController _controller, - Widget _widget, JComponent _editor, boolean _commit) { - // - // - // reconstructWidget(this, legendePanel_, getEbliScene(), modelTree_); - // this.getEbliScene().refresh(); } - public void notifyOpened(org.netbeans.api.visual.action.InplaceEditorProvider.EditorController _controller, - Widget _widget, JComponent _editor) {} - - protected void notifyRemoved() { - legendePanel_.getCalque().removePropertyChangeListener("paletteCouleur", this); - legendePanel_.getCalque().removePropertyChangeListener("paletteTitle", this); + @Override + protected void paintWidget() { + if (mustUpdateFont_) { + updateFont(getFormeFont()); + } + super.paintWidget(); } - protected void paintWidget() { + boolean mustUpdateFont_ = false; - // -- mise a jour de la fonte que si il y a eu une modification --// - if (oldFont_ != getFormeFont() || maj) { - maj = false; - // -- calcul des max height et width pour resize les composants --// - Rectangle newBounds = resizeMaxLegende(); + private void updateFont(Font ft) { + if (getGraphics() == null) { + mustUpdateFont_ = true; + return; + } + mustUpdateFont_ = false; + boldFont_ = BuLib.deriveFont(ft, Font.BOLD, 0); + // -- calcul des max height et width pour resize les composants --// + FontMetrics fmt = getGraphics().getFontMetrics(ft); + FontMetrics fmtBold = getGraphics().getFontMetrics(boldFont_); + int maxWidth = getMaxWidthLegende(ft); + int maxTitle = maxWidth; + Rectangle newBounds = new Rectangle(maxWidth, fmt.getHeight()); - // -- mise a jour de la widget avec la nouvelle font - List<Widget> listePlage = getChildren(); - for (Iterator<Widget> it = listePlage.iterator(); it.hasNext();) { - Widget widget = it.next(); - // -- test si il s agit d un widget plage --// - if (widget instanceof EbliWidgetPlageTitle) { - EbliWidgetPlageTitle new_widget = (EbliWidgetPlageTitle) widget; - new_widget.getIntern().setFont(getFormeFont()); - new_widget.getIntern().majText(); - FuLog.warning("MA plage: " + new_widget.plage_.getLegende()); + // -- mise a jour de la widget avec la nouvelle font + List<Widget> listePlage = getChildren(); + for (Iterator<Widget> it = listePlage.iterator(); it.hasNext();) { + Widget widget = it.next(); + // -- test si il s agit d un widget plage --// + if (widget instanceof EbliWidgetPlage) { + EbliWidgetPlage new_widget = (EbliWidgetPlage) widget; + new_widget.getIntern().setFont(ft); + new_widget.getIntern().majText(); - // -- mise du nouveau bounds max --// - Rectangle boundsIntern = new_widget.getIntern().getBounds(); - boundsIntern.width = newBounds.width; - boundsIntern.height = (int) (newBounds.height); + // -- mise du nouveau bounds max --// + Rectangle boundsIntern = new_widget.getIntern().getBounds(); + boundsIntern.width = newBounds.width; + boundsIntern.height = (int) (newBounds.height); - new_widget.getIntern().setPreferredBounds(boundsIntern); + new_widget.getIntern().setPreferredBounds(boundsIntern); - // resize pour le logo: forme carr\xE9 - Rectangle boundsLogo = new_widget.getLogo_().getBounds(); - boundsLogo.height = (int) (newBounds.height); - boundsLogo.width = (int) (newBounds.height); - new_widget.getLogo_().setPreferredBounds(boundsLogo); - new_widget.getLogo_().repaint(); + // resize pour le logo: forme carr\xE9 + Rectangle boundsLogo = new_widget.getLogo().getBounds(); + boundsLogo.height = (int) (newBounds.height); + boundsLogo.width = (int) (newBounds.height); + new_widget.getLogo().setPreferredBounds(boundsLogo); + new_widget.getLogo().repaint(); - } else if (widget instanceof LabelWidget) { - LabelWidget new_widget = (LabelWidget) widget; + } else if (widget instanceof LabelWidget && (((LabelWidget) widget).getLabel() != null)) { + LabelWidget lbWidget = (LabelWidget) widget; - new_widget.setFont(getFormeFont()); - Rectangle boundsTitre = new_widget.getBounds(); - boundsTitre.width = newBounds.width; - boundsTitre.height = (int) (newBounds.height); - new_widget.setPreferredBounds(boundsTitre); - } - + lbWidget.setFont(boldFont_); + Rectangle boundsTitre = lbWidget.getBounds(); + boundsTitre.width = fmtBold.stringWidth(lbWidget.getLabel()) + 5; + maxTitle = Math.max(maxTitle, boundsTitre.width); + boundsTitre.height = (int) (fmtBold.getHeight() + 2); + // lbWidget.setPreferredBounds(boundsTitre); } - // Resize de la widget - Rectangle newBoundConteneurs = getParentWidget().getBounds(); - newBoundConteneurs.height... [truncated message content] |
From: <de...@us...> - 2008-09-11 22:12:20
|
Revision: 3909 http://fudaa.svn.sourceforge.net/fudaa/?rev=3909&view=rev Author: deniger Date: 2008-09-11 22:12:30 +0000 (Thu, 11 Sep 2008) Log Message: ----------- librairies inutiles Removed Paths: ------------- branches/Prepro-0.92-SNAPSHOT/ctulu/lib/flexdock-0.5.1.jar branches/Prepro-0.92-SNAPSHOT/ctulu/lib/flexdock-0.5.1.src.jar branches/Prepro-0.92-SNAPSHOT/ctulu/lib/skinlf.jar This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fa...@us...> - 2008-09-11 15:47:15
|
Revision: 3908 http://fudaa.svn.sourceforge.net/fudaa/?rev=3908&view=rev Author: fargeix Date: 2008-09-11 15:47:25 +0000 (Thu, 11 Sep 2008) Log Message: ----------- Mise en conformit?\195?\169 avec une nouvelle version du noyau : les bateaux ne sont rejet?\195?\169s que si leurs dimensions sont strictement sup?\195?\169rieures (et non plus sup?\195?\169rieures ou ?\195?\169gales) ?\195?\160 celles autoris?\195?\169es. Modified Paths: -------------- trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3DataSimulation.java Modified: trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3DataSimulation.java =================================================================== --- trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3DataSimulation.java 2008-09-11 14:34:00 UTC (rev 3907) +++ trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3DataSimulation.java 2008-09-11 15:47:25 UTC (rev 3908) @@ -1640,14 +1640,14 @@ // boolean validiteMethode = true; for (int k = 0; k < this.listeEcluse_.listeEcluses_.size(); k++) { probleme = false; - String descriptifProb = " WARNING: ecluse " + this.listeEcluse_.retournerEcluse(k).nom_ + " largeur de " + String descriptifProb = "Attention: \xE9cluse " + this.listeEcluse_.retournerEcluse(k).nom_ + " largeur de " + (float) this.listeEcluse_.retournerEcluse(k).largeur_; for (int l = 0; l < this.listeBateaux_.listeNavires_.size(); l++) { - if (this.listeBateaux_.retournerNavire(l).largeurMax >= this.listeEcluse_.retournerEcluse(k).largeur_) { + if (this.listeBateaux_.retournerNavire(l).largeurMax > this.listeEcluse_.retournerEcluse(k).largeur_) { // validiteMethode = false; probleme = true; descriptifProb = descriptifProb + getDescCategorie() + this.listeBateaux_.retournerNavire(l).nom - + " ne passe pas(largeur=" + (float) this.listeBateaux_.retournerNavire(l).largeurMax + " M)"; + + " ne passe pas (largeur: " + (float) this.listeBateaux_.retournerNavire(l).largeurMax + " m)"; _t[cpt].setForeground(Color.RED); _t[cpt].setFont(new Font(getDefaultFontName(), Font.ITALIC, 13)); @@ -1673,18 +1673,19 @@ // boolean validiteMethode = true; for (int k = 0; k < this.listeEcluse_.listeEcluses_.size(); k++) { probleme = false; - String descriptifProb = " WARNING: ecluse " + this.listeEcluse_.retournerEcluse(k).nom_ + " longueur de " + String descriptifProb = "Attention: \xE9cluse " + this.listeEcluse_.retournerEcluse(k).nom_ + " longueur de " + (float) this.listeEcluse_.retournerEcluse(k).longueur_; for (int l = 0; l < this.listeBateaux_.listeNavires_.size(); l++) { - if (this.listeBateaux_.retournerNavire(l).longueurMax >= this.listeEcluse_.retournerEcluse(k).longueur_) { + if (this.listeBateaux_.retournerNavire(l).longueurMax > this.listeEcluse_.retournerEcluse(k).longueur_) { // validiteMethode = false; probleme = true; descriptifProb = descriptifProb + getDescCategorie() + this.listeBateaux_.retournerNavire(l).nom - + " ne passe pas(longueur=" + (float) this.listeBateaux_.retournerNavire(l).longueurMax + " M)"; + + " ne passe pas ( longueur:" + (float) this.listeBateaux_.retournerNavire(l).longueurMax + " m)"; _t[cpt].setForeground(Color.RED); _t[cpt].setFont(new Font(getDefaultFontName(), Font.ITALIC, 13)); - _t[cpt++].setText(getStringCategorie() + this.listeBateaux_.retournerNavire(l).nom + " e l'ecluse " + _t[cpt++].setText(getStringCategorie() + this.listeBateaux_.retournerNavire(l).nom + + " a une longueur incompatible avec les dimensions de l'\xE9cluse " + this.listeEcluse_.retournerEcluse(k).nom_); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fa...@us...> - 2008-09-11 14:33:53
|
Revision: 3907 http://fudaa.svn.sourceforge.net/fudaa/?rev=3907&view=rev Author: fargeix Date: 2008-09-11 14:34:00 +0000 (Thu, 11 Sep 2008) Log Message: ----------- Diverses modifications du code Modified Paths: -------------- trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3AlgorithmeDureesParcours.java trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3DataSimulation.java trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3FrameSaisieLoiJournaliere.java trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3PanelSaisieBief.java trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3PanelSaisieEcluse.java Added Paths: ----------- trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/LoiJournaliereTableModel.java Added: trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/LoiJournaliereTableModel.java =================================================================== --- trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/LoiJournaliereTableModel.java (rev 0) +++ trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/LoiJournaliereTableModel.java 2008-09-11 14:34:00 UTC (rev 3907) @@ -0,0 +1,159 @@ +package org.fudaa.fudaa.sinavi3; + +import java.util.ArrayList; + +import javax.swing.table.AbstractTableModel; + +import com.memoire.bu.BuDialogError; + +public class LoiJournaliereTableModel extends AbstractTableModel{ + + + + /** + * Donn\xE9es de la loi journaliere + */ + ArrayList loiJournaliere_ = new ArrayList(); + + + CoupleLoiDeterministe nouveauCouple=null; + + private Sinavi3DataSimulation donnees_; + + + public LoiJournaliereTableModel(ArrayList _loiJournaliere, Sinavi3DataSimulation _donnee){ + loiJournaliere_=_loiJournaliere; + donnees_=_donnee; + } + + + public int getColumnCount() { + // TODO Auto-generated method stub + return 1; + } + + public int getRowCount() { + // TODO Auto-generated method stub + return loiJournaliere_.size()+1; + } + + public Object getValueAt(int rowIndex, int columnIndex) { + + if(rowIndex==getRowCount()-1) + { + if(nouveauCouple!=null) + { + if(columnIndex==0 && nouveauCouple.temps_!=-1) + return ""+nouveauCouple.temps_; + } + return ""; + } + + if(columnIndex==0) + return ""+((CoupleLoiDeterministe) this.loiJournaliere_.get(rowIndex)).temps_; + return ""; + + } + + + public String getColumnName(int column) { + if(column==0) + return "Horaire"; + return ""; + } + + + public boolean isCellEditable(int rowIndex, int columnIndex) { + // TODO Auto-generated method stub + return true; + } + + + public void setValueAt(Object aValue, int rowIndex, int columnIndex) { + + if(aValue=="") {loiJournaliere_.remove(this.loiJournaliere_.get(rowIndex)); this.fireTableStructureChanged(); return;} + double temps=-1; + + try { + if(columnIndex==0) + temps=Double.parseDouble((String)aValue); + + } catch (NumberFormatException e) { + new BuDialogError(donnees_.application_.getApp(), Sinavi3Implementation.isSinavi_, + "La saisie n'est pas correcte.").activate(); + return; + } + + + if(columnIndex==0){ + //-- TEST HORAIRE --// + + if(temps>24 || temps<0){ + new BuDialogError(donnees_.application_.getApp(), Sinavi3Implementation.isSinavi_, + "L'horaire doit \xEAtre compris entre 0 et 24 heures.").activate(); + return; + } + + //-- TEST FORMATTAGE HORAIRE --// + String contenu=(String)aValue; + + if(contenu.lastIndexOf(".")!=-1){ + String unite=contenu.substring(contenu.lastIndexOf(".")+1, contenu.length()); + if(unite.length()>2){ + new BuDialogError(donnees_.application_.getApp(), Sinavi3Implementation.isSinavi_, + "Il doit y avoir deux chiffres au maximum apr\xE8s la virgule.").activate(); + + return; + } + + + float valUnite=Float.parseFloat(unite); + if(valUnite>=60){ + new BuDialogError(donnees_.application_.getApp(), Sinavi3Implementation.isSinavi_, + "Les unit\xE9s doivent \xEAtre inf\xE9rieures \xE0 60 minutes.").activate(); + return; + } + } + }// fin test formattage horaire + + //-- MODE AJOUT --// + if(rowIndex==loiJournaliere_.size()) + { + //-- ajout de l'\xE9l\xE9ment --// + if(nouveauCouple==null){ + nouveauCouple=new CoupleLoiDeterministe(-1,-1); + } + + + //-- ajout de la valeur selon la colonne --// + if(columnIndex==0) + nouveauCouple.temps_=temps; + + //-- test si le nouveau couple est complet, on l'ajoute \xE0 la liste des couples --// + if(nouveauCouple.temps_!=-1){ + loiJournaliere_.add(new CoupleLoiDeterministe(0, nouveauCouple.temps_)); + //reinitialisation du couple + nouveauCouple=null; + //la structure du butable doit changer: il faut le faire recalculer car il a une ligne de plus + this.fireTableStructureChanged(); + } + + } + else + { + //-- MODE MODIFICATION --// + CoupleLoiDeterministe coupleAmodifier= (CoupleLoiDeterministe) this.loiJournaliere_.get(rowIndex); + + if(columnIndex==0) + coupleAmodifier.temps_=temps; + + //mise a jour du contenu de la cellule + this.fireTableCellUpdated(rowIndex, columnIndex); + } + + + } + + + +} Modified: trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3AlgorithmeDureesParcours.java =================================================================== --- trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3AlgorithmeDureesParcours.java 2008-09-10 18:55:59 UTC (rev 3906) +++ trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3AlgorithmeDureesParcours.java 2008-09-11 14:34:00 UTC (rev 3907) @@ -44,8 +44,8 @@ resultats.DureeParcoursNavire[i] = new SParametresResultatsDureeParcoursNavires(); // initialisation des dur\xE9es des heures entrees des elements dans les 2 sens resultats.DureeParcoursNavire[i].heure1Entree1Navire = -1; + resultats.DureeParcoursNavire[i].heure1Entree2Navire = -1; resultats.DureeParcoursNavire[i].heure2Entree1Navire = -1; - resultats.DureeParcoursNavire[i].heure1Entree2Navire = -1; resultats.DureeParcoursNavire[i].heure2Entree2Navire = -1; resultats.DureeParcoursNavire[i].categorieAssociee = donnees_.listeResultatsSimu_.listeEvenements[i].categorie; @@ -60,22 +60,25 @@ // si l'\xE9l\xE9ment du trajet est equivalent a celui entr\xE9 en parametre 1 - //-- recuperation de l'entree du premier element --// + //-- recuperation des heures d'entr\xE9e/sortie du premier element --// resultats.DureeParcoursNavire[i].heure1Entree1Navire = donnees_.listeResultatsSimu_.listeEvenements[i].tableauTrajet[k].heureEntree; + resultats.DureeParcoursNavire[i].heure1Entree2Navire = donnees_.listeResultatsSimu_.listeEvenements[i].tableauTrajet[k].heureSortie; if (donnees_.listeResultatsSimu_.listeEvenements[i].tableauTrajet[k].indiceElement == indiceElement2 && donnees_.listeResultatsSimu_.listeEvenements[i].tableauTrajet[k].typeElement == typeElement2) { - //-- recuperation de la sortie du deuxieme element --// - resultats.DureeParcoursNavire[i].heure1Entree2Navire = donnees_.listeResultatsSimu_.listeEvenements[i].tableauTrajet[k].heureSortie; + //-- recuperation des heures d'entr\xE9e/sortie du deuxieme element --// + resultats.DureeParcoursNavire[i].heure2Entree1Navire = donnees_.listeResultatsSimu_.listeEvenements[i].tableauTrajet[k].heureEntree; + resultats.DureeParcoursNavire[i].heure2Entree2Navire = donnees_.listeResultatsSimu_.listeEvenements[i].tableauTrajet[k].heureSortie; } }// fin du if si l'\xE9l\xE9ment du trajet est egal a celui entree en parametre 1 de l utilisateur else if (donnees_.listeResultatsSimu_.listeEvenements[i].tableauTrajet[k].indiceElement == indiceElement2 && donnees_.listeResultatsSimu_.listeEvenements[i].tableauTrajet[k].typeElement == typeElement2) { - //-- recuperation de la sortie du deuxieme element --// - resultats.DureeParcoursNavire[i].heure1Entree2Navire = donnees_.listeResultatsSimu_.listeEvenements[i].tableauTrajet[k].heureSortie; + //-- recuperation des heures d'entr\xE9e/sortie du deuxieme element --// + resultats.DureeParcoursNavire[i].heure2Entree1Navire = donnees_.listeResultatsSimu_.listeEvenements[i].tableauTrajet[k].heureEntree; + resultats.DureeParcoursNavire[i].heure2Entree2Navire = donnees_.listeResultatsSimu_.listeEvenements[i].tableauTrajet[k].heureSortie; @@ -114,11 +117,10 @@ // cas normal: type ou element differents - if (resultats.DureeParcoursNavire[k].heure1Entree2Navire!=-1 && resultats.DureeParcoursNavire[k].heure1Entree1Navire!=-1) { + if (resultats.DureeParcoursNavire[k].heure1Entree1Navire!=-1 && resultats.DureeParcoursNavire[k].heure1Entree2Navire!=-1 && resultats.DureeParcoursNavire[k].heure2Entree1Navire!=-1 && resultats.DureeParcoursNavire[k].heure2Entree2Navire!=1) { // sens entrant: // on prend els horaires entrees 1 des element 1 et 2 - duree = Math - .abs((float) (resultats.DureeParcoursNavire[k].heure1Entree2Navire - resultats.DureeParcoursNavire[k].heure1Entree1Navire)); + duree = Math.max((float) (resultats.DureeParcoursNavire[k].heure2Entree2Navire - resultats.DureeParcoursNavire[k].heure1Entree1Navire), (float) (resultats.DureeParcoursNavire[k].heure1Entree2Navire - resultats.DureeParcoursNavire[k].heure2Entree1Navire)); // exploitation de la donnee duree recuperee pour la categorie Modified: trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3DataSimulation.java =================================================================== --- trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3DataSimulation.java 2008-09-10 18:55:59 UTC (rev 3906) +++ trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3DataSimulation.java 2008-09-11 14:34:00 UTC (rev 3907) @@ -1643,7 +1643,7 @@ String descriptifProb = " WARNING: ecluse " + this.listeEcluse_.retournerEcluse(k).nom_ + " largeur de " + (float) this.listeEcluse_.retournerEcluse(k).largeur_; for (int l = 0; l < this.listeBateaux_.listeNavires_.size(); l++) { - if (this.listeBateaux_.retournerNavire(l).largeurMax > this.listeEcluse_.retournerEcluse(k).largeur_) { + if (this.listeBateaux_.retournerNavire(l).largeurMax >= this.listeEcluse_.retournerEcluse(k).largeur_) { // validiteMethode = false; probleme = true; descriptifProb = descriptifProb + getDescCategorie() + this.listeBateaux_.retournerNavire(l).nom @@ -1676,7 +1676,7 @@ String descriptifProb = " WARNING: ecluse " + this.listeEcluse_.retournerEcluse(k).nom_ + " longueur de " + (float) this.listeEcluse_.retournerEcluse(k).longueur_; for (int l = 0; l < this.listeBateaux_.listeNavires_.size(); l++) { - if (this.listeBateaux_.retournerNavire(l).longueurMax > this.listeEcluse_.retournerEcluse(k).longueur_) { + if (this.listeBateaux_.retournerNavire(l).longueurMax >= this.listeEcluse_.retournerEcluse(k).longueur_) { // validiteMethode = false; probleme = true; descriptifProb = descriptifProb + getDescCategorie() + this.listeBateaux_.retournerNavire(l).nom Modified: trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3FrameSaisieLoiJournaliere.java =================================================================== --- trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3FrameSaisieLoiJournaliere.java 2008-09-10 18:55:59 UTC (rev 3906) +++ trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3FrameSaisieLoiJournaliere.java 2008-09-11 14:34:00 UTC (rev 3907) @@ -27,6 +27,8 @@ import javax.swing.JTable; import javax.swing.border.Border; +import org.jdesktop.swingx.ScrollPaneSelector; + import com.memoire.bu.BuDialogConfirmation; import com.memoire.bu.BuDialogError; import com.memoire.bu.BuDialogMessage; @@ -78,6 +80,8 @@ ArrayList loiJournaliere_ = new ArrayList(); Sinavi3DataSimulation donnees_; + + LoiJournaliereTableModel modeleTableau_; /** * composant destin\xE9 a recevoir el focus desla destruction de la fenetre @@ -89,14 +93,19 @@ * * @param d donn\xE9es de la simulation */ - Sinavi3FrameSaisieLoiJournaliere(final Sinavi3DataSimulation _donnees, final ArrayList _loiDeterministe, final Component c) { + Sinavi3FrameSaisieLoiJournaliere(final Sinavi3DataSimulation _donnees, final ArrayList _loiJournaliere, final Component c) { super("", true, true, true, true); // recuperation des donn\xE9es de la simulation - loiJournaliere_ = _loiDeterministe; + loiJournaliere_ = _loiJournaliere; composant_ = c; donnees_ = _donnees; global.setLayout(new BorderLayout()); - + + //-- creation du tableau --// + modeleTableau_=new LoiJournaliereTableModel(loiJournaliere_,donnees_); + + global.setLayout(new BorderLayout()); + // remplissage des comboBox en onction des donn\xE9es this.remplissage(); // afichage des elements dans le tableau. @@ -143,7 +152,8 @@ getContentPane().setLayout(new BorderLayout()); final JScrollPane ascenceur = new JScrollPane(global); - + // utilisation de swingx + ScrollPaneSelector.installScrollPaneSelector( ascenceur); getContentPane().add(ascenceur, BorderLayout.CENTER); final JPanel controlPanel = new JPanel(); @@ -169,38 +179,23 @@ */ void affichage() { - final Object[][] ndata = new Object[300][1]; + //-- CREATION DU TABLEAU ET DU MODELE + this.tableau = new JTable(modeleTableau_) ; + + tableau.setBorder(this.borduretab); - System.out.println("nb couples ***: " + loiJournaliere_.size()); + tableau.revalidate(); + // this.removeAll(); + this.global.add(/* ascenceur */tableau.getTableHeader(), BorderLayout.PAGE_START); + this.global.add(tableau, BorderLayout.CENTER); - // affichage par defaut des dernieres couples saisis: - for (int i = 0; i < this.loiJournaliere_.size(); i++) { + final JPanel controlePanel = new JPanel(); + controlePanel.add(validation); - // ndata[i][0]=""+((CoupleLoiDeterministe)this.loiDeterministe_.get(i)).jour_; - ndata[i][0] = "" + (float) ((CoupleLoiDeterministe) this.loiJournaliere_.get(i)).temps_; + global.add(controlePanel, BorderLayout.SOUTH); + this.revalidate(); + this.updateUI(); - } - - this.tableau = new JTable(ndata, this.titreColonnes) { - /* - * public boolean isCellEditable(int row,int col ){ return false; } - */ - }; - - tableau.setBorder(this.borduretab); - - tableau.revalidate(); - // this.removeAll(); - this.global.add(/* ascenceur */tableau.getTableHeader(), BorderLayout.PAGE_START); - this.global.add(tableau, BorderLayout.CENTER); - - final JPanel controlePanel = new JPanel(); - controlePanel.add(validation); - - global.add(controlePanel, BorderLayout.SOUTH); - this.revalidate(); - this.updateUI(); - } /** Modified: trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3PanelSaisieBief.java =================================================================== --- trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3PanelSaisieBief.java 2008-09-10 18:55:59 UTC (rev 3906) +++ trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3PanelSaisieBief.java 2008-09-11 14:34:00 UTC (rev 3907) @@ -149,12 +149,14 @@ frequenceMoyenne_.setEnabled(true); frequenceMoyenne2_.setEnabled(true); loiProbaFrequence_.setEnabled(true); + loiProbaDuree_.setEnabled(true); } else if (choixLoi == 1) { // cas 1: loi deterministe frequenceMoyenne_.setEnabled(false); frequenceMoyenne2_.setEnabled(false); loiProbaFrequence_.setEnabled(false); + loiProbaDuree_.setEnabled(false); // donnees_.application_.addInternalFrame(new // SiporFrameSaisieLoiDeterministe(donnees_,loiDeterministe_,dureeIndispo_)); @@ -191,6 +193,7 @@ frequenceMoyenne_.setEnabled(false); loiProbaFrequence_.setEnabled(false); frequenceMoyenne2_.setEnabled(false); + loiProbaDuree_.setEnabled(false); // lancement de la frame de saisie des creneaux de la loi journaliere // donnees_.application_.addInternalFrame(new // SiporFrameSaisieLoiJournaliere(donnees_,loiDeterministe_,dureeIndispo_)); @@ -330,18 +333,17 @@ final JPanel p21 = new JPanel(); - p21.add(new JLabel("Dur\xE9e:")); + p21.add(new JLabel("Dur\xE9e moyenne:")); p21.add(this.dureeIndispo_); p21.add(new JLabel("h.min")); p21.setBorder(Sinavi3Bordures.bordnormal_); dureeIndispo.add(p21); - /* bloc supprim\xE9 par fargeix, la dur\xE9e d'insisponibilit\xE9 \xE9tant maintenant fixe - * final JPanel p23 = new JPanel(); - * p23.add(new JLabel("Ordre loi d'Erlang de la dur\xE9e: ")); - * p23.add(this.loiProbaDuree_); - * p23.setBorder(Sinavi3Bordures.bordnormal_); - * dureeIndispo.add(p23);*/ + final JPanel p23 = new JPanel(); + p23.add(new JLabel("Ordre loi d'Erlang de la dur\xE9e: ")); + p23.add(this.loiProbaDuree_); + p23.setBorder(Sinavi3Bordures.bordnormal_); + dureeIndispo.add(p23); //creneaux Modified: trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3PanelSaisieEcluse.java =================================================================== --- trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3PanelSaisieEcluse.java 2008-09-10 18:55:59 UTC (rev 3906) +++ trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3PanelSaisieEcluse.java 2008-09-11 14:34:00 UTC (rev 3907) @@ -98,7 +98,7 @@ * Indice de l ecluse a modifier dans le cas ou l on est en mode modification */ int ECLUSE_A_MODIFIER_; - + /** * Constructeur du panel de saisie des ecluses * @@ -180,13 +180,14 @@ frequenceMoyenne_.setEnabled(true); frequenceMoyenne2_.setEnabled(true); loiProbaFrequence_.setEnabled(true); + loiProbaDuree_.setEnabled(true); } else if (choixLoi == 1) { // cas 1: loi deterministe frequenceMoyenne_.setEnabled(false); frequenceMoyenne2_.setEnabled(false); loiProbaFrequence_.setEnabled(false); - + loiProbaDuree_.setEnabled(false); if (fenetreLoideter_ == null) { FuLog.debug("interface nulle"); @@ -221,6 +222,7 @@ frequenceMoyenne_.setEnabled(false); frequenceMoyenne2_.setEnabled(false); loiProbaFrequence_.setEnabled(false); + loiProbaDuree_.setEnabled(false); // lancement de la frame de saisie des creneaux de la loi journaliere // donnees_.application_.addInternalFrame(new @@ -404,18 +406,17 @@ final JPanel p21 = new JPanel(); - p21.add(new JLabel("Dur\xE9e:")); + p21.add(new JLabel("Dur\xE9e moyenne:")); p21.add(this.dureeIndispo_); p21.add(new JLabel("h.min")); p21.setBorder(Sinavi3Bordures.bordnormal_); dureeIndispo.add(p21); - /* bloc supprim\xE9 par fargeix, la dur\xE9e d'insisponibilit\xE9 \xE9tant maintenant fixe - * final JPanel p23 = new JPanel(); - * p23.add(new JLabel("Ordre loi d'Erlang de la dur\xE9e:")); - * p23.add(this.loiProbaDuree_); - * p23.setBorder(Sinavi3Bordures.bordnormal_); - * dureeIndispo.add(p23);*/ + final JPanel p23 = new JPanel(); + p23.add(new JLabel("Ordre loi d'Erlang de la dur\xE9e:")); + p23.add(this.loiProbaDuree_); + p23.setBorder(Sinavi3Bordures.bordnormal_); + dureeIndispo.add(p23); //creneaux This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <had...@us...> - 2008-09-10 18:55:52
|
Revision: 3906 http://fudaa.svn.sourceforge.net/fudaa/?rev=3906&view=rev Author: hadouxad Date: 2008-09-10 18:55:59 +0000 (Wed, 10 Sep 2008) Log Message: ----------- GRAPHES Wizard graphes temporels OK - Lors Creation des graphe temporels du calque: cela utilise la source du visupanel et non plsu l unique source du projet. - POssibilit?\195?\169 d ajouter les courbes dans les graphes widget deja existant - Possibilit?\195?\169 de cr?\195?\169er un nouveau graphe - fonctionne pour les sondes et liste de points Wizard graphes profils spatiaux OK, fusion marche moyen... - panel 1: choix des isolignes, ne peut pas avancer tant qu il n y a rien de bon de choisi - panel 2 Choix des pas de tems et variables - panel 3 : choix creation ou graphes profils existant, on ne peut avancer tant qu il n y a rien de choisi (graphe existant a jout?\195?\169 ou cocher la case creation)) Fusion de graphes OK moyen (cf listing bugs): - action popup du widget "Fusion avec un autre graphe" - des l appui du bouton sur la popup de la widget selectionne: - ouverture d un menu qui propose la liste des graphes possible a fusionner ensemble (profils spatiaux et temporels s?\195?\169par?\195?\169s) - a la fin suppression de la widget choisie dans le panel. - recupere les variables des 2 graphes et les merge egalement - Fonctionne OK poru les profils spatiaux Modified Paths: -------------- branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/meshviewer/layer/MvNodeLayer.java branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/meshviewer/profile/MvProfileBuilder.java branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/meshviewer/profile/MvProfileBuilderFromLine.java branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/meshviewer/profile/MvProfileBuilderFromTree.java branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/sig/layer/FSigVisuPanel.java branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/common/tr_en.fr_txt branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrIsoLayerDefault.java branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostActionAddPointFromWidgetCalque.java branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostCourbeAddPointsAction.java branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostCourbeBuilder.java branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostCourbeModel.java branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostCourbeTreeModel.java branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostLayoutFille.java branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostLayoutPanelController.java 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 branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostWizardCourbeTemporelle.java Added Paths: ----------- branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostActionFusionGraphes.java branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostProfileAction.java branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostWizardProfilSpatial.java Modified: branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/meshviewer/layer/MvNodeLayer.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/meshviewer/layer/MvNodeLayer.java 2008-09-10 18:54:20 UTC (rev 3905) +++ branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/meshviewer/layer/MvNodeLayer.java 2008-09-10 18:55:59 UTC (rev 3906) @@ -11,31 +11,27 @@ import java.awt.Component; import java.awt.Graphics; -import com.vividsolutions.jts.algorithm.SIRtreePointInRing; -import com.vividsolutions.jts.geom.Coordinate; -import com.vividsolutions.jts.geom.LinearRing; - -import com.memoire.fu.Fu; -import com.memoire.fu.FuLog; - import org.fudaa.ctulu.CtuluListSelection; import org.fudaa.ctulu.CtuluRange; import org.fudaa.ctulu.gis.GISLib; - import org.fudaa.dodico.ef.EfGridInterface; import org.fudaa.dodico.ef.operation.EfIndexVisitorHashSetNode; import org.fudaa.dodico.ef.operation.EfIndexVisitorNearestNode; - import org.fudaa.ebli.calque.ZCalquePoint; import org.fudaa.ebli.find.EbliFindActionInterface; import org.fudaa.ebli.find.EbliFindExpressionContainerInterface; import org.fudaa.ebli.geometrie.GrMorphisme; import org.fudaa.ebli.geometrie.GrPoint; - import org.fudaa.fudaa.meshviewer.MvLayerGrid; import org.fudaa.fudaa.meshviewer.model.MvExpressionSupplierNode; import org.fudaa.fudaa.meshviewer.model.MvNodeModel; +import com.memoire.fu.Fu; +import com.memoire.fu.FuLog; +import com.vividsolutions.jts.algorithm.SIRtreePointInRing; +import com.vividsolutions.jts.geom.Coordinate; +import com.vividsolutions.jts.geom.LinearRing; + /** * @author deniger * @version $Id: MvNodeLayer.java,v 1.27 2007-04-20 16:22:09 deniger Exp $ @@ -123,6 +119,13 @@ return r; } + /** + * Methode qui permet de savoir si un point appartient au layer. + * + * @param _pt + * @param _tolerance + * @return + */ public CtuluListSelection selectionFromIndex(final GrPoint _pt, final int _tolerance) { if (Fu.DEBUG && FuLog.isDebug()) { FuLog.debug("FMV: layer select from index"); Modified: branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/meshviewer/profile/MvProfileBuilder.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/meshviewer/profile/MvProfileBuilder.java 2008-09-10 18:54:20 UTC (rev 3905) +++ branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/meshviewer/profile/MvProfileBuilder.java 2008-09-10 18:55:59 UTC (rev 3906) @@ -43,7 +43,6 @@ import org.fudaa.fudaa.meshviewer.MvResource; import org.fudaa.fudaa.meshviewer.export.MvExportChooseVarAndTime; import org.fudaa.fudaa.sig.FSigLineSingleModel; -import org.fudaa.fudaa.tr.post.TrPostSource; import com.memoire.bu.BuLib; import com.vividsolutions.jts.geom.LineString; @@ -64,17 +63,17 @@ final EfLineIntersectorActivity act_; final MvProfileTarget data_; // BuDesktop dest_; - final ListModel initVar_; + public final ListModel initVar_; GrBoite initZoom_; boolean isZoomChanged_; EfLineIntersectionsResultsMng meshesResults_; - String name_; + public String name_; EfLineIntersectionsResultsMng nodesResults_; final ZEbliCalquesPanel panel_; - LineString selectedLine_; + public LineString selectedLine_; final FudaaCourbeTimeListModel timeModel_; @@ -82,7 +81,7 @@ ZCalqueLigneBrisee tmp_; - final CtuluUI ui_; + public final CtuluUI ui_; public MvProfileBuilder(final MvProfileTarget _data, final CtuluUI _ui, final ZEbliCalquesPanel _panel, EfLineIntersectionsCorrectionTester _tester) { @@ -105,7 +104,13 @@ return res; } - protected void actBuildGroup(final ProgressionInterface _prog, final MvExportChooseVarAndTime _selected) { + /** + * methode qui construit le nouveau graphe de profil spatial. + * + * @param _prog + * @param _selected + */ + public void actBuildGroup(final ProgressionInterface _prog, final MvExportChooseVarAndTime _selected) { int[] time = _selected.getSelectedTimeStepIdx(); final CtuluVariable[] vs = _selected.getSelectedVar(); @@ -237,147 +242,128 @@ * @param _prog * @param _selected */ - public void actAddGroupForExistingModel(final ProgressionInterface _prog, - MvProfileTreeModel _tree, TrPostSource _src) { - - -// int[] time = _selected.getSelectedTimeStepIdx(); - // final CtuluVariable[] vs = _selected.getSelectedVar(); + public MvProfileFillePanel actAddGroupForExistingModel(final ProgressionInterface _prog, + final MvExportChooseVarAndTime _selected) { + int[] time = _selected.getSelectedTimeStepIdx(); + final CtuluVariable[] vs = _selected.getSelectedVar(); - double[] time = _src.getTime().getTimeListModel().getTimesInSec(); - H2dVariableType[] vs = _src.getAllVariablesNonVec(); + final int nbVar = vs == null ? 0 : vs.length; + final boolean isTime = timeModel_ != null; + if (time == null) { + time = new int[] { 0 }; + } + boolean addXYForNode = false; + boolean addXYForMesh = false; + for (int i = initVar_.getSize() - 1; i >= 0; i--) { + if (data_.getData().isElementVar((CtuluVariable) initVar_.getElementAt(i))) { + addXYForMesh = true; + } else { + addXYForNode = true; + } + // les 2 sont a true + if (addXYForMesh && addXYForNode) { + break; + } + } + final int nbTIme = time.length; + final MvProfileTreeModel tree = new MvProfileTreeModel(this.data_, tester_); + if (addXYForNode) { + tree.setNodesResults(getNodeResultsMng(_prog), getNodeResultBuilder(_prog)); + } + if (addXYForMesh) { + tree.setMeshesResults(getMeshResultsMng(_prog), getMeshesResultBuilder(_prog)); - - - - final int nbVar = vs == null ? 0 : vs.length; - final boolean isTime = timeModel_ != null; - - // boolean addXYForNode = false; - // boolean addXYForMesh = false; - // for (int i = initVar_.getSize() - 1; i >= 0; i--) { - // if (data_.getData().isElementVar((CtuluVariable) - // initVar_.getElementAt(i))) { - // addXYForMesh = true; - // } else { - // addXYForNode = true; - // } - // // les 2 sont a true - // if (addXYForMesh && addXYForNode) { - // break; - // } - // } - final int nbTIme = time.length; - final MvProfileTreeModel tree = _tree; - // if (addXYForNode) { - // tree.setNodesResults(getNodeResultsMng(_prog), - // getNodeResultBuilder(_prog)); - // } - // if (addXYForMesh) { - // tree.setMeshesResults(getMeshResultsMng(_prog), - // getMeshesResultBuilder(_prog)); - // - // } - final EGGroup grCoord = new EGGroup(); - final String s = EbliLib.getS("Coordonn\xE9es"); - grCoord.setTitle(s); - final EGAxeVertical yCoordonnees = new EGAxeVertical(); - yCoordonnees.setTitre(s); - yCoordonnees.setUnite("m"); - grCoord.setAxeY(yCoordonnees); - final String sep = " - "; - // if (addXYForNode) { - // final EGCourbeChild courbeChild = new MVProfileCourbeCoordinate(grCoord, - // new MvProfileCoordinatesModel( - // getNodeResultsMng(_prog).getDefaultRes(), true)); - // final EGCourbeChild courbeChild2 = new MVProfileCourbeCoordinate(grCoord, - // new MvProfileCoordinatesModel( - // getNodeResultsMng(_prog).getDefaultRes(), false)); - // if (addXYForNode && addXYForMesh) { - // courbeChild.setTitle(courbeChild.getTitle() + sep + - // MvResource.getS("Noeuds")); - // courbeChild2.setTitle(courbeChild2.getTitle() + sep + - // MvResource.getS("Noeuds")); - // } - // grCoord.addEGComponent(courbeChild); - // - // grCoord.addEGComponent(courbeChild2); - // - // } - // if (addXYForMesh) { - // final EGCourbeChild courbeChild = new MVProfileCourbeCoordinate(grCoord, - // new MvProfileCoordinatesModel( - // getMeshResultsMng(_prog).getDefaultRes(), true)); - // final EGCourbeChild courbeChild2 = new MVProfileCourbeCoordinate(grCoord, - // new MvProfileCoordinatesModel( - // getMeshResultsMng(_prog).getDefaultRes(), false)); - // if (addXYForNode && addXYForMesh) { - // courbeChild.setTitle(courbeChild.getTitle() + sep + - // MvResource.getS("Elements")); - // courbeChild2.setTitle(courbeChild2.getTitle() + sep + - // MvResource.getS("Elements")); - // } - // grCoord.addEGComponent(courbeChild); - // - // grCoord.addEGComponent(courbeChild2); - // - // } - grCoord.setVisible(false); - tree.add(grCoord); - // map permettant de stocker la correspondance var -> groupe - final Map varGroup = new HashMap(); - if (vs != null) { - for (int i = 0; i < nbVar; i++) { - // pas null - final CtuluVariable var = vs[i]; - MvProfileCourbeGroup gri = null; - // dans ce cas, on va g\xE9rer les variables parents: inutile de creer des - // groupe different - // pour des variables de meme type - Color c = null; - boolean mustAddGr = true; - if (var instanceof H2dVariableType) { - H2dVariableType parent = ((H2dVariableType) var).getParentVariable(); - if (parent == null) { - parent = (H2dVariableType) var; - } - c = MvProfileFillePanel.getColorFor(i, parent); - gri = (MvProfileCourbeGroup) varGroup.get(parent); - if (gri == null) { - gri = MvProfileFillePanel.createGroupFor(parent); - varGroup.put(parent, gri); - } else { - mustAddGr = false; - } + } + final EGGroup grCoord = new EGGroup(); + final String s = EbliLib.getS("Coordonn\xE9es"); + grCoord.setTitle(s); + final EGAxeVertical yCoordonnees = new EGAxeVertical(); + yCoordonnees.setTitre(s); + yCoordonnees.setUnite("m"); + grCoord.setAxeY(yCoordonnees); + final String sep = " - "; + if (addXYForNode) { + final EGCourbeChild courbeChild = new MVProfileCourbeCoordinate(grCoord, new MvProfileCoordinatesModel( + getNodeResultsMng(_prog).getDefaultRes(), true)); + final EGCourbeChild courbeChild2 = new MVProfileCourbeCoordinate(grCoord, new MvProfileCoordinatesModel( + getNodeResultsMng(_prog).getDefaultRes(), false)); + if (addXYForNode && addXYForMesh) { + courbeChild.setTitle(courbeChild.getTitle() + sep + MvResource.getS("Noeuds")); + courbeChild2.setTitle(courbeChild2.getTitle() + sep + MvResource.getS("Noeuds")); + } + grCoord.addEGComponent(courbeChild); + + grCoord.addEGComponent(courbeChild2); + + } + if (addXYForMesh) { + final EGCourbeChild courbeChild = new MVProfileCourbeCoordinate(grCoord, new MvProfileCoordinatesModel( + getMeshResultsMng(_prog).getDefaultRes(), true)); + final EGCourbeChild courbeChild2 = new MVProfileCourbeCoordinate(grCoord, new MvProfileCoordinatesModel( + getMeshResultsMng(_prog).getDefaultRes(), false)); + if (addXYForNode && addXYForMesh) { + courbeChild.setTitle(courbeChild.getTitle() + sep + MvResource.getS("Elements")); + courbeChild2.setTitle(courbeChild2.getTitle() + sep + MvResource.getS("Elements")); + } + grCoord.addEGComponent(courbeChild); + + grCoord.addEGComponent(courbeChild2); + + } + grCoord.setVisible(false); + tree.add(grCoord); + // map permettant de stocker la correspondance var -> groupe + final Map varGroup = new HashMap(); + if (vs != null) { + for (int i = 0; i < nbVar; i++) { + // pas null + final CtuluVariable var = vs[i]; + MvProfileCourbeGroup gri = null; + // dans ce cas, on va g\xE9rer les variables parents: inutile de creer des groupe different + // pour des variables de meme type + Color c = null; + boolean mustAddGr = true; + if (var instanceof H2dVariableType) { + H2dVariableType parent = ((H2dVariableType) var).getParentVariable(); + if (parent == null) { + parent = (H2dVariableType) var; } + c = MvProfileFillePanel.getColorFor(i, parent); + gri = (MvProfileCourbeGroup) varGroup.get(parent); if (gri == null) { - gri = MvProfileFillePanel.createGroupFor(var); + gri = MvProfileFillePanel.createGroupFor(parent); + varGroup.put(parent, gri); + } else { + mustAddGr = false; } - if (c == null) { - c = MvProfileFillePanel.getColorFor(i, var); + } + if (gri == null) { + gri = MvProfileFillePanel.createGroupFor(var); + } + if (c == null) { + c = MvProfileFillePanel.getColorFor(i, var); + } + // on doit construire les courbes + for (int t = 0; t < nbTIme; t++) { + final MVProfileCourbeModel model = new MVProfileCourbeModel(var, data_.getData(), time[t], getResBuilder(var, + _prog), _prog); + EGCourbeChild child; + if (isTime) { + model.setTitle(var.toString() + CtuluLibString.ESPACE + timeModel_.getElementAt(time[t])); + child = new MvProfileCourbeTime(gri, model, timeModel_); + } else { + child = new MvProfileCourbe(gri, model); } - // on doit construire les courbes - for (int t = 0; t < nbTIme; t++) { - final MVProfileCourbeModel model = new MVProfileCourbeModel(var, data_.getData(), (int) time[t], - getResBuilder(var, - _prog), _prog); - EGCourbeChild child; - if (isTime) { - model.setTitle(var.toString() + CtuluLibString.ESPACE + time[t]); - child = new MvProfileCourbeTime(gri, model, timeModel_); - } else { - child = new MvProfileCourbe(gri, model); - } - child.setAspectContour(c); - gri.addEGComponent(child); - } - if (mustAddGr) { - tree.add(gri); - } + child.setAspectContour(c); + gri.addEGComponent(child); } + if (mustAddGr) { + tree.add(gri); + } } + } - //data_.profilPanelCreated(new MvProfileFillePanel(tree, ui_), _prog, name_); + return new MvProfileFillePanel(tree, ui_); } @@ -410,14 +396,14 @@ return getNodeResultBuilder(_prog); } - protected EfLineIntersectionsResultsI getDefaultRes(final CtuluVariable _o, final ProgressionInterface _prog) { + public EfLineIntersectionsResultsI getDefaultRes(final CtuluVariable _o, final ProgressionInterface _prog) { if (data_.getData().isElementVar(_o)) { return getMeshResultsMng(_prog).getDefaultRes(); } return getNodeResultsMng(_prog).getDefaultRes(); } - protected void showNoIntersectionFound() { + public void showNoIntersectionFound() { BuLib.invokeLater(new Runnable() { public void run() { Modified: branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/meshviewer/profile/MvProfileBuilderFromLine.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/meshviewer/profile/MvProfileBuilderFromLine.java 2008-09-10 18:54:20 UTC (rev 3905) +++ branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/meshviewer/profile/MvProfileBuilderFromLine.java 2008-09-10 18:55:59 UTC (rev 3906) @@ -7,24 +7,21 @@ */ package org.fudaa.fudaa.meshviewer.profile; -import com.vividsolutions.jts.geom.LineString; - import org.fudaa.ctulu.CtuluTaskDelegate; import org.fudaa.ctulu.CtuluUI; import org.fudaa.ctulu.CtuluVariable; import org.fudaa.ctulu.ProgressionInterface; import org.fudaa.ctulu.gui.CtuluLibSwing; - import org.fudaa.dodico.commun.DodicoLib; import org.fudaa.dodico.ef.operation.EfLineIntersectionsCorrectionTester; import org.fudaa.dodico.ef.operation.EfLineIntersectionsResultsI; - import org.fudaa.ebli.calque.ZEbliCalquesPanel; - import org.fudaa.fudaa.commun.FudaaLib; import org.fudaa.fudaa.meshviewer.MvResource; import org.fudaa.fudaa.meshviewer.export.MvExportChooseVarAndTime; +import com.vividsolutions.jts.geom.LineString; + public class MvProfileBuilderFromLine extends MvProfileBuilder { public MvProfileBuilderFromLine(final MvProfileTarget _data, final CtuluUI _ui, final LineString _line, @@ -63,6 +60,8 @@ actFirstTest(task.getStateReceiver()); } }); + + } } \ No newline at end of file Modified: branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/meshviewer/profile/MvProfileBuilderFromTree.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/meshviewer/profile/MvProfileBuilderFromTree.java 2008-09-10 18:54:20 UTC (rev 3905) +++ branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/meshviewer/profile/MvProfileBuilderFromTree.java 2008-09-10 18:55:59 UTC (rev 3906) @@ -19,17 +19,6 @@ import javax.swing.event.TreeSelectionEvent; import javax.swing.event.TreeSelectionListener; -import com.vividsolutions.jts.geom.LineString; - -import com.memoire.bu.BuBorders; -import com.memoire.bu.BuGlassPaneStop; -import com.memoire.bu.BuHorizontalLayout; -import com.memoire.bu.BuLabel; -import com.memoire.bu.BuPanel; -import com.memoire.bu.BuRadioButton; -import com.memoire.bu.BuScrollPane; -import com.memoire.bu.BuVerticalLayout; - import org.fudaa.ctulu.CtuluLib; import org.fudaa.ctulu.CtuluLibString; import org.fudaa.ctulu.CtuluTaskDelegate; @@ -38,31 +27,59 @@ import org.fudaa.ctulu.ProgressionInterface; import org.fudaa.ctulu.gui.CtuluDialogPanel; import org.fudaa.ctulu.gui.CtuluLibSwing; - import org.fudaa.dodico.ef.operation.EfLineIntersectionsCorrectionTester; import org.fudaa.dodico.ef.operation.EfLineIntersectionsResultsI; - import org.fudaa.ebli.calque.ZCalqueLigneBrisee; import org.fudaa.ebli.calque.ZEbliCalquesPanel; import org.fudaa.ebli.calque.find.CalqueFindCourbeTreeModel; import org.fudaa.ebli.commun.EbliLib; - import org.fudaa.fudaa.commun.FudaaLib; import org.fudaa.fudaa.meshviewer.MvResource; import org.fudaa.fudaa.meshviewer.export.MvExportChooseVarAndTime; +import com.memoire.bu.BuBorders; +import com.memoire.bu.BuGlassPaneStop; +import com.memoire.bu.BuHorizontalLayout; +import com.memoire.bu.BuLabel; +import com.memoire.bu.BuPanel; +import com.memoire.bu.BuRadioButton; +import com.memoire.bu.BuScrollPane; +import com.memoire.bu.BuVerticalLayout; +import com.vividsolutions.jts.geom.LineString; + public class MvProfileBuilderFromTree extends MvProfileBuilder { - final LineString initSelected_; + public final LineString initSelected_; final CalqueFindCourbeTreeModel lineTreeModel_; + ZEbliCalquesPanel calque_; + + /** + * panel qui contient les calques des isolignes + */ + BuPanel panelTreeIsoLignes; + + /** + * panel des pas de temps et variables + */ + MvExportChooseVarAndTime varTime_; + + + public MvExportChooseVarAndTime getVarTime() { + return varTime_; + } + public BuPanel getPanelTreeIsoLignes() { + return panelTreeIsoLignes; + } + public MvProfileBuilderFromTree(final MvProfileTarget _data, final CtuluUI _ui, final LineString _selected, final ZEbliCalquesPanel _panel, EfLineIntersectionsCorrectionTester _tester) { super(_data, _ui, _panel, _tester); lineTreeModel_ = new CalqueFindCourbeTreeModel(null, _panel.getDonneesCalque()); initSelected_ = _selected; + calque_ = _panel; } - LineString getSelectedLineInTree(final JTree _tree) { + public LineString getSelectedLineInTree(final JTree _tree) { if (_tree.isSelectionEmpty()) { return null; } @@ -72,7 +89,7 @@ return (LineString) cq.getModele().getGeomData().getGeometry(node.getIdxPoly()); } - String getSelectedLineTitle(final JTree _tree) { + public String getSelectedLineTitle(final JTree _tree) { if (_tree.isSelectionEmpty()) { return null; } @@ -96,30 +113,36 @@ } - protected void stepOne() { - final BuPanel selectLine = new BuPanel(new BuVerticalLayout(3)); - final JTree tree = buildTree(); - selectLine.add(new BuLabel(MvResource.getS("S\xE9lectionner la ligne \xE0 utiliser pour le profil"))); - final BuRadioButton btSelectedLine = new BuRadioButton(MvResource.getS("Utiliser La ligne s\xE9lectionn\xE9e")); - final BuRadioButton btSelectInTree = new BuRadioButton(MvResource.getS("Utiliser une ligne disponible:")); + public BuRadioButton btSelectedLine_; + public BuRadioButton btSelectInTree_; + public JTree tree_; + /** + * construit les panels des parametres. + */ + public void stepOne() { + panelTreeIsoLignes = new BuPanel(new BuVerticalLayout(3)); + tree_ = buildTree(); + panelTreeIsoLignes.add(new BuLabel(MvResource.getS("S\xE9lectionner la ligne \xE0 utiliser pour le profil"))); + btSelectedLine_ = new BuRadioButton(MvResource.getS("Utiliser La ligne s\xE9lectionn\xE9e")); + btSelectInTree_ = new BuRadioButton(MvResource.getS("Utiliser une ligne disponible:")); final ButtonGroup bg = new ButtonGroup(); - bg.add(btSelectedLine); - bg.add(btSelectInTree); - final BuScrollPane buScrollPane = new BuScrollPane(tree); + bg.add(btSelectedLine_); + bg.add(btSelectInTree_); + final BuScrollPane buScrollPane = new BuScrollPane(tree_); buScrollPane.setPreferredHeight(200); - selectLine.add(btSelectedLine); - selectLine.add(btSelectInTree); + panelTreeIsoLignes.add(btSelectedLine_); + panelTreeIsoLignes.add(btSelectInTree_); buScrollPane.setBorder(BuBorders.EMPTY2500); - selectLine.add(buScrollPane); + panelTreeIsoLignes.add(buScrollPane); if (initSelected_ == null) { - btSelectedLine.setEnabled(false); - btSelectInTree.setSelected(true); + btSelectedLine_.setEnabled(false); + btSelectInTree_.setSelected(true); } else { - btSelectedLine.setSelected(true); - tree.setEnabled(false); + btSelectedLine_.setSelected(true); + tree_.setEnabled(false); this.update(initSelected_, false); } - final MvExportChooseVarAndTime varTime = createVarTimeChooser(getHelpForVarTime()); + varTime_ = createVarTimeChooser(getHelpForVarTime()); final CtuluDialogPanel pn = new CtuluDialogPanel() { public boolean valide() { @@ -127,12 +150,12 @@ return false; } - if (btSelectedLine.isSelected()) { + if (btSelectedLine_.isSelected()) { MvProfileBuilderFromTree.this.selectedLine_ = initSelected_; MvProfileBuilderFromTree.this.name_ = EbliLib.getS("S\xE9lection"); } else { - MvProfileBuilderFromTree.this.selectedLine_ = getSelectedLineInTree(tree); - MvProfileBuilderFromTree.this.name_ = getSelectedLineTitle(tree); + MvProfileBuilderFromTree.this.selectedLine_ = getSelectedLineInTree(tree_); + MvProfileBuilderFromTree.this.name_ = getSelectedLineTitle(tree_); } final JDialog d = (JDialog) SwingUtilities.getAncestorOfClass(JDialog.class, this); final CtuluTaskDelegate task = MvProfileBuilderFromTree.this.ui_.createTask(FudaaLib @@ -141,7 +164,7 @@ d.setGlassPane(glassPaneStop); task.start(new Runnable() { public void run() { - intersectTest(d, varTime, task.getStateReceiver()); + intersectTest(d, varTime_, task.getStateReceiver()); glassPaneStop.setVisible(false); d.getRootPane().remove(glassPaneStop); } @@ -153,46 +176,59 @@ final ListSelectionListener listListener = new ListSelectionListener() { public void valueChanged(ListSelectionEvent _e) { - updateError(pn, tree, varTime); + updateError(pn, tree_, varTime_); } }; - if (varTime.getTimeSelectionModel() != null) { - varTime.getTimeSelectionModel().addListSelectionListener(listListener); + if (varTime_.getTimeSelectionModel() != null) { + varTime_.getTimeSelectionModel().addListSelectionListener(listListener); } - varTime.getVarSelectionModel().addListSelectionListener(listListener); + varTime_.getVarSelectionModel().addListSelectionListener(listListener); - tree.addTreeSelectionListener(new TreeSelectionListener() { + tree_.addTreeSelectionListener(new TreeSelectionListener() { public void valueChanged(final TreeSelectionEvent _e) { - updateError(pn, tree, varTime); - MvProfileBuilderFromTree.this.update(getSelectedLineInTree(tree), true); + updateError(pn, tree_, varTime_); + MvProfileBuilderFromTree.this.update(getSelectedLineInTree(tree_), true); } }); // le selectionneur pour le bouton - btSelectedLine.addItemListener(new ItemListener() { + btSelectedLine_.addItemListener(new ItemListener() { public void itemStateChanged(final ItemEvent _e) { - tree.setEnabled(!btSelectedLine.isSelected()); - if (btSelectedLine.isSelected()) { + tree_.setEnabled(!btSelectedLine_.isSelected()); + if (btSelectedLine_.isSelected()) { MvProfileBuilderFromTree.this.update(initSelected_, MvProfileBuilderFromTree.this.isZoomChanged_); - } else if (tree.isSelectionEmpty()) { + } else if (tree_.isSelectionEmpty()) { MvProfileBuilderFromTree.this.update(null, false); } else { - MvProfileBuilderFromTree.this.update(getSelectedLineInTree(tree), true); + MvProfileBuilderFromTree.this.update(getSelectedLineInTree(tree_), true); } - updateError(pn, tree, varTime); + updateError(pn, tree_, varTime_); } }); pn.setLayout(new BuHorizontalLayout(5)); - selectLine.setBorder(CtuluLibSwing.createTitleBorder(CtuluLib.getS("Etape {0}:", CtuluLibString.UN))); - varTime.setBorder(CtuluLibSwing.createTitleBorder(CtuluLib.getS("Etape {0}:", CtuluLibString.DEUX))); - pn.add(selectLine); - pn.add(varTime); + panelTreeIsoLignes.setBorder(CtuluLibSwing.createTitleBorder(CtuluLib.getS("Etape {0}:", CtuluLibString.UN))); + varTime_.setBorder(CtuluLibSwing.createTitleBorder(CtuluLib.getS("Etape {0}:", CtuluLibString.DEUX))); + pn.add(panelTreeIsoLignes); + pn.add(varTime_); pn.setBorder(BuBorders.EMPTY3333); - updateError(pn, tree, varTime); - pn.afficheModale(ui_.getParentComponent(), MvResource.getS("Profils spatiaux"), varTime.getListRunnable()); + updateError(pn, tree_, varTime_); + + + + // -- integration du parent component dans le wizard des profils spatiaux + // --// + + + // pn.afficheModale(ui_.getParentComponent(), + // MvResource.getS("Profils spatiaux"), varTime.getListRunnable()); close(); + + + + + } Modified: branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/sig/layer/FSigVisuPanel.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/sig/layer/FSigVisuPanel.java 2008-09-10 18:54:20 UTC (rev 3905) +++ branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/sig/layer/FSigVisuPanel.java 2008-09-10 18:55:59 UTC (rev 3906) @@ -14,12 +14,9 @@ import javax.swing.JComponent; -import com.memoire.bu.BuMenu; - import org.fudaa.ctulu.CtuluCommandManager; import org.fudaa.ctulu.CtuluLib; import org.fudaa.ctulu.CtuluUndoRedoInterface; - import org.fudaa.ebli.calque.BArbreCalque; import org.fudaa.ebli.calque.BGroupeCalque; import org.fudaa.ebli.calque.ZCalqueGrille; @@ -30,10 +27,11 @@ import org.fudaa.ebli.commun.EbliActionInterface; import org.fudaa.ebli.commun.EbliFormatter; import org.fudaa.ebli.commun.EbliSelectionMode; - import org.fudaa.fudaa.commun.impl.FudaaCommonImplementation; import org.fudaa.fudaa.sig.FSigAttibuteTypeManager; +import com.memoire.bu.BuMenu; + /** * @author deniger * @version $Id: FSigVisuPanel.java,v 1.2 2007-06-11 12:53:36 deniger Exp $ @@ -57,6 +55,7 @@ */ public FSigVisuPanel(final FudaaCommonImplementation _impl) { this(null, _impl); + } public FSigVisuPanel(final BGroupeCalque _gcMain, final FudaaCommonImplementation _impl) { Modified: branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrIsoLayerDefault.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrIsoLayerDefault.java 2008-09-10 18:54:20 UTC (rev 3905) +++ branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrIsoLayerDefault.java 2008-09-10 18:55:59 UTC (rev 3906) @@ -29,27 +29,18 @@ import javax.swing.event.ListSelectionEvent; import javax.swing.event.ListSelectionListener; -import com.vividsolutions.jts.geom.LineString; -import com.vividsolutions.jts.geom.LinearRing; - -import com.memoire.bu.BuMenuItem; -import com.memoire.bu.BuResource; -import com.memoire.fu.FuLog; - import org.fudaa.ctulu.CtuluAnalyze; import org.fudaa.ctulu.CtuluLib; import org.fudaa.ctulu.CtuluLibArray; import org.fudaa.ctulu.CtuluLibString; import org.fudaa.ctulu.CtuluListSelection; import org.fudaa.ctulu.CtuluRange; - import org.fudaa.dodico.ef.EfGridInterface; import org.fudaa.dodico.ef.operation.EfIndexVisitorNearestElt; import org.fudaa.dodico.ef.operation.EfIndexVisitorNearestNode; import org.fudaa.dodico.ef.operation.EfIsoRestructuredGridActivity; import org.fudaa.dodico.ef.operation.EfIsoRestructuredGridResult; import org.fudaa.dodico.h2d.type.H2dVariableType; - import org.fudaa.ebli.calque.BCalque; import org.fudaa.ebli.calque.BCalquePersistenceInterface; import org.fudaa.ebli.calque.ZCalqueAffichageDonnees; @@ -78,10 +69,15 @@ import org.fudaa.ebli.trace.TraceIsoSurfacesAvecPlages; import org.fudaa.ebli.trace.TraceLigne; import org.fudaa.ebli.trace.TraceLigneModel; - import org.fudaa.fudaa.meshviewer.layer.MvNodeLayer; import org.fudaa.fudaa.tr.persistence.TrPostIsoLayerPersistence; +import com.memoire.bu.BuMenuItem; +import com.memoire.bu.BuResource; +import com.memoire.fu.FuLog; +import com.vividsolutions.jts.geom.LineString; +import com.vividsolutions.jts.geom.LinearRing; + /** * Un calque de trace de cartes avec un nouvel algorithme de trace. * @@ -235,6 +231,14 @@ } + + /** + * Methode qui permet de savoir si le point appartient a la sonde + * + * @param _prReel + * @param _model + * @return + */ public static int sondeSelection(final GrPoint _prReel, final TrPostModelInterface _model) { EfGridInterface grid = _model.getGrid(); if (grid.getIndex() != null) { @@ -328,7 +332,7 @@ return s; } - protected final TrIsoModelAbstract getIsoModelAbstract() { + public final TrIsoModelAbstract getIsoModelAbstract() { return (TrIsoModelAbstract) modele_; } Modified: branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostActionAddPointFromWidgetCalque.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostActionAddPointFromWidgetCalque.java 2008-09-10 18:54:20 UTC (rev 3905) +++ branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostActionAddPointFromWidgetCalque.java 2008-09-10 18:55:59 UTC (rev 3906) @@ -30,7 +30,6 @@ import org.fudaa.ctulu.CtuluCommandContainer; import org.fudaa.ctulu.CtuluResource; -import org.fudaa.ctulu.CtuluTaskDelegate; import org.fudaa.ctulu.image.CtuluLibImage; import org.fudaa.ebli.calque.ZCalqueAffichageDonneesInterface; import org.fudaa.ebli.courbe.EGGraphe; @@ -41,7 +40,6 @@ import org.fudaa.ebli.visuallibrary.actions.EbliWidgetActionSimple; import org.fudaa.ebli.visuallibrary.calque.EbliWidgetCreatorVueCalque; import org.fudaa.ebli.visuallibrary.graphe.EbliWidgetCreatorGraphe; -import org.fudaa.fudaa.commun.FudaaLib; import org.fudaa.fudaa.meshviewer.profile.MvProfileBuilderFromTree; import org.fudaa.fudaa.meshviewer.profile.MvProfileCoteTester; import org.fudaa.fudaa.meshviewer.profile.MvProfileTreeModel; @@ -122,7 +120,7 @@ @Override public boolean isCorrectGraph(EGGrapheModel _model) { - // -- ATTENTION ICI ON AJOUTE JUSTE POUR LES COUURBE TEMPORELLE --// + // -- ATTENTION ICI ON AJOUTE JUSTE POUR LES COURBE TEMPORELLE --// return (_model instanceof MvProfileTreeModel); } @@ -130,13 +128,10 @@ @Override public void executeAction(TrPostCommonImplementation _impl, EGGraphe _graphe, TrPostVisuPanel _calque) { - // -- utilisation de l action qui permet d ajouter un profil spatial selectionn\xE9 dans le calque au - // graphe - final CtuluTaskDelegate task = impl_.createTask(FudaaLib.getS("Construction des courbes")); - new MvProfileBuilderFromTree(_calque.getProjet(), impl_, ((ZCalqueAffichageDonneesInterface) _calque - .getArbreCalqueModel().getSelectedCalque()).getSelectedLine(), _calque, new MvProfileCoteTester()) - .actAddGroupForExistingModel(task.getStateReceiver(), (MvProfileTreeModel) _graphe.getModel(), - _calque.srcCont_.src_); + /** + * @see TrPostWizardProfilSpatiaux.java pour savoir comment fusionenr une + * courbe spatiale dans un graphe existant. methode doTask() + */ } @@ -251,11 +246,14 @@ } else if (e.getSource() == creationNewGraphe) { // -- creation d un nouveau graphe --// + if (boxCalques_ != null) { TrPostVisuPanel calqueChoisi = (TrPostVisuPanel) listeCalquesPossibles.get(boxCalques_.getSelectedIndex()); // -- methode appelee qui doit creer un graphe avec la selection --// createNewGraphe(calqueChoisi); - + } else { + createNewGraphe(listeCalquesPossibles.get(0)); + } // -- on doit remettre a jour les infos --// // frame_.dispose(); // rechercheGrapheAndCalque(); @@ -293,7 +291,7 @@ listeCalquesPossibles.add((TrPostVisuPanel) new_name.getCalque()); JLabel label = new JLabel(); - BufferedImage image = new_name.getCalque().produceImage(50, 50, params); + BufferedImage image = new_name.getCalque().produceImage(80, 50, params); Icon icone = new ImageIcon(image); label.setIcon(icone); label.setText(currentNode.getTitle()); @@ -306,7 +304,7 @@ if (isCorrectGraph(new_name.getGraphe().getModel())) { JLabel label = new JLabel(); - BufferedImage image = new_name.getGraphe().produceImage(50, 50, params); + BufferedImage image = new_name.getGraphe().produceImage(80, 50, params); Icon icone = new ImageIcon(image); label.setIcon(icone); @@ -359,13 +357,21 @@ * * @return */ - public JComponent constructInterface(boolean closeDialog, boolean valideAjoutCourbe, boolean canCreate) { + public JComponent constructInterface(boolean chooserCalque, boolean closeDialog, boolean valideAjoutCourbe, + boolean canCreate) { + + JPanel content = new JPanel(new BorderLayout()); + + if (chooserCalque) { boxCalques_ = new JComboBox(); for (Iterator<JLabel> it = listeObjetsCalques.iterator(); it.hasNext();) { boxCalques_.addItem(it.next()); } boxCalques_.setRenderer(new GrapheCellRenderer()); boxCalques_.setBorder(BorderFactory.createTitledBorder(TrResource.TR.getString("Liste des calques de la scene"))); + content.add(boxCalques_, BorderLayout.NORTH); + + } jlisteGraphesChoix = new JList(modelGraphesPossibles); jlisteGraphesChoix.setCellRenderer(new GrapheCellRenderer()); @@ -414,10 +420,10 @@ box.add(boxButton); box.add(jlisteGraphesSelections); - JPanel content = new JPanel(new BorderLayout()); + content.add(box, BorderLayout.CENTER); - content.add(boxCalques_, BorderLayout.NORTH); + @@ -436,7 +442,7 @@ frame_ = new JDialog(); - frame_.setContentPane(constructInterface(true, true, true)); + frame_.setContentPane(constructInterface(true, true, true, true)); frame_.setModal(true); setTitleForFrame(); @@ -456,9 +462,16 @@ */ public JComponent getInterfaceComplete(boolean closeDialog, boolean valideAjoutCourbe, boolean canCreate) { rechercheGrapheAndCalque(); - return constructInterface(closeDialog, valideAjoutCourbe, canCreate); + return constructInterface(true, closeDialog, valideAjoutCourbe, canCreate); } + public JComponent getInterfacePartielle(boolean closeDialog, boolean valideAjoutCourbe, boolean canCreate) { + rechercheGrapheAndCalque(); + + return constructInterface(false, closeDialog, valideAjoutCourbe, canCreate); + } + + public abstract void setTitleForFrame(); } Added: branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostActionFusionGraphes.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostActionFusionGraphes.java (rev 0) +++ branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostActionFusionGraphes.java 2008-09-10 18:55:59 UTC (rev 3906) @@ -0,0 +1,293 @@ +package org.fudaa.fudaa.tr.post; + +import java.awt.BorderLayout; +import java.awt.Color; +import java.awt.Component; +import java.awt.FlowLayout; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.awt.image.BufferedImage; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.Iterator; +import java.util.Map; +import java.util.Set; + +import javax.swing.Icon; +import javax.swing.ImageIcon; +import javax.swing.JButton; +import javax.swing.JComboBox; +import javax.swing.JComponent; +import javax.swing.JLabel; +import javax.swing.JList; +import javax.swing.JPanel; +import javax.swing.ListCellRenderer; +import javax.swing.UIManager; + +import org.fudaa.ctulu.CtuluResource; +import org.fudaa.ctulu.ProgressionBuAdapter; +import org.fudaa.ctulu.ProgressionInterface; +import org.fudaa.ctulu.gui.CtuluTaskOperationGUI; +import org.fudaa.ctulu.image.CtuluLibImage; +import org.fudaa.ebli.courbe.EGGraphe; +import org.fudaa.ebli.ressource.EbliResource; +import org.fudaa.ebli.visuallibrary.EbliNode; +import org.fudaa.ebli.visuallibrary.EbliWidgetBordure; +import org.fudaa.ebli.visuallibrary.actions.EbliWidgetActionSimple; +import org.fudaa.ebli.visuallibrary.graphe.EbliWidgetCreatorGraphe; +import org.fudaa.ebli.visuallibrary.graphe.EbliWidgetGraphe; +import org.fudaa.fudaa.meshviewer.profile.MvProfileTreeModel; +import org.fudaa.fudaa.tr.common.TrResource; + +import com.memoire.bu.BuDialog; +import com.memoire.bu.BuDialogConfirmation; +import com.memoire.fu.FuLog; + +/** + * Classe Fusion Widgets des graphes entre eux pour qu'ils se transforment en + * super sayan Niveau 16... + * + * @author Adrien Hadoux + * + */ +public class TrPostActionFusionGraphes extends EbliWidgetActionSimple { + + TrPostProjet projet_; + EbliWidgetGraphe widgetGraphe_; + EbliNode nodeGraphe_; + JComboBox boxListeGraphes_; + ArrayList<JLabel> listeObjetsCalques; + ArrayList<EbliNode> listeGraphesPossibles; + JComponent content_; + BuDialog dialog_; + + + public TrPostActionFusionGraphes(EbliWidgetGraphe widget, EbliNode nodeGraphe, + TrPostProjet projet) { + super(widget.getEbliScene(), TrResource.getS("Fusion avec un autre graphe"), CtuluResource.CTULU.getIcon("cible"), + "ADDPOINTWIDGET"); + + + widgetGraphe_ = widget; + nodeGraphe_ = nodeGraphe; + projet_ = projet; + + // -- ajout de la combo dans la toolbar de la widget --// + widgetGraphe_.getController_().getPopup().add(this); + } + + /** + * remplissage de la combo avec les graphes disponibles et compatibles + * + * @param scene + */ + private void remplirCombo() { + Map params = new HashMap(); + CtuluLibImage.setCompatibleImageAsked(params); + listeGraphesPossibles = new ArrayList<EbliNode>(); + listeObjetsCalques = new ArrayList<JLabel>(); + + + // -- remplissage de la liste a partir de l ecoute de la scene--// + Set<EbliNode> listeNode = (Set<EbliNode>) scene_.getObjects(); + for (Iterator<EbliNode> it = listeNode.iterator(); it.hasNext();) { + EbliNode currentNode = it.next(); + + if (currentNode != nodeGraphe_ && currentNode.getCreator() instanceof EbliWidgetCreatorGraphe) { + EbliWidgetCreatorGraphe new_name = (EbliWidgetCreatorGraphe) currentNode.getCreator(); + + FuLog.warning("MODEL GRAPHE je suis instance de " + new_name.getGraphe().getModel()); + if (isCompatibleWithGraphe(new_name.getGraphe())) { + + JLabel label = new JLabel(); + BufferedImage image = new_name.getGraphe().produceImage(70, 30, params); + Icon icone = new ImageIcon(image); + + label.setIcon(icone); + label.setText("Fusionner avec " + currentNode.getTitle()); + listeObjetsCalques.add(label); + listeGraphesPossibles.add(currentNode); + } + } + + + } + + + // -- creation graphique --// + if (boxListeGraphes_ == null) + boxListeGraphes_ = new JComboBox(); + + boxListeGraphes_.removeAllItems(); + + + for (Iterator<JLabel> it = listeObjetsCalques.iterator(); it.hasNext();) { + boxListeGraphes_.addItem(it.next()); + } + boxListeGraphes_.setRenderer(new GrapheCellRenderer()); + + + + + + } + + + /** + * verifie si les graphes sont compatibles + * + * @param graphe + * @return + */ + public boolean isCompatibleWithGraphe(EGGraphe graphe) { + return (this.widgetGraphe_.getGraphe().getModel() instanceof TrPostCourbeTreeModel && graphe.getModel() instanceof TrPostCourbeTreeModel) + || (this.widgetGraphe_.getGraphe().getModel() instanceof MvProfileTreeModel && graphe.getModel() instanceof MvProfileTreeModel); + } + + + public class GrapheCellRenderer extends JLabel implements ListCellRenderer { + private final Color HIGHLIGHT_COLOR = UIManager.getColor("Tree.selectionBackground"); + + public GrapheCellRenderer() { + setOpaque(true); + setIconTextGap(12); + } + + public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, + boolean cellHasFocus) { + JLabel entry = (JLabel) value; + setText(entry.getText()); + setIcon(entry.getIcon()); + if (isSelected) { + setBackground(HIGHLIGHT_COLOR); + setForeground(Color.white); + } else { + setBackground(Color.white); + setForeground(Color.black); + } + return this; + } + } + + + JComponent constructPanel() { + JPanel content=new JPanel(new BorderLayout()); + + content.add(new JLabel(TrResource.getS("Fusion avec un autre graphe")), BorderLayout.NORTH); + content.add(boxListeGraphes_, BorderLayout.CENTER); + JButton valide = new JButton(EbliResource.EBLI.getIcon("crystal_valider")); + valide.addActionListener(new ActionListener() { + + public void actionPerformed(ActionEvent _e) { + + mergeGraph(); + dialog_.dispose(); + } + + }); + + JPanel operations = new JPanel(new FlowLayout(FlowLayout.CENTER)); + operations.add(new JLabel(TrResource.getS("Valider"))); + operations.add(valide); + content.add(operations, BorderLayout.SOUTH); + + return content; + } + + + /** + * Methode qui: merge le graphe choisi dans la combo avec el ndoe actuel + * degage le node choisi de la scene remet a jour al combo actuelle + */ + private void mergeGraph() { + + int selected = boxListeGraphes_.getSelectedIndex(); + if (selected == -1) { + return; + } + EbliNode nodeToMerge = listeGraphesPossibles.get(selected); + + // --recuperation de son graphe --// + EbliWidgetGraphe grapheWidget = null; + if (nodeToMerge.getWidget() instanceof EbliWidgetBordure) + grapheWidget = (EbliWidgetGraphe) ((EbliWidgetBordure) nodeToMerge.getWidget()).getIntern(); + else + grapheWidget = (EbliWidgetGraphe) nodeToMerge.getWidget(); + + //-- cas des graphes temporels + if(widgetGraphe_.getGraphe().getModel() instanceof TrPostCourbeTreeModel){ + final TrPostCourbeTreeModel grapheToMerge = (TrPostCourbeTreeModel) grapheWidget.getGraphe().getModel(); + final TrPostCourbeTreeModel grapheModel = (TrPostCourbeTreeModel) widgetGraphe_.getGraphe().getModel(); + // --ajout de la courbe au widget de base --// + new CtuluTaskOperationGUI(projet_.impl_, TrResource.getS("Fusion avec un autre graphe")) { + + public void act() { + final ProgressionInterface prog = new ProgressionBuAdapter(this); + + //-- cas points reels --// + if (grapheToMerge.getObjIdx() != null && grapheToMerge.getObjIdx().length != 0) + grapheModel.addPoints(grapheToMerge.getObjIdx(), scene_.getCmdMng(), prog, grapheToMerge.getVarSupported()); + //-- cas interpol\xE9 --// + else if(grapheToMerge.getIntepolPt()!=null) + for (Iterator it = grapheToMerge.getIntepolPt().iterator(); it.hasNext();) + grapheModel.addPoints((TrPostInterpolatePoint) it.next(), scene_.getCmdMng(), prog, grapheToMerge + .getVarSupported()); + + } + }.start(); + ; + } + else{ + //-- cas des grapehs spatiaux --// + final MvProfileTreeModel grapheToMerge = (MvProfileTreeModel) grapheWidget.getGraphe().getModel(); + final MvProfileTreeModel grapheModel = (MvProfileTreeModel) widgetGraphe_.getGraphe().getModel(); + // --ajout de la courbe au widget de base --// + final EGGraphe grapheObject = grapheWidget.getGraphe(); + new CtuluTaskOperationGUI(projet_.impl_, TrResource.getS("Fusion avec un autre graphe")) { + + public void act() { + final ProgressionInterface prog = new ProgressionBuAdapter(this); + + grapheModel.addNewCourbe(scene_.getCmdMng(), widgetGraphe_.getPanelGraphe(), grapheObject, + projet_.impl_); + + } + }.start(); + + } + + + // --suppression du graphe merge --// + scene_.removeNodeWithEdges(nodeToMerge); + scene_.refresh(); + + // -- maj de la combo --// + remplirCombo(); + + } + + + public void actionPerformed(ActionEvent _e) { + + // -- remplisage combo --// + remplirCombo(); + + dialog_ = new BuDialogConfirmation(projet_.impl_, projet_.impl_.getInformationsSoftware(), TrResource + .getS("Fusion avec un autre graphe")); + if (content_ == null) + content_ = constructPanel(); + + + + dialog_.setContentPane(content_); + dialog_.setSize(400, 150); + + dialog_.setModal(true); + dialog_.setVisible(true); + dialog_.setLocationRelativeTo(projet_.getSelectedFilleLayout()); + + + } + + +} Modified: branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostCourbeAddPointsAction.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostCourbeAddPointsAction.java 2008-09-10 18:54:20 UTC (rev 3905) +++ branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostCourbeAddPointsAction.java 2008-09-10 18:55:59 UTC (rev 3906) @@ -55,7 +55,7 @@ public void act() { final TrPostCourbeTreeModel model = (TrPostCourbeTreeModel) _model.getModel(); - model.addPoints(_pt, _model.getCmd(), new ProgressionBuAdapter(this)); + model.addPoints(_pt, _model.getCmd(), new ProgressionBuAdapter(this), null); BuLib.invokeLater(new Runnable() { public void run() { @@ -72,7 +72,7 @@ public void act() { final TrPostCourbeTreeModel model = (TrPostCourbeTreeModel) _model.getModel(); - model.addPoints(_idx, _model.getCmd(), new ProgressionBuAdapter(this)); + model.addPoints(_idx, _model.getCmd(), new ProgressionBuAdapter(this), null); BuLib.invokeLater(new Runnable() { public void run() { Modified: branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostCourbeBuilder.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostCourbeBuilder.java 2008-09-10 18:54:20 UTC (rev 3905) +++ branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostCourbeBuilder.java 2008-09-10 18:55:59 UTC (rev 3906) @@ -74,15 +74,14 @@ } - private static int cptGraphe = 1; /** * Methode principale de construction d'une courbe avec l'aide d'un wizard */ public static void chooseAndBuild(final TrPostProjet _src, final int[] _ptIdx, final TrPostInterpolatePoint _pt, final H2dVariableType _varSelected, final TrPostVisuPanel _calque) { - if (_ptIdx == null && _pt == null) { - return; - } + // if (_ptIdx == null && _pt == null) { + // return; + // } // final MvExportChooseVarAndTime chooser = new // MvExportChooseVarAndTime(_src.getSource().getNewVarListModel(), _src @@ -115,88 +114,89 @@ // CtuluDialogPanel pn = chooser; //FIXME: a remplacer par une recherche des frames dans le layout actif. // final List fr = TrPostCourbeFille.getCourbeFilleFrames(_src.getImpl()); - // final FudaaInternalFrameSelectorPanel pnFrame = fr.size() == 0 ? null : - // new FudaaInternalFrameSelectorPanel(fr, - // TrLib.getString( - // "Afficher les \xE9volutions temporelles dans une nouvelle fen\xEAtre"), titre); - // if (pnFrame != null) { - // final CtuluDialogPanel completePn = new CtuluDialogPanel() { - // public boolean valide() { - // return pnFrame.getCbNew().isSelected() || - // CtuluLibString.isEmpty(getErrorText()); - // } - // }; - // // pn = completePn; - // // pn.setLayout(new BuBorderLayout(4, 4, true, true)); - // // pn.setBorder(BuBorders.EMPTY3333); - // pn.add(pnFrame, BuBorderLayout.NORTH); - // chooser.setErrorTextUnable(); - // chooser.setBorder(BorderFactory.createEmptyBorder(5, 15, 0, 5)); - // CtuluLibSwing.setEnable(chooser, null, pnFrame.getCbNew().isSelected()); - // pnFrame.getCbNew().addItemListener(new ItemListener() { - // public void itemStateChanged(final ItemEvent _e) { - // CtuluLibSwing.setEnable(chooser, null, pnFrame.getCbNew().isSelected()); - // if (pnFrame.getCbNew().isSelected()) { - // completePn.setErrorText(chooser.computeErrorText()); - // } else { - // completePn.setErrorText(CtuluLibString.EMPTY_STRING); - // } - // } - // }); - // pn.add(chooser, BuBorderLayout.CENTER); - // - // } - // chooser.activeErrorListener(pn); +// final FudaaInternalFrameSelectorPanel pnFrame = fr.size() == 0 ? null : +// new FudaaInternalFrameSelectorPanel(fr, +// TrLib.getString( +// "Afficher les \xE9volutions temporelles dans une nouvelle fen\xEAtre"), titre); +// if (pnFrame != null) { +// final CtuluDialogPanel completePn = new CtuluDialogPanel() { +// public boolean valide() { +// return pnFrame.getCbNew().isSelected() || +// CtuluLibString.isEmpty(getErrorText()); +// } +// }; +// // pn = completePn; +// // pn.setLayout(new BuBorderLayout(4, 4, true, true)); +// // pn.setBorder(BuBorders.EMPTY3333); +// pn.add(pnFrame, BuBorderLayout.NORTH); +// chooser.setErrorTextUnable(); +// chooser.setBorder(BorderFactory.createEmptyBorder(5, 15, 0, 5)); +// CtuluLibSwing.setEnable(chooser, null, pnFrame.getCbNew().isSelected()); +// pnFrame.getCbNew().addItemListener(new ItemListener() { +// public void itemStateChanged(final ItemEvent _e) { +// CtuluLibSwing.setEnable(chooser, null, pnFrame.getCbNew().isSelected()); +// if (pnFrame.getCbNew().isSelected()) { +// completePn.setErrorText(chooser.computeErrorText()); +// } else { +// completePn.setErrorText(CtuluLibString.EMPTY_STRING); +// } +// } +// }); +// pn.add(chooser, BuBorderLayout.CENTER); +// +// } +// chooser.activeErrorListener(pn); // BLOC UTILE POUR REFACTORISATION: LA CREATION DE LA COURBE SE FAIT DANS LE // THREAD - // if (pn.afficheModaleOk(_src.getImpl().getFrame(), titre)) { - // - // - // - // final Object[] obj = chooser.getSelectedVar(); - // final H2dVariableType[] var = new H2dVariableType[obj.length]; - // System.arraycopy(obj, 0, var, 0, var.length); - // // final TrPostCourbeFille fille = pnFrame == null ? null : - // // (TrPostCourbeFille) pnFrame.getSelectedFrame(); - // // if (fille == null) { - // new CtuluTaskOperationGUI(_src.getImpl(), titre) { - // - // public void act() { - // final ProgressionInterface prog = new ProgressionBuAdapter(this); - // final TrPostCourbeTreeModel model = _pt == null ? build(_src.getImpl(), - // _src.getSource(), chooser - // .getSelectedTimeStepIdx(), var, _ptIdx, prog) : build(_src.getImpl(), - // _src.getSource(), chooser - // .getSelectedTimeStepIdx(), var, _pt, prog); - // if (model != null) { - // _src.addFille(model, "graphe " + (cptGraphe++)/* - // * pnFrame == null ? - // * titre :pnFrame. - // * getNewFrameTitle() - // */, prog, _calque); - // } - // } - // }.start(); - // } else { - // if (_ptIdx == null) { - // TrPostCourbeAddPointsAction.startImportInterpolate(_src.getImpl(), - // fille.getGraphe(), _pt); - // } else { - // TrPostCourbeAddPointsAction.startImportIdx(_src.getImpl(), - // fille.getGraphe(), _ptIdx); - // } - // _src.getImpl().activateInternalFrame(fille); - // } - - // } +// if (pn.afficheModaleOk(_src.getImpl().getFrame(), titre)) { +// +// +// +// final Object[] obj = chooser.getSelectedVar(); +// final H2dVariableType[] var = new H2dVariableType[obj.length]; +// System.arraycopy(obj, 0, var, 0, var.length); +// final TrPostCourbeFille fille = pnFrame == null ? null : +// (TrPostCourbeFille) pnFrame.getSelectedFrame(); +// if (fille == null) { +// new CtuluTaskOperationGUI(_src.getImpl(), titre) { +// +// public void act() { +// final ProgressionInterface prog = new ProgressionBuAdapter(this); +// final TrPostCourbeTreeModel model = _pt == null ? build(_src.getImpl(), +// _src.getSource(), chooser +// .getSelectedTimeStepIdx(), var, _ptIdx, prog) : build(_src.getImpl(), +// _src.getSource(), chooser +// .getSelectedTimeStepIdx(), var, _pt, prog); +// if (model != null) { +// _src.addFille(model, "graphe " + (cptGraphe++)/* +// * pnFrame == null ? +// * titre :pnFrame. +// * getNewFrameTitle() +// */, prog, _calque); +// } +// } +// }.start(); +// } else { +// if (_ptIdx == null) { +// TrPostCourbeAddPointsAction.startImportInterpolate(_src.getImpl(), +// fille.getGraphe(), _pt); +// } else { +// TrPostCourbeAddPointsAction.startImportIdx(_src.getImpl(), +// fille.getGraphe(), _ptIdx); +// } +// _src.getImpl().activateInternalFrame(fille); +// } +// +// } // -- wizard construction --// - TrPostWizardCourbeTemporelle wizard = new TrPostWizardCourbeTemporelle(chooser, - new TrPostActionAddPointFromWidgetCalque.Temporel(_src.getSelectedFilleLayout().getScene(), _src.getImpl())); + TrPostWizardCourbeTemporelle wizard = new TrPostWizardCourbeTemporelle(_calque,_src,chooser, + new TrPostActionAddPointFromWidgetCalque.Temporel(_src.getSelectedFilleLayout().getScene(), _src.getImpl()), + _ptIdx, _pt); BuWizardDialog DialogWizard = new BuWizardDialog(_src.getImpl().getFrame(), wizard); @@ -207,6 +207,8 @@ } + + public static void chooseAndBuild(final TrPostProjet _src, final TrPostInterpolatePoint _pt, final H2dVariableType _varSelected, TrPostVisuPanel _calque) { Modified: branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostCourbeModel.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostCourbeModel.java 2008-09-10 18:54:20 UTC (rev 3905) +++ branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostCourbeModel.java 2008-09-10 18:55:59 UTC (rev 3906) @@ -113,6 +113,7 @@ public static EGCourbeChild buildCourbeModel(final H2dVariableType _var, final int _idxPt, final double[] _ts, final EGGroup _group, final TrPostSource _src) { final TrPostCourbeModel model = new TrPostCourbeModel.Node(_src, _idxPt, _var, _ts); + final EGCourbeChild courbe = new FudaaCourbeTime(_group, model, _src.getNewTimeListModel()); _group.addEGComponent(courbe); courbe.getModel().setTitle(courbe.getModel().getTitle() + CtuluLibString.ESPACE + (_idxPt + 1)); Modified: branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostCourbeTreeModel.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostCourbeTreeModel.java 2008-09-10 18:54:20 UTC (rev 3905) +++ branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostCourbeTreeModel.java 2008-09-... [truncated message content] |
From: <had...@us...> - 2008-09-10 18:54:10
|
Revision: 3905 http://fudaa.svn.sourceforge.net/fudaa/?rev=3905&view=rev Author: hadouxad Date: 2008-09-10 18:54:20 +0000 (Wed, 10 Sep 2008) Log Message: ----------- GRAPHES Wizard graphes temporels OK - Lors Creation des graphe temporels du calque: cela utilise la source du visupanel et non plsu l unique source du projet. - POssibilit?\195?\169 d ajouter les courbes dans les graphes widget deja existant - Possibilit?\195?\169 de cr?\195?\169er un nouveau graphe - fonctionne pour les sondes et liste de points Wizard graphes profils spatiaux OK, fusion marche moyen... - panel 1: choix des isolignes, ne peut pas avancer tant qu il n y a rien de bon de choisi - panel 2 Choix des pas de tems et variables - panel 3 : choix creation ou graphes profils existant, on ne peut avancer tant qu il n y a rien de choisi (graphe existant a jout?\195?\169 ou cocher la case creation)) Fusion de graphes OK moyen (cf listing bugs): - action popup du widget "Fusion avec un autre graphe" - des l appui du bouton sur la popup de la widget selectionne: - ouverture d un menu qui propose la liste des graphes possible a fusionner ensemble (profils spatiaux et temporels s?\195?\169par?\195?\169s) - a la fin suppression de la widget choisie dans le panel. - recupere les variables des 2 graphes et les merge egalement - Fonctionne OK poru les profils spatiaux Modified Paths: -------------- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/calque/BCalquePaletteInfo.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/courbe/EGCourbe.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/graphe/EbliWidgetGraphe.java Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/calque/BCalquePaletteInfo.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/calque/BCalquePaletteInfo.java 2008-09-10 07:40:16 UTC (rev 3904) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/calque/BCalquePaletteInfo.java 2008-09-10 18:54:20 UTC (rev 3905) @@ -12,7 +12,6 @@ import org.fudaa.ctulu.CtuluLibMessage; import org.fudaa.ctulu.CtuluLibString; - import org.fudaa.ebli.palette.BPaletteInfo; /** * Un panel affichant les infos envoyes par TrPanelInfoSender. @@ -31,6 +30,7 @@ super(); m_ = _m; m_.addTreeSelectionListener(this); + } Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/courbe/EGCourbe.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/courbe/EGCourbe.java 2008-09-10 07:40:16 UTC (rev 3904) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/courbe/EGCourbe.java 2008-09-10 18:54:20 UTC (rev 3905) @@ -199,6 +199,7 @@ _table.put(EbliLib.getS("X max"), CtuluLib.DEFAULT_NUMBER_FORMAT.format(model_.getXMax())); _table.put(EbliLib.getS("Y min"), CtuluLib.DEFAULT_NUMBER_FORMAT.format(model_.getYMin())); _table.put(EbliLib.getS("Y max"), CtuluLib.DEFAULT_NUMBER_FORMAT.format(model_.getYMax())); + } final boolean isMarkMaxLine() { Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/graphe/EbliWidgetGraphe.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/graphe/EbliWidgetGraphe.java 2008-09-10 07:40:16 UTC (rev 3904) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/graphe/EbliWidgetGraphe.java 2008-09-10 18:54:20 UTC (rev 3905) @@ -44,6 +44,10 @@ Window frame_; EGFillePanel panelGraphe_; + public EGFillePanel getPanelGraphe() { + return panelGraphe_; + } + BuPanel conteneurEditor; private EbliNodeDefault nodeLegende = null; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fa...@us...> - 2008-09-10 07:40:06
|
Revision: 3904 http://fudaa.svn.sourceforge.net/fudaa/?rev=3904&view=rev Author: fargeix Date: 2008-09-10 07:40:16 +0000 (Wed, 10 Sep 2008) Log Message: ----------- Modifications diverses du code pour r?\195?\169pondre ?\195?\160 certains probl?\195?\168mes : - URL erronn?\195?\169es - probl?\195?\168me de formats de nombres - impossibilit?\195?\169 de saisir un moment n?\195?\169gatif en t?\195?\170te Modified Paths: -------------- trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/oscar/OscarDeformeeResultatsBruts.java trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/oscar/OscarDiagrammePressionsResultatsBruts.java trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/oscar/OscarEffortsParametresEffortsEnTeteDeRideau.java trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/oscar/OscarEffortsTranchantsResultatsBruts.java trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/oscar/OscarFilleNoteDeCalculs.java trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/oscar/OscarLib.java trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/oscar/OscarMomentsFlechissantsResultatsBruts.java trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/oscar/OscarPredimensionnementResultatsBruts.java trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/oscar/WHtmlContent.java Modified: trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/oscar/OscarDeformeeResultatsBruts.java =================================================================== --- trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/oscar/OscarDeformeeResultatsBruts.java 2008-09-10 07:30:34 UTC (rev 3903) +++ trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/oscar/OscarDeformeeResultatsBruts.java 2008-09-10 07:40:16 UTC (rev 3904) @@ -145,7 +145,7 @@ * */ protected void sauvegarder() { - final String file = OscarLib.getFileChoosenByUser(this, "Exporter les donn\xE9es bruts", "Exporter", + final String file = OscarLib.getFileChoosenByUser(this, "Exporter les donn\xE9es brutes", "Exporter", OscarLib.USER_HOME + "deformees.csv"); final StringBuffer txt = new StringBuffer(); if (file == null) { @@ -187,8 +187,8 @@ SPointCoteValeur _p = null; try { _p = new SPointCoteValeur(); - _p.cote = ((Double) dm_tb_deformee_.getValueAt(_n - 1, 0)).doubleValue(); - _p.valeur = ((Double) dm_tb_deformee_.getValueAt(_n - 1, 1)).doubleValue(); + _p.cote = Double.parseDouble(dm_tb_deformee_.getValueAt(_n - 1, 0).toString()); + _p.valeur = Double.parseDouble(dm_tb_deformee_.getValueAt(_n - 1, 1).toString()); } catch (final ArrayIndexOutOfBoundsException _e1) { WSpy.Error(OscarMsg.ERR035); } Modified: trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/oscar/OscarDiagrammePressionsResultatsBruts.java =================================================================== --- trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/oscar/OscarDiagrammePressionsResultatsBruts.java 2008-09-10 07:30:34 UTC (rev 3903) +++ trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/oscar/OscarDiagrammePressionsResultatsBruts.java 2008-09-10 07:40:16 UTC (rev 3904) @@ -131,7 +131,7 @@ * */ protected void sauvegarder() { - final String _f = OscarLib.getFileChoosenByUser(this, "Exporter les donn\xE9es bruts", "Exporter", OscarLib.USER_HOME + final String _f = OscarLib.getFileChoosenByUser(this, "Exporter les donn\xE9es brutes", "Exporter", OscarLib.USER_HOME + "pressions.csv"); String _txt = ""; if (_f == null) { @@ -173,8 +173,8 @@ SPointCoteValeur _p = null; try { _p = new SPointCoteValeur(); - _p.cote = ((Double) dm_tb_pressions_.getValueAt(_n - 1, 0)).doubleValue(); - _p.valeur = ((Double) dm_tb_pressions_.getValueAt(_n - 1, 1)).doubleValue(); + _p.cote = Double.parseDouble(dm_tb_pressions_.getValueAt(_n - 1, 0).toString()); + _p.valeur = Double.parseDouble(dm_tb_pressions_.getValueAt(_n - 1, 1).toString()); } catch (final ArrayIndexOutOfBoundsException _e1) { WSpy.Error(OscarMsg.ERR030); } Modified: trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/oscar/OscarEffortsParametresEffortsEnTeteDeRideau.java =================================================================== --- trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/oscar/OscarEffortsParametresEffortsEnTeteDeRideau.java 2008-09-10 07:30:34 UTC (rev 3903) +++ trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/oscar/OscarEffortsParametresEffortsEnTeteDeRideau.java 2008-09-10 07:40:16 UTC (rev 3904) @@ -148,9 +148,9 @@ } if (_etr.valeurMomentEnTete == VALEUR_NULLE.value) { _vm.add(OscarMsg.VMSG040); - } else if (_etr.valeurMomentEnTete < 0.0) { + } /*else if (_etr.valeurMomentEnTete < 0.0) { _vm.add(OscarMsg.VMSG041); - } + }*/ return _vm; } } Modified: trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/oscar/OscarEffortsTranchantsResultatsBruts.java =================================================================== --- trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/oscar/OscarEffortsTranchantsResultatsBruts.java 2008-09-10 07:30:34 UTC (rev 3903) +++ trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/oscar/OscarEffortsTranchantsResultatsBruts.java 2008-09-10 07:40:16 UTC (rev 3904) @@ -118,7 +118,7 @@ * */ protected void sauvegarder() { - final String _f = OscarLib.getFileChoosenByUser(this, "Exporter les donn\xE9es bruts", "Exporter", OscarLib.USER_HOME + final String _f = OscarLib.getFileChoosenByUser(this, "Exporter les donn\xE9es brutes", "Exporter", OscarLib.USER_HOME + "efforts.csv"); String _txt = ""; if (_f == null) { @@ -159,8 +159,8 @@ SPointCoteValeur _p = null; try { _p = new SPointCoteValeur(); - _p.cote = ((Double) dm_tb_efforts_.getValueAt(_n - 1, 0)).doubleValue(); - _p.valeur = ((Double) dm_tb_efforts_.getValueAt(_n - 1, 1)).doubleValue(); + _p.cote = Double.parseDouble(dm_tb_efforts_.getValueAt(_n - 1, 0).toString()); + _p.valeur = Double.parseDouble(dm_tb_efforts_.getValueAt(_n - 1, 1).toString()); } catch (final ArrayIndexOutOfBoundsException _e1) { WSpy.Error(OscarMsg.ERR035); } Modified: trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/oscar/OscarFilleNoteDeCalculs.java =================================================================== --- trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/oscar/OscarFilleNoteDeCalculs.java 2008-09-10 07:30:34 UTC (rev 3903) +++ trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/oscar/OscarFilleNoteDeCalculs.java 2008-09-10 07:40:16 UTC (rev 3904) @@ -399,15 +399,15 @@ return false; } if (file != null) { - try { - appli_.getImplementation().displayURL(file.toURL().toString()); - } catch (final MalformedURLException e) { + //try { + appli_.getImplementation().displayURL(file.getAbsolutePath()); + /*} catch (final MalformedURLException e) { if (CtuluLibMessage.DEBUG) { e.printStackTrace(); } WSpy.Error("L'adresse du fichier " + file.getAbsolutePath() + " est invalide"); return false; - } + }*/ } return true; } else if (_mode.equals("todisk")) { Modified: trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/oscar/OscarLib.java =================================================================== --- trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/oscar/OscarLib.java 2008-09-10 07:30:34 UTC (rev 3903) +++ trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/oscar/OscarLib.java 2008-09-10 07:40:16 UTC (rev 3904) @@ -665,9 +665,9 @@ System.out.println("OscarImplementation.informationsSoftware().baseManUrl(): "+OscarImplementation.informationsSoftware().man); System.out.println("OscarImplementation.informationsSoftware().name.toLowerCase(): "+OscarImplementation.informationsSoftware().name.toLowerCase()); - final String _u = "file:" + final String _u = //"file:"+ //+ OscarImplementation.informationsSoftware().man - +cheminAide() + cheminAide() //+ OscarImplementation.informationsSoftware().name.toLowerCase()+ "/" + _url; return _u; @@ -1804,9 +1804,10 @@ //--cas 3: plus de 2 chiffres apres la virgule: on formatte - String formatC="0.000"; + //String formatC="0.000"; - return new DecimalFormat(formatC).format(nombre); + //return new DecimalFormat(formatC).format(nombre); + return Double.toString(Math.round(nombre*1000)/1000); } public static String formatterNombre2(double nombre) @@ -1820,9 +1821,10 @@ //--cas 3: plus de 2 chiffres apres la virgule: on formatte - String formatC="0.000000000"; + //String formatC="0.000000000"; - return new DecimalFormat(formatC).format(nombre); + //return new DecimalFormat(formatC).format(nombre); + return Double.toString(Math.round(nombre*1000000000)/1000000000); } } Modified: trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/oscar/OscarMomentsFlechissantsResultatsBruts.java =================================================================== --- trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/oscar/OscarMomentsFlechissantsResultatsBruts.java 2008-09-10 07:30:34 UTC (rev 3903) +++ trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/oscar/OscarMomentsFlechissantsResultatsBruts.java 2008-09-10 07:40:16 UTC (rev 3904) @@ -119,7 +119,7 @@ * */ protected void sauvegarder() { - final String _f = OscarLib.getFileChoosenByUser(this, "Exporter les donn\xE9es bruts", "Exporter", OscarLib.USER_HOME + final String _f = OscarLib.getFileChoosenByUser(this, "Exporter les donn\xE9es brutes", "Exporter", OscarLib.USER_HOME + "moments.csv"); String _txt = ""; if (_f == null) { @@ -160,8 +160,8 @@ SPointCoteValeur _p = null; try { _p = new SPointCoteValeur(); - _p.cote = ((Double) dm_tb_moments_.getValueAt(_n - 1, 0)).doubleValue(); - _p.valeur = ((Double) dm_tb_moments_.getValueAt(_n - 1, 1)).doubleValue(); + _p.cote = Double.parseDouble(dm_tb_moments_.getValueAt(_n - 1, 0).toString()); + _p.valeur = Double.parseDouble(dm_tb_moments_.getValueAt(_n - 1, 1).toString()); } catch (final ArrayIndexOutOfBoundsException _e1) { WSpy.Error(OscarMsg.ERR035); } Modified: trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/oscar/OscarPredimensionnementResultatsBruts.java =================================================================== --- trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/oscar/OscarPredimensionnementResultatsBruts.java 2008-09-10 07:30:34 UTC (rev 3903) +++ trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/oscar/OscarPredimensionnementResultatsBruts.java 2008-09-10 07:40:16 UTC (rev 3904) @@ -109,7 +109,7 @@ * */ protected void sauvegarder() { - final String _f = OscarLib.getFileChoosenByUser(this, "Exporter les donn\xE9es bruts", "Exporter", OscarLib.USER_HOME + final String _f = OscarLib.getFileChoosenByUser(this, "Exporter les donn\xE9es brutes", "Exporter", OscarLib.USER_HOME + "predimensionnement.csv"); String _txt = ""; if (_f == null) { @@ -148,22 +148,22 @@ public SResultatsPredimensionnement getResultatsPredimensionnement() { SPointCoteValeur _p = null; final SResultatsPredimensionnement _sr = new SResultatsPredimensionnement(); - _sr.cotePressionNull = ((Double) dm_tb_predim_.getValueAt(0, 1)).doubleValue(); - _sr.pointButeeSimple = ((Double) dm_tb_predim_.getValueAt(1, 1)).doubleValue(); - _sr.pied20Pourcent = ((Double) dm_tb_predim_.getValueAt(2, 1)).doubleValue(); - _sr.piedContreButee = ((Double) dm_tb_predim_.getValueAt(3, 1)).doubleValue(); + _sr.cotePressionNull = Double.parseDouble(dm_tb_predim_.getValueAt(0, 1).toString()); + _sr.pointButeeSimple = Double.parseDouble(dm_tb_predim_.getValueAt(1, 1).toString()); + _sr.pied20Pourcent = Double.parseDouble(dm_tb_predim_.getValueAt(2, 1).toString()); + _sr.piedContreButee = Double.parseDouble(dm_tb_predim_.getValueAt(3, 1).toString()); _p = new SPointCoteValeur(); - _p.cote = ((Double) dm_tb_predim_.getValueAt(4, 1)).doubleValue(); - _p.valeur = ((Double) dm_tb_predim_.getValueAt(5, 1)).doubleValue(); + _p.cote = Double.parseDouble(dm_tb_predim_.getValueAt(4, 1).toString()); + _p.valeur = Double.parseDouble(dm_tb_predim_.getValueAt(5, 1).toString()); _sr.momentMaximum = _p; _p = new SPointCoteValeur(); - _p.cote = ((Double) dm_tb_predim_.getValueAt(6, 1)).doubleValue(); - _p.valeur = ((Double) dm_tb_predim_.getValueAt(7, 1)).doubleValue(); + _p.cote = Double.parseDouble(dm_tb_predim_.getValueAt(6, 1).toString()); + _p.valeur = Double.parseDouble(dm_tb_predim_.getValueAt(7, 1).toString()); _sr.momentMinimum = _p; if (tb_predim_.getRowCount() > 8) { - _sr.encastrement = ((Double) dm_tb_predim_.getValueAt(8, 1)).doubleValue(); - _sr.reactionAncrage = ((Double) dm_tb_predim_.getValueAt(9, 1)).doubleValue(); - _sr.niveauAncrage = ((Double) dm_tb_predim_.getValueAt(10, 1)).doubleValue(); + _sr.encastrement = Double.parseDouble(dm_tb_predim_.getValueAt(8, 1).toString()); + _sr.reactionAncrage = Double.parseDouble(dm_tb_predim_.getValueAt(9, 1).toString()); + _sr.niveauAncrage = Double.parseDouble(dm_tb_predim_.getValueAt(10, 1).toString()); } else { _sr.encastrement = VALEUR_NULLE.value; _sr.niveauAncrage = VALEUR_NULLE.value; Modified: trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/oscar/WHtmlContent.java =================================================================== --- trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/oscar/WHtmlContent.java 2008-09-10 07:30:34 UTC (rev 3903) +++ trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/oscar/WHtmlContent.java 2008-09-10 07:40:16 UTC (rev 3904) @@ -82,7 +82,7 @@ final String _alt) { final String _img = fichier_ + "files" + OscarLib.FILE_SEPARATOR + _imgname; OscarLib.exportGraphScriptToGif(_script, _img); - html_ += "<p><a href=\"" + _img + "\" target=\"_blank\"><img src=\"" + _img + "\" border=\"0\" " + html_ += "<p><a href=\"" + fichier_.substring(fichier_.lastIndexOf(OscarLib.FILE_SEPARATOR)+1)+"files/"+_imgname + "\" target=\"_blank\"><img src=\"" + fichier_.substring(fichier_.lastIndexOf(OscarLib.FILE_SEPARATOR)+1)+"files/"+_imgname + "\" border=\"0\" " + ((_w == -1) ? "" : ("width=\"" + _w + "\"")) + " " + ((_h == -1) ? "" : ("height=\"" + _h + "\"")) + " alt=\"" + _alt + "\"></a></p>" + OscarLib.LINE_SEPARATOR; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fa...@us...> - 2008-09-10 07:30:32
|
Revision: 3903 http://fudaa.svn.sourceforge.net/fudaa/?rev=3903&view=rev Author: fargeix Date: 2008-09-10 07:30:34 +0000 (Wed, 10 Sep 2008) Log Message: ----------- Corrections mineures (principalement : orthographe, syntaxe, accentuation, etc.) Modified Paths: -------------- trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/GenarrListeNavires.java trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3AlgorithmeAttentesGenerales.java trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3FrameGenerationRappelDonnees.java trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3GenereNoteHtml.java trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3PanelReglesCroisementBief.java trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3PanelReglestrematageBief.java trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3ResultatsAttenteTrajet.java trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3ResultatsDureesParcours.java Modified: trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/GenarrListeNavires.java =================================================================== --- trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/GenarrListeNavires.java 2008-09-09 18:41:08 UTC (rev 3902) +++ trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/GenarrListeNavires.java 2008-09-10 07:30:34 UTC (rev 3903) @@ -88,7 +88,7 @@ // structure finale qui contiendra la totalit\xE9 des navires FortranReader fr; - int cpt=0; + int cpt=1; try { fr = new FortranReader(new FileReader(nomFichier)); Modified: trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3AlgorithmeAttentesGenerales.java =================================================================== --- trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3AlgorithmeAttentesGenerales.java 2008-09-09 18:41:08 UTC (rev 3902) +++ trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3AlgorithmeAttentesGenerales.java 2008-09-10 07:30:34 UTC (rev 3903) @@ -1259,7 +1259,7 @@ donnees_.params_.ResultatsCompletsSimulation.AttentesTousElementsToutesCategories = donnees_.params_.ResultatsCompletsSimulation.AttentesTousElementsToutesCategoriesSens2; } else if (sensCirculation == 2) { - // sens sortant: alors on charge la structure des r\xE9sultats dans le sa\xE9ns sortant + // deux sens cumul\xE9s donnees_.params_.ResultatsCompletsSimulation.AttentesTousElementsToutesCategories = donnees_.params_.ResultatsCompletsSimulation.AttentesTousElementsToutesCategoriesLes2Sens; } }// fin methode statique de calcul Modified: trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3FrameGenerationRappelDonnees.java =================================================================== --- trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3FrameGenerationRappelDonnees.java 2008-09-09 18:41:08 UTC (rev 3902) +++ trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3FrameGenerationRappelDonnees.java 2008-09-10 07:30:34 UTC (rev 3903) @@ -42,7 +42,7 @@ import com.memoire.bu.BuPanel; /** - * classe qui g�n�re un rappel des diff�rentes donn�es. + * classe qui g\xE9n\xE8re un rappel des diff\xE9rentes donn\xE9es. * * @version $Version$ * @author hadoux @@ -68,7 +68,7 @@ private final BuButton exportationHTML_ = new BuButton(FudaaResource.FUDAA.getIcon("crystal_generer"), "Exportation rapport"); private final BuButton choisirCouleur_ = new BuButton("couleur sommaire"); - private final BuButton apercu_ = new BuButton(FudaaResource.FUDAA.getIcon("crystal_previsualiser"),"Aper�u"); + private final BuButton apercu_ = new BuButton(FudaaResource.FUDAA.getIcon("crystal_previsualiser"),"Aper\xE7u"); /** * panel contenant les boutons de commande. */ @@ -79,7 +79,7 @@ /** - * panel contenant les informations � selectionner ce panel se modifie en fonction du choix de l'utilisateur dans la + * panel contenant les informations \xE0 selectionner ce panel se modifie en fonction du choix de l'utilisateur dans la * hierarchie de l'arbre */ BuPanel selectionPanel_ = new BuPanel(); @@ -89,24 +89,24 @@ JTextField titre_ = new JTextField(20); JTextArea ZoneText_ = new JTextArea(2, 30); - JCheckBox dg_ = new JCheckBox("Ins�rer les donn�es g�n�rales", true); + JCheckBox dg_ = new JCheckBox("Ins\xE9rer les donn\xE9es g\xE9n\xE9rales", true); JCheckBox dgNbJ_ = new JCheckBox("Afficher le nombre de jours de la simulation", true); JCheckBox dgGraine_ = new JCheckBox("Afficher la graine d'initialisation", true); - JCheckBox gare_ = new JCheckBox("Ins�rer les gares", true); + JCheckBox gare_ = new JCheckBox("Ins\xE9rer les gares", true); - JCheckBox topo2_ = new JCheckBox("Ins�rer les topologies des biefs", true); + JCheckBox topo2_ = new JCheckBox("Ins\xE9rer les topologies des biefs", true); - JCheckBox topo4_ = new JCheckBox("Ins�rer les topologies des ecluses", true); - JCheckBox topo5_ = new JCheckBox("Ins�rer le mod�le du r�seau", true); + JCheckBox topo4_ = new JCheckBox("Ins\xE9rer les topologies des ecluses", true); + JCheckBox topo5_ = new JCheckBox("Ins\xE9rer le mod\xE8le du r\xE9seau", true); - JCheckBox regle1_ = new JCheckBox("Ins�rer les r�gles de croisement des biefs", true); - JCheckBox regle2_ = new JCheckBox("Ins�rer les r�gles de trematage des biefs", true); - JCheckBox regle3_ = new JCheckBox("Ins�rer les vitesses des bateaux dans les biefs", true); - JCheckBox regle4_ = new JCheckBox("Ins�rer les dur�es de manoeuvres dans les �cluses", true); + JCheckBox regle1_ = new JCheckBox("Ins\xE9rer les r\xE8gles de croisement des biefs", true); + JCheckBox regle2_ = new JCheckBox("Ins\xE9rer les r\xE8gles de trematage des biefs", true); + JCheckBox regle3_ = new JCheckBox("Ins\xE9rer les vitesses des bateaux dans les biefs", true); + JCheckBox regle4_ = new JCheckBox("Ins\xE9rer les dur\xE9es de manoeuvres dans les \xE9cluses", true); - JCheckBox nav_ = new JCheckBox("Ins�rer les cat�gories de bateaux", true); + JCheckBox nav_ = new JCheckBox("Ins\xE9rer les cat\xE9gories de bateaux", true); JCheckBox navPrio_ = new JCheckBox("priorite", true); JCheckBox navGare_ = new JCheckBox("gare de depart", true); JCheckBox navLong_ = new JCheckBox("longueur", true); @@ -116,12 +116,12 @@ JCheckBox navCr_ = new JCheckBox("creneaux", false); JCheckBox navVitesses_ = new JCheckBox("vitesses", false); - JCheckBox chenal_ = new JCheckBox("Ins�rer les biefs", true); + JCheckBox chenal_ = new JCheckBox("Ins\xE9rer les biefs", true); JCheckBox chenalPro_ = new JCheckBox("Hauteur d'eau du bief", true); JCheckBox chenalMar_ = new JCheckBox("Vitesse autorisee", true); JCheckBox chenalCr_ = new JCheckBox("inserer les creneaux", true); - JCheckBox ecluse_ = new JCheckBox("Ins�rer les �cluses", true); + JCheckBox ecluse_ = new JCheckBox("Ins\xE9rer les \xE9cluses", true); JCheckBox ecltaille_ = new JCheckBox("caracteristique de l ecluse", true); JCheckBox eclDur_ = new JCheckBox("duree d eclusee, fausse bassinnee", true); JCheckBox ecluseIndispo_ = new JCheckBox("les indisponibilites", true); @@ -141,7 +141,7 @@ */ Sinavi3FrameGenerationRappelDonnees(final Sinavi3DataSimulation _donnees) { - super("Rappel des donn�es", true, true, true, true); + super("Rappel des donn\xE9es", true, true, true, true); donnees_ = _donnees; this.setSize(720, 630); @@ -157,9 +157,9 @@ DefaultMutableTreeNode categorie; DefaultMutableTreeNode feuille; // premiere categorie de l arbre - categorie = new DefaultMutableTreeNode("Pr�sentation"); + categorie = new DefaultMutableTreeNode("Pr\xE9sentation"); sommet.add(categorie); - categorie = new DefaultMutableTreeNode("G�n�ralit�s"); + categorie = new DefaultMutableTreeNode("G\xE9n\xE9ralit\xE9s"); sommet.add(categorie); categorie = new DefaultMutableTreeNode("Saisie"); @@ -172,27 +172,27 @@ feuille = new DefaultMutableTreeNode("Ecluses"); categorie.add(feuille); - feuille = new DefaultMutableTreeNode("Cat�gories de bateaux"); + feuille = new DefaultMutableTreeNode("Cat\xE9gories de bateaux"); categorie.add(feuille); - categorie = new DefaultMutableTreeNode("Topologie du r�seau"); + categorie = new DefaultMutableTreeNode("Topologie du r\xE9seau"); sommet.add(categorie); feuille = new DefaultMutableTreeNode("Topologie des biefs"); categorie.add(feuille); - feuille = new DefaultMutableTreeNode("Topologie des �cluses"); + feuille = new DefaultMutableTreeNode("Topologie des \xE9cluses"); categorie.add(feuille); - feuille = new DefaultMutableTreeNode("Mod�le du r�seau"); + feuille = new DefaultMutableTreeNode("Mod\xE8le du r\xE9seau"); categorie.add(feuille); - categorie = new DefaultMutableTreeNode("R�gles de navigation"); + categorie = new DefaultMutableTreeNode("R\xE8gles de navigation"); sommet.add(categorie); feuille = new DefaultMutableTreeNode("Croisement dans les biefs"); categorie.add(feuille); - feuille = new DefaultMutableTreeNode("Tr�matage dans les biefs"); + feuille = new DefaultMutableTreeNode("Tr\xE9matage dans les biefs"); categorie.add(feuille); feuille = new DefaultMutableTreeNode("Vitesse dans les biefs"); categorie.add(feuille); - feuille = new DefaultMutableTreeNode("Dur�es de manoeuvres dans les �cluses"); + feuille = new DefaultMutableTreeNode("Dur\xE9es de manoeuvres dans les \xE9cluses"); categorie.add(feuille); arbre_.expandRow(0); @@ -211,11 +211,11 @@ /******************************************************************************************************************* * Affichage du panel de boutons ******************************************************************************************************************/ - this.quitter_.setToolTipText("Fermer la fen�tre"); + this.quitter_.setToolTipText("Fermer la fen\xEAtre"); this.quitter_.addActionListener(this); - exportationHTML_.setToolTipText("G�n�rer les donn�es saisies au format HTML"); + exportationHTML_.setToolTipText("G\xE9n\xE9rer les donn\xE9es saisies au format HTML"); exportationHTML_.setEnabled(false); - apercu_.setToolTipText("Aper�u du rapport g�n�r� en html"); + apercu_.setToolTipText("Aper\xE7u du rapport g\xE9n\xE9r\xE9 en html"); exportationHTML_.addActionListener(this); apercu_.addActionListener(this); choisirCouleur_.addActionListener(this); @@ -235,7 +235,7 @@ /******************************************************************************************************************* * remplissage panneau central ******************************************************************************************************************/ - // actualisation du panneau de donn�es + // actualisation du panneau de donn\xE9es auteur_.setText("Inconnu"); this.titre_.setText("Simulation de trafic"); @@ -261,7 +261,7 @@ conteneur.setDividerLocation(210); conteneur.setDividerSize(1); this.getContentPane().add(conteneur, BorderLayout.CENTER); - actualiser("Pr�sentation"); + actualiser("Pr\xE9sentation"); } @@ -289,11 +289,11 @@ String titre = "truc"; this.selectionPanel_.removeAll(); - this.selectionPanel_.setBorder(BorderFactory.createTitledBorder(Sinavi3Bordures.compound_, "Param�tres du rapport")); + this.selectionPanel_.setBorder(BorderFactory.createTitledBorder(Sinavi3Bordures.compound_, "Param\xE8tres du rapport")); // this.selectionPanel_=new BuPanel(); this.selectionPanel_.setLayout(new BorderLayout()); selectionPanel_.add(visionneurArbre, BorderLayout.WEST); - // format tableau pour affichage des caract�ristiques + // format tableau pour affichage des caract\xE9ristiques Box table = Box.createVerticalBox(); this.selectionPanel_.add(new JScrollPane(table), BorderLayout.CENTER); @@ -303,7 +303,7 @@ chenal_.addActionListener(this); ecluse_.addActionListener(this); - if (choix.equals("G�n�ralit�s")) { + if (choix.equals("G\xE9n\xE9ralit\xE9s")) { //table.setLayout(new GridLayout(10, 1)); table.add(dg_); @@ -311,11 +311,11 @@ table.add(dgGraine_); bordurea = BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(EtchedBorder.LOWERED), - "Donn�es g�n�rales"); + "Donn\xE9es g\xE9n\xE9rales"); table.setBorder(bordurea); - } else if (choix.equals("Pr�sentation")) + } else if (choix.equals("Pr\xE9sentation")) { - titre = "Pr�sentation"; + titre = "Pr\xE9sentation"; //table.setLayout(new GridLayout(5, 1)); @@ -335,7 +335,7 @@ } else if (choix.equals("Gares"))// panel de selection des gares { - titre = "Param�tres gares"; + titre = "Param\xE8tres gares"; //table.setLayout(new GridLayout(5, 1)); table.add(table1); table.add(table2); @@ -356,7 +356,7 @@ table.add(chenalCr_); */ bordurea = BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(EtchedBorder.LOWERED), - "Param�tres biefs"); + "Param\xE8tres biefs"); table.setBorder(bordurea); } else @@ -370,7 +370,7 @@ table.add(ecluseCr_); */ bordurea = BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(EtchedBorder.LOWERED), - "Param�tres �cluses"); + "Param\xE8tres \xE9cluses"); table.setBorder(bordurea); } else @@ -388,9 +388,9 @@ bordurea = BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(EtchedBorder.LOWERED), titre); table1.setBorder(bordurea); - } else if (choix.equals("Topologie des �cluses"))// panel de selection des gares + } else if (choix.equals("Topologie des \xE9cluses"))// panel de selection des gares { - titre = "Topologie des �cluses"; + titre = "Topologie des \xE9cluses"; //table.setLayout(new GridLayout(5, 1)); table.add(table1); table.add(table2); @@ -401,9 +401,9 @@ bordurea = BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(EtchedBorder.LOWERED), titre); table1.setBorder(bordurea); - } else if (choix.equals("Mod�le du r�seau"))// panel de selection des gares + } else if (choix.equals("Mod\xE8le du r\xE9seau"))// panel de selection des gares { - titre = "Mod�le du r�seau"; + titre = "Mod\xE8le du r\xE9seau"; //table.setLayout(new GridLayout(5, 1)); table.add(table1); table.add(table2); @@ -414,9 +414,9 @@ bordurea = BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(EtchedBorder.LOWERED), titre); table1.setBorder(bordurea); - } else if (choix.equals("Tr�matage dans les biefs"))// panel de selection des gares + } else if (choix.equals("Tr\xE9matage dans les biefs"))// panel de selection des gares { - titre = "Tr�matage dans les biefs"; + titre = "Tr\xE9matage dans les biefs"; //table.setLayout(new GridLayout(5, 1)); table.add(table1); table.add(table2); @@ -440,9 +440,9 @@ bordurea = BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(EtchedBorder.LOWERED), titre); table1.setBorder(bordurea); - } else if (choix.equals("Dur�es de manoeuvres dans les �cluses"))// panel de selection des gares + } else if (choix.equals("Dur\xE9es de manoeuvres dans les \xE9cluses"))// panel de selection des gares { - titre = "Dur�es de manoeuvres dans les �cluses"; + titre = "Dur\xE9es de manoeuvres dans les \xE9cluses"; //table.setLayout(new GridLayout(5, 1)); table.add(table1); table.add(table2); @@ -466,9 +466,9 @@ bordurea = BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(EtchedBorder.LOWERED), titre); table1.setBorder(bordurea); - } else if (choix.equals("Cat�gories de bateaux")) { + } else if (choix.equals("Cat\xE9gories de bateaux")) { bordurea = BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(EtchedBorder.LOWERED), - "Param�tres cat�gories de bateaux"); + "Param\xE8tres cat\xE9gories de bateaux"); table.setBorder(bordurea); //table.setLayout(new GridLayout(13, 1)); table.add(nav_); @@ -489,7 +489,7 @@ im = FudaaResource.FUDAA.getIcon("crystal_commentaire"); final JLabel image = new JLabel(im); l1.add(image); - l1.add(new JLabel("S�lectionnez les param�tres � faire figurer dans le rapport")); + l1.add(new JLabel("S\xE9lectionnez les param\xE8tres \xE0 faire figurer dans le rapport")); final JPanel l2 = new JPanel(); l2.add(new JLabel("puis cliquez sur le bouton d'exportation.")); aide.add(l1); @@ -521,7 +521,7 @@ // si c est une feuille if (node.isLeaf()) { - // on recherche la feuille selectionn�e et on modifie le panel en cons�quence: + // on recherche la feuille selectionn\xE9e et on modifie le panel en cons\xE9quence: actualiser(nodeInfo); @@ -642,7 +642,7 @@ if (returnVal == JFileChooser.APPROVE_OPTION) { // creation du rapport //SiporGenereNoteHtml.rappelDonnees(fc.getSelectedFile(), this, this.donnees_); - //ecriture du contenu du rapport g�n�r� + //ecriture du contenu du rapport g\xE9n\xE9r\xE9 try { @@ -654,24 +654,25 @@ (new File(this.fichierImagePort_)).delete(); - //-- ETAPE 3: recuperer le fichier du rapport a g�n�rer --// + //-- ETAPE 3: recuperer le fichier du rapport a g\xE9n\xE9rer --// File file =CtuluLibFile.appendExtensionIfNeeded(fc.getSelectedFile(), "html"); - //-- ETAPE 4: g�n�rer l'image du port en ajoutant une extension .jpg --// + //-- ETAPE 4: g\xE9n\xE9rer l'image du port en ajoutant une extension .jpg --// String nouveauCodeHtmlFichierPort=Sinavi3GenereNoteHtml.creerModele(donnees_,this,file.getAbsolutePath()+".jpg"); + nouveauCodeHtmlFichierPort=nouveauCodeHtmlFichierPort.substring(0, nouveauCodeHtmlFichierPort.indexOf("src=")+5)+file.getName()+".jpg\">"+nouveauCodeHtmlFichierPort.substring(nouveauCodeHtmlFichierPort.indexOf("</img>"), nouveauCodeHtmlFichierPort.length()); //-- ETAPE 5: realiser un matching sur le rapport de sipor: --// //-- le but est de remplacer la ligne de commande d'insertion de l'image --// - String nouveauContenuEditeur=contenuEditeur.substring(0, contenuEditeur.indexOf("<img")-1)+nouveauCodeHtmlFichierPort+contenuEditeur.substring(contenuEditeur.indexOf(this.fichierImagePort_)+fichierImagePort_.length()+20, contenuEditeur.length()); + String nouveauContenuEditeur=contenuEditeur.substring(0, contenuEditeur.indexOf("<img")-1)+nouveauCodeHtmlFichierPort+contenuEditeur.substring(contenuEditeur.indexOf(this.fichierImagePort_)+fichierImagePort_.length()+31, contenuEditeur.length()); - //-- ETAPE 6: enregistrement du nouveau fichier html r�sultata du matching --// + //-- ETAPE 6: enregistrement du nouveau fichier html r\xE9sultata du matching --// final FileWriter fw = new FileWriter(file); fw.write(nouveauContenuEditeur, 0, nouveauContenuEditeur.length()); fw.flush(); fw.close(); } catch (final IOException _e1) { new BuDialogError(donnees_.application_.getApp(),donnees_.application_.isSinavi_, - "Impossible d'�crire le fichier sur le disque.") + "Impossible d'\xE9crire le fichier sur le disque.") .activate(); return ; @@ -679,7 +680,7 @@ // ouverture de la note final File file = CtuluLibFile.appendExtensionIfNeeded(fc.getSelectedFile(), "html"); - new BuDialogMessage(donnees_.application_.getApp(), Sinavi3Implementation.isSinavi_,"Fichier correctement g�n�r� � l'emplacement\n"+file.getAbsolutePath()).activate(); + new BuDialogMessage(donnees_.application_.getApp(), Sinavi3Implementation.isSinavi_,"Fichier correctement g\xE9n\xE9r\xE9 \xE0 l'emplacement\n"+file.getAbsolutePath()).activate(); } Modified: trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3GenereNoteHtml.java =================================================================== --- trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3GenereNoteHtml.java 2008-09-09 18:41:08 UTC (rev 3902) +++ trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3GenereNoteHtml.java 2008-09-10 07:30:34 UTC (rev 3903) @@ -10,8 +10,8 @@ import com.memoire.bu.BuDialogError; /** - * Classe qui permet de g�n�rer un fichier HTML - * par exemple un rappel des donn�es + * Classe qui permet de g\xE9n\xE9rer un fichier HTML + * par exemple un rappel des donn\xE9es *@version $Version$ * @author hadoux * @@ -26,7 +26,7 @@ //chaine contenant le rapport String rapport=""; - //indice qui correponda � l'indice de la partie + //indice qui correponda \xE0 l'indice de la partie int indicePartie=1; int chapitre=1; @@ -43,19 +43,19 @@ - rapport+="<br><br><h2>1.les parametres </h2><br><br>"; - //insertion des donn�"es generales + rapport+="<br><br><h2>1. Les param\xE8tres</h2><br><br>"; + //insertion des donn\xE9es generales if(_f.dg_.isSelected()) { //ecriture du tableau des chenaux: - rapport+=creerPartie(1,chapitre++,indicePartie++,"les donnees generales"); + rapport+=creerPartie(1,chapitre++,indicePartie++,". Donn\xE9es g\xE9n\xE9rales"); rapport+=creerDonneesgenerales(_d, _f); } // insertion des gares if(_f.gare_.isSelected()) { //ecriture du tableau des chenaux: - rapport+=creerPartie(1,chapitre++,indicePartie++,"les gares"); + rapport+=creerPartie(1,chapitre++,indicePartie++,". Gares"); rapport+=creerTableauGares(_d,_f); } @@ -64,7 +64,7 @@ if(_f.chenal_.isSelected()) { //ecriture du tableau des chenaux: - rapport+=creerPartie(1,chapitre++,indicePartie++,"les biefs"); + rapport+=creerPartie(1,chapitre++,indicePartie++,". Biefs"); rapport+=creerTableauChenaux(_d,_f); } @@ -74,7 +74,7 @@ if(_f.ecluse_.isSelected()) { //ecriture du tableau des cercles d evitage: - rapport+=creerPartie(1,chapitre++,indicePartie++,"les ecluses"); + rapport+=creerPartie(1,chapitre++,indicePartie++,". Ecluses"); rapport+=creerTableauEcluses(_d,_f); } @@ -85,36 +85,36 @@ if(_f.nav_.isSelected()) { //ecriture du tableau des cercles d evitage: - rapport+=creerPartie(1,chapitre++,indicePartie++,"les categories de bateau"); + rapport+=creerPartie(1,chapitre++,indicePartie++,". Cat\xE9gories de bateaux"); rapport+=creerTableauCategorie(_d,_f); } // leeeeeeeeeessssssssssss topologies if((_f.topo2_.isSelected() ||_f.topo4_.isSelected() ||_f.topo5_.isSelected())) - rapport+="<br><br><h2>2.la topologie </h2><br><br>"; + rapport+="<br><br><h2>2. La topologie</h2><br><br>"; chapitre=1; if(_f.topo2_.isSelected()) { - rapport+=creerPartie(2,chapitre++,indicePartie++,"topologie des biefs"); + rapport+=creerPartie(2,chapitre++,indicePartie++,". Topologie des biefs"); rapport+=creerTableauTopologieChenaux(_d,_f); } if(_f.topo4_.isSelected()) { - rapport+=creerPartie(2,chapitre++,indicePartie++,"topologie des ecluses"); + rapport+=creerPartie(2,chapitre++,indicePartie++,". Topologie des \xE9cluses"); rapport+=creerTableauTopologieEcluses(_d,_f); } if(_f.topo5_.isSelected()) { - rapport+=creerPartie(2,chapitre++,indicePartie++,"modele du reseau"); + rapport+=creerPartie(2,chapitre++,indicePartie++,". Mod\xE9lisation du r\xE9seau"); /* new BuDialogMessage(_d.application_.getApp(),_d.application_.isSipor_, - "Veuillez specifier l'image du port � exporter:") + "Veuillez specifier l'image du port \xE0 exporter:") .activate(); */ rapport+=creerModele(_d,_f,_fichier.getAbsolutePath()); @@ -129,13 +129,13 @@ else partie=2; if((_f.regle1_.isSelected() ||_f.regle2_.isSelected() ||_f.regle3_.isSelected() )) - rapport+="<br><br><h2>"+partie+".les regles de navigation </h2><br><br>"; + rapport+="<br><br><h2>"+partie+". Les r\xE8gles de navigation</h2><br><br>"; chapitre=1; if(_f.regle1_.isSelected()) { - rapport+=creerPartie(partie,chapitre++,indicePartie++,"regles de croisement des biefs"); + rapport+=creerPartie(partie,chapitre++,indicePartie++,". R\xE8gles de croisement dans les biefs"); rapport+=creerTableauCroisementChenaux(_d,_f); } @@ -143,14 +143,14 @@ if(_f.regle3_.isSelected()) { - rapport+=creerPartie(partie,chapitre++,indicePartie++,"vitesse des bateaux dans les biefs (km/h)"); + rapport+=creerPartie(partie,chapitre++,indicePartie++,". Vitesse des bateaux dans les biefs (km/h)"); rapport+=creerTableauDureeChenaux(_d,_f); } - //ecriture du contenu du rapport g�n�r� + //ecriture du contenu du rapport g\xE9n\xE9r\xE9 try { File file =CtuluLibFile.appendExtensionIfNeeded(_fichier, "html"); @@ -160,7 +160,7 @@ fw.close(); } catch (final IOException _e1) { new BuDialogError(_d.application_.getApp(),_d.application_.isSinavi_, - "Impossible d'�crire le fichier sur le disque.") + "Impossible d'\xE9crire le fichier sur le disque.") .activate(); return ; @@ -177,12 +177,11 @@ //chaine contenant le rapport String rapport=""; - //indice qui correponda � l'indice de la partie + //indice qui correponda \xE0 l'indice de la partie int indicePartie=1; int chapitre=1; - //creation d'un titre rapport+=creertitre(_f.titre_.getText(),_f.auteur_.getText(),_f.ZoneText_.getText()); @@ -194,19 +193,19 @@ - rapport+="<br><br><h2>1.les parametres </h2><br><br>"; - //insertion des donn�"es generales + rapport+="<br><br><h2>1. Les param\xE8tres</h2><br><br>"; + //insertion des donn\xE9es generales if(_f.dg_.isSelected()) { //ecriture du tableau des chenaux: - rapport+=creerPartie(1,chapitre++,indicePartie++,"les donnees generales"); + rapport+=creerPartie(1,chapitre++,indicePartie++,"Donn\xE9es g\xE9n\xE9rales"); rapport+=creerDonneesgenerales(_d, _f); } // insertion des gares if(_f.gare_.isSelected()) { //ecriture du tableau des chenaux: - rapport+=creerPartie(1,chapitre++,indicePartie++,"les gares"); + rapport+=creerPartie(1,chapitre++,indicePartie++,"Gares"); rapport+=creerTableauGares(_d,_f); } @@ -215,7 +214,7 @@ if(_f.chenal_.isSelected()) { //ecriture du tableau des chenaux: - rapport+=creerPartie(1,chapitre++,indicePartie++,"les biefs"); + rapport+=creerPartie(1,chapitre++,indicePartie++,"Biefs"); rapport+=creerTableauChenaux(_d,_f); } @@ -225,7 +224,7 @@ if(_f.ecluse_.isSelected()) { //ecriture du tableau des cercles d evitage: - rapport+=creerPartie(1,chapitre++,indicePartie++,"les ecluses"); + rapport+=creerPartie(1,chapitre++,indicePartie++,"Ecluses"); rapport+=creerTableauEcluses(_d,_f); } @@ -236,42 +235,42 @@ if(_f.nav_.isSelected()) { //ecriture du tableau des cercles d evitage: - rapport+=creerPartie(1,chapitre++,indicePartie++,"les categories de bateau"); + rapport+=creerPartie(1,chapitre++,indicePartie++,"Cat\xE9gories de bateaux"); rapport+=creerTableauCategorie(_d,_f); } // leeeeeeeeeessssssssssss topologies if((_f.topo2_.isSelected()||_f.topo4_.isSelected() ||_f.topo5_.isSelected())) - rapport+="<br><br><h2>2.la topologie </h2><br><br>"; + rapport+="<br><br><h2>2. La topologie</h2><br><br>"; chapitre=1; if(_f.topo2_.isSelected()) { - rapport+=creerPartie(2,chapitre++,indicePartie++,"topologie des biefs"); + rapport+=creerPartie(2,chapitre++,indicePartie++,"Topologie des biefs"); rapport+=creerTableauTopologieChenaux(_d,_f); } if(_f.topo4_.isSelected()) { - rapport+=creerPartie(2,chapitre++,indicePartie++,"topologie des ecluses"); + rapport+=creerPartie(2,chapitre++,indicePartie++,"Topologie des \xE9cluses"); rapport+=creerTableauTopologieEcluses(_d,_f); } if(_f.topo5_.isSelected()) { - rapport+=creerPartie(2,chapitre++,indicePartie++,"modele du reseau"); + rapport+=creerPartie(2,chapitre++,indicePartie++,"Mod\xE9lisation du r\xE9seau"); /* new BuDialogMessage(_d.application_.getApp(),_d.application_.isSipor_, - "Veuillez specifier l'image du port � exporter:") + "Veuillez specifier l'image du port \xE0 exporter:") .activate(); */ _f.fichierImagePort_=_d.projet_.getFichier()+".jpg"; rapport+=creerModele(_d,_f,_f.fichierImagePort_); - //rapport+="<br /><br /> Aper�u non disponible en mode aper�u, il faut exporter le rapport pour cr�er le fichier image du sch�ma du port"; + //rapport+="<br /><br /> Aper\xE7u non disponible en mode aper\xE7u, il faut exporter le rapport pour cr\xE9er le fichier image du sch\xE9ma du port"; } // les regles de navigations @@ -283,19 +282,19 @@ else partie=2; if((_f.regle1_.isSelected() ||_f.regle2_.isSelected() ||_f.regle3_.isSelected() )) - rapport+="<br><br><h2>"+partie+".les regles de navigation </h2><br><br>"; + rapport+="<br><br><h2>"+partie+". Les r\xE8gles de navigation</h2><br><br>"; chapitre=1; if(_f.regle1_.isSelected()) { - rapport+=creerPartie(partie,chapitre++,indicePartie++,"regles de croisement des biefs"); + rapport+=creerPartie(partie,chapitre++,indicePartie++,"R\xE8gles de croisement dans les biefs"); rapport+=creerTableauCroisementChenaux(_d,_f); } if(_f.regle2_.isSelected()) { - rapport+=creerPartie(partie,chapitre++,indicePartie++,"regles de trematage des biefs"); + rapport+=creerPartie(partie,chapitre++,indicePartie++,"R\xE8gles de tr\xE9matage dand les biefs"); rapport+=creerTableauTrematagesChenaux(_d,_f); } @@ -303,25 +302,22 @@ if(_f.regle3_.isSelected()) { - rapport+=creerPartie(partie,chapitre++,indicePartie++,"Vitesse avalant des biefs (KM/h)"); + rapport+=creerPartie(partie,chapitre++,indicePartie++,"Vitesse des bateaux dans les biefs"); rapport+=creerTableauDureeChenaux(_d,_f); - rapport+=creerPartie(partie,chapitre++,indicePartie++,"Vitesse montant des biefs (KM/h)"); rapport+=creerTableauDureeChenauxMontant(_d,_f); - rapport+=creerPartie(partie,chapitre++,indicePartie++,"Dur�e maneuvre d�faut ecluse entrant (Min.sec)"); + rapport+=creerPartie(partie,chapitre++,indicePartie++,"Dur\xE9e des manoeuvres dans les \xE9cluses"); rapport+=creerTableauDureeManEcluseEntrant(_d,_f); - rapport+=creerPartie(partie,chapitre++,indicePartie++,"Dur�e maneuvre d�faut ecluse sortant (Min.sec)"); rapport+=creerTableauDureeManEcluseSortant(_d,_f); } //-- les trajets des bateaux --// - rapport+=creerPartie(partie,chapitre++,indicePartie++,"Trajets des bateaux"); + rapport+=creerPartie(partie,chapitre++,indicePartie++,"Trajet des bateaux"); rapport+=creerTableauTrajet(_d,_f); - //afficher el rapport dans l editeur _f.editeur.setDocumentText(rapport); @@ -335,59 +331,67 @@ String sommaire=""; int num=1; - sommaire+="<table width=\"50%\" border=0 ><th rowspan=\"2\" ><H2><font color=\"#000000\"> SOMMAIRE </font></H1></th><tr></tr>"; + sommaire+="<div align=\"center\">"; + sommaire+="<table border=\"2\" style=\"border-collapse:collapse\" width=\"75%\"><tr><td>"; + sommaire+="<table width=\"100%\" border=0><th rowspan=\"2\" ><H2><font color=\"#000000\">SOMMAIRE</font></H1></th><tr></tr>"; - sommaire+="<tr><td ><font color=\"#000000\"><h3>1.les parametres </h3></font></td></tr>"; + sommaire+="<tr><td ><font color=\"#000000\"><h3>1. Les param\xE8tres</h3></font></td></tr>"; if(_f.dg_.isSelected()) - sommaire+="<tr><td bgcolor=\"AACCEE\"><font color=\"#000000\"><a href=\"#index"+(num)+"\">1."+(num++)+"<font color=\"#000000\">les donnees generales</font></a></font></td></tr>"; + sommaire+="<tr><td bgcolor=\"AACCEE\"><font color=\"#000000\"><a href=\"#index"+(num)+"\">1."+(num++)+"<font color=\"#000000\">. Donn\xE9es g\xE9n\xE9rales</font></a></font></td></tr>"; if(_f.gare_.isSelected()) - sommaire+="<tr><td bgcolor=\"AACCEE\"><font color=\"#000000\"><a href=\"#index"+(num)+"\">1."+(num++)+"<font color=\"#000000\">les gares </font></a></font></td></tr>"; + sommaire+="<tr><td bgcolor=\"AACCEE\"><font color=\"#000000\"><a href=\"#index"+(num)+"\">1."+(num++)+"<font color=\"#000000\">. Gares</font></a></font></td></tr>"; if(_f.chenal_.isSelected()) - sommaire+="<tr><td bgcolor=\"AACCEE\"><font color=\"#000000\"><a href=\"#index"+(num)+"\">1."+(num++)+"<font color=\"#000000\">les biefs</font></a></font></td></tr>"; + sommaire+="<tr><td bgcolor=\"AACCEE\"><font color=\"#000000\"><a href=\"#index"+(num)+"\">1."+(num++)+"<font color=\"#000000\">. Biefs</font></a></font></td></tr>"; if(_f.ecluse_.isSelected()) - sommaire+="<tr><td bgcolor=\"AACCEE\"><font color=\"#000000\"><a href=\"#index"+(num)+"\">1."+(num++)+"<font color=\"#000000\">les ecluses</font></a></font></td></tr>"; + sommaire+="<tr><td bgcolor=\"AACCEE\"><font color=\"#000000\"><a href=\"#index"+(num)+"\">1."+(num++)+"<font color=\"#000000\">. Ecluses</font></a></font></td></tr>"; if(_f.nav_.isSelected()) - sommaire+="<tr><td bgcolor=\"AACCEE\"><font color=\"#000000\"><a href=\"#index"+(num)+"\">1."+(num++)+"<font color=\"#000000\">les categories de bateaux</font></a></font></td></tr>"; + sommaire+="<tr><td bgcolor=\"AACCEE\"><font color=\"#000000\"><a href=\"#index"+(num)+"\">1."+(num++)+"<font color=\"#000000\">. Cat\xE9gories de bateaux</font></a></font></td></tr>"; int partie=3; if((_f.topo2_.isSelected() ||_f.topo4_.isSelected() ||_f.topo5_.isSelected())) - sommaire+="<tr><td ><font color=\"#000000\"><h3>2.la topologie </h3></font></td></tr>"; + sommaire+="<tr><td><br><font color=\"#000000\"><h3>2. La topologie</h3></font></td></tr>"; else partie=2; int num2=1; if(_f.topo2_.isSelected()) - sommaire+="<tr><td bgcolor=\"AACCEE\"><font color=\"#000000\"><a href=\"#index"+(num++)+"\">2."+(num2++)+"<font color=\"#000000\">topologie des biefs</font></a></font></td></tr>"; + sommaire+="<tr><td bgcolor=\"AACCEE\"><font color=\"#000000\"><a href=\"#index"+(num++)+"\">2."+(num2++)+"<font color=\"#000000\">. Topologie des biefs</font></a></font></td></tr>"; if(_f.topo4_.isSelected()) - sommaire+="<tr><td bgcolor=\"AACCEE\"><font color=\"#000000\"><a href=\"#index"+(num++)+"\">2."+(num2++)+"<font color=\"#000000\">topologie des ecluses</font></a></font></td></tr>"; + sommaire+="<tr><td bgcolor=\"AACCEE\"><font color=\"#000000\"><a href=\"#index"+(num++)+"\">2."+(num2++)+"<font color=\"#000000\">. Topologie des \xE9cluses</font></a></font></td></tr>"; if(_f.topo5_.isSelected()) - sommaire+="<tr><td bgcolor=\"AACCEE\"><font color=\"#000000\"><a href=\"#index"+(num++)+"\">2."+(num2++)+"<font color=\"#000000\">modele du reseau</font></a></font></td></tr>"; + sommaire+="<tr><td bgcolor=\"AACCEE\"><font color=\"#000000\"><a href=\"#index"+(num++)+"\">2."+(num2++)+"<font color=\"#000000\">. Mod\xE9lisation du r\xE9seau</font></a></font></td></tr>"; if((_f.regle1_.isSelected() ||_f.regle2_.isSelected() ||_f.regle3_.isSelected() )) - sommaire+="<tr><td ><font color=\"#000000\"><h3>"+partie+".les regles de navigation </h3></font></td></tr>"; + sommaire+="<tr><td><br><font color=\"#000000\"><h3>"+partie+". Les r\xE8gles de navigation</h3></font></td></tr>"; num2=1; if(_f.regle1_.isSelected()) - sommaire+="<tr><td bgcolor=\"AACCEE\"><font color=\"#000000\"><a href=\"#index"+(num++)+"\">"+partie+"."+(num2++)+"<font color=\"#000000\">croisement des biefs</font></a></font></td></tr>"; + sommaire+="<tr><td bgcolor=\"AACCEE\"><font color=\"#000000\"><a href=\"#index"+(num++)+"\">"+partie+"."+(num2++)+"<font color=\"#000000\">. Croisement dans les biefs</font></a></font></td></tr>"; if(_f.regle2_.isSelected()) - sommaire+="<tr><td bgcolor=\"AACCEE\"><font color=\"#000000\"><a href=\"#index"+(num++)+"\">"+partie+"."+(num2++)+"<font color=\"#000000\">trematages des biefs</font></a></font></td></tr>"; + sommaire+="<tr><td bgcolor=\"AACCEE\"><font color=\"#000000\"><a href=\"#index"+(num++)+"\">"+partie+"."+(num2++)+"<font color=\"#000000\">. Tr\xE9matage dans les biefs</font></a></font></td></tr>"; if(_f.regle3_.isSelected()) - sommaire+="<tr><td bgcolor=\"AACCEE\"><font color=\"#000000\"><a href=\"#index"+(num++)+"\">"+partie+"."+(num2++)+"<font color=\"#000000\">vitesses des bateaux dasn les biefs</font></a></font></td></tr>"; + { + sommaire+="<tr><td bgcolor=\"AACCEE\"><font color=\"#000000\"><a href=\"#index"+(num++)+"\">"+partie+"."+(num2++)+"<font color=\"#000000\">. Vitesse des bateaux dans les biefs</font></a></font></td></tr>"; + } if(_f.regle4_.isSelected()) - sommaire+="<tr><td bgcolor=\"AACCEE\"><font color=\"#000000\"><a href=\"#index"+(num++)+"\">"+partie+"."+(num2++)+"<font color=\"#000000\">durees de manoeuvres des bateaux dans les ecluses</font></a></font></td></tr>"; + { + sommaire+="<tr><td bgcolor=\"AACCEE\"><font color=\"#000000\"><a href=\"#index"+(num++)+"\">"+partie+"."+(num2++)+"<font color=\"#000000\">. Dur\xE9e des manoeuvres dans les \xE9cluses</font></a></font></td></tr>"; + } + sommaire+="<tr><td bgcolor=\"AACCEE\"><font color=\"#000000\"><a href=\"#index"+(num++)+"\">"+partie+"."+(num2++)+"<font color=\"#000000\">. Trajet des bateaux</font></a></font></td></tr>"; + // <tr><td><font color="#3300BB"><a href="#index2"> 2. Chenaux</a></font></td></tr> - sommaire+="</table><br><br><br><br>"; + sommaire+="</table></td></tr></table></div><br><br><br>"; return sommaire; @@ -396,17 +400,17 @@ public static String creertitre(String titre,String auteur,String commentaire) { return - "<table width=\"100%\" border=0 bgcolor=\"#EEEEEEE\" bordercolor=\"000000\"><tr><td><H1><center><font color=\"#000000\">Rappel de donnees</font></center></H1></td></tr></table><br><br>" + + "<table width=\"100%\" border=0 bgcolor=\"#EEEEEEE\" bordercolor=\"000000\"><tr><td><H1><center><font color=\"#000000\">SINAVI - RAPPEL DE DONNEES</font></center></H1></td></tr></table><br><br>" + "<table width=\"100%\" border=0 bgcolor=\"#EEEEEEE\" bordercolor=\"000000\"><tr><td><H1><center><font color=\"#000000\">"+titre+"</font></center></H1></td></tr></table><br><br>" + - "<H3>"+auteur+" </H3><br>" + - "<br>" +commentaire+ - "<br><br>"; + "<H3>Auteur : "+auteur+" </H3><br>" + + "Commentaires \xE9ventuels : " +commentaire+ + "<br><br><br>"; } /** - * Methode qui permet d'�crire un titre sous un format specifique. + * Methode qui permet d'\xE9crire un titre sous un format specifique. * @param num numero de al partie. * @param titre titre de la partie. * @return la chaine coreespondante @@ -426,7 +430,7 @@ //creation du fichier du modele - //creation du dessin si il existe en lancant la fenetre cach�e + //creation du dessin si il existe en lancant la fenetre cach\xE9e _d.application_.activerModelisation(); _d.application_.gestionModelisation_.setVisible(false); @@ -443,7 +447,7 @@ //insertion du modele - chaine+="<br><br><img src=\""+file.getAbsolutePath()+"\"></img><br><br>"; + chaine+="<br><br><img border=1 src=\""+file.getAbsolutePath()+"\"></img><br><br>"; return chaine; @@ -453,14 +457,14 @@ { String chaine=""; - chaine+="<p><p ><table border=1 ><tr>"; + chaine+="<p><p ><table border=1>"; //1 constitution des titres //nom - chaine+="<tr><th bgcolor=\"AACCEE\"> graine d initialisation</th> <td bgcolor=\" #EEEEEEE \">"+_d.params_.donneesGenerales.graine+" </td></tr>"; - chaine+="<tr><th bgcolor=\"AACCEE\"> nombre de jours de la simulation</th> <td bgcolor=\" #EEEEEEE \">"+_d.params_.donneesGenerales.nombreJours+" </td></tr>"; + chaine+="<tr><th bgcolor=\"AACCEE\">Graine d initialisation</th> <td bgcolor=\" #EEEEEEE \">"+_d.params_.donneesGenerales.graine+" </td></tr>"; + chaine+="<tr><th bgcolor=\"AACCEE\">Dur\xE9e de la simulation (jours)</th> <td bgcolor=\" #EEEEEEE \">"+_d.params_.donneesGenerales.nombreJours+" </td></tr>"; /* String jour=""; switch(_d.params_.donneesGenerales.jourDepart) @@ -541,8 +545,8 @@ chaine+="<th rowspan=\"2\" bgcolor=\" #EEEEEEE\">Longueur (m)</th>"; chaine+="<th rowspan=\"2\" bgcolor=\" #EEEEEEE\">Largeur (m)</th>"; chaine+="<th rowspan=\"2\" bgcolor=\" #EEEEEEE\">Vitesse autorisee (km/h)</th>"; - chaine+="<th colspan=\"3\" bgcolor=\" #EEEEEEE\">Crenaux (h.min)</th>"; - chaine+="</tr><tr bgcolor=\" #EEEEEEE\"><th>Creneau 1</th><th>Creneau 2</th><th>creneau 3</th>"; + chaine+="<th colspan=\"3\" bgcolor=\" #EEEEEEE\">Cr\xE9neaux (h.min)</th>"; + chaine+="</tr><tr bgcolor=\" #EEEEEEE\"><th>Cr\xE9neau 1</th><th>Cr\xE9neau 2</th><th>Cr\xE9neau 3</th>"; chaine+="</tr>"; //2 constitution du contenu @@ -580,11 +584,11 @@ chaine+="<th rowspan=\"2\" bgcolor=\" #EEEEEEE\">Longueur (m)</th>"; chaine+="<th rowspan=\"2\" bgcolor=\" #EEEEEEE\">Largeur (m)</th>"; chaine+="<th rowspan=\"2\" bgcolor=\" #EEEEEEE\">Profondeur (m)</th>"; - chaine+="<th colspan=\"2\" bgcolor=\" #EEEEEEE\">Dur�es bassinn�es (min.sec)</th>"; - chaine+="<th colspan=\"2\" bgcolor=\" #EEEEEEE\">Dur�es des manouvres d�faut (min.sec)</th>"; - chaine+="<th rowspan=\"2\" bgcolor=\" #EEEEEEE\">loi indisponibilite</th>"; - chaine+="<th colspan=\"3\" bgcolor=\" #EEEEEEE\">Crenaux (h.min)</th>"; - chaine+="</tr><tr bgcolor=\" #EEEEEEE\"><th>Montant</th><th>Avalant</th><th>Entree</th><th>Sortie</th><th>Creneau 1</th><th>Creneau 2</th><th>creneau 3</th>"; + chaine+="<th colspan=\"2\" bgcolor=\" #EEEEEEE\">Dur\xE9e des bassin\xE9es (min)</th>"; + chaine+="<th colspan=\"2\" bgcolor=\" #EEEEEEE\">Dur\xE9e des manoeuvres (min)</th>"; + chaine+="<th rowspan=\"2\" bgcolor=\" #EEEEEEE\">Loi d'indisponibilit\xE9</th>"; + chaine+="<th colspan=\"3\" bgcolor=\" #EEEEEEE\">Cr\xE9neaux (h.min)</th>"; + chaine+="</tr><tr bgcolor=\" #EEEEEEE\"><th>Montante</th><th>Avalante</th><th>Entree</th><th>Sortie</th><th>Creneau 1</th><th>Creneau 2</th><th>creneau 3</th>"; chaine+="</tr>"; @@ -603,12 +607,12 @@ chaine+="<td>"+(float)_d.listeEcluse_.retournerEcluse(i).dureeManoeuvreEntrant_+"</td>"; chaine+="<td>"+(float)_d.listeEcluse_.retournerEcluse(i).dureeManoeuvreSortant_+"</td>"; if(_d.listeEcluse_.retournerEcluse(i).typeLoi_==0) - chaine+="<td> Erlang, ordre:"+_d.listeEcluse_.retournerEcluse(i).loiIndispo_+"</td>"; + chaine+="<td>Erlang, d'ordre "+_d.listeEcluse_.retournerEcluse(i).loiIndispo_+"</td>"; else if(_d.listeEcluse_.retournerEcluse(i).typeLoi_==1) - chaine+="<td> Deterministe</td>"; + chaine+="<td>D\xE9terministe</td>"; else - chaine+="<td> Journaliere</td>"; + chaine+="<td>Journali\xE8re</td>"; chaine+="<td>"+(float)_d.listeEcluse_.retournerEcluse(i).h_.semaineCreneau1HeureDep+"-"+(float)_d.listeEcluse_.retournerEcluse(i).h_.semaineCreneau1HeureArrivee+"</td> "; chaine+="<td>"+(float)_d.listeEcluse_.retournerEcluse(i).h_.semaineCreneau2HeureDep+"-"+(float)_d.listeEcluse_.retournerEcluse(i).h_.semaineCreneau2HeureArrivee+"</td> "; @@ -636,20 +640,20 @@ //1 constitution des titres chaine+="<th rowspan=\"2\" bgcolor=\" #EEEEEEE\">Nom</th>"; - chaine+="<th rowspan=\"2\" bgcolor=\" #EEEEEEE\">priorite</th>"; - chaine+="<th rowspan=\"2\" bgcolor=\" #EEEEEEE\">longueur (m)</th>"; - chaine+="<th rowspan=\"2\" bgcolor=\" #EEEEEEE\">largeur (m)</th>"; - chaine+="<th rowspan=\"2\" bgcolor=\" #EEEEEEE\">vitesse A/M (Km/H)</th>"; - chaine+="<th rowspan=\"2\" bgcolor=\" #EEEEEEE\">tirant eau E/S (m)</th>"; - chaine+="<th rowspan=\"1\" colspan=\"3\" bgcolor=\" #EEEEEEE\">Creneaux (h.min)</th>"; + chaine+="<th rowspan=\"2\" bgcolor=\" #EEEEEEE\">Priorit\xE9</th>"; + chaine+="<th rowspan=\"2\" bgcolor=\" #EEEEEEE\">Longueur (m)</th>"; + chaine+="<th rowspan=\"2\" bgcolor=\" #EEEEEEE\">Largeur (m)</th>"; + chaine+="<th rowspan=\"2\" bgcolor=\" #EEEEEEE\">Vitesse (km/H)</th>"; + chaine+="<th rowspan=\"2\" bgcolor=\" #EEEEEEE\">Tirant d'eau (m)</th>"; + chaine+="<th rowspan=\"1\" colspan=\"3\" bgcolor=\" #EEEEEEE\">Cr\xE9neaux (h.min)</th>"; chaine+="</tr>"; chaine+="<tr>"; //sous tableaux de titres - chaine+="<th rowspan=\"1\" bgcolor=\" #EEEEEEE\">creneau 1</th>"; - chaine+="<th rowspan=\"1\" bgcolor=\" #EEEEEEE\">creneau 2</th>"; - chaine+="<th rowspan=\"1\" bgcolor=\" #EEEEEEE\">creneau 3</th>"; + chaine+="<th rowspan=\"1\" bgcolor=\" #EEEEEEE\">Cr\xE9neau 1</th>"; + chaine+="<th rowspan=\"1\" bgcolor=\" #EEEEEEE\">Cr\xE9neau 2</th>"; + chaine+="<th rowspan=\"1\" bgcolor=\" #EEEEEEE\">Cr\xE9neau 3</th>"; chaine+="</tr>"; //2 constitution du contenu @@ -690,8 +694,8 @@ //1 constitution des titres chaine+="<th rowspan=\"1\" bgcolor=\" #EEEEEEE\">Nom</th>"; - chaine+="<th rowspan=\"1\" bgcolor=\" #EEEEEEE\">gare de rattachement amont</th>"; - chaine+="<th rowspan=\"1\" bgcolor=\" #EEEEEEE\">gare de rattachement aval</th>"; + chaine+="<th rowspan=\"1\" bgcolor=\" #EEEEEEE\">Gare de rattachement amont</th>"; + chaine+="<th rowspan=\"1\" bgcolor=\" #EEEEEEE\">Gare de rattachement aval</th>"; chaine+="</tr>"; @@ -724,8 +728,8 @@ //1 constitution des titres chaine+="<th rowspan=\"1\" bgcolor=\" #EEEEEEE\">Nom</th>"; - chaine+="<th rowspan=\"1\" bgcolor=\" #EEEEEEE\">gare de rattachement amont</th>"; - chaine+="<th rowspan=\"1\" bgcolor=\" #EEEEEE\">gare de rattachement aval</th>"; + chaine+="<th rowspan=\"1\" bgcolor=\" #EEEEEEE\">Gare de rattachement amont</th>"; + chaine+="<th rowspan=\"1\" bgcolor=\" #EEEEEE\">Gare de rattachement aval</th>"; chaine+="</tr>"; @@ -752,13 +756,13 @@ { String chaine=""; - chaine+="<p>"; + chaine+="<br>"; for(int c=0;c<_d.listeBief_.listeBiefs_.size();c++) { - chaine+="<p > Croisement dans le bief "+_d.listeBief_.retournerBief(c).nom_+"<br><br>"; + chaine+="<p><b>Croisement dans le bief "+_d.listeBief_.retournerBief(c).nom_+"</b><br>"; //1 constitution des titres chaine+="<table border=1 ><tr>"; chaine+="<th rowspan=\"1\" bgcolor=\" #EEEEEE\">Nom</th>"; @@ -804,13 +808,13 @@ { String chaine=""; - chaine+="<p>"; + chaine+="<br>"; for(int c=0;c<_d.listeBief_.listeBiefs_.size();c++) { - chaine+="<p > Trematages dans le bief "+_d.listeBief_.retournerBief(c).nom_+"<br><br>"; + chaine+="<p><b>Tr\xE9matage dans le bief "+_d.listeBief_.retournerBief(c).nom_+"</b><br>"; //1 constitution des titres chaine+="<table border=1 ><tr>"; chaine+="<th rowspan=\"1\" bgcolor=\" #EEEEEE\">Nom</th>"; @@ -856,10 +860,9 @@ { String chaine=""; - chaine+="<p>"; + chaine+="<br>"; - - + chaine+="<p><b>Vitesse avalante dans les biefs (km/h)</b><br>"; chaine+="<table border=1 ><tr>"; chaine+="<th rowspan=\"1\" bgcolor=\" #EEEEEE\">Nom</th>"; @@ -887,7 +890,7 @@ } - chaine+="</table></p><br><br>"; + chaine+="</table></p><br>"; @@ -898,10 +901,10 @@ { String chaine=""; - chaine+="<p>"; + chaine+="<br>"; + chaine+="<p><b>Vitesse montante dans les biefs (km/h)</b><br>"; - chaine+="<table border=1 ><tr>"; chaine+="<th rowspan=\"1\" bgcolor=\" #EEEEEE\">Nom</th>"; @@ -942,10 +945,10 @@ { String chaine=""; - chaine+="<p>"; + chaine+="<br>"; + chaine+="<p><b>Dur\xE9e de manoeuvre entrante dans les \xE9cluses (min)</b><br>"; - chaine+="<table border=1 ><tr>"; chaine+="<th rowspan=\"1\" bgcolor=\" #EEEEEE\">Nom</th>"; @@ -973,7 +976,7 @@ } - chaine+="</table></p><br><br>"; + chaine+="</table></p><br>"; @@ -985,10 +988,10 @@ { String chaine=""; - chaine+="<p>"; + chaine+="<br>"; + chaine+="<p><b>Dur\xE9e de manoeuvre sortante dans les \xE9cluses (min)</b><br>"; - chaine+="<table border=1 ><tr>"; chaine+="<th rowspan=\"1\" bgcolor=\" #EEEEEE\">Nom</th>"; Modified: trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3PanelReglesCroisementBief.java =================================================================== --- trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3PanelReglesCroisementBief.java 2008-09-09 18:41:08 UTC (rev 3902) +++ trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3PanelReglesCroisementBief.java 2008-09-10 07:30:34 UTC (rev 3903) @@ -141,7 +141,7 @@ * Creation de la fenetre */ - setTitle("Regles Navigation de croisements du bief " + donnees_.listeBief_.retournerBief(biefChoisi_).nom_); + setTitle("R\xE8gles de croisement dans le bief " + donnees_.listeBief_.retournerBief(biefChoisi_).nom_); setSize(800, 400); setBorder(Sinavi3Bordures.compound_); getContentPane().setLayout(new BorderLayout()); @@ -358,7 +358,7 @@ // 2) recuperation de l indice du bief choisi // et affectation dans la variable du bief choisi biefChoisi_ = comboChoixBief_.getSelectedIndex(); - setTitle("Regles Navigation de croisements du bief " + setTitle("R\xE8gles de croisement dans le bief " + donnees_.listeBief_.retournerBief(biefChoisi_).nom_); // 3) affichage(rafraichissement des donn\xE9es) Modified: trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3PanelReglestrematageBief.java =================================================================== --- trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3PanelReglestrematageBief.java 2008-09-09 18:41:08 UTC (rev 3902) +++ trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3PanelReglestrematageBief.java 2008-09-10 07:30:34 UTC (rev 3903) @@ -141,7 +141,7 @@ * Creation de la fenetre */ - setTitle("Regles de trematage dans les biefs " + donnees_.listeBief_.retournerBief(biefChoisi_).nom_); + setTitle("R\xE8gles de tr\xE9matage dans le bief " + donnees_.listeBief_.retournerBief(biefChoisi_).nom_); setSize(800, 400); setBorder(Sinavi3Bordures.compound_); getContentPane().setLayout(new BorderLayout()); @@ -358,7 +358,7 @@ // 2) recuperation de l indice du bief choisi // et affectation dans la variable du bief choisi biefChoisi_ = ComboChoixBief_.getSelectedIndex(); - setTitle("Regles Navigation de croisements du bief " + setTitle("R\xE8gles de tr\xE9matage dans le bief " + donnees_.listeBief_.retournerBief(biefChoisi_).nom_); // 3) affichage(rafraichissement des donn\xE9es) Modified: trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3ResultatsAttenteTrajet.java =================================================================== --- trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3ResultatsAttenteTrajet.java 2008-09-09 18:41:08 UTC (rev 3902) +++ trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3ResultatsAttenteTrajet.java 2008-09-10 07:30:34 UTC (rev 3903) @@ -270,18 +270,17 @@ this.selectionPanel_.setLayout(new GridLayout(2, 1)); selectionPanel1 = new BuPanel(); - selectionPanel1.add(new JLabel("Attentes \xE0 cumuler pour le trajet entre:")); - selectionPanel1.add(new JLabel("l'\xE9l\xE9ment:")); + selectionPanel1.add(new JLabel("Attentes cumul\xE9es entre le d\xE9but de l'\xE9l\xE9ment")); selectionPanel1.add(this.ListeTypesDepart_); selectionPanel1.add(this.ListeElementDepart_); - selectionPanel1.add(new JLabel("et l'\xE9l\xE9ment:")); + selectionPanel1.add(new JLabel("et la fin de l'\xE9l\xE9ment")); selectionPanel1.add(this.ListeTypesArrivee_); selectionPanel1.add(this.ListeElementArrivee_); selectionPanel1.setBorder(this.bordnormal_); this.selectionPanel_.add(selectionPanel1); final BuPanel selectionPanel2 = new BuPanel(); - selectionPanel2.add(new JLabel("sens du trajet: ")); + selectionPanel2.add(new JLabel("Sens du trajet:")); selectionPanel2.add(this.Sens_); // selectionPanel2.add(new JLabel("H.Min ")); // selectionPanel2.add(new JLabel("Horaire de fin: ")); @@ -418,7 +417,7 @@ .createEtchedBorder(EtchedBorder.LOWERED), "Affichage bateaux"); bVert2.setBorder(bordure2); final JScrollPane pcnasc = new JScrollPane(bVert2); - panoption.addTab("bateaux", pcnasc); + panoption.addTab("Bateaux", pcnasc); this.optionPanel_.setBorder(this.compound_); Modified: trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3ResultatsDureesParcours.java =================================================================== --- trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3ResultatsDureesParcours.java 2008-09-09 18:41:08 UTC (rev 3902) +++ trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3ResultatsDureesParcours.java 2008-09-10 07:30:34 UTC (rev 3903) @@ -286,8 +286,8 @@ public void actionPerformed(final ActionEvent e) { if (Sens_.getSelectedIndex() == 1) { - texteDuree_.setText("entre l'entree de l'\xE9l\xE9ment"); - texteDuree2_.setText("et l'entree de l'\xE9l\xE9ment"); + texteDuree_.setText("entre l'entr\xE9e de l'\xE9l\xE9ment"); + texteDuree2_.setText("et la sortie de l'\xE9l\xE9ment"); /* * texteDuree_.updateUI(); texteDuree2_.updateUI(); texteDuree_.validate(); texteDuree2_.validate(); */ @@ -296,7 +296,7 @@ { texteDuree_.setText("entre l'entr\xE9e de l'\xE9l\xE9ment"); - texteDuree2_.setText("et l'entr\xE9e de l'\xE9l\xE9ment"); + texteDuree2_.setText("et la sortie de l'\xE9l\xE9ment"); /* * texteDuree_.updateUI(); texteDuree2_.updateUI(); texteDuree_.validate(); texteDuree2_.validate(); */ @@ -646,7 +646,7 @@ + Sinavi3TraduitHoraires .traduitMinutesEnHeuresMinutes2((float) (this.donnees_.params_.ResultatsCompletsSimulation.DureeParcoursCategorie[i].dureeParcoursTotale / this.donnees_.params_.ResultatsCompletsSimulation.DureeParcoursCategorie[i].nombreNavires)); } - if (this.choixMin_.isSelected()) { + if (this.choixMax_.isSelected()) { data[indiceNavire][indiceColonne++] = "" + Sinavi3TraduitHoraires .traduitMinutesEnHeuresMinutes2((float) this.donnees_.params_.ResultatsCompletsSimulation.DureeParcoursCategorie[i].dureeMaximumParcours); @@ -682,7 +682,7 @@ + Sinavi3TraduitHoraires .traduitMinutesEnHeuresMinutes2((float) (this.donnees_.params_.ResultatsCompletsSimulation.DureeParcoursCategorie[val].dureeParcoursTotale / this.donnees_.params_.ResultatsCompletsSimulation.DureeParcoursCategorie[val].nombreNavires)); } - if (this.choixMin_.isSelected()) { + if (this.choixMax_.isSelected()) { data[0][indiceColonne++] = "" + Sinavi3TraduitHoraires .traduitMinutesEnHeuresMinutes2((float) this.donnees_.params_.ResultatsCompletsSimulation.DureeParcoursCategorie[val].dureeMaximumParcours); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <had...@us...> - 2008-09-09 18:41:00
|
Revision: 3902 http://fudaa.svn.sourceforge.net/fudaa/?rev=3902&view=rev Author: hadouxad Date: 2008-09-09 18:41:08 +0000 (Tue, 09 Sep 2008) Log Message: ----------- - empecher la transfo de calque lors du clic sur l arbre du calque - G?\195?\169r?\195?\169! surcharge de la methode isHitAt(location) dans EbliWidget - recuperation du curseur souris et verification qu il ne se trouve pas dans la widget - idem pour graphe - reecriture des setMenu des controller afin de gerer proprement les popup graphes et calques - Ajout du champs de suivi souris pour l edition de graphe - Refactorisation pour les addListener et les controllers des widgets - lors du attachNode de ebliscene, on ne cree les widget que si elles n existent pas deja - permet lors de l undo/redo sur la duplication et la suppression de ne pas recreer les widgets associees aux noeuds - Undo/Redo sur la creation ok. - correction d un mechant bug: lors du clic sur les widgets calques et graphe apres deplacements, il n'y a plus les arbre et menus qui apparaissent Graphes - refactorsation de trpostcourbetreemodel - suppression du idx, - refonte de la methode buildTimeSteps => recupere tous les pas de temps de source - Debut du WIzard pour les courbes temporelles 2 paneaux sur 3 de potables Modified Paths: -------------- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliScene.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidget.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidgetController.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidgetSynchroniser.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliActionEditorOneClick.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/calque/EbliWidgetControllerCalque.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/graphe/EbliWidgetControllerGraphe.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/graphe/EbliWidgetGraphe.java branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/meshviewer/export/MvExportChooseVarAndTime.java branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/common/tr_en.fr_txt branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostActionAddPointFromWidgetCalque.java branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostCourbeBuilder.java branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostCourbeTreeModel.java branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostLayoutFille.java branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostLayoutPanelController.java Added Paths: ----------- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/CommandUndoRedoCreation.java branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostWizardCourbeTemporelle.java Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliScene.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliScene.java 2008-09-08 18:35:19 UTC (rev 3901) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliScene.java 2008-09-09 18:41:08 UTC (rev 3902) @@ -133,6 +133,8 @@ protected Widget attachNodeWidget(EbliNode node) { // -- creation de la widget ici --// + if (node.getWidget() == null) + // -- on ne cree la widget que sis necessaire node.setWidget(node.getCreator().create(this)); @@ -145,6 +147,9 @@ // -- ajout dans la vue layer --// visu_.addChild(node.getWidget()); + + + return node.getWidget(); } Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidget.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidget.java 2008-09-08 18:35:19 UTC (rev 3901) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidget.java 2008-09-09 18:41:08 UTC (rev 3902) @@ -2,6 +2,7 @@ import java.awt.Color; import java.awt.Font; +import java.awt.Point; import java.beans.PropertyChangeListener; import java.util.HashMap; import java.util.Map; @@ -293,6 +294,22 @@ return mapDupliquee; } + + public boolean isHitAt(Point localLocation) { + + + if (localLocation == null) + return false; + + System.err.println("getBounds:" + this.convertLocalToScene(getBounds())); + System.err.println("Location:" + this.convertSceneToLocal(localLocation)); + if (getBounds() != null) + return isVisible() && getBounds().contains(localLocation); + else + // return isVisible() && getPreferredBounds().contains(localLocation); + return false; + } + /** * Retourne les proprietes de la map. */ Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidgetController.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidgetController.java 2008-09-08 18:35:19 UTC (rev 3901) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidgetController.java 2008-09-09 18:41:08 UTC (rev 3902) @@ -251,7 +251,7 @@ } - PopupMenuProvider providerPopup_ = null; + protected PopupMenuProvider providerPopup_ = null; protected JPopupMenu popupMenu_ = null; public JPopupMenu getPopup() { Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidgetSynchroniser.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidgetSynchroniser.java 2008-09-08 18:35:19 UTC (rev 3901) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidgetSynchroniser.java 2008-09-09 18:41:08 UTC (rev 3902) @@ -65,6 +65,7 @@ public void mousePressed(MouseEvent e) { if (e.isPopupTrigger() && e.getClickCount() == 1) { affichePopupNode(e.getX(), e.getY()); + } } @@ -114,9 +115,10 @@ if (node.getWidget() instanceof EbliWidgetBordure) { EbliWidgetBordure bordure = (EbliWidgetBordure) node.getWidget(); poppup = bordure.intern_.getController_().getPopup(); - }else + + } else poppup = node.getWidget().getController_().getPopup(); - + poppup.show(arbre_, x, y); Added: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/CommandUndoRedoCreation.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/CommandUndoRedoCreation.java (rev 0) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/CommandUndoRedoCreation.java 2008-09-09 18:41:08 UTC (rev 3902) @@ -0,0 +1,49 @@ +package org.fudaa.ebli.visuallibrary.actions; + +import java.awt.Point; + +import org.fudaa.ctulu.CtuluCommand; +import org.fudaa.ebli.visuallibrary.EbliNode; +import org.fudaa.ebli.visuallibrary.EbliScene; + +public class CommandUndoRedoCreation implements CtuluCommand { + + EbliNode nodeCree_; + + EbliScene scene_; + + Point location_; + + public CommandUndoRedoCreation(EbliNode _nodeCree, EbliScene scene_, Point _location) { + super(); + this.nodeCree_ = _nodeCree; + this.scene_ = scene_; + location_ = _location; + } + + public void redo() { + // --rattachement du node dans la scene --// + scene_.addNode(nodeCree_); + + // -- repositionnement originel de la widget --// + nodeCree_.getWidget().setPreferredLocation(location_); + + // -- raffraichissement de la scene --// + scene_.refresh(); + + } + + public void undo() { + + // -- de nouveau suppression du node dans la scene --// + + scene_.removeNode(nodeCree_); + + + + // -- raffraichissement de la scene --// + scene_.refresh(); + } + + +} \ No newline at end of file Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliActionEditorOneClick.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliActionEditorOneClick.java 2008-09-08 18:35:19 UTC (rev 3901) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliActionEditorOneClick.java 2008-09-09 18:41:08 UTC (rev 3902) @@ -40,9 +40,13 @@ } /** - * Modification ici: pour activer l editor, il suffit d appuyer une seule fois sur l editeur + * Modification ici: pour activer l editor, il suffit d appuyer une seule fois + * sur l editeur + * */ public State mouseClicked(Widget widget, WidgetMouseEvent event) { + + if (event.getButton() == MouseEvent.BUTTON1 /* && event.getClickCount() == 2 */) { Point p = event.getPoint(); if (widget.getClientArea().contains(p)) if (openEditor(widget)) return State.createLocked(widget, this); Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/calque/EbliWidgetControllerCalque.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/calque/EbliWidgetControllerCalque.java 2008-09-08 18:35:19 UTC (rev 3901) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/calque/EbliWidgetControllerCalque.java 2008-09-09 18:41:08 UTC (rev 3902) @@ -94,8 +94,8 @@ } + - protected void constructMenuMasquer(JPopupMenu _popup, final CtuluCommandContainer cmd_) { JMenuItem menuItem = _popup.add(EbliResource.EBLI.getString("Masquer l'objet")); menuItem.setIcon(CtuluResource.CTULU.getIcon("crystal_visibilite")); @@ -150,18 +150,22 @@ * Surcharge de la creation du menu de base en ajoutant les menus specifiques */ public void setMenu() { - widget_.getActions().addAction(ActionFactory.createPopupMenuAction(new PopupMenuProvider() { + + popupMenu_ = new JPopupMenu(); + + // -- Menu specifiques a l'application--// + constructPopupMenuSpecifique(popupMenu_); + // -- creation du menu commun a tous les widgets + constructPopupMenuBase(popupMenu_); + System.err.println("je viens de creer ma popup" + popupMenu_); + providerPopup_ = new PopupMenuProvider() { public JPopupMenu getPopupMenu(Widget widget, Point localLocation) { - popupMenu_ = new JPopupMenu(); - - // -- Menu sp\xF6cifiques a l'application--// - constructPopupMenuSpecifique(popupMenu_); - // -- creation du menu commun a tous les widgets - constructPopupMenuBase(popupMenu_); - + return popupMenu_; } - })); + }; + widget_.getActions().addAction(ActionFactory.createPopupMenuAction(providerPopup_));// { + } private void constructPopupMenuSpecifique(JPopupMenu _popup) { Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/graphe/EbliWidgetControllerGraphe.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/graphe/EbliWidgetControllerGraphe.java 2008-09-08 18:35:19 UTC (rev 3901) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/graphe/EbliWidgetControllerGraphe.java 2008-09-09 18:41:08 UTC (rev 3902) @@ -7,6 +7,7 @@ import java.util.Iterator; import javax.swing.JComponent; +import javax.swing.JLabel; import javax.swing.JMenu; import javax.swing.JMenuItem; import javax.swing.JPopupMenu; @@ -14,6 +15,7 @@ import org.fudaa.ctulu.CtuluCommandContainer; import org.fudaa.ctulu.CtuluResource; +import org.fudaa.ctulu.gui.CtuluLibSwing; import org.fudaa.ebli.commun.EbliActionInterface; import org.fudaa.ebli.commun.EbliActionSimple; import org.fudaa.ebli.commun.EbliComponentFactory; @@ -54,6 +56,10 @@ super(widget_); widgetGraphe_ = widget_; + labelTrace_ = (JLabel) CtuluLibSwing.findChildByName(getGraphePanel(), "lbTools"); + getGraphePanel().remove(labelTrace_); + + addActionSpecifiques(); } @@ -115,19 +121,21 @@ * Surcharge de la creation du menu de base en ajoutant les menus specifiques */ public void setMenu() { - widget_.getActions().addAction(ActionFactory.createPopupMenuAction(new PopupMenuProvider() { - public JPopupMenu getPopupMenu(Widget widget, Point localLocation) { - popupMenu_ = new JPopupMenu(); + + popupMenu_ = new JPopupMenu(); - // -- Menu sp\xF6cifiques a l'application--// - constructPopupMenuSpecifique(popupMenu_); + // -- Menu sp\xF6cifiques a l'application--// + constructPopupMenuSpecifique(popupMenu_); - // -- creation du menu commun a tous les widgets - constructPopupMenuBase(popupMenu_); - + // -- creation du menu commun a tous les widgets + constructPopupMenuBase(popupMenu_); + + providerPopup_ = new PopupMenuProvider() { + public JPopupMenu getPopupMenu(Widget widget, Point localLocation) { return popupMenu_; } - })); + }; + widget_.getActions().addAction(ActionFactory.createPopupMenuAction(providerPopup_)); } @@ -148,9 +156,42 @@ if (widget_.getEbliScene() != null) { // position a cote de la widget graphe - Point nouvellePosition = new Point((int) (widget_.getLocation().x), (int) (widget_.getLocation().y + widget_ - .getBounds().height * 1.2)); + // Point nouvellePosition = new Point((int) (widget_.getLocation().x), + // (int) (widget_.getLocation().y + widget_ + // .getBounds().height * 1.2)); + // int x, y, width; + // Point nouvellePosition = new Point(); + // + // if (widget_.getLocation() != null) { + // x = + // widget_.getEbliScene().convertSceneToLocal(widget_.getLocation() + // ).x; + // y = + // widget_.getEbliScene().convertSceneToLocal(widget_.getLocation() + // ).y; + // } else { + // + // x = widget_.getEbliScene().convertSceneToLocal(widget_. + // getPreferredLocation()).x; + // y = widget_.getEbliScene().convertSceneToLocal(widget_. + // getPreferredLocation()).y; + // } + // if (widget_.getBounds() != null) + // width = widget_.getBounds().width; + // else + // + // width = widget_.getPreferredBounds().width; + // nouvellePosition.x = x + width + 20; + // nouvellePosition.y = y; + + + Point positionLegende = new Point(); + if (widget_.getBounds() != null && widget_.getPreferredLocation() != null) { + positionLegende.x = widget_.getPreferredLocation().x + widget_.getBounds().width + 20; + positionLegende.y = widget_.getPreferredLocation().y; + + } // getScene_().addChild(new EbliWidget(getScene_(),null)); // addChild // (WidgetLegendeManager.createLegende(GrapheWidget.this.getGraphe(), @@ -166,7 +207,7 @@ widgetGraphe_.getNodeLegende().setCreator( new EbliWidgetCreatorLegende(((EbliWidgetGraphe) widget_) .getGraphe())); - widgetGraphe_.getNodeLegende().setPreferedLocation(nouvellePosition); + widgetGraphe_.getNodeLegende().setPreferedLocation(positionLegende); widget_.getEbliScene().addNode(widgetGraphe_.getNodeLegende()); widgetGraphe_.getNodeLegende().setPreferedSize( @@ -204,6 +245,7 @@ JScrollPane panelTreeGraphe_ = null; BuToolBar toolbarGraphe_ = null; BuMenuBar menuGraphe_ = null; + JLabel labelTrace_; public boolean alreadyCreate_ = false; /** @@ -294,6 +336,16 @@ } + /** + * affiche le label des coordonnees + */ + public JComponent geTtracableComponent() { + + + + return labelTrace_; + } + } Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/graphe/EbliWidgetGraphe.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/graphe/EbliWidgetGraphe.java 2008-09-08 18:35:19 UTC (rev 3901) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/graphe/EbliWidgetGraphe.java 2008-09-09 18:41:08 UTC (rev 3902) @@ -17,7 +17,6 @@ import javax.swing.JComponent; import javax.swing.SwingUtilities; -import org.fudaa.ctulu.gui.CtuluLibSwing; import org.fudaa.ctulu.image.CtuluLibImage; import org.fudaa.ebli.courbe.EGAxe; import org.fudaa.ebli.courbe.EGFillePanel; @@ -38,7 +37,7 @@ * * @author adrien hadoux */ -public class EbliWidgetGraphe extends EbliWidget implements /* EditProvider */InplaceEditorProvider<BuPanel>, +public class EbliWidgetGraphe extends EbliWidget implements InplaceEditorProvider<BuPanel>, EGGrapheModelListener { // private EGGraphe graphe_; @@ -73,8 +72,8 @@ super(scene); panelGraphe_ = _pn; panelGraphe_.setBorder(null); - // FIXME - panelGraphe_.remove(CtuluLibSwing.findChildByName(panelGraphe_, "lbTools")); + + panelGraphe_.getGraphe().getModel().addModelListener(this); Modified: branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/meshviewer/export/MvExportChooseVarAndTime.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/meshviewer/export/MvExportChooseVarAndTime.java 2008-09-08 18:35:19 UTC (rev 3901) +++ branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/meshviewer/export/MvExportChooseVarAndTime.java 2008-09-09 18:41:08 UTC (rev 3902) @@ -19,6 +19,14 @@ import javax.swing.event.ListSelectionEvent; import javax.swing.event.ListSelectionListener; +import org.fudaa.ctulu.CtuluLib; +import org.fudaa.ctulu.CtuluLibArray; +import org.fudaa.ctulu.CtuluLibString; +import org.fudaa.ctulu.CtuluVariable; +import org.fudaa.ctulu.gui.CtuluDialogPanel; +import org.fudaa.fudaa.commun.courbe.FudaaCourbeTimeListModel; +import org.fudaa.fudaa.meshviewer.MvResource; + import com.memoire.bu.BuBorderLayout; import com.memoire.bu.BuEmptyList; import com.memoire.bu.BuGridLayout; @@ -27,15 +35,6 @@ import com.memoire.bu.BuPanel; import com.memoire.bu.BuScrollPane; -import org.fudaa.ctulu.CtuluLib; -import org.fudaa.ctulu.CtuluLibArray; -import org.fudaa.ctulu.CtuluLibString; -import org.fudaa.ctulu.CtuluVariable; -import org.fudaa.ctulu.gui.CtuluDialogPanel; - -import org.fudaa.fudaa.commun.courbe.FudaaCourbeTimeListModel; -import org.fudaa.fudaa.meshviewer.MvResource; - /** * @author Fred Deniger * @version $Id: MvExportChooseVarAndTime.java,v 1.12 2007-05-04 13:59:50 deniger Exp $ @@ -64,6 +63,10 @@ private final CtuluDialogPanel pn_; + public CtuluDialogPanel getPn() { + return pn_; + } + public ListenerForError(final CtuluDialogPanel _pn) { super(); pn_ = _pn; Modified: branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostActionAddPointFromWidgetCalque.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostActionAddPointFromWidgetCalque.java 2008-09-08 18:35:19 UTC (rev 3901) +++ branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostActionAddPointFromWidgetCalque.java 2008-09-09 18:41:08 UTC (rev 3902) @@ -20,6 +20,7 @@ import javax.swing.ImageIcon; import javax.swing.JButton; import javax.swing.JComboBox; +import javax.swing.JComponent; import javax.swing.JDialog; import javax.swing.JLabel; import javax.swing.JList; @@ -261,6 +262,9 @@ } else { rechercheGrapheAndCalque(); + + // -- affichage de al dialog --// + constructDialog().setVisible(true); } } @@ -321,8 +325,7 @@ * TrResource .getS("Il n'y a pas de graphes disponibles.")).activate(); return; } */ - // -- affichage de al dialog --// - constructDialog().setVisible(true); + } public abstract boolean isCorrectGraph(EGGrapheModel _model); @@ -356,8 +359,7 @@ * * @return */ - public JDialog constructDialog() { - + public JComponent constructInterface(boolean closeDialog, boolean valideAjoutCourbe, boolean canCreate) { boxCalques_ = new JComboBox(); for (Iterator<JLabel> it = listeObjetsCalques.iterator(); it.hasNext();) { boxCalques_.addItem(it.next()); @@ -374,17 +376,29 @@ jlisteGraphesSelections.setBorder(BorderFactory.createTitledBorder(TrResource.TR.getString("Graphes choisis"))); jlisteGraphesSelections.setCellRenderer(new GrapheCellRenderer()); - validation = new JButton(TrResource.TR.getString("Valider"), EbliResource.EBLI.getIcon("crystal_valider")); - validation.addActionListener(this); - creationNewGraphe = new JButton(TrResource.TR.getString("Cr\xE9er un nouveau graphe"), EbliResource.EBLI - .getIcon("crystal_valider")); - creationNewGraphe.addActionListener(this); + JPanel panelControle = new JPanel(new FlowLayout(FlowLayout.CENTER)); + + select = new JButton(TrResource.TR.getString("Ajouter"), EbliResource.EBLI.getIcon("crystal22_avancervite")); unselect = new JButton(TrResource.TR.getString("Enlever"), EbliResource.EBLI.getIcon("crystal22_reculervite")); select.addActionListener(this); unselect.addActionListener(this); + if (closeDialog) { quitter = new JButton(TrResource.TR.getString("Quitter"), EbliResource.EBLI.getIcon("crystal_detruire")); quitter.addActionListener(this); + panelControle.add(quitter); + } + if (canCreate) { + creationNewGraphe = new JButton(TrResource.TR.getString("Cr\xE9er un nouveau graphe"), EbliResource.EBLI + .getIcon("crystal_valider")); + creationNewGraphe.addActionListener(this); + panelControle.add(creationNewGraphe); + } + if (valideAjoutCourbe) { + validation = new JButton(TrResource.TR.getString("Valider"), EbliResource.EBLI.getIcon("crystal_valider")); + validation.addActionListener(this); + panelControle.add(validation); + } // Box box = Box.createHorizontalBox(); JPanel box = new JPanel(new GridLayout(1, 3)); box.setSize(550, 350);// FIXME a enlever car c'est inutile : a moins d'utiliser setPreferredSize @@ -405,17 +419,24 @@ content.add(box, BorderLayout.CENTER); content.add(boxCalques_, BorderLayout.NORTH); - JPanel panelControle = new JPanel(new FlowLayout(FlowLayout.CENTER)); - panelControle.add(quitter); + + - panelControle.add(creationNewGraphe); - panelControle.add(validation); + + content.add(panelControle, BorderLayout.SOUTH); + + return content; + } + public JDialog constructDialog() { + + + frame_ = new JDialog(); - frame_.setContentPane(content); + frame_.setContentPane(constructInterface(true, true, true)); frame_.setModal(true); setTitleForFrame(); @@ -425,6 +446,19 @@ return frame_; } + + + /** + * Methode qui construit le panel de selection ou creation des graphes pour + * les points du calque selectionnes + * + * @return + */ + public JComponent getInterfaceComplete(boolean closeDialog, boolean valideAjoutCourbe, boolean canCreate) { + rechercheGrapheAndCalque(); + return constructInterface(closeDialog, valideAjoutCourbe, canCreate); + } + public abstract void setTitleForFrame(); } Modified: branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostCourbeBuilder.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostCourbeBuilder.java 2008-09-08 18:35:19 UTC (rev 3901) +++ branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostCourbeBuilder.java 2008-09-09 18:41:08 UTC (rev 3902) @@ -7,33 +7,19 @@ */ package org.fudaa.fudaa.tr.post; -import java.awt.event.ItemEvent; -import java.awt.event.ItemListener; import java.io.IOException; -import java.util.List; -import javax.swing.BorderFactory; - -import org.fudaa.ctulu.CtuluLibString; -import org.fudaa.ctulu.ProgressionBuAdapter; import org.fudaa.ctulu.ProgressionInterface; -import org.fudaa.ctulu.gui.CtuluDialogPanel; -import org.fudaa.ctulu.gui.CtuluLibSwing; -import org.fudaa.ctulu.gui.CtuluTaskOperationGUI; import org.fudaa.dodico.h2d.type.H2dVariableType; import org.fudaa.dodico.mesure.EvolutionReguliere; import org.fudaa.ebli.commun.EbliActionInterface; import org.fudaa.ebli.courbe.EGGraphe; -import org.fudaa.fudaa.commun.FudaaInternalFrameSelectorPanel; import org.fudaa.fudaa.commun.impl.FudaaCommonImplementation; import org.fudaa.fudaa.meshviewer.export.MvExportChooseVarAndTime; -import org.fudaa.fudaa.tr.common.TrLib; import org.fudaa.fudaa.tr.common.TrResource; -import com.memoire.bu.BuBorderLayout; -import com.memoire.bu.BuBorders; +import com.memoire.bu.BuWizardDialog; import com.memoire.fu.FuLog; - /** * @author fred deniger * @version $Id: TrPostCourbeBuilder.java,v 1.9 2007-05-04 14:01:51 deniger Exp $ @@ -46,7 +32,9 @@ if (_prog != null) { _prog.setDesc(TrResource.getS("Construction des courbes")); } - final TrPostCourbeTreeModel treeModel = new TrPostCourbeTreeModel(_impl, _src, _tidx, _idxPtArray, _vars); + final TrPostCourbeTreeModel treeModel = new TrPostCourbeTreeModel(_impl, _src, /* + * _tidx, + */_idxPtArray, _vars); treeModel.addAllCourbes(_prog, null); return treeModel; @@ -85,78 +73,139 @@ chooseAndBuild(_src, _ptIdx, null, _varSelected, _calque); } + + private static int cptGraphe = 1; + /** + * Methode principale de construction d'une courbe avec l'aide d'un wizard + */ public static void chooseAndBuild(final TrPostProjet _src, final int[] _ptIdx, final TrPostInterpolatePoint _pt, final H2dVariableType _varSelected, final TrPostVisuPanel _calque) { if (_ptIdx == null && _pt == null) { return; } - final MvExportChooseVarAndTime chooser = new MvExportChooseVarAndTime(_src.getSource().getNewVarListModel(), _src - .getSource().getNewTimeListModel(), TrResource - .getS("Choisir les variables et les pas de temps \xE0 afficher dans les \xE9volutions temporelles")); + // final MvExportChooseVarAndTime chooser = new + // MvExportChooseVarAndTime(_src.getSource().getNewVarListModel(), _src + // .getSource().getNewTimeListModel(), TrResource + // .getS( + // "Choisir les variables et les pas de temps \xE0 afficher dans les \xE9volutions temporelles" + // )); + // chooser.setVarSelected(_varSelected); + + + + + // --panel No 1 : choix des points a sonder --// + + + + // -- creation du mVExportChooser en degageant les pas de temps pour le + // panel No2 --// + final MvExportChooseVarAndTime chooser = new MvExportChooseVarAndTime(_src.getSource().getNewVarListModel(), null, + TrResource.getS("Choisir les variables et les pas de temps \xE0 afficher dans les \xE9volutions temporelles")); chooser.setVarSelected(_varSelected); + + + + + + final String titre = TrResource.getS("Evolutions temporelles"); - CtuluDialogPanel pn = chooser; + // CtuluDialogPanel pn = chooser; //FIXME: a remplacer par une recherche des frames dans le layout actif. - final List fr = TrPostCourbeFille.getCourbeFilleFrames(_src.getImpl()); - final FudaaInternalFrameSelectorPanel pnFrame = fr.size() == 0 ? null : new FudaaInternalFrameSelectorPanel(fr, - TrLib.getString("Afficher les \xE9volutions temporelles dans une nouvelle fen\xEAtre"), titre); - if (pnFrame != null) { - final CtuluDialogPanel completePn = new CtuluDialogPanel() { - public boolean valide() { - return pnFrame.getCbNew().isSelected() || CtuluLibString.isEmpty(getErrorText()); - } - }; - pn = completePn; - pn.setLayout(new BuBorderLayout(4, 4, true, true)); - pn.setBorder(BuBorders.EMPTY3333); - pn.add(pnFrame, BuBorderLayout.NORTH); - chooser.setErrorTextUnable(); - chooser.setBorder(BorderFactory.createEmptyBorder(5, 15, 0, 5)); - CtuluLibSwing.setEnable(chooser, null, pnFrame.getCbNew().isSelected()); - pnFrame.getCbNew().addItemListener(new ItemListener() { - public void itemStateChanged(final ItemEvent _e) { - CtuluLibSwing.setEnable(chooser, null, pnFrame.getCbNew().isSelected()); - if (pnFrame.getCbNew().isSelected()) { - completePn.setErrorText(chooser.computeErrorText()); - } else { - completePn.setErrorText(CtuluLibString.EMPTY_STRING); - } - } - }); - pn.add(chooser, BuBorderLayout.CENTER); + // final List fr = TrPostCourbeFille.getCourbeFilleFrames(_src.getImpl()); + // final FudaaInternalFrameSelectorPanel pnFrame = fr.size() == 0 ? null : + // new FudaaInternalFrameSelectorPanel(fr, + // TrLib.getString( + // "Afficher les \xE9volutions temporelles dans une nouvelle fen\xEAtre"), titre); + // if (pnFrame != null) { + // final CtuluDialogPanel completePn = new CtuluDialogPanel() { + // public boolean valide() { + // return pnFrame.getCbNew().isSelected() || + // CtuluLibString.isEmpty(getErrorText()); + // } + // }; + // // pn = completePn; + // // pn.setLayout(new BuBorderLayout(4, 4, true, true)); + // // pn.setBorder(BuBorders.EMPTY3333); + // pn.add(pnFrame, BuBorderLayout.NORTH); + // chooser.setErrorTextUnable(); + // chooser.setBorder(BorderFactory.createEmptyBorder(5, 15, 0, 5)); + // CtuluLibSwing.setEnable(chooser, null, pnFrame.getCbNew().isSelected()); + // pnFrame.getCbNew().addItemListener(new ItemListener() { + // public void itemStateChanged(final ItemEvent _e) { + // CtuluLibSwing.setEnable(chooser, null, pnFrame.getCbNew().isSelected()); + // if (pnFrame.getCbNew().isSelected()) { + // completePn.setErrorText(chooser.computeErrorText()); + // } else { + // completePn.setErrorText(CtuluLibString.EMPTY_STRING); + // } + // } + // }); + // pn.add(chooser, BuBorderLayout.CENTER); + // + // } + // chooser.activeErrorListener(pn); - } - chooser.activeErrorListener(pn); + + // BLOC UTILE POUR REFACTORISATION: LA CREATION DE LA COURBE SE FAIT DANS LE + // THREAD - if (pn.afficheModaleOk(_src.getImpl().getFrame(), titre)) { - final Object[] obj = chooser.getSelectedVar(); - final H2dVariableType[] var = new H2dVariableType[obj.length]; - System.arraycopy(obj, 0, var, 0, var.length); - final TrPostCourbeFille fille = pnFrame == null ? null : (TrPostCourbeFille) pnFrame.getSelectedFrame(); - if (fille == null) { - new CtuluTaskOperationGUI(_src.getImpl(), titre) { + // if (pn.afficheModaleOk(_src.getImpl().getFrame(), titre)) { + // + // + // + // final Object[] obj = chooser.getSelectedVar(); + // final H2dVariableType[] var = new H2dVariableType[obj.length]; + // System.arraycopy(obj, 0, var, 0, var.length); + // // final TrPostCourbeFille fille = pnFrame == null ? null : + // // (TrPostCourbeFille) pnFrame.getSelectedFrame(); + // // if (fille == null) { + // new CtuluTaskOperationGUI(_src.getImpl(), titre) { + // + // public void act() { + // final ProgressionInterface prog = new ProgressionBuAdapter(this); + // final TrPostCourbeTreeModel model = _pt == null ? build(_src.getImpl(), + // _src.getSource(), chooser + // .getSelectedTimeStepIdx(), var, _ptIdx, prog) : build(_src.getImpl(), + // _src.getSource(), chooser + // .getSelectedTimeStepIdx(), var, _pt, prog); + // if (model != null) { + // _src.addFille(model, "graphe " + (cptGraphe++)/* + // * pnFrame == null ? + // * titre :pnFrame. + // * getNewFrameTitle() + // */, prog, _calque); + // } + // } + // }.start(); + // } else { + // if (_ptIdx == null) { + // TrPostCourbeAddPointsAction.startImportInterpolate(_src.getImpl(), + // fille.getGraphe(), _pt); + // } else { + // TrPostCourbeAddPointsAction.startImportIdx(_src.getImpl(), + // fille.getGraphe(), _ptIdx); + // } + // _src.getImpl().activateInternalFrame(fille); + // } - public void act() { - final ProgressionInterface prog = new ProgressionBuAdapter(this); - final TrPostCourbeTreeModel model = _pt == null ? build(_src.getImpl(), _src.getSource(), chooser - .getSelectedTimeStepIdx(), var, _ptIdx, prog) : build(_src.getImpl(), _src.getSource(), chooser - .getSelectedTimeStepIdx(), var, _pt, prog); - if (model != null) { - _src.addFille(model, pnFrame == null ? titre : pnFrame.getNewFrameTitle(), prog, _calque); - } - } - }.start(); - } else { - if (_ptIdx == null) { - TrPostCourbeAddPointsAction.startImportInterpolate(_src.getImpl(), fille.getGraphe(), _pt); - } else { - TrPostCourbeAddPointsAction.startImportIdx(_src.getImpl(), fille.getGraphe(), _ptIdx); - } - _src.getImpl().activateInternalFrame(fille); - } - } + // } + + + // -- wizard construction --// + TrPostWizardCourbeTemporelle wizard = new TrPostWizardCourbeTemporelle(chooser, + new TrPostActionAddPointFromWidgetCalque.Temporel(_src.getSelectedFilleLayout().getScene(), _src.getImpl())); + + BuWizardDialog DialogWizard = new BuWizardDialog(_src.getImpl().getFrame(), wizard); + + // --affichage du wizard --// + DialogWizard.setSize(600, 500); + DialogWizard.setLocationRelativeTo(_src.getSelectedFilleLayout()); + DialogWizard.setVisible(true); + + } public static void chooseAndBuild(final TrPostProjet _src, final TrPostInterpolatePoint _pt, Modified: branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostCourbeTreeModel.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostCourbeTreeModel.java 2008-09-08 18:35:19 UTC (rev 3901) +++ branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostCourbeTreeModel.java 2008-09-09 18:41:08 UTC (rev 3902) @@ -45,7 +45,7 @@ final FudaaCommonImplementation impl_; - private int[] tidx_; + // private int[] tidx_; private EGGroup updating_; @@ -75,22 +75,36 @@ /** * @param _src */ - public TrPostCourbeTreeModel(final FudaaCommonImplementation _impl, final TrPostSource _src, final int[] _timeIdx, + public TrPostCourbeTreeModel(final FudaaCommonImplementation _impl, final TrPostSource _src/* + * , + * final + * int + * [ + * ] + * _timeIdx + */, final H2dVariableType[] _vars) { src_ = _src; varGroup_ = new HashMap(); - tidx_ = _timeIdx; - Arrays.sort(tidx_); + // tidx_ = _timeIdx; + // Arrays.sort(tidx_); objIdx_ = FuEmptyArrays.INT0; intepolPt_ = new HashSet(); varSupported_ = new HashSet(Arrays.asList(_vars)); impl_ = _impl; - isAllTimeStep_ = tidx_.length == _src.getNbTimeStep(); + isAllTimeStep_ = true;// tidx_.length == _src.getNbTimeStep(); } - public TrPostCourbeTreeModel(final FudaaCommonImplementation _impl, final TrPostSource _src, final int[] _timeIdx, + public TrPostCourbeTreeModel(final FudaaCommonImplementation _impl, final TrPostSource _src,/* + * final + * int + * [ + * ] + * _timeIdx + * , + */ final int[] _objIdx, final H2dVariableType[] _vars) { - this(_impl, _src, _timeIdx, _vars); + this(_impl, _src/* , _timeIdx */, _vars); objIdx_ = _objIdx; Arrays.sort(objIdx_); } @@ -112,11 +126,11 @@ if (!isAllTimeStep()) { return; } - if (CtuluLibArray.isEmpty(_idx)) { - return; - } + // if (CtuluLibArray.isEmpty(_idx)) { + // return; + // } timeSteps_ = null; - tidx_ = _idx; + // tidx_ = _idx; buildTimeSteps(); final EGCourbe[] cs = getCourbes(); @@ -250,14 +264,18 @@ protected void buildTimeSteps() { if (timeSteps_ == null) { - timeSteps_ = new double[tidx_.length]; + timeSteps_ = new double[this.src_.getNbTimeStep()/* + * tidx_.length + */]; // mise a jour des pas de temps - for (int i = tidx_.length - 1; i >= 0; i--) { - timeSteps_[i] = src_.getTimeStep(tidx_[i]); + for (int i = this.src_.getNbTimeStep()-1; i >= 0; i--) { + // timeSteps_[i] = src_.getTimeStep(tidx_[i]); + timeSteps_[i] = src_.getTimeStep(i); } } } + protected TrPostCourbeModel containsCourbeFor(final H2dVariableType _t, final EGGroup _g, final int _idx) { for (int i = _g.getChildCount() - 1; i >= 0; i--) { final TrPostCourbeModel res = (TrPostCourbeModel) _g.getCourbeAt(i).getModel(); @@ -625,4 +643,7 @@ return isAllTimeStep_; } + // public void updateTimeStep(int[] _idx, ProgressionInterface _prog) { + // } + } Modified: branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostLayoutFille.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostLayoutFille.java 2008-09-08 18:35:19 UTC (rev 3901) +++ branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostLayoutFille.java 2008-09-09 18:41:08 UTC (rev 3902) @@ -374,7 +374,7 @@ // JOptionPane.showMessageDialog(null, "paste(): nb elements " + // nodesCopyied.size()); - + Set<EbliNode> newNodes = new HashSet<EbliNode>(); // --recuperation des noeuds copies --// if (projet_.nodesCopyied != null) { @@ -384,6 +384,7 @@ EbliNode nouveauNode = node.duplicate(null); getScene().addNode(nouveauNode); + newNodes.add(nouveauNode); // -- duplication des map de property graphique de la widget --// node.getWidget().setPropGraphique(node.getWidget().duplicateGraphicalProperties()); // -- duplication de la taille --// @@ -399,7 +400,7 @@ } // --creation de la commande undo/redo --// - getScene().getCmdMng().addCmd(new CommandUndoRedoPaste(projet_.nodesCopyied)); + getScene().getCmdMng().addCmd(new CommandUndoRedoPaste(newNodes)); // reinitialisation de la liste projet_.nodesCopyied = null; @@ -489,22 +490,29 @@ // 3 cas pour le moment: graphe ou calque ou rien if (!node.hasWidget()) return; - if (node.getCreator() instanceof EbliWidgetCreatorVueCalque) { - + + Point locationSouris = this.getMousePosition(); + + // projet_.impl_.message("isHitAt: " + + // node.getWidget().isHitAt(locationSouris)); + + if (node.getCreator() instanceof EbliWidgetCreatorVueCalque && locationSouris != null) { + // -- etape 1: ajout du tree dans fudaaImplementation --// changeTree(node.getWidget().getController_()); // -- etape 2: rechargement de la toolbar specifique dans this --// changeToolbar(node.getWidget().getController_()); - } else if (node.getCreator() instanceof EbliWidgetCreatorGraphe) { + } else if (node.getCreator() instanceof EbliWidgetCreatorGraphe && locationSouris != null) { + // -- etape 1: ajout du tree dans fudaaImplementation --// changeTree(node.getWidget().getController_()); // -- etape 2: rechargement de la toolbar specifique dans this --// changeToolbarSpecifiqueGraphe(node.getWidget().getController_(), (EbliWidgetCreatorGraphe) node.getCreator()); } else { - + // -- etape 1: on fout eventuellement le tree des layouts --// changeTreeScene(); // -- etape 2: rechargement de la toolbar specifique dans this --// Modified: branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostLayoutPanelController.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostLayoutPanelController.java 2008-09-08 18:35:19 UTC (rev 3901) +++ branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostLayoutPanelController.java 2008-09-09 18:41:08 UTC (rev 3902) @@ -34,6 +34,7 @@ import org.fudaa.ebli.visuallibrary.EbliScene; import org.fudaa.ebli.visuallibrary.EbliWidgetCreatorShape; import org.fudaa.ebli.visuallibrary.EbliWidgetCreatorTextLabel; +import org.fudaa.ebli.visuallibrary.actions.CommandUndoRedoCreation; import org.fudaa.ebli.visuallibrary.actions.EbliWidgetActionAlign; import org.fudaa.ebli.visuallibrary.actions.EbliWidgetActionBackGround; import org.fudaa.ebli.visuallibrary.actions.EbliWidgetActionBloqueOuDebloqueWidget; @@ -303,6 +304,7 @@ positionLegende.y = nodeCalque.getWidget().getPreferredLocation().y; creator.getWidgetCalque().nodeLegende = _legende.createLegende(positionLegende); + return nodeCalque; } @@ -324,6 +326,8 @@ // ajout du node au layout addNode(nodeCercle); + + return nodeCercle; } @@ -337,6 +341,8 @@ // ajout du node au layout addNode(nodeEllipse); + + return nodeEllipse; } @@ -356,6 +362,8 @@ // ajout du node au layout addNode(nodeFleche); + + return nodeFleche; } @@ -369,6 +377,10 @@ // -- rafraichissement de la scene pour eviter les plantages --// getSceneCourante().refresh(); + + // -- commande undo/redo pour la creation de widget --// + getSceneCourante().getCmdMng().addCmd( + new CommandUndoRedoCreation(node, getSceneCourante(), node.getPreferedLocation())); } public EbliNode addRectangle() { Added: branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostWizardCourbeTemporelle.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostWizardCourbeTemporelle.java (rev 0) +++ branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostWizardCourbeTemporelle.java 2008-09-09 18:41:08 UTC (rev 3902) @@ -0,0 +1,136 @@ +package org.fudaa.fudaa.tr.post; + +import javax.swing.ButtonGroup; +import javax.swing.JCheckBox; +import javax.swing.JComponent; +import javax.swing.JLabel; +import javax.swing.JPanel; +import javax.swing.JRadioButton; +import javax.swing.JTextField; + +import org.fudaa.fudaa.meshviewer.export.MvExportChooseVarAndTime; +import org.fudaa.fudaa.tr.common.TrResource; +import org.fudaa.fudaa.tr.post.TrPostActionAddPointFromWidgetCalque.Temporel; + +import com.memoire.bu.BuWizardTask; + + +/** + * Wizard reserv\xE9 pour la creation de courbes temporelles. + * + * @author Adrien Hadoux + * + */ +public class TrPostWizardCourbeTemporelle extends BuWizardTask { + + + + + + public String getTaskTitle() { + return "Evolutions temporelles"; + } + + public TrPostWizardCourbeTemporelle(MvExportChooseVarAndTime _chooserVarTime, Temporel _actionChoixGraphes) { + super(); + actionChoixGraphes_ = _actionChoixGraphes; + chooserVarTime_ = _chooserVarTime; + } + + public int getStepCount() { + return 3; + } + + public String getStepTitle() { + String r = null; + + switch (current_) { + case 0: + r = TrResource.getS("Choisir les points"); + break; + case 1: + r = TrResource.getS("S\xE9lectionner les variables"); + break; + case 2: + r = TrResource.getS("S\xE9lectionner les graphes"); + break; + } + return r; + } + + public String getStepText() { + String r = null; + + switch (current_) { + case 0: + r = TrResource.getS("Voici les points r\xE9cup\xE9r\xE9s du calque"); + break; + case 1: + r = TrResource.getS("Veuillez s\xE9lectionner le(s) variable(s)"); + break; + case 2: + r = TrResource.getS("Veuillez s\xE9lectionner les graphes pour la cr\xE9ation des courbes ou cr\xE9er un nouveau graphe"); + break; + } + + return r; + } + + private JRadioButton rb0_0, rb0_1, rb0_2; + private ButtonGroup bg0; + private JPanel r0; + private JLabel lb1_0; + private JCheckBox cb1_1; + private JTextField tf1_2; + private JPanel r1; + private JLabel r2; + + + private MvExportChooseVarAndTime chooserVarTime_; + TrPostActionAddPointFromWidgetCalque.Temporel actionChoixGraphes_; + + // public MvExportChooseVarAndTime getChooserVarTime() { + // return chooserVarTime_; + // } + // + // public void setChooserVarTime(MvExportChooseVarAndTime _chooser) { + // chooserVarTime_ = _chooser; + // } + + public JComponent getStepComponent() { + switch (current_) { + case 0: { + + // -- le table des points selectionnes --// + + return new JLabel("En cours valeurs selectionnes"); + } + case 1: { + return chooserVarTime_; + + } + case 2: { + + // -- le panel avec les jlists et combobox --// + + return actionChoixGraphes_.getInterfaceComplete(false, false, true); + } + } + + return null; + } + + /** + * MEthode utilisee pour disabler ou non les boutons suivants + */ + public int getStepDisabledButtons() { + int r = super.getStepDisabledButtons(); + if (current_ == 1) { + + // -- pour empecher d avancer, voir ci dessous + // r |= BuButtonPanel.SUIVANT; + } + return r; + } +} + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <had...@us...> - 2008-09-08 18:35:11
|
Revision: 3901 http://fudaa.svn.sourceforge.net/fudaa/?rev=3901&view=rev Author: hadouxad Date: 2008-09-08 18:35:19 +0000 (Mon, 08 Sep 2008) Log Message: ----------- - ajout du menu multi-fenetre: permet d activer la fillelayout en cliquant sur son menuitem correspondant => cas ou l utilisateur ferme sa fenetre sans faire gaffe, il peut maintenant la recuperer - Ajout de l action editeur de texte en utilisant ekitcore - possibiliter de mettre: - des formules mathematiaues - gras, soulign?\195?\169,italique... - espaces, passages de lignes - ALARMA! les aligns internes ne marchent pas - REFACTORISATION: methode getWidget et setWidget dans le ebliNode - Repositionnement des widgets dans la scene: miux cal?\195?\169s , calque et sa legende - Traduction des chaines ebli et tr dans les fichiers correspondants - Gestion du cut/copy/paste: fonctionne nickel: - on peut selectionner plusieurs widgets simultanement - On peut copier/couper depuis une fillelayout vers une autre sans prob et vice-versa - Gestion de la position precedentes pour le cut/copy OK - Gestion des multi fenetre: enregistrement des liste cut/copy dans le trpostprojet - GEstion des undo/redo poru le cut/copy/paste - MULTILAYOUT ONGLET:degage des onglets scenes ainsi que des menus correspondant - MULTI LAYOUT FRAME: lors de la suppression, confirmation puis suppression - confirmation suppression - lors de la fermeture degage la reference de la fille - degage les menus d activation des frames Modified Paths: -------------- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/ressource/ebli_en.fr_txt branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliNode.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliNodeDefault.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliScene.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidgetController.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidgetControllerMenuOnly.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidgetCreator.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidgetCreatorTextEditor.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidgetSynchroniser.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidgetTextEditor.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/CommandSupprimer.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/CommandeDuplicate.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionBackGround.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionBloqueOuDebloqueWidget.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionColorBackground.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionColorForeground.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionDuplicate.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionFont.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionForeGround.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionRetaillageHorizontal.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionRetaillageVertical.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActiontextEditor.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/calque/CalqueLegendeWidgetAdapter.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/calque/EbliWidgetControllerCalque.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/graphe/EbliWidgetControllerGraphe.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/graphe/EbliWidgetGraphe.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/tree/EbliJXTreeTableCellRenderer.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/tree/EbliWidgetTreeTableNode.java branches/Prepro-0.92-SNAPSHOT/ebli/test/org/fudaa/ebli/all/TestGraphe2.java Added Paths: ----------- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/CommandUndoRedoCut.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/CommandUndoRedoPaste.java Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/ressource/ebli_en.fr_txt =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/ressource/ebli_en.fr_txt 2008-09-08 18:34:13 UTC (rev 3900) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/ressource/ebli_en.fr_txt 2008-09-08 18:35:19 UTC (rev 3901) @@ -589,4 +589,23 @@ Zoom centr\xE9 sur le point cliqu\xE9=Zoom centered on the clicked point Rectangle dessin\xE9=A rectangle is drawn Zoom sur le rectangle dessin\xE9=Zoom on the drawn rectangle -Zoom arri\xE8re centr\xE9 sur le point cliqu\xE9=Zoom-back centered on the clicked point \ No newline at end of file +Zoom arri\xE8re centr\xE9 sur le point cliqu\xE9=Zoom-back centered on the clicked point +Alignement \xE0 gauche=align to left +en bas=to the bottom +Centrer verticalement=center vertically +Centrer horizontalement=Center horizontally +Alignement \xE0 droite=Align to the right +en haut=to the top +Arri\xE8re plan= Background +Bloquer les objets s\xE9lectionn\xE9s= lock the selected objects +Debloquer les objets s\xE9lectionn\xE9s=unlock the selected objects +Couleur de fond=Background color +Couleur Contour=Foreground color +Configure=Configure +dupliquer les objets s\xE9lectionn\xE9s=duplicate the selected objects +Premier plan=Foreground +Ins\xE9rer une image=Insert a picture +Editeur de texte=text editor +Double-cliquez pour \xE9diter=double click in order to edit +D\xE9grouper=Degroup +Grouper=Group \ No newline at end of file Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliNode.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliNode.java 2008-09-08 18:34:13 UTC (rev 3900) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliNode.java 2008-09-08 18:35:19 UTC (rev 3901) @@ -21,6 +21,8 @@ void setPreferedLocation(Point p); + + public String toString(); /** @@ -41,4 +43,6 @@ */ public EbliWidget getWidget(); + public void setWidget(EbliWidget _widget); + } Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliNodeDefault.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliNodeDefault.java 2008-09-08 18:34:13 UTC (rev 3900) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliNodeDefault.java 2008-09-08 18:35:19 UTC (rev 3901) @@ -10,7 +10,9 @@ Point preferedLocation; Dimension preferedSize; String title; - + EbliWidget nodeWidget_; + + public String getTitle() { return title; } @@ -29,14 +31,16 @@ public void setPreferedLocation(Point p) { this.preferedLocation = p; // repositionnement du widget si existant - if (hasWidget()) getCreator().getWidget().setPreferredLocation(p); + if (hasWidget()) + nodeWidget_.setPreferredLocation(p); } public void setPreferedSize(Dimension d) { this.preferedSize = d; // repositionnement du widget si existant - if (hasWidget()) getCreator().getWidget().setPreferredSize(d); + if (hasWidget()) + nodeWidget_.setPreferredSize(d); } public void setCreator(EbliWidgetCreator creator) { @@ -64,7 +68,7 @@ // } public boolean hasWidget() { - return (getCreator() != null && getCreator().getWidget() != null); + return (getCreator() != null && nodeWidget_ != null); } @@ -73,7 +77,7 @@ * @return EbliWidget */ public EbliWidget getWidget() { - return creator.getWidget(); + return nodeWidget_; } public boolean isMovable() { @@ -81,4 +85,8 @@ return (hasWidget() && getPreferedLocation() != null && getWidget().getBounds() != null); } + public void setWidget(EbliWidget _widget) { + nodeWidget_ = _widget; + } + } Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliScene.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliScene.java 2008-09-08 18:34:13 UTC (rev 3900) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliScene.java 2008-09-08 18:35:19 UTC (rev 3901) @@ -133,16 +133,19 @@ protected Widget attachNodeWidget(EbliNode node) { // -- creation de la widget ici --// - EbliWidget res = node.getCreator().create(this); + node.setWidget(node.getCreator().create(this)); + + // -- remplissage des proprietes - res.setPreferredLocation(node.getPreferedLocation()); - if (node.getPreferedSize() != null) res.setPreferredSize(node.getPreferedSize()); + node.getWidget().setPreferredLocation(node.getPreferedLocation()); + if (node.getPreferedSize() != null) + node.getWidget().setPreferredSize(node.getPreferedSize()); // -- ajout dans la vue layer --// - visu_.addChild(res); + visu_.addChild(node.getWidget()); - return res; + return node.getWidget(); } /** Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidgetController.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidgetController.java 2008-09-08 18:34:13 UTC (rev 3900) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidgetController.java 2008-09-08 18:35:19 UTC (rev 3901) @@ -202,9 +202,9 @@ widget_.getEbliScene().addNode(duplique); // -- duplication des map de property graphique de la widget --// - duplique.getCreator().getWidget().propGraphique = n.getCreator().getWidget().duplicateGraphicalProperties(); + duplique.getWidget().propGraphique = n.getWidget().duplicateGraphicalProperties(); // -- duplication de la taille --// - duplique.getCreator().getWidget().setPreferredBounds(n.getCreator().getWidget().getPreferredBounds()); + duplique.getWidget().setPreferredBounds(n.getWidget().getPreferredBounds()); // -- ajout de la commande undo/redo --// ArrayList<EbliNode> ln = new ArrayList<EbliNode>(); Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidgetControllerMenuOnly.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidgetControllerMenuOnly.java 2008-09-08 18:34:13 UTC (rev 3900) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidgetControllerMenuOnly.java 2008-09-08 18:35:19 UTC (rev 3901) @@ -10,7 +10,7 @@ public class EbliWidgetControllerMenuOnly extends EbliWidgetController { public EbliWidgetControllerMenuOnly(EbliWidget widget_) { - super(widget_); + this(widget_, true); } public EbliWidgetControllerMenuOnly(EbliWidget widget_, boolean canDuplicate) { Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidgetCreator.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidgetCreator.java 2008-09-08 18:34:13 UTC (rev 3900) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidgetCreator.java 2008-09-08 18:35:19 UTC (rev 3901) @@ -5,7 +5,7 @@ EbliWidget create(EbliScene _scene); // FIXME a mettre dans le EbliNode - EbliWidget getWidget(); + // EbliWidget getWidget(); /** * Duplication de l ebliNode en fonction de son creator. Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidgetCreatorTextEditor.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidgetCreatorTextEditor.java 2008-09-08 18:34:13 UTC (rev 3900) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidgetCreatorTextEditor.java 2008-09-08 18:35:19 UTC (rev 3901) @@ -1,5 +1,7 @@ package org.fudaa.ebli.visuallibrary; +import java.awt.Point; + import org.fudaa.ctulu.gui.CtuluHtmlEditorPanel; /** @@ -11,8 +13,10 @@ public class EbliWidgetCreatorTextEditor implements EbliWidgetCreator { CtuluHtmlEditorPanel editorPane_; - EbliWidgetTextEditor res; - + // EbliWidgetTextEditor res; + EbliWidgetBordure res; + + public EbliWidgetCreatorTextEditor(CtuluHtmlEditorPanel g) { super(); this.editorPane_ = g; @@ -28,7 +32,7 @@ public EbliWidget create(EbliScene _scene) { - res = new EbliWidgetTextEditor(_scene, getG()); + res = new EbliWidgetBordure(new EbliWidgetTextEditor(_scene, getG())); return res; } @@ -39,11 +43,25 @@ } public EbliNode duplicate(EbliNode _nodeAdupliquer) { - return null; + + EbliNode duplique = new EbliNodeDefault(); + CtuluHtmlEditorPanel editor=new CtuluHtmlEditorPanel(); + editor.setDocumentText(getG().getDocumentText()); + duplique.setCreator(new EbliWidgetCreatorTextEditor(editor)); + + duplique.setTitle(_nodeAdupliquer.getTitle()); + // recopie des tailles + duplique.setPreferedSize(_nodeAdupliquer.getPreferedSize()); + // -- calcul nouvelle position + Point nouvellePosition = new Point(getWidget().getLocation().x, (int) (getWidget().getLocation().y + getWidget() + .getClientArea().height)); + duplique.setPreferedLocation(nouvellePosition); + + return duplique; } + public EbliWidgetBordure getBordure() { - return null; + return res; } - } Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidgetSynchroniser.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidgetSynchroniser.java 2008-09-08 18:34:13 UTC (rev 3900) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidgetSynchroniser.java 2008-09-08 18:35:19 UTC (rev 3901) @@ -102,7 +102,7 @@ // -- recuperation du node associe --// EbliNode node = (EbliNode) treeNode.getUserObject(); - if (node != null && node.hasWidget() && node.getCreator().getWidget().isVisible()) { + if (node != null && node.hasWidget() && node.getWidget().isVisible()) { // -- recuperation de la popup du node et ajout a l element du tree a al @@ -111,11 +111,11 @@ // -- cas ou la widget selectionnee est la bordure, il faut recuperer // son contenant --// - if(node.getCreator().getWidget() instanceof EbliWidgetBordure){ - EbliWidgetBordure bordure = (EbliWidgetBordure) node.getCreator().getWidget(); + if (node.getWidget() instanceof EbliWidgetBordure) { + EbliWidgetBordure bordure = (EbliWidgetBordure) node.getWidget(); poppup = bordure.intern_.getController_().getPopup(); }else - poppup=node.getCreator().getWidget().getController_().getPopup(); + poppup = node.getWidget().getController_().getPopup(); poppup.show(arbre_, x, y); Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidgetTextEditor.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidgetTextEditor.java 2008-09-08 18:34:13 UTC (rev 3900) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidgetTextEditor.java 2008-09-08 18:35:19 UTC (rev 3901) @@ -5,10 +5,13 @@ import java.awt.Rectangle; import java.util.EnumSet; +import javax.swing.JLabel; + import org.fudaa.ctulu.gui.CtuluHtmlEditorPanel; import org.netbeans.api.visual.action.ActionFactory; import org.netbeans.api.visual.action.InplaceEditorProvider; import org.netbeans.api.visual.action.WidgetAction; +import org.netbeans.api.visual.widget.ComponentWidget; import org.netbeans.api.visual.widget.Widget; import com.memoire.bu.BuBorderLayout; @@ -16,45 +19,45 @@ public class EbliWidgetTextEditor extends EbliWidget implements InplaceEditorProvider<BuPanel> { - // contenu du texte - String content_ = "Double-cliquez pour \xE9diter"; + // editeur de texte CtuluHtmlEditorPanel editorPane_ = new CtuluHtmlEditorPanel(); // ComponentWidget widget; BuPanel conteneur = null; - + // LabelWidget intern_; + ComponentWidget intern_; + + JLabel contenuHTML_ = new JLabel(); + public EbliWidgetTextEditor(EbliScene scene, CtuluHtmlEditorPanel content) { - super(scene, true); + super(scene, false); editorPane_ = content; - // widget = new ComponentWidget(scene, editorPane_) { - // public void notifyStateChanged(ObjectState previousState, ObjectState - // newState) { - // - // setBorder(getScene().getLookFeel().getBorder(newState)); - // } - // }; - // - // setLayout(new FlowLayout(true, SerialAlignment.CENTER, 5)); - // addChild(widget); - // + intern_ = new ComponentWidget(scene, contenuHTML_); + + contenuHTML_.setText(content.getDocumentText()); + // -- ajout en interne du label d affichage --// + this.addChild(intern_); + // -- creation de l action pour editor --// WidgetAction editorAction = ActionFactory.createInplaceEditorAction(this); // -- ajout de l action au widget correspondant --// this.getActions().addAction(editorAction); + + setController_(new EbliWidgetControllerMenuOnly(this)); } - protected void paintWidget() { - Graphics2D g = getGraphics(); + // protected void paintWidget() { + // Graphics2D g = getGraphics(); + // + // Rectangle rec = getClientArea(); + // + // decoupeEcriture(editorPane_.getDocumentText(), g); + // } - Rectangle rec = getClientArea(); - - decoupeEcriture(editorPane_.getDocumentText(), g); - } - /** * Methode qui redessine l edition de texte proprement. * @@ -93,14 +96,16 @@ editorPane_.setSize(rec.width, rec.height); editorPane_.setPreferredSize(new Dimension(rec.width, rec.height)); conteneur.setPreferredSize(new Dimension(rec.width, rec.height)); - + conteneur.setMaximumSize(new Dimension(rec.width, rec.height)); + conteneur.setMinimumSize(new Dimension(rec.width, rec.height)); conteneur.add(editorPane_, BuBorderLayout.CENTER); conteneur.add(editorPane_.getToolBar(true), BuBorderLayout.NORTH); conteneur.add(editorPane_.getMenuBar()); } + // -- on masque l affichage du widgetcomponent --// + contenuHTML_.setText(""); - return conteneur; @@ -119,6 +124,16 @@ public void notifyClosing(org.netbeans.api.visual.action.InplaceEditorProvider.EditorController controller, Widget widget, BuPanel editor, boolean commit) { + + // -- mise a jour de intern avec le contenu du ekitcore --// + + contenuHTML_.setText(editorPane_.getDocumentText()); + intern_.repaint(); + intern_.revalidate(); + this.repaint(); + getEbliScene().refresh(); + // intern_.setLabel(label.getText()); + } public void notifyOpened(org.netbeans.api.visual.action.InplaceEditorProvider.EditorController controller, Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/CommandSupprimer.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/CommandSupprimer.java 2008-09-08 18:34:13 UTC (rev 3900) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/CommandSupprimer.java 2008-09-08 18:35:19 UTC (rev 3901) @@ -41,8 +41,7 @@ scene_.addNode(nodeSupprime_); // -- repositionnement originel de la widget --// - nodeSupprime_.getCreator().getWidget().setPreferredLocation( - nodeSupprime_.getCreator().getWidget().convertSceneToLocal(location_)); + nodeSupprime_.getWidget().setPreferredLocation(nodeSupprime_.getWidget().convertSceneToLocal(location_)); // -- raffraichissement de la scene --// scene_.refresh(); Added: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/CommandUndoRedoCut.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/CommandUndoRedoCut.java (rev 0) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/CommandUndoRedoCut.java 2008-09-08 18:35:19 UTC (rev 3901) @@ -0,0 +1,57 @@ +package org.fudaa.ebli.visuallibrary.actions; + +import java.util.Iterator; +import java.util.Set; + +import org.fudaa.ctulu.CtuluCommand; +import org.fudaa.ebli.visuallibrary.EbliNode; + +/** + * classe de gestion des undo cut. Gere les undo/redo pour l'action ctrl+x. Pour + * l action paste, un autre undo/redo est g\xE9r\xE9 et permet de g\xE9rer les 2 cas + * copy/cut. + * + * @author Adrien Hadoux + * + * + */ +public class CommandUndoRedoCut implements CtuluCommand { + + Set<EbliNode> nodesCutted_; + + + + + public CommandUndoRedoCut(Set<EbliNode> _nodesCutted) { + super(); + nodesCutted_ = _nodesCutted; + } + + public void redo() { + for (Iterator<EbliNode> it = nodesCutted_.iterator(); it.hasNext();) { + EbliNode node = it.next(); + + // enlever les nodes de la scene + // le node existe toujours apres l'avoir enleve + node.getWidget().getEbliScene().removeNode(node); + } + nodesCutted_.iterator().next().getWidget().getEbliScene().refresh(); + + } + + public void undo() { + for (Iterator<EbliNode> it = nodesCutted_.iterator(); it.hasNext();) { + EbliNode node = it.next(); + + // enlever les nodes de la scene + // le node existe toujours apres l'avoir enleve + node.getWidget().getEbliScene().addNode(node); + } + nodesCutted_.iterator().next().getWidget().getEbliScene().refresh(); + + + } + + + +} Added: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/CommandUndoRedoPaste.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/CommandUndoRedoPaste.java (rev 0) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/CommandUndoRedoPaste.java 2008-09-08 18:35:19 UTC (rev 3901) @@ -0,0 +1,44 @@ +package org.fudaa.ebli.visuallibrary.actions; + +import java.util.Iterator; +import java.util.Set; + +import org.fudaa.ctulu.CtuluCommand; +import org.fudaa.ebli.visuallibrary.EbliNode; + +public class CommandUndoRedoPaste implements CtuluCommand { + + Set<EbliNode> nodesPasted_; + + public CommandUndoRedoPaste(Set<EbliNode> _nodesPasted) { + super(); + nodesPasted_ = _nodesPasted; + } + + public void redo() { + for (Iterator<EbliNode> it = nodesPasted_.iterator(); it.hasNext();) { + EbliNode node = it.next(); + + // enlever les nodes de la scene + // le node existe toujours apres l'avoir enleve + node.getWidget().getEbliScene().addNode(node); + } + nodesPasted_.iterator().next().getWidget().getEbliScene().refresh(); + + } + + public void undo() { + for (Iterator<EbliNode> it = nodesPasted_.iterator(); it.hasNext();) { + EbliNode node = it.next(); + + // enlever les nodes de la scene + // le node existe toujours apres l'avoir enleve + node.getWidget().getEbliScene().removeNode(node); + } + nodesPasted_.iterator().next().getWidget().getEbliScene().refresh(); + + } + + + +} Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/CommandeDuplicate.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/CommandeDuplicate.java 2008-09-08 18:34:13 UTC (rev 3900) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/CommandeDuplicate.java 2008-09-08 18:35:19 UTC (rev 3901) @@ -30,7 +30,7 @@ // -- redo unitaire execute pour chaque node dupliques --// for (Iterator<EbliNode> it = nodeDuplique_.iterator(); it.hasNext();) { EbliNode node = it.next(); - redo(node.getCreator().getWidget(), node); + redo(node.getWidget(), node); } } @@ -52,7 +52,7 @@ // -- redo unitaire execute pour chaque node dupliques --// for (Iterator<EbliNode> it = nodeDuplique_.iterator(); it.hasNext();) { EbliNode node = it.next(); - undo(node.getCreator().getWidget(), node); + undo(node.getWidget(), node); } } Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionBackGround.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionBackGround.java 2008-09-08 18:34:13 UTC (rev 3900) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionBackGround.java 2008-09-08 18:35:19 UTC (rev 3901) @@ -48,9 +48,9 @@ // -- ajout au premier plan du node --// // scene_.getVisu().addChild(currentNode.getCreator().getWidget()); - currentNode.getCreator().getWidget().bringToBack(); + currentNode.getWidget().bringToBack(); - listeWidget.add(currentNode.getCreator().getWidget()); + listeWidget.add(currentNode.getWidget()); // -- rafraichissement de la scene --// scene_.refresh(); Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionBloqueOuDebloqueWidget.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionBloqueOuDebloqueWidget.java 2008-09-08 18:34:13 UTC (rev 3900) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionBloqueOuDebloqueWidget.java 2008-09-08 18:35:19 UTC (rev 3901) @@ -29,7 +29,7 @@ public EbliWidgetActionBloqueOuDebloqueWidget(String name, Icon ic, String id, EbliScene _scene, boolean bloque) { super(_scene, name, ic, id); - putValue(NAME, "Duplication des \xE9lements s\xE9lectionn\xE9s"); + cmd_ = _scene.getCmdMng(); bloque_ = bloque; } @@ -67,9 +67,11 @@ if (currentNode != null && currentNode.hasWidget()) { // -- bloquage de la widget --// - if (bloque_) currentNode.getCreator().getWidget().getController_().removeActionResizeAndMove(); - else currentNode.getCreator().getWidget().getController_().replaceActionResizeAndMove(); - listeWidget.add(currentNode.getCreator().getWidget()); + if (bloque_) + currentNode.getWidget().getController_().removeActionResizeAndMove(); + else + currentNode.getWidget().getController_().replaceActionResizeAndMove(); + listeWidget.add(currentNode.getWidget()); // -- rafraichissement de la scene --// scene_.refresh(); Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionColorBackground.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionColorBackground.java 2008-09-08 18:34:13 UTC (rev 3900) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionColorBackground.java 2008-09-08 18:35:19 UTC (rev 3901) @@ -26,7 +26,7 @@ CtuluCommandContainer cmd_; public EbliWidgetActionColorBackground(EbliScene _scene) { - super(_scene, EbliResource.EBLI.getString("Couleur Contour"), EbliResource.EBLI.getToolIcon("couleur"), "CONTOUR"); + super(_scene, EbliResource.EBLI.getString("Couleur de fond"), EbliResource.EBLI.getToolIcon("couleur"), "CONTOUR"); cmd_ = _scene.getCmdMng(); @@ -35,7 +35,7 @@ public void actionPerformed(ActionEvent e) { // -- choix de la couleur par l utilisateur --// - Color couleur = BuColorChooser.showDialog(null, "Couleur de fond", Color.black); + Color couleur = BuColorChooser.showDialog(null, EbliResource.EBLI.getString("Couleur de fond"), Color.black); if (couleur != null) { // on met a joru les couleurs pour toutes les widgets selectionnees --// @@ -62,7 +62,7 @@ if (currentNode.hasWidget()) { - EbliWidget widget = currentNode.getCreator().getWidget(); + EbliWidget widget = currentNode.getWidget(); // -- test pour savoir si le widget gere le colorcontour --// if (widget.getColorFond() != null) { Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionColorForeground.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionColorForeground.java 2008-09-08 18:34:13 UTC (rev 3900) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionColorForeground.java 2008-09-08 18:35:19 UTC (rev 3901) @@ -35,7 +35,7 @@ public void actionPerformed(ActionEvent e) { // -- choix de la couleur par l utilisateur --// - Color couleur = BuColorChooser.showDialog(null, "Couleur du contour", Color.black); + Color couleur = BuColorChooser.showDialog(null, EbliResource.EBLI.getString("Couleur du contour"), Color.black); if (couleur != null) { // on met a joru les couleurs pour toutes les widgets selectionnees --// @@ -62,7 +62,7 @@ if (currentNode.hasWidget()) { - EbliWidget widget = currentNode.getCreator().getWidget(); + EbliWidget widget = currentNode.getWidget(); // -- test pour savoir si le widget gere le colorcontour --// if (widget.getColorContour() != null) { Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionDuplicate.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionDuplicate.java 2008-09-08 18:34:13 UTC (rev 3900) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionDuplicate.java 2008-09-08 18:35:19 UTC (rev 3901) @@ -36,7 +36,7 @@ super(_scene, EbliResource.EBLI.getString("dupliquer les objets s\xE9lectionn\xE9s"), CtuluResource.CTULU .getIcon("crystal_copier"), "DUPLICATE"); - putValue(NAME, "Duplication des \xE9lements s\xE9lectionn\xE9s"); + putValue(NAME, EbliResource.EBLI.getString("Duplication des \xE9lements s\xE9lectionn\xE9s")); cmd_ = _scene.getCmdMng(); } @@ -57,7 +57,7 @@ if (currentNode != null && currentNode.hasWidget()) { // -- duplication que si la widget est selectionnee --// - if (currentNode.getCreator().getWidget().getState().isSelected()) { + if (currentNode.getWidget().getState().isSelected()) { listeNodeADupliquer.add(currentNode); @@ -83,10 +83,9 @@ listeNouveauxNodes.add(node); // -- duplication des map de property graphique de la widget --// - node.getCreator().getWidget().setPropGraphique( - currentNode.getCreator().getWidget().duplicateGraphicalProperties()); + node.getWidget().setPropGraphique(currentNode.getWidget().duplicateGraphicalProperties()); // -- duplication de la taille --// - node.getCreator().getWidget().setPreferredBounds(currentNode.getCreator().getWidget().getPreferredBounds()); + node.getWidget().setPreferredBounds(currentNode.getWidget().getPreferredBounds()); // -- rafraichissement de la scene --// sceneDestination_.refresh(); Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionFont.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionFont.java 2008-09-08 18:34:13 UTC (rev 3900) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionFont.java 2008-09-08 18:35:19 UTC (rev 3901) @@ -101,7 +101,7 @@ if (currentNode.hasWidget()) { - EbliWidget widget = currentNode.getCreator().getWidget(); + EbliWidget widget = currentNode.getWidget(); // -- test pour savoir si le widget gere le colorcontour --// if (widget.getFormeFont() != null) { Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionForeGround.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionForeGround.java 2008-09-08 18:34:13 UTC (rev 3900) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionForeGround.java 2008-09-08 18:35:19 UTC (rev 3901) @@ -45,11 +45,11 @@ if (currentNode != null && currentNode.isMovable()) { // -- ajout au premier plan du node --// - // scene_.getVisu().addChild(currentNode.getCreator().getWidget()); + // scene_.getVisu().addChild(currentNode.getWidget()); - currentNode.getCreator().getWidget().bringToFront(); + currentNode.getWidget().bringToFront(); - listeWidget.add(currentNode.getCreator().getWidget()); + listeWidget.add(currentNode.getWidget()); // -- rafraichissement de la scene --// scene_.refresh(); Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionRetaillageHorizontal.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionRetaillageHorizontal.java 2008-09-08 18:34:13 UTC (rev 3900) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionRetaillageHorizontal.java 2008-09-08 18:35:19 UTC (rev 3901) @@ -59,7 +59,8 @@ // retaillables --// for (Iterator<EbliNode> it = listeNode.iterator(); it.hasNext();) { EbliNode node = it.next(); - if (node.hasWidget() && node.getCreator().getWidget().getController_().isCanResize()) listeNodeAutorises + if (node.hasWidget() && node.getWidget().getController_().isCanResize()) + listeNodeAutorises .add(node); } @@ -67,17 +68,17 @@ Iterator<EbliNode> it = listeNodeAutorises.iterator(); Rectangle tailleAresize = null; if (it.hasNext()) { - tailleAresize = it.next().getCreator().getWidget().getPreferredBounds(); + tailleAresize = it.next().getWidget().getPreferredBounds(); for (; it.hasNext();) { EbliNode currentNode = it.next(); if (typeRetaillage_ == RETAIILLAGE_MAX && currentNode.hasWidget()) { - if (tailleAresize.width < currentNode.getCreator().getWidget().getPreferredBounds().width) tailleAresize = currentNode - .getCreator().getWidget().getPreferredBounds(); + if (tailleAresize.width < currentNode.getWidget().getPreferredBounds().width) + tailleAresize = currentNode.getWidget().getPreferredBounds(); } else if (currentNode.hasWidget()) { - if (tailleAresize.width > currentNode.getCreator().getWidget().getPreferredBounds().width) tailleAresize = currentNode - .getCreator().getWidget().getPreferredBounds(); + if (tailleAresize.width > currentNode.getWidget().getPreferredBounds().width) + tailleAresize = currentNode.getWidget().getPreferredBounds(); } } } @@ -97,15 +98,15 @@ EbliNode currentNode = it2.next(); if (currentNode != null && currentNode.hasWidget()) { - listeWidget.add(currentNode.getCreator().getWidget()); - oldRectangle.add(currentNode.getCreator().getWidget().getPreferredBounds()); + listeWidget.add(currentNode.getWidget()); + oldRectangle.add(currentNode.getWidget().getPreferredBounds()); // -- retaillage --// - currentNode.getCreator().getWidget().setPreferredBounds( + currentNode.getWidget().setPreferredBounds( new Rectangle(new Dimension(tailleAresize.width, - currentNode.getCreator().getWidget().getPreferredBounds().height))); + currentNode.getWidget().getPreferredBounds().height))); - newRectangle.add(currentNode.getCreator().getWidget().getPreferredBounds()); + newRectangle.add(currentNode.getWidget().getPreferredBounds()); // -- rafraichissement de la scene --// scene_.refresh(); Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionRetaillageVertical.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionRetaillageVertical.java 2008-09-08 18:34:13 UTC (rev 3900) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionRetaillageVertical.java 2008-09-08 18:35:19 UTC (rev 3901) @@ -39,10 +39,10 @@ cmd_ = _scene.getCmdMng(); if (_typeRetaillage == RETAIILLAGE_MAX) { - putValue(NAME, "Resize Vertical Max"); + putValue(NAME, EbliResource.EBLI.getString("Resize Vertical Max")); setIcon(EbliResource.EBLI.getToolIcon("aotallest")); } else { - putValue(NAME, "Resize Vertical Min"); + putValue(NAME, EbliResource.EBLI.getString("Resize Vertical Min")); setIcon(CtuluResource.CTULU.getIcon("crystal_rangerpalettes")); } @@ -60,7 +60,8 @@ // retaillables --// for (Iterator<EbliNode> it = listeNode.iterator(); it.hasNext();) { EbliNode node = it.next(); - if (node.hasWidget() && node.getCreator().getWidget().getController_().isCanResize()) listeNodeAutorises + if (node.hasWidget() && node.getWidget().getController_().isCanResize()) + listeNodeAutorises .add(node); } @@ -68,17 +69,17 @@ Iterator<EbliNode> it = listeNodeAutorises.iterator(); Rectangle tailleAresize = null; if (it.hasNext()) { - tailleAresize = it.next().getCreator().getWidget().getPreferredBounds(); + tailleAresize = it.next().getWidget().getPreferredBounds(); for (; it.hasNext();) { EbliNode currentNode = it.next(); if (typeRetaillage_ == RETAIILLAGE_MAX && currentNode.hasWidget()) { - if (tailleAresize.height < currentNode.getCreator().getWidget().getPreferredBounds().height) tailleAresize = currentNode - .getCreator().getWidget().getPreferredBounds(); + if (tailleAresize.height < currentNode.getWidget().getPreferredBounds().height) + tailleAresize = currentNode.getWidget().getPreferredBounds(); } else if (currentNode.hasWidget()) { - if (tailleAresize.height > currentNode.getCreator().getWidget().getPreferredBounds().height) tailleAresize = currentNode - .getCreator().getWidget().getPreferredBounds(); + if (tailleAresize.height > currentNode.getWidget().getPreferredBounds().height) + tailleAresize = currentNode.getWidget().getPreferredBounds(); } } } @@ -98,15 +99,15 @@ EbliNode currentNode = it2.next(); if (currentNode != null && currentNode.hasWidget()) { - listeWidget.add(currentNode.getCreator().getWidget()); - oldRectangle.add(currentNode.getCreator().getWidget().getPreferredBounds()); + listeWidget.add(currentNode.getWidget()); + oldRectangle.add(currentNode.getWidget().getPreferredBounds()); // -- retaillage --// - currentNode.getCreator().getWidget().setPreferredBounds( - new Rectangle(new Dimension(currentNode.getCreator().getWidget().getPreferredBounds().width, + currentNode.getWidget().setPreferredBounds( + new Rectangle(new Dimension(currentNode.getWidget().getPreferredBounds().width, tailleAresize.height))); - newRectangle.add(currentNode.getCreator().getWidget().getPreferredBounds()); + newRectangle.add(currentNode.getWidget().getPreferredBounds()); // -- rafraichissement de la scene --// scene_.refresh(); Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActiontextEditor.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActiontextEditor.java 2008-09-08 18:34:13 UTC (rev 3900) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActiontextEditor.java 2008-09-08 18:35:19 UTC (rev 3901) @@ -20,7 +20,7 @@ public class EbliWidgetActiontextEditor extends EbliWidgetActionSimple { public EbliWidgetActiontextEditor(EbliScene _widget) { - super(_widget, EbliLib.getS("Ins\xE9rer une texte"), BuResource.BU.getIcon("crystal_fonte"), "INSERTIONTEXTE"); + super(_widget, EbliLib.getS("Editeur de texte"), BuResource.BU.getIcon("crystal_editer"), "INSERTIONTEXTE"); } @@ -29,7 +29,10 @@ // -- creation de la widget et ajout dans la scene --// EbliNodeDefault nodeText = new EbliNodeDefault(); nodeText.setTitle("Texte"); - nodeText.setCreator(new EbliWidgetCreatorTextEditor(new CtuluHtmlEditorPanel())); + CtuluHtmlEditorPanel editor = new CtuluHtmlEditorPanel(); + editor.setDocumentText(EbliLib.getS("Double-cliquez pour \xE9diter")); + + nodeText.setCreator(new EbliWidgetCreatorTextEditor(editor)); nodeText.setPreferedSize(new Dimension(200, 200)); nodeText.setPreferedLocation(new Point(270, 225)); scene_.addNode(nodeText); Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/calque/CalqueLegendeWidgetAdapter.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/calque/CalqueLegendeWidgetAdapter.java 2008-09-08 18:34:13 UTC (rev 3900) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/calque/CalqueLegendeWidgetAdapter.java 2008-09-08 18:35:19 UTC (rev 3901) @@ -228,7 +228,7 @@ */ @Override protected void addLegendToPanel(BCalqueLegendePanel _pnLeg) { - FuLog.warning("J'ajoute un nouveau BCalqueLegendePanel dans la widget legende:" + _pnLeg); + legendePanel_ = _pnLeg; @@ -240,20 +240,12 @@ * * @return EbliNode cree ajoute a la scene. */ - public EbliNode createLegende() { + public EbliNode createLegende(Point _location) { - // legendePanel_.setVisible(true); - // legendePanel_.setSize(150, 300); - // legendePanel_.setPreferredSize(new Dimension(150, 300)); - // legendePanel_.setMinimumSize(new Dimension(150, 300)); - // - // // EbliWidgetCreatorLegende creator = new - // // EbliWidgetCreatorLegende(legendePanel_); - // // legendePanel_.setDoubleBuffered(false); - // // BuLib.setDoubleBuffered(legendePanel_, false); + EbliNodeDefault def = new EbliNodeDefault(); - def.setPreferedLocation(new Point(200, 200)); + def.setPreferedLocation(_location); // def.setPreferedSize(new Dimension(150, 250)); def.setCreator(new EbliWidgetCreatorLegende(legendePanel_)); def.setTitle("L\xE9gende calque"); Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/calque/EbliWidgetControllerCalque.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/calque/EbliWidgetControllerCalque.java 2008-09-08 18:34:13 UTC (rev 3900) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/calque/EbliWidgetControllerCalque.java 2008-09-08 18:35:19 UTC (rev 3901) @@ -25,6 +25,7 @@ import org.fudaa.ebli.commun.EbliComponentFactory; import org.fudaa.ebli.commun.EbliLib; import org.fudaa.ebli.controle.BSelecteurListComboBox; +import org.fudaa.ebli.ressource.EbliResource; import org.fudaa.ebli.visuallibrary.EbliNode; import org.fudaa.ebli.visuallibrary.EbliWidget; import org.fudaa.ebli.visuallibrary.EbliWidgetControllerMenuOnly; @@ -96,7 +97,7 @@ protected void constructMenuMasquer(JPopupMenu _popup, final CtuluCommandContainer cmd_) { - JMenuItem menuItem = _popup.add("Masquer l'objet"); + JMenuItem menuItem = _popup.add(EbliResource.EBLI.getString("Masquer l'objet")); menuItem.setIcon(CtuluResource.CTULU.getIcon("crystal_visibilite")); menuItem.addActionListener(new ActionListener() { @@ -127,8 +128,8 @@ widgetCalque_.nodeLegende.getCreator().getBordure().setVisible(false); widgetUndo2 = widgetCalque_.nodeLegende.getCreator().getBordure(); } else { - widgetCalque_.nodeLegende.getCreator().getWidget().setVisible(false); - widgetUndo2 = widgetCalque_.nodeLegende.getCreator().getWidget(); + widgetCalque_.nodeLegende.getWidget().setVisible(false); + widgetUndo2 = widgetCalque_.nodeLegende.getWidget(); } @@ -164,7 +165,7 @@ } private void constructPopupMenuSpecifique(JPopupMenu _popup) { - JMenuItem menuItem = _popup.add("Ajouter la l\xE9gende"); + JMenuItem menuItem = _popup.add(EbliResource.EBLI.getString("Ajouter la l\xE9gende")); menuItem.setIcon(CtuluResource.CTULU.getIcon("crystal_commentaire")); menuItem.addActionListener(new ActionListener() { @@ -191,12 +192,16 @@ legendeWidget_ = (CalqueLegendeWidgetAdapter) widgetCalque_.calquePanel_.getCqLegend(); } // -- creation de la legende - setNodeLegende(legendeWidget_.createLegende()); - + Point positionLegende = new Point(); + if (widget_.getBounds() != null && widget_.getPreferredLocation() != null) { + positionLegende.x = widget_.getPreferredLocation().x + widget_.getBounds().width + 20; + positionLegende.y = widget_.getPreferredLocation().y; + setNodeLegende(legendeWidget_.createLegende(positionLegende)); + } widget_.getEbliScene().refresh(); } else if (getNodeLegende().hasWidget()) // -- cas ou la legende existe mais est cach\xE9e --// - getNodeLegende().getCreator().getWidget().setVisible(true); + getNodeLegende().getWidget().setVisible(true); // GrapheWidget.this.addChild(widgetLegende); } Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/graphe/EbliWidgetControllerGraphe.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/graphe/EbliWidgetControllerGraphe.java 2008-09-08 18:34:13 UTC (rev 3900) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/graphe/EbliWidgetControllerGraphe.java 2008-09-08 18:35:19 UTC (rev 3901) @@ -87,8 +87,8 @@ widgetGraphe_.getNodeLegende().getCreator().getBordure().setVisible(false); widgetUndo2 = widgetGraphe_.getNodeLegende().getCreator().getBordure(); } else { - widgetGraphe_.getNodeLegende().getCreator().getWidget().setVisible(false); - widgetUndo2 = widgetGraphe_.getNodeLegende().getCreator().getWidget(); + widgetGraphe_.getNodeLegende().getWidget().setVisible(false); + widgetUndo2 = widgetGraphe_.getNodeLegende().getWidget(); } // -- creation des comamndes undo/redo pour le masquage --// @@ -170,7 +170,7 @@ widget_.getEbliScene().addNode(widgetGraphe_.getNodeLegende()); widgetGraphe_.getNodeLegende().setPreferedSize( - widgetGraphe_.getNodeLegende().getCreator().getWidget() + widgetGraphe_.getNodeLegende().getWidget() .getPreferredSize()); //widgetLegende=WidgetLegendeManager.createLegende(EbliWidgetGraphe. // this.getGraphe(), @@ -178,7 +178,7 @@ widget_.getEbliScene().refresh(); } else if (widgetGraphe_.getNodeLegende().hasWidget()) { // -- cas ou la legende est masquee --// - widgetGraphe_.getNodeLegende().getCreator().getWidget().setVisible(true); + widgetGraphe_.getNodeLegende().getWidget().setVisible(true); } // GrapheWidget.this.addChild(widgetLegende); Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/graphe/EbliWidgetGraphe.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/graphe/EbliWidgetGraphe.java 2008-09-08 18:34:13 UTC (rev 3900) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/graphe/EbliWidgetGraphe.java 2008-09-08 18:35:19 UTC (rev 3901) @@ -73,6 +73,7 @@ super(scene); panelGraphe_ = _pn; panelGraphe_.setBorder(null); + // FIXME panelGraphe_.remove(CtuluLibSwing.findChildByName(panelGraphe_, "lbTools")); panelGraphe_.getGraphe().getModel().addModelListener(this); @@ -92,7 +93,17 @@ public BufferedImage getImageGraphe() { return imageGraphe; } + + @Override + protected void notifyAdded() { + super.notifyAdded(); + } + @Override + protected void notifyRemoved() { + super.notifyRemoved(); + } + protected void paintWidget() { Rectangle rec = getClientArea(); Graphics2D g = getGraphics(); Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/tree/EbliJXTreeTableCellRenderer.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/tree/EbliJXTreeTableCellRenderer.java 2008-09-08 18:34:13 UTC (rev 3900) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/tree/EbliJXTreeTableCellRenderer.java 2008-09-08 18:35:19 UTC (rev 3901) @@ -2,16 +2,9 @@ import java.awt.Color; import java.awt.Component; -import java.awt.Font; import javax.swing.Icon; -import javax.swing.JCheckBox; -import javax.swing.JLabel; -import javax.swing.JPanel; import javax.swing.JTree; -import javax.swing.UIManager; -import javax.swing.tree.DefaultMutableTreeNode; -import javax.swing.tree.DefaultTreeCellRenderer; import javax.swing.tree.TreeCellRenderer; import org.fudaa.ctulu.CtuluResource; @@ -19,10 +12,7 @@ import org.fudaa.ebli.visuallibrary.EbliNodeDefault; import org.jdesktop.swingx.treetable.DefaultMutableTreeTableNode; -import com.memoire.bu.BuCheckBox; import com.memoire.bu.BuLabel; -import com.memoire.bu.BuPanel; -import com.sun.org.apache.xerces.internal.impl.xs.opti.DefaultNode; /** * Treecell renderer pour l arbre des calques de visualllibrary. * gere uniquement l affichage des icones optimises. @@ -75,13 +65,13 @@ - if(node.getCreator().getWidget().isVisible()) + if (node.getWidget().isVisible()) returnLabel.setIcon(iconLeafEnabled);//=new BuLabel(this.iconLeafEnabled); else returnLabel.setIcon(iconLeafDisabled);//returnLabel=new BuLabel(this.iconLeafDisabled); - returnLabel.setEnabled(node.getCreator().getWidget().isVisible()); + returnLabel.setEnabled(node.getWidget().isVisible()); } } /*else if (!leaf && !((DefaultMutableTreeTableNode) value).isRoot()) { @@ -97,74 +87,60 @@ return returnLabel; } - - - - - - /* - public Component getTreeCellRendererComponent(JTree tree, Object value, boolean selected, boolean expanded, - boolean leaf, int row, boolean hasFocus) { - - BuLabel returnLabel = null; - BuCheckBox returnValue = null; - // cas particulier renderer: on met un checkbox que si on est feuille et pqs root (= cqs ou lqyer depourvu d objet graphique) - if (leaf && !((DefaultMutableTreeNode) value).isRoot()) { - - // -- recuperation du node --// - Object userObject = ((DefaultMutableTreeNode) value).getUserObject(); - - EbliNodeDefault node = null; - if (userObject instanceof EbliNode) { - node = (EbliNodeDefault) (((DefaultMutableTreeNode) value).getUserObject()); - - //System.err.println("c est un EbliNode!!! ROW: " + row); - - // -- creation d'une nouvelle checkbox aui sera ainsi unique pour chaque - // composant - returnValue=new BuCheckBox(); - //leafRenderer.setOpaque(false); - - returnValue.setText(node.getTitle()); - returnValue.setSelected(node.getCreator().getWidget().isVisible()); - - - returnLabel=new BuLabel(this.iconLeafEnabled); - - - - returnLabel.setEnabled(node.getCreator().getWidget().isVisible()); - } - - } else { - returnLabel=new BuLabel(((DefaultMutableTreeNode) value).toString(),this.iconRoot); - //returnValue = nonLeafRenderer.getTreeCellRendererComponent(tree, value, selected, expanded, leaf, row, hasFocus); - - } - + /* + * public Component getTreeCellRendererComponent(JTree tree, Object value, + * boolean selected, boolean expanded, boolean leaf, int row, boolean + * hasFocus) { + * + * + * BuLabel returnLabel = null; BuCheckBox returnValue = null; // cas + * particulier renderer: on met un checkbox que si on est feuille et pqs root + * (= cqs ou lqyer depourvu d objet graphique) if (leaf && + * !((DefaultMutableTreeNode) value).isRoot()) { + * + * // -- recuperation du node --// Object userObject = + * ((DefaultMutableTreeNode) value).getUserObject(); + * + * EbliNodeDefault node = null; if (userObject instanceof EbliNode) { node = + * (EbliNodeDefault) (((DefaultMutableTreeNode) value).getUserObject()); + * + * //System.err.println("c est un EbliNode!!! ROW: " + row); + * + * // -- creation d'une nouvelle checkbox aui sera ainsi unique pour chaque // + * composant returnValue=new BuCheckBox(); //leafRenderer.setOpaque(false); + * + * returnValue.setText(node.getTitle()); + * returnValue.setSelected(node.getWidget().isVisible()); + * + * + * returnLabel=new BuLabel(this.iconLeafEnabled); + * + * + * + * returnLabel.setEnabled(node.getWidget().isVisible()); } + * + * } else { returnLabel=new BuLabel(((DefaultMutableTreeNode) + * value).toString(),this.iconRoot); //returnValue = + * nonLeafRenderer.getTreeCellRendererComponent(tree, value, selected, + * expanded, leaf, row, hasFocus); + * + * } + * + * + * //-- creation du panel avec les informations --// leafRenderer=new + * EbliCheckBoxPanel(); + * + * if(returnLabel!=null) leafRenderer.labelRenderer=returnLabel; + * + * if(returnValue!=null ) leafRenderer.checkBox=returnValue; + * + * //-- construction du composant --// leafRenderer.construct(); + * + * // qccessible en fonction du tree + * leafRenderer.setEnabled(tree.isEnabled()); if(selected){ + * leafRenderer.setBackground(Color.BLUE); } else + * leafRenderer.setBackground(Color.WHITE); return leafRenderer; } + */ - //-- creation du panel avec les informations --// - leafRenderer=new EbliCheckBoxPanel(); - - if(returnLabel!=null) - leafRenderer.labelRenderer=returnLabel; - - if(returnValue!=null ) - leafRenderer.checkBox=returnValue; - - //-- construction du composant --// - leafRenderer.construct(); - - // qccessible en fonction du tree - leafRenderer.setEnabled(tree.isEnabled()); - if(selected){ - leafRenderer.setBackground(Color.BLUE); - } - else - leafRenderer.setBackground(Color.WHITE); - return leafRenderer; - } -*/ - } Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/tree/EbliWidgetTreeTableNode.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/tree/EbliWidgetTreeTableNode.java 2008-09-08 18:34:13 UTC (rev 3900) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/tree/EbliWidgetTreeTableNode.java 2008-09-08 18:35:19 UTC (rev 3901) @@ -68,7 +68,7 @@ if (_column == 1) { return ((EbliNodeDefault) getUserObject()).getTitle(); } - return Boolean.valueOf(((EbliNodeDefault) getUserObject()).getCreator().getWidget().isVisible()); + return Boolean.valueOf(((EbliNodeDefault) getUserObject()).getWidget().isVisible()); } @Override @@ -83,32 +83,32 @@ ((EbliNode) getUserObject()).setTitle((String) _value); else if (_column == 2) { // -- mise a jour du masquage --// - ((EbliNode) getUserObject()).getCreator().getWidget().setVisible(((Boolean) _value).booleanValue()); + ((EbliNode) getUserObject()).getWidget().setVisible(((Boolean) _value).booleanValue()); // -- reference vers le gestionnaire de commandeundo/redo --// - final CtuluCommandContainer cmd_ = ((EbliNode) getUserObject()).getCreator().getWidget().getEbliScene() + final CtuluCommandContainer cmd_ = ((EbliNode) getUserObject()).getWidget().getEbliScene() .getCmdMng(); ArrayList<EbliWidget> listeWidgetUndo = new ArrayList<EbliWidget>(); - listeWidgetUndo.add(((EbliNode) getUserObject()).getCreator().getWidget()); + listeWidgetUndo.add(((EbliNode) getUserObject()).getWidget()); // -- cas particulier si il s agit d un calque ou d un graphe, on masque // les sous fils --// - if ((((EbliNode) getUserObject()).getCreator().getWidget()) instanceof EbliWidgetBordure - && (((EbliNode) getUserObject()).getCreator().getWidget()).getChildren() != null) { + if ((((EbliNode) getUserObject()).getWidget()) instanceof EbliWidgetBordure + && (((EbliNode) getUserObject()).getWidget()).getChildren() != null) { - if ((((EbliNode) getUserObject()).getCreator().getWidget()).getChildren().get(0) instanceof EbliWidgetVueCalque) { - EbliWidgetVueCalque wid = (EbliWidgetVueCalque) (((EbliNode) getUserObject()).getCreator().getWidget()) + if ((((EbliNode) getUserObject()).getWidget()).getChildren().get(0) instanceof EbliWidgetVueCalque) { + EbliWidgetVueCalque wid = (EbliWidgetVueCalque) (((EbliNode) getUserObject()).getWidget()) .getChildren().get(0); - wid.nodeLegende.getCreator().getWidget().setVisible(((Boolean) _value).booleanValue()); - listeWidgetUndo.add(wid.nodeLegende.getCreator().getWidget()); + wid.nodeLegende.getWidget().setVisible(((Boolean) _value).booleanValue()); + listeWidgetUndo.add(wid.nodeLegende.getWidget()); } else - if ((((EbliNode) getUserObject()).getCreator().getWidget()).getChildren().get(0) instanceof EbliWidgetGraphe) { - EbliWidgetGraphe wid = (EbliWidgetGraphe) (((EbliNode) getUserObject()).getCreator().getWidget()).getChildren().get(0); - wid.getNodeLegende().getCreator().getWidget().setVisible(((Boolean) _value).booleanValue()); - listeWidgetUndo.add(wid.getNodeLegende().getCreator... [truncated message content] |
From: <had...@us...> - 2008-09-08 18:34:03
|
Revision: 3900 http://fudaa.svn.sourceforge.net/fudaa/?rev=3900&view=rev Author: hadouxad Date: 2008-09-08 18:34:13 +0000 (Mon, 08 Sep 2008) Log Message: ----------- - ajout du menu multi-fenetre: permet d activer la fillelayout en cliquant sur son menuitem correspondant => cas ou l utilisateur ferme sa fenetre sans faire gaffe, il peut maintenant la recuperer - Ajout de l action editeur de texte en utilisant ekitcore - possibiliter de mettre: - des formules mathematiaues - gras, soulign?\195?\169,italique... - espaces, passages de lignes - ALARMA! les aligns internes ne marchent pas - REFACTORISATION: methode getWidget et setWidget dans le ebliNode - Repositionnement des widgets dans la scene: miux cal?\195?\169s , calque et sa legende - Traduction des chaines ebli et tr dans les fichiers correspondants - Gestion du cut/copy/paste: fonctionne nickel: - on peut selectionner plusieurs widgets simultanement - On peut copier/couper depuis une fillelayout vers une autre sans prob et vice-versa - Gestion de la position precedentes pour le cut/copy OK - Gestion des multi fenetre: enregistrement des liste cut/copy dans le trpostprojet - GEstion des undo/redo poru le cut/copy/paste - MULTILAYOUT ONGLET:degage des onglets scenes ainsi que des menus correspondant - MULTI LAYOUT FRAME: lors de la suppression, confirmation puis suppression - confirmation suppression - lors de la fermeture degage la reference de la fille - degage les menus d activation des frames Modified Paths: -------------- branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/common/tr_en.fr_txt This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <had...@us...> - 2008-09-08 18:33:47
|
Revision: 3899 http://fudaa.svn.sourceforge.net/fudaa/?rev=3899&view=rev Author: hadouxad Date: 2008-09-08 18:33:56 +0000 (Mon, 08 Sep 2008) Log Message: ----------- - ajout du menu multi-fenetre: permet d activer la fillelayout en cliquant sur son menuitem correspondant => cas ou l utilisateur ferme sa fenetre sans faire gaffe, il peut maintenant la recuperer - Ajout de l action editeur de texte en utilisant ekitcore - possibiliter de mettre: - des formules mathematiaues - gras, soulign?\195?\169,italique... - espaces, passages de lignes - ALARMA! les aligns internes ne marchent pas - REFACTORISATION: methode getWidget et setWidget dans le ebliNode - Repositionnement des widgets dans la scene: miux cal?\195?\169s , calque et sa legende - Traduction des chaines ebli et tr dans les fichiers correspondants - Gestion du cut/copy/paste: fonctionne nickel: - on peut selectionner plusieurs widgets simultanement - On peut copier/couper depuis une fillelayout vers une autre sans prob et vice-versa - Gestion de la position precedentes pour le cut/copy OK - Gestion des multi fenetre: enregistrement des liste cut/copy dans le trpostprojet - GEstion des undo/redo poru le cut/copy/paste - MULTILAYOUT ONGLET:degage des onglets scenes ainsi que des menus correspondant - MULTI LAYOUT FRAME: lors de la suppression, confirmation puis suppression - confirmation suppression - lors de la fermeture degage la reference de la fille - degage les menus d activation des frames Modified Paths: -------------- branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostProjet.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-09-08 18:33:38 UTC (rev 3898) +++ branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostProjet.java 2008-09-08 18:33:56 UTC (rev 3899) @@ -274,7 +274,16 @@ ArrayList<TrPostLayoutFille> listeFillesLayout = new ArrayList<TrPostLayoutFille>(); + /** + * liste des noeuds pour gerer le cut/copy/paste avec en + le undo/redo + */ + // liste des noeuds copies + Set<EbliNode> nodesCopyied = null; + // liste des noeuuds coupes + Set<EbliNode> nodesCutted = null; + + /** *ajout une fillelayout a la liste des frame layout * * @param _fille @@ -283,14 +292,15 @@ listeFillesLayout.add(_fille); // -- ajout dans le menu post d'un onglet de la fenetre --// - if (listeFillesLayout.size() > 1) { - //-- ajout du separator des filles layout --// - // menuLayout_.addSeparator(TrResource.getS("Liste des fen\xEAtres")); - - menuLayout_.addMenuItem(TrResource.getS(("Layout ")) + listeFillesLayout.size(), "FILLELAYOUT" - + (listeFillesLayout.size() - 1), null, this); - - } + // if (listeFillesLayout.size() > 1) { + // //-- ajout du separator des filles layout --// + // // menuLayout_.addSeparator(TrResource.getS("Liste des fen\xEAtres")); + // + // menuLayout_.addMenuItem(TrResource.getS(("Layout ")) + + // listeFillesLayout.size(), "FILLELAYOUT" + // + (listeFillesLayout.size() - 1), null, this); + // + // } } /** @@ -636,12 +646,12 @@ * menu.addSubMenu(filleLayout_.controller_.menuScenes_, true); */ // ajout a cote de menu post - menuLayout_.addSeparator(TrResource.getS("Liste des fen\xEAtres")); - - menuLayout_.addMenuItem(TrResource.getS(("Layout ")) + listeFillesLayout.size(), "FILLELAYOUT" - + (listeFillesLayout.size() - 1), null, this); + // menuLayout_.addSeparator(TrResource.getS("Liste des fen\xEAtres")); + // menuLayout_.addMenuItem(TrResource.getS(("Layout ")) + + // listeFillesLayout.size(), "FILLELAYOUT" + // + (listeFillesLayout.size() - 1), null, this); + // - menubar.add(menuLayout_, 2); } @@ -1042,6 +1052,7 @@ // -- creation du menu POST de base --// setMenuPost(); + // -- a decommenter pour activer les menus des fillelayout setMenuLayout(); @@ -1234,10 +1245,14 @@ // -- ajout du visuPanel au layout --// - EbliNode node = filleLayout.addCalque("Calque principal", pnVisu.getLocation(), pnVisu.getPreferredSize(), + Point location= pnVisu.getLocation(); + location.x+=10; + location.y+=10; + + EbliNode node = filleLayout.addCalque("Calque", location, pnVisu.getPreferredSize(), pnVisu, legendeCalque); // -- ajout de l INFO de la source utilis\xE9e --// - node.getCreator().getWidget().getController_().setDescription(formatInfoSource(getSource(0))); + node.getWidget().getController_().setDescription(formatInfoSource(getSource(0))); // -- decoration de la fille layout --// decoreFilleVisu(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <had...@us...> - 2008-09-08 18:33:29
|
Revision: 3898 http://fudaa.svn.sourceforge.net/fudaa/?rev=3898&view=rev Author: hadouxad Date: 2008-09-08 18:33:38 +0000 (Mon, 08 Sep 2008) Log Message: ----------- - ajout du menu multi-fenetre: permet d activer la fillelayout en cliquant sur son menuitem correspondant => cas ou l utilisateur ferme sa fenetre sans faire gaffe, il peut maintenant la recuperer - Ajout de l action editeur de texte en utilisant ekitcore - possibiliter de mettre: - des formules mathematiaues - gras, soulign?\195?\169,italique... - espaces, passages de lignes - ALARMA! les aligns internes ne marchent pas - REFACTORISATION: methode getWidget et setWidget dans le ebliNode - Repositionnement des widgets dans la scene: miux cal?\195?\169s , calque et sa legende - Traduction des chaines ebli et tr dans les fichiers correspondants - Gestion du cut/copy/paste: fonctionne nickel: - on peut selectionner plusieurs widgets simultanement - On peut copier/couper depuis une fillelayout vers une autre sans prob et vice-versa - Gestion de la position precedentes pour le cut/copy OK - Gestion des multi fenetre: enregistrement des liste cut/copy dans le trpostprojet - GEstion des undo/redo poru le cut/copy/paste - MULTILAYOUT ONGLET:degage des onglets scenes ainsi que des menus correspondant - MULTI LAYOUT FRAME: lors de la suppression, confirmation puis suppression - confirmation suppression - lors de la fermeture degage la reference de la fille - degage les menus d activation des frames Modified Paths: -------------- branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostActionChangeSceneForWidget.java branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostActionChooseAndCreateCalque.java branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostActionRemoveSrc.java branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostLayoutFille.java branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostLayoutPanelController.java Modified: branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostActionChangeSceneForWidget.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostActionChangeSceneForWidget.java 2008-09-08 10:47:27 UTC (rev 3897) +++ branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostActionChangeSceneForWidget.java 2008-09-08 18:33:38 UTC (rev 3898) @@ -31,7 +31,7 @@ public TrPostActionChangeSceneForWidget(EbliScene _scene, TrPostProjet _projet) { super(_scene, EbliResource.EBLI.getString("changer de layout les objets s\xE9lectionn\xE9s"), CtuluResource.CTULU - .getIcon("crystal_deplacer"), "DEPLACER"); + .getIcon("crystal_couper"), "DEPLACER"); projet_=_projet; } Modified: branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostActionChooseAndCreateCalque.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostActionChooseAndCreateCalque.java 2008-09-08 10:47:27 UTC (rev 3897) +++ branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostActionChooseAndCreateCalque.java 2008-09-08 18:33:38 UTC (rev 3898) @@ -7,6 +7,7 @@ import org.fudaa.ebli.visuallibrary.EbliNode; import org.fudaa.ebli.visuallibrary.actions.EbliWidgetActionSimple; import org.fudaa.ebli.visuallibrary.calque.CalqueLegendeWidgetAdapter; +import org.fudaa.fudaa.tr.common.TrResource; import com.memoire.bu.BuDialogChoice; import com.memoire.bu.BuDialogError; @@ -31,7 +32,7 @@ TrPostLayoutPanelController controller_; public TrPostActionChooseAndCreateCalque(TrPostProjet _projet, TrPostLayoutPanelController _controller) { - super(_controller.getSceneCourante(), EbliResource.EBLI.getString("Calque principal"), BuResource.BU + super(_controller.getSceneCourante(), EbliResource.EBLI.getString("ins\xE9rer un calque"), BuResource.BU .getToolIcon("crystal_graphe"), "WIDGETRECALQUE"); @@ -69,7 +70,7 @@ // -- ouverture du chooser --// BuDialogChoice chooser = new BuDialogChoice(projet_.impl_.getApp(), projet_.impl_.getInformationsSoftware(), - "Cr\xE9ation d'un calque", "S\xE9lectionnez le jeux de donn\xE9es ", values); + TrResource.getS("Cr\xE9ation d'un calque"), TrResource.getS("S\xE9lectionnez le jeux de donn\xE9es "), values); int response = chooser.activate(); @@ -79,7 +80,8 @@ if (indiceSOURCESelect >= projet_.listeSrc_.size()) { new BuDialogError(projet_.impl_.getApp(), projet_.impl_.getInformationsSoftware(), - "La source s\xE9lecionn\xE9e n'existe pas.").activate(); + TrResource + .getS("La source s\xE9lecionn\xE9e n'existe pas")).activate(); return; } @@ -92,13 +94,13 @@ TrPostVisuPanel pnVisu = new TrPostVisuPanel(projet_.getImpl(), projet_, legendeCalque, projet_ .getSource(indiceSOURCESelect)); - EbliNode node = controller_.addCalque("Calque principal", pnVisu.getLocation(), pnVisu + EbliNode node = controller_.addCalque(TrResource.getS("Calque"), pnVisu.getLocation(), pnVisu .getPreferredSize(), pnVisu, legendeCalque); // -- ajout de l INFO de la source utilis\xE9e --// - node.getCreator().getWidget().getController_().setDescription("Source: " + values[indiceSOURCESelect]); + node.getWidget().getController_().setDescription("Source: " + values[indiceSOURCESelect]); Modified: branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostActionRemoveSrc.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostActionRemoveSrc.java 2008-09-08 10:47:27 UTC (rev 3897) +++ branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostActionRemoveSrc.java 2008-09-08 18:33:38 UTC (rev 3898) @@ -6,7 +6,6 @@ import org.fudaa.ebli.commun.EbliActionSimple; import org.fudaa.fudaa.tr.common.TrLib; -import com.memoire.bu.BuDialogConfirmation; import com.memoire.bu.BuDialogError; import com.memoire.bu.BuDialogMessage; import com.memoire.bu.BuResource; @@ -44,6 +43,7 @@ // -- cas rien de selectionnee --// if (projet_.listeSrc_.size() <= 1) { // FIXME . utilise impl_.error() + // projet_.getImpl().error(_titre, _text) new BuDialogError(projet_.impl_.getApp(), projet_.impl_.getInformationsSoftware(), "Ce fichier ne peut \xEAtre supprim\xE9.\n Il faut garder au moins un fichier de donn\xE9es.").activate(); return; Modified: branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostLayoutFille.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostLayoutFille.java 2008-09-08 10:47:27 UTC (rev 3897) +++ branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostLayoutFille.java 2008-09-08 18:33:38 UTC (rev 3898) @@ -4,6 +4,7 @@ import java.awt.Dimension; import java.awt.Point; import java.util.ArrayList; +import java.util.HashSet; import java.util.Iterator; import java.util.Set; @@ -11,12 +12,12 @@ import javax.swing.JComponent; import javax.swing.JLabel; import javax.swing.JMenu; -import javax.swing.JOptionPane; import javax.swing.JPanel; import javax.swing.JScrollPane; +import javax.swing.event.InternalFrameAdapter; +import javax.swing.event.InternalFrameEvent; import org.fudaa.ctulu.CtuluCommandManager; -import org.fudaa.ctulu.CtuluExportDataInterface; import org.fudaa.ctulu.CtuluResource; import org.fudaa.ctulu.CtuluUndoRedoInterface; import org.fudaa.ctulu.gui.CtuluFilleWithComponent; @@ -27,6 +28,8 @@ import org.fudaa.ebli.visuallibrary.EbliNode; import org.fudaa.ebli.visuallibrary.EbliScene; import org.fudaa.ebli.visuallibrary.EbliWidgetController; +import org.fudaa.ebli.visuallibrary.actions.CommandUndoRedoCut; +import org.fudaa.ebli.visuallibrary.actions.CommandUndoRedoPaste; import org.fudaa.ebli.visuallibrary.actions.EbliWidgetActionConfigure; import org.fudaa.ebli.visuallibrary.calque.CalqueLegendeWidgetAdapter; import org.fudaa.ebli.visuallibrary.calque.EbliWidgetCreatorVueCalque; @@ -40,6 +43,7 @@ import org.netbeans.api.visual.model.ObjectState; import com.memoire.bu.BuCutCopyPasteInterface; +import com.memoire.bu.BuDialogConfirmation; import com.memoire.bu.BuInternalFrame; import com.memoire.bu.BuMenu; import com.memoire.bu.BuMenuBar; @@ -128,6 +132,29 @@ panelSouthSuiviSouris_ = new JLabel(); this.add(panelSouthSuiviSouris_, BorderLayout.SOUTH); + + + + + this.addInternalFrameListener(new InternalFrameAdapter() { + + + public void internalFrameClosing(InternalFrameEvent _e) { + // -- confirmation de la suppression de l internalframe --// + + BuDialogConfirmation chooser = new BuDialogConfirmation(projet_.impl_.getApp(), projet_.impl_.getInformationsSoftware(), + TrResource.getS("Etes vous sur de vouloir supprimer le layout? ")); + + int response = chooser.activate(); + + if (response == 0) { + projet_.listeFillesLayout.remove(projet_.getSelectedFilleLayout()); + + + } + } + + }); } /** @@ -279,23 +306,23 @@ } } - // liste des noeuds copies - Set<EbliNode> nodesCopyied = null; - // liste des noeuuds coupes - Set<EbliNode> nodesCutted = null; + public void copy() { - JOptionPane.showMessageDialog(null, "copy()"); + // JOptionPane.showMessageDialog(null, "copy()"); // on copie la widget selectionnee // ie on fait une duplication partielle // on ajoute pas tout de suite le noeud dans la scene // --recuperation des noeuds a copier --// - nodesCopyied = (Set<EbliNode>) getScene().getSelectedObjects(); + projet_.nodesCopyied = new HashSet<EbliNode>(); + + for (Iterator<EbliNode> it = ((Set<EbliNode>) getScene().getSelectedObjects()).iterator(); it.hasNext();) + projet_.nodesCopyied.add(it.next()); // -- reinit de la commande cut si on voulait faire un ctrl+x - nodesCutted = null; + projet_.nodesCutted = null; } @Override @@ -306,23 +333,35 @@ } public void cut() { - JOptionPane.showMessageDialog(null, "cut()"); + // JOptionPane.showMessageDialog(null, "cut()"); // --recuperation des noeuds a copier --// - nodesCutted = (Set<EbliNode>) getScene().getSelectedObjects(); + projet_.nodesCutted = new HashSet<EbliNode>(); - // enlever les nodes de la scene - for (Iterator<EbliNode> it = nodesCutted.iterator(); it.hasNext();) { + for (Iterator<EbliNode> it = ((Set<EbliNode>) getScene().getSelectedObjects()).iterator(); it.hasNext();) { EbliNode node = it.next(); + projet_.nodesCutted.add(node); + + + + } + // -- suppression des nodes depuis cetet kliste pour eviter les concourant + // -//exception + for (Iterator<EbliNode> it = projet_.nodesCutted.iterator(); it.hasNext();) { + EbliNode node = it.next(); + // enlever les nodes de la scene // le node existe toujours apres l'avoir enleve getScene().removeNode(node); - } + // reinit de la liste des noeuds a copier au cas ou on change d avis - nodesCopyied = null; + projet_.nodesCopyied = null; + // --creation de la commande undo/redo --// + getScene().getCmdMng().addCmd(new CommandUndoRedoCut(projet_.nodesCutted)); + } public void duplicate() { @@ -331,30 +370,60 @@ public void paste() { - // TODO a ameliorer : TENIR COMPTE DE LA POSITION DE LA SOURIS + // Point locationSouris = this.getMousePosition(); + + // JOptionPane.showMessageDialog(null, "paste(): nb elements " + + // nodesCopyied.size()); - JOptionPane.showMessageDialog(null, "paste()"); - // --recuperation des noeuds copies --// - if (nodesCopyied != null) { + if (projet_.nodesCopyied != null) { - for (Iterator<EbliNode> it = nodesCopyied.iterator(); it.hasNext();) { + for (Iterator<EbliNode> it = projet_.nodesCopyied.iterator(); it.hasNext();) { EbliNode node = it.next(); // --duplication du node --// - node.duplicate(null); + EbliNode nouveauNode = node.duplicate(null); + + getScene().addNode(nouveauNode); + // -- duplication des map de property graphique de la widget --// + node.getWidget().setPropGraphique(node.getWidget().duplicateGraphicalProperties()); + // -- duplication de la taille --// + node.getWidget().setPreferredBounds(node.getWidget().getPreferredBounds()); + Point newLocation = nouveauNode.getWidget().getPreferredLocation(); + newLocation.x += 30; + newLocation.y += 30; + + nouveauNode.getWidget().setPreferredLocation(newLocation); + + + } - // reinititalisation de la liste - nodesCopyied = null; + + // --creation de la commande undo/redo --// + getScene().getCmdMng().addCmd(new CommandUndoRedoPaste(projet_.nodesCopyied)); - } else if (nodesCutted != null) { + // reinitialisation de la liste + projet_.nodesCopyied = null; - for (Iterator<EbliNode> it = nodesCutted.iterator(); it.hasNext();) { + + getScene().refresh(); + + } else if (projet_.nodesCutted != null) { + + for (Iterator<EbliNode> it = projet_.nodesCutted.iterator(); it.hasNext();) { EbliNode node = it.next(); // --ajout du node --// + getScene().addNode(node); } + // --creation de la commande undo/redo --// + getScene().getCmdMng().addCmd(new CommandUndoRedoPaste(projet_.nodesCutted)); + + // reinit de la liste - nodesCutted = null; + projet_.nodesCutted = null; + + getScene().refresh(); + } } @@ -525,7 +594,7 @@ toolBarModifiable_ = _controller.getToolbarComponent(); menuModifiable_ = _controller.getMenubarComponent(); - ajoutMenusLayoutTabbed(menuModifiable_); + // ajoutMenusLayoutTabbed(menuModifiable_); // mise a jour des params // toolBarModifiable_.revalidate(); @@ -576,7 +645,7 @@ menuModifiable_.add(menu); // mise a jour des params - ajoutMenusLayoutTabbed(menuModifiable_); + // ajoutMenusLayoutTabbed(menuModifiable_); this.setToolBar(toolBarModifiable_); this.setJMenuBar(menuModifiable_); @@ -627,7 +696,9 @@ // -- creation du menu principal des scenes a cote de post --// // ajout a cote de menu post - menubar.add(menuLayoutManager_, menubar.getComponentCount()); + menubar.add(menuLayoutManager_, menubar.getComponentCount()); } + + } Modified: branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostLayoutPanelController.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostLayoutPanelController.java 2008-09-08 10:47:27 UTC (rev 3897) +++ branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostLayoutPanelController.java 2008-09-08 18:33:38 UTC (rev 3898) @@ -45,6 +45,7 @@ import org.fudaa.ebli.visuallibrary.actions.EbliWidgetActionRetaillageHorizontal; import org.fudaa.ebli.visuallibrary.actions.EbliWidgetActionRetaillageVertical; import org.fudaa.ebli.visuallibrary.actions.EbliWidgetActionSimple; +import org.fudaa.ebli.visuallibrary.actions.EbliWidgetActiontextEditor; import org.fudaa.ebli.visuallibrary.calque.CalqueLegendeWidgetAdapter; import org.fudaa.ebli.visuallibrary.calque.EbliWidgetControllerCalque; import org.fudaa.ebli.visuallibrary.calque.EbliWidgetCreatorLegende; @@ -297,7 +298,10 @@ ((EbliWidgetControllerCalque) creator.getWidgetCalque().getController_()).setLegendeWidget_(_legende); // -- creation de la legende par default --// - creator.getWidgetCalque().nodeLegende = _legende.createLegende(); + Point positionLegende = new Point(); + positionLegende.x = nodeCalque.getWidget().getLocation().x + preferedDimension.width + 20; + positionLegende.y = nodeCalque.getWidget().getPreferredLocation().y; + creator.getWidgetCalque().nodeLegende = _legende.createLegende(positionLegende); return nodeCalque; @@ -426,6 +430,10 @@ addRectangleTexte(); } }); + // widget texte + // TODO a revoir + _l.add(new EbliWidgetActiontextEditor(getSceneCourante())); + // -- palette fleche --// _l.add(new EbliActionSimple(EbliResource.EBLI.getString("Fleche"), EbliResource.EBLI.getToolIcon("crystal_bu_link"), "WIDGETFLECHE") { @@ -462,9 +470,7 @@ // widget image _l.add(new EbliWidgetActionImageChooser(getSceneCourante())); - // widget texte - //TODO a revoir -// _l.add(new EbliWidgetActiontextEditor(getScene())); + } @@ -528,11 +534,11 @@ init.add(new EbliWidgetActionAlign.Top(getSceneCourante())); init.add(new EbliWidgetActionAlign.Bottom(getSceneCourante())); init.add(null); - init.add(null); + init.add(new EbliWidgetActionForeGround(getSceneCourante())); init.add(new EbliWidgetActionBackGround(getSceneCourante())); init.add(null); - init.add(null); + // -- actions de retaillage min et max --// // init.add(new EbliWidgetActionRetaillageHorizontal(getScene(), // EbliWidgetActionRetaillageHorizontal.RETAIILLAGE_MIN)); @@ -541,25 +547,25 @@ init.add(new EbliWidgetActionRetaillageVertical(getSceneCourante(), EbliWidgetActionRetaillageVertical.RETAIILLAGE_MAX)); init.add(null); - init.add(null); + // -- blocage des widgets --// init.add(new EbliWidgetActionBloqueOuDebloqueWidget.Bloque(getSceneCourante())); init.add(new EbliWidgetActionBloqueOuDebloqueWidget.DeBloque(getSceneCourante())); init.add(null); - init.add(null); + // -- action de duplication --// // init.add(new EbliWidgetActionDuplicate(getSceneCourante())); init.add(new TrPostActionDuplicate(getSceneCourante(), projet_)); init.add(new TrPostActionChangeSceneForWidget(getSceneCourante(), projet_)); init.add(null); - init.add(null); + // -- Action sur le format --// init.add(new EbliWidgetActionColorForeground(getSceneCourante())); init.add(new EbliWidgetActionColorBackground(getSceneCourante())); // -- action de configuration des composants graphiques--// init.add(new EbliWidgetActionConfigure(getSceneCourante())); init.add(null); - init.add(null); + @@ -576,7 +582,7 @@ init.add(new TrPostActionAddPointFromWidgetCalque.Temporel(getSceneCourante(), projet_.impl_)); init.add(new TrPostActionAddPointFromWidgetCalque.Spatial(getSceneCourante(), projet_.impl_)); init.add(null); - init.add(null); + actions_ = Collections.unmodifiableList(init); @@ -606,9 +612,11 @@ conteneur_ = new JPanel(new BorderLayout()); - conteneur_.add(pn_, BorderLayout.CENTER); - // conteneur_.add(buildToolBar(), BorderLayout.NORTH); + // -- decomenter cela pour reprendre le systeme d onglet --// + // conteneur_.add(pn_, BorderLayout.CENTER); + conteneur_.add(conteneurSceneView_, BorderLayout.CENTER); + } return conteneur_; @@ -687,7 +695,7 @@ int confirmation = new BuDialogConfirmation( projet_.impl_.getApp(), projet_.impl_.getInformationsSoftware(), - TrResource.getS("\xCAtes-vous sur de vouloir retirer \n le layout ") + indiceScene + " du projet?") + TrResource.getS("\xCAtes-vous sur de vouloir retirer le layout ") + indiceScene + " du projet?") .activate(); if (confirmation == 0) { @@ -711,10 +719,11 @@ public void stateChanged(ChangeEvent _e) { - if (pn_.getTabCount() == 1) - return; - int index = pn_.getSelectedIndex(); - changeScene(getScene(index), index); + // -- a decommenter si l on veut gerer par des onglets + /* + * if (pn_.getTabCount() == 1) return; int index = pn_.getSelectedIndex(); + * changeScene(getScene(index), index); + */ } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <had...@us...> - 2008-09-08 10:47:17
|
Revision: 3897 http://fudaa.svn.sourceforge.net/fudaa/?rev=3897&view=rev Author: hadouxad Date: 2008-09-08 10:47:27 +0000 (Mon, 08 Sep 2008) Log Message: ----------- Modified Paths: -------------- branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostProjet.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-09-07 20:49:47 UTC (rev 3896) +++ branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostProjet.java 2008-09-08 10:47:27 UTC (rev 3897) @@ -273,7 +273,7 @@ ArrayList<TrPostLayoutFille> listeFillesLayout = new ArrayList<TrPostLayoutFille>(); - + /** *ajout une fillelayout a la liste des frame layout * @@ -281,6 +281,16 @@ */ public void addFillesLayout(TrPostLayoutFille _fille) { listeFillesLayout.add(_fille); + + // -- ajout dans le menu post d'un onglet de la fenetre --// + if (listeFillesLayout.size() > 1) { + //-- ajout du separator des filles layout --// + // menuLayout_.addSeparator(TrResource.getS("Liste des fen\xEAtres")); + + menuLayout_.addMenuItem(TrResource.getS(("Layout ")) + listeFillesLayout.size(), "FILLELAYOUT" + + (listeFillesLayout.size() - 1), null, this); + + } } /** @@ -312,6 +322,7 @@ * Le menu du post qui contient tout les sous menus des projets */ BuMenu menuPost_; + BuMenu menuLayout_ = new BuMenu(TrResource.getS("Layout"), "LAYOUTMANAGER");; List<BuMenu> listeMenuProjets_; List<ArrayList<BuMenuItem>> listeSousMenuProjets_; @@ -611,8 +622,8 @@ //filleLayout_.controller_.construitMenuMultiScenes(impl_.getMainMenuBar()); final BuMenuBar menubar = impl_.getMainMenuBar(); // -- creation du menu principal des scenes a cote de post --// - BuMenu menu = new BuMenu(TrResource.getS("Layout"), "LAYOUTMANAGER"); - menu.addMenuItem(TrResource.getS(("Ajouter une nouvelle fen\xEAtre")), "AJOUTFRAME", CtuluResource.CTULU + + menuLayout_.addMenuItem(TrResource.getS(("Ajouter une nouvelle fen\xEAtre")), "AJOUTFRAME", CtuluResource.CTULU .getIcon("crystal_ajouter"), getSelectedFilleLayout().controller_); /* * @@ -625,8 +636,14 @@ * menu.addSubMenu(filleLayout_.controller_.menuScenes_, true); */ // ajout a cote de menu post - menubar.add(menu, 2); + menuLayout_.addSeparator(TrResource.getS("Liste des fen\xEAtres")); + + menuLayout_.addMenuItem(TrResource.getS(("Layout ")) + listeFillesLayout.size(), "FILLELAYOUT" + + (listeFillesLayout.size() - 1), null, this); + + menubar.add(menuLayout_, 2); + } /** @@ -1084,8 +1101,17 @@ if ("VIEW_2D".equals(commandeBrute) ) { activeFille(getSelectedFilleLayout()); return; - } - + } else if (commandeBrute.startsWith("FILLELAYOUT")) { + FuLog.warning("OKAAAAAAAAYYYYYYYYYy"); + // -- recuperation de l'indice --// + String number = commandeBrute.substring(commandeBrute.lastIndexOf('T') + 1); + int indiceFenetre = Integer.parseInt(number); + // -- ajout de la fenetre correspondante --// + // addFillesLayout(listeFillesLayout.get(indiceFenetre)); + activeFille(listeFillesLayout.get(indiceFenetre)); + return; + } + else { // -- gestion des actions en fonction de la simul choisie --// int indiceSimulation = 0; @@ -1135,8 +1161,8 @@ } - } + } // if ("VIEW_2D".equals(commandeBrute)) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <de...@us...> - 2008-09-07 20:49:42
|
Revision: 3896 http://fudaa.svn.sourceforge.net/fudaa/?rev=3896&view=rev Author: deniger Date: 2008-09-07 20:49:47 +0000 (Sun, 07 Sep 2008) Log Message: ----------- modifs Modified Paths: -------------- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidget.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidgetCreatorShape.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/CommandBringToFront.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/CommandMasquer.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/CommandMove.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/CommandRetaillage.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/CommandSupprimer.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/CommandUndoRedoBloque.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/CommandeBringToBack.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/CommandeChangeWidgetScene.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/CommandeDuplicate.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/CommandeUndoRedoGraphicalProperties.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliActionEditorOneClick.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionAlign.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionBackGround.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionBloqueOuDebloqueWidget.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionColorBackground.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionColorForeground.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionConfigure.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionDuplicate.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionFont.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionForeGround.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionImageChooser.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionRetaillageHorizontal.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionRetaillageVertical.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionSimple.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActiontextEditor.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetEditCreator.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/WidgetConfigure.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/calque/EbliWidgetCreatorLegende.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/calque/EbliWidgetCreatorVueCalque.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/graphe/EbliWidgetCreatorGraphe.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/graphe/EbliWidgetCreatorLegende.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/graphe/EbliWidgetGraphe.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/graphe/WidgetLegendeManagerOLD.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/tree/EbliWidgetCellRendererBuilder.java branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostActionAddPointFromWidgetCalque.java branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostActionOpenSrc.java branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostActionRemoveSrc.java branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostCourbeTreeModel.java branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostLayoutFille.java 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/TrPostProjetsManagerFille.java Added Paths: ----------- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidgetGroupCreator.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetDegroupAction.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetGroupAction.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/layout/GroupLayout.java Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidget.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidget.java 2008-09-07 16:23:36 UTC (rev 3895) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidget.java 2008-09-07 20:49:47 UTC (rev 3896) @@ -32,20 +32,16 @@ */ protected Map<String, Object> propGraphique; - public Map<String, Object> getPropGraphique() { return propGraphique; } public void setPropGraphique(Map<String, Object> propGraphique) { this.propGraphique = propGraphique; - - + } protected EbliWidgetController controller_; - - /** * Liste des clef utilisees pour les composants graphiques @@ -53,8 +49,7 @@ public final static String LINEMODEL = "lineModel"; public final static String COLORCONTOUR = "ColorContour"; public final static String COLORFOND = "colorFond"; - - + public final static String ROTATION = "rotation"; public final static String FONT = "font"; @@ -68,10 +63,12 @@ public BConfigurableInterface[] getConfigureInterfaces(boolean lineModel_, boolean colorsContours_, boolean colorFonds_, boolean rotations_, boolean police_) { return new BConfigurableInterface[] { new BConfigurableComposite(getSingleConfigureInterface(lineModel_, - colorsContours_, colorFonds_, rotations_, police_), EbliLib - .getS("Affichage")) /* - * , new BConfigurableComposite(getSingleConfigureInterface (), EbliLib.getS("Gizmo caca")) - */}; + colorsContours_, colorFonds_, rotations_, police_), EbliLib.getS("Affichage")) /* + * , newBConfigurableComposite( + * getSingleConfigureInterface + * (), + * EbliLib.getS("Gizmo caca")) + */}; } protected String getTitle() { @@ -175,30 +172,28 @@ public boolean isTitleModifiable() { return true; } - + /** - * Utilise par la plupart des composant sauf calque et graphe qui necessitent - * un controller particulier. + * Utilise par la plupart des composant sauf calque et graphe qui necessitent un controller particulier. * * @param scene * @param controllerDefaut */ public EbliWidget(EbliScene scene, boolean controllerDefaut) { this(scene); - + // -- creation du controller par defaut --// - if (controllerDefaut) - controller_ = new EbliWidgetController(this); + if (controllerDefaut) controller_ = new EbliWidgetController(this); - } + /** * @param scene * @param Point : indiaue la location preferentiel. peut etre nul */ public EbliWidget(EbliScene scene) { super(scene); - setScene_(scene); + setScene(scene); // -- remplisage de la map de propriete grahiques --// propGraphique = new HashMap<String, Object>(); @@ -219,14 +214,6 @@ propGraphique.put(ROTATION, Math.PI); } - - - - - - - - public EbliWidgetController getController_() { return controller_; } @@ -247,12 +234,39 @@ public void notifyStateChanged(ObjectState previousState, ObjectState newState) { if (!useBorder_) { return; } setBorder(getScene().getLookFeel().getBorder(newState)); + // TODO a verifier pour le rendu + EbliWidget parent = getGroup(); + if (newState.isHovered() && parent != null) { + parent.setBorder(getBorder()); + } } - - + boolean isGroup; - public void setScene_(EbliScene _scene) { + /** + * @return the isGroup: true si le widget represente un groupe de widget comme un groupe par exemple + */ + public boolean isGroup() { + return isGroup; + } + + protected EbliWidget getGroup() { + Widget parent = getParentWidget(); + while (parent != getScene() && parent != null) { + if (parent instanceof EbliWidget && ((EbliWidget) parent).isGroup) { return ((EbliWidget) parent); } + parent = parent.getParentWidget(); + } + return null; + } + + /** + * @param isGroup the isGroup to set + */ + public void setGroup(boolean isGroup) { + this.isGroup = isGroup; + } + + public void setScene(EbliScene _scene) { this.scene_ = _scene; } @@ -268,7 +282,7 @@ } public Map<String, Object> duplicateGraphicalProperties() { - + // FIXME il faut juste cloner la map ... Map<String, Object> mapDupliquee = new HashMap<String, Object>(); mapDupliquee.put(LINEMODEL, new TraceLigneModel(getTraceLigneModel())); @@ -276,7 +290,6 @@ mapDupliquee.put(COLORFOND, getColorFond()); mapDupliquee.put(ROTATION, getRotation()); mapDupliquee.put(FONT, getFormeFont()); - return mapDupliquee; } Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidgetCreatorShape.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidgetCreatorShape.java 2008-09-07 16:23:36 UTC (rev 3895) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidgetCreatorShape.java 2008-09-07 20:49:47 UTC (rev 3896) @@ -46,7 +46,6 @@ } public EbliWidget getWidget() { - // TODO Auto-generated method stub return res; } Added: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidgetGroupCreator.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidgetGroupCreator.java (rev 0) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidgetGroupCreator.java 2008-09-07 20:49:47 UTC (rev 3896) @@ -0,0 +1,47 @@ +/** + * Licence GPL + * Copyright Genesis + */ +package org.fudaa.ebli.visuallibrary; + +import org.netbeans.api.visual.widget.Widget; + +/** + * Creator permettant de cr\xE9er un groupe de widget simple. + * + * @author deniger + */ +public class EbliWidgetGroupCreator implements EbliWidgetCreator { + + EbliWidget w; + + public EbliWidget create(EbliScene _scene) { + return w; + } + + public EbliNode duplicate(EbliNode _nodeAdupliquer) { + return null; + } + + public EbliWidgetBordure getBordure() { + return null; + } + + /** + * @return the w + */ + public Widget getW() { + return w; + } + + public EbliWidget getWidget() { + return w; + } + + /** + * @param w the w to set + */ + public void setW(EbliWidget w) { + this.w = w; + } +} \ No newline at end of file Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/CommandBringToFront.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/CommandBringToFront.java 2008-09-07 16:23:36 UTC (rev 3895) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/CommandBringToFront.java 2008-09-07 20:49:47 UTC (rev 3896) @@ -10,7 +10,6 @@ * Classe qui permet de faire un undo redo sur le front/back * * @author Adrien Hadoux - * */ public class CommandBringToFront implements CtuluCommand { @@ -23,8 +22,7 @@ public void redo() { final int nb = widgets_.size(); - if (nb == 0) - return; + if (nb == 0) return; for (int i = 0; i < nb; i++) { widgets_.get(i).bringToFront(); @@ -38,8 +36,7 @@ public void undo() { final int nb = widgets_.size(); - if (nb == 0) - return; + if (nb == 0) return; for (int i = 0; i < nb; i++) { widgets_.get(i).bringToBack(); Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/CommandMasquer.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/CommandMasquer.java 2008-09-07 16:23:36 UTC (rev 3895) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/CommandMasquer.java 2008-09-07 20:49:47 UTC (rev 3896) @@ -10,26 +10,22 @@ * commande qui gere le undo/redo en cas de masquage des widgets * * @author Adrien Hadoux - * */ public class CommandMasquer implements CtuluCommand { ArrayList<EbliWidget> widget_; private boolean visible_; - - - + public CommandMasquer(EbliWidget widget) { - + widget_ = new ArrayList<EbliWidget>(); widget_.add(widget); - - + } - + public CommandMasquer(ArrayList<EbliWidget> widget) { this(widget, false); - + } public CommandMasquer(ArrayList<EbliWidget> widget, boolean visible) { @@ -37,13 +33,13 @@ this.widget_ = widget; visible_ = visible; } - + public void undo() { - + for (Iterator<EbliWidget> it = widget_.iterator(); it.hasNext();) { it.next().setVisible(!visible_); } - + widget_.get(0).getEbliScene().refresh(); } Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/CommandMove.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/CommandMove.java 2008-09-07 16:23:36 UTC (rev 3895) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/CommandMove.java 2008-09-07 20:49:47 UTC (rev 3896) @@ -12,7 +12,6 @@ * classe qui permet de faire du undo redo de positions de une ou plusieurs widgets * * @author genesis - * */ public class CommandMove implements CtuluCommand { @@ -25,10 +24,8 @@ this.newPos_ = _newPos; this.oldPos_ = _oldPos; this.widgets_ = _widgets; - if (_newPos.size() != _oldPos.size()) - throw new IllegalArgumentException("list must ahava the same size"); - if (_widgets.size() != _oldPos.size()) - throw new IllegalArgumentException("list must ahava the same size"); + if (_newPos.size() != _oldPos.size()) throw new IllegalArgumentException("list must ahava the same size"); + if (_widgets.size() != _oldPos.size()) throw new IllegalArgumentException("list must ahava the same size"); } public CommandMove(Widget _widget, Point _oldPos, Point _newPos) { @@ -40,8 +37,7 @@ public void redo() { final int nb = widgets_.size(); - if (nb == 0) - return; + if (nb == 0) return; for (int i = 0; i < nb; i++) { widgets_.get(i).setPreferredLocation(newPos_.get(i)); @@ -55,8 +51,7 @@ public void undo() { final int nb = widgets_.size(); - if (nb == 0) - return; + if (nb == 0) return; for (int i = 0; i < nb; i++) { widgets_.get(i).setPreferredLocation(oldPos_.get(i)); Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/CommandRetaillage.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/CommandRetaillage.java 2008-09-07 16:23:36 UTC (rev 3895) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/CommandRetaillage.java 2008-09-07 20:49:47 UTC (rev 3896) @@ -11,7 +11,6 @@ * Commande pour le undo redo sur les retaillages. * * @author Adrien Hadoux - * */ public class CommandRetaillage implements CtuluCommand { @@ -24,15 +23,13 @@ this.widgets_ = listeWidget; this.newRectangle = newRectangle; this.oldRectangles = oldRectangle; - if (widgets_.size() != oldRectangle.size()) - throw new IllegalArgumentException("list must ahava the same size"); + if (widgets_.size() != oldRectangle.size()) throw new IllegalArgumentException("list must ahava the same size"); } public void undo() { final int nb = widgets_.size(); - if (nb == 0) - return; + if (nb == 0) return; for (int i = 0; i < nb; i++) { widgets_.get(i).setPreferredBounds(oldRectangles.get(i)); @@ -46,8 +43,7 @@ public void redo() { final int nb = widgets_.size(); - if (nb == 0) - return; + if (nb == 0) return; for (int i = 0; i < nb; i++) { widgets_.get(i).setPreferredBounds(newRectangle.get(i)); Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/CommandSupprimer.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/CommandSupprimer.java 2008-09-07 16:23:36 UTC (rev 3895) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/CommandSupprimer.java 2008-09-07 20:49:47 UTC (rev 3896) @@ -10,18 +10,15 @@ * commande qui effectue un undo/redo sur la suppression. * * @author Adrien Hadoux - * */ public class CommandSupprimer implements CtuluCommand { EbliNode nodeSupprime_; EbliScene scene_; - + Point location_; - - - + public CommandSupprimer(EbliNode nodeSupprime_, EbliScene scene_, Point _location) { super(); this.nodeSupprime_ = nodeSupprime_; @@ -35,19 +32,19 @@ // -- raffraichissement de la scene --// scene_.refresh(); - + } public void undo() { - + // -- de nouveau suppression du node dans la scene --// scene_.addNode(nodeSupprime_); - + // -- repositionnement originel de la widget --// nodeSupprime_.getCreator().getWidget().setPreferredLocation( nodeSupprime_.getCreator().getWidget().convertSceneToLocal(location_)); - - // -- raffraichissement de la scene --// + + // -- raffraichissement de la scene --// scene_.refresh(); } Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/CommandUndoRedoBloque.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/CommandUndoRedoBloque.java 2008-09-07 16:23:36 UTC (rev 3895) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/CommandUndoRedoBloque.java 2008-09-07 20:49:47 UTC (rev 3896) @@ -10,20 +10,13 @@ * Commande undo/redo sur le blocage des widgets. * * @author Adrien Hadoux - * */ - - public class CommandUndoRedoBloque implements CtuluCommand { ArrayList<EbliWidget> widget_; boolean bloque_ = true; - - - - public CommandUndoRedoBloque(ArrayList<EbliWidget> widget, boolean bloque) { super(); this.widget_ = widget; @@ -33,10 +26,8 @@ public void undo() { for (Iterator<EbliWidget> it = widget_.iterator(); it.hasNext();) { - if (bloque_) - it.next().getController_().replaceActionResizeAndMove(); - else - it.next().getController_().removeActionResizeAndMove(); + if (bloque_) it.next().getController_().replaceActionResizeAndMove(); + else it.next().getController_().removeActionResizeAndMove(); } widget_.get(0).getEbliScene().refresh(); @@ -44,10 +35,8 @@ public void redo() { for (Iterator<EbliWidget> it = widget_.iterator(); it.hasNext();) { - if (bloque_) - it.next().getController_().removeActionResizeAndMove(); - else - it.next().getController_().replaceActionResizeAndMove(); + if (bloque_) it.next().getController_().removeActionResizeAndMove(); + else it.next().getController_().replaceActionResizeAndMove(); } widget_.get(0).getEbliScene().refresh(); } Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/CommandeBringToBack.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/CommandeBringToBack.java 2008-09-07 16:23:36 UTC (rev 3895) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/CommandeBringToBack.java 2008-09-07 20:49:47 UTC (rev 3896) @@ -10,7 +10,6 @@ * Classe qui permet de faire un undo redo sur le front/back * * @author Adrien Hadoux - * */ public class CommandeBringToBack implements CtuluCommand { @@ -23,8 +22,7 @@ public void redo() { final int nb = widgets_.size(); - if (nb == 0) - return; + if (nb == 0) return; for (int i = 0; i < nb; i++) { widgets_.get(i).bringToBack(); @@ -38,8 +36,7 @@ public void undo() { final int nb = widgets_.size(); - if (nb == 0) - return; + if (nb == 0) return; for (int i = 0; i < nb; i++) { widgets_.get(i).bringToFront(); Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/CommandeChangeWidgetScene.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/CommandeChangeWidgetScene.java 2008-09-07 16:23:36 UTC (rev 3895) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/CommandeChangeWidgetScene.java 2008-09-07 20:49:47 UTC (rev 3896) @@ -11,7 +11,6 @@ * action qui permet de faire le undo/redo sur le changement de scene du node. * * @author genesis - * */ public class CommandeChangeWidgetScene implements CtuluCommand { @@ -20,8 +19,6 @@ EbliScene sceneDepart_; EbliScene sceneDestination_; - - public CommandeChangeWidgetScene(ArrayList<EbliNode> nodeDuplique_, EbliScene sceneDep, EbliScene sceneDest) { super(); this.nodeDuplique_ = nodeDuplique_; @@ -41,7 +38,6 @@ } } - public void undo() { // -- redo unitaire execute pour chaque node dupliques --// for (Iterator<EbliNode> it = nodeDuplique_.iterator(); it.hasNext();) { @@ -53,5 +49,4 @@ } } - } Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/CommandeDuplicate.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/CommandeDuplicate.java 2008-09-07 16:23:36 UTC (rev 3895) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/CommandeDuplicate.java 2008-09-07 20:49:47 UTC (rev 3896) @@ -12,36 +12,28 @@ * Command undo/redo pour le duplicate de widget. * * @author Adrien Hadoux - * */ public class CommandeDuplicate implements CtuluCommand { - ArrayList<EbliNode> nodeDuplique_; EbliScene scene_; - - - - - public CommandeDuplicate(ArrayList<EbliNode> nodeDuplique_, EbliScene scene_) { super(); this.nodeDuplique_ = nodeDuplique_; this.scene_ = scene_; - + } public void redo() { // -- redo unitaire execute pour chaque node dupliques --// for (Iterator<EbliNode> it = nodeDuplique_.iterator(); it.hasNext();) { - EbliNode node=it.next(); - redo(node.getCreator().getWidget(),node); + EbliNode node = it.next(); + redo(node.getCreator().getWidget(), node); } } - - + /** * redo unitaire pour une unique duplication * Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/CommandeUndoRedoGraphicalProperties.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/CommandeUndoRedoGraphicalProperties.java 2008-09-07 16:23:36 UTC (rev 3895) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/CommandeUndoRedoGraphicalProperties.java 2008-09-07 20:49:47 UTC (rev 3896) @@ -8,22 +8,18 @@ import org.fudaa.ebli.visuallibrary.EbliScene; import org.fudaa.ebli.visuallibrary.EbliWidget; - /** * Command undo/redo sur toutes les proprietes graphiques des widgets. * * @author Adrien Hadoux - * */ public class CommandeUndoRedoGraphicalProperties implements CtuluCommand { List<Map<String, Object>> oldGraphicalProperties; List<Map<String, Object>> newGraphicalProperties; - + java.util.List<EbliWidget> widgets_; - - public CommandeUndoRedoGraphicalProperties(List<Map<String, Object>> newGraphicalProperties, List<Map<String, Object>> oldGraphicalProperties, List<EbliWidget> widgets_) { super(); @@ -31,49 +27,44 @@ this.oldGraphicalProperties = oldGraphicalProperties; this.widgets_ = widgets_; } - + /** - * constructeur sans parametre. il faudra par la suite ajouter des old et new - * graphical properties + * constructeur sans parametre. il faudra par la suite ajouter des old et new graphical properties */ public CommandeUndoRedoGraphicalProperties() { widgets_ = new ArrayList<EbliWidget>(); oldGraphicalProperties = new ArrayList<Map<String, Object>>(); newGraphicalProperties = new ArrayList<Map<String, Object>>(); } - - + public void addWidget(EbliWidget w) { widgets_.add(w); - } + } public void addOldPropertie(Map oldProperty) { oldGraphicalProperties.add(oldProperty); } - + public void addNewPropertie(Map newProperty) { newGraphicalProperties.add(newProperty); } - + public void undo() { - + final int nb = widgets_.size(); - if (nb == 0) - return; + if (nb == 0) return; for (int i = 0; i < nb; i++) { widgets_.get(i).setPropGraphique(oldGraphicalProperties.get(i)); } refreshScene(); - - + } public void redo() { - + final int nb = widgets_.size(); - if (nb == 0) - return; + if (nb == 0) return; for (int i = 0; i < nb; i++) { widgets_.get(i).setPropGraphique(newGraphicalProperties.get(i)); @@ -81,8 +72,6 @@ refreshScene(); } - - private void refreshScene() { EbliScene.refreshScene(widgets_.get(0).getScene()); } Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliActionEditorOneClick.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliActionEditorOneClick.java 2008-09-07 16:23:36 UTC (rev 3895) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliActionEditorOneClick.java 2008-09-07 20:49:47 UTC (rev 3896) @@ -21,7 +21,6 @@ * * @author David Kaspar * @pompeur Adrien Hadoux - * */ public final class EbliActionEditorOneClick<C extends JComponent> extends WidgetAction.LockedAdapter implements InplaceEditorProvider.EditorController { @@ -39,37 +38,30 @@ protected boolean isLocked() { return editor != null; } - -/** - * Modification ici: pour activer l editor, il suffit d appuyer une seule fois - * sur l editeur + + /** + * Modification ici: pour activer l editor, il suffit d appuyer une seule fois sur l editeur */ public State mouseClicked(Widget widget, WidgetMouseEvent event) { - if (event.getButton() == MouseEvent.BUTTON1 /*&& event.getClickCount() == 2*/) { - Point p=event.getPoint(); - if(widget.getClientArea().contains(p)) - if (openEditor(widget)) - return State.createLocked(widget, this); + if (event.getButton() == MouseEvent.BUTTON1 /* && event.getClickCount() == 2 */) { + Point p = event.getPoint(); + if (widget.getClientArea().contains(p)) if (openEditor(widget)) return State.createLocked(widget, this); } return State.REJECTED; } public State mousePressed(Widget widget, WidgetMouseEvent event) { - if (editor != null) - closeEditor(true); + if (editor != null) closeEditor(true); return State.REJECTED; } public State mouseReleased(Widget widget, WidgetAction.WidgetMouseEvent event) { - if (editor != null) - closeEditor(true); + if (editor != null) closeEditor(true); return State.REJECTED; } public State keyPressed(Widget widget, WidgetKeyEvent event) { - if (event.getKeyChar() == KeyEvent.VK_ENTER) - if (openEditor(widget)) - return State.createLocked(widget, this); + if (event.getKeyChar() == KeyEvent.VK_ENTER) if (openEditor(widget)) return State.createLocked(widget, this); return State.REJECTED; } @@ -78,17 +70,14 @@ } public final boolean openEditor(Widget widget) { - if (editor != null) - return false; + if (editor != null) return false; Scene scene = widget.getScene(); JComponent component = scene.getView(); - if (component == null) - return false; + if (component == null) return false; editor = provider.createEditorComponent(this, widget); - if (editor == null) - return false; + if (editor == null) return false; this.widget = widget; component.add(editor); @@ -98,10 +87,8 @@ Point center = GeomUtil.center(rectangle); Dimension size = editor.getMinimumSize(); - if (rectangle.width > size.width) - size.width = rectangle.width; - if (rectangle.height > size.height) - size.height = rectangle.height; + if (rectangle.width > size.width) size.width = rectangle.width; + if (rectangle.height > size.height) size.height = rectangle.height; int x = center.x - size.width / 2; int y = center.y - size.height / 2; @@ -120,19 +107,14 @@ private void updateRectangleToFitToView(Rectangle rectangle) { JComponent component = widget.getScene().getView(); - if (rectangle.x + rectangle.width > component.getWidth()) - rectangle.x = component.getWidth() - rectangle.width; - if (rectangle.y + rectangle.height > component.getHeight()) - rectangle.y = component.getHeight() - rectangle.height; - if (rectangle.x < 0) - rectangle.x = 0; - if (rectangle.y < 0) - rectangle.y = 0; + if (rectangle.x + rectangle.width > component.getWidth()) rectangle.x = component.getWidth() - rectangle.width; + if (rectangle.y + rectangle.height > component.getHeight()) rectangle.y = component.getHeight() - rectangle.height; + if (rectangle.x < 0) rectangle.x = 0; + if (rectangle.y < 0) rectangle.y = 0; } public final void closeEditor(boolean commit) { - if (editor == null) - return; + if (editor == null) return; Container parent = editor.getParent(); Rectangle bounds = parent != null ? editor.getBounds() : null; provider.notifyClosing(this, widget, editor, commit); @@ -144,24 +126,19 @@ editor = null; widget = null; rectangle = null; - if (hasFocus) - if (parent != null) - parent.requestFocusInWindow(); + if (hasFocus) if (parent != null) parent.requestFocusInWindow(); } public void notifyEditorComponentBoundsChanged() { EnumSet<InplaceEditorProvider.ExpansionDirection> directions = provider .getExpansionDirections(this, widget, editor); - if (directions == null) - directions = EnumSet.noneOf(InplaceEditorProvider.ExpansionDirection.class); + if (directions == null) directions = EnumSet.noneOf(InplaceEditorProvider.ExpansionDirection.class); Rectangle rectangle = this.rectangle; Dimension size = editor.getPreferredSize(); Dimension minimumSize = editor.getMinimumSize(); if (minimumSize != null) { - if (size.width < minimumSize.width) - size.width = minimumSize.width; - if (size.height < minimumSize.height) - size.height = minimumSize.height; + if (size.width < minimumSize.width) size.width = minimumSize.width; + if (size.height < minimumSize.height) size.height = minimumSize.height; } int heightDiff = rectangle.height - size.height; @@ -181,8 +158,7 @@ } else { if (bottom) { rectangle.height = size.height; - } else { - } + } else {} } boolean left = directions.contains(InplaceEditorProvider.ExpansionDirection.LEFT); @@ -199,14 +175,13 @@ } else { if (right) { rectangle.width = size.width; - } else { - } + } else {} } - updateRectangleToFitToView (rectangle); + updateRectangleToFitToView(rectangle); - editor.setBounds (rectangle); - editor.repaint (); - } + editor.setBounds(rectangle); + editor.repaint(); + } } Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionAlign.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionAlign.java 2008-09-07 16:23:36 UTC (rev 3895) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionAlign.java 2008-09-07 20:49:47 UTC (rev 3896) @@ -17,20 +17,13 @@ import com.memoire.fu.FuLog; /** - * Action qui permet de realiser l alignement des composants. + * Action qui permet de realiser l alignement des composants. ATTTENTION CHOIX DE CONCEPTION: il faut que les EbliNode + * soit movables (isMovable()== true) pour pouvoir les aligner il faut donc lorss de la creation des nodes remplir les + * infos dimensions et size comme suit: EbliNodeDefault node = new EbliNodeDefault(); node.setCreator(new + * EbliWidgetCreatorGraphe(g)); node.setTitle("Graphe"); node.setPreferedSize(new Dimension(300, 300)); + * node.setPreferedLocation(new Point(4, 4)); scene.addNode(node); * - * - *ATTTENTION CHOIX DE CONCEPTION: il faut que les EbliNode soit movables - * (isMovable()== true) pour pouvoir les aligner il faut donc lorss de la - * creation des nodes remplir les infos dimensions et size comme suit: - * - * EbliNodeDefault node = new EbliNodeDefault(); node.setCreator(new - * EbliWidgetCreatorGraphe(g)); node.setTitle("Graphe"); - * node.setPreferedSize(new Dimension(300, 300)); node.setPreferedLocation(new - * Point(4, 4)); scene.addNode(node); - * *@author Adrien Hadoux - * */ public abstract class EbliWidgetActionAlign extends EbliWidgetActionSimple { @@ -42,30 +35,32 @@ @Override protected List<Point> getNewPositionFor(List<Widget> _widgetToMove) { - // on recupere le premier - // minx est le x min dans le repere de la scene - // on est oblige de passer par la car on la location ne suffit pas pour - // determiner - // la position d'un widget: ily a aussi les bounds - int maxY = _widgetToMove.get(0).convertLocalToScene(_widgetToMove.get(0).getBounds()).y+_widgetToMove.get(0).convertLocalToScene(_widgetToMove.get(0).getBounds()).height; - for (Widget widget : _widgetToMove) { - maxY = Math.max(maxY, widget.convertLocalToScene(widget.getBounds()).y+ widget.convertLocalToScene(widget.getBounds()).height); - } - List<Point> newPoints = new ArrayList<Point>(_widgetToMove.size()); - for (Widget widget : _widgetToMove) { - Point p = widget.getPreferredLocation(); - // celui la ne change pas - int oldX = p.x; - p.y = maxY; - widget.getParentWidget().convertSceneToLocal(p); - //maintenant le p.x contient la position de bounds dans le repere qu'il faut. - //la location + bounds.x vaut la postion final du dessin donc - //la location final vaut=le point du dessin - bounds.x - p.y = p.y - widget.getBounds().height- widget.getBounds().y; - p.x = oldX; - newPoints.add(p); - } - return newPoints; + // on recupere le premier + // minx est le x min dans le repere de la scene + // on est oblige de passer par la car on la location ne suffit pas pour + // determiner + // la position d'un widget: ily a aussi les bounds + int maxY = _widgetToMove.get(0).convertLocalToScene(_widgetToMove.get(0).getBounds()).y + + _widgetToMove.get(0).convertLocalToScene(_widgetToMove.get(0).getBounds()).height; + for (Widget widget : _widgetToMove) { + maxY = Math.max(maxY, widget.convertLocalToScene(widget.getBounds()).y + + widget.convertLocalToScene(widget.getBounds()).height); + } + List<Point> newPoints = new ArrayList<Point>(_widgetToMove.size()); + for (Widget widget : _widgetToMove) { + Point p = widget.getPreferredLocation(); + // celui la ne change pas + int oldX = p.x; + p.y = maxY; + widget.getParentWidget().convertSceneToLocal(p); + // maintenant le p.x contient la position de bounds dans le repere qu'il faut. + // la location + bounds.x vaut la postion final du dessin donc + // la location final vaut=le point du dessin - bounds.x + p.y = p.y - widget.getBounds().height - widget.getBounds().y; + p.x = oldX; + newPoints.add(p); + } + return newPoints; } } @@ -80,34 +75,36 @@ @Override protected List<Point> getNewPositionFor(List<Widget> _widgetToMove) { // TODO A terminer pour centrer horizontalement les widgets - - //on recupere les coordonnees les plus a gauche - int minx = _widgetToMove.get(0).convertLocalToScene(_widgetToMove.get(0).getBounds()).y; - for (Widget widget : _widgetToMove) { - minx = Math.min(minx, widget.convertLocalToScene(widget.getBounds()).y); - } - //on recupere les coordonnees les plus a droite - int maxx = _widgetToMove.get(0).convertLocalToScene(_widgetToMove.get(0).getBounds()).y+_widgetToMove.get(0).convertLocalToScene(_widgetToMove.get(0).getBounds()).height; - for (Widget widget : _widgetToMove) { - maxx = Math.max(maxx, widget.convertLocalToScene(widget.getBounds()).y+ widget.convertLocalToScene(widget.getBounds()).height); - } - List<Point> newPoints = new ArrayList<Point>(_widgetToMove.size()); - for (Widget widget : _widgetToMove) { - Point p = widget.getPreferredLocation(); - // toutes les coordonnees changent, elles s alignent entre elles au centre, cf le super logiciel powerpoint - int oldY = p.x; - - // p.x se trouve a la moyenne des 2 - p.y = (maxx+minx)/2; - widget.getParentWidget().convertSceneToLocal(p); - //maintenant le p.x contient la position du centre des widgets dans le repere qu'il faut. - // - //la location final vaut=le point du milieu du dessin - sa taille/2 - sa bordure - p.y = p.y - widget.getBounds().height/2- widget.getBounds().y; - p.x = oldY; - newPoints.add(p); - } - return newPoints; + + // on recupere les coordonnees les plus a gauche + int minx = _widgetToMove.get(0).convertLocalToScene(_widgetToMove.get(0).getBounds()).y; + for (Widget widget : _widgetToMove) { + minx = Math.min(minx, widget.convertLocalToScene(widget.getBounds()).y); + } + // on recupere les coordonnees les plus a droite + int maxx = _widgetToMove.get(0).convertLocalToScene(_widgetToMove.get(0).getBounds()).y + + _widgetToMove.get(0).convertLocalToScene(_widgetToMove.get(0).getBounds()).height; + for (Widget widget : _widgetToMove) { + maxx = Math.max(maxx, widget.convertLocalToScene(widget.getBounds()).y + + widget.convertLocalToScene(widget.getBounds()).height); + } + List<Point> newPoints = new ArrayList<Point>(_widgetToMove.size()); + for (Widget widget : _widgetToMove) { + Point p = widget.getPreferredLocation(); + // toutes les coordonnees changent, elles s alignent entre elles au centre, cf le super logiciel powerpoint + int oldY = p.x; + + // p.x se trouve a la moyenne des 2 + p.y = (maxx + minx) / 2; + widget.getParentWidget().convertSceneToLocal(p); + // maintenant le p.x contient la position du centre des widgets dans le repere qu'il faut. + // + // la location final vaut=le point du milieu du dessin - sa taille/2 - sa bordure + p.y = p.y - widget.getBounds().height / 2 - widget.getBounds().y; + p.x = oldY; + newPoints.add(p); + } + return newPoints; } } @@ -137,9 +134,9 @@ int oldY = p.y; p.x = minx; widget.getParentWidget().convertSceneToLocal(p); - //maintenant le p.x contient la position de bounds dans le repere qu'il faut. - //la location + bounds.x vaut la postion final du dessin donc - //la location final vaut=le point du dessin - bounds.x + // maintenant le p.x contient la position de bounds dans le repere qu'il faut. + // la location + bounds.x vaut la postion final du dessin donc + // la location final vaut=le point du dessin - bounds.x p.x = p.x - widget.getBounds().x; p.y = oldY; newPoints.add(p); @@ -158,35 +155,37 @@ @Override protected List<Point> getNewPositionFor(List<Widget> _widgetToMove) { - // TODO A terminer pour centrer horizontalement les widgets - - //on recupere les coordonnees les plus a gauche - int minx = _widgetToMove.get(0).convertLocalToScene(_widgetToMove.get(0).getBounds()).x; - for (Widget widget : _widgetToMove) { - minx = Math.min(minx, widget.convertLocalToScene(widget.getBounds()).x); - } - //on recupere les coordonnees les plus a droite - int maxx = _widgetToMove.get(0).convertLocalToScene(_widgetToMove.get(0).getBounds()).x+_widgetToMove.get(0).convertLocalToScene(_widgetToMove.get(0).getBounds()).width; - for (Widget widget : _widgetToMove) { - maxx = Math.max(maxx, widget.convertLocalToScene(widget.getBounds()).x+ widget.convertLocalToScene(widget.getBounds()).width); - } - List<Point> newPoints = new ArrayList<Point>(_widgetToMove.size()); - for (Widget widget : _widgetToMove) { - Point p = widget.getPreferredLocation(); - // toutes les coordonnees changent, elles s alignent entre elles au centre, cf le super logiciel powerpoint - int oldY = p.y; - - // p.x se trouve a la moyenne des 2 - p.x = (maxx+minx)/2; - widget.getParentWidget().convertSceneToLocal(p); - //maintenant le p.x contient la position du centre des widgets dans le repere qu'il faut. - // - //la location final vaut=le point du milieu du dessin - sa taille/2 - sa bordure - p.x = p.x - widget.getBounds().width/2- widget.getBounds().x; - p.y = oldY; - newPoints.add(p); - } - return newPoints; + // TODO A terminer pour centrer horizontalement les widgets + + // on recupere les coordonnees les plus a gauche + int minx = _widgetToMove.get(0).convertLocalToScene(_widgetToMove.get(0).getBounds()).x; + for (Widget widget : _widgetToMove) { + minx = Math.min(minx, widget.convertLocalToScene(widget.getBounds()).x); + } + // on recupere les coordonnees les plus a droite + int maxx = _widgetToMove.get(0).convertLocalToScene(_widgetToMove.get(0).getBounds()).x + + _widgetToMove.get(0).convertLocalToScene(_widgetToMove.get(0).getBounds()).width; + for (Widget widget : _widgetToMove) { + maxx = Math.max(maxx, widget.convertLocalToScene(widget.getBounds()).x + + widget.convertLocalToScene(widget.getBounds()).width); + } + List<Point> newPoints = new ArrayList<Point>(_widgetToMove.size()); + for (Widget widget : _widgetToMove) { + Point p = widget.getPreferredLocation(); + // toutes les coordonnees changent, elles s alignent entre elles au centre, cf le super logiciel powerpoint + int oldY = p.y; + + // p.x se trouve a la moyenne des 2 + p.x = (maxx + minx) / 2; + widget.getParentWidget().convertSceneToLocal(p); + // maintenant le p.x contient la position du centre des widgets dans le repere qu'il faut. + // + // la location final vaut=le point du milieu du dessin - sa taille/2 - sa bordure + p.x = p.x - widget.getBounds().width / 2 - widget.getBounds().x; + p.y = oldY; + newPoints.add(p); + } + return newPoints; } } @@ -201,30 +200,32 @@ @Override protected List<Point> getNewPositionFor(List<Widget> _widgetToMove) { - // on recupere le premier - // minx est le x min dans le repere de la scene - // on est oblige de passer par la car on la location ne suffit pas pour - // determiner - // la position d'un widget: ily a aussi les bounds - int maxx = _widgetToMove.get(0).convertLocalToScene(_widgetToMove.get(0).getBounds()).x+_widgetToMove.get(0).convertLocalToScene(_widgetToMove.get(0).getBounds()).width; - for (Widget widget : _widgetToMove) { - maxx = Math.max(maxx, widget.convertLocalToScene(widget.getBounds()).x+ widget.convertLocalToScene(widget.getBounds()).width); - } - List<Point> newPoints = new ArrayList<Point>(_widgetToMove.size()); - for (Widget widget : _widgetToMove) { - Point p = widget.getPreferredLocation(); - // celui la ne change pas - int oldY = p.y; - p.x = maxx; - widget.getParentWidget().convertSceneToLocal(p); - //maintenant le p.x contient la position de bounds dans le repere qu'il faut. - //la location + bounds.x vaut la postion final du dessin donc - //la location final vaut=le point du dessin - bounds.x - p.x = p.x - widget.getBounds().width- widget.getBounds().x; - p.y = oldY; - newPoints.add(p); - } - return newPoints; + // on recupere le premier + // minx est le x min dans le repere de la scene + // on est oblige de passer par la car on la location ne suffit pas pour + // determiner + // la position d'un widget: ily a aussi les bounds + int maxx = _widgetToMove.get(0).convertLocalToScene(_widgetToMove.get(0).getBounds()).x + + _widgetToMove.get(0).convertLocalToScene(_widgetToMove.get(0).getBounds()).width; + for (Widget widget : _widgetToMove) { + maxx = Math.max(maxx, widget.convertLocalToScene(widget.getBounds()).x + + widget.convertLocalToScene(widget.getBounds()).width); + } + List<Point> newPoints = new ArrayList<Point>(_widgetToMove.size()); + for (Widget widget : _widgetToMove) { + Point p = widget.getPreferredLocation(); + // celui la ne change pas + int oldY = p.y; + p.x = maxx; + widget.getParentWidget().convertSceneToLocal(p); + // maintenant le p.x contient la position de bounds dans le repere qu'il faut. + // la location + bounds.x vaut la postion final du dessin donc + // la location final vaut=le point du dessin - bounds.x + p.x = p.x - widget.getBounds().width - widget.getBounds().x; + p.y = oldY; + newPoints.add(p); + } + return newPoints; } } @@ -237,30 +238,30 @@ @Override protected List<Point> getNewPositionFor(List<Widget> _widgetToMove) { - // on recupere le premier - // miny est le y min dans le repere de la scene - // on est oblige de passer par la car on la location ne suffit pas pour - // determiner - // la position d'un widget: il y a aussi les bounds - int miny = _widgetToMove.get(0).convertLocalToScene(_widgetToMove.get(0).getBounds()).y; - for (Widget widget : _widgetToMove) { - miny = Math.min(miny, widget.convertLocalToScene(widget.getBounds()).y); - } - List<Point> newPoints = new ArrayList<Point>(_widgetToMove.size()); - for (Widget widget : _widgetToMove) { - Point p = widget.getPreferredLocation(); - // celui la ne change pas - int oldX = p.x; - p.y = miny; - widget.getParentWidget().convertSceneToLocal(p); - //maintenant le p.y contient la position de bounds dans le repere qu'il faut. - //la location + bounds.x vaut la postion final du dessin donc - //la location final vaut=le point du dessin - bounds.x - p.y = p.y - widget.getBounds().y; - p.x = oldX; - newPoints.add(p); - } - return newPoints; + // on recupere le premier + // miny est le y min dans le repere de la scene + // on est oblige de passer par la car on la location ne suffit pas pour + // determiner + // la position d'un widget: il y a aussi les bounds + int miny = _widgetToMove.get(0).convertLocalToScene(_widgetToMove.get(0).getBounds()).y; + for (Widget widget : _widgetToMove) { + miny = Math.min(miny, widget.convertLocalToScene(widget.getBounds()).y); + } + List<Point> newPoints = new ArrayList<Point>(_widgetToMove.size()); + for (Widget widget : _widgetToMove) { + Point p = widget.getPreferredLocation(); + // celui la ne change pas + int oldX = p.x; + p.y = miny; + widget.getParentWidget().convertSceneToLocal(p); + // maintenant le p.y contient la position de bounds dans le repere qu'il faut. + // la location + bounds.x vaut la postion final du dessin donc + // la location final vaut=le point du dessin - bounds.x + p.y = p.y - widget.getBounds().y; + p.x = oldX; + newPoints.add(p); + } + return newPoints; } } @@ -269,18 +270,9 @@ * */ private static final long serialVersionUID = 1L; - - - - - public EbliWidgetActionAlign(String name, Icon ic, String id, EbliScene _scene) { super(_scene, name, ic, id); - // TODO Auto-generated constructor stub - - - } @@ -288,8 +280,7 @@ // -- recuperation de la liste des widgets selectionnees --// Set<EbliNode> listeNode = (Set<EbliNode>) scene_.getSelectedObjects();// scene_ // pas de selection: on return - if (listeNode == null || listeNode.isEmpty()) - return; + if (listeNode == null || listeNode.isEmpty()) return; List<Widget> widgetToMove = new ArrayList<Widget>(listeNode.size()); // liste des anciens points List<Point> oldSize = new ArrayList<Point>(listeNode.size()); @@ -299,15 +290,13 @@ EbliNode currentNode = it.next(); FuLog.warning("current node movable: " + currentNode.getTitle()); if (currentNode.isMovable()) { - - + Widget widget = scene_.findWidget(currentNode); widgetToMove.add(widget); oldSize.add(widget.getPreferredLocation()); } } - if (widgetToMove.isEmpty()) - return; + if (widgetToMove.isEmpty()) return; // on calcule les nouvelles positions List<Point> newPos = getNewPositionFor(widgetToMove); // on met a jour les positions @@ -324,15 +313,10 @@ } - /** - * @param _widgetToMove - * non vide et non null - * @return les nouvelles positions correspondantes aux points pass\xE9s en - * parametres + * @param _widgetToMove non vide et non null + * @return les nouvelles positions correspondantes aux points pass\xE9s en parametres */ protected abstract List<Point> getNewPositionFor(List<Widget> _widgetToMove); - - } Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionBackGround.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionBackGround.java 2008-09-07 16:23:36 UTC (rev 3895) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionBackGround.java 2008-09-07 20:49:47 UTC (rev 3896) @@ -14,72 +14,56 @@ /** * classe qui permet de placer les widgets selectionnes en arriere plan. + * * @author genesis - * */ public class EbliWidgetActionBackGround extends EbliWidgetActionSimple { - - CtuluCommandContainer cmd_; - - - public EbliWidgetActionBackGround(EbliScene _scene){ - super(_scene, EbliResource.EBLI.getString("Arri\xE8re plan"), CtuluResource.CTULU.getIcon("crystal_disposerderriere"), + CtuluCommandContainer cmd_; + + public EbliWidgetActionBackGround(EbliScene _scene) { + super(_scene, EbliResource.EBLI.getString("Arri\xE8re plan"), CtuluResource.CTULU.getIcon("crystal_disposerderriere"), "BACKGROUND"); - - - cmd_ = _scene.getCmdMng(); - putValue(NAME,"Arri\xE8re plan"); - } - - private static final long serialVersionUID = 1L; - public void actionPerformed(ActionEvent e) { - // TODO Auto-generated method stub - + cmd_ = _scene.getCmdMng(); + putValue(NAME, "Arri\xE8re plan"); + } - - //-- recuperation de la liste des nodes de la scene --// + private static final long serialVersionUID = 1L; + + public void actionPerformed(ActionEvent e) { + + // -- recuperation de la liste des nodes de la scene --// Set<EbliNode> listeNode = (Set<EbliNode>) scene_.getSelectedObjects(); // -- liste des widget selectionnees --// java.util.List<EbliWidget> listeWidget = new ArrayList<EbliWidget>(); - - //-- parcours des nodes - for(Iterator<EbliNode> it=listeNode.iterator();it.hasNext();){ - EbliNode currentNode=it.next(); - if(currentNode!=null && currentNode.isMovable()){ + // -- parcours des nodes + for (Iterator<EbliNode> it = listeNode.iterator(); it.hasNext();) { - - //-- ajout au premier plan du node --// - // scene_.getVisu().addChild(currentNode.getCreator().getWidget()); - - currentNode.getCreator().getWidget().bringToBack(); - - listeWidget.add(currentNode.getCreator().getWidget()); - - //-- rafraichissement de la scene --// - scene_.refresh(); - - - + EbliNode currentNode = it.next(); + if (currentNode != null && currentNode.isMovable()) { + + // -- ajout au premier plan du node --// + // scene_.getVisu().addChild(currentNode.getCreator().getWidget()); + + currentNode.getCreator().getWidget().bringToBack(); + + listeWidget.add(currentNode.getCreator().getWidget()); + + // -- rafraichissement de la scene --// + scene_.refresh(); + } } - + // -- enregistrement de la commande undoRedo --// if (cmd_ != null) { cmd_.addCmd(new CommandeBringToBack(listeWidget)); } - - + } - - - - - } - } Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionBloqueOuDebloqueWidget.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionBloqueOuDebloqueWidget.java 2008-09-07 16:23:36 UTC (rev 3895) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionBloqueOuDebloqueWidget.java 2008-09-07 20:49:47 UTC (rev 3896) @@ -18,38 +18,31 @@ * Action qui empeche les widgets de se resize et d'etre deplacee * * @author Adrien Hadoux - * */ public abstract class EbliWidgetActionBloqueOuDebloqueWidget extends EbliWidgetActionSimple { private static final long serialVersionUID = 1L; - + final CtuluCommandContainer cmd_; boolean bloque_ = true; - - public EbliWidgetActionBloqueOuDebloqueWidget(String name, Icon ic, String id, EbliScene _scene, boolean bloque) { super(_scene, name, ic, id); - - + putValue(NAME, "Duplication des \xE9lements s\xE9lectionn\xE9s"); cmd_ = _scene.getCmdMng(); bloque_ = bloque; } - - - - public static class Bloque extends EbliWidgetActionBloqueOuDebloqueWidget{ - + + public static class Bloque extends EbliWidgetActionBloqueOuDebloqueWidget { + public Bloque(EbliScene _scene) { - super(EbliResource.EBLI.getString("Bloquer les objets s\xE9lectionn\xE9s "), CtuluResource.CTULU - .getIcon("crystal_tuer"), - "BLOQUEWIDGET", _scene, true); + super(EbliResource.EBLI.getString("Bloquer les objets s\xE9lectionn\xE9s "), CtuluResource.CTULU + .getIcon("crystal_tuer"), "BLOQUEWIDGET", _scene, true); } - + } - + public static class DeBloque extends EbliWidgetActionBloqueOuDebloqueWidget { public DeBloque(EbliScene _scene) { @@ -58,10 +51,8 @@ } } - - + public void actionPerformed(ActionEvent e) { - // TODO Auto-generated method stub // -- recuperation de la liste des nodes de la scene --// Set<EbliNode> listeNode = (Set<EbliNode>) scene_.getSelectedObjects(); @@ -76,10 +67,8 @@ if (currentNode != null && currentNode.hasWidget()) { // -- bloquage de la widget --// - if (bloque_) - currentNode.getCreator().getWidget().getController_().removeActionResizeAndMove(); - else - currentNode.getCreator().getWidget().getController_().replaceActionResizeAndMove(); + if (bloque_) currentNode.getCreator().getWidget().getController_().removeActionResizeAndMove(); + else currentNode.getCreator().getWidget().getController_().replaceActionResizeAndMove(); listeWidget.add(currentNode.getCreator().getWidget()); // -- rafraichissement de la scene --// Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionColorBackground.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionColorBackground.java 2008-09-07 16:23:36 UTC (rev 3895) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionColorBackground.java 2008-09-07 20:49:47 UTC (rev 3896) @@ -1,7 +1,5 @@ package org.fudaa.ebli.visuallibrary.actions; - - import java.awt.Color; import java.awt.event.ActionEvent; import java.util.ArrayList; @@ -18,38 +16,22 @@ import com.memoire.bu.BuColorChooser; - /** - * Classe qui permet de changer la couleur des contours des widgets . + * Classe qui permet de changer la couleur des contours des widgets . + * * @author Adrien Hadoux - * */ public class EbliWidgetActionColorBackground extends EbliWidgetActionSimple { - + CtuluCommandContainer cmd_; - CtuluCommandContainer cmd_; - - - - - - - - public EbliWidgetActionColorBackground(EbliScene _scene) { - super(_scene, EbliResource.EBLI.getString("Couleur Contour"), EbliResource.EBLI.getToolIcon("couleur"), "CONTOUR"); - - - - cmd_=_scene.getCmdMng(); - - - // TODO Auto-generated constructor stub - } + public EbliWidgetActionColorBackground(EbliScene _scene) { + super(_scene, EbliResource.EBLI.getString("Couleur Contour"), EbliResource.EBLI.getToolIcon("couleur"), "CONTOUR"); - - - + cmd_ = _scene.getCmdMng(); + + } + public void actionPerformed(ActionEvent e) { // -- choix de la couleur par l utilisateur --// @@ -60,11 +42,9 @@ // -- recupere les anciennes gr... [truncated message content] |
From: <bma...@us...> - 2008-09-07 16:23:28
|
Revision: 3895 http://fudaa.svn.sourceforge.net/fudaa/?rev=3895&view=rev Author: bmarchan Date: 2008-09-07 16:23:36 +0000 (Sun, 07 Sep 2008) Log Message: ----------- Modified Paths: -------------- branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/edition/ZSceneEditor.java Modified: branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/edition/ZSceneEditor.java =================================================================== --- branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/edition/ZSceneEditor.java 2008-09-06 17:18:19 UTC (rev 3894) +++ branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/edition/ZSceneEditor.java 2008-09-07 16:23:36 UTC (rev 3895) @@ -23,13 +23,13 @@ */ public class ZSceneEditor { protected ZScene scene_; - protected ZEbliCalquesPanel claquePanel_; + protected ZEbliCalquesPanel calquePanel_; protected CtuluCommandManager mng_; protected CtuluUI ui_; - public ZSceneEditor(ZScene _scene, ZEbliCalquesPanel _claquePanel) { + public ZSceneEditor(ZScene _scene, ZEbliCalquesPanel _calquePanel) { scene_=_scene; - claquePanel_ = _claquePanel; + calquePanel_ = _calquePanel; } public void setUI(CtuluUI _ui) { @@ -132,7 +132,7 @@ else boite.ajuste(boiteTmp); } if(boite != null) - claquePanel_.getVueCalque().changeRepere(this, boite); + calquePanel_.getVueCalque().changeRepere(this, boite); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <had...@us...> - 2008-09-06 17:18:10
|
Revision: 3894 http://fudaa.svn.sourceforge.net/fudaa/?rev=3894&view=rev Author: hadouxad Date: 2008-09-06 17:18:19 +0000 (Sat, 06 Sep 2008) Log Message: ----------- - ajout du multi-source dans les courbes - ajout de la source pour les objets trpostCourbeModel - pour la methode update, ne passe plus en parametre le source, on recuperer celui de la source et on y recuepre les datas - la ou je suis pas tres sur sur les modifs, j ai mis le FIXME suivant: // FIXME Adrien: Fred, je ne me suis pas gour?\195?\169 ? - creation du graphe spatial en widget - modifs de profilPanelCreated() de la classe trpostprojet - creer la widget automatiquement - mode edition ok (il faudra qu'on discute des fonctions, certaines ne marchent pas) - correction de la duplication: marche OK - modification de l'action ADDPOINT des evol temporelles: ne selectionne que les graphes temporels et ne propose pas les graphes Spatiaux - Creation de la meme action ADDPOINT poru les actions spatiales que celle des evolutions temporelles - utilisation du design pattern template dans la classe TrPostActionAddPointFromWidgetCalque2 - possibilite de creation d une courbe spatiale - BUG: la fonction ajout de courbe sur le graphe NE MARCHE PAS: TrPostActionAddPointFromWidgetCalque.Spatial.executeAction - REFONTE de l'actions de duplication g?\195?\169n?\195?\169rale dans la scene au choix: - action dupliquer: ouvre une liste pour choisir la scene dans laquelle dupliquer la widget - si il n y a qu une fenetre: fonction de duplication classique - si il y a plusieurs fenetre: chooser de fenetre - si il y a plusieurs onglets: chooser d'onglet apres choix de la fenetre. - les undo/redo fonctionnent - action de deplacement dans une autre scene - chooser pour choisir la fenetre de destination (si une seule fenetre, pas de chooser) - chooser pour choisir l'onglet de destination (si un seul onglet, pas de chooser) - gestion des undo/redo - tout se met correctement ?\195?\160 jour. Modified Paths: -------------- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/courbe/EGCourbeChild.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/courbe/EGCourbeSurfacePainter.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/courbe/EGGraphe.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionDuplicate.java branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/meshviewer/profile/MvProfileBuilder.java branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/data/TrVisuPanelEditor.java branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostActionChooseAndCreateCalque.java branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostCourbeModel.java branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostCourbeTreeModel.java branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostLayoutPanelController.java 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 Added Paths: ----------- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/CommandeChangeWidgetScene.java branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostActionAddPointFromWidgetCalque.java branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostActionAddPointFromWidgetCalque2.java branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostActionChangeSceneForWidget.java branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostActionDuplicate.java Removed Paths: ------------- branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostActionAddPointFromWidgetCalque.java branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostActionAddPointFromWidgetCalque2.java Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/courbe/EGCourbeChild.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/courbe/EGCourbeChild.java 2008-09-05 15:01:51 UTC (rev 3893) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/courbe/EGCourbeChild.java 2008-09-06 17:18:19 UTC (rev 3894) @@ -101,6 +101,7 @@ duplic.tbox_ = this.tbox_.duplicate(); // -- duplication du egCourbeSurfacePainter --// + if (this.surfacePainter_ != null) duplic.surfacePainter_ = this.surfacePainter_.duplicate(duplic, _duplicator); //-- aspect couleur contour+surface de la courbe --// Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/courbe/EGCourbeSurfacePainter.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/courbe/EGCourbeSurfacePainter.java 2008-09-05 15:01:51 UTC (rev 3893) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/courbe/EGCourbeSurfacePainter.java 2008-09-06 17:18:19 UTC (rev 3894) @@ -276,7 +276,7 @@ public SelectedIndex maxIdx_ = NONE; SelectedIndex minIdx_ = NONE; - final EGGrapheModel model_; + EGGrapheModel model_; Delegate painter_; @@ -327,9 +327,11 @@ EGCourbeSurfacePainter duplic = new EGCourbeSurfacePainter(cibleDuplique, _duplicator.getModelDuplique_()); duplic.alpha_ = this.alpha_; - if (this.delegateCourbe_ != null) + if (this.delegateCourbe_ != null && duplic.model_ != null) { + // if (duplic.model_ == null) + // duplic.model_ = this.model_.duplicate(_duplicator); duplic.delegateCourbe_ = new DelegateCourbe(duplic.model_); - + } duplic.down_ = this.down_; duplic.maxIdx_ = this.maxIdx_; duplic.minIdx_ = this.minIdx_; Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/courbe/EGGraphe.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/courbe/EGGraphe.java 2008-09-05 15:01:51 UTC (rev 3893) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/courbe/EGGraphe.java 2008-09-06 17:18:19 UTC (rev 3894) @@ -891,8 +891,20 @@ Object[] vals = this.objectInitAxe_.values().toArray() ; int cpt = 0; for (Iterator it = set.iterator(); it.hasNext();) { - EGAxeVertical axe = (EGAxeVertical) it.next(); + Object objet = it.next(); + if (objet instanceof EGAxeVertical) { + EGAxeVertical axe = (EGAxeVertical) objet; duplic.objectInitAxe_.put(duplicator.duplicateAxeV(axe), vals[cpt++]); + } + // else if (objet instanceof meshviewer.profile.MvProfileCourbeGroup) { + // meshviewer.profile.MvProfileCourbeGroup profcourbe = objet; + // + // } + + + else if (objet instanceof EGGroup) { + EGGroup groupe = (EGGroup) objet; + duplic.objectInitAxe_.put(groupe.duplicate(duplicator), vals[cpt++]); } } if (this.xRange_ != null) @@ -904,8 +916,10 @@ - return duplic; + } + return duplic; + } } \ No newline at end of file Added: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/CommandeChangeWidgetScene.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/CommandeChangeWidgetScene.java (rev 0) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/CommandeChangeWidgetScene.java 2008-09-06 17:18:19 UTC (rev 3894) @@ -0,0 +1,57 @@ +package org.fudaa.ebli.visuallibrary.actions; + +import java.util.ArrayList; +import java.util.Iterator; + +import org.fudaa.ctulu.CtuluCommand; +import org.fudaa.ebli.visuallibrary.EbliNode; +import org.fudaa.ebli.visuallibrary.EbliScene; + +/** + * action qui permet de faire le undo/redo sur le changement de scene du node. + * + * @author genesis + * + */ +public class CommandeChangeWidgetScene implements CtuluCommand { + + ArrayList<EbliNode> nodeDuplique_; + + EbliScene sceneDepart_; + EbliScene sceneDestination_; + + + + public CommandeChangeWidgetScene(ArrayList<EbliNode> nodeDuplique_, EbliScene sceneDep, EbliScene sceneDest) { + super(); + this.nodeDuplique_ = nodeDuplique_; + this.sceneDepart_ = sceneDep; + sceneDestination_ = sceneDest; + + } + + public void redo() { + // -- redo unitaire execute pour chaque node dupliques --// + for (Iterator<EbliNode> it = nodeDuplique_.iterator(); it.hasNext();) { + EbliNode node = it.next(); + sceneDepart_.removeNode(node); + sceneDepart_.refresh(); + sceneDestination_.addNode(node); + sceneDestination_.refresh(); + } + } + + + public void undo() { + // -- redo unitaire execute pour chaque node dupliques --// + for (Iterator<EbliNode> it = nodeDuplique_.iterator(); it.hasNext();) { + EbliNode node = it.next(); + sceneDestination_.removeNode(node); + sceneDestination_.refresh(); + sceneDepart_.addNode(node); + sceneDepart_.refresh(); + } + } + + +} Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionDuplicate.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionDuplicate.java 2008-09-05 15:01:51 UTC (rev 3893) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/EbliWidgetActionDuplicate.java 2008-09-06 17:18:19 UTC (rev 3894) @@ -26,6 +26,14 @@ /** * */ + + /** + * Possibilit\xE9 de changer la scene de destination + */ + EbliScene sceneDestination_ = null; + + + private static final long serialVersionUID = 1L; final CtuluCommandContainer cmd_; @@ -68,6 +76,10 @@ } } + + + sceneDestination_ = selectionneSceneNode(); + //-- duplication des noeuds saisis --// for(Iterator<EbliNode> it=listeNodeADupliquer.iterator();it.hasNext();){ EbliNode currentNode=it.next(); @@ -77,7 +89,7 @@ if(node !=null){ //-- ajout du node dans la scene --// - scene_.addNode(node); + sceneDestination_.addNode(node); // -- ajout du noeud --// listeNouveauxNodes.add(node); @@ -89,15 +101,24 @@ node.getCreator().getWidget().setPreferredBounds(currentNode.getCreator().getWidget().getPreferredBounds()); //-- rafraichissement de la scene --// - scene_.refresh(); + sceneDestination_.refresh(); } } // -- creation de l action undo/redo pour les nodes --// - cmd_.addCmd(new CommandeDuplicate(listeNouveauxNodes, scene_)); + cmd_.addCmd(new CommandeDuplicate(listeNouveauxNodes, sceneDestination_)); } + /** + * methode qui doit etre surchargee par les filles pour selectionner la scene + * de destination + */ + protected EbliScene selectionneSceneNode() { + return scene_; + } + + } Modified: branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/meshviewer/profile/MvProfileBuilder.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/meshviewer/profile/MvProfileBuilder.java 2008-09-05 15:01:51 UTC (rev 3893) +++ branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/meshviewer/profile/MvProfileBuilder.java 2008-09-06 17:18:19 UTC (rev 3894) @@ -13,10 +13,6 @@ import javax.swing.ListModel; -import com.vividsolutions.jts.geom.LineString; - -import com.memoire.bu.BuLib; - import org.fudaa.ctulu.CtuluActivity; import org.fudaa.ctulu.CtuluLib; import org.fudaa.ctulu.CtuluLibString; @@ -24,7 +20,6 @@ import org.fudaa.ctulu.CtuluVariable; import org.fudaa.ctulu.ProgressionInterface; import org.fudaa.ctulu.gui.CtuluLibSwing; - import org.fudaa.dodico.commun.DodicoLib; import org.fudaa.dodico.ef.operation.EfLineIntersectionsCorrectionTester; import org.fudaa.dodico.ef.operation.EfLineIntersectionsResultsBuilder; @@ -32,7 +27,6 @@ import org.fudaa.dodico.ef.operation.EfLineIntersectionsResultsMng; import org.fudaa.dodico.ef.operation.EfLineIntersectorActivity; import org.fudaa.dodico.h2d.type.H2dVariableType; - import org.fudaa.ebli.calque.BArbreCalqueModel; import org.fudaa.ebli.calque.ZCalqueLigneBrisee; import org.fudaa.ebli.calque.ZEbliCalquesPanel; @@ -45,12 +39,15 @@ import org.fudaa.ebli.trace.TraceIconModel; import org.fudaa.ebli.trace.TraceLigne; import org.fudaa.ebli.trace.TraceLigneModel; - import org.fudaa.fudaa.commun.courbe.FudaaCourbeTimeListModel; import org.fudaa.fudaa.meshviewer.MvResource; import org.fudaa.fudaa.meshviewer.export.MvExportChooseVarAndTime; import org.fudaa.fudaa.sig.FSigLineSingleModel; +import org.fudaa.fudaa.tr.post.TrPostSource; +import com.memoire.bu.BuLib; +import com.vividsolutions.jts.geom.LineString; + /** * @author fred deniger * @version $Id: MvProfileBuilder.java,v 1.14 2007-06-13 12:58:10 deniger Exp $ @@ -232,6 +229,158 @@ } + /** + * Methode qui permet d ajouter une courbe spatiale poru un grapeh deja + * existant. + * + * @author Adrien Hadoux + * @param _prog + * @param _selected + */ + public void actAddGroupForExistingModel(final ProgressionInterface _prog, + MvProfileTreeModel _tree, TrPostSource _src) { + + +// int[] time = _selected.getSelectedTimeStepIdx(); + // final CtuluVariable[] vs = _selected.getSelectedVar(); + + double[] time = _src.getTime().getTimeListModel().getTimesInSec(); + H2dVariableType[] vs = _src.getAllVariablesNonVec(); + + + + + final int nbVar = vs == null ? 0 : vs.length; + final boolean isTime = timeModel_ != null; + + // boolean addXYForNode = false; + // boolean addXYForMesh = false; + // for (int i = initVar_.getSize() - 1; i >= 0; i--) { + // if (data_.getData().isElementVar((CtuluVariable) + // initVar_.getElementAt(i))) { + // addXYForMesh = true; + // } else { + // addXYForNode = true; + // } + // // les 2 sont a true + // if (addXYForMesh && addXYForNode) { + // break; + // } + // } + final int nbTIme = time.length; + final MvProfileTreeModel tree = _tree; + // if (addXYForNode) { + // tree.setNodesResults(getNodeResultsMng(_prog), + // getNodeResultBuilder(_prog)); + // } + // if (addXYForMesh) { + // tree.setMeshesResults(getMeshResultsMng(_prog), + // getMeshesResultBuilder(_prog)); + // + // } + final EGGroup grCoord = new EGGroup(); + final String s = EbliLib.getS("Coordonn\xE9es"); + grCoord.setTitle(s); + final EGAxeVertical yCoordonnees = new EGAxeVertical(); + yCoordonnees.setTitre(s); + yCoordonnees.setUnite("m"); + grCoord.setAxeY(yCoordonnees); + final String sep = " - "; + // if (addXYForNode) { + // final EGCourbeChild courbeChild = new MVProfileCourbeCoordinate(grCoord, + // new MvProfileCoordinatesModel( + // getNodeResultsMng(_prog).getDefaultRes(), true)); + // final EGCourbeChild courbeChild2 = new MVProfileCourbeCoordinate(grCoord, + // new MvProfileCoordinatesModel( + // getNodeResultsMng(_prog).getDefaultRes(), false)); + // if (addXYForNode && addXYForMesh) { + // courbeChild.setTitle(courbeChild.getTitle() + sep + + // MvResource.getS("Noeuds")); + // courbeChild2.setTitle(courbeChild2.getTitle() + sep + + // MvResource.getS("Noeuds")); + // } + // grCoord.addEGComponent(courbeChild); + // + // grCoord.addEGComponent(courbeChild2); + // + // } + // if (addXYForMesh) { + // final EGCourbeChild courbeChild = new MVProfileCourbeCoordinate(grCoord, + // new MvProfileCoordinatesModel( + // getMeshResultsMng(_prog).getDefaultRes(), true)); + // final EGCourbeChild courbeChild2 = new MVProfileCourbeCoordinate(grCoord, + // new MvProfileCoordinatesModel( + // getMeshResultsMng(_prog).getDefaultRes(), false)); + // if (addXYForNode && addXYForMesh) { + // courbeChild.setTitle(courbeChild.getTitle() + sep + + // MvResource.getS("Elements")); + // courbeChild2.setTitle(courbeChild2.getTitle() + sep + + // MvResource.getS("Elements")); + // } + // grCoord.addEGComponent(courbeChild); + // + // grCoord.addEGComponent(courbeChild2); + // + // } + grCoord.setVisible(false); + tree.add(grCoord); + // map permettant de stocker la correspondance var -> groupe + final Map varGroup = new HashMap(); + if (vs != null) { + for (int i = 0; i < nbVar; i++) { + // pas null + final CtuluVariable var = vs[i]; + MvProfileCourbeGroup gri = null; + // dans ce cas, on va g\xE9rer les variables parents: inutile de creer des + // groupe different + // pour des variables de meme type + Color c = null; + boolean mustAddGr = true; + if (var instanceof H2dVariableType) { + H2dVariableType parent = ((H2dVariableType) var).getParentVariable(); + if (parent == null) { + parent = (H2dVariableType) var; + } + c = MvProfileFillePanel.getColorFor(i, parent); + gri = (MvProfileCourbeGroup) varGroup.get(parent); + if (gri == null) { + gri = MvProfileFillePanel.createGroupFor(parent); + varGroup.put(parent, gri); + } else { + mustAddGr = false; + } + } + if (gri == null) { + gri = MvProfileFillePanel.createGroupFor(var); + } + if (c == null) { + c = MvProfileFillePanel.getColorFor(i, var); + } + // on doit construire les courbes + for (int t = 0; t < nbTIme; t++) { + final MVProfileCourbeModel model = new MVProfileCourbeModel(var, data_.getData(), (int) time[t], + getResBuilder(var, + _prog), _prog); + EGCourbeChild child; + if (isTime) { + model.setTitle(var.toString() + CtuluLibString.ESPACE + time[t]); + child = new MvProfileCourbeTime(gri, model, timeModel_); + } else { + child = new MvProfileCourbe(gri, model); + } + child.setAspectContour(c); + gri.addEGComponent(child); + } + if (mustAddGr) { + tree.add(gri); + } + } + } + + //data_.profilPanelCreated(new MvProfileFillePanel(tree, ui_), _prog, name_); + + } + protected void close() { if (tmp_ != null) { tmp_.detruire(); Modified: branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/data/TrVisuPanelEditor.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/data/TrVisuPanelEditor.java 2008-09-05 15:01:51 UTC (rev 3893) +++ branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/data/TrVisuPanelEditor.java 2008-09-06 17:18:19 UTC (rev 3894) @@ -19,16 +19,12 @@ import javax.swing.event.InternalFrameAdapter; import javax.swing.event.InternalFrameEvent; -import com.memoire.bu.BuWizardDialog; -import com.memoire.fu.FuLog; - import org.fudaa.ctulu.CtuluLibString; import org.fudaa.ctulu.CtuluUI; import org.fudaa.ctulu.CtuluVariable; import org.fudaa.ctulu.ProgressionInterface; import org.fudaa.ctulu.gui.CtuluDialog; import org.fudaa.ctulu.gui.CtuluValuesEditorPanel; - import org.fudaa.dodico.ef.EfGridData; import org.fudaa.dodico.ef.EfGridInterface; import org.fudaa.dodico.ef.interpolation.EfInterpolator; @@ -38,7 +34,6 @@ import org.fudaa.dodico.h2d.H2dVariableProviderInterface; import org.fudaa.dodico.h2d.resource.H2dResource; import org.fudaa.dodico.h2d.type.H2dVariableType; - import org.fudaa.ebli.calque.BCalque; import org.fudaa.ebli.calque.BGroupeCalque; import org.fudaa.ebli.calque.ZCalqueAffichageDonneesInterface; @@ -49,7 +44,6 @@ import org.fudaa.ebli.commun.EbliActionInterface; import org.fudaa.ebli.commun.EbliActionSimple; import org.fudaa.ebli.find.EbliFindExpressionContainerInterface; - import org.fudaa.fudaa.commun.courbe.FudaaCourbeTimeListModel; import org.fudaa.fudaa.commun.impl.FudaaCommonImplementation; import org.fudaa.fudaa.meshviewer.MvLayerGrid; @@ -67,6 +61,9 @@ import org.fudaa.fudaa.tr.common.TrResource; import org.fudaa.fudaa.tr.export.TrExportFactory; +import com.memoire.bu.BuWizardDialog; +import com.memoire.fu.FuLog; + /** * @author Fred Deniger * @version $Id: TrVisuPanelEditor.java,v 1.34 2007-06-14 12:01:41 deniger Exp $ @@ -376,7 +373,7 @@ _l.add(new MvProfileAction(new ProfileAdapter(), getImpl(), this)); } - protected class ProfileAdapter implements MvProfileTarget { + public class ProfileAdapter implements MvProfileTarget { final EfGridData data_ = getParams().createGridDataAdapter(); final EfInterpolator interpolator_ = new EfInterpolator(data_, getParams().getVectorContainer()); Deleted: branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostActionAddPointFromWidgetCalque.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostActionAddPointFromWidgetCalque.java 2008-09-05 15:01:51 UTC (rev 3893) +++ branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostActionAddPointFromWidgetCalque.java 2008-09-06 17:18:19 UTC (rev 3894) @@ -1,112 +0,0 @@ -package org.fudaa.fudaa.tr.post; - -import java.awt.event.ActionEvent; -import java.util.ArrayList; -import java.util.Iterator; -import java.util.Set; - -import org.fudaa.ctulu.CtuluCommandContainer; -import org.fudaa.ctulu.CtuluResource; -import org.fudaa.ebli.courbe.EGGraphe; -import org.fudaa.ebli.visuallibrary.EbliNode; -import org.fudaa.ebli.visuallibrary.EbliScene; -import org.fudaa.ebli.visuallibrary.actions.EbliWidgetActionSimple; -import org.fudaa.ebli.visuallibrary.calque.EbliWidgetCreatorVueCalque; -import org.fudaa.ebli.visuallibrary.graphe.EbliWidgetCreatorGraphe; -import org.fudaa.fudaa.tr.common.TrResource; - -import com.memoire.bu.BuDialogError; - -/** - * Action qui recupere les widgets selectionnes calque et graphe. Recupere - * l'unique calque selectionn\xE9s et l'ensem - * - * @author genesis - * - */ -public class TrPostActionAddPointFromWidgetCalque extends EbliWidgetActionSimple { - - - - CtuluCommandContainer cmd_; - TrPostCommonImplementation impl_; - - - - public TrPostActionAddPointFromWidgetCalque(EbliScene _scene, TrPostCommonImplementation _impl) { - super(_scene, TrResource.getS("Ajout des points du calque"), CtuluResource.CTULU.getIcon("cible"), - "ADDPOINTWIDGET"); - - cmd_ = _scene.getCmdMng(); - impl_ = _impl; - putValue(NAME, "Arri\xE8re plan"); - this - .setDefaultToolTip(TrResource - .getS("S\xE9lectionnez simultan\xE9ment le calque qui contient les points ainsi que les graphes qui contiendront les courbes ")); - - } - - public void actionPerformed(ActionEvent e) { - - // -- recuperation de la liste des nodes de la scene --// - Set<EbliNode> listeNode = (Set<EbliNode>) scene_.getSelectedObjects(); - - boolean isCalqueUnique = true; - boolean isGraphePresent = false; - TrPostVisuPanel calque = null; - ArrayList<EGGraphe> listeGraphes = new ArrayList<EGGraphe>(); - - //-- tentative de recuperation du calque --// - for (Iterator<EbliNode> it = listeNode.iterator(); isCalqueUnique && it.hasNext();) { - - EbliNode currentNode = it.next(); - - if(currentNode.getCreator() instanceof EbliWidgetCreatorVueCalque){ - if (calque == null) { - EbliWidgetCreatorVueCalque creatorCalque = (EbliWidgetCreatorVueCalque) currentNode.getCreator(); - calque = (TrPostVisuPanel) creatorCalque.getCalque(); - } else { - // -- error plus d 'un calque --// - isCalqueUnique = false; - } - } else if (currentNode.getCreator() instanceof EbliWidgetCreatorGraphe) { - EbliWidgetCreatorGraphe creatorGraphe = (EbliWidgetCreatorGraphe) currentNode.getCreator(); - listeGraphes.add(creatorGraphe.getGraphe()); - isGraphePresent = true; - } - - - } - - // -- on v\xE9rifie que les booleens n'ont pas d\xE9tect\xE9s d'erreurs --// - if (calque == null) { - new BuDialogError(impl_.getApp(), impl_.getInformationsSoftware(), TrResource - .getS("Il doit y avoir un calque s\xE9lectionn\xE9.")) - .activate(); - return; - } else if (!isCalqueUnique) { - new BuDialogError(impl_.getApp(), impl_.getInformationsSoftware(), - TrResource - .getS("Il doit y avoir un et un seul calque s\xE9lectionn\xE9.")).activate(); - return; - } else if (!isGraphePresent) { - new BuDialogError(impl_.getApp(), impl_.getInformationsSoftware(), - TrResource - .getS("Il doit y avoir au moins un graphe s\xE9lectionn\xE9.")).activate(); - return; - } - - // -- on applique l'action \xE0 chaque widget graphe --// - for (Iterator<EGGraphe> it = listeGraphes.iterator(); it.hasNext();) { - EGGraphe graphe = it.next(); - - // -- execution de l action pour le graphe selectionne --// - (new TrPostCourbeAddPointsAction(impl_, graphe, calque)).actionPerformed(new ActionEvent(calque, 0, - "ADDPOINTWIDGET")); - - } - scene_.refresh(); - - } - -} Copied: branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostActionAddPointFromWidgetCalque.java (from rev 3884, branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostActionAddPointFromWidgetCalque2.java) =================================================================== --- branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostActionAddPointFromWidgetCalque.java (rev 0) +++ branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostActionAddPointFromWidgetCalque.java 2008-09-06 17:18:19 UTC (rev 3894) @@ -0,0 +1,469 @@ +package org.fudaa.fudaa.tr.post; + +import java.awt.BorderLayout; +import java.awt.Color; +import java.awt.Component; +import java.awt.FlowLayout; +import java.awt.GridLayout; +import java.awt.event.ActionEvent; +import java.awt.image.BufferedImage; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.Iterator; +import java.util.Map; +import java.util.Set; + +import javax.swing.BorderFactory; +import javax.swing.Box; +import javax.swing.DefaultListModel; +import javax.swing.Icon; +import javax.swing.ImageIcon; +import javax.swing.JButton; +import javax.swing.JComboBox; +import javax.swing.JDialog; +import javax.swing.JLabel; +import javax.swing.JList; +import javax.swing.JPanel; +import javax.swing.ListCellRenderer; +import javax.swing.UIManager; + +import org.fudaa.ctulu.CtuluCommandContainer; +import org.fudaa.ctulu.CtuluResource; +import org.fudaa.ctulu.CtuluTaskDelegate; +import org.fudaa.ctulu.image.CtuluLibImage; +import org.fudaa.ebli.calque.ZCalqueAffichageDonneesInterface; +import org.fudaa.ebli.courbe.EGGraphe; +import org.fudaa.ebli.courbe.EGGrapheModel; +import org.fudaa.ebli.ressource.EbliResource; +import org.fudaa.ebli.visuallibrary.EbliNode; +import org.fudaa.ebli.visuallibrary.EbliScene; +import org.fudaa.ebli.visuallibrary.actions.EbliWidgetActionSimple; +import org.fudaa.ebli.visuallibrary.calque.EbliWidgetCreatorVueCalque; +import org.fudaa.ebli.visuallibrary.graphe.EbliWidgetCreatorGraphe; +import org.fudaa.fudaa.commun.FudaaLib; +import org.fudaa.fudaa.meshviewer.profile.MvProfileBuilderFromTree; +import org.fudaa.fudaa.meshviewer.profile.MvProfileCoteTester; +import org.fudaa.fudaa.meshviewer.profile.MvProfileTreeModel; +import org.fudaa.fudaa.tr.common.TrResource; + +import com.memoire.bu.BuDialogError; +import com.memoire.fu.FuLog; + +/** + * Action qui: - recupere la liste des calques potentiels - recupere la liste + * des graphes potentiels - propose a l utilisateur une interface combo pour + * choisir le calque cible - propose a l utilisateur une interface jlist pour + * choisir le(s) graphe(s) cible(s) realise la moulinette + * @author Adrien Hadoux + * + */ +public abstract class TrPostActionAddPointFromWidgetCalque extends EbliWidgetActionSimple { + + /** + * Action specialisee pour les courbes temporelles. NE propose que les widget + * graphes qui respectent les donnees temporelles + * + * @author Adrien Hadoux + * + */ + public static class Temporel extends TrPostActionAddPointFromWidgetCalque{ + + public Temporel(EbliScene _scene, TrPostCommonImplementation _impl) { + super(_scene, _impl); + } + + @Override + public void setTitleForFrame() { + frame_.setTitle(TrResource.TR.getString("Ajout des points du calques dans les \xE9volutions temporels")); + } + + @Override + public boolean isCorrectGraph(EGGrapheModel _model) { + // -- ATTENTION ICI ON AJOUTE JUSTE POUR LES COUURBE TEMPORELLE --// + return (_model instanceof TrPostCourbeTreeModel); + + } + + @Override + public void executeAction(TrPostCommonImplementation _impl, EGGraphe _graphe, TrPostVisuPanel _calque) { + (new TrPostCourbeAddPointsAction(impl_, _graphe, _calque)).actionPerformed(new ActionEvent(_calque, 0, + "ADDPOINTWIDGET")); + } + + @Override + protected void createNewGraphe(TrPostVisuPanel _calqueChoisi) { + + // -- creation auto d un nouveau graphe widget avec courbe temporelle + _calqueChoisi.addEvolutionFor(); + } + + @Override + public void setToolTip() { + this + .setDefaultToolTip(TrResource + .getS("Ajoute aux graphes selectionn\xE9s les points s\xE9lectionn\xE9es du calque")); + } + + } + + + + + /** + * Action specialisee pour les courbes spatiales. NE propose que les widget + * graphes qui respectent les donnees patiales + * + * @author Adrien Hadoux + * + */ + public static class Spatial extends TrPostActionAddPointFromWidgetCalque { + + public Spatial(EbliScene _scene, TrPostCommonImplementation _impl) { + super(_scene, _impl); + } + + @Override + public void setTitleForFrame() { + frame_.setTitle(TrResource.TR.getString("Ajout des points du calques dans les courbes spatiales")); + } + + @Override + public boolean isCorrectGraph(EGGrapheModel _model) { + // -- ATTENTION ICI ON AJOUTE JUSTE POUR LES COUURBE TEMPORELLE --// + return (_model instanceof MvProfileTreeModel); + + } + + @Override + public void executeAction(TrPostCommonImplementation _impl, EGGraphe _graphe, TrPostVisuPanel _calque) { + + // -- utilisation de l action qui permet d ajouter un profil spatial selectionn\xE9 dans le calque au + // graphe + final CtuluTaskDelegate task = impl_.createTask(FudaaLib.getS("Construction des courbes")); + new MvProfileBuilderFromTree( _calque.getProjet(), impl_, ((ZCalqueAffichageDonneesInterface) _calque.getArbreCalqueModel().getSelectedCalque()).getSelectedLine(), _calque, new MvProfileCoteTester()). + actAddGroupForExistingModel(task.getStateReceiver(), (MvProfileTreeModel) _graphe.getModel(), + _calque.srcCont_.src_); + + } + + @Override + protected void createNewGraphe(TrPostVisuPanel _calqueChoisi) { + + + // creation automatique d un graphe avec les spatiales poru le calque + // vhoisi + + new MvProfileBuilderFromTree( _calqueChoisi.getProjet(), impl_, ((ZCalqueAffichageDonneesInterface) _calqueChoisi.getArbreCalqueModel().getSelectedCalque()).getSelectedLine(), _calqueChoisi, new MvProfileCoteTester()) + .start(); + + } + + String[] formattageDonnees(TrPostProjet _projet) { + + String[] listeSimul = new String[_projet.listeSrc_.size()]; + int cpt = 0; + for (Iterator<TrPostSource> it = _projet.listeSrc_.iterator(); it.hasNext();) { + + TrPostSource src = it.next(); + + // --ajout dans la liste des titres --// + listeSimul[cpt++] = _projet.formatInfoSource(src); + } + + return listeSimul; + } + + @Override + public void setToolTip() { + this + .setDefaultToolTip(TrResource + .getS("Ajoute aux graphes selectionn\xE9s les courbes s\xE9lectionn\xE9es du calque ")); + } + + } + + + + + + + + + CtuluCommandContainer cmd_; + TrPostCommonImplementation impl_; + + JComboBox boxCalques_; + JList jlisteGraphesChoix; + JList jlisteGraphesSelections; + + JButton validation, select, unselect, creationNewGraphe, quitter; + JDialog frame_; + DefaultListModel modelGraphesPossibles; + DefaultListModel modelGraphesChoisis; + ArrayList<TrPostVisuPanel> listeCalquesPossibles; + ArrayList<EGGraphe> listeGraphesPossibles; + ArrayList<EGGraphe> listeGraphesChoisis; + ArrayList<JLabel> listeObjetsCalques; + + + + public TrPostActionAddPointFromWidgetCalque(EbliScene _scene, TrPostCommonImplementation _impl) { + super(_scene, TrResource.getS("Ajout des points du calque"), CtuluResource.CTULU.getIcon("cible"), "ADDPOINTWIDGET"); + + cmd_ = _scene.getCmdMng(); + impl_ = _impl; + putValue(NAME, "Arri\xE8re plan"); + + + setToolTip(); + + + } + + public abstract void setToolTip(); + + public void actionPerformed(ActionEvent e) { + + + if (e.getSource() == select) { + if (jlisteGraphesChoix.getSelectedIndex() != -1) { + int indice = jlisteGraphesChoix.getSelectedIndex(); + EGGraphe graphe = listeGraphesPossibles.get(indice); + JLabel title = (JLabel) modelGraphesPossibles.getElementAt(indice); + modelGraphesChoisis.addElement(title); + listeGraphesChoisis.add(graphe); + modelGraphesPossibles.removeElementAt(indice); + listeGraphesPossibles.remove(indice); + } + } else if (e.getSource() == unselect) { + if (jlisteGraphesSelections.getSelectedIndex() != -1) { + int indice = jlisteGraphesSelections.getSelectedIndex(); + EGGraphe graphe = listeGraphesChoisis.get(indice); + JLabel title = (JLabel) modelGraphesChoisis.getElementAt(indice); + modelGraphesPossibles.addElement(title); + listeGraphesPossibles.add(graphe); + modelGraphesChoisis.removeElementAt(indice); + listeGraphesChoisis.remove(indice); + } + }else if (e.getSource() == validation) { + // validation de l action + if (listeGraphesChoisis.size() == 0) { + new BuDialogError(impl_.getApp(), impl_.getInformationsSoftware(), TrResource + .getS("Il doit y avoir au moins un graphe s\xE9lectionn\xE9.")).activate(); + return; + } + + + TrPostVisuPanel calqueChoisi = (TrPostVisuPanel) listeCalquesPossibles.get(boxCalques_.getSelectedIndex()); + + // -- on applique l'action \xE0 chaque widget graphe --// + for (int i = 0; i < listeGraphesChoisis.size(); i++) { + EGGraphe graphe = listeGraphesChoisis.get(i); + + // -- execution de l action pour le graphe selectionne --// + executeAction(impl_, graphe, calqueChoisi); + + + } + scene_.refresh(); + + + + } else if (e.getSource() == quitter) { + frame_.dispose(); + + } else if (e.getSource() == creationNewGraphe) { + + // -- creation d un nouveau graphe --// + TrPostVisuPanel calqueChoisi = (TrPostVisuPanel) listeCalquesPossibles.get(boxCalques_.getSelectedIndex()); + + // -- methode appelee qui doit creer un graphe avec la selection --// + createNewGraphe(calqueChoisi); + + + // -- on doit remettre a jour les infos --// + // frame_.dispose(); + // rechercheGrapheAndCalque(); + + }else + { + rechercheGrapheAndCalque(); + } + + } + + + protected abstract void createNewGraphe(TrPostVisuPanel _calqueChoisi); + + + + public abstract void executeAction(TrPostCommonImplementation _impl, EGGraphe _graphe, TrPostVisuPanel _calque); + + private void rechercheGrapheAndCalque() { + Map params = new HashMap(); + CtuluLibImage.setCompatibleImageAsked(params); + // -- recuperation de la liste des nodes de la scene --// + Set<EbliNode> listeNode = (Set<EbliNode>) scene_.getObjects(); + System.err.println("Il y a dans la scenne: " + listeNode.size()); + modelGraphesPossibles = new DefaultListModel(); + modelGraphesChoisis = new DefaultListModel(); + listeObjetsCalques = new ArrayList<JLabel>(); + listeCalquesPossibles = new ArrayList<TrPostVisuPanel>(); + listeGraphesPossibles = new ArrayList<EGGraphe>(); + listeGraphesChoisis = new ArrayList<EGGraphe>(); + // -- tentative de recuperation du calque --// + for (Iterator<EbliNode> it = listeNode.iterator(); it.hasNext();) { + EbliNode currentNode = it.next(); + if (currentNode.getCreator() instanceof EbliWidgetCreatorVueCalque) { + EbliWidgetCreatorVueCalque new_name = (EbliWidgetCreatorVueCalque) currentNode.getCreator(); + listeCalquesPossibles.add((TrPostVisuPanel) new_name.getCalque()); + + JLabel label = new JLabel(); + BufferedImage image = new_name.getCalque().produceImage(50, 50, params); + Icon icone = new ImageIcon(image); + label.setIcon(icone); + label.setText(currentNode.getTitle()); + listeObjetsCalques.add(label); + + } else if (currentNode.getCreator() instanceof EbliWidgetCreatorGraphe) { + EbliWidgetCreatorGraphe new_name = (EbliWidgetCreatorGraphe) currentNode.getCreator(); + + FuLog.warning("MODEL GRAPHE je suis instance de " + new_name.getGraphe().getModel()); + if (isCorrectGraph(new_name.getGraphe().getModel())) { + + JLabel label = new JLabel(); + BufferedImage image = new_name.getGraphe().produceImage(50, 50, params); + Icon icone = new ImageIcon(image); + + label.setIcon(icone); + label.setText(currentNode.getTitle()); + modelGraphesPossibles.addElement(label); + listeGraphesPossibles.add(new_name.getGraphe()); + } + } + } + if (listeCalquesPossibles.size() == 0) { + new BuDialogError(impl_.getApp(), impl_.getInformationsSoftware(), TrResource + .getS("Il n'y a pas de calques disponibles.")).activate(); + return; + }/* + * else if (modelGraphesPossibles.size() == 0) { new + * BuDialogError(impl_.getApp(), impl_.getInformationsSoftware(), + * TrResource .getS("Il n'y a pas de graphes disponibles.")).activate(); + * return; } + */ + + // -- affichage de al dialog --// + constructDialog().setVisible(true); + } + + public abstract boolean isCorrectGraph(EGGrapheModel _model); + + public class GrapheCellRenderer extends JLabel implements ListCellRenderer { + private final Color HIGHLIGHT_COLOR = UIManager.getColor("Tree.selectionBackground"); + + public GrapheCellRenderer() { + setOpaque(true); + setIconTextGap(12); + } + + public Component getListCellRendererComponent(JList list, Object value, + int index, boolean isSelected, boolean cellHasFocus) { + JLabel entry = (JLabel) value; + setText(entry.getText()); + setIcon(entry.getIcon()); + if (isSelected) { + setBackground(HIGHLIGHT_COLOR); + setForeground(Color.white); + } else { + setBackground(Color.white); + setForeground(Color.black); + } + return this; + } + } + + /** + * construit l interface + * + * @return + */ +public JDialog constructDialog() { + + + boxCalques_ = new JComboBox(); + for (Iterator<JLabel> it = listeObjetsCalques.iterator(); it.hasNext();) { + boxCalques_.addItem(it.next()); + } + boxCalques_.setRenderer(new GrapheCellRenderer()); + boxCalques_.setBorder(BorderFactory.createTitledBorder(TrResource.TR.getString("Liste des calques de la scene"))); + jlisteGraphesChoix = new JList(modelGraphesPossibles); + jlisteGraphesChoix.setCellRenderer(new GrapheCellRenderer()); + + jlisteGraphesChoix.setSize(250, 350); + jlisteGraphesChoix.setBorder(BorderFactory.createTitledBorder(TrResource.TR + .getString("Graphes possibles"))); + jlisteGraphesSelections = new JList(modelGraphesChoisis); + jlisteGraphesSelections.setSize(250, 350); + jlisteGraphesSelections.setBorder(BorderFactory.createTitledBorder(TrResource.TR + .getString("Graphes choisis"))); + jlisteGraphesSelections.setCellRenderer(new GrapheCellRenderer()); + + validation = new JButton(TrResource.TR.getString("Valider"), EbliResource.EBLI.getIcon("crystal_valider")); + validation.addActionListener(this); + creationNewGraphe = new JButton(TrResource.TR.getString("Cr\xE9er un nouveau graphe"), EbliResource.EBLI + .getIcon("crystal_valider")); + creationNewGraphe.addActionListener(this); + select = new JButton(TrResource.TR.getString("Ajouter"), EbliResource.EBLI + .getIcon("crystal22_avancervite")); + unselect = new JButton(TrResource.TR.getString("Enlever"), EbliResource.EBLI + .getIcon("crystal22_reculervite")); + select.addActionListener(this); + unselect.addActionListener(this); + quitter = new JButton(TrResource.TR.getString("Quitter"), EbliResource.EBLI.getIcon("crystal_detruire")); + quitter.addActionListener(this); + //Box box = Box.createHorizontalBox(); + JPanel box = new JPanel(new GridLayout(1, 3)); + box.setSize(550, 350); + box.add(jlisteGraphesChoix); + Box boxButton = Box.createVerticalBox(); + JPanel panSelect = new JPanel(new FlowLayout(FlowLayout.CENTER)); + panSelect.add(select); + boxButton.add(panSelect); + boxButton.add(Box.createGlue()); + panSelect = new JPanel(new FlowLayout(FlowLayout.CENTER)); + panSelect.add(unselect); + boxButton.add(panSelect); + box.add(boxButton); + box.add(jlisteGraphesSelections); + + JPanel content = new JPanel(new BorderLayout()); + + content.add(box, BorderLayout.CENTER); + content.add(boxCalques_, BorderLayout.NORTH); + + + JPanel panelControle = new JPanel(new FlowLayout(FlowLayout.CENTER)); + panelControle.add(quitter); + + + panelControle.add(creationNewGraphe); + panelControle.add(validation); + + content.add(panelControle, BorderLayout.SOUTH); + + frame_ = new JDialog(); + + frame_.setContentPane(content); + frame_.setModal(true); + setTitleForFrame(); + + frame_.setIconImage(null); + frame_.setSize(550, 400); + return frame_; +} + + public abstract void setTitleForFrame(); + + +} Property changes on: branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostActionAddPointFromWidgetCalque.java ___________________________________________________________________ Added: svn:mergeinfo + Deleted: branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostActionAddPointFromWidgetCalque2.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostActionAddPointFromWidgetCalque2.java 2008-09-05 15:01:51 UTC (rev 3893) +++ branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostActionAddPointFromWidgetCalque2.java 2008-09-06 17:18:19 UTC (rev 3894) @@ -1,311 +0,0 @@ -package org.fudaa.fudaa.tr.post; - -import java.awt.BorderLayout; -import java.awt.Color; -import java.awt.Component; -import java.awt.FlowLayout; -import java.awt.GridLayout; -import java.awt.event.ActionEvent; -import java.awt.image.BufferedImage; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.Iterator; -import java.util.Map; -import java.util.Set; - -import javax.swing.BorderFactory; -import javax.swing.Box; -import javax.swing.DefaultListModel; -import javax.swing.Icon; -import javax.swing.ImageIcon; -import javax.swing.JButton; -import javax.swing.JComboBox; -import javax.swing.JDialog; -import javax.swing.JLabel; -import javax.swing.JList; -import javax.swing.JPanel; -import javax.swing.ListCellRenderer; -import javax.swing.UIManager; - -import org.fudaa.ctulu.CtuluCommandContainer; -import org.fudaa.ctulu.CtuluResource; -import org.fudaa.ctulu.image.CtuluLibImage; -import org.fudaa.ebli.courbe.EGGraphe; -import org.fudaa.ebli.ressource.EbliResource; -import org.fudaa.ebli.visuallibrary.EbliNode; -import org.fudaa.ebli.visuallibrary.EbliScene; -import org.fudaa.ebli.visuallibrary.actions.EbliWidgetActionSimple; -import org.fudaa.ebli.visuallibrary.calque.EbliWidgetCreatorVueCalque; -import org.fudaa.ebli.visuallibrary.graphe.EbliWidgetCreatorGraphe; -import org.fudaa.fudaa.tr.common.TrResource; - -import com.memoire.bu.BuDialogError; - -/** - * Action qui: - recupere la liste des calques potentiels - recupere la liste - * des graphes potentiels - propose a l utilisateur une interface combo pour - * choisir le calque cible - propose a l utilisateur une interface jlist pour - * choisir le(s) graphe(s) cible(s) realise la moulinette - * @author Adrien Hadoux - * - */ -public class TrPostActionAddPointFromWidgetCalque2 extends EbliWidgetActionSimple { - - - CtuluCommandContainer cmd_; - TrPostCommonImplementation impl_; - - JComboBox boxCalques_; - JList jlisteGraphesChoix; - JList jlisteGraphesSelections; - - JButton validation, select, unselect, creationNewGraphe, quitter; - JDialog frame_; - DefaultListModel modelGraphesPossibles; - DefaultListModel modelGraphesChoisis; - ArrayList<TrPostVisuPanel> listeCalquesPossibles; - ArrayList<EGGraphe> listeGraphesPossibles; - ArrayList<EGGraphe> listeGraphesChoisis; - ArrayList<JLabel> listeObjetsCalques; - - - - public TrPostActionAddPointFromWidgetCalque2(EbliScene _scene, TrPostCommonImplementation _impl) { - super(_scene, TrResource.getS("Ajout des points du calque"), CtuluResource.CTULU.getIcon("cible"), "ADDPOINTWIDGET"); - - cmd_ = _scene.getCmdMng(); - impl_ = _impl; - putValue(NAME, "Arri\xE8re plan"); - this - .setDefaultToolTip(TrResource - .getS("S\xE9lectionnez simultan\xE9ment le calque qui contient les points ainsi que les graphes qui contiendront les courbes ")); - - } - - - - public void actionPerformed(ActionEvent e) { - - - if (e.getSource() == select) { - if (jlisteGraphesChoix.getSelectedIndex() != -1) { - EGGraphe graphe = listeGraphesPossibles.get(jlisteGraphesChoix.getSelectedIndex()); - JLabel title = (JLabel) modelGraphesPossibles.getElementAt(jlisteGraphesChoix.getSelectedIndex()); - modelGraphesChoisis.addElement(title); - listeGraphesChoisis.add(graphe); - modelGraphesPossibles.removeElementAt(jlisteGraphesChoix.getSelectedIndex()); - listeGraphesPossibles.remove(jlisteGraphesChoix.getSelectedIndex()); - } - } else if (e.getSource() == unselect) { - if (jlisteGraphesSelections.getSelectedIndex() != -1) { - EGGraphe graphe = listeGraphesChoisis.get(jlisteGraphesSelections.getSelectedIndex()); - JLabel title = (JLabel) modelGraphesChoisis.getElementAt(jlisteGraphesSelections.getSelectedIndex()); - modelGraphesPossibles.addElement(title); - listeGraphesPossibles.add(graphe); - modelGraphesChoisis.removeElementAt(jlisteGraphesSelections.getSelectedIndex()); - listeGraphesChoisis.remove(jlisteGraphesSelections.getSelectedIndex()); - } - }else if (e.getSource() == validation) { - // validation de l action - if (listeGraphesChoisis.size() == 0) { - new BuDialogError(impl_.getApp(), impl_.getInformationsSoftware(), TrResource - .getS("Il doit y avoir au moins un graphe s\xE9lectionn\xE9.")).activate(); - return; - } - - - TrPostVisuPanel calqueChoisi = (TrPostVisuPanel) listeCalquesPossibles.get(boxCalques_.getSelectedIndex()); - - // -- on applique l'action \xE0 chaque widget graphe --// - for (int i = 0; i < listeGraphesChoisis.size(); i++) { - EGGraphe graphe = listeGraphesChoisis.get(i); - - // -- execution de l action pour le graphe selectionne --// - (new TrPostCourbeAddPointsAction(impl_, graphe, calqueChoisi)).actionPerformed(new ActionEvent(calqueChoisi, 0, - "ADDPOINTWIDGET")); - - } - scene_.refresh(); - - - - } else if (e.getSource() == quitter) { - frame_.dispose(); - - } else if (e.getSource() == creationNewGraphe) { - - // -- creation d un nouveau graphe --// - TrPostVisuPanel calqueChoisi = (TrPostVisuPanel) listeCalquesPossibles.get(boxCalques_.getSelectedIndex()); - - // -- methode appelee qui doit creer un graphe avec la selection --// - calqueChoisi.addEvolutionFor(); - - // -- on doit remettre a jour les infos --// - // frame_.dispose(); - // rechercheGrapheAndCalque(); - - }else - { - rechercheGrapheAndCalque(); - } - - } - - private void rechercheGrapheAndCalque() { - Map params = new HashMap(); - CtuluLibImage.setCompatibleImageAsked(params); - // -- recuperation de la liste des nodes de la scene --// - Set<EbliNode> listeNode = (Set<EbliNode>) scene_.getObjects(); - System.err.println("Il y a dans la scenne: " + listeNode.size()); - modelGraphesPossibles = new DefaultListModel(); - modelGraphesChoisis = new DefaultListModel(); - listeObjetsCalques = new ArrayList<JLabel>(); - listeCalquesPossibles = new ArrayList<TrPostVisuPanel>(); - listeGraphesPossibles = new ArrayList<EGGraphe>(); - listeGraphesChoisis = new ArrayList<EGGraphe>(); - // -- tentative de recuperation du calque --// - for (Iterator<EbliNode> it = listeNode.iterator(); it.hasNext();) { - EbliNode currentNode = it.next(); - if (currentNode.getCreator() instanceof EbliWidgetCreatorVueCalque) { - EbliWidgetCreatorVueCalque new_name = (EbliWidgetCreatorVueCalque) currentNode.getCreator(); - listeCalquesPossibles.add((TrPostVisuPanel) new_name.getCalque()); - - JLabel label = new JLabel(); - BufferedImage image = new_name.getCalque().produceImage(50, 50, params); - Icon icone = new ImageIcon(image); - label.setIcon(icone); - label.setText(currentNode.getTitle()); - listeObjetsCalques.add(label); - - } else if (currentNode.getCreator() instanceof EbliWidgetCreatorGraphe) { - EbliWidgetCreatorGraphe new_name = (EbliWidgetCreatorGraphe) currentNode.getCreator(); - - JLabel label = new JLabel(); - BufferedImage image = new_name.getGraphe().produceImage(50, 50, params); - Icon icone = new ImageIcon(image); - - label.setIcon(icone); - label.setText(currentNode.getTitle()); - modelGraphesPossibles.addElement(label); - listeGraphesPossibles.add(new_name.getGraphe()); - } - } - if (listeCalquesPossibles.size() == 0) { - new BuDialogError(impl_.getApp(), impl_.getInformationsSoftware(), TrResource - .getS("Il n'y a pas de calques disponibles.")).activate(); - return; - }/* - * else if (modelGraphesPossibles.size() == 0) { new - * BuDialogError(impl_.getApp(), impl_.getInformationsSoftware(), - * TrResource .getS("Il n'y a pas de graphes disponibles.")).activate(); - * return; } - */ - - // -- affichage de al dialog --// - constructDialog().setVisible(true); - } - - public class GrapheCellRenderer extends JLabel implements ListCellRenderer { - private final Color HIGHLIGHT_COLOR = UIManager.getColor("Tree.selectionBackground"); - - public GrapheCellRenderer() { - setOpaque(true); - setIconTextGap(12); - } - - public Component getListCellRendererComponent(JList list, Object value, - int index, boolean isSelected, boolean cellHasFocus) { - JLabel entry = (JLabel) value; - setText(entry.getText()); - setIcon(entry.getIcon()); - if (isSelected) { - setBackground(HIGHLIGHT_COLOR); - setForeground(Color.white); - } else { - setBackground(Color.white); - setForeground(Color.black); - } - return this; - } - } - - /** - * construit l interface - * - * @return - */ -public JDialog constructDialog() { - - - boxCalques_ = new JComboBox(); - for (Iterator<JLabel> it = listeObjetsCalques.iterator(); it.hasNext();) { - boxCalques_.addItem(it.next()); - } - boxCalques_.setRenderer(new GrapheCellRenderer()); - boxCalques_.setBorder(BorderFactory.createTitledBorder(TrResource.TR.getString("Liste des calques de la scene"))); - jlisteGraphesChoix = new JList(modelGraphesPossibles); - jlisteGraphesChoix.setCellRenderer(new GrapheCellRenderer()); - - jlisteGraphesChoix.setSize(250, 350); - jlisteGraphesChoix.setBorder(BorderFactory.createTitledBorder(TrResource.TR - .getString("Graphes possibles"))); - jlisteGraphesSelections = new JList(modelGraphesChoisis); - jlisteGraphesSelections.setSize(250, 350); - jlisteGraphesSelections.setBorder(BorderFactory.createTitledBorder(TrResource.TR - .getString("Graphes choisis"))); - jlisteGraphesSelections.setCellRenderer(new GrapheCellRenderer()); - - validation = new JButton(TrResource.TR.getString("Valider"), EbliResource.EBLI.getIcon("crystal_valider")); - validation.addActionListener(this); - creationNewGraphe = new JButton(TrResource.TR.getString("Cr\xE9er un nouveau graphe"), EbliResource.EBLI - .getIcon("crystal_valider")); - creationNewGraphe.addActionListener(this); - select = new JButton(TrResource.TR.getString("Ajouter"), EbliResource.EBLI - .getIcon("crystal22_avancervite")); - unselect = new JButton(TrResource.TR.getString("Enlever"), EbliResource.EBLI - .getIcon("crystal22_reculervite")); - select.addActionListener(this); - unselect.addActionListener(this); - quitter = new JButton(TrResource.TR.getString("Quitter"), EbliResource.EBLI.getIcon("crystal_detruire")); - quitter.addActionListener(this); - //Box box = Box.createHorizontalBox(); - JPanel box = new JPanel(new GridLayout(1, 3)); - box.setSize(550, 350); - box.add(jlisteGraphesChoix); - Box boxButton = Box.createVerticalBox(); - JPanel panSelect = new JPanel(new FlowLayout(FlowLayout.CENTER)); - panSelect.add(select); - boxButton.add(panSelect); - boxButton.add(Box.createGlue()); - panSelect = new JPanel(new FlowLayout(FlowLayout.CENTER)); - panSelect.add(unselect); - boxButton.add(panSelect); - box.add(boxButton); - box.add(jlisteGraphesSelections); - - JPanel content = new JPanel(new BorderLayout()); - - content.add(box, BorderLayout.CENTER); - content.add(boxCalques_, BorderLayout.NORTH); - - - JPanel panelControle = new JPanel(new FlowLayout(FlowLayout.CENTER)); - panelControle.add(quitter); - - - panelControle.add(creationNewGraphe); - panelControle.add(validation); - - content.add(panelControle, BorderLayout.SOUTH); - - frame_ = new JDialog(); - - frame_.setContentPane(content); - frame_.setModal(true); - frame_.setTitle(TrResource.TR.getString("Choix des \xE9l\xE9ments")); - frame_.setIconImage(null); - frame_.setSize(550, 400); - return frame_; -} - -} Copied: branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostActionAddPointFromWidgetCalque2.java (from rev 3883, branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostActionAddPointFromWidgetCalque.java) =================================================================== --- branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostActionAddPointFromWidgetCalque2.java (rev 0) +++ branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostActionAddPointFromWidgetCalque2.java 2008-09-06 17:18:19 UTC (rev 3894) @@ -0,0 +1,112 @@ +package org.fudaa.fudaa.tr.post; + +import java.awt.event.ActionEvent; +import java.util.ArrayList; +import java.util.Iterator; +import java.util.Set; + +import org.fudaa.ctulu.CtuluCommandContainer; +import org.fudaa.ctulu.CtuluResource; +import org.fudaa.ebli.courbe.EGGraphe; +import org.fudaa.ebli.visuallibrary.EbliNode; +import org.fudaa.ebli.visuallibrary.EbliScene; +import org.fudaa.ebli.visuallibrary.actions.EbliWidgetActionSimple; +import org.fudaa.ebli.visuallibrary.calque.EbliWidgetCreatorVueCalque; +import org.fudaa.ebli.visuallibrary.graphe.EbliWidgetCreatorGraphe; +import org.fudaa.fudaa.tr.common.TrResource; + +import com.memoire.bu.BuDialogError; + +/** + * Action qui recupere les widgets selectionnes calque et graphe. Recupere + * l'unique calque selectionn\xE9s et l'ensem + * + * @author genesis + * + */ +public class TrPostActionAddPointFromWidgetCalque2 extends EbliWidgetActionSimple { + + + + CtuluCommandContainer cmd_; + TrPostCommonImplementation impl_; + + + + public TrPostActionAddPointFromWidgetCalque2(EbliScene _scene, TrPostCommonImplementation _impl) { + super(_scene, TrResource.getS("Ajout des points du calque"), CtuluResource.CTULU.getIcon("cible"), + "ADDPOINTWIDGET"); + + cmd_ = _scene.getCmdMng(); + impl_ = _impl; + putValue(NAME, "Arri\xE8re plan"); + this + .setDefaultToolTip(TrResource + .getS("S\xE9lectionnez simultan\xE9ment le calque qui contient les points ainsi que les graphes qui contiendront les courbes ")); + + } + + public void actionPerformed(ActionEvent e) { + + // -- recuperation de la liste des nodes de la scene --// + Set<EbliNode> listeNode = (Set<EbliNode>) scene_.getSelectedObjects(); + + boolean isCalqueUnique = true; + boolean isGraphePresent = false; + TrPostVisuPanel calque = null; + ArrayList<EGGraphe> listeGraphes = new ArrayList<EGGraphe>(); + + //-- tentative de recuperation du calque --// + for (Iterator<EbliNode> it = listeNode.iterator(); isCalqueUnique && it.hasNext();) { + + EbliNode currentNode = it.next(); + + if(currentNode.getCreator() instanceof EbliWidgetCreatorVueCalque){ + if (calque == null) { + EbliWidgetCreatorVueCalque creatorCalque = (EbliWidgetCreatorVueCalque) currentNode.getCreator(); + calque = (TrPostVisuPanel) creatorCalque.getCalque(); + } else { + // -- error plus d 'un calque --// + isCalqueUnique = false; + } + } else if (currentNode.getCreator() instanceof EbliWidgetCreatorGraphe) { + EbliWidgetCreatorGraphe creatorGraphe = (EbliWidgetCreatorGraphe) currentNode.getCreator(); + listeGraphes.add(creatorGraphe.getGraphe()); + isGraphePresent = true; + } + + + } + + // -- on v\xE9rifie que les booleens n'ont pas d\xE9tect\xE9s d'erreurs --// + if (calque == null) { + new BuDialogError(impl_.getApp(), impl_.getInformationsSoftware(), TrResource + .getS("Il doit y avoir un calque s\xE9lectionn\xE9.")) + .activate(); + return; + } else if (!isCalqueUnique) { + new BuDialogError(impl_.getApp(), impl_.getInformationsSoftware(), + TrResource + .getS("Il doit y avoir un et un seul calque s\xE9lectionn\xE9.")).activate(); + return; + } else if (!isGraphePresent) { + new BuDialogError(impl_.getApp(), impl_.getInformationsSoftware(), + TrResource + .getS("Il doit y avoir au moins un graphe s\xE9lectionn\xE9.")).activate(); + return; + } + + // -- on applique l'action \xE0 chaque widget graphe --// + for (Iterator<EGGraphe> it = listeGraphes.iterator(); it.hasNext();) { + EGGraphe graphe = it.next(); + + // -- execution de l action pour le graphe selectionne --// + (new TrPostCourbeAddPointsAction(impl_, graphe, calque)).actionPerformed(new ActionEvent(calque, 0, + "ADDPOINTWIDGET")); + + } + scene_.refresh(); + + } + +} Property changes on: branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostActionAddPointFromWidgetCalque2.java ___________________________________________________________________ Added: svn:mergeinfo + Added: branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostActionChangeSceneForWidget.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostActionChangeSceneForWidget.java (rev 0) +++ branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostActionChangeSceneForWidget.ja... [truncated message content] |
From: <bma...@us...> - 2008-09-05 15:01:42
|
Revision: 3893 http://fudaa.svn.sourceforge.net/fudaa/?rev=3893&view=rev Author: bmarchan Date: 2008-09-05 15:01:51 +0000 (Fri, 05 Sep 2008) Log Message: ----------- Suppresion methode inutile. Modified Paths: -------------- branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/action/SceneZoomOnSelectedAction.java Modified: branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/action/SceneZoomOnSelectedAction.java =================================================================== --- branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/action/SceneZoomOnSelectedAction.java 2008-09-05 14:30:52 UTC (rev 3892) +++ branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/action/SceneZoomOnSelectedAction.java 2008-09-05 15:01:51 UTC (rev 3893) @@ -57,9 +57,5 @@ public void selectionChanged(final ZSelectionEvent _evt) { updateEnableState(); } - - public void valueChanged(final TreeSelectionEvent _e) { - updateEnableState(); - } } \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <bma...@us...> - 2008-09-05 14:30:46
|
Revision: 3892 http://fudaa.svn.sourceforge.net/fudaa/?rev=3892&view=rev Author: bmarchan Date: 2008-09-05 14:30:52 +0000 (Fri, 05 Sep 2008) Log Message: ----------- Merge from FudaaModeleur_TC1 3861:3891 Modified Paths: -------------- branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/action/CalqueGISEditionAction.java branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/edition/BPaletteEdition.java branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/edition/ZEditorDefault.java branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/edition/ZEditorLigneBriseePanel.java branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/edition/ZEditorPanelInterface.java branches/FudaaModeleur_TC1Bis/fudaa_devel/fudaa/src/org/fudaa/fudaa/tr/data/TrGisProjectEditor.java branches/FudaaModeleur_TC1Bis/fudaa_devel/fudaa/src/org/fudaa/fudaa/tr/data/TrSiPlanEditorPanel.java Property Changed: ---------------- branches/FudaaModeleur_TC1Bis/ branches/FudaaModeleur_TC1Bis/fudaa_devel/aide/src/bu/ branches/FudaaModeleur_TC1Bis/fudaa_devel/ctulu/src/org/fudaa/ctulu/gis/GISVisitorGeometryCollector.java branches/FudaaModeleur_TC1Bis/fudaa_devel/ctulu/src/org/fudaa/ctulu/interpolation/InterpolationTargetGISAdapter.java branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/CalqueGISTreeModel.java branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/CalqueGeometryVisitor.java Property changes on: branches/FudaaModeleur_TC1Bis ___________________________________________________________________ Modified: svn:mergeinfo - /branches/Br_FudaaModeleur_TF:3445-3850 + /branches/Br_FudaaModeleur_TF:3445-3850 /branches/FudaaModeleur_TC1:3861-3891 Property changes on: branches/FudaaModeleur_TC1Bis/fudaa_devel/aide/src/bu ___________________________________________________________________ Modified: svn:mergeinfo - + /branches/FudaaModeleur_TC1/fudaa_devel/aide/src/bu:3861-3891 Property changes on: branches/FudaaModeleur_TC1Bis/fudaa_devel/ctulu/src/org/fudaa/ctulu/gis/GISVisitorGeometryCollector.java ___________________________________________________________________ Modified: svn:mergeinfo - + /branches/FudaaModeleur_TC1/fudaa_devel/ctulu/src/org/fudaa/ctulu/gis/GISVisitorGeometryCollector.java:3861-3891 Property changes on: branches/FudaaModeleur_TC1Bis/fudaa_devel/ctulu/src/org/fudaa/ctulu/interpolation/InterpolationTargetGISAdapter.java ___________________________________________________________________ Modified: svn:mergeinfo - + /branches/FudaaModeleur_TC1/fudaa_devel/ctulu/src/org/fudaa/ctulu/interpolation/InterpolationTargetGISAdapter.java:3861-3891 Property changes on: branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/CalqueGISTreeModel.java ___________________________________________________________________ Modified: svn:mergeinfo - + /branches/FudaaModeleur_TC1/fudaa_devel/ebli/src/org/fudaa/ebli/calque/CalqueGISTreeModel.java:3861-3891 Property changes on: branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/CalqueGeometryVisitor.java ___________________________________________________________________ Modified: svn:mergeinfo - + /branches/FudaaModeleur_TC1/fudaa_devel/ebli/src/org/fudaa/ebli/calque/CalqueGeometryVisitor.java:3861-3891 Modified: branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/action/CalqueGISEditionAction.java =================================================================== --- branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/action/CalqueGISEditionAction.java 2008-09-05 13:44:23 UTC (rev 3891) +++ branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/action/CalqueGISEditionAction.java 2008-09-05 14:30:52 UTC (rev 3892) @@ -49,6 +49,7 @@ editor_=_editor; setScene(_scene); setEnabled(isTargetValid(null)); + setResizable(true); // setEnabled(editor_ != null && editor_.isEditable(target_)); } Modified: branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/edition/BPaletteEdition.java =================================================================== --- branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/edition/BPaletteEdition.java 2008-09-05 13:44:23 UTC (rev 3891) +++ branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/edition/BPaletteEdition.java 2008-09-05 14:30:52 UTC (rev 3892) @@ -83,7 +83,7 @@ public BPaletteEdition() { super(); - setLayout(new BuVerticalLayout(0, true, false)); + setLayout(new BuVerticalLayout(0, true, true)); buildGlobalsActions(this); editorPanel_ = new BuPanel(); editorPanel_.setLayout(new BuBorderLayout()); Modified: branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/edition/ZEditorDefault.java =================================================================== --- branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/edition/ZEditorDefault.java 2008-09-05 13:44:23 UTC (rev 3891) +++ branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/edition/ZEditorDefault.java 2008-09-05 14:30:52 UTC (rev 3892) @@ -278,26 +278,14 @@ protected ZEditorPanelInterface getToolPanel() { ZEditorPanelInterface newPanel = null; if (isCalqueDessin(state_)) { - if (editorPanel_ != null && editorPanel_.getClass().equals(ZEditorLigneBriseePanel.class)) { - // ((ZEditorLigneBriseePanel) editorPanel_).updateEditor(this); - editorPanel_.targetChanged(getTarget()); - return editorPanel_; - } if (palette_ != null) { - newPanel = new ZEditorLigneBriseePanel(this); + // Recr\xE9\xE9, car peut changer en fonction de la forme en cours. + newPanel = new ZEditorLigneBriseePanel(this,getForme()); } } else if (isStateGlobalMove()) { newPanel = new ZCalqueDeplacementPanel(move_, getXYFormatter()); } -// else if ("GLOBAL_ROTATE".equals(state_)) { -// // Uniquement s'il n'a pas encore \xE9t\xE9 cr\xE9\xE9. -// if (pnRotation_==null) { -// pnRotation_=new ZEditorRotationPanel(sceneEditor_,getXYFormatter()); -// getSupport().addSelectionListener(pnRotation_); -// } -// newPanel=pnRotation_; -// } if (newPanel != null) { newPanel.targetChanged(getTarget()); } @@ -399,18 +387,7 @@ * @return le calque de dessin */ protected final ZCalqueEditionInteraction buildCalqueDessin(final String _com) { - int forme = -1; - if ("GLOBAL_ADD_POINT".equals(_com)) { - forme = DeForme.POINT; - } else if ("GLOBAL_ADD_POLYLIGNE".equals(_com)) { - forme = DeForme.LIGNE_BRISEE; - } else if ("GLOBAL_ADD_POLYGONE".equals(_com)) { - forme = DeForme.POLYGONE; - } else if ("GLOBAL_ADD_RECTANGLE".equals(_com)) { - forme = DeForme.RECTANGLE; - } else if ("GLOBAL_ADD_SEMIS".equals(_com)) { - forme = DeForme.MULTI_POINT; - } + int forme=getForme(); if (forme >= 0) { if (dessin_ == null) { dessin_ = new ZCalqueEditionInteraction(this); @@ -424,6 +401,25 @@ return null; } + /** + * @return La forme en construction en fonction de l'action en cours. + */ + protected int getForme() { + int forme = -1; + if ("GLOBAL_ADD_POINT".equals(state_)) { + forme = DeForme.POINT; + } else if ("GLOBAL_ADD_POLYLIGNE".equals(state_)) { + forme = DeForme.LIGNE_BRISEE; + } else if ("GLOBAL_ADD_POLYGONE".equals(state_)) { + forme = DeForme.POLYGONE; + } else if ("GLOBAL_ADD_RECTANGLE".equals(state_)) { + forme = DeForme.RECTANGLE; + } else if ("GLOBAL_ADD_SEMIS".equals(state_)) { + forme = DeForme.MULTI_POINT; + } + return forme; + } + EbliActionSimple actionDelete_; EbliActionSimple actionCancel_; Modified: branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/edition/ZEditorLigneBriseePanel.java =================================================================== --- branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/edition/ZEditorLigneBriseePanel.java 2008-09-05 13:44:23 UTC (rev 3891) +++ branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/edition/ZEditorLigneBriseePanel.java 2008-09-05 14:30:52 UTC (rev 3892) @@ -7,6 +7,7 @@ */ package org.fudaa.ebli.calque.edition; +import java.awt.BorderLayout; import java.awt.Point; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; @@ -18,6 +19,8 @@ import java.util.Map; import javax.swing.JComponent; +import javax.swing.JPanel; +import javax.swing.border.EmptyBorder; import javax.swing.table.AbstractTableModel; import com.memoire.bu.*; @@ -33,6 +36,7 @@ import org.fudaa.ebli.commun.EbliLib; import org.fudaa.ebli.geometrie.GrPoint; import org.fudaa.ebli.geometrie.GrPolyligne; +import org.fudaa.ebli.ressource.EbliResource; /** * Un panneau d'\xE9dition d'une ligne bris\xE9e qui s'affiche lorsque l'outil ligne bris\xE9e est s\xE9lectionn\xE9. @@ -190,20 +194,17 @@ private ValueModel tableModel_; - BuButton btEditer_; - BuButton btReprise_; BuButton btSaveLine_; ZEditionAttibutesContainer container_; - BuDesktop desktop_; - ZCalqueEditionInteraction edition_; - BuPalette editionDialog_; - Map editorAttribute_; + + /** Type de g\xE9ometrie a \xE9diter */ + int typeForme_; EbliFormatterInterface formatter_; @@ -217,9 +218,10 @@ /** * @param _editor l'editeur parent + * @param _typeForme Le type de g\xE9om\xE9trie a \xE9diter. */ - public ZEditorLigneBriseePanel(final ZEditorDefault _editor) { - setLayout(new BuVerticalLayout(2, false, false)); + public ZEditorLigneBriseePanel(final ZEditorDefault _editor, int _typeForme) { + setLayout(new BuVerticalLayout(2, true, true)); if (_editor.getTarget() != null && _editor.getTarget().getModelEditable().getGeomData() != null) { attributes_ = _editor.getTarget().getModelEditable().getGeomData().getAttributes(); } @@ -246,51 +248,53 @@ btReprise_.setIcon(palette_.getSelectedButton().getIcon()); } add(btReprise_); - if (canUseEditorButton()) { - if (btEditer_ == null) { - btEditer_ = new BuButton(); - btEditer_.setText(EbliLib.getS("Editer")); - btEditer_.addActionListener(this); - } + if (isParametersEditable()) { add(btSaveLine_); - add(btEditer_); } updateFeaturePanel(); if (tableModel_ != null) { tableModel_.updateAtomic(); } - desktop_ = _editor.getDesktop(); + typeForme_=_typeForme; + addParametersPanel(); + formatter_ = _editor.getXYFormatter(); } - private void showEditionDialog() { - if (desktop_ != null) { - if (editionDialog_ == null) { - tableModel_ = createValueModel(); - editionDialog_ = new BuPalette(); - editionDialog_.setClosable(true); - editionDialog_.setResizable(true); - final BuTable tb = new BuTable(tableModel_); - final BuScrollPane sp = new BuScrollPane(tb); - sp.setPreferredWidth(120); - sp.setPreferredHeight(60); - editionDialog_.setContent(sp); - editionDialog_.setVisible(true); - editionDialog_.pack(); - tb.getColumnModel().getColumn(0).setWidth(10); - desktop_.addInternalFrame(editionDialog_); + /** + * Ajoute le panneau pour pr\xE9ciser les parametres de g\xE9om\xE9trie. + */ + private void addParametersPanel() { + FuLog.trace("Type de g\xE9om\xE9trie en cours: "+typeForme_); + if (!isParametersEditable()) return; - // on place la fenetre en dessus de ce panneau - final Point desktopPt = desktop_.getLocationOnScreen(); - final Point p = this.getLocationOnScreen(); - editionDialog_.setLocation(p.x - desktopPt.x, p.y + getHeight() + 5 - desktopPt.y); - } else { - desktop_.addInternalFrame(editionDialog_); - } - } + if (typeForme_==DeForme.RECTANGLE || typeForme_==DeForme.LIGNE_BRISEE || + typeForme_==DeForme.POLYGONE || typeForme_==DeForme.MULTI_POINT) + add(getPolyParametersPanel()); + else if (typeForme_==DeForme.ELLIPSE) + FuLog.error("Not implemented"); } + + /** + * @return un panneau de coordonn\xE9es modifiables lors de la cr\xE9ation d'une + * polyligne ou rectangle. + */ + private JPanel getPolyParametersPanel() { + BuPanel pn=new BuPanel(); + pn.setLayout(new BorderLayout()); + pn.setBorder(new EmptyBorder(2, 2, 2, 2)); + tableModel_=createValueModel(); + final BuTable tb=new BuTable(tableModel_); + final BuScrollPane sp=new BuScrollPane(tb); + sp.setPreferredWidth(190); + sp.setPreferredHeight(60); + tb.getColumnModel().getColumn(0).setWidth(10); + pn.add(new BuLabel(EbliResource.EBLI.getString("Coordonn\xE9es")), BorderLayout.NORTH); + pn.add(sp, BorderLayout.CENTER); + return pn; + } - protected final boolean canUseEditorButton() { + protected final boolean isParametersEditable() { if (edition_ == null) { return false; } @@ -308,7 +312,7 @@ * @return le modele a utiliser pour afficher les valeurs */ protected ValueModel createValueModel() { - if (canUseEditorButton()) { + if (isParametersEditable()) { return new ValueModel(); } return null; @@ -348,8 +352,6 @@ public void actionPerformed(final ActionEvent _e) { if (_e.getSource() == btReprise_) { edition_.setGele(false); - } else if (_e.getSource() == btEditer_) { - showEditionDialog(); } else if (_e.getSource() == btSaveLine_) { (edition_.getFormeEnCours()).addCurrentForme(); } @@ -388,17 +390,10 @@ } public void close() { - desktop_ = null; btReprise_ = null; - if (editionDialog_ != null) { - editionDialog_.dispose(); - } } public void editionStopped() { - if (editionDialog_ != null) { - editionDialog_.dispose(); - } btSaveLine_.setEnabled(false); } @@ -452,11 +447,12 @@ if (!Arrays.equals(newAtt, attributes_)) { attributes_ = newAtt; container_ = null; + removeAll(); + updateFeaturePanel(); if (tableModel_ != null) { tableModel_.updateAtomicArrays(); } - removeAll(); - updateFeaturePanel(); + addParametersPanel(); } } Modified: branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/edition/ZEditorPanelInterface.java =================================================================== --- branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/edition/ZEditorPanelInterface.java 2008-09-05 13:44:23 UTC (rev 3891) +++ branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/edition/ZEditorPanelInterface.java 2008-09-05 14:30:52 UTC (rev 3892) @@ -36,7 +36,7 @@ void calqueInteractionChanged(); /** - * Le calque editable cible est modifi\xE9. + * Appel\xE9 lorsqu'un changement de calque cible est affectu\xE9. * @param _target Le calque editable cible. */ void targetChanged(ZCalqueEditable _target); Modified: branches/FudaaModeleur_TC1Bis/fudaa_devel/fudaa/src/org/fudaa/fudaa/tr/data/TrGisProjectEditor.java =================================================================== --- branches/FudaaModeleur_TC1Bis/fudaa_devel/fudaa/src/org/fudaa/fudaa/tr/data/TrGisProjectEditor.java 2008-09-05 13:44:23 UTC (rev 3891) +++ branches/FudaaModeleur_TC1Bis/fudaa_devel/fudaa/src/org/fudaa/fudaa/tr/data/TrGisProjectEditor.java 2008-09-05 14:30:52 UTC (rev 3892) @@ -187,7 +187,7 @@ protected ZEditorPanelInterface getToolPanel() { if (isSIplanTarget() && isCalqueDessin(getCurrentAction())) { - return new TrSiPlanEditorPanel(this); + return new TrSiPlanEditorPanel(this,getForme()); } return super.getToolPanel(); } Modified: branches/FudaaModeleur_TC1Bis/fudaa_devel/fudaa/src/org/fudaa/fudaa/tr/data/TrSiPlanEditorPanel.java =================================================================== --- branches/FudaaModeleur_TC1Bis/fudaa_devel/fudaa/src/org/fudaa/fudaa/tr/data/TrSiPlanEditorPanel.java 2008-09-05 13:44:23 UTC (rev 3891) +++ branches/FudaaModeleur_TC1Bis/fudaa_devel/fudaa/src/org/fudaa/fudaa/tr/data/TrSiPlanEditorPanel.java 2008-09-05 14:30:52 UTC (rev 3892) @@ -40,7 +40,7 @@ } protected ValueModel createValueModel() { - if (canUseEditorButton()) { + if (isParametersEditable()) { return new SiPlanTableModel(); } return null; @@ -51,8 +51,8 @@ /** * @param _editor */ - public TrSiPlanEditorPanel(final TrGisProjectEditor _editor) { - super(_editor); + public TrSiPlanEditorPanel(final TrGisProjectEditor _editor, int _forme) { + super(_editor,_forme); final TrSiProfilLayer layer = (TrSiProfilLayer) _editor.getTrPanel().getLayerSiProfiles(); if (layer == null) { @@ -100,11 +100,7 @@ updateTz(); final AbstractTableModel model = TrSiPlanEditorPanel.this.getTableModel(); if (model != null) { - if (cb_.isSelected()) { - model.fireTableRowsInserted(2, 2); - } else { - model.fireTableRowsDeleted(2, 2); - } + model.fireTableStructureChanged(); } } }); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <emm...@us...> - 2008-09-05 13:44:13
|
Revision: 3891 http://fudaa.svn.sourceforge.net/fudaa/?rev=3891&view=rev Author: emmanuel_martin Date: 2008-09-05 13:44:23 +0000 (Fri, 05 Sep 2008) Log Message: ----------- Changement sur quelques icons et curseurs. Teste sous linux effectu?\195?\169. Modified Paths: -------------- branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/ZCalqueRepereInteraction.java branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/ZCalqueSelectionInteractionAbstract.java branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/action/SceneDeplacementAction.java branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/edition/ZCalqueDeplacement.java branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/ressource/loupe-etendue.gif Added Paths: ----------- branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/ressource/fleche-deplacement.gif branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/ressource/fleche-polygone.png branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/ressource/transform-transparent_16.png Modified: branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/ZCalqueRepereInteraction.java =================================================================== --- branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/ZCalqueRepereInteraction.java 2008-09-05 13:09:41 UTC (rev 3890) +++ branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/ZCalqueRepereInteraction.java 2008-09-05 13:44:23 UTC (rev 3891) @@ -8,6 +8,7 @@ import java.awt.Color; import java.awt.Component; +import java.awt.Cursor; import java.awt.Graphics; import java.awt.Point; import java.awt.event.KeyEvent; @@ -19,6 +20,7 @@ import org.fudaa.ebli.commun.EbliLib; import org.fudaa.ebli.geometrie.GrBoite; import org.fudaa.ebli.geometrie.GrPoint; +import org.fudaa.ebli.ressource.EbliResource; /** * @author deniger @@ -41,6 +43,10 @@ */ } + public Cursor getSpecificCursor() { + return EbliResource.EBLI.getCursor("loupe-etendue", -1, new Point(8, 8)); + } + public String getDescription() { return EbliLib.getS("Zoom") + (zoomMoins_ ? " -" : " +"); } Modified: branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/ZCalqueSelectionInteractionAbstract.java =================================================================== --- branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/ZCalqueSelectionInteractionAbstract.java 2008-09-05 13:09:41 UTC (rev 3890) +++ branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/ZCalqueSelectionInteractionAbstract.java 2008-09-05 13:44:23 UTC (rev 3891) @@ -156,7 +156,6 @@ modificateur_.setXor(true); } - // private Cursor cursor_=new Cursor(Cursor.HAND_CURSOR); public Cursor getSpecificCursor() { return new Cursor(Cursor.DEFAULT_CURSOR); } Modified: branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/action/SceneDeplacementAction.java =================================================================== --- branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/action/SceneDeplacementAction.java 2008-09-05 13:09:41 UTC (rev 3890) +++ branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/action/SceneDeplacementAction.java 2008-09-05 13:44:23 UTC (rev 3891) @@ -42,7 +42,7 @@ * @param _m l'arbre des calques */ public SceneDeplacementAction(final TreeSelectionModel _m, final ZSceneEditor _sceneEditor, EbliFormatterInterface _formatter, ZCalqueDeplacement _cqDep) { - super(EbliResource.EBLI.getString("D\xE9placer des objets"), EbliResource.EBLI.getToolIcon("draw-move"), "GLOBAL_MOVE", _m); + super(EbliResource.EBLI.getString("D\xE9placer des objets"), EbliResource.EBLI.getToolIcon("fleche-deplacement"), "GLOBAL_MOVE", _m); formatter_=_formatter; cqDep_=_cqDep; setSceneEditor(_sceneEditor); Modified: branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/edition/ZCalqueDeplacement.java =================================================================== --- branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/edition/ZCalqueDeplacement.java 2008-09-05 13:09:41 UTC (rev 3890) +++ branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/edition/ZCalqueDeplacement.java 2008-09-05 13:44:23 UTC (rev 3891) @@ -8,8 +8,10 @@ package org.fudaa.ebli.calque.edition; import java.awt.Color; +import java.awt.Cursor; import java.awt.Graphics; import java.awt.Graphics2D; +import java.awt.Point; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import java.awt.event.MouseMotionListener; @@ -24,6 +26,7 @@ import org.fudaa.ebli.commun.EbliSelectionState; import org.fudaa.ebli.geometrie.GrPoint; import org.fudaa.ebli.geometrie.GrVecteur; +import org.fudaa.ebli.ressource.EbliResource; import org.fudaa.ebli.trace.TraceIcon; /** @@ -55,6 +58,10 @@ return specPanel_; } + public Cursor getSpecificCursor() { + return EbliResource.EBLI.getCursor("fleche-deplacement", -1, new Point(0, 0)); + } + public String getDescription() { return BuResource.BU.getString("D\xE9placer"); } Property changes on: branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/ressource/fleche-deplacement.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Property changes on: branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/ressource/fleche-polygone.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Property changes on: branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/ressource/transform-transparent_16.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fa...@us...> - 2008-09-05 13:09:33
|
Revision: 3890 http://fudaa.svn.sourceforge.net/fudaa/?rev=3890&view=rev Author: fargeix Date: 2008-09-05 13:09:41 +0000 (Fri, 05 Sep 2008) Log Message: ----------- Mise en conformit?\195?\169 avec le nouveau noyau de calcul : - indisponibilit?\195?\169 des ouvrages en minutes et non plus en h.minutes - indisponibilit?\195?\169 des ouvrages pour une dur?\195?\169e fixe, et non plus de type Erlang Modified Paths: -------------- trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3DataSimulation.java trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3Ecluse.java trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3PanelAffichageEcluse.java trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3PanelSaisieBief.java trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3PanelSaisieEcluse.java Modified: trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3DataSimulation.java =================================================================== --- trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3DataSimulation.java 2008-09-05 11:57:18 UTC (rev 3889) +++ trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3DataSimulation.java 2008-09-05 13:09:41 UTC (rev 3890) @@ -873,11 +873,11 @@ nouveau.largeur_ = this.params_.ecluses.listeEcluses[i].largeur; nouveau.longueur_ = this.params_.ecluses.listeEcluses[i].longueur; nouveau.hauteurchute = this.params_.ecluses.listeEcluses[i].hauteurChute; - nouveau.dureeManoeuvreEntrant_ = this.params_.ecluses.listeEcluses[i].dureeDefManoeuvreEntrant; - nouveau.dureeManoeuvreSortant_ = this.params_.ecluses.listeEcluses[i].dureeDefManoeuvreSortant; + nouveau.dureeManoeuvreEntrant_ = (int) this.params_.ecluses.listeEcluses[i].dureeDefManoeuvreEntrant; + nouveau.dureeManoeuvreSortant_ = (int) this.params_.ecluses.listeEcluses[i].dureeDefManoeuvreSortant; nouveau.profondeur_ = this.params_.ecluses.listeEcluses[i].profondeur; - nouveau.tempsFausseBassinneeMontant_ = this.params_.ecluses.listeEcluses[i].tempsFausseBassineeMontant; - nouveau.tempsFausseBassinneeAvalant_ = this.params_.ecluses.listeEcluses[i].tempsFausseBassineeAvalant; + nouveau.tempsFausseBassinneeMontant_ = (int) this.params_.ecluses.listeEcluses[i].tempsFausseBassineeMontant; + nouveau.tempsFausseBassinneeAvalant_ = (int) this.params_.ecluses.listeEcluses[i].tempsFausseBassineeAvalant; nouveau.gareAmont_ = this.params_.ecluses.listeEcluses[i].gareAmont; nouveau.gareAval_ = this.params_.ecluses.listeEcluses[i].gareAval; @@ -2126,10 +2126,10 @@ Sinavi3Ecluse newEcluse=new Sinavi3Ecluse(); newEcluse.nom_=simuOld.parametresEcluse[i].identification; - newEcluse.tempsFausseBassinneeAvalant_=simuOld.parametresEcluse[i].dureeBassineeDescendante; - newEcluse.tempsFausseBassinneeMontant_=simuOld.parametresEcluse[i].dureeBassineeMontante; - newEcluse.dureeManoeuvreEntrant_=simuOld.parametresEcluse[i].dureeManoeuvresEnEntree; - newEcluse.dureeManoeuvreSortant_=simuOld.parametresEcluse[i].dureeManoeuvresEnSortie; + newEcluse.tempsFausseBassinneeAvalant_=(int) simuOld.parametresEcluse[i].dureeBassineeDescendante; + newEcluse.tempsFausseBassinneeMontant_=(int) simuOld.parametresEcluse[i].dureeBassineeMontante; + newEcluse.dureeManoeuvreEntrant_=(int) simuOld.parametresEcluse[i].dureeManoeuvresEnEntree; + newEcluse.dureeManoeuvreSortant_=(int) simuOld.parametresEcluse[i].dureeManoeuvresEnSortie; newEcluse.gareAmont_=simuOld.parametresEcluse[i].gareEnAmont; newEcluse.gareAval_=simuOld.parametresEcluse[i].gareEnAval; if(maxGare<newEcluse.gareAval_)maxGare=newEcluse.gareAval_; Modified: trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3Ecluse.java =================================================================== --- trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3Ecluse.java 2008-09-05 11:57:18 UTC (rev 3889) +++ trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3Ecluse.java 2008-09-05 13:09:41 UTC (rev 3890) @@ -12,12 +12,12 @@ String nom_; double longueur_; double largeur_; - double tempsFausseBassinneeMontant_; - double tempsFausseBassinneeAvalant_; + int tempsFausseBassinneeMontant_; + int tempsFausseBassinneeAvalant_; double profondeur_; double hauteurchute=0; - double dureeManoeuvreEntrant_; - double dureeManoeuvreSortant_ = 24; + int dureeManoeuvreEntrant_; + int dureeManoeuvreSortant_ = 24; Sinavi3Horaire h_ = new Sinavi3Horaire(); double dureeIndispo_; @@ -72,10 +72,10 @@ * @param _gareAmont * @param _gareAval */ - public Sinavi3Ecluse(final String _nom, final double _longueur, final double _largeur, final double _tempsEclusee, - final double _tempsFausseBassinnee, final double _creneauEtaleAvantPleineMerDeb, + public Sinavi3Ecluse(final String _nom, final double _longueur, final double _largeur, final int _tempsEclusee, + final int _tempsFausseBassinnee, final int _creneauEtaleAvantPleineMerDeb, final double _creneauEtaleAvantPleineMerFin, final double _creneauEtaleApresPleineMerDeb, - final double _creneauEtaleApresPleineMerFin, final Sinavi3Horaire _h, final int _gareAmont, final int _gareAval) { + final int _creneauEtaleApresPleineMerFin, final Sinavi3Horaire _h, final int _gareAmont, final int _gareAval) { super(); this.nom_ = _nom; this.longueur_ = _longueur; Modified: trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3PanelAffichageEcluse.java =================================================================== --- trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3PanelAffichageEcluse.java 2008-09-05 11:57:18 UTC (rev 3889) +++ trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3PanelAffichageEcluse.java 2008-09-05 13:09:41 UTC (rev 3890) @@ -25,8 +25,8 @@ */ public class Sinavi3PanelAffichageEcluse extends JPanel { - String[] titreColonnes = { "Nom", "longueur", "Largeur", "Profondeur","Hauteur de chute", "Bassinee Montant", "Bassinee Avalant", "Dur Manoeuvre entrant","Dur Manoeuvre sortant", - "loi Frequence", "Frequence indispo", "duree indispo", "loi Erlang", "creneau 1", "creneau 2", "creneau 3" }; + String[] titreColonnes = { "Nom", "Longueur", "Largeur", "Profondeur", "Hauteur de chute", "Bassin\xE9e montante (min)", "Bassin\xE9e avalante (min)", "Manoeuvre entrante (min)","Manoeuvre sortante (min)", + "Loi d'indisponibilit\xE9", "Fr\xE9quence d'indisponibilit\xE9", "Dur\xE9e d'indisponibilit\xE9", "Cr\xE9neau 1", "Cr\xE9neau 2", "Cr\xE9neau 3" }; /** * Tableau de type BuTable qui contiendra les donn\xE9es des quais @@ -80,10 +80,10 @@ ndata[i][cpt++] = "" + (float) q.largeur_; ndata[i][cpt++] = "" + (float) q.profondeur_; ndata[i][cpt++] = "" + (float) q.hauteurchute; - ndata[i][cpt++] = "" + (float) q.tempsFausseBassinneeMontant_; - ndata[i][cpt++] = "" + (float) q.tempsFausseBassinneeAvalant_; - ndata[i][cpt++] = "" + (float) q.dureeManoeuvreEntrant_; - ndata[i][cpt++] = " " + (float) q.dureeManoeuvreSortant_; + ndata[i][cpt++] = "" + q.tempsFausseBassinneeMontant_; + ndata[i][cpt++] = "" + q.tempsFausseBassinneeAvalant_; + ndata[i][cpt++] = "" + q.dureeManoeuvreEntrant_; + ndata[i][cpt++] = " " + q.dureeManoeuvreSortant_; if (q.typeLoi_ == 0) { ndata[i][cpt++] = "Loi d'Erlang: " + Integer.toString(q.loiFrequence_); @@ -99,7 +99,7 @@ ndata[i][cpt++] = ""; } ndata[i][cpt++] = "" + (float) q.dureeIndispo_; - ndata[i][cpt++] = Integer.toString(q.loiIndispo_); + //ndata[i][cpt++] = Integer.toString(q.loiIndispo_); ndata[i][cpt++] = " " + (float) q.h_.semaineCreneau1HeureDep + " \xE0 " + (float) q.h_.semaineCreneau1HeureArrivee;; ndata[i][cpt++] = " " + (float) q.h_.semaineCreneau2HeureDep + " \xE0 " + (float) q.h_.semaineCreneau2HeureArrivee;; Modified: trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3PanelSaisieBief.java =================================================================== --- trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3PanelSaisieBief.java 2008-09-05 11:57:18 UTC (rev 3889) +++ trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3PanelSaisieBief.java 2008-09-05 13:09:41 UTC (rev 3890) @@ -325,22 +325,23 @@ //durees indispo Box dureeIndispo=Box.createVerticalBox(); - dureeIndispo.setBorder(Sinavi3Bordures.createTitledBorder("Duree indisponibilite"));//BorderFactory.createTitledBorder(SiporBordures.compound_,"Duree indisponibilite")); + dureeIndispo.setBorder(Sinavi3Bordures.createTitledBorder("Dur\xE9e d'indisponibilit\xE9"));//BorderFactory.createTitledBorder(SiporBordures.compound_,"Duree indisponibilite")); dureeIndispoCrenaux.add(dureeIndispo); final JPanel p21 = new JPanel(); - p21.add(new JLabel("Duree moyenne:")); + p21.add(new JLabel("Dur\xE9e:")); p21.add(this.dureeIndispo_); - p21.add(new JLabel("Heures.Minutes ")); + p21.add(new JLabel("h.min")); p21.setBorder(Sinavi3Bordures.bordnormal_); dureeIndispo.add(p21); - final JPanel p23 = new JPanel(); - p23.add(new JLabel("Ordre loi d'Erlang de la dur\xE9e: ")); - p23.add(this.loiProbaDuree_); - p23.setBorder(Sinavi3Bordures.bordnormal_); - dureeIndispo.add(p23); + /* bloc supprim\xE9 par fargeix, la dur\xE9e d'insisponibilit\xE9 \xE9tant maintenant fixe + * final JPanel p23 = new JPanel(); + * p23.add(new JLabel("Ordre loi d'Erlang de la dur\xE9e: ")); + * p23.add(this.loiProbaDuree_); + * p23.setBorder(Sinavi3Bordures.bordnormal_); + * dureeIndispo.add(p23);*/ //creneaux Modified: trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3PanelSaisieEcluse.java =================================================================== --- trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3PanelSaisieEcluse.java 2008-09-05 11:57:18 UTC (rev 3889) +++ trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3PanelSaisieEcluse.java 2008-09-05 13:09:41 UTC (rev 3890) @@ -404,17 +404,18 @@ final JPanel p21 = new JPanel(); - p21.add(new JLabel("Dur\xE9e moyenne:")); + p21.add(new JLabel("Dur\xE9e:")); p21.add(this.dureeIndispo_); - p21.add(new JLabel("hrs.min")); + p21.add(new JLabel("h.min")); p21.setBorder(Sinavi3Bordures.bordnormal_); dureeIndispo.add(p21); - final JPanel p23 = new JPanel(); - p23.add(new JLabel("Ordre loi d'Erlang de la dur\xE9e:")); - p23.add(this.loiProbaDuree_); - p23.setBorder(Sinavi3Bordures.bordnormal_); - dureeIndispo.add(p23); + /* bloc supprim\xE9 par fargeix, la dur\xE9e d'insisponibilit\xE9 \xE9tant maintenant fixe + * final JPanel p23 = new JPanel(); + * p23.add(new JLabel("Ordre loi d'Erlang de la dur\xE9e:")); + * p23.add(this.loiProbaDuree_); + * p23.setBorder(Sinavi3Bordures.bordnormal_); + * dureeIndispo.add(p23);*/ //creneaux @@ -562,11 +563,13 @@ e.largeur_ = Double.parseDouble(this.cLargeur_.getText()); e.longueur_ = Double.parseDouble(this.cLongueur_.getText()); e.hauteurchute = Double.parseDouble(this.cHauteurChute.getText()); - e.tempsFausseBassinneeMontant_ = Double.parseDouble(this.cdureeFBMontant_.getText()); - e.tempsFausseBassinneeAvalant_ = Double.parseDouble(this.cdureeFBAvalant_.getText()); + //e.tempsFausseBassinneeMontant_ = Double.parseDouble(this.cdureeFBMontant_.getText()); + //e.tempsFausseBassinneeAvalant_ = Double.parseDouble(this.cdureeFBAvalant_.getText()); + e.tempsFausseBassinneeMontant_ = Integer.parseInt(this.cdureeFBMontant_.getText()); + e.tempsFausseBassinneeAvalant_ = Integer.parseInt(this.cdureeFBAvalant_.getText()); e.profondeur_ = Double.parseDouble(this.profondeur_.getText()); - e.dureeManoeuvreSortant_ = Double.parseDouble(this.dureeManoeuvreSortant.getText()); - e.dureeManoeuvreEntrant_ = Double.parseDouble(this.dureeManoeuvreEntrant.getText()); + e.dureeManoeuvreSortant_ = Integer.parseInt(this.dureeManoeuvreSortant.getText()); + e.dureeManoeuvreEntrant_ = Integer.parseInt(this.dureeManoeuvreEntrant.getText()); // loi indisponibilit\xE9s e.dureeIndispo_ = Float.parseFloat(this.dureeIndispo_.getText()); @@ -683,10 +686,10 @@ this.cLongueur_.setText("" + (float) q.longueur_); this.cLargeur_.setText("" + (float) q.largeur_); this.cHauteurChute.setText("" + (float) q.hauteurchute); - this.cdureeFBMontant_.setText("" + (float) q.tempsFausseBassinneeMontant_); - this.cdureeFBAvalant_.setText("" + (float) q.tempsFausseBassinneeAvalant_); - this.dureeManoeuvreSortant.setText("" + (float) q.dureeManoeuvreSortant_); - this.dureeManoeuvreEntrant.setText("" + (float) q.dureeManoeuvreEntrant_); + this.cdureeFBMontant_.setText("" + q.tempsFausseBassinneeMontant_); + this.cdureeFBAvalant_.setText("" + q.tempsFausseBassinneeAvalant_); + this.dureeManoeuvreSortant.setText("" + q.dureeManoeuvreSortant_); + this.dureeManoeuvreEntrant.setText("" + q.dureeManoeuvreEntrant_); this.profondeur_.setText("" + (float) q.profondeur_); // this.cdureepassageEcluseEtale.setText(""+q.) this.horaire_.recopie(q.h_); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <opa...@us...> - 2008-09-05 11:57:08
|
Revision: 3889 http://fudaa.svn.sourceforge.net/fudaa/?rev=3889&view=rev Author: opasteur Date: 2008-09-05 11:57:18 +0000 (Fri, 05 Sep 2008) Log Message: ----------- Modified Paths: -------------- trunk/fudaa_devel/fudaa-distrib/mascaret/izpack/izpack_fudaa_mascaret.xml Modified: trunk/fudaa_devel/fudaa-distrib/mascaret/izpack/izpack_fudaa_mascaret.xml =================================================================== --- trunk/fudaa_devel/fudaa-distrib/mascaret/izpack/izpack_fudaa_mascaret.xml 2008-09-05 10:53:34 UTC (rev 3888) +++ trunk/fudaa_devel/fudaa-distrib/mascaret/izpack/izpack_fudaa_mascaret.xml 2008-09-05 11:57:18 UTC (rev 3889) @@ -76,7 +76,7 @@ <description>L'application de base intégrant l'interface graphique Fudaa-Mascaret et le code de calcul Mascaret</description> <file src="../../../distrib/build/jar/mascaret/fudaa-mascaret.jar" targetdir="$INSTALL_PATH" /> <file src="../../fudaa/serveurs" targetdir="$INSTALL_PATH" /> - <file src="../../aide/src/mascaret" targetdir="$INSTALL_PATH/aide/src/mascaret" /> + <file src="../../aide/src/mascaret" targetdir="$INSTALL_PATH/aide/src" /> <file src="fudaa-mascaret.bat" targetdir="$INSTALL_PATH" /> <file src="icons" targetdir="$INSTALL_PATH" /> <parsable targetfile="$INSTALL_PATH/fudaa-mascaret.bat" /> <!-- The file will be parsed --> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <opa...@us...> - 2008-09-05 10:56:11
|
Revision: 3888 http://fudaa.svn.sourceforge.net/fudaa/?rev=3888&view=rev Author: opasteur Date: 2008-09-05 10:53:34 +0000 (Fri, 05 Sep 2008) Log Message: ----------- Added Paths: ----------- trunk/fudaa_devel/aide/src/mascaret/Bief_html_m284f9f99.png trunk/fudaa_devel/aide/src/mascaret/Bief_html_m34fc962c.jpg trunk/fudaa_devel/aide/src/mascaret/absence-affichage-bief.html trunk/fudaa_devel/aide/src/mascaret/accrochage.html trunk/fudaa_devel/aide/src/mascaret/accrochage__m46b2feea.jpg trunk/fudaa_devel/aide/src/mascaret/accrochage__m787439a2.jpg trunk/fudaa_devel/aide/src/mascaret/affectation-lois-hydrauliques-extremites-libres-reseau-hydraulique.html trunk/fudaa_devel/aide/src/mascaret/annexe.html trunk/fudaa_devel/aide/src/mascaret/annexe__2209b583.gif trunk/fudaa_devel/aide/src/mascaret/annexe__2ca94a00.jpg trunk/fudaa_devel/aide/src/mascaret/annexe__2f703ba8.gif trunk/fudaa_devel/aide/src/mascaret/annexe__531284d.jpg trunk/fudaa_devel/aide/src/mascaret/annexe__56836516.gif trunk/fudaa_devel/aide/src/mascaret/annexe__7ac3fcfd.gif trunk/fudaa_devel/aide/src/mascaret/annexe__m43030b7.gif trunk/fudaa_devel/aide/src/mascaret/annexe__m49c066e8.gif trunk/fudaa_devel/aide/src/mascaret/annexe__m4f038439.gif trunk/fudaa_devel/aide/src/mascaret/annexe__m71dfc4d2.gif trunk/fudaa_devel/aide/src/mascaret/annexe__m73bc5c15.gif trunk/fudaa_devel/aide/src/mascaret/annexe_fichiers/ trunk/fudaa_devel/aide/src/mascaret/annexe_fichiers/annexe__2209b583.gif trunk/fudaa_devel/aide/src/mascaret/annexe_fichiers/annexe__2ca94a00.jpg trunk/fudaa_devel/aide/src/mascaret/annexe_fichiers/annexe__2f703ba8.gif trunk/fudaa_devel/aide/src/mascaret/annexe_fichiers/annexe__531284d.jpg trunk/fudaa_devel/aide/src/mascaret/annexe_fichiers/annexe__56836516.gif trunk/fudaa_devel/aide/src/mascaret/annexe_fichiers/annexe__7ac3fcfd.gif trunk/fudaa_devel/aide/src/mascaret/annexe_fichiers/annexe__m43030b7.gif trunk/fudaa_devel/aide/src/mascaret/annexe_fichiers/annexe__m49c066e8.gif trunk/fudaa_devel/aide/src/mascaret/annexe_fichiers/annexe__m4f038439.gif trunk/fudaa_devel/aide/src/mascaret/annexe_fichiers/annexe__m71dfc4d2.gif trunk/fudaa_devel/aide/src/mascaret/annexe_fichiers/annexe__m73bc5c15.gif trunk/fudaa_devel/aide/src/mascaret/barrage seuil.html trunk/fudaa_devel/aide/src/mascaret/barrage seuil__11d9f4c2.jpg trunk/fudaa_devel/aide/src/mascaret/barrage seuil__31b1e8a7.jpg trunk/fudaa_devel/aide/src/mascaret/barrage seuil__3316ed91.jpg trunk/fudaa_devel/aide/src/mascaret/bief.html trunk/fudaa_devel/aide/src/mascaret/boutons-boite-dialogue.html trunk/fudaa_devel/aide/src/mascaret/boutons-boite-dialogue__348120d9.jpg trunk/fudaa_devel/aide/src/mascaret/boutons-boite-dialogue__54b34cb6.jpg trunk/fudaa_devel/aide/src/mascaret/boutons-boite-dialogue__58e9611a.png trunk/fudaa_devel/aide/src/mascaret/boutons-boite-dialogue__72f85af5.png trunk/fudaa_devel/aide/src/mascaret/boutons-boite-dialogue__7d635d77.png trunk/fudaa_devel/aide/src/mascaret/boutons-boite-dialogue__d281cf2.png trunk/fudaa_devel/aide/src/mascaret/boutons-boite-dialogue__m1ff7354b.png trunk/fudaa_devel/aide/src/mascaret/boutons-boite-dialogue__m33ee9e7f.png trunk/fudaa_devel/aide/src/mascaret/boutons-boite-dialogue__m362c7843.png trunk/fudaa_devel/aide/src/mascaret/boutons-boite-dialogue__m3b47e103.png trunk/fudaa_devel/aide/src/mascaret/boutons-boite-dialogue__m4465d103.png trunk/fudaa_devel/aide/src/mascaret/boutons-boite-dialogue__m4952c650.png trunk/fudaa_devel/aide/src/mascaret/boutons-boite-dialogue__m6bed2db0.png trunk/fudaa_devel/aide/src/mascaret/boutons-boite-dialogue__m7c2f2179.png trunk/fudaa_devel/aide/src/mascaret/boutons-boite-dialogue_fichiers/ trunk/fudaa_devel/aide/src/mascaret/boutons-boite-dialogue_fichiers/boutons-boite-dialogue__348120d9.jpg trunk/fudaa_devel/aide/src/mascaret/boutons-boite-dialogue_fichiers/boutons-boite-dialogue__54b34cb6.jpg trunk/fudaa_devel/aide/src/mascaret/boutons-boite-dialogue_fichiers/boutons-boite-dialogue__58e9611a.png trunk/fudaa_devel/aide/src/mascaret/boutons-boite-dialogue_fichiers/boutons-boite-dialogue__72f85af5.png trunk/fudaa_devel/aide/src/mascaret/boutons-boite-dialogue_fichiers/boutons-boite-dialogue__7d635d77.png trunk/fudaa_devel/aide/src/mascaret/boutons-boite-dialogue_fichiers/boutons-boite-dialogue__d281cf2.png trunk/fudaa_devel/aide/src/mascaret/boutons-boite-dialogue_fichiers/boutons-boite-dialogue__m1ff7354b.png trunk/fudaa_devel/aide/src/mascaret/boutons-boite-dialogue_fichiers/boutons-boite-dialogue__m33ee9e7f.png trunk/fudaa_devel/aide/src/mascaret/boutons-boite-dialogue_fichiers/boutons-boite-dialogue__m362c7843.png trunk/fudaa_devel/aide/src/mascaret/boutons-boite-dialogue_fichiers/boutons-boite-dialogue__m3b47e103.png trunk/fudaa_devel/aide/src/mascaret/boutons-boite-dialogue_fichiers/boutons-boite-dialogue__m4465d103.png trunk/fudaa_devel/aide/src/mascaret/boutons-boite-dialogue_fichiers/boutons-boite-dialogue__m4952c650.png trunk/fudaa_devel/aide/src/mascaret/boutons-boite-dialogue_fichiers/boutons-boite-dialogue__m6bed2db0.png trunk/fudaa_devel/aide/src/mascaret/boutons-boite-dialogue_fichiers/boutons-boite-dialogue__m7c2f2179.png trunk/fudaa_devel/aide/src/mascaret/boutons-edition-reseau.html trunk/fudaa_devel/aide/src/mascaret/boutons-edition-reseau__278285cb.png trunk/fudaa_devel/aide/src/mascaret/boutons-edition-reseau__2c325b85.png trunk/fudaa_devel/aide/src/mascaret/boutons-edition-reseau__2f80e89a.png trunk/fudaa_devel/aide/src/mascaret/boutons-edition-reseau__31a3eaaf.png trunk/fudaa_devel/aide/src/mascaret/boutons-edition-reseau__35f947eb.png trunk/fudaa_devel/aide/src/mascaret/boutons-edition-reseau__38c6eb0d.png trunk/fudaa_devel/aide/src/mascaret/boutons-edition-reseau__3cc11cbc.png trunk/fudaa_devel/aide/src/mascaret/boutons-edition-reseau__525e369c.png trunk/fudaa_devel/aide/src/mascaret/boutons-edition-reseau__5c2b1698.png trunk/fudaa_devel/aide/src/mascaret/boutons-edition-reseau__618cdb1d.png trunk/fudaa_devel/aide/src/mascaret/boutons-edition-reseau__6eb26a.jpg trunk/fudaa_devel/aide/src/mascaret/boutons-edition-reseau__73ce3ed5.png trunk/fudaa_devel/aide/src/mascaret/boutons-edition-reseau__75c057e6.png trunk/fudaa_devel/aide/src/mascaret/boutons-edition-reseau__7ec63c.png trunk/fudaa_devel/aide/src/mascaret/boutons-edition-reseau__a63d1f9.png trunk/fudaa_devel/aide/src/mascaret/boutons-edition-reseau__m1ac2796d.png trunk/fudaa_devel/aide/src/mascaret/boutons-edition-reseau__m34cecd7a.png trunk/fudaa_devel/aide/src/mascaret/boutons-edition-reseau__m34d0ea1c.png trunk/fudaa_devel/aide/src/mascaret/boutons-edition-reseau__m436557c8.jpg trunk/fudaa_devel/aide/src/mascaret/boutons-edition-reseau__m4db8fec3.png trunk/fudaa_devel/aide/src/mascaret/boutons-edition-reseau__m510bd37b.png trunk/fudaa_devel/aide/src/mascaret/boutons-edition-reseau__m554611f7.png trunk/fudaa_devel/aide/src/mascaret/boutons-edition-reseau__m565cb415.png trunk/fudaa_devel/aide/src/mascaret/boutons-edition-reseau__m6417ee82.jpg trunk/fudaa_devel/aide/src/mascaret/boutons-edition-reseau__mdc3b820.png trunk/fudaa_devel/aide/src/mascaret/boutons-edition-reseau_fichiers/ trunk/fudaa_devel/aide/src/mascaret/boutons-edition-reseau_fichiers/boutons-edition-reseau__278285cb.png trunk/fudaa_devel/aide/src/mascaret/boutons-edition-reseau_fichiers/boutons-edition-reseau__2c325b85.png trunk/fudaa_devel/aide/src/mascaret/boutons-edition-reseau_fichiers/boutons-edition-reseau__2f80e89a.png trunk/fudaa_devel/aide/src/mascaret/boutons-edition-reseau_fichiers/boutons-edition-reseau__31a3eaaf.png trunk/fudaa_devel/aide/src/mascaret/boutons-edition-reseau_fichiers/boutons-edition-reseau__35f947eb.png trunk/fudaa_devel/aide/src/mascaret/boutons-edition-reseau_fichiers/boutons-edition-reseau__38c6eb0d.png trunk/fudaa_devel/aide/src/mascaret/boutons-edition-reseau_fichiers/boutons-edition-reseau__3cc11cbc.png trunk/fudaa_devel/aide/src/mascaret/boutons-edition-reseau_fichiers/boutons-edition-reseau__525e369c.png trunk/fudaa_devel/aide/src/mascaret/boutons-edition-reseau_fichiers/boutons-edition-reseau__5c2b1698.png trunk/fudaa_devel/aide/src/mascaret/boutons-edition-reseau_fichiers/boutons-edition-reseau__618cdb1d.png trunk/fudaa_devel/aide/src/mascaret/boutons-edition-reseau_fichiers/boutons-edition-reseau__6eb26a.jpg trunk/fudaa_devel/aide/src/mascaret/boutons-edition-reseau_fichiers/boutons-edition-reseau__73ce3ed5.png trunk/fudaa_devel/aide/src/mascaret/boutons-edition-reseau_fichiers/boutons-edition-reseau__75c057e6.png trunk/fudaa_devel/aide/src/mascaret/boutons-edition-reseau_fichiers/boutons-edition-reseau__7ec63c.png trunk/fudaa_devel/aide/src/mascaret/boutons-edition-reseau_fichiers/boutons-edition-reseau__a63d1f9.png trunk/fudaa_devel/aide/src/mascaret/boutons-edition-reseau_fichiers/boutons-edition-reseau__m1ac2796d.png trunk/fudaa_devel/aide/src/mascaret/boutons-edition-reseau_fichiers/boutons-edition-reseau__m34cecd7a.png trunk/fudaa_devel/aide/src/mascaret/boutons-edition-reseau_fichiers/boutons-edition-reseau__m34d0ea1c.png trunk/fudaa_devel/aide/src/mascaret/boutons-edition-reseau_fichiers/boutons-edition-reseau__m436557c8.jpg trunk/fudaa_devel/aide/src/mascaret/boutons-edition-reseau_fichiers/boutons-edition-reseau__m4db8fec3.png trunk/fudaa_devel/aide/src/mascaret/boutons-edition-reseau_fichiers/boutons-edition-reseau__m510bd37b.png trunk/fudaa_devel/aide/src/mascaret/boutons-edition-reseau_fichiers/boutons-edition-reseau__m554611f7.png trunk/fudaa_devel/aide/src/mascaret/boutons-edition-reseau_fichiers/boutons-edition-reseau__m565cb415.png trunk/fudaa_devel/aide/src/mascaret/boutons-edition-reseau_fichiers/boutons-edition-reseau__m6417ee82.jpg trunk/fudaa_devel/aide/src/mascaret/boutons-edition-reseau_fichiers/boutons-edition-reseau__mdc3b820.png trunk/fudaa_devel/aide/src/mascaret/boutons.html trunk/fudaa_devel/aide/src/mascaret/boutons__278285cb.png trunk/fudaa_devel/aide/src/mascaret/boutons__2c325b85.png trunk/fudaa_devel/aide/src/mascaret/boutons__2f80e89a.png trunk/fudaa_devel/aide/src/mascaret/boutons__31a3eaaf.png trunk/fudaa_devel/aide/src/mascaret/boutons__348120d9.jpg trunk/fudaa_devel/aide/src/mascaret/boutons__35f947eb.png trunk/fudaa_devel/aide/src/mascaret/boutons__38c6eb0d.png trunk/fudaa_devel/aide/src/mascaret/boutons__3cc11cbc.png trunk/fudaa_devel/aide/src/mascaret/boutons__525e369c.png trunk/fudaa_devel/aide/src/mascaret/boutons__54b34cb6.jpg trunk/fudaa_devel/aide/src/mascaret/boutons__58e9611a.png trunk/fudaa_devel/aide/src/mascaret/boutons__5c2b1698.png trunk/fudaa_devel/aide/src/mascaret/boutons__618cdb1d.png trunk/fudaa_devel/aide/src/mascaret/boutons__6eb26a.jpg trunk/fudaa_devel/aide/src/mascaret/boutons__72f85af5.png trunk/fudaa_devel/aide/src/mascaret/boutons__73ce3ed5.png trunk/fudaa_devel/aide/src/mascaret/boutons__75c057e6.png trunk/fudaa_devel/aide/src/mascaret/boutons__7d635d77.png trunk/fudaa_devel/aide/src/mascaret/boutons__7ec63c.png trunk/fudaa_devel/aide/src/mascaret/boutons__a63d1f9.png trunk/fudaa_devel/aide/src/mascaret/boutons__d281cf2.png trunk/fudaa_devel/aide/src/mascaret/boutons__m1ac2796d.png trunk/fudaa_devel/aide/src/mascaret/boutons__m1ff7354b.png trunk/fudaa_devel/aide/src/mascaret/boutons__m33ee9e7f.png trunk/fudaa_devel/aide/src/mascaret/boutons__m34cecd7a.png trunk/fudaa_devel/aide/src/mascaret/boutons__m34d0ea1c.png trunk/fudaa_devel/aide/src/mascaret/boutons__m362c7843.png trunk/fudaa_devel/aide/src/mascaret/boutons__m3b47e103.png trunk/fudaa_devel/aide/src/mascaret/boutons__m436557c8.jpg trunk/fudaa_devel/aide/src/mascaret/boutons__m4465d103.png trunk/fudaa_devel/aide/src/mascaret/boutons__m4952c650.png trunk/fudaa_devel/aide/src/mascaret/boutons__m4db8fec3.png trunk/fudaa_devel/aide/src/mascaret/boutons__m510bd37b.png trunk/fudaa_devel/aide/src/mascaret/boutons__m554611f7.png trunk/fudaa_devel/aide/src/mascaret/boutons__m565cb415.png trunk/fudaa_devel/aide/src/mascaret/boutons__m6417ee82.jpg trunk/fudaa_devel/aide/src/mascaret/boutons__m6bed2db0.png trunk/fudaa_devel/aide/src/mascaret/boutons__m7c2f2179.png trunk/fudaa_devel/aide/src/mascaret/boutons__mdc3b820.png trunk/fudaa_devel/aide/src/mascaret/boutons_fichiers/ trunk/fudaa_devel/aide/src/mascaret/boutons_fichiers/boutons__278285cb.png trunk/fudaa_devel/aide/src/mascaret/boutons_fichiers/boutons__2c325b85.png trunk/fudaa_devel/aide/src/mascaret/boutons_fichiers/boutons__2f80e89a.png trunk/fudaa_devel/aide/src/mascaret/boutons_fichiers/boutons__31a3eaaf.png trunk/fudaa_devel/aide/src/mascaret/boutons_fichiers/boutons__348120d9.jpg trunk/fudaa_devel/aide/src/mascaret/boutons_fichiers/boutons__35f947eb.png trunk/fudaa_devel/aide/src/mascaret/boutons_fichiers/boutons__38c6eb0d.png trunk/fudaa_devel/aide/src/mascaret/boutons_fichiers/boutons__3cc11cbc.png trunk/fudaa_devel/aide/src/mascaret/boutons_fichiers/boutons__525e369c.png trunk/fudaa_devel/aide/src/mascaret/boutons_fichiers/boutons__54b34cb6.jpg trunk/fudaa_devel/aide/src/mascaret/boutons_fichiers/boutons__58e9611a.png trunk/fudaa_devel/aide/src/mascaret/boutons_fichiers/boutons__5c2b1698.png trunk/fudaa_devel/aide/src/mascaret/boutons_fichiers/boutons__618cdb1d.png trunk/fudaa_devel/aide/src/mascaret/boutons_fichiers/boutons__6eb26a.jpg trunk/fudaa_devel/aide/src/mascaret/boutons_fichiers/boutons__72f85af5.png trunk/fudaa_devel/aide/src/mascaret/boutons_fichiers/boutons__73ce3ed5.png trunk/fudaa_devel/aide/src/mascaret/boutons_fichiers/boutons__75c057e6.png trunk/fudaa_devel/aide/src/mascaret/boutons_fichiers/boutons__7d635d77.png trunk/fudaa_devel/aide/src/mascaret/boutons_fichiers/boutons__7ec63c.png trunk/fudaa_devel/aide/src/mascaret/boutons_fichiers/boutons__a63d1f9.png trunk/fudaa_devel/aide/src/mascaret/boutons_fichiers/boutons__d281cf2.png trunk/fudaa_devel/aide/src/mascaret/boutons_fichiers/boutons__m1ac2796d.png trunk/fudaa_devel/aide/src/mascaret/boutons_fichiers/boutons__m1ff7354b.png trunk/fudaa_devel/aide/src/mascaret/boutons_fichiers/boutons__m33ee9e7f.png trunk/fudaa_devel/aide/src/mascaret/boutons_fichiers/boutons__m34cecd7a.png trunk/fudaa_devel/aide/src/mascaret/boutons_fichiers/boutons__m34d0ea1c.png trunk/fudaa_devel/aide/src/mascaret/boutons_fichiers/boutons__m362c7843.png trunk/fudaa_devel/aide/src/mascaret/boutons_fichiers/boutons__m3b47e103.png trunk/fudaa_devel/aide/src/mascaret/boutons_fichiers/boutons__m436557c8.jpg trunk/fudaa_devel/aide/src/mascaret/boutons_fichiers/boutons__m4465d103.png trunk/fudaa_devel/aide/src/mascaret/boutons_fichiers/boutons__m4952c650.png trunk/fudaa_devel/aide/src/mascaret/boutons_fichiers/boutons__m4db8fec3.png trunk/fudaa_devel/aide/src/mascaret/boutons_fichiers/boutons__m510bd37b.png trunk/fudaa_devel/aide/src/mascaret/boutons_fichiers/boutons__m554611f7.png trunk/fudaa_devel/aide/src/mascaret/boutons_fichiers/boutons__m565cb415.png trunk/fudaa_devel/aide/src/mascaret/boutons_fichiers/boutons__m6417ee82.jpg trunk/fudaa_devel/aide/src/mascaret/boutons_fichiers/boutons__m6bed2db0.png trunk/fudaa_devel/aide/src/mascaret/boutons_fichiers/boutons__m7c2f2179.png trunk/fudaa_devel/aide/src/mascaret/boutons_fichiers/boutons__mdc3b820.png trunk/fudaa_devel/aide/src/mascaret/calage-automatique.html trunk/fudaa_devel/aide/src/mascaret/calage-automatique__2098dbca.jpg trunk/fudaa_devel/aide/src/mascaret/calage-automatique__2588fe8.jpg trunk/fudaa_devel/aide/src/mascaret/calage-automatique__45b032fe.jpg trunk/fudaa_devel/aide/src/mascaret/calage-automatique__54b34cb6.jpg trunk/fudaa_devel/aide/src/mascaret/calage-automatique__5505f83b.jpg trunk/fudaa_devel/aide/src/mascaret/calage-automatique__56ac44d.jpg trunk/fudaa_devel/aide/src/mascaret/calage-automatique__59f60e90.jpg trunk/fudaa_devel/aide/src/mascaret/calage-automatique__5c566742.jpg trunk/fudaa_devel/aide/src/mascaret/calage-automatique__6c90fe1e.jpg trunk/fudaa_devel/aide/src/mascaret/calage-automatique__701a0d6b.jpg trunk/fudaa_devel/aide/src/mascaret/calage-automatique__m1ff7354b.png trunk/fudaa_devel/aide/src/mascaret/calage-automatique__m2c8adb14.jpg trunk/fudaa_devel/aide/src/mascaret/calage-automatique__m468d2267.jpg trunk/fudaa_devel/aide/src/mascaret/calage-automatique__m503e61a.jpg trunk/fudaa_devel/aide/src/mascaret/calage-automatique__m7205d23a.jpg trunk/fudaa_devel/aide/src/mascaret/calage-automatique__m7f370901.jpg trunk/fudaa_devel/aide/src/mascaret/calage-automatique_fichiers/ trunk/fudaa_devel/aide/src/mascaret/calage-automatique_fichiers/calage-automatique__2098dbca.jpg trunk/fudaa_devel/aide/src/mascaret/calage-automatique_fichiers/calage-automatique__2588fe8.jpg trunk/fudaa_devel/aide/src/mascaret/calage-automatique_fichiers/calage-automatique__45b032fe.jpg trunk/fudaa_devel/aide/src/mascaret/calage-automatique_fichiers/calage-automatique__56ac44d.jpg trunk/fudaa_devel/aide/src/mascaret/calage-automatique_fichiers/calage-automatique__5c566742.jpg trunk/fudaa_devel/aide/src/mascaret/calage-automatique_fichiers/calage-automatique__6c90fe1e.jpg trunk/fudaa_devel/aide/src/mascaret/calage-automatique_fichiers/calage-automatique__m1ff7354b.png trunk/fudaa_devel/aide/src/mascaret/calage-automatique_fichiers/calage-automatique__m2c8adb14.jpg trunk/fudaa_devel/aide/src/mascaret/calage-automatique_fichiers/calage-automatique__m468d2267.jpg trunk/fudaa_devel/aide/src/mascaret/calage-automatique_fichiers/calage-automatique__m503e61a.jpg trunk/fudaa_devel/aide/src/mascaret/calage-automatique_fichiers/calage-automatique__m7205d23a.jpg trunk/fudaa_devel/aide/src/mascaret/calage-automatique_fichiers/calage-automatique__m7f370901.jpg trunk/fudaa_devel/aide/src/mascaret/calage-graphes.html trunk/fudaa_devel/aide/src/mascaret/calage-graphes__56ac44d.jpg trunk/fudaa_devel/aide/src/mascaret/calage-graphes__m1ff7354b.png trunk/fudaa_devel/aide/src/mascaret/calage-graphes_fichiers/ trunk/fudaa_devel/aide/src/mascaret/calage-graphes_fichiers/calage-graphes__56ac44d.jpg trunk/fudaa_devel/aide/src/mascaret/calage-graphes_fichiers/calage-graphes__m1ff7354b.png trunk/fudaa_devel/aide/src/mascaret/calage-parametres-du-calage.html trunk/fudaa_devel/aide/src/mascaret/calage-parametres-du-calage__2098dbca.jpg trunk/fudaa_devel/aide/src/mascaret/calage-parametres-du-calage__45b032fe.jpg trunk/fudaa_devel/aide/src/mascaret/calage-parametres-du-calage__6c90fe1e.jpg trunk/fudaa_devel/aide/src/mascaret/calage-parametres-du-calage_fichiers/ trunk/fudaa_devel/aide/src/mascaret/calage-parametres-du-calage_fichiers/calage-parametres-du-calage__2098dbca.jpg trunk/fudaa_devel/aide/src/mascaret/calage-parametres-du-calage_fichiers/calage-parametres-du-calage__45b032fe.jpg trunk/fudaa_devel/aide/src/mascaret/calage-parametres-du-calage_fichiers/calage-parametres-du-calage__6c90fe1e.jpg trunk/fudaa_devel/aide/src/mascaret/calage-resultats-generaux.html trunk/fudaa_devel/aide/src/mascaret/calage-resultats-generaux__m7205d23a.jpg trunk/fudaa_devel/aide/src/mascaret/calage-resultats-generaux_fichiers/ trunk/fudaa_devel/aide/src/mascaret/calage-resultats-generaux_fichiers/calage-resultats-generaux__m7205d23a.jpg trunk/fudaa_devel/aide/src/mascaret/calage-zones-de-frottement-calees.html trunk/fudaa_devel/aide/src/mascaret/calage-zones-de-frottement-calees__5c566742.jpg trunk/fudaa_devel/aide/src/mascaret/calage-zones-de-frottement-calees_fichiers/ trunk/fudaa_devel/aide/src/mascaret/calage-zones-de-frottement-calees_fichiers/calage-zones-de-frottement-calees__5c566742.jpg trunk/fudaa_devel/aide/src/mascaret/calage-zones-de-frottement-initiales.html trunk/fudaa_devel/aide/src/mascaret/calage-zones-de-frottement-initiales__2588fe8.jpg trunk/fudaa_devel/aide/src/mascaret/calage-zones-de-frottement-initiales__m7f370901.jpg trunk/fudaa_devel/aide/src/mascaret/calage-zones-de-frottement-initiales_fichiers/ trunk/fudaa_devel/aide/src/mascaret/calage-zones-de-frottement-initiales_fichiers/calage-zones-de-frottement-initiales__2588fe8.jpg trunk/fudaa_devel/aide/src/mascaret/calage-zones-de-frottement-initiales_fichiers/calage-zones-de-frottement-initiales__m7f370901.jpg trunk/fudaa_devel/aide/src/mascaret/calage.html trunk/fudaa_devel/aide/src/mascaret/calage__m2c8adb14.jpg trunk/fudaa_devel/aide/src/mascaret/calage_fichiers/ trunk/fudaa_devel/aide/src/mascaret/calage_fichiers/calage__m2c8adb14.jpg trunk/fudaa_devel/aide/src/mascaret/callage-donnes-de-crues_fichiers/ trunk/fudaa_devel/aide/src/mascaret/callage-donnes-de-crues_fichiers/callage-donnes-de-crues__m468d2267.jpg trunk/fudaa_devel/aide/src/mascaret/callage-donnes-de-crues_fichiers/callage-donnes-de-crues__m503e61a.jpg trunk/fudaa_devel/aide/src/mascaret/casier.html trunk/fudaa_devel/aide/src/mascaret/casier__58e9611a.png trunk/fudaa_devel/aide/src/mascaret/casier__5a917cc6.jpg trunk/fudaa_devel/aide/src/mascaret/casier__7b441411.jpg trunk/fudaa_devel/aide/src/mascaret/casier__m4ecf211f.gif trunk/fudaa_devel/aide/src/mascaret/casier__m5d36291e.jpg trunk/fudaa_devel/aide/src/mascaret/casier__m735ff7d1.jpg trunk/fudaa_devel/aide/src/mascaret/casier__m7a5d755f.jpg trunk/fudaa_devel/aide/src/mascaret/casier_fichiers/ trunk/fudaa_devel/aide/src/mascaret/casier_fichiers/casier__58e9611a.png trunk/fudaa_devel/aide/src/mascaret/casier_fichiers/casier__5a917cc6.jpg trunk/fudaa_devel/aide/src/mascaret/casier_fichiers/casier__7b441411.jpg trunk/fudaa_devel/aide/src/mascaret/casier_fichiers/casier__m4ecf211f.gif trunk/fudaa_devel/aide/src/mascaret/casier_fichiers/casier__m5d36291e.jpg trunk/fudaa_devel/aide/src/mascaret/casier_fichiers/casier__m735ff7d1.jpg trunk/fudaa_devel/aide/src/mascaret/casier_fichiers/casier__m7a5d755f.jpg trunk/fudaa_devel/aide/src/mascaret/changement de nom.html trunk/fudaa_devel/aide/src/mascaret/changement de nom__19c0b53d.jpg trunk/fudaa_devel/aide/src/mascaret/changement de nom_fichiers/ trunk/fudaa_devel/aide/src/mascaret/changement de nom_fichiers/changement de nom__19c0b53d.jpg trunk/fudaa_devel/aide/src/mascaret/choix-conditions-limites.html trunk/fudaa_devel/aide/src/mascaret/choix-conditions-limites__725241d1.jpg trunk/fudaa_devel/aide/src/mascaret/choix-conditions-limites_fichiers/ trunk/fudaa_devel/aide/src/mascaret/choix-conditions-limites_fichiers/choix-conditions-limites__725241d1.jpg trunk/fudaa_devel/aide/src/mascaret/choix-pas-de-temps.html trunk/fudaa_devel/aide/src/mascaret/choix-pas-de-temps__5a40d340.gif trunk/fudaa_devel/aide/src/mascaret/choix-pas-de-temps_fichiers/ trunk/fudaa_devel/aide/src/mascaret/choix-pas-de-temps_fichiers/choix-pas-de-temps__5a40d340.gif trunk/fudaa_devel/aide/src/mascaret/choix-temps-initial.html trunk/fudaa_devel/aide/src/mascaret/clic-extremites-bief.html trunk/fudaa_devel/aide/src/mascaret/clic-extremites-bief__725241d1.jpg trunk/fudaa_devel/aide/src/mascaret/clic-extremites-bief_fichiers/ trunk/fudaa_devel/aide/src/mascaret/clic-extremites-bief_fichiers/clic-extremites-bief__725241d1.jpg trunk/fudaa_devel/aide/src/mascaret/condition_initiale.html trunk/fudaa_devel/aide/src/mascaret/conditions-initiales.html trunk/fudaa_devel/aide/src/mascaret/conditions-initiales__31135ef5.jpg trunk/fudaa_devel/aide/src/mascaret/conditions-initiales__393662f6.jpg trunk/fudaa_devel/aide/src/mascaret/conditions-initiales__55d387cf.gif trunk/fudaa_devel/aide/src/mascaret/conditions-initiales__58e9611a.png trunk/fudaa_devel/aide/src/mascaret/conditions-initiales__5af87065.jpg trunk/fudaa_devel/aide/src/mascaret/conditions-initiales__669bbcc6.jpg trunk/fudaa_devel/aide/src/mascaret/conditions-initiales__m13ae671a.jpg trunk/fudaa_devel/aide/src/mascaret/conditions-initiales__m21bc5878.jpg trunk/fudaa_devel/aide/src/mascaret/conditions-initiales__m7d683294.jpg trunk/fudaa_devel/aide/src/mascaret/conditions-initiales_fichiers/ trunk/fudaa_devel/aide/src/mascaret/conditions-initiales_fichiers/conditions-initiales__31135ef5.jpg trunk/fudaa_devel/aide/src/mascaret/conditions-initiales_fichiers/conditions-initiales__393662f6.jpg trunk/fudaa_devel/aide/src/mascaret/conditions-initiales_fichiers/conditions-initiales__55d387cf.gif trunk/fudaa_devel/aide/src/mascaret/conditions-initiales_fichiers/conditions-initiales__58e9611a.png trunk/fudaa_devel/aide/src/mascaret/conditions-initiales_fichiers/conditions-initiales__5af87065.jpg trunk/fudaa_devel/aide/src/mascaret/conditions-initiales_fichiers/conditions-initiales__669bbcc6.jpg trunk/fudaa_devel/aide/src/mascaret/conditions-initiales_fichiers/conditions-initiales__m13ae671a.jpg trunk/fudaa_devel/aide/src/mascaret/conditions-initiales_fichiers/conditions-initiales__m186f7395.jpg trunk/fudaa_devel/aide/src/mascaret/conditions-initiales_fichiers/conditions-initiales__m21bc5878.jpg trunk/fudaa_devel/aide/src/mascaret/conditions-initiales_fichiers/conditions-initiales__m7d683294.jpg trunk/fudaa_devel/aide/src/mascaret/confluents.html trunk/fudaa_devel/aide/src/mascaret/confluents_html_198ef354.jpg trunk/fudaa_devel/aide/src/mascaret/confluents_html_1d8e6b.jpg trunk/fudaa_devel/aide/src/mascaret/confluents_html_58c7e366.jpg trunk/fudaa_devel/aide/src/mascaret/confluents_html_7b870d3f.jpg trunk/fudaa_devel/aide/src/mascaret/confluents_html_m1171e733.jpg trunk/fudaa_devel/aide/src/mascaret/confluents_html_m7050af51.jpg trunk/fudaa_devel/aide/src/mascaret/connexion au serveur.html trunk/fudaa_devel/aide/src/mascaret/connexion au serveur_html_3dc55c8d.jpg trunk/fudaa_devel/aide/src/mascaret/connexion au serveur_html_643b6057.png trunk/fudaa_devel/aide/src/mascaret/cotes-initiales-cassiers.html trunk/fudaa_devel/aide/src/mascaret/creation-des-profils.html trunk/fudaa_devel/aide/src/mascaret/creation-des-profils__m7c83110e.jpg trunk/fudaa_devel/aide/src/mascaret/creation-des-profils_fichiers/ trunk/fudaa_devel/aide/src/mascaret/creation-des-profils_fichiers/creation-des-profils__m7c83110e.jpg trunk/fudaa_devel/aide/src/mascaret/creation-etude.html trunk/fudaa_devel/aide/src/mascaret/creation-etude__72f85af5.png trunk/fudaa_devel/aide/src/mascaret/creation-etude__7833935b.jpg trunk/fudaa_devel/aide/src/mascaret/creation-etude__m247bda99.gif trunk/fudaa_devel/aide/src/mascaret/creation-etude_fichiers/ trunk/fudaa_devel/aide/src/mascaret/creation-etude_fichiers/creation-etude__72f85af5.png trunk/fudaa_devel/aide/src/mascaret/creation-etude_fichiers/creation-etude__7833935b.jpg trunk/fudaa_devel/aide/src/mascaret/creation-etude_fichiers/creation-etude__m247bda99.gif trunk/fudaa_devel/aide/src/mascaret/crues_callage.html trunk/fudaa_devel/aide/src/mascaret/debit-apport.html trunk/fudaa_devel/aide/src/mascaret/debit-apport__783bc144.jpg trunk/fudaa_devel/aide/src/mascaret/debit-apport__m58e2c37e.jpg trunk/fudaa_devel/aide/src/mascaret/debit-apport_fichiers/ trunk/fudaa_devel/aide/src/mascaret/debit-apport_fichiers/debit-apport__783bc144.jpg trunk/fudaa_devel/aide/src/mascaret/debit-apport_fichiers/debit-apport__m58e2c37e.jpg trunk/fudaa_devel/aide/src/mascaret/decrochage.html trunk/fudaa_devel/aide/src/mascaret/decrochage__m3261e865.jpg trunk/fudaa_devel/aide/src/mascaret/decrochage__m73020213.png trunk/fudaa_devel/aide/src/mascaret/decrochage__mdc3b820.png trunk/fudaa_devel/aide/src/mascaret/decrochage_fichiers/ trunk/fudaa_devel/aide/src/mascaret/decrochage_fichiers/decrochage__m3261e865.jpg trunk/fudaa_devel/aide/src/mascaret/decrochage_fichiers/decrochage__m73020213.png trunk/fudaa_devel/aide/src/mascaret/decrochage_fichiers/decrochage__mdc3b820.png trunk/fudaa_devel/aide/src/mascaret/description-logiciel.html trunk/fudaa_devel/aide/src/mascaret/description-logiciel__11d9f4c2.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__13404eb4.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__13a3bb9c.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__1599317c.png trunk/fudaa_devel/aide/src/mascaret/description-logiciel__18734e63.gif trunk/fudaa_devel/aide/src/mascaret/description-logiciel__191b4b42.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__198ef354.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__19c0b53d.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__1b0103d3.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__1b3a0e9f.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__1cb07b01.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__1d8e6b.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__1ea95e86.gif trunk/fudaa_devel/aide/src/mascaret/description-logiciel__2098dbca.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__2588fe8.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__278285cb.png trunk/fudaa_devel/aide/src/mascaret/description-logiciel__27a0ab71.png trunk/fudaa_devel/aide/src/mascaret/description-logiciel__29c7076.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__2c1f5367.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__2caff009.gif trunk/fudaa_devel/aide/src/mascaret/description-logiciel__30d6987d.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__31135ef5.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__31b1e8a7.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__3316ed91.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__34bdcb23.gif trunk/fudaa_devel/aide/src/mascaret/description-logiciel__352e1965.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__36a95b5b.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__393662f6.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__3aca47f3.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__3cb1021f.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__3cc11cbc.png trunk/fudaa_devel/aide/src/mascaret/description-logiciel__3d9bd589.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__3f113852.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__40b03b28.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__415a5f1c.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__41bbb362.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__448e6620.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__45b032fe.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__47981122.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__47d29423.png trunk/fudaa_devel/aide/src/mascaret/description-logiciel__484624f4.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__4a487cc2.gif trunk/fudaa_devel/aide/src/mascaret/description-logiciel__4b4c5b51.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__4e3e4e62.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__54b34cb6.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__5505f83b.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__55d387cf.gif trunk/fudaa_devel/aide/src/mascaret/description-logiciel__55f0292.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__56ac44d.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__5754f021.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__58c7e366.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__58e9611a.png trunk/fudaa_devel/aide/src/mascaret/description-logiciel__59f60e90.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__5a917cc6.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__5af87065.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__5c566742.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__5d6775ed.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__5fdea2b4.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__6203ccb3.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__62bf8d5a.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__62edfdb1.gif trunk/fudaa_devel/aide/src/mascaret/description-logiciel__669bbcc6.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__66ca6b44.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__67602db3.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__67de6b45.gif trunk/fudaa_devel/aide/src/mascaret/description-logiciel__6ac52ecc.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__6b2b5eec.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__6c90fe1e.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__6d60084.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__6e5ab3fc.gif trunk/fudaa_devel/aide/src/mascaret/description-logiciel__6f31bc2c.gif trunk/fudaa_devel/aide/src/mascaret/description-logiciel__6faa338d.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__6fdb25ac.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__701a0d6b.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__724fb50f.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__725241d1.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__728ca3b8.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__72f85af5.png trunk/fudaa_devel/aide/src/mascaret/description-logiciel__732b4a6.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__7833935b.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__783bc144.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__7b441411.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__7b870d3f.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__7c8a096d.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__7caa2d8f.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__7e83d9af.gif trunk/fudaa_devel/aide/src/mascaret/description-logiciel__cf8a5f4.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__d30217c.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__f5c4df7.gif trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m1171e733.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m13ae671a.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m13c5c4fd.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m1516d614.gif trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m15bdd4ce.png trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m1610b99f.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m17a212ed.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m17fc0ab5.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m186f7395.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m19372bc7.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m1fce783a.gif trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m1ff7354b.png trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m20f4c148.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m21bc5878.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m247bda99.gif trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m284f9f99.png trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m29f0aa93.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m2c8adb14.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m2cb5abc1.png trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m2d6e7652.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m2d98cd2e.png trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m2da45f48.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m31131107.gif trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m3261e865.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m34fc962c.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m38601b78.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m3a486bf0.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m3bd12b89.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m3c12627a.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m4036e97e.gif trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m40a5ff15.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m417f6239.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m43ea3c36.gif trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m44319b7d.gif trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m468d2267.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m46b2feea.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m4952c650.png trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m4aefede0.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m4c763b7a.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m4d69a92d.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m4ecf211f.gif trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m4fec29a7.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m503e61a.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m50b73625.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m536b463a.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m53e0abe3.gif trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m54e87686.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m56cd4089.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m58e2c37e.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m5c5e03c8.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m5d36291e.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m5d48541c.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m621d8e4d.png trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m6346ef3a.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m6605184c.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m66e0ef5b.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m675792eb.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m677e8cd3.gif trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m69d11ad4.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m6bed2db0.png trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m6d314c1e.gif trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m6e003cb5.gif trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m6f682d8f.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m7050af51.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m7059e3bc.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m70d37491.png trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m71030b70.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m7205d23a.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m72500914.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m72befdd9.gif trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m73020213.png trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m73084129.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m735ff7d1.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m7410f98b.gif trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m743cf864.gif trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m7579f6dd.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m768c603a.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m787439a2.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m7a5d755f.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m7c83110e.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m7d683294.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m7d81675a.gif trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m7f370901.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m7f4326c7.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__m8801e27.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel__mdc3b820.png trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/ trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/Thumbs.db trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__11d9f4c2.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__13404eb4.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__13a3bb9c.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__1599317c.png trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__18734e63.gif trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__191b4b42.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__198ef354.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__19c0b53d.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__1b0103d3.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__1b3a0e9f.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__1cb07b01.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__1d8e6b.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__1ea95e86.gif trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__2098dbca.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__2588fe8.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__278285cb.png trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__27a0ab71.png trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__29c7076.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__2c1f5367.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__2caff009.gif trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__30d6987d.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__31135ef5.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__31b1e8a7.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__3316ed91.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__34bdcb23.gif trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__352e1965.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__36a95b5b.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__393662f6.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__3aca47f3.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__3cb1021f.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__3cc11cbc.png trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__3d9bd589.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__3f113852.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__40b03b28.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__415a5f1c.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__41bbb362.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__448e6620.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__45b032fe.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__47981122.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__47d29423.png trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__484624f4.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__4a487cc2.gif trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__4b4c5b51.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__4e3e4e62.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__54b34cb6.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__5505f83b.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__55d387cf.gif trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__55f0292.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__56ac44d.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__5754f021.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__58c7e366.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__58e9611a.png trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__59f60e90.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__5a917cc6.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__5af87065.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__5c566742.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__5d6775ed.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__5fdea2b4.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__6203ccb3.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__62bf8d5a.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__62edfdb1.gif trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__669bbcc6.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__66ca6b44.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__67602db3.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__67de6b45.gif trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__6ac52ecc.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__6b2b5eec.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__6c90fe1e.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__6d60084.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__6e5ab3fc.gif trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__6f31bc2c.gif trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__6faa338d.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__6fdb25ac.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__701a0d6b.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__724fb50f.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__725241d1.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__728ca3b8.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__72f85af5.png trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__732b4a6.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__7833935b.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__783bc144.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__7b441411.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__7b870d3f.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__7c8a096d.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__7caa2d8f.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__7e83d9af.gif trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__cf8a5f4.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__d30217c.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__f5c4df7.gif trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m1171e733.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m13ae671a.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m13c5c4fd.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m1516d614.gif trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m15bdd4ce.png trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m1610b99f.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m17a212ed.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m17fc0ab5.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m186f7395.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m19372bc7.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m1fce783a.gif trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m1ff7354b.png trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m20f4c148.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m21bc5878.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m247bda99.gif trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m284f9f99.png trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m29f0aa93.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m2c8adb14.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m2cb5abc1.png trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m2d6e7652.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m2d98cd2e.png trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m2da45f48.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m31131107.gif trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m3261e865.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m34fc962c.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m38601b78.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m3a486bf0.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m3bd12b89.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m3c12627a.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m4036e97e.gif trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m40a5ff15.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m417f6239.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m43ea3c36.gif trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m44319b7d.gif trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m468d2267.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m46b2feea.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m4952c650.png trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m4aefede0.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m4c763b7a.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m4d69a92d.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m4ecf211f.gif trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m4fec29a7.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m503e61a.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m50b73625.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m536b463a.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m53e0abe3.gif trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m54e87686.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m56cd4089.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m58e2c37e.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m5c5e03c8.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m5d36291e.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m5d48541c.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m621d8e4d.png trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m6346ef3a.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m6605184c.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m66e0ef5b.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m675792eb.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m677e8cd3.gif trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m69d11ad4.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m6bed2db0.png trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m6d314c1e.gif trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m6e003cb5.gif trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m6f682d8f.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m7050af51.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m7059e3bc.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m70d37491.png trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m71030b70.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m7205d23a.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m72500914.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m72befdd9.gif trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m73020213.png trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m73084129.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m735ff7d1.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m7410f98b.gif trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m743cf864.gif trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m7579f6dd.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m768c603a.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m787439a2.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m7a5d755f.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m7c83110e.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m7d683294.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m7d81675a.gif trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m7f370901.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m7f4326c7.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__m8801e27.jpg trunk/fudaa_devel/aide/src/mascaret/description-logiciel_fichiers/description-logiciel__mdc3b820.png trunk/fudaa_devel/aide/src/mascaret/description-parametres-confluent-regime-trancritique.html trunk/fudaa_devel/aide/src/mascaret/description-parametres-confluent-regime-trancritique__2ca94a00.jpg trunk/fudaa_devel/aide/src/mascaret/description-parametres-confluent-regime-trancrit... [truncated message content] |
From: <opa...@us...> - 2008-09-05 09:26:29
|
Revision: 3887 http://fudaa.svn.sourceforge.net/fudaa/?rev=3887&view=rev Author: opasteur Date: 2008-09-05 09:26:32 +0000 (Fri, 05 Sep 2008) Log Message: ----------- Ajout de l'aide Fudaa-Mascaret Modified Paths: -------------- trunk/fudaa_devel/aide/src/mascaret/alphabetique.html trunk/fudaa_devel/aide/src/mascaret/choix_noyau.html trunk/fudaa_devel/aide/src/mascaret/index.html Modified: trunk/fudaa_devel/aide/src/mascaret/alphabetique.html =================================================================== --- trunk/fudaa_devel/aide/src/mascaret/alphabetique.html 2008-09-05 08:33:45 UTC (rev 3886) +++ trunk/fudaa_devel/aide/src/mascaret/alphabetique.html 2008-09-05 09:26:32 UTC (rev 3887) @@ -1,33 +1,205 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> - <TITLE>Alphabetique</TITLE> - <META NAME="Author" CONTENT="Guillaume Desnoix"> - <LINK REL="StyleSheet" HREF="/style/aide.css" TITLE="Style"> + <META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=windows-1252"> + <TITLE>Alphabetique</TITLE> + <META NAME="GENERATOR" CONTENT="OpenOffice.org 2.4 (Win32)"> + <META NAME="AUTHOR" CONTENT="Guillaume Desnoix"> + <META NAME="CREATED" CONTENT="0;0"> + <META NAME="CHANGED" CONTENT="20080821;14255317"> + <STYLE TYPE="text/css"> + <!-- + @page { size: 21cm 29.7cm } + --> + </STYLE> </HEAD> -<BODY> -<P ALIGN=RIGHT>[ <A HREF="../">Accueil</A> -| <A HREF="./">Sommaire</A> -| <A HREF="alphabetique.html">Index</A> ]</P> - -<A NAME="index-alphabetique"> -<H1>Index alphabétique</H1> -<BR><BR> -<BR>alphabétique: -<A HREF="alphabetique.html#index-alphabetique">1</A> -<BR>boutons: -<A HREF="p-rapport.html#boutons-specifiques">1</A> -<BR>enregistrement: -<A HREF="p-rapport.html#enregistrement">1</A> -<BR>format: -<A HREF="p-rapport.html#menu-format">1</A> -<BR>index: -<A HREF="alphabetique.html#index-alphabetique">1</A> -<BR>menu: -<A HREF="p-rapport.html#menu-format">1</A> -<BR>rapport: -<A HREF="p-rapport.html#rapport">1</A> -<BR>spécifiques: -<A HREF="p-rapport.html#boutons-specifiques">1</A> -<BR><BR> +<BODY LANG="fr-FR" DIR="LTR"> +<P ALIGN=RIGHT STYLE="margin-right: 0.08cm"><FONT SIZE=3 STYLE="font-size: 13pt">[<A HREF="index.html"> +Accueil</A> | <A HREF="sommaire.html">Sommaire</A> ]</FONT></P> +<H1 ALIGN=CENTER><FONT SIZE=6 STYLE="font-size: 30pt">Index +alphabétique</FONT></H1> +<P ALIGN=CENTER><BR><BR> +</P> +<P ALIGN=CENTER><A HREF="#A">A</A> –<A HREF="#B"><SPAN STYLE="text-decoration: none"> +</SPAN>B</A> – <A HREF="#C">C<SPAN STYLE="text-decoration: none"> +</SPAN></A>– <A HREF="#D">D</A> – <A HREF="#E">E</A> – +F – G – H – <A HREF="#I">I</A> – J – K +– <A HREF="#L">L</A> – <A HREF="#M">M<SPAN STYLE="text-decoration: none"> +-</SPAN></A> N – <A HREF="#O">O<SPAN STYLE="text-decoration: none"> +</SPAN></A>– <A HREF="#P">P</A> – Q – <A HREF="#R"><SPAN STYLE="text-decoration: none"><U>R</U></SPAN></A>–<A HREF="#S"><SPAN STYLE="text-decoration: none"> +</SPAN><SPAN STYLE="text-decoration: none"><U>S</U></SPAN></A><U> </U>– +<A HREF="#T"><SPAN STYLE="text-decoration: none"><U>T</U></SPAN><SPAN STYLE="text-decoration: none"> +</SPAN></A>– U – V – W – X – Y – +Z<BR><BR><BR> +</P> +<P STYLE="margin-left: 1.01cm"><A NAME="A"></A><FONT SIZE=3 STYLE="font-size: 13pt"><BR><A HREF="annexe.html">annexe</A></FONT></P> +<P ALIGN=JUSTIFY STYLE="margin-left: 2.49cm; margin-right: 0.08cm"><A HREF="format-importation-casier-mode-planimetrie.html"><FONT SIZE=3 STYLE="font-size: 13pt">importation +casier mode planimétrie </FONT></A> +</P> +<P ALIGN=JUSTIFY STYLE="margin-left: 2.49cm; margin-right: 0.08cm"><A HREF="format-importation-casier-mode-semi-points.html"><FONT SIZE=3 STYLE="font-size: 13pt">importation +casier mode semi de points</FONT></A></P> +<P ALIGN=JUSTIFY STYLE="margin-left: 2.49cm; margin-right: 0.08cm"><A HREF="format-importation-fichier-laisses-de-crue.html"><FONT SIZE=3 STYLE="font-size: 13pt">importation +fichier laisses de crue</FONT></A></P> +<P ALIGN=JUSTIFY STYLE="margin-left: 2.49cm; margin-right: 0.08cm"><A HREF="format-importation-fichier-ligne-eau-initiale.html"><FONT SIZE=3 STYLE="font-size: 13pt">importation +fichier ligne eau</FONT></A></P> +<P ALIGN=JUSTIFY STYLE="margin-left: 2.49cm; margin-right: 0.08cm"><A HREF="format-importation-fichier-reprise-calcul.html"><FONT SIZE=3 STYLE="font-size: 13pt">importation +fichier reprise calcul</FONT></A></P> +<P ALIGN=JUSTIFY STYLE="margin-left: 2.49cm; margin-right: 0.08cm"><A HREF="format-importation-fichier-zones-de-frottement.html"><FONT SIZE=3 STYLE="font-size: 13pt">importation +fichier zone frottement</FONT></A></P> +<P ALIGN=JUSTIFY STYLE="margin-left: 2.49cm; margin-right: 0.08cm"><FONT SIZE=3 STYLE="font-size: 13pt"><A HREF="format-importation-geometrie-biefs.html">importation +géométrie biefs</A> </FONT> +</P> +<P ALIGN=JUSTIFY STYLE="margin-left: 2.49cm; margin-right: 0.08cm"><A HREF="fichier-importation-lois.html"><FONT SIZE=3 STYLE="font-size: 13pt">importation +lois</FONT></A></P> +<P ALIGN=JUSTIFY STYLE="margin-left: 2.49cm; margin-right: 0.08cm"><A HREF="fichier-importation-lois.html"><FONT SIZE=3 STYLE="font-size: 13pt">importation +maillage</FONT></A></P> +<P ALIGN=JUSTIFY STYLE="margin-left: 2.49cm; margin-right: 0.08cm"><A HREF="format-importation-points-frontieres.html"><FONT SIZE=3 STYLE="font-size: 13pt">importation +points de frontières</FONT></A></P> +<P ALIGN=JUSTIFY STYLE="margin-left: 2.49cm; margin-right: 0.08cm"><A HREF="format-importation-profils.html"><FONT SIZE=3 STYLE="font-size: 13pt">importation +profils</FONT></A></P> +<P ALIGN=JUSTIFY STYLE="margin-left: 2.49cm; margin-right: 0.08cm"><FONT SIZE=3 STYLE="font-size: 13pt"><A HREF="description-parametres-confluent-regime-trancritique.html">paramètre +confluent</A> </FONT> +</P> +<P ALIGN=JUSTIFY STYLE="margin-left: 2.49cm; margin-right: 0.08cm"><BR><BR> +</P> +<P ALIGN=JUSTIFY STYLE="margin-left: 1.01cm"><A NAME="B"></A><A HREF="barrage%20seuil.html"><FONT SIZE=3 STYLE="font-size: 13pt">barrage/seuil</FONT></A></P> +<P ALIGN=JUSTIFY STYLE="margin-left: 1.01cm"><A HREF="bief.html"><FONT SIZE=3 STYLE="font-size: 13pt">bief</FONT></A></P> +<P ALIGN=JUSTIFY STYLE="margin-left: 1.01cm; margin-right: 0.08cm"><A HREF="boutons.html"><FONT SIZE=3 STYLE="font-size: 13pt">boutons</FONT></A></P> +<P ALIGN=JUSTIFY STYLE="margin-left: 2.51cm; margin-right: 0.08cm"><A HREF="boutons-boite-dialogue.html"><FONT SIZE=3 STYLE="font-size: 13pt">boite +de dialogue</FONT></A></P> +<P ALIGN=JUSTIFY STYLE="margin-left: 2.51cm; margin-right: 0.08cm"><A HREF="boutons-edition-reseau.html"><FONT SIZE=3 STYLE="font-size: 13pt">édition +du réseau</FONT></A></P> +<P ALIGN=JUSTIFY STYLE="margin-left: 2.51cm; margin-right: 0.08cm"><BR><BR> +</P> +<P ALIGN=JUSTIFY STYLE="margin-left: 0.98cm"><A NAME="C"></A><A HREF="calage-automatique.html"><FONT SIZE=3 STYLE="font-size: 13pt">calage +automatique</FONT></A></P> +<P ALIGN=JUSTIFY STYLE="margin-left: 2.51cm; margin-right: 0.08cm"><A HREF="lancement-calcul-calage.html"><FONT SIZE=3 STYLE="font-size: 13pt">lancement +calcul calage</FONT></A></P> +<P ALIGN=JUSTIFY STYLE="margin-left: 2.51cm; margin-right: 0.08cm"><A HREF="resultats-calage.html"><FONT SIZE=3 STYLE="font-size: 13pt">résultats +calage</FONT></A></P> +<P ALIGN=JUSTIFY STYLE="margin-left: 0.98cm"><A HREF="casier.html"><SPAN STYLE="text-decoration: none"><FONT SIZE=3 STYLE="font-size: 13pt"><SPAN STYLE="font-style: normal"><U><SPAN STYLE="font-weight: medium">casier</SPAN></U></SPAN></FONT></SPAN></A></P> +<P ALIGN=JUSTIFY STYLE="margin-left: 0.98cm"><A HREF="choix-conditions-limites.html"><FONT SIZE=3 STYLE="font-size: 13pt">choix +conditions limites</FONT></A></P> +<P ALIGN=JUSTIFY STYLE="margin-left: 0.98cm"><A HREF="conditions-initiales.html"><FONT SIZE=3 STYLE="font-size: 13pt">conditions +initiales</FONT></A></P> +<P ALIGN=JUSTIFY STYLE="margin-left: 0.98cm"><A HREF="confluents.html"><SPAN STYLE="text-decoration: none"><FONT SIZE=3 STYLE="font-size: 13pt"><SPAN STYLE="font-style: normal"><U><SPAN STYLE="font-weight: medium">confluent</SPAN></U></SPAN></FONT></SPAN></A></P> +<P ALIGN=JUSTIFY STYLE="margin-left: 0.98cm"><A HREF="creation-etude.html"><FONT SIZE=3 STYLE="font-size: 13pt">création +étude</FONT></A></P> +<P ALIGN=JUSTIFY STYLE="margin-left: 0.03cm; margin-right: 0.08cm"><BR><BR> +</P> +<P ALIGN=JUSTIFY STYLE="margin-left: 1.01cm; margin-right: 0.08cm"><A NAME="D"></A> +<A HREF="debit-apport.html"><FONT SIZE=3 STYLE="font-size: 13pt">débit +d'apport</FONT></A></P> +<P ALIGN=JUSTIFY STYLE="margin-left: 1.01cm; margin-right: 0.08cm"><A HREF="deversoir-lateral.html"><FONT SIZE=3 STYLE="font-size: 13pt">déversoir +latéral</FONT></A></P> +<P ALIGN=JUSTIFY STYLE="margin-left: 1.01cm; margin-right: 0.08cm"><BR><BR> +</P> +<P ALIGN=JUSTIFY STYLE="margin-left: 1.01cm; margin-right: 0.08cm"><A NAME="E"></A> +<A HREF="ecoulement-casiers.html"><FONT COLOR="#000080"><FONT SIZE=3 STYLE="font-size: 13pt"><U>écoulement +casier</U></FONT></FONT></A></P> +<P ALIGN=JUSTIFY STYLE="margin-left: 1.01cm; margin-right: 0.08cm"><A HREF="ecoulement-fluvial-non-permanent.html"><FONT SIZE=3 STYLE="font-size: 13pt">écoulement +fluvial non-permanent</FONT></A></P> +<P ALIGN=JUSTIFY STYLE="margin-left: 1.01cm; margin-right: 0.08cm"><A HREF="ecoulement-fluvial-permanent.html"><FONT SIZE=3 STYLE="font-size: 13pt">écoulement +fluvial permanent</FONT></A></P> +<P ALIGN=JUSTIFY STYLE="margin-left: 1.01cm; margin-right: 0.08cm"><A HREF="ecoulement-fluvial-transcritique.html"><FONT SIZE=3 STYLE="font-size: 13pt">écoulement +fluvial transcritique</FONT></A></P> +<P ALIGN=JUSTIFY STYLE="margin-left: 1.01cm; margin-right: 0.08cm"><A HREF="enregistrement-etude-cree.html"><FONT SIZE=3 STYLE="font-size: 13pt">enregistrement</FONT></A></P> +<P ALIGN=JUSTIFY STYLE="margin-left: 1.01cm; margin-right: 0.08cm"><A HREF="edition-reseau-hydraulique.html"><FONT SIZE=3 STYLE="font-size: 13pt">édition</FONT></A></P> +<P ALIGN=JUSTIFY STYLE="margin-left: 2.51cm; margin-right: 0.08cm"><A HREF="objets-reseau.html"><FONT SIZE=3 STYLE="font-size: 13pt">objet +réseau</FONT></A></P> +<P ALIGN=JUSTIFY STYLE="margin-left: 2.51cm; margin-right: 0.08cm"><A HREF="reseau-hydraulique.html"><FONT SIZE=3 STYLE="font-size: 13pt">réseau +hydraulique</FONT></A></P> +<P ALIGN=JUSTIFY STYLE="margin-left: 1.01cm; margin-right: 0.08cm"><A HREF="erreurs.html"><FONT SIZE=3 STYLE="font-size: 13pt">erreurs</FONT></A></P> +<P ALIGN=JUSTIFY STYLE="margin-left: 2.49cm; margin-right: 0.08cm"><A HREF="absence-affichage-bief.html"><FONT COLOR="#000080"><SPAN STYLE="text-decoration: none"><FONT SIZE=3 STYLE="font-size: 13pt"><SPAN STYLE="font-style: normal"><U><SPAN STYLE="font-weight: medium">absence +affichage abscisses bief</SPAN></U></SPAN></FONT></SPAN></FONT></A></P> +<P ALIGN=JUSTIFY STYLE="margin-left: 2.49cm; margin-right: 0.08cm"><A HREF="affectation-lois-hydrauliques-extremites-libres-reseau-hydraulique.html"><FONT COLOR="#000080"><SPAN STYLE="text-decoration: none"><FONT SIZE=3 STYLE="font-size: 13pt"><SPAN STYLE="font-style: normal"><U><SPAN STYLE="font-weight: medium">affectation +lois hydrauliques</SPAN></U></SPAN></FONT></SPAN></FONT></A></P> +<P ALIGN=JUSTIFY STYLE="margin-left: 2.49cm; margin-right: 0.08cm"><A HREF="choix-pas-de-temps.html"><FONT COLOR="#000080"><SPAN STYLE="text-decoration: none"><FONT SIZE=3 STYLE="font-size: 13pt"><SPAN STYLE="font-style: normal"><U><SPAN STYLE="font-weight: medium">choix +pas de temps</SPAN></U></SPAN></FONT></SPAN></FONT></A></P> +<P ALIGN=JUSTIFY STYLE="margin-left: 2.49cm; margin-right: 0.08cm"><A HREF="choix-temps-initial.html"><FONT COLOR="#000080"><SPAN STYLE="text-decoration: none"><FONT SIZE=3 STYLE="font-size: 13pt"><SPAN STYLE="font-style: normal"><U><SPAN STYLE="font-weight: medium">choix +temps initial </SPAN></U></SPAN></FONT></SPAN></FONT></A> +</P> +<P ALIGN=JUSTIFY STYLE="margin-left: 2.49cm; margin-right: 0.08cm"><A HREF="cotes-initiales-cassiers.html"><FONT COLOR="#000080"><SPAN STYLE="text-decoration: none"><FONT SIZE=3 STYLE="font-size: 13pt"><SPAN STYLE="font-style: normal"><U><SPAN STYLE="font-weight: medium">cotes +initiales casiers</SPAN></U></SPAN></FONT></SPAN></FONT></A></P> +<P ALIGN=JUSTIFY STYLE="margin-left: 2.49cm; margin-right: 0.08cm"><A HREF="duree-calcul-incompatible-avec-lois-hydrauliques.html"><FONT COLOR="#000080"><SPAN STYLE="text-decoration: none"><FONT SIZE=3 STYLE="font-size: 13pt"><SPAN STYLE="font-style: normal"><U><SPAN STYLE="font-weight: medium">durée +de calcul incompatible</SPAN></U></SPAN></FONT></SPAN></FONT></A></P> +<P ALIGN=JUSTIFY STYLE="margin-left: 2.49cm; margin-right: 0.08cm"><A HREF="erreur-choix-loi-hydraulique.html"><FONT COLOR="#000080"><SPAN STYLE="text-decoration: none"><FONT SIZE=3 STYLE="font-size: 13pt"><SPAN STYLE="font-style: normal"><U><SPAN STYLE="font-weight: medium">erreur +choix loi</SPAN></U></SPAN></FONT></SPAN></FONT></A></P> +<P ALIGN=JUSTIFY STYLE="margin-left: 2.49cm; margin-right: 0.08cm"><A HREF="erreur-conditions-initiales.html"><FONT COLOR="#000080"><SPAN STYLE="text-decoration: none"><FONT SIZE=3 STYLE="font-size: 13pt"><SPAN STYLE="font-style: normal"><U><SPAN STYLE="font-weight: medium">erreur +conditions initiales</SPAN></U></SPAN></FONT></SPAN></FONT></A></P> +<P ALIGN=JUSTIFY STYLE="margin-left: 2.49cm; margin-right: 0.08cm"><A HREF="minimum-deux-lois-hydrauliques-pour-un-calcul.html"><FONT COLOR="#000080"><SPAN STYLE="text-decoration: none"><FONT SIZE=3 STYLE="font-size: 13pt"><SPAN STYLE="font-style: normal"><U><SPAN STYLE="font-weight: medium">minimum +deux lois pour un calcul</SPAN></U></SPAN></FONT></SPAN></FONT></A></P> +<P ALIGN=JUSTIFY STYLE="margin-left: 2.49cm; margin-right: 0.08cm"><A HREF="oublis-coefficients-stickler.html"><FONT COLOR="#000080"><SPAN STYLE="text-decoration: none"><FONT SIZE=3 STYLE="font-size: 13pt"><SPAN STYLE="font-style: normal"><U><SPAN STYLE="font-weight: medium">oubli +coefficients de Stickler</SPAN></U></SPAN></FONT></SPAN></FONT></A></P> +<P ALIGN=JUSTIFY STYLE="margin-left: 2.49cm; margin-right: 0.08cm"><A HREF="pas-temps-noyau-transcritique.html"><FONT COLOR="#000080"><SPAN STYLE="text-decoration: none"><FONT SIZE=3 STYLE="font-size: 13pt"><SPAN STYLE="font-style: normal"><U><SPAN STYLE="font-weight: medium">pas +de temps avec noyau transcritique</SPAN></U></SPAN></FONT></SPAN></FONT></A></P> +<P ALIGN=JUSTIFY STYLE="margin-left: 0.98cm"><A HREF="exportation-resultats.html"><FONT SIZE=3 STYLE="font-size: 13pt">exportation +résultats</FONT></A></P> +<P ALIGN=JUSTIFY STYLE="margin-left: 0.98cm"><BR><BR> +</P> +<P ALIGN=JUSTIFY STYLE="margin-left: 0.98cm"><A NAME="I"></A><A HREF="importation-fichiers.html"><FONT SIZE=3 STYLE="font-size: 13pt">importation +des fichiers</FONT></A></P> +<P ALIGN=JUSTIFY STYLE="margin-left: 0.98cm"><A HREF="impression.html"><FONT SIZE=3 STYLE="font-size: 13pt">impression +des résultats graphiques</FONT></A></P> +<P ALIGN=JUSTIFY STYLE="margin-left: 0.98cm"><BR><BR> +</P> +<P ALIGN=JUSTIFY STYLE="margin-left: 0.98cm"><A NAME="L"></A><A HREF="lancement-calcul.html"><FONT SIZE=3 STYLE="font-size: 13pt">lancement +du calcul</FONT></A></P> +<P ALIGN=JUSTIFY STYLE="margin-left: 0.98cm"><A HREF="liaison%20casier.html"><FONT SIZE=3 STYLE="font-size: 13pt"><U>liaison +casier</U></FONT></A></P> +<P ALIGN=JUSTIFY STYLE="margin-left: 0.98cm"><A HREF="lois-hydrauliques.html"><FONT SIZE=3 STYLE="font-size: 13pt">lois +hydrauliques</FONT></A></P> +<P ALIGN=JUSTIFY STYLE="margin-left: 0.98cm"><BR><BR> +</P> +<P ALIGN=JUSTIFY STYLE="margin-left: 0.98cm"><A NAME="M"></A><A HREF="maillage.html"><FONT SIZE=3 STYLE="font-size: 13pt">maillage</FONT></A></P> +<P ALIGN=JUSTIFY STYLE="margin-left: 0.98cm"><A HREF="systeme-mascaret.html"><FONT SIZE=3 STYLE="font-size: 13pt">mascaret +(système)</FONT></A></P> +<P ALIGN=JUSTIFY STYLE="margin-left: 0.98cm"><BR><BR> +</P> +<P ALIGN=JUSTIFY STYLE="margin-left: 0.98cm"><A NAME="O"></A><A HREF="ouverture-reouverture.html"><FONT SIZE=3 STYLE="font-size: 13pt">ouverture-réouverture</FONT></A></P> +<P ALIGN=JUSTIFY STYLE="margin-left: 0.98cm"><BR><BR> +</P> +<P ALIGN=JUSTIFY STYLE="margin-left: 0.98cm"><A NAME="P"></A><A HREF="parametres-generaux.html"><FONT SIZE=3 STYLE="font-size: 13pt">paramètres +généraux</FONT></A></P> +<P ALIGN=JUSTIFY STYLE="margin-left: 2.49cm; margin-right: 0.08cm"><A HREF="laisses-de-crues.html"><FONT SIZE=3 STYLE="font-size: 13pt">laisses +de crues</FONT></A></P> +<P ALIGN=JUSTIFY STYLE="margin-left: 2.49cm; margin-right: 0.08cm"><A HREF="parametres-modelisation.html"><FONT SIZE=3 STYLE="font-size: 13pt">paramètres +de modélisation</FONT></A></P> +<P ALIGN=JUSTIFY STYLE="margin-left: 2.49cm; margin-right: 0.08cm"><A HREF="parametres-numeriques-casier.html"><FONT SIZE=3 STYLE="font-size: 13pt">paramètres +numériques casier</FONT></A></P> +<P ALIGN=JUSTIFY STYLE="margin-left: 2.49cm; margin-right: 0.08cm"><A HREF="zones-de-frottement.html"><FONT SIZE=3 STYLE="font-size: 13pt">zones +de frottement</FONT></A></P> +<P ALIGN=JUSTIFY STYLE="margin-left: 0.95cm"><A HREF="parametres-resultats.html"><FONT SIZE=3 STYLE="font-size: 13pt">paramètres +résultats</FONT></A></P> +<P ALIGN=JUSTIFY STYLE="margin-left: 0.95cm"><A HREF="parametres-temporels.html"><FONT SIZE=3 STYLE="font-size: 13pt">paramètres +temporels</FONT></A></P> +<P ALIGN=JUSTIFY STYLE="margin-left: 0.95cm"><A HREF="perte%20de%20charge%20locale.html"><FONT SIZE=3 STYLE="font-size: 13pt"><SPAN STYLE="font-style: normal"><U><SPAN STYLE="font-weight: medium">perte +de charge locale </SPAN></U></SPAN></FONT></A> +</P> +<P ALIGN=JUSTIFY STYLE="margin-left: 0.95cm"><A HREF="planimetrage.html"><FONT SIZE=3 STYLE="font-size: 13pt">planimétrage</FONT></A></P> +<P ALIGN=JUSTIFY STYLE="margin-left: 0.95cm"><A HREF="profils.html"><FONT SIZE=3 STYLE="font-size: 13pt">profil</FONT></A></P> +<P ALIGN=JUSTIFY STYLE="margin-left: 0.95cm"><BR><BR> +</P> +<P ALIGN=JUSTIFY STYLE="margin-left: 0.95cm"><A HREF="resultats-graphes.html"><FONT SIZE=3 STYLE="font-size: 13pt">résultats +graphiques</FONT></A></P> +<P ALIGN=JUSTIFY STYLE="margin-left: 0.95cm"><A NAME="R"></A><A HREF="resultats-resultats-generaux.html"><FONT SIZE=3 STYLE="font-size: 13pt">résultats +généraux</FONT></A></P> +<P ALIGN=JUSTIFY STYLE="margin-left: 0.95cm"><BR><BR> +</P> +<P ALIGN=JUSTIFY STYLE="margin-left: 0.95cm"><A NAME="S"></A><A HREF="systeme-mascaret.html"><FONT SIZE=3 STYLE="font-size: 13pt">système +Mascaret </FONT></A> +</P> +<P ALIGN=JUSTIFY STYLE="margin-left: 0.95cm"><BR><BR> +</P> +<P ALIGN=JUSTIFY STYLE="margin-left: 0.95cm"><A NAME="T"></A><A HREF="synthese-tableaux.html"><FONT SIZE=3 STYLE="font-size: 13pt">tableaux +de synthèse</FONT></A></P> +<P STYLE="margin-left: 0.95cm"><BR><BR> +</P> +<P STYLE="margin-left: 0.95cm"><BR><BR><BR> +</P> +<P STYLE="margin-left: 0.95cm"><BR><BR> +</P> +<P STYLE="margin-left: 0.95cm"><BR><BR> +</P> </BODY> -</HTML> +</HTML> \ No newline at end of file Modified: trunk/fudaa_devel/aide/src/mascaret/choix_noyau.html =================================================================== --- trunk/fudaa_devel/aide/src/mascaret/choix_noyau.html 2008-09-05 08:33:45 UTC (rev 3886) +++ trunk/fudaa_devel/aide/src/mascaret/choix_noyau.html 2008-09-05 09:26:32 UTC (rev 3887) @@ -1,62 +1,100 @@ -<!-- HEADER - begin --> -<html> -<head> - <title>Aide Oscar</title> - <link rel="StyleSheet" href="style.css" title="Style"> -</head> -<body bgcolor="white" leftmargin="10" topmargin="10" marginwidth="10" marginheight="10"> -<hr> -<table border="0" bgcolor="#DDDDDD" width="100%" cellspacing="0" cellpadding="3"> - <tr> - <td width="40"><img alt="Centre d'Etudes Techniques Maritimes et Fluviales" src="images/cetmef-logo.gif" border="1"></td> - <td width="40"><a name="top"><img alt="Logiciel Oscar" src="images/oscar-logo.gif" border="1"></a></td> - <td align="center"><h1>Aide <i>Oscar</i></h1></td> - <td width="60" align="center">[<a href="p-parametres.html"><b>Donn\xE9es</b></a>]</td> - <td width="70" align="center">[<a href="p-resultats.html"><b>R\xE9sultats</b></a>]</td> - <td bgcolor="white" width="50" align="center">[<a href="index.html"><b>Accueil</b></a>]</td> - </tr> -</table> -<hr> -<!-- HEADER - end --> - -<p class="titre1">Logiciel OSCAR - Page d'accueil de l'aide</p> - -<table width="100%"><tr><td> - -<p>Le logiciel OSCAR a pour principal objectif de permettre au projeteur de pr\xE9dimensionner un mur de sout\xE8nement souple (rideau de palplanches, paroi moul\xE9e) selon la m\xE9thode de calcul \xE0 la rupture.</p> - -<p>Il permet \xE9galement de d\xE9terminer uniquement les pressions horizontales s'exer\xE7ant en arri\xE8re d'un \xE9cran de sout\xE8nement (souple ou rigide), phase pr\xE9liminaire de la v\xE9rification de la stabilit\xE9 d'un tel ouvrage, sans forc\xE9ment aller jusqu'au bout du pr\xE9dimensionnement (d\xE9terminer la fiche et les efforts subis par le rideau et la nappe d'ancrage \xE9ventuelle).</p> - -<p>Le projeteur doit commencer par d\xE9finir les donn\xE9es de son projet (menu Fichier/Nouveau ou Fichier/Ouvrir) : </p> - -<ul> - <li><a href="p-parametres-sol.html">Caract\xE9ristiques des sols</a></li> - <li><a href="p-parametres-eau.html">Action de l'eau</a></li> - <li><a href="p-parametres-surcharges.html">Action \xE9ventuelle de surcharges</a> et/ou <a href="p-parametres-efforts.html">d'autres efforts</a></li> - <li><a href="p-parametres-ouvrage.html">Informations relatives \xE0 l'ouvrage</a></li> -</ul> - -</td><td valign="top"> - -<img class="img" src="images/img-01.jpg"> - -</td></tr></table> - -<p>Une fois les donn\xE9es entr\xE9es et valid\xE9es, le projeteur pourra lancer les calculs (menu Calculs/Lancer les calculs) et enfin visualiser les r\xE9sultats (<a href="p-resultats.html">menu R\xE9sultats</a>). Une <a href="p-notedecalculs2.html">note de calcul</a> compl\xE8te est automatiquement g\xE9n\xE9r\xE9e par le logiciel.</p> - -<p>L'aide technique sera constamment accessible avec la touche " F1 " de votre clavier. Elle explique les diff\xE9rentes fonctionnalit\xE9s des \xE9crans successifs et donne des recommandations pour choisir certains param\xE8tres. Pour imprimer l'int\xE9gralit\xE9 de l'aide technique, veuillez <a href="notice.html">lire cette page</a>.</p> - -<!-- FOOTER - begin --> -<br><br> -<hr> -<table border="0" bgcolor="#DDDDDD" width="100%" cellspacing="0" cellpadding="3"> - <tr> - <td><b><i>Tous droits r\xE9serv\xE9s. CETMEF (c)2003<i></b></td> - <td width="200" align="center">r\xE9dacteur : <a href="mailto:man...@eq...">Manuel Le Moine</a></td> - <td width="40" align="center">[<a href="#top">haut</a>]</td> - </tr> -</table> -<hr> -</body> -</html> -<!-- FOOTER - end --> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<HTML><HEAD><TITLE></TITLE> +<META http-equiv=CONTENT-TYPE content="text/html; charset=windows-1252"> +<META content="MSHTML 6.00.2800.1607" name=GENERATOR> +<META content=20080806;11332073 name=CREATED> +<META content=20080806;11335312 name=CHANGED> +<STYLE type=text/css>@page {size: 21cm 29.7cm; margin: 2cm; } +P { + MARGIN-BOTTOM: 0.21cm +} +H2 { + MARGIN-TOP: 0.64cm; MARGIN-BOTTOM: 0.21cm; COLOR: #999999 +} +H2.western { + FONT-SIZE: 14pt; FONT-FAMILY: "Arial", sans-serif +} +H2.cjk { + FONT-SIZE: 14pt; FONT-FAMILY: "Arial Unicode MS" +} +H2.ctl { + FONT-SIZE: 14pt; FONT-FAMILY: "Tahoma" +} +</STYLE> +</HEAD> +<BODY lang=fr-FR dir=ltr> +<H2 class=western>Cr\xE9ation d\x92une \xE9tude : choix du noyau de calcul.</H2> +<P style="MARGIN-BOTTOM: 0cm"><BR></P> +<P style="MARGIN-BOTTOM: 0cm" align=justify>La cr\xE9ation d\x92une nouvelle \xE9tude se +fait par le biais du choix du noyau de calcul. En effet, le seul menu accessible +au d\xE9but est celui concernant le noyau de calcul. Les autres menus seront +accessibles au fur et \xE0 mesure.</P> +<P><BR><BR></P> +<UL> + <LI value=1> + <P style="MARGIN-TOP: 0.21cm; widows: 0; orphans: 0" align=justify><FONT + face="Arial, sans-serif"><B>Hydraulique / Noyau Calcul.</B></FONT></P></LI></UL> +<P style="MARGIN-BOTTOM: 0cm"><IMG height=307 +src="noyau-calcul_fichiers/noyau-calcul__m247bda99.gif" width=247 align=left +border=0 name=Image200><BR clear=left><BR></P> +<P style="MARGIN-BOTTOM: 0cm"><BR></P> +<UL> + <LI value=1> + <P style="MARGIN-TOP: 0.21cm; widows: 0; orphans: 0" align=justify><FONT + face="Arial, sans-serif"><B>S\xE9lection du noyau de calcul +:</B></FONT></P></LI></UL> +<P style="MARGIN-BOTTOM: 0cm"><IMG height=157 +src="noyau-calcul_fichiers/noyau-calcul__7833935b.jpg" width=310 align=left +border=0 name=Image14><BR clear=left><BR></P> +<P style="MARGIN-BOTTOM: 0cm">Un menu d\xE9roulant sp\xE9cifiant les versions des +codes (mascaret 6.1 et 5.2) ainsi qu'un autre proposant les trois noyaux de +calcul appara\xEEt :</P> +<P style="MARGIN-BOTTOM: 0cm" align=justify><BR></P> +<UL> + <LI> + <P style="MARGIN-BOTTOM: 0cm" align=justify><B>\xAB Fluvial permanent \xBB + : </B>un \xE9coulement <A + href="file:///E:/Fudaa-Mascaret/aide/mascaret/lexique.html#fluvial" + target=_blank><FONT color=#000000>fluvial</FONT></A> <A + href="file:///E:/Fudaa-Mascaret/aide/mascaret/lexique.html#permanent" + target=_blank><FONT color=#000000>permanent</FONT></A> est un \xE9coulement pour + lequel les conditions limites sont constantes dans le temps, o\xF9 le nombre de + <A href="file:///E:/Fudaa-Mascaret/aide/mascaret/lexique.html#froude" + target=_blank><FONT color=#000000>Froude</FONT></A> en toute <FONT + color=#000000>section de calcul</FONT> et \xE0 tout temps est inf\xE9rieur \xE0 + 1.</P></LI></UL> +<P style="MARGIN-BOTTOM: 0cm" align=justify>En cas de passages localis\xE9s en +torrentiel, le code de calcul plafonne l\x92\xE9coulement au r\xE9gime critique, soit un +nombre de Froude \xE9gal \xE0 1.</P> +<UL> + <LI value=1> + <P style="MARGIN-BOTTOM: 0cm" align=justify><B>\xAB Fluvial non + permanent \xBB :</B> un \xE9coulement <FONT color=#000000>fluvial</FONT> non + <FONT color=#000000>permanent</FONT> est un \xE9coulement pour lequel les + conditions limites varient dans le temps, o\xF9 le nombre de <FONT + color=#000000>Froude</FONT> en toute <FONT color=#000000>section de + calcul</FONT> et \xE0 tout temps est inf\xE9rieur \xE0 1.</P></LI></UL> +<P style="MARGIN-BOTTOM: 0cm" align=justify>Si pour diff\xE9rentes raisons, +l\x92\xE9coulement non permanent n\x92est pas toujours fluvial, le code de calcul plante, +mais il est possible d\x92effectuer le calcul en choisissant le noyau de calcul +\xAB Transcritique \xBB.</P> +<UL> + <LI value=1> + <P style="MARGIN-BOTTOM: 0cm" align=justify><B>\xAB Transcritique \xBB + :</B> un \xE9coulement transcritique est un \xE9coulement pour lequel les conditions + limites peuvent varier dans le temps, o\xF9 le nombre de <FONT + color=#000000>Froude</FONT> en toute <FONT color=#000000>section de + calcul</FONT> et \xE0 tout temps peut \xEAtre inf\xE9rieur (r\xE9gime fluvial), sup\xE9rieur + (r\xE9gime torrentiel) ou \xE9gal (r\xE9gime critique) \xE0 1.</P></LI></UL> +<P style="MARGIN-BOTTOM: 0cm">Une fois, le noyau de calcul sp\xE9cifi\xE9 il suffit de +valider par le biais du bouton <IMG height=30 +src="noyau-calcul_fichiers/noyau-calcul__72f85af5.png" width=57 align=bottom +border=0 name=slide0001_image0131>.</P> +<P style="MARGIN-BOTTOM: 0cm"><BR></P> +<UL> + <LI value=1> + <P style="MARGIN-TOP: 0.21cm; widows: 0; orphans: 0" align=justify><FONT + face="Arial, sans-serif"><I>A noter qu\x92avec le noyau + \xAB transcritique \xBB, les zones de stockage ne sont pas prises en + compte dans le calcul.</I></FONT></P></LI></UL> +<P style="MARGIN-BOTTOM: 0cm"><BR></P></BODY></HTML> Modified: trunk/fudaa_devel/aide/src/mascaret/index.html =================================================================== --- trunk/fudaa_devel/aide/src/mascaret/index.html 2008-09-05 08:33:45 UTC (rev 3886) +++ trunk/fudaa_devel/aide/src/mascaret/index.html 2008-09-05 09:26:32 UTC (rev 3887) @@ -1,25 +1,66 @@ -<html> -<head> -<title>Aide en-ligne (Fudaa)</title> -<meta NAME="Author" CONTENT="Guillaume Desnoix"> -<link REL="StyleSheet" HREF="../aide.css" TITLE="Style"> -</head> -<body> -<p ALIGN=RIGHT>[ <a HREF="../">Accueil</a> -| <a HREF="./">Sommaire</a> -| <a HREF="alphabetique.html">Index</a> ]</p> -<h1>Aide en-ligne de FUDAA</h1> - -<small> -<b>Créé le :</b> 2000-07-04<br> -<b>Modifié le :</b> 2000-10-10<br> -</small> -<ul> -<li><a HREF="alphabetique.html">alphabetique</a></li> -<li><a HREF="p-rapport.html">p-rapport</a></li> -</ul> -<br><br> -</body> -</html> - - +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<HTML> +<HEAD> + <META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=windows-1252"> + <TITLE>Aide en-ligne (Fudaa)</TITLE> + <META NAME="GENERATOR" CONTENT="OpenOffice.org 2.4 (Win32)"> + <META NAME="AUTHOR" CONTENT="Guillaume Desnoix"> + <META NAME="CREATED" CONTENT="0;0"> + <META NAME="CHANGED" CONTENT="20080821;14292960"> + <STYLE TYPE="text/css"> + <!-- + @page { size: 21cm 29.7cm } + P { text-indent: 0.85cm; color: #000000; font-size: 12pt; font-weight: medium; text-align: justify } + H1 { border: none; padding: 0cm; color: #662200; text-align: justify } + A:link { color: #006699; font-weight: bold } + --> + </STYLE> +</HEAD> +<BODY LANG="fr-FR" TEXT="#000000" LINK="#006699" BGCOLOR="#ffffff" DIR="LTR"> +<DIV TYPE=HEADER> + <P ALIGN=LEFT STYLE="text-indent: 0cm"><BR><BR> + </P> +</DIV> +<P ALIGN=RIGHT STYLE="margin-right: 0.05cm"><FONT SIZE=3 STYLE="font-size: 13pt">[<A HREF="sommaire.html">Sommaire|</A> +<A HREF="indexAetT.html">Index </A>]</FONT></P> +<H1 ALIGN=CENTER STYLE="margin-left: 6.22cm; margin-right: 0.05cm"><FONT SIZE=6 STYLE="font-size: 28pt">Aide +en ligne de FUDAA</FONT></H1> +<P ALIGN=RIGHT STYLE="margin-right: 0.05cm"><FONT SIZE=2><B>Créé +le :</B> 2000-07-04<BR><B>Modifié le :</B> 2000-10-10</FONT></P> +<P ALIGN=JUSTIFY STYLE="text-indent: 0cm; font-weight: medium"><FONT SIZE=3 STYLE="font-size: 13pt">Le +système de modélisation Mascaret est composé +d’un code de calcul Mascaret et d’un ensemble d’outils +facilitant la construction et l’exploitation de modèles +hydrauliques unidimensionnels.</FONT></P> +<P ALIGN=JUSTIFY STYLE="text-indent: 0cm; font-weight: medium"><FONT SIZE=3 STYLE="font-size: 13pt">Il +regroupe l’ensemble des noyaux de calcul hydrauliques +unidimensionnels développés par le Laboratoire National +d’ Hydraulique et Environnement (LNHE) d’ EDF en +collaboration avec le Centre d’ Études Techniques +Maritimes et Fluviales (CETMEF) du Ministère de l' Équipement. +Ces noyaux sont développés en Fortran 90, et ont pour +objet principal de déterminer, sur la base des équations +de Saint-Venant, les niveaux d’eau et les débits dans un +ou plusieurs biefs. </FONT> +</P> +<P ALIGN=JUSTIFY STYLE="text-indent: 0cm; margin-bottom: 0cm; font-weight: medium"> +<FONT SIZE=3 STYLE="font-size: 13pt">Le système de +modélisation Mascaret présente un large éventail +de possibilités en réseaux ramifiés ou maillés, +pour des écoulements aussi bien fluviaux que transcritiques, +en régime permanent ou non permanent. Il permet de simuler des +phénomènes hydrauliques divers tels que la propagation +de crues ou les ondes de submersion résultant de rupture de +barrage. L’interface Fudaa-Mascaret fait partie intégrante +du système Mascaret, mais il existe également des +modules complémentaires utilisant une partie du code de calcul +Mascaret tel que Courlis pour le transport de sédiments ou +Tracer pour la qualité d’eau. Enfin de nombreux outils +de pré-traitement des données et de post-traitement des +résultats comme Opthyca ou Rubens sont disponibles.</FONT></P> +<P ALIGN=JUSTIFY STYLE="text-indent: 0cm; margin-bottom: 0cm"><BR> +</P> +<P ALIGN=CENTER STYLE="margin-left: 4.15cm; margin-right: 0.11cm; text-indent: -0.03cm; margin-bottom: 0cm"> +<IMG SRC="index_html_m609b8edf.gif" NAME="Image1" ALIGN=BOTTOM WIDTH=720 HEIGHT=467 BORDER=0></P> +</BODY> +</HTML> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <emm...@us...> - 2008-09-05 08:33:36
|
Revision: 3886 http://fudaa.svn.sourceforge.net/fudaa/?rev=3886&view=rev Author: emmanuel_martin Date: 2008-09-05 08:33:45 +0000 (Fri, 05 Sep 2008) Log Message: ----------- rend le zoom sur selection ind?\195?\169pendant du calque selectionn?\195?\169 et permet de zoomer correctement dans le cas de plusieurs selections simultan?\195?\169s. Modified Paths: -------------- branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/ZEbliCalquePanelController.java branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/ZEbliCalquesPanel.java branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/ZScene.java branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/edition/ZEditorDefault.java branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/edition/ZSceneEditor.java branches/FudaaModeleur_TC1Bis/fudaa_devel/fudaa/src/org/fudaa/fudaa/meshviewer/profile/MvProfileGridPalette.java branches/FudaaModeleur_TC1Bis/fudaa_devel/fudaa/src/org/fudaa/fudaa/modeleur/MdlSceneEditor.java branches/FudaaModeleur_TC1Bis/fudaa_devel/fudaa/src/org/fudaa/fudaa/sig/layer/FSigVisuPanel.java Added Paths: ----------- branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/action/SceneZoomOnSelectedAction.java Removed Paths: ------------- branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/action/CalqueZoomOnSelectedAction.java Modified: branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/ZEbliCalquePanelController.java =================================================================== --- branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/ZEbliCalquePanelController.java 2008-09-04 16:59:56 UTC (rev 3885) +++ branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/ZEbliCalquePanelController.java 2008-09-05 08:33:45 UTC (rev 3886) @@ -38,7 +38,7 @@ import org.fudaa.ebli.calque.action.CalqueActionInteraction; import org.fudaa.ebli.calque.action.CalqueActionTable; import org.fudaa.ebli.calque.action.CalqueSelectionAction; -import org.fudaa.ebli.calque.action.CalqueZoomOnSelectedAction; +import org.fudaa.ebli.calque.action.SceneZoomOnSelectedAction; import org.fudaa.ebli.commun.EbliActionInterface; import org.fudaa.ebli.commun.EbliActionPaletteAbstract; import org.fudaa.ebli.commun.EbliActionPaletteSpecAbstract; @@ -211,7 +211,7 @@ action.putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke('z')); navigationActionGroup_[i++] = action; - navigationActionGroup_[i++] = new CalqueZoomOnSelectedAction(pn_); + navigationActionGroup_[i++] = new SceneZoomOnSelectedAction(pn_); // VIEW NAVIGATION navigationActionGroup_[i] = new EbliActionSimple(EbliResource.EBLI.getString("Derni\xE8re vue"), EbliResource.EBLI @@ -271,7 +271,7 @@ action.setDefaultToolTip(tltTip); selectedActionGroup_[i++] = action; - action = new CalqueSelectionAction(this, EbliResource.EBLI.getIcon("polygone"), "POLYGON_SELECTION", + action = new CalqueSelectionAction(this, EbliResource.EBLI.getIcon("fleche-polygone"), "POLYGON_SELECTION", ZCalqueSelectionInteractionAbstract.POLYGONE); action.putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke('p')); action.setDefaultToolTip(tltTip); Modified: branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/ZEbliCalquesPanel.java =================================================================== --- branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/ZEbliCalquesPanel.java 2008-09-04 16:59:56 UTC (rev 3885) +++ branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/ZEbliCalquesPanel.java 2008-09-05 08:33:45 UTC (rev 3886) @@ -45,6 +45,7 @@ import org.fudaa.ctulu.image.CtuluLibImage; import org.fudaa.ebli.animation.EbliAnimationSourceAbstract; +import org.fudaa.ebli.calque.edition.ZEditorDefault; import org.fudaa.ebli.calque.edition.ZSceneEditor; import org.fudaa.ebli.commun.EbliActionInterface; import org.fudaa.ebli.commun.EbliComponentFactory; @@ -70,6 +71,8 @@ public class ZEbliCalquesPanel extends BuPanel implements EbliFilleCalquesInterface, BCalqueContextuelListener, CtuluImageProducer, BCalqueSaverTargetInterface, EbliFindable, ActionListener, ZSelectionListener { + protected ZEditorDefault gisEditor_; + protected class AnimAdapter extends EbliAnimationSourceAbstract { public AnimAdapter() { @@ -384,8 +387,20 @@ scene_.setRestrictedToCalqueActif(true); scene_.addSelectionListener(this); modelArbre_.addTreeModelListener(scene_); + gisEditor_ = createGisEditor(); } + protected ZEditorDefault createGisEditor() { + return new ZEditorDefault(this); + } + + /** + * @return retourne le ZEditorDefault poss\xE9d\xE9. + */ + public final ZEditorDefault getDefaultGisEditor() { + return gisEditor_; + } + public void setInfoText(final String _s) { if (CtuluLibString.isEmpty(_s)) { unsetInfoText(); @@ -819,6 +834,10 @@ } } + /** + * Cette fonctionnalit\xE9 est d\xE9plac\xE9e et \xE9tendue dans ZSceneEditor + * @deprecated + */ public void zoomOnSelected() { final BCalque cq = getCalqueActif(); if (cq instanceof ZCalqueAffichageDonneesInterface) { Modified: branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/ZScene.java =================================================================== --- branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/ZScene.java 2008-09-04 16:59:56 UTC (rev 3885) +++ branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/ZScene.java 2008-09-05 08:33:45 UTC (rev 3886) @@ -731,7 +731,7 @@ return new ZCalqueAffichageDonneesInterface[0]; } - private ZCalqueAffichageDonneesInterface[] getAllLayers() { + public ZCalqueAffichageDonneesInterface[] getAllLayers() { if (brefreshRequested_) { ArrayList<BCalque> lcqs=new ArrayList<BCalque>(); for ( BCalque cq : cqRoot_.getTousCalques()) { Deleted: branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/action/CalqueZoomOnSelectedAction.java =================================================================== --- branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/action/CalqueZoomOnSelectedAction.java 2008-09-04 16:59:56 UTC (rev 3885) +++ branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/action/CalqueZoomOnSelectedAction.java 2008-09-05 08:33:45 UTC (rev 3886) @@ -1,71 +0,0 @@ -package org.fudaa.ebli.calque.action; - -import java.awt.event.ActionEvent; -import java.awt.event.InputEvent; -import java.awt.event.KeyEvent; - -import javax.swing.Action; -import javax.swing.KeyStroke; -import javax.swing.event.TreeSelectionEvent; -import javax.swing.event.TreeSelectionListener; - -import org.fudaa.ebli.calque.ZCalqueAffichageDonneesInterface; -import org.fudaa.ebli.calque.ZEbliCalquesPanel; -import org.fudaa.ebli.calque.ZSelectionEvent; -import org.fudaa.ebli.calque.ZSelectionListener; -import org.fudaa.ebli.commun.EbliActionInterface; -import org.fudaa.ebli.commun.EbliActionSimple; -import org.fudaa.ebli.ressource.EbliResource; - -/** - * Une action pour un zoom sur la s\xE9lection. Est active si des objets sont selectionn\xE9s. - * @author Fred Deniger - * @version $Id: CalqueZoomOnSelectedAction.java,v 1.2.8.1 2008-02-27 17:16:12 bmarchan Exp $ - */ -public class CalqueZoomOnSelectedAction extends EbliActionSimple implements TreeSelectionListener, ZSelectionListener { - - final ZEbliCalquesPanel cqPn_; - - public CalqueZoomOnSelectedAction(final ZEbliCalquesPanel _pn) { - super(EbliResource.EBLI.getString("Centrer sur la s\xE9lection"), EbliResource.EBLI.getIcon("zoom-selection"), - "ZOOM_ON_SELECTED"); - putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_R, InputEvent.CTRL_DOWN_MASK)); - putValue(EbliActionInterface.SECOND_KEYSTROKE, KeyStroke.getKeyStroke(KeyEvent.VK_F5, InputEvent.CTRL_DOWN_MASK)); - setDefaultToolTip(EbliResource.EBLI.getString("Centrer la vue sur la s\xE9lection courante")); - cqPn_ = _pn; - cqPn_.getArbreCalqueModel().addTreeSelectionListener(this); - } - - public void actionPerformed(final ActionEvent _arg) { - cqPn_.zoomOnSelected(); - } - - public void updateStateBeforeShow() { - super.setEnabled(cqPn_.isZoomOnSelectedEnable()); - } - - private void updateEnableState() { - setEnabled(current_ != null && !current_.isSelectionEmpty()); - } - - ZCalqueAffichageDonneesInterface current_; - - public void selectionChanged(final ZSelectionEvent _evt) { - updateEnableState(); - } - - public void valueChanged(final TreeSelectionEvent _e) { - if (current_ != null) { - current_.removeSelectionListener(this); - } - final Object newSelected = _e.getPath().getLastPathComponent(); - if (newSelected instanceof ZCalqueAffichageDonneesInterface) { - current_ = (ZCalqueAffichageDonneesInterface) newSelected; - current_.addSelectionListener(this); - } else { - current_ = null; - } - updateEnableState(); - } - -} \ No newline at end of file Copied: branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/action/SceneZoomOnSelectedAction.java (from rev 3861, branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/action/CalqueZoomOnSelectedAction.java) =================================================================== --- branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/action/SceneZoomOnSelectedAction.java (rev 0) +++ branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/action/SceneZoomOnSelectedAction.java 2008-09-05 08:33:45 UTC (rev 3886) @@ -0,0 +1,65 @@ +package org.fudaa.ebli.calque.action; + +import java.awt.event.ActionEvent; +import java.awt.event.InputEvent; +import java.awt.event.KeyEvent; + +import javax.swing.Action; +import javax.swing.KeyStroke; +import javax.swing.event.TreeSelectionEvent; +import javax.swing.event.TreeSelectionListener; + +import org.fudaa.ebli.calque.ZCalqueAffichageDonneesInterface; +import org.fudaa.ebli.calque.ZEbliCalquesPanel; +import org.fudaa.ebli.calque.ZSelectionEvent; +import org.fudaa.ebli.calque.ZSelectionListener; +import org.fudaa.ebli.commun.EbliActionInterface; +import org.fudaa.ebli.commun.EbliActionSimple; +import org.fudaa.ebli.ressource.EbliResource; + +/** + * Une action pour un zoom sur la s\xE9lection. Est active si des objets sont selectionn\xE9s. + * @author Fred Deniger + * @version $Id: CalqueZoomOnSelectedAction.java,v 1.2.8.1 2008-02-27 17:16:12 bmarchan Exp $ + */ +public class SceneZoomOnSelectedAction extends EbliActionSimple implements ZSelectionListener { + + final ZEbliCalquesPanel cqPn_; + + public SceneZoomOnSelectedAction(final ZEbliCalquesPanel _pn) { + super(EbliResource.EBLI.getString("Centrer sur la s\xE9lection"), EbliResource.EBLI.getIcon("zoom-selection"), + "ZOOM_ON_SELECTED"); + putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_R, InputEvent.CTRL_DOWN_MASK)); + putValue(EbliActionInterface.SECOND_KEYSTROKE, KeyStroke.getKeyStroke(KeyEvent.VK_F5, InputEvent.CTRL_DOWN_MASK)); + setDefaultToolTip(EbliResource.EBLI.getString("Centrer la vue sur la s\xE9lection courante")); + cqPn_ = _pn; + cqPn_.getScene().addSelectionListener(this); + } + + /** + * Effectue le zoom sur selection + */ + public void actionPerformed(final ActionEvent _arg) { + cqPn_.getDefaultGisEditor().getSceneEditor().zoomOnSelected(); + } + + public void updateStateBeforeShow() { + super.setEnabled(cqPn_.isZoomOnSelectedEnable()); + } + + /** + * Active le bouton de zoom sur selection. + */ + private void updateEnableState() { + setEnabled(!cqPn_.getDefaultGisEditor().getSceneEditor().getScene().isSelectionEmpty()); + } + + public void selectionChanged(final ZSelectionEvent _evt) { + updateEnableState(); + } + + public void valueChanged(final TreeSelectionEvent _e) { + updateEnableState(); + } + +} \ No newline at end of file Modified: branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/edition/ZEditorDefault.java =================================================================== --- branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/edition/ZEditorDefault.java 2008-09-04 16:59:56 UTC (rev 3885) +++ branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/edition/ZEditorDefault.java 2008-09-05 08:33:45 UTC (rev 3886) @@ -169,7 +169,7 @@ } public ZEditorDefault(final ZEbliCalquesPanel _panel) { - this(_panel,new ZSceneEditor(_panel.getScene())); + this(_panel,new ZSceneEditor(_panel.getScene(), _panel)); } /** Modified: branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/edition/ZSceneEditor.java =================================================================== --- branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/edition/ZSceneEditor.java 2008-09-04 16:59:56 UTC (rev 3885) +++ branches/FudaaModeleur_TC1Bis/fudaa_devel/ebli/src/org/fudaa/ebli/calque/edition/ZSceneEditor.java 2008-09-05 08:33:45 UTC (rev 3886) @@ -11,7 +11,10 @@ import org.fudaa.ctulu.CtuluCommandContainer; import org.fudaa.ctulu.CtuluCommandManager; import org.fudaa.ctulu.CtuluUI; +import org.fudaa.ebli.calque.ZCalqueAffichageDonneesInterface; +import org.fudaa.ebli.calque.ZEbliCalquesPanel; import org.fudaa.ebli.calque.ZScene; +import org.fudaa.ebli.geometrie.GrBoite; /** * Regroupe les traitements d'\xE9dition de la scene. @@ -20,11 +23,13 @@ */ public class ZSceneEditor { protected ZScene scene_; + protected ZEbliCalquesPanel claquePanel_; protected CtuluCommandManager mng_; protected CtuluUI ui_; - public ZSceneEditor(ZScene _scene) { + public ZSceneEditor(ZScene _scene, ZEbliCalquesPanel _claquePanel) { scene_=_scene; + claquePanel_ = _claquePanel; } public void setUI(CtuluUI _ui) { @@ -114,4 +119,20 @@ String name=stel.getClassName()+"."+stel.getMethodName(); ui_.message("Not implemented", name, false); } + + /** + * Effectue un zoom sur la selection. Cette selection peut regrouper des + * \xE9l\xE9ments de diff\xE9rents calques. + */ + public void zoomOnSelected() { + GrBoite boite = null; + for (ZCalqueAffichageDonneesInterface cq : scene_.getAllLayers()) { + GrBoite boiteTmp = cq.getDomaineOnSelected(); + if(boite == null) boite = boiteTmp; + else boite.ajuste(boiteTmp); + } + if(boite != null) + claquePanel_.getVueCalque().changeRepere(this, boite); + } + } Modified: branches/FudaaModeleur_TC1Bis/fudaa_devel/fudaa/src/org/fudaa/fudaa/meshviewer/profile/MvProfileGridPalette.java =================================================================== --- branches/FudaaModeleur_TC1Bis/fudaa_devel/fudaa/src/org/fudaa/fudaa/meshviewer/profile/MvProfileGridPalette.java 2008-09-04 16:59:56 UTC (rev 3885) +++ branches/FudaaModeleur_TC1Bis/fudaa_devel/fudaa/src/org/fudaa/fudaa/meshviewer/profile/MvProfileGridPalette.java 2008-09-05 08:33:45 UTC (rev 3886) @@ -37,7 +37,7 @@ import org.fudaa.ebli.calque.ZSelectionEvent; import org.fudaa.ebli.calque.ZSelectionListener; import org.fudaa.ebli.calque.action.CalqueActionInteraction; -import org.fudaa.ebli.calque.action.CalqueZoomOnSelectedAction; +import org.fudaa.ebli.calque.action.SceneZoomOnSelectedAction; import org.fudaa.ebli.commun.BPalettePanelInterface; import org.fudaa.ebli.commun.EbliActionInterface; import org.fudaa.ebli.commun.EbliActionSimple; @@ -96,7 +96,7 @@ action.putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke('z')); navigationActionGroup_[i++] = action; - navigationActionGroup_[i++] = new CalqueZoomOnSelectedAction(pn_); + navigationActionGroup_[i++] = new SceneZoomOnSelectedAction(pn_); // VIEW NAVIGATION navigationActionGroup_[i] = new EbliActionSimple(EbliResource.EBLI.getString("Derni\xE8re vue"), EbliResource.EBLI Modified: branches/FudaaModeleur_TC1Bis/fudaa_devel/fudaa/src/org/fudaa/fudaa/modeleur/MdlSceneEditor.java =================================================================== --- branches/FudaaModeleur_TC1Bis/fudaa_devel/fudaa/src/org/fudaa/fudaa/modeleur/MdlSceneEditor.java 2008-09-04 16:59:56 UTC (rev 3885) +++ branches/FudaaModeleur_TC1Bis/fudaa_devel/fudaa/src/org/fudaa/fudaa/modeleur/MdlSceneEditor.java 2008-09-05 08:33:45 UTC (rev 3886) @@ -57,7 +57,7 @@ MdlRefinementPanel pnRaffinement_=null; public MdlSceneEditor(MdlVisuPanel _pn, ZScene _scene) { - super(_scene); + super(_scene, _pn); pn_=_pn; } Modified: branches/FudaaModeleur_TC1Bis/fudaa_devel/fudaa/src/org/fudaa/fudaa/sig/layer/FSigVisuPanel.java =================================================================== --- branches/FudaaModeleur_TC1Bis/fudaa_devel/fudaa/src/org/fudaa/fudaa/sig/layer/FSigVisuPanel.java 2008-09-04 16:59:56 UTC (rev 3885) +++ branches/FudaaModeleur_TC1Bis/fudaa_devel/fudaa/src/org/fudaa/fudaa/sig/layer/FSigVisuPanel.java 2008-09-05 08:33:45 UTC (rev 3886) @@ -30,6 +30,7 @@ import org.fudaa.ebli.calque.action.SceneRotationAction; import org.fudaa.ebli.calque.edition.ZCalqueDeplacement; import org.fudaa.ebli.calque.edition.ZCalqueEditionGroup; +import org.fudaa.ebli.calque.edition.ZEditorDefault; import org.fudaa.ebli.commun.EbliActionInterface; import org.fudaa.ebli.commun.EbliFormatter; import org.fudaa.ebli.commun.EbliSelectionMode; @@ -50,8 +51,6 @@ FSigAttibuteTypeManager attMng_; - FSigEditor gisEditor_; - ZCalqueGrille grille_; ThemeMenu theme_; @@ -112,7 +111,7 @@ } - protected FSigEditor createGisEditor() { + protected ZEditorDefault createGisEditor() { return new FSigEditor(this, getCmdMng()); } @@ -188,7 +187,7 @@ } public final FSigEditor getGisEditor() { - return gisEditor_; + return (FSigEditor) gisEditor_; } /** This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |