From: <fa...@us...> - 2009-03-12 16:16:04
|
Revision: 4526 http://fudaa.svn.sourceforge.net/fudaa/?rev=4526&view=rev Author: fargeix Date: 2009-03-12 16:15:41 +0000 (Thu, 12 Mar 2009) Log Message: ----------- Modifications diverses Refonde Modified Paths: -------------- trunk/fudaa_devel/ebli/src/org/fudaa/ebli/calque/BCalqueLegende.java trunk/fudaa_devel/ebli/src/org/fudaa/ebli/controle/BSelecteurAncre.java trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/commun/astuces.txt trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/refonde/RefondeFilleCalques.java trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/refonde/RefondeFillePost.java trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/refonde/RefondeImplementation.java trunk/fudaa_devel/fudaa-distrib/refonde/izpack/izpack_fudaa_refonde.xml Modified: trunk/fudaa_devel/ebli/src/org/fudaa/ebli/calque/BCalqueLegende.java =================================================================== --- trunk/fudaa_devel/ebli/src/org/fudaa/ebli/calque/BCalqueLegende.java 2009-03-10 18:01:18 UTC (rev 4525) +++ trunk/fudaa_devel/ebli/src/org/fudaa/ebli/calque/BCalqueLegende.java 2009-03-12 16:15:41 UTC (rev 4526) @@ -106,6 +106,16 @@ c_.anchor = GridBagConstraints.NORTHWEST; } else if (ancre_ == BSelecteurAncre.UP_RIGHT) { c_.anchor = GridBagConstraints.NORTHEAST; + } else if (ancre_ == BSelecteurAncre.UP_CENTRE) { + c_.anchor = GridBagConstraints.NORTH; + } else if (ancre_ == BSelecteurAncre.BOT_CENTRE) { + c_.anchor = GridBagConstraints.SOUTH; + } else if (ancre_ == BSelecteurAncre.MID_LEFT) { + c_.anchor = GridBagConstraints.WEST; + } else if (ancre_ == BSelecteurAncre.MID_RIGHT) { + c_.anchor = GridBagConstraints.EAST; + } else if (ancre_ == BSelecteurAncre.MID_CENTRE) { + c_.anchor = GridBagConstraints.CENTER; } add(pnLegendes_, c_); } Modified: trunk/fudaa_devel/ebli/src/org/fudaa/ebli/controle/BSelecteurAncre.java =================================================================== --- trunk/fudaa_devel/ebli/src/org/fudaa/ebli/controle/BSelecteurAncre.java 2009-03-10 18:01:18 UTC (rev 4525) +++ trunk/fudaa_devel/ebli/src/org/fudaa/ebli/controle/BSelecteurAncre.java 2009-03-12 16:15:41 UTC (rev 4526) @@ -45,7 +45,7 @@ int ancre_; public BSelecteurAncre() { - this(BOT_LEFT); + this(UP_RIGHT); } public static boolean isAncreBottom(final int _i) { @@ -123,7 +123,7 @@ ancre_ = BOT_CENTRE; } else if ((_x >= 0) && (_x < 17) && (_y >= 17) && (_y <= 34)) { ancre_ = MID_LEFT; - } else if ((_x > 34) && (_x < 52) && (_y >= 34) && (_y < 52)) { + } else if ((_x > 34) && (_x < 52) && (_y >= 17) && (_y <= 34)) { ancre_ = MID_RIGHT; } repaint(); Modified: trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/commun/astuces.txt =================================================================== --- trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/commun/astuces.txt 2009-03-10 18:01:18 UTC (rev 4525) +++ trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/commun/astuces.txt 2009-03-12 16:15:41 UTC (rev 4526) @@ -1,3 +1,3 @@ CTRL+Q est le raccourci pour sortir de l'application. -ALT+F2 pour obtenir les pr\xE9f\xE9rences. +ALT+F2 pour obtenir les preferences. Dans Edition/Preferences, vous pouvez personnaliser votre bureau. Modified: trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/refonde/RefondeFilleCalques.java =================================================================== --- trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/refonde/RefondeFilleCalques.java 2009-03-10 18:01:18 UTC (rev 4525) +++ trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/refonde/RefondeFilleCalques.java 2009-03-12 16:15:41 UTC (rev 4526) @@ -86,6 +86,8 @@ */ public RefondeFilleCalques(BuCommonInterface _app, BArbreCalque _ac) { super(null, _app); + this.setClosable(false); + this.setTitle("Fen\xEAtre principale"); addInternalFrameListener(_ac); app_= _app; BCalque cqRoot= getVueCalque().getCalque(); Modified: trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/refonde/RefondeFillePost.java =================================================================== --- trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/refonde/RefondeFillePost.java 2009-03-10 18:01:18 UTC (rev 4525) +++ trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/refonde/RefondeFillePost.java 2009-03-12 16:15:41 UTC (rev 4526) @@ -48,7 +48,8 @@ * @author Bertrand Marchand */ public class RefondeFillePost - extends EbliFilleCalques { + extends EbliFilleCalques + implements PropertyChangeListener { /** Num\xE9ro de fen\xE8tre, incr\xE9ment\xE9 \xE0 chaque cr\xE9ation. Ce num\xE9ro ne sert que dans la liste de fen\xE8tres, pour les diff\xE9rentier. */ @@ -111,7 +112,8 @@ // cqRoot.add(cqDesI); // Tools sp\xE9cifiques de la fen\xEAtre CalqueGuiHelper.CALQUE_OUTILS.addPropertyChangeListener( - getArbreCalqueModel()); + getArbreCalqueModel());//_ac.getArbreModel()); + CalqueGuiHelper.CALQUE_OUTILS.addPropertyChangeListener(this); buildTools(); getVueCalque().setBackground(Color.white); setTitle("Fen\xEAtre post " + (++numero_)); @@ -457,4 +459,10 @@ // for (int i=0; i<btTools_.length; i++) btTools_[i].setEnabled(false); // for (int i=0; i<cps.length; i++) cps[i].setEnabled(true); // } + + public void propertyChange(PropertyChangeEvent _evt) { + if (_evt.getPropertyName().equals("ancre")) { + cqLeg_.setAncre(((Integer)_evt.getNewValue()).intValue()); + } + } } Modified: trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/refonde/RefondeImplementation.java =================================================================== --- trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/refonde/RefondeImplementation.java 2009-03-10 18:01:18 UTC (rev 4525) +++ trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/refonde/RefondeImplementation.java 2009-03-12 16:15:41 UTC (rev 4526) @@ -89,8 +89,8 @@ new BuInformationsSoftware(); static { isRefonde_.name= "Refonde"; - isRefonde_.version= "5.15f-beta3"; - isRefonde_.date= "18-Fev-2009"; + isRefonde_.version= "5.15f-beta6"; + isRefonde_.date= "12-Mar-2009"; isRefonde_.rights= "1998-2000 GHN & CETMEF\n2000-2005 DeltaCAD & CETMEF"; isRefonde_.contact= "pie...@de..."; isRefonde_.license= "GPL2"; @@ -475,28 +475,40 @@ //------------------------------------------------------------------------------ public void actionPerformed(ActionEvent _evt) { String action= _evt.getActionCommand(); - if (action.equals("CREERPROJET")) + if (action.equals("CREERPROJET")) { cmdNouveauProjet(); - else if (action.equals("OUVRIRPROJET")) + return; + } + else if (action.equals("OUVRIRPROJET")) { cmdOuvrirProjet(); + return; + } else if (action.equals("OUVRIRFICHIERS")) cmdOuvrirFichiers(); - else if (action.equals("ENREGISTRERPROJET")) + else if (action.equals("ENREGISTRERPROJET")) { cmdEnregistrerProjet(); - else if (action.equals("ENREGISTRERPROJETSOUS")) + return; + } + else if (action.equals("ENREGISTRERPROJETSOUS")) { cmdEnregistrerProjetSous(); + return; + } else if (action.equals("ENREGISTRERFICHIERS")) cmdEnregistrerFichiers(); - else if (action.equals("FERMER")) + else if (action.equals("FERMER")) { cmdFermerProjet(); + return; + } else if (action.equals("PROPRIETESPROJET")) cmdProprietesProjet(); else if (action.equals("PROPRIETESBORD")) cmdProprietesBord(); else if (action.equals("PROPRIETESFOND")) cmdProprietesFond(); - else if (action.equals("MAILLER")) + else if (action.equals("MAILLER")) { cmdMailler(); + return; + } else if (action.equals("SUPPRIMERMAILLAGE")) cmdSupprimerMaillage(); else if (action.equals("CALCULERANGLES")) @@ -509,10 +521,15 @@ cmdModifierAngSup(); else if (action.equals("PARAMETRESCALCUL")) cmdParametresCalcul(); - else if (action.equals("CALCULER")) + else if (action.equals("CALCULER")) { cmdExecuterRefonde(); + return; + } else if (action.equals("REPRENDRECALCUL")) + { cmdReprendreCalcul(); + return; + } else if (action.equals("AFFICHERTRACEEXE")) cmdAfficherTraceExe(SERVEUR_REFONDE); else if (action.equals("PREFERENCE")) @@ -523,12 +540,18 @@ cmdVoirNumElements(((AbstractButton)_evt.getSource()).isSelected()); else if (action.equals("VUE3D")) cmdVue3D(); - else if (action.equals("EXPORTERREFONDECALCUL")) + else if (action.equals("EXPORTERREFONDECALCUL")) { cmdExporterRefondeCalcul(); - else if (action.equals("EXPORTERMAILLAGE")) + return; + } + else if (action.equals("EXPORTERMAILLAGE")) { cmdExporterPostfluxMaillage(); - else if (action.equals("IMPORTERMAILLAGE")) + return; + } + else if (action.equals("IMPORTERMAILLAGE")) { cmdImporterMaillage(); + return; + } else if (action.equals("CREERDIGUE")) cmdCreerDigue(); else if (action.equals("SUPPRIMERDIGUE")) @@ -552,8 +575,10 @@ cmdRecentrerNoeud(); else if (action.equals("RECENTRERELEMENT")) cmdRecentrerElement(); - else if (action.startsWith("REOUVRIR")) + else if (action.startsWith("REOUVRIR")) { cmdReouvrir(action); + return; + } // else if (action.equals("TESTER" )) cmdTester(); // else if (action.equals("TESTER2" )) cmdTester2(); else if ( @@ -632,8 +657,8 @@ if (save) oprEnregistrerProjet(); // Nettoyage du desktop + clearDeskTop(); removeInternalFrame(fnCalques_); - clearDeskTop(); projet= null; // Selection de la g\xE9om\xE9trie \xE0 ouvrir RefondeDialogPanneau di; @@ -792,8 +817,8 @@ oprEnregistrerProjet(); // Nettoyage du desktop + clearDeskTop(); removeInternalFrame(fnCalques_); - clearDeskTop(); projet= null; oprOuvrirProjet(fichier); @@ -835,8 +860,8 @@ if (save) oprEnregistrerProjet(); // Nettoyage du desktop + clearDeskTop(); removeInternalFrame(fnCalques_); - clearDeskTop(); projet= null; // Selection du projet \xE0 ouvrir if (diProjet_ == null) { @@ -901,12 +926,12 @@ // setEnabledForAction("RECENTRERNOEUD" ,false); // setEnabledForAction("RECENTRERELEMENT" ,false); // setEnabledForAction("FERMER" ,false); - clearDeskTop(); + // clearDeskTop(); projet= new RefondeProjet(); projet.addMessageListener(this); projet.ouvrir(_fichier); // projet=RefondeProjet.ouvrir(fichier); - fnCalques_.initialise(projet); + fnCalques_.initialise(projet); // Blocage \xE0 corriger dans l'initialisation des calques addInternalFrame(fnCalques_); fnCalques_.restaurer(); statusBar.setProgression(100); @@ -1188,8 +1213,8 @@ try { if (save) oprEnregistrerProjet(); + clearDeskTop(); removeInternalFrame(fnCalques_); - clearDeskTop(); projet= null; // setEnabledForAction("OUVRIRFICHIERS" ,false); // setEnabledForAction("ENREGISTRERPROJET" ,false); Modified: trunk/fudaa_devel/fudaa-distrib/refonde/izpack/izpack_fudaa_refonde.xml =================================================================== --- trunk/fudaa_devel/fudaa-distrib/refonde/izpack/izpack_fudaa_refonde.xml 2009-03-10 18:01:18 UTC (rev 4525) +++ trunk/fudaa_devel/fudaa-distrib/refonde/izpack/izpack_fudaa_refonde.xml 2009-03-12 16:15:41 UTC (rev 4526) @@ -17,7 +17,7 @@ --> <info> <appname>Fudaa-Refonde</appname> - <appversion>5.15f-beta3</appversion> + <appversion>5.15f-beta6</appversion> <authors> <author name="Bertrand MARCHAND" email="de...@fu..."/> </authors> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |