summaryrefslogtreecommitdiff
path: root/src/graphyx/gui/MenuHelp.scala
blob: 1c73d51f0125713129e57f87a58787f4ee647f88 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
    
  }
}