summaryrefslogtreecommitdiff
path: root/src/graphyx/gui/ControlPanel.scala
diff options
context:
space:
mode:
authorJakob Odersky <jodersky@gmail.com>2009-12-13 16:06:50 +0000
committerJakob Odersky <jodersky@gmail.com>2009-12-13 16:06:50 +0000
commit66d338aec5d632927fa561a68310c8931938e9e0 (patch)
tree1e200fd94bb903772b007690da4e5d13fc46fb5b /src/graphyx/gui/ControlPanel.scala
parentbe2ee4dea92c5a4fc2329959d6e7272c50b221a6 (diff)
downloadsims-66d338aec5d632927fa561a68310c8931938e9e0.tar.gz
sims-66d338aec5d632927fa561a68310c8931938e9e0.tar.bz2
sims-66d338aec5d632927fa561a68310c8931938e9e0.zip
Ported to scala 2.8.
Diffstat (limited to 'src/graphyx/gui/ControlPanel.scala')
-rw-r--r--src/graphyx/gui/ControlPanel.scala4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/graphyx/gui/ControlPanel.scala b/src/graphyx/gui/ControlPanel.scala
index 2708d54..2cde7e6 100644
--- a/src/graphyx/gui/ControlPanel.scala
+++ b/src/graphyx/gui/ControlPanel.scala
@@ -6,6 +6,7 @@
package graphyx.gui
+import graphyx._
import graphyx.actors._
import graphyx.gui._
import scala.swing._
@@ -33,4 +34,7 @@ class ControlPanel(container: Container) extends BoxPanel(Orientation.Horizontal
case SelectionChanged(`cboTest`) => Graphyx.test = Graphyx.tests(cboTest.selection.index)
}
+ def update() {
+ btnFire.enabled = Graphyx.test.enableEvent
+ }
}