Homogenize Editor and Xcos toolbar icons
Vincent COUVERT [Wed, 9 Dec 2009 16:18:01 +0000 (17:18 +0100)]
scilab/modules/xcos/Makefile.am
scilab/modules/xcos/Makefile.in
scilab/modules/xcos/images/icons/document-save-as.png [new file with mode: 0644]
scilab/modules/xcos/images/icons/document-save.png [deleted file]
scilab/modules/xcos/images/icons/media-floppy.png [new file with mode: 0644]
scilab/modules/xcos/src/java/org/scilab/modules/xcos/XcosTab.java
scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/SaveAction.java

index 1ea9537..0205cd2 100644 (file)
@@ -165,7 +165,7 @@ images/blocks/VoltageSensor.gif \
 images/icons/document-new.png \
 images/icons/document-open.png \
 images/icons/document-print.png \
-images/icons/document-save.png \
+images/icons/document-save-as.png \
 images/icons/edit-copy.png \
 images/icons/edit-cut.png \
 images/icons/edit-delete.png \
@@ -174,6 +174,7 @@ images/icons/edit-redo.png \
 images/icons/edit-undo.png \
 images/icons/list-add.png \
 images/icons/list-remove.png \
+images/icons/media-floppy.png \
 images/icons/media-playback-start.png \
 images/icons/process-stop.png \
 images/icons/view-fullscreen.png \
index 6e89118..33106ca 100644 (file)
@@ -548,7 +548,7 @@ images/blocks/VoltageSensor.gif \
 images/icons/document-new.png \
 images/icons/document-open.png \
 images/icons/document-print.png \
-images/icons/document-save.png \
+images/icons/document-save-as.png \
 images/icons/edit-copy.png \
 images/icons/edit-cut.png \
 images/icons/edit-delete.png \
@@ -557,6 +557,7 @@ images/icons/edit-redo.png \
 images/icons/edit-undo.png \
 images/icons/list-add.png \
 images/icons/list-remove.png \
+images/icons/media-floppy.png \
 images/icons/media-playback-start.png \
 images/icons/process-stop.png \
 images/icons/view-fullscreen.png \
diff --git a/scilab/modules/xcos/images/icons/document-save-as.png b/scilab/modules/xcos/images/icons/document-save-as.png
new file mode 100644 (file)
index 0000000..9bed143
Binary files /dev/null and b/scilab/modules/xcos/images/icons/document-save-as.png differ
diff --git a/scilab/modules/xcos/images/icons/document-save.png b/scilab/modules/xcos/images/icons/document-save.png
deleted file mode 100644 (file)
index 22ff495..0000000
Binary files a/scilab/modules/xcos/images/icons/document-save.png and /dev/null differ
diff --git a/scilab/modules/xcos/images/icons/media-floppy.png b/scilab/modules/xcos/images/icons/media-floppy.png
new file mode 100644 (file)
index 0000000..f1d7a19
Binary files /dev/null and b/scilab/modules/xcos/images/icons/media-floppy.png differ
index 9cacc36..fac6624 100644 (file)
@@ -384,6 +384,7 @@ public class XcosTab extends SwingScilabTab implements Tab {
     
     private PushButton openAction;
     private PushButton saveAction;
+    private PushButton saveAsAction;
     private PushButton printAction;
     private PushButton newDiagramAction;
     private PushButton deleteAction;
@@ -649,8 +650,13 @@ public class XcosTab extends SwingScilabTab implements Tab {
 
        openAction = OpenAction.createButton(scilabGraph);
        toolBar.add(openAction);
+       
+       toolBar.addSeparator();
+       
        saveAction = SaveAction.createButton(scilabGraph);
        toolBar.add(saveAction);
+       saveAsAction = SaveAsAction.createButton(scilabGraph);
+       toolBar.add(saveAsAction);
 
        toolBar.addSeparator();
 
@@ -797,6 +803,7 @@ public class XcosTab extends SwingScilabTab implements Tab {
        help.setEnabled(status);
        openAction.setEnabled(status);
        saveAction.setEnabled(status);
+       saveAsAction.setEnabled(status);
        printAction.setEnabled(status);
        newDiagramAction.setEnabled(status);
        deleteAction.setEnabled(status);
index 6386a6c..11b72a1 100644 (file)
@@ -56,7 +56,7 @@ public final class SaveAction extends DefaultAction {
         * @return the button
         */
        public static PushButton createButton(ScilabGraph scilabGraph) {
-               return createButton(XcosMessages.SAVE, "document-save.png", new SaveAction(scilabGraph));
+               return createButton(XcosMessages.SAVE, "media-floppy.png", new SaveAction(scilabGraph));
        }
        
        /**