summaryrefslogtreecommitdiff
path: root/src/main/scala/graphyx/gui/MenuHelp.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/scala/graphyx/gui/MenuHelp.scala')
-rw-r--r--src/main/scala/graphyx/gui/MenuHelp.scala19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/main/scala/graphyx/gui/MenuHelp.scala b/src/main/scala/graphyx/gui/MenuHelp.scala
new file mode 100644
index 0000000..1c73d51
--- /dev/null
+++ b/src/main/scala/graphyx/gui/MenuHelp.scala
@@ -0,0 +1,19 @@
+package graphyx.gui
+
+import graphyx.actors._
+import graphyx.gui._
+import scala.swing._
+import scala.swing.event._
+
+class MenuHelp extends Menu("Help") {
+ val miAbout = new MenuItem("About...")
+
+ val components = List(miAbout)
+ contents ++= components
+
+ listenTo(components: _*)
+ reactions += {
+ case event.ButtonClicked(`miAbout`) => AboutHelpFrame.frame.visible = true
+
+ }
+}