[Pixelle-commit] SF.net SVN: pixelle: [47] trunk/pixelle/src/com/mebigfatguy/pixelle/actions /Optio
Brought to you by:
dbrosius
|
From: <dbr...@us...> - 2008-06-21 17:18:14
|
Revision: 47
http://pixelle.svn.sourceforge.net/pixelle/?rev=47&view=rev
Author: dbrosius
Date: 2008-06-21 09:50:26 -0700 (Sat, 21 Jun 2008)
Log Message:
-----------
action for options item
Added Paths:
-----------
trunk/pixelle/src/com/mebigfatguy/pixelle/actions/OptionsAction.java
Added: trunk/pixelle/src/com/mebigfatguy/pixelle/actions/OptionsAction.java
===================================================================
--- trunk/pixelle/src/com/mebigfatguy/pixelle/actions/OptionsAction.java (rev 0)
+++ trunk/pixelle/src/com/mebigfatguy/pixelle/actions/OptionsAction.java 2008-06-21 16:50:26 UTC (rev 47)
@@ -0,0 +1,46 @@
+/*
+ * pixelle - Graphics algorithmic editor
+ * Copyright (C) 2008 Dave Brosius
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+package com.mebigfatguy.pixelle.actions;
+
+import java.awt.event.ActionEvent;
+
+import javax.swing.AbstractAction;
+
+import com.mebigfatguy.pixelle.PixelleBundle;
+import com.mebigfatguy.pixelle.PixelleFrame;
+import com.mebigfatguy.pixelle.dialogs.PixelleOptionsDialog;
+
+public class OptionsAction extends AbstractAction {
+
+ private static final long serialVersionUID = -4788815421907339556L;
+
+ PixelleFrame frame;
+
+ public OptionsAction(PixelleFrame pf) {
+ super(PixelleBundle.getString(PixelleBundle.OPTIONS_ITEM));
+ frame = pf;
+ }
+
+ public void actionPerformed(ActionEvent e) {
+ PixelleOptionsDialog d = new PixelleOptionsDialog(frame);
+ d.setLocationRelativeTo(frame);
+ d.setModal(true);
+ d.setVisible(true);
+ }
+}
Property changes on: trunk/pixelle/src/com/mebigfatguy/pixelle/actions/OptionsAction.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:eol-style
+ native
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|