diff options
Diffstat (limited to 'src/graphyx/gui/MenuHelp.scala')
-rw-r--r-- | src/graphyx/gui/MenuHelp.scala | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/graphyx/gui/MenuHelp.scala b/src/graphyx/gui/MenuHelp.scala new file mode 100644 index 0000000..1c73d51 --- /dev/null +++ b/src/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 + + } +} |