[Pixelle-commit] SF.net SVN: pixelle:[207] trunk/pixelle/src/com/mebigfatguy/pixelle
Brought to you by:
dbrosius
|
From: <dbr...@us...> - 2008-11-20 07:41:36
|
Revision: 207
http://pixelle.svn.sourceforge.net/pixelle/?rev=207&view=rev
Author: dbrosius
Date: 2008-11-20 07:41:28 +0000 (Thu, 20 Nov 2008)
Log Message:
-----------
fix up the algorithms picker event handler
Modified Paths:
--------------
trunk/pixelle/src/com/mebigfatguy/pixelle/AlgorithmArchiver.java
trunk/pixelle/src/com/mebigfatguy/pixelle/dialogs/PixelleExpressionDialog.java
Modified: trunk/pixelle/src/com/mebigfatguy/pixelle/AlgorithmArchiver.java
===================================================================
--- trunk/pixelle/src/com/mebigfatguy/pixelle/AlgorithmArchiver.java 2008-11-20 07:21:06 UTC (rev 206)
+++ trunk/pixelle/src/com/mebigfatguy/pixelle/AlgorithmArchiver.java 2008-11-20 07:41:28 UTC (rev 207)
@@ -297,6 +297,8 @@
currentAlgorithm = null;
} else if (GROUP.equals(localName)) {
currentGroup = null;
+ } else if (TYPE.equals(localName)) {
+ currentType = null;
}
}
});
Modified: trunk/pixelle/src/com/mebigfatguy/pixelle/dialogs/PixelleExpressionDialog.java
===================================================================
--- trunk/pixelle/src/com/mebigfatguy/pixelle/dialogs/PixelleExpressionDialog.java 2008-11-20 07:21:06 UTC (rev 206)
+++ trunk/pixelle/src/com/mebigfatguy/pixelle/dialogs/PixelleExpressionDialog.java 2008-11-20 07:41:28 UTC (rev 207)
@@ -128,7 +128,7 @@
public Map<PixelleComponent, String> getAlgorithms(ImageType imageType) {
Map<PixelleComponent, String> algorithms = new EnumMap<PixelleComponent, String>(PixelleComponent.class);
for (PixelleComponent comp : (imageType == ImageType.RGB) ? PixelleComponent.rgbValues() : PixelleComponent.gsValues()) {
- algorithms.put(comp, rgbEditor.get(comp).getText());
+ algorithms.put(comp, (imageType == ImageType.RGB) ? rgbEditor.get(comp).getText() : gsEditor.get(comp).getText());
}
return algorithms;
}
@@ -323,6 +323,15 @@
}
});
+ selectedGSAlgorithm.addMouseListener(new MouseAdapter() {
+
+ @Override
+ public void mousePressed(MouseEvent me) {
+ savedGSAlgorithms.setSize(selectedGSAlgorithm.getSize());
+ savedGSAlgorithms.show(selectedGSAlgorithm, 0, 0);
+ }
+ });
+
save.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent ae) {
SaveAlgorithmDialog dialog = new SaveAlgorithmDialog(frame);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|