|
From: <de...@us...> - 2003-09-02 09:01:09
|
Update of /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/tr
In directory sc8-pr-cvs1:/tmp/cvs-serv12326
Modified Files:
TrFilleVisu.java TrImplementation.java TrProjet.java
Log Message:
Support des bords dans les calques
Index: TrFilleVisu.java
===================================================================
RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/tr/TrFilleVisu.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** TrFilleVisu.java 22 Aug 2003 16:02:23 -0000 1.1
--- TrFilleVisu.java 2 Sep 2003 09:00:34 -0000 1.2
***************
*** 12,18 ****
import org.fudaa.dodico.h2d.H2dParametres;
- import org.fudaa.dodico.h2d.reflux.H2dRefluxParametres;
import org.fudaa.ebli.calque.BCalque;
import org.fudaa.ebli.calque.BVueCalque;
import org.fudaa.ebli.calque.ZEbliFilleCalques;
--- 12,18 ----
import org.fudaa.dodico.h2d.H2dParametres;
import org.fudaa.ebli.calque.BCalque;
+ import org.fudaa.ebli.calque.BGroupeCalque;
import org.fudaa.ebli.calque.BVueCalque;
import org.fudaa.ebli.calque.ZEbliFilleCalques;
***************
*** 37,48 ****
true,
true);
parametres_= _params;
! BVueCalque vue= getVueCalque();
! vue.setBackground(Color.white);
! vue.getCalque().add(new TrCalqueMaillage(parametres_.getMaillage()));
}
public BCalque getCalque() {
! return getVueCalque().getCalque();
}
--- 37,54 ----
true,
true);
+ setClosable(true);
parametres_= _params;
! setModeVisible(true);
! getVueCalque().setBackground(Color.white);
!
! }
!
! protected void addCqMaillage(){
! gcDonnees_.add(new TrCalqueMaillage(parametres_.getMaillage()));
}
+
public BCalque getCalque() {
! return gcDonnees_;
}
Index: TrImplementation.java
===================================================================
RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/tr/TrImplementation.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** TrImplementation.java 22 Aug 2003 16:02:23 -0000 1.5
--- TrImplementation.java 2 Sep 2003 09:00:35 -0000 1.6
***************
*** 66,71 ****
static {
isRt_.name= "Tr";
! isRt_.version= "0.02";
! isRt_.date= "18-juin-2003";
isRt_.rights= "Tous droits réservés. CETMEF (c)2003";
isRt_.contact= "fre...@eq...";
--- 66,71 ----
static {
isRt_.name= "Tr";
! isRt_.version= "0.03";
! isRt_.date= "01-septembre-2003";
isRt_.rights= "Tous droits réservés. CETMEF (c)2003";
isRt_.contact= "fre...@eq...";
***************
*** 129,134 ****
protected void ouvrirId(String _id) {
! if (_id
! .equals(TelemacDicoFileFormat.DICO_PROJET_ID)) {
TrTelemacImplHelper h=
(TrTelemacImplHelper)TrImplHelper.getImplHelper(
--- 129,133 ----
protected void ouvrirId(String _id) {
! if (_id.equals(TelemacDicoFileFormat.DICO_PROJET_ID)) {
TrTelemacImplHelper h=
(TrTelemacImplHelper)TrImplHelper.getImplHelper(
***************
*** 186,192 ****
} else if ("MODIFIER_CHAINE".equals(action)) {
changeChaineCalcul();
} else if (action.startsWith(TrExport.EXPORT_PREF)) {
projetCourant().export(action);
-
} else {
super.actionPerformed(_evt);
--- 185,194 ----
} else if ("MODIFIER_CHAINE".equals(action)) {
changeChaineCalcul();
+ } else if ("PROJET_FENETRE_GENERAL".equals(action)) {
+ projetCourant().showGeneralFille();
+ } else if ("PROJET_FENETRE_VISU".equals(action)) {
+ projetCourant().showVisuFille();
} else if (action.startsWith(TrExport.EXPORT_PREF)) {
projetCourant().export(action);
} else {
super.actionPerformed(_evt);
***************
*** 196,200 ****
public BuMenu buildProjetMenu() {
BuMenu projet= new BuDynamicMenu("Projet", "PROJET") {
- private boolean built_;
public boolean isActive() {
return true;
--- 198,201 ----
***************
*** 202,212 ****
public void build() {
! if (this.getMenuComponentCount() == 0) {
! BuMenuItem it= new BuMenuItem("Changer chaîne de calcul");
! it.setActionCommand("MODIFIER_CHAINE");
! add(it);
it.addActionListener(TrImplementation.this);
! built_= true;
}
}
};
--- 203,225 ----
public void build() {
! removeAll();
! BuMenuItem it;
! if (projetCourant() != null) {
! it= new BuMenuItem("Données générales");
! it.setActionCommand("PROJET_FENETRE_GENERAL");
it.addActionListener(TrImplementation.this);
! add(it);
! if (projetCourant().containsVisuFille()) {
! it= new BuMenuItem("Visualisation");
! it.setActionCommand("PROJET_FENETRE_VISU");
! it.addActionListener(TrImplementation.this);
! add(it);
! }
! addSeparator();
}
+ it= new BuMenuItem("Changer chaîne de calcul");
+ it.setActionCommand("MODIFIER_CHAINE");
+ add(it);
+ it.addActionListener(TrImplementation.this);
}
};
***************
*** 313,323 ****
}
projectManager_.addProjet(_o);
! _o.active();
setEnabledForAction("ENREGISTRER", true);
setEnabledForAction("ENREGISTRERSOUS", true);
setEnabledForAction("ENREGISTRERCOPIE", true);
- setEnabledForAction("FERMER", true);
setEnabledForAction("EXPORTER", true);
!
}
--- 326,335 ----
}
projectManager_.addProjet(_o);
! setEnabledForAction("FERMER", true);
setEnabledForAction("ENREGISTRER", true);
setEnabledForAction("ENREGISTRERSOUS", true);
setEnabledForAction("ENREGISTRERCOPIE", true);
setEnabledForAction("EXPORTER", true);
! _o.active();
}
Index: TrProjet.java
===================================================================
RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/tr/TrProjet.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** TrProjet.java 22 Aug 2003 16:02:23 -0000 1.5
--- TrProjet.java 2 Sep 2003 09:00:35 -0000 1.6
***************
*** 39,42 ****
--- 39,49 ----
public FudaaCalculAction getCalculActions();
public void export(String _actionCommand);
+
+ public void showGeneralFille();
+
+ public void showVisuFille();
+
+ public boolean containsVisuFille();
+
}
|