]> gitweb @ CieloNegro.org - task-reporter.git/blobdiff - src/main/scala/jp/ymir/taskReporter/ui/MainFrame.scala
wip
[task-reporter.git] / src / main / scala / jp / ymir / taskReporter / ui / MainFrame.scala
index a09aa5dfa6f2b655ce8c67dc71c1f7a30973b298..3878d21e65186afee95c4771c5b9208da51a416a 100644 (file)
@@ -126,11 +126,13 @@ class MainFrame(reportFile: Option[File]) extends Frame {
           }
         })
       contents += VStrut(5)
-      contents += new Separator(Orientation.Horizontal)
-      contents += VStrut(5)
-      contents += new TaskEditor
-      contents += VStrut(5)
-      contents += new Separator(Orientation.Horizontal)
+      contents += new TaskEditor {
+        listenTo(frame)
+        reactions += {
+          case TaskSelected(t)  => task = t
+          case TaskDeselected() => task = Task()
+        }
+      }
       contents += VStrut(5)
       contents += new FlowPanel(FlowPanel.Alignment.Left)() {
         contents += new Button(new Action("New") {