37 } |
37 } |
38 |
38 |
39 val group_tabs = new TabbedPane { |
39 val group_tabs = new TabbedPane { |
40 pages ++= (for ((group, symbols) <- Symbol.groups) yield |
40 pages ++= (for ((group, symbols) <- Symbol.groups) yield |
41 { |
41 { |
42 new TabbedPane.Page(if (group == "") "Other" else group, |
42 new TabbedPane.Page(group, |
43 new FlowPanel { contents ++= symbols map (new Symbol_Component(_)) }, |
43 new FlowPanel { contents ++= symbols map (new Symbol_Component(_)) }, |
44 ("" /: (symbols take 10 map Symbol.decode))(_ + _ + " ")) |
44 (symbols take 10 map Symbol.decode).mkString(" ")) |
45 }).toList.sortWith(_.title.toUpperCase <= _.title.toUpperCase) |
45 }).toList.sortWith(_.title <= _.title) |
46 pages += new TabbedPane.Page("Search", new BorderPanel { |
46 pages += new TabbedPane.Page("search", new BorderPanel { |
47 val search = new TextField(10) |
47 val search = new TextField(10) |
48 val results_panel = new FlowPanel |
48 val results_panel = new FlowPanel |
49 add(search, BorderPanel.Position.North) |
49 add(search, BorderPanel.Position.North) |
50 add(results_panel, BorderPanel.Position.Center) |
50 add(results_panel, BorderPanel.Position.Center) |
51 listenTo(search) |
51 listenTo(search) |