|
12 | 12 | # - supplementen
|
13 | 13 | # - xmltree
|
14 | 14 |
|
15 |
| ->> LVGLEN := Object new. |
| 15 | +>> LVGLEN := XML-tree new. |
16 | 16 |
|
17 | 17 | LVGLEN on: ['new'] do: {
|
18 | 18 |
|
19 |
| - >> xml := XML-tree new. |
| 19 | + >> xml := self new. |
20 | 20 |
|
21 | 21 | xml
|
22 | 22 | names: (
|
23 | 23 | List new
|
24 | 24 | object: ['lv_obj'],
|
25 | 25 | button: ['lv_button'],
|
26 |
| - label: ['lv_label'] |
| 26 | + label: ['lv_label'], |
| 27 | + image: ['lv_image'], |
| 28 | + textarea: ['lv_textarea'], |
| 29 | + buttonmatrix: ['lv_buttonmatrix'], |
| 30 | + bar: ['lv_bar'], |
| 31 | + chart: ['lv_chart'], |
| 32 | + roller: ['lv_roller'], |
| 33 | + dropdown: ['lv_dropdown'], |
| 34 | + scale: ['lv_scale'], |
| 35 | + slider: ['lv_slider'], |
| 36 | + table: ['lv_table'], |
| 37 | + table-column: ['lv_table-column'], |
| 38 | + table-cell: ['lv_table-cell'], |
| 39 | + tabview: ['lv_tabview'], |
| 40 | + tabview-tab_bar:['lv_tabview-tab_bar'], |
| 41 | + tabview-tab: ['lv_tabview-tab'] |
27 | 42 | )
|
28 | 43 | attributes: (
|
29 | 44 | List new
|
30 |
| - events: ['event_bubble'] |
31 |
| - |
| 45 | + events: ['event_bubble'], |
| 46 | + one-line: ['one_line'], |
| 47 | + tab-bar-position:['tab_bar_position'], |
| 48 | + pad-left: ['style_pad_left'], |
| 49 | + pad-right: ['style_pad_right'], |
| 50 | + pad-bottom: ['style_pad_bottom'], |
| 51 | + pad-top: ['style_pad_top'], |
| 52 | + margin-left: ['style_margin_left'], |
| 53 | + margin-right: ['style_margin_right'], |
| 54 | + margin-top: ['style_margin_top'], |
| 55 | + margin-bottom: ['style_margin_bottom'], |
| 56 | + layout: ['style_layout'], |
| 57 | + flex-flow: ['style_flex_flow'], |
| 58 | + flex-align: ['style_flex_align'], |
| 59 | + border: ['style_border_width'], |
| 60 | + border-color: ['style_border_color'], |
| 61 | + shadow: ['style_shadow_width'], |
| 62 | + outline: ['style_outline_width'], |
| 63 | + radius: ['style_radius'], |
| 64 | + bg-opa: ['style_bg_opa'] |
32 | 65 | )
|
33 | 66 | values: (
|
34 | 67 | List new
|
35 | 68 | True: ['true'],
|
36 | 69 | False: ['false'],
|
37 | 70 | object: ['lv_obj'],
|
38 |
| - button: ['lv_boton'], |
39 |
| - label: ['lv_label'] |
| 71 | + button: ['lv_button'], |
| 72 | + label: ['lv_label'], |
| 73 | + left: ['left'], |
| 74 | + rechts: ['rechts'], |
| 75 | + onder: ['bottom'], |
| 76 | + boven: ['top'], |
| 77 | + rij: ['row'], |
| 78 | + kolom: ['column'] |
40 | 79 | ).
|
41 | 80 |
|
42 | 81 | <- xml.
|
43 | 82 | }.
|
| 83 | + |
| 84 | + |
| 85 | +LVGLEN on: ['font:'] do: { :font |
| 86 | + self style_text_font: font name. |
| 87 | +}. |
| 88 | + |
| 89 | +LVGLEN on: ['image:'] do: { :image |
| 90 | + self src: image name. |
| 91 | +}. |
| 92 | + |
| 93 | +LVGLEN on: ['background:'] do: { :image |
| 94 | + self style_bg_image_src: image name. |
| 95 | +}. |
| 96 | + |
| 97 | +LVGLEN on: ['color:'] do: { :color |
| 98 | + self style_text_color: color rgbhex. |
| 99 | +}. |
| 100 | + |
| 101 | +LVGLEN on: ['ink:'] do: { :color |
| 102 | + self style_text_color: color rgbhex. |
| 103 | +}. |
| 104 | + |
| 105 | +LVGLEN on: ['randkleur:'] do: { :kleur |
| 106 | + zelf style_border_color: kleur rgbhex. |
| 107 | +}. |
| 108 | + |
| 109 | +LVGLEN on: ['achtergrondskleur:'] do: { :kleur |
| 110 | + zelf style_bg_color: kleur rgbhex. |
| 111 | +}. |
0 commit comments