Update of /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/refonde
In directory sc8-pr-cvs1:/tmp/cvs-serv28954/src/org/fudaa/fudaa/refonde
Modified Files:
RefondeImplementation.java RefondeFillePost.java
RefondeFilleMiseEnPage.java RefondeFilleCalques.java
Log Message:
Mise en place de la préférence OUTILS_SPECIFIQUES_EN_COLONNE
Index: RefondeImplementation.java
===================================================================
RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/refonde/RefondeImplementation.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** RefondeImplementation.java 19 Feb 2003 09:38:42 -0000 1.2
--- RefondeImplementation.java 20 Feb 2003 14:29:58 -0000 1.3
***************
*** 24,27 ****
--- 24,28 ----
import org.fudaa.ebli.volume.VolumePreferencesPanel;
import org.fudaa.ebli.dialog.BFileChooser;
+ import org.fudaa.ebli.commun.EbliCalquesPreferencesPanel;
import org.fudaa.ebli.repere.*;
***************
*** 1615,1618 ****
--- 1616,1620 ----
preferences_.addTab(new BuLookPreferencesPanel (this));
preferences_.addTab(new BuDesktopPreferencesPanel (this));
+ preferences_.addTab(new EbliCalquesPreferencesPanel(this));
preferences_.addTab(new BuBrowserPreferencesPanel (this));
if (!(getApp() instanceof BuApplet))
Index: RefondeFillePost.java
===================================================================
RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/refonde/RefondeFillePost.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** RefondeFillePost.java 30 Jan 2003 13:09:43 -0000 1.1
--- RefondeFillePost.java 20 Feb 2003 14:29:58 -0000 1.2
***************
*** 123,126 ****
--- 123,127 ----
setFrameIcon(RefondeResource.REFONDE.getIcon("post"));
setBoutonRepereVisible(false);
+ setBoutonsStandardVisible(false);
setSelectionVisible(false);
setClosable(true);
***************
*** 236,242 ****
/**
! * Outils spécifiques de la fenêtre.
*/
public JComponent[] getSpecificTools() {
// La valeur de DesktopPane n'est validée qu'une fois la fenêtre ajoutée
--- 237,244 ----
/**
! * Retourne les outils spécifiques
*/
public JComponent[] getSpecificTools() {
+ JComponent[] cpssuper=super.getSpecificTools();
// La valeur de DesktopPane n'est validée qu'une fois la fenêtre ajoutée
***************
*** 247,255 ****
try {
for (int i=0; i<btTools_.length; i++)
! ((BuPopupButton)btTools_[i]).setDesktop((BuDesktop)getDesktopPane());
}
catch( ClassCastException e ) {}
! return btTools_;
}
--- 249,262 ----
try {
for (int i=0; i<btTools_.length; i++)
! if (btTools_[i]!=null)
! ((BuPopupButton)btTools_[i]).setDesktop((BuDesktop)getDesktopPane());
}
catch( ClassCastException e ) {}
! JComponent[] cps=new JComponent[cpssuper.length+btTools_.length];
! System.arraycopy(cpssuper,0,cps,0,cpssuper.length);
! System.arraycopy(btTools_,0,cps,cpssuper.length,btTools_.length);
!
! return cps;
}
Index: RefondeFilleMiseEnPage.java
===================================================================
RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/refonde/RefondeFilleMiseEnPage.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** RefondeFilleMiseEnPage.java 30 Jan 2003 13:09:44 -0000 1.1
--- RefondeFilleMiseEnPage.java 20 Feb 2003 14:29:58 -0000 1.2
***************
*** 204,207 ****
--- 204,208 ----
setFrameIcon(BuResource.BU.getIcon("PREVISUALISER"));
setBoutonRepereVisible(false);
+ setBoutonsStandardVisible(false);
setSelectionVisible(true);
}
***************
*** 333,336 ****
--- 334,338 ----
*/
public JComponent[] getSpecificTools() {
+ JComponent[] cpssuper=super.getSpecificTools();
// La valeur de DesktopPane n'est validée qu'une fois la fenêtre ajoutée
***************
*** 345,357 ****
catch( ClassCastException e ) {}
! JComponent[] r=new JComponent[btTools_.length+3];
! System.arraycopy(btTools_,0,r,0,btTools_.length);
! r[r.length-1]=btRetailler_;
! r[r.length-2]=btDeplacer_;
! r[r.length-3]=btForme_;
((BuPopupButton)btForme_).setDesktop((BuDesktop)getDesktopPane());
! return r;
}
--- 347,362 ----
catch( ClassCastException e ) {}
! JComponent[] cps=new JComponent[cpssuper.length+btTools_.length+3];
! System.arraycopy(cpssuper,0,cps,0,cpssuper.length);
! System.arraycopy(btTools_,0,cps,cpssuper.length,btTools_.length);
!
! // Traitement spécial de ces boutons pour ne pas interferer avec updateTools()
! cps[cps.length-1]=btRetailler_;
! cps[cps.length-2]=btDeplacer_;
! cps[cps.length-3]=btForme_;
((BuPopupButton)btForme_).setDesktop((BuDesktop)getDesktopPane());
! return cps;
}
Index: RefondeFilleCalques.java
===================================================================
RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/refonde/RefondeFilleCalques.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** RefondeFilleCalques.java 19 Feb 2003 09:23:31 -0000 1.2
--- RefondeFilleCalques.java 20 Feb 2003 14:29:58 -0000 1.3
***************
*** 164,167 ****
--- 164,168 ----
buildTools();
associeBoutonCalqueInteraction(cqFormeI,btCreePoreux_);
+ associeBoutonCalqueInteraction(cqContoursI,btSel2Pts_);
_ac.refresh();
***************
*** 170,181 ****
setBoutonRepereVisible(false);
setBoutonsStandardVisible(false);
-
- // Bouton supplémentaire de sélection de contours par 2 points
- btSel2Pts_=
- new BuToggleButton(RefondeResource.REFONDE.getIcon("select-contours.gif"));
- btSel2Pts_.setToolTipText("Sélection des frontières par 2 points");
- btSel2Pts_.setEnabled(false);
- addBouton(btSel2Pts_);
- associeBoutonCalqueInteraction(cqContoursI,btSel2Pts_);
}
--- 171,174 ----
***************
*** 230,233 ****
--- 223,234 ----
private void buildTools() {
Vector vcps=new Vector();
+
+ // Bouton supplémentaire de sélection de contours par 2 points
+ btSel2Pts_=
+ new BuToggleButton(RefondeResource.REFONDE.getIcon("select-contours.gif"));
+ btSel2Pts_.setToolTipText("Sélection des frontières par 2 points");
+ btSel2Pts_.setEnabled(false);
+ vcps.add(btSel2Pts_);
+ // addBouton(btSel2Pts_);
// Separator
|