equal
deleted
inserted
replaced
18 { |
18 { |
19 private val logic_selector = Isabelle.logic_selector(Isabelle.Property("logic")) |
19 private val logic_selector = Isabelle.logic_selector(Isabelle.Property("logic")) |
20 private val auto_start = new CheckBox() |
20 private val auto_start = new CheckBox() |
21 private val relative_font_size = new JSpinner() |
21 private val relative_font_size = new JSpinner() |
22 private val tooltip_font_size = new JSpinner() |
22 private val tooltip_font_size = new JSpinner() |
|
23 private val tooltip_margin = new JSpinner() |
23 private val tooltip_dismiss_delay = new JSpinner() |
24 private val tooltip_dismiss_delay = new JSpinner() |
24 |
25 |
25 override def _init() |
26 override def _init() |
26 { |
27 { |
27 addComponent(Isabelle.Property("logic.title"), logic_selector.peer) |
28 addComponent(Isabelle.Property("logic.title"), logic_selector.peer) |
32 relative_font_size.setValue(Isabelle.Int_Property("relative-font-size", 100)) |
33 relative_font_size.setValue(Isabelle.Int_Property("relative-font-size", 100)) |
33 addComponent(Isabelle.Property("relative-font-size.title"), relative_font_size) |
34 addComponent(Isabelle.Property("relative-font-size.title"), relative_font_size) |
34 |
35 |
35 tooltip_font_size.setValue(Isabelle.Int_Property("tooltip-font-size", 10)) |
36 tooltip_font_size.setValue(Isabelle.Int_Property("tooltip-font-size", 10)) |
36 addComponent(Isabelle.Property("tooltip-font-size.title"), tooltip_font_size) |
37 addComponent(Isabelle.Property("tooltip-font-size.title"), tooltip_font_size) |
|
38 |
|
39 tooltip_margin.setValue(Isabelle.Int_Property("tooltip-margin", 40)) |
|
40 addComponent(Isabelle.Property("tooltip-margin.title"), tooltip_margin) |
37 |
41 |
38 tooltip_dismiss_delay.setValue(Isabelle.Int_Property("tooltip-dismiss-delay", 8000)) |
42 tooltip_dismiss_delay.setValue(Isabelle.Int_Property("tooltip-dismiss-delay", 8000)) |
39 addComponent(Isabelle.Property("tooltip-dismiss-delay.title"), tooltip_dismiss_delay) |
43 addComponent(Isabelle.Property("tooltip-dismiss-delay.title"), tooltip_dismiss_delay) |
40 } |
44 } |
41 |
45 |
49 relative_font_size.getValue().asInstanceOf[Int] |
53 relative_font_size.getValue().asInstanceOf[Int] |
50 |
54 |
51 Isabelle.Int_Property("tooltip-font-size") = |
55 Isabelle.Int_Property("tooltip-font-size") = |
52 tooltip_font_size.getValue().asInstanceOf[Int] |
56 tooltip_font_size.getValue().asInstanceOf[Int] |
53 |
57 |
|
58 Isabelle.Int_Property("tooltip-margin") = |
|
59 tooltip_margin.getValue().asInstanceOf[Int] |
|
60 |
54 Isabelle.Int_Property("tooltip-dismiss-delay") = |
61 Isabelle.Int_Property("tooltip-dismiss-delay") = |
55 tooltip_dismiss_delay.getValue().asInstanceOf[Int] |
62 tooltip_dismiss_delay.getValue().asInstanceOf[Int] |
56 } |
63 } |
57 } |
64 } |