[Pixelle-commit] SF.net SVN: pixelle: [168] trunk/pixelle/src/com/mebigfatguy/pixelle
Brought to you by:
dbrosius
|
From: <dbr...@us...> - 2008-07-16 03:19:55
|
Revision: 168
http://pixelle.svn.sourceforge.net/pixelle/?rev=168&view=rev
Author: dbrosius
Date: 2008-07-15 20:20:04 -0700 (Tue, 15 Jul 2008)
Log Message:
-----------
add delete button
Modified Paths:
--------------
trunk/pixelle/src/com/mebigfatguy/pixelle/PixelleBundle.java
trunk/pixelle/src/com/mebigfatguy/pixelle/dialogs/PixelleExpressionDialog.java
trunk/pixelle/src/com/mebigfatguy/pixelle/resources/pixelle.properties
Modified: trunk/pixelle/src/com/mebigfatguy/pixelle/PixelleBundle.java
===================================================================
--- trunk/pixelle/src/com/mebigfatguy/pixelle/PixelleBundle.java 2008-07-16 03:09:36 UTC (rev 167)
+++ trunk/pixelle/src/com/mebigfatguy/pixelle/PixelleBundle.java 2008-07-16 03:20:04 UTC (rev 168)
@@ -54,6 +54,7 @@
public static final String TRANSFORM_ITEM = "menu.transform.transform";
public static final String GRAPHIC_FILES = "label.graphic_files";
public static final String SAVE_ALGORITHM = "save.algorithm";
+ public static final String DELETE_ALGORITHM = "delete.algorithm";
public static final String RED_FORMULA = "formula.red";
public static final String GREEN_FORMULA = "formula.green";
public static final String BLUE_FORMULA = "formula.blue";
Modified: trunk/pixelle/src/com/mebigfatguy/pixelle/dialogs/PixelleExpressionDialog.java
===================================================================
--- trunk/pixelle/src/com/mebigfatguy/pixelle/dialogs/PixelleExpressionDialog.java 2008-07-16 03:09:36 UTC (rev 167)
+++ trunk/pixelle/src/com/mebigfatguy/pixelle/dialogs/PixelleExpressionDialog.java 2008-07-16 03:20:04 UTC (rev 168)
@@ -88,6 +88,7 @@
JPopupMenu savedAlgorithms;
JButton save;
+ JButton delete;
boolean clickedOK = false;
public PixelleExpressionDialog(PixelleFrame owner) {
@@ -118,7 +119,8 @@
cancel = new JButton(PixelleBundle.getString(PixelleBundle.CANCEL));
reset = new JButton(PixelleBundle.getString(PixelleBundle.RESET));
save = new JButton(PixelleBundle.getString(PixelleBundle.SAVE_ALGORITHM));
- GuiUtils.sizeUniformly(GuiUtils.Sizing.Both, new JComponent[] {ok, cancel, reset, save});
+ delete = new JButton(PixelleBundle.getString(PixelleBundle.DELETE_ALGORITHM));
+ GuiUtils.sizeUniformly(GuiUtils.Sizing.Both, new JComponent[] {ok, cancel, reset, save, delete});
cp.setLayout(new BorderLayout(4, 4));
@@ -183,6 +185,8 @@
ctlPanel.add(reset);
ctlPanel.add(Box.createHorizontalStrut(10));
ctlPanel.add(save);
+ ctlPanel.add(Box.createHorizontalStrut(10));
+ ctlPanel.add(delete);
ctlPanel.add(Box.createHorizontalGlue());
ctlPanel.add(ok);
ctlPanel.add(Box.createHorizontalStrut(10));
Modified: trunk/pixelle/src/com/mebigfatguy/pixelle/resources/pixelle.properties
===================================================================
--- trunk/pixelle/src/com/mebigfatguy/pixelle/resources/pixelle.properties 2008-07-16 03:09:36 UTC (rev 167)
+++ trunk/pixelle/src/com/mebigfatguy/pixelle/resources/pixelle.properties 2008-07-16 03:20:04 UTC (rev 168)
@@ -59,6 +59,7 @@
title.algorithms = Pixel Algorithms
label.algorithm = Algorithm
save.algorithm = Save
+delete.algorithm = Delete
label.red = (Red)
label.green = (Green)
label.blue = (Blue)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|