Skip to content
This repository
Browse code

fixed examples to work with updates

  • Loading branch information...
commit f29a7d7874141fafef65d891e0a8bc10921a15dd 1 parent cbe2749
Reza Ali authored September 08, 2012
8  example-ofxUIButtons/src/testApp.cpp
@@ -36,11 +36,11 @@ void testApp::setup()
36 36
     radio->activateToggle("SOCKS"); 
37 37
     
38 38
     gui->addSpacer(length-xInit, 2);
39  
-    gui->addWidgetDown(new ofxUILabelButton(false, "LABEL BUTTON", OFX_UI_FONT_MEDIUM)); 
  39
+    gui->addLabelButton("LABEL BUTTON", false); 
40 40
     gui->addWidgetEastOf(new ofxUILabel("<- Automagically Sized", OFX_UI_FONT_SMALL),"LABEL BUTTON"); 
41  
-    gui->addWidgetSouthOf(new ofxUILabelButton(length-xInit, false, "SPECIFIED WIDTH BUTTON", OFX_UI_FONT_MEDIUM), "LABEL BUTTON"); 
42  
-    gui->addWidgetDown(new ofxUILabelToggle(false, "LABEL TOGGLE", OFX_UI_FONT_MEDIUM));     
43  
-    gui->addWidgetDown(new ofxUILabelToggle(length-xInit, false, "SPECIFIED WIDTH TOGGLE", OFX_UI_FONT_MEDIUM));         
  41
+    gui->addWidgetSouthOf(new ofxUILabelButton(length-xInit, false, "SPECIFIED WIDTH BUTTON", OFX_UI_FONT_MEDIUM), "LABEL BUTTON");
  42
+    gui->addLabelToggle("LABEL TOGGLE", false);     
  43
+    gui->addLabelToggle("SPECIFIED WIDTH TOGGLE", false, length-xInit);
44 44
     
45 45
     gui->addSpacer(length-xInit, 2);
46 46
     gui->addWidgetDown(new ofxUIToggleMatrix(dim, dim, 3, 3, "3X3 MATRIX")); 
150  example-ofxUICustomWidgets/bin/data/GUI/guiSettings.xml
... ...
@@ -1,75 +1,75 @@
1  
-<Widget>
2  
-    <Kind>8</Kind>
3  
-    <Name>NDIALER</Name>
4  
-    <Value>100</Value>
5  
-</Widget>
6  
-<Widget>
7  
-    <Kind>12</Kind>
8  
-    <Name>Text Input Large</Name>
9  
-    <Value>LARGE TEXT FIELD</Value>
10  
-</Widget>
11  
-<Widget>
12  
-    <Kind>12</Kind>
13  
-    <Name>Text Input Medium</Name>
14  
-    <Value>MEDIUM TEXT FIELD</Value>
15  
-</Widget>
16  
-<Widget>
17  
-    <Kind>12</Kind>
18  
-    <Name>Text Input Small</Name>
19  
-    <Value>SMALL TEXT FIELD</Value>
20  
-</Widget>
21  
-<Widget>
22  
-    <Kind>12</Kind>
23  
-    <Name>Text Input Autoclear</Name>
24  
-    <Value>Auto Clear Disabled</Value>
25  
-</Widget>
26  
-<Widget>
27  
-    <Kind>28</Kind>
28  
-    <Name>OF LOGO 2</Name>
29  
-    <XValue>0.5</XValue>
30  
-    <YValue>0.5</YValue>
31  
-    <RColor>188</RColor>
32  
-    <GColor>152</GColor>
33  
-    <BColor>116</BColor>
34  
-    <AColor>255</AColor>
35  
-</Widget>
36  
-<Widget>
37  
-    <Kind>17</Kind>
38  
-    <Name>FIRST ITEM</Name>
39  
-    <Value>0</Value>
40  
-</Widget>
41  
-<Widget>
42  
-    <Kind>17</Kind>
43  
-    <Name>SECOND ITEM</Name>
44  
-    <Value>0</Value>
45  
-</Widget>
46  
-<Widget>
47  
-    <Kind>17</Kind>
48  
-    <Name>THIRD ITEM</Name>
49  
-    <Value>0</Value>
50  
-</Widget>
51  
-<Widget>
52  
-    <Kind>17</Kind>
53  
-    <Name>FOURTH ITEM</Name>
54  
-    <Value>0</Value>
55  
-</Widget>
56  
-<Widget>
57  
-    <Kind>17</Kind>
58  
-    <Name>FIFTH ITEM</Name>
59  
-    <Value>0</Value>
60  
-</Widget>
61  
-<Widget>
62  
-    <Kind>17</Kind>
63  
-    <Name>SIXTH ITEM</Name>
64  
-    <Value>0</Value>
65  
-</Widget>
66  
-<Widget>
67  
-    <Kind>17</Kind>
68  
-    <Name>SEVENTH ITEM</Name>
69  
-    <Value>0</Value>
70  
-</Widget>
71  
-<Widget>
72  
-    <Kind>17</Kind>
73  
-    <Name>EIGTHTH ITEM</Name>
74  
-    <Value>0</Value>
75  
-</Widget>
  1
+<Widget>
  2
+    <Kind>8</Kind>
  3
+    <Name>NDIALER</Name>
  4
+    <Value>100</Value>
  5
+</Widget>
  6
+<Widget>
  7
+    <Kind>12</Kind>
  8
+    <Name>Text Input Large</Name>
  9
+    <Value>LARGE TEXT FIELD</Value>
  10
+</Widget>
  11
+<Widget>
  12
+    <Kind>12</Kind>
  13
+    <Name>Text Input Medium</Name>
  14
+    <Value>MEDIUM TEXT FIELD</Value>
  15
+</Widget>
  16
+<Widget>
  17
+    <Kind>12</Kind>
  18
+    <Name>Text Input Small</Name>
  19
+    <Value>SMALL TEXT FIELD</Value>
  20
+</Widget>
  21
+<Widget>
  22
+    <Kind>12</Kind>
  23
+    <Name>Text Input Autoclear</Name>
  24
+    <Value>Auto Clear Disabled</Value>
  25
+</Widget>
  26
+<Widget>
  27
+    <Kind>28</Kind>
  28
+    <Name>OF LOGO 2</Name>
  29
+    <XValue>0.5</XValue>
  30
+    <YValue>0.5</YValue>
  31
+    <RColor>188</RColor>
  32
+    <GColor>152</GColor>
  33
+    <BColor>116</BColor>
  34
+    <AColor>255</AColor>
  35
+</Widget>
  36
+<Widget>
  37
+    <Kind>17</Kind>
  38
+    <Name>FIRST ITEM</Name>
  39
+    <Value>0</Value>
  40
+</Widget>
  41
+<Widget>
  42
+    <Kind>17</Kind>
  43
+    <Name>SECOND ITEM</Name>
  44
+    <Value>0</Value>
  45
+</Widget>
  46
+<Widget>
  47
+    <Kind>17</Kind>
  48
+    <Name>THIRD ITEM</Name>
  49
+    <Value>1</Value>
  50
+</Widget>
  51
+<Widget>
  52
+    <Kind>17</Kind>
  53
+    <Name>FOURTH ITEM</Name>
  54
+    <Value>0</Value>
  55
+</Widget>
  56
+<Widget>
  57
+    <Kind>17</Kind>
  58
+    <Name>FIFTH ITEM</Name>
  59
+    <Value>0</Value>
  60
+</Widget>
  61
+<Widget>
  62
+    <Kind>17</Kind>
  63
+    <Name>SIXTH ITEM</Name>
  64
+    <Value>1</Value>
  65
+</Widget>
  66
+<Widget>
  67
+    <Kind>17</Kind>
  68
+    <Name>SEVENTH ITEM</Name>
  69
+    <Value>0</Value>
  70
+</Widget>
  71
+<Widget>
  72
+    <Kind>17</Kind>
  73
+    <Name>EIGTHTH ITEM</Name>
  74
+    <Value>0</Value>
  75
+</Widget>
7  example-ofxUICustomWidgets/src/testApp.cpp
@@ -65,9 +65,12 @@ void testApp::setup()
65 65
     vector<string> items; items.push_back("FIRST ITEM"); items.push_back("SECOND ITEM"); items.push_back("THIRD ITEM"); items.push_back("FOURTH ITEM");    
66 66
     vector<string> items2; items2.push_back("FIFTH ITEM"); items2.push_back("SIXTH ITEM"); items2.push_back("SEVENTH ITEM"); items2.push_back("EIGTHTH ITEM");
67 67
     
68  
-    gui->addWidgetDown(new ofxUIDropDownList("DROP DOWN", items, OFX_UI_FONT_MEDIUM)); 
69  
-    gui->addWidgetRight(new ofxUIDropDownList("ALLOW MULTIPLE", items2, OFX_UI_FONT_MEDIUM));     
70 68
     
  69
+    gui->addDropDownList("DROP DOWN", items);
  70
+    gui->setWidgetPosition(OFX_UI_WIDGET_POSITION_RIGHT);
  71
+    gui->addDropDownList("ALLOW MULTIPLE", items2);
  72
+    gui->setWidgetPosition(OFX_UI_WIDGET_POSITION_DOWN);
  73
+
71 74
     ofxUIDropDownList* ddl = (ofxUIDropDownList *) gui->getWidget("ALLOW MULTIPLE");
72 75
     ddl->setAllowMultiple(true); 
73 76
     
214  example-ofxUISaveLoadSettings/bin/data/GUI/guiSettings.xml
... ...
@@ -1,107 +1,107 @@
1  
-<Widget>
2  
-    <Kind>4</Kind>
3  
-    <Name>RED</Name>
4  
-    <Value>225.126</Value>
5  
-</Widget>
6  
-<Widget>
7  
-    <Kind>4</Kind>
8  
-    <Name>GREEN</Name>
9  
-    <Value>8.53556</Value>
10  
-</Widget>
11  
-<Widget>
12  
-    <Kind>4</Kind>
13  
-    <Name>BLUE</Name>
14  
-    <Value>52.2803</Value>
15  
-</Widget>
16  
-<Widget>
17  
-    <Kind>5</Kind>
18  
-    <Name>0</Name>
19  
-    <Value>150</Value>
20  
-</Widget>
21  
-<Widget>
22  
-    <Kind>5</Kind>
23  
-    <Name>1</Name>
24  
-    <Value>150</Value>
25  
-</Widget>
26  
-<Widget>
27  
-    <Kind>5</Kind>
28  
-    <Name>2</Name>
29  
-    <Value>150</Value>
30  
-</Widget>
31  
-<Widget>
32  
-    <Kind>5</Kind>
33  
-    <Name>3</Name>
34  
-    <Value>150</Value>
35  
-</Widget>
36  
-<Widget>
37  
-    <Kind>5</Kind>
38  
-    <Name>4</Name>
39  
-    <Value>150</Value>
40  
-</Widget>
41  
-<Widget>
42  
-    <Kind>5</Kind>
43  
-    <Name>5</Name>
44  
-    <Value>150</Value>
45  
-</Widget>
46  
-<Widget>
47  
-    <Kind>5</Kind>
48  
-    <Name>6</Name>
49  
-    <Value>150</Value>
50  
-</Widget>
51  
-<Widget>
52  
-    <Kind>5</Kind>
53  
-    <Name>7</Name>
54  
-    <Value>150</Value>
55  
-</Widget>
56  
-<Widget>
57  
-    <Kind>5</Kind>
58  
-    <Name>8</Name>
59  
-    <Value>150</Value>
60  
-</Widget>
61  
-<Widget>
62  
-    <Kind>2</Kind>
63  
-    <Name>RAD1</Name>
64  
-    <Value>0</Value>
65  
-</Widget>
66  
-<Widget>
67  
-    <Kind>2</Kind>
68  
-    <Name>RAD2</Name>
69  
-    <Value>0</Value>
70  
-</Widget>
71  
-<Widget>
72  
-    <Kind>2</Kind>
73  
-    <Name>RAD3</Name>
74  
-    <Value>0</Value>
75  
-</Widget>
76  
-<Widget>
77  
-    <Kind>2</Kind>
78  
-    <Name>RAD4</Name>
79  
-    <Value>0</Value>
80  
-</Widget>
81  
-<Widget>
82  
-    <Kind>2</Kind>
83  
-    <Name>RAD5</Name>
84  
-    <Value>0</Value>
85  
-</Widget>
86  
-<Widget>
87  
-    <Kind>2</Kind>
88  
-    <Name>RAD6</Name>
89  
-    <Value>0</Value>
90  
-</Widget>
91  
-<Widget>
92  
-    <Kind>2</Kind>
93  
-    <Name>D_GRID</Name>
94  
-    <Value>0</Value>
95  
-</Widget>
96  
-<Widget>
97  
-    <Kind>6</Kind>
98  
-    <Name>RSLIDER</Name>
99  
-    <HighValue>210.188</HighValue>
100  
-    <LowValue>50</LowValue>
101  
-</Widget>
102  
-<Widget>
103  
-    <Kind>11</Kind>
104  
-    <Name>PAD</Name>
105  
-    <XValue>5</XValue>
106  
-    <YValue>90</YValue>
107  
-</Widget>
  1
+<Widget>
  2
+    <Kind>4</Kind>
  3
+    <Name>RED</Name>
  4
+    <Value>225.126</Value>
  5
+</Widget>
  6
+<Widget>
  7
+    <Kind>4</Kind>
  8
+    <Name>GREEN</Name>
  9
+    <Value>8.53556</Value>
  10
+</Widget>
  11
+<Widget>
  12
+    <Kind>4</Kind>
  13
+    <Name>BLUE</Name>
  14
+    <Value>52.2803</Value>
  15
+</Widget>
  16
+<Widget>
  17
+    <Kind>5</Kind>
  18
+    <Name>0</Name>
  19
+    <Value>150</Value>
  20
+</Widget>
  21
+<Widget>
  22
+    <Kind>5</Kind>
  23
+    <Name>1</Name>
  24
+    <Value>150</Value>
  25
+</Widget>
  26
+<Widget>
  27
+    <Kind>5</Kind>
  28
+    <Name>2</Name>
  29
+    <Value>150</Value>
  30
+</Widget>
  31
+<Widget>
  32
+    <Kind>5</Kind>
  33
+    <Name>3</Name>
  34
+    <Value>150</Value>
  35
+</Widget>
  36
+<Widget>
  37
+    <Kind>5</Kind>
  38
+    <Name>4</Name>
  39
+    <Value>150</Value>
  40
+</Widget>
  41
+<Widget>
  42
+    <Kind>5</Kind>
  43
+    <Name>5</Name>
  44
+    <Value>150</Value>
  45
+</Widget>
  46
+<Widget>
  47
+    <Kind>5</Kind>
  48
+    <Name>6</Name>
  49
+    <Value>150</Value>
  50
+</Widget>
  51
+<Widget>
  52
+    <Kind>5</Kind>
  53
+    <Name>7</Name>
  54
+    <Value>150</Value>
  55
+</Widget>
  56
+<Widget>
  57
+    <Kind>5</Kind>
  58
+    <Name>8</Name>
  59
+    <Value>150</Value>
  60
+</Widget>
  61
+<Widget>
  62
+    <Kind>2</Kind>
  63
+    <Name>RAD1</Name>
  64
+    <Value>0</Value>
  65
+</Widget>
  66
+<Widget>
  67
+    <Kind>2</Kind>
  68
+    <Name>RAD2</Name>
  69
+    <Value>0</Value>
  70
+</Widget>
  71
+<Widget>
  72
+    <Kind>2</Kind>
  73
+    <Name>RAD3</Name>
  74
+    <Value>0</Value>
  75
+</Widget>
  76
+<Widget>
  77
+    <Kind>2</Kind>
  78
+    <Name>RAD4</Name>
  79
+    <Value>0</Value>
  80
+</Widget>
  81
+<Widget>
  82
+    <Kind>2</Kind>
  83
+    <Name>RAD5</Name>
  84
+    <Value>0</Value>
  85
+</Widget>
  86
+<Widget>
  87
+    <Kind>2</Kind>
  88
+    <Name>RAD6</Name>
  89
+    <Value>0</Value>
  90
+</Widget>
  91
+<Widget>
  92
+    <Kind>2</Kind>
  93
+    <Name>D_GRID</Name>
  94
+    <Value>0</Value>
  95
+</Widget>
  96
+<Widget>
  97
+    <Kind>6</Kind>
  98
+    <Name>RSLIDER</Name>
  99
+    <HighValue>210.188</HighValue>
  100
+    <LowValue>50</LowValue>
  101
+</Widget>
  102
+<Widget>
  103
+    <Kind>11</Kind>
  104
+    <Name>PAD</Name>
  105
+    <XValue>5</XValue>
  106
+    <YValue>90</YValue>
  107
+</Widget>
45  example-ofxUISaveLoadSettings/bin/data/GUI/guiSettings2.xml
... ...
@@ -1,25 +1,20 @@
1  
-<Widget>
2  
-    <Kind>12</Kind>
3  
-    <Name>TEXT INPUT</Name>
4  
-    <Value>Input Text</Value>
5  
-</Widget>
6  
-<Widget>
7  
-    <Kind>8</Kind>
8  
-    <Name>NUMBER DIALER</Name>
9  
-    <Value>1000</Value>
10  
-</Widget>
11  
-<Widget>
12  
-    <Kind>17</Kind>
13  
-    <Name>LABEL TOGGLE</Name>
14  
-    <Value>0</Value>
15  
-</Widget>
16  
-<Widget>
17  
-    <Kind>17</Kind>
18  
-    <Name>AUTOSIZE TOGGLE</Name>
19  
-    <Value>0</Value>
20  
-</Widget>
21  
-<Widget>
22  
-    <Kind>17</Kind>
23  
-    <Name>MEDIUM TOGGLE</Name>
24  
-    <Value>0</Value>
25  
-</Widget>
  1
+<Widget>
  2
+    <Kind>12</Kind>
  3
+    <Name>TEXT INPUT</Name>
  4
+    <Value>Input Text</Value>
  5
+</Widget>
  6
+<Widget>
  7
+    <Kind>8</Kind>
  8
+    <Name>NUMBER DIALER</Name>
  9
+    <Value>1000</Value>
  10
+</Widget>
  11
+<Widget>
  12
+    <Kind>17</Kind>
  13
+    <Name>LABEL TOGGLE</Name>
  14
+    <Value>0</Value>
  15
+</Widget>
  16
+<Widget>
  17
+    <Kind>17</Kind>
  18
+    <Name>AUTOSIZE TOGGLE</Name>
  19
+    <Value>0</Value>
  20
+</Widget>
460  example-ofxUISaveLoadSettings/bin/data/GUI/guiSettings3.xml
... ...
@@ -1,230 +1,230 @@
1  
-<Widget>
2  
-    <Kind>2</Kind>
3  
-    <Name>MATRIX1(0,0)</Name>
4  
-    <Value>1</Value>
5  
-</Widget>
6  
-<Widget>
7  
-    <Kind>2</Kind>
8  
-    <Name>MATRIX1(0,1)</Name>
9  
-    <Value>0</Value>
10  
-</Widget>
11  
-<Widget>
12  
-    <Kind>2</Kind>
13  
-    <Name>MATRIX1(0,2)</Name>
14  
-    <Value>0</Value>
15  
-</Widget>
16  
-<Widget>
17  
-    <Kind>2</Kind>
18  
-    <Name>MATRIX1(0,3)</Name>
19  
-    <Value>1</Value>
20  
-</Widget>
21  
-<Widget>
22  
-    <Kind>2</Kind>
23  
-    <Name>MATRIX1(1,0)</Name>
24  
-    <Value>0</Value>
25  
-</Widget>
26  
-<Widget>
27  
-    <Kind>2</Kind>
28  
-    <Name>MATRIX1(1,1)</Name>
29  
-    <Value>1</Value>
30  
-</Widget>
31  
-<Widget>
32  
-    <Kind>2</Kind>
33  
-    <Name>MATRIX1(1,2)</Name>
34  
-    <Value>1</Value>
35  
-</Widget>
36  
-<Widget>
37  
-    <Kind>2</Kind>
38  
-    <Name>MATRIX1(1,3)</Name>
39  
-    <Value>0</Value>
40  
-</Widget>
41  
-<Widget>
42  
-    <Kind>2</Kind>
43  
-    <Name>MATRIX1(2,0)</Name>
44  
-    <Value>0</Value>
45  
-</Widget>
46  
-<Widget>
47  
-    <Kind>2</Kind>
48  
-    <Name>MATRIX1(2,1)</Name>
49  
-    <Value>1</Value>
50  
-</Widget>
51  
-<Widget>
52  
-    <Kind>2</Kind>
53  
-    <Name>MATRIX1(2,2)</Name>
54  
-    <Value>1</Value>
55  
-</Widget>
56  
-<Widget>
57  
-    <Kind>2</Kind>
58  
-    <Name>MATRIX1(2,3)</Name>
59  
-    <Value>0</Value>
60  
-</Widget>
61  
-<Widget>
62  
-    <Kind>2</Kind>
63  
-    <Name>MATRIX1(3,0)</Name>
64  
-    <Value>1</Value>
65  
-</Widget>
66  
-<Widget>
67  
-    <Kind>2</Kind>
68  
-    <Name>MATRIX1(3,1)</Name>
69  
-    <Value>0</Value>
70  
-</Widget>
71  
-<Widget>
72  
-    <Kind>2</Kind>
73  
-    <Name>MATRIX1(3,2)</Name>
74  
-    <Value>0</Value>
75  
-</Widget>
76  
-<Widget>
77  
-    <Kind>2</Kind>
78  
-    <Name>MATRIX1(3,3)</Name>
79  
-    <Value>1</Value>
80  
-</Widget>
81  
-<Widget>
82  
-    <Kind>2</Kind>
83  
-    <Name>MATRIX2(0,0)</Name>
84  
-    <Value>1</Value>
85  
-</Widget>
86  
-<Widget>
87  
-    <Kind>2</Kind>
88  
-    <Name>MATRIX2(0,1)</Name>
89  
-    <Value>0</Value>
90  
-</Widget>
91  
-<Widget>
92  
-    <Kind>2</Kind>
93  
-    <Name>MATRIX2(0,2)</Name>
94  
-    <Value>1</Value>
95  
-</Widget>
96  
-<Widget>
97  
-    <Kind>2</Kind>
98  
-    <Name>MATRIX2(0,3)</Name>
99  
-    <Value>1</Value>
100  
-</Widget>
101  
-<Widget>
102  
-    <Kind>2</Kind>
103  
-    <Name>MATRIX2(0,4)</Name>
104  
-    <Value>0</Value>
105  
-</Widget>
106  
-<Widget>
107  
-    <Kind>2</Kind>
108  
-    <Name>MATRIX2(0,5)</Name>
109  
-    <Value>1</Value>
110  
-</Widget>
111  
-<Widget>
112  
-    <Kind>2</Kind>
113  
-    <Name>MATRIX2(1,0)</Name>
114  
-    <Value>0</Value>
115  
-</Widget>
116  
-<Widget>
117  
-    <Kind>2</Kind>
118  
-    <Name>MATRIX2(1,1)</Name>
119  
-    <Value>0</Value>
120  
-</Widget>
121  
-<Widget>
122  
-    <Kind>2</Kind>
123  
-    <Name>MATRIX2(1,2)</Name>
124  
-    <Value>0</Value>
125  
-</Widget>
126  
-<Widget>
127  
-    <Kind>2</Kind>
128  
-    <Name>MATRIX2(1,3)</Name>
129  
-    <Value>0</Value>
130  
-</Widget>
131  
-<Widget>
132  
-    <Kind>2</Kind>
133  
-    <Name>MATRIX2(1,4)</Name>
134  
-    <Value>0</Value>
135  
-</Widget>
136  
-<Widget>
137  
-    <Kind>2</Kind>
138  
-    <Name>MATRIX2(1,5)</Name>
139  
-    <Value>0</Value>
140  
-</Widget>
141  
-<Widget>
142  
-    <Kind>2</Kind>
143  
-    <Name>MATRIX2(2,0)</Name>
144  
-    <Value>1</Value>
145  
-</Widget>
146  
-<Widget>
147  
-    <Kind>2</Kind>
148  
-    <Name>MATRIX2(2,1)</Name>
149  
-    <Value>0</Value>
150  
-</Widget>
151  
-<Widget>
152  
-    <Kind>2</Kind>
153  
-    <Name>MATRIX2(2,2)</Name>
154  
-    <Value>1</Value>
155  
-</Widget>
156  
-<Widget>
157  
-    <Kind>2</Kind>
158  
-    <Name>MATRIX2(2,3)</Name>
159  
-    <Value>1</Value>
160  
-</Widget>
161  
-<Widget>
162  
-    <Kind>2</Kind>
163  
-    <Name>MATRIX2(2,4)</Name>
164  
-    <Value>0</Value>
165  
-</Widget>
166  
-<Widget>
167  
-    <Kind>2</Kind>
168  
-    <Name>MATRIX2(2,5)</Name>
169  
-    <Value>1</Value>
170  
-</Widget>
171  
-<Widget>
172  
-    <Kind>2</Kind>
173  
-    <Name>MATRIX3(0,0)</Name>
174  
-    <Value>1</Value>
175  
-</Widget>
176  
-<Widget>
177  
-    <Kind>2</Kind>
178  
-    <Name>MATRIX3(0,1)</Name>
179  
-    <Value>0</Value>
180  
-</Widget>
181  
-<Widget>
182  
-    <Kind>2</Kind>
183  
-    <Name>MATRIX3(0,2)</Name>
184  
-    <Value>0</Value>
185  
-</Widget>
186  
-<Widget>
187  
-    <Kind>2</Kind>
188  
-    <Name>MATRIX3(0,3)</Name>
189  
-    <Value>1</Value>
190  
-</Widget>
191  
-<Widget>
192  
-    <Kind>20</Kind>
193  
-    <Name>IMAGETGL</Name>
194  
-    <Value>1</Value>
195  
-</Widget>
196  
-<Widget>
197  
-    <Kind>21</Kind>
198  
-    <Name>R2SLIDER</Name>
199  
-    <Value>59.0725</Value>
200  
-</Widget>
201  
-<Widget>
202  
-    <Kind>17</Kind>
203  
-    <Name>FIRST ITEM</Name>
204  
-    <Value>1</Value>
205  
-</Widget>
206  
-<Widget>
207  
-    <Kind>17</Kind>
208  
-    <Name>SECOND ITEM</Name>
209  
-    <Value>0</Value>
210  
-</Widget>
211  
-<Widget>
212  
-    <Kind>17</Kind>
213  
-    <Name>THIRD ITEM WHATS UP DOG</Name>
214  
-    <Value>0</Value>
215  
-</Widget>
216  
-<Widget>
217  
-    <Kind>17</Kind>
218  
-    <Name>FOURTH ITEM</Name>
219  
-    <Value>0</Value>
220  
-</Widget>
221  
-<Widget>
222  
-    <Kind>17</Kind>
223  
-    <Name>FIFTH ITEM</Name>
224  
-    <Value>0</Value>
225  
-</Widget>
226  
-<Widget>
227  
-    <Kind>17</Kind>
228  
-    <Name>SIXTH ITEM</Name>
229  
-    <Value>0</Value>
230  
-</Widget>
  1
+<Widget>
  2
+    <Kind>2</Kind>
  3
+    <Name>MATRIX1(0,0)</Name>
  4
+    <Value>1</Value>
  5
+</Widget>
  6
+<Widget>
  7
+    <Kind>2</Kind>
  8
+    <Name>MATRIX1(0,1)</Name>
  9
+    <Value>0</Value>
  10
+</Widget>
  11
+<Widget>
  12
+    <Kind>2</Kind>
  13
+    <Name>MATRIX1(0,2)</Name>
  14
+    <Value>0</Value>
  15
+</Widget>
  16
+<Widget>
  17
+    <Kind>2</Kind>
  18
+    <Name>MATRIX1(0,3)</Name>
  19
+    <Value>1</Value>
  20
+</Widget>
  21
+<Widget>
  22
+    <Kind>2</Kind>
  23
+    <Name>MATRIX1(1,0)</Name>
  24
+    <Value>0</Value>
  25
+</Widget>
  26
+<Widget>
  27
+    <Kind>2</Kind>
  28
+    <Name>MATRIX1(1,1)</Name>
  29
+    <Value>1</Value>
  30
+</Widget>
  31
+<Widget>
  32
+    <Kind>2</Kind>
  33
+    <Name>MATRIX1(1,2)</Name>
  34
+    <Value>1</Value>
  35
+</Widget>
  36
+<Widget>
  37
+    <Kind>2</Kind>
  38
+    <Name>MATRIX1(1,3)</Name>
  39
+    <Value>0</Value>
  40
+</Widget>
  41
+<Widget>
  42
+    <Kind>2</Kind>
  43
+    <Name>MATRIX1(2,0)</Name>
  44
+    <Value>0</Value>
  45
+</Widget>
  46
+<Widget>
  47
+    <Kind>2</Kind>
  48
+    <Name>MATRIX1(2,1)</Name>
  49
+    <Value>1</Value>
  50
+</Widget>
  51
+<Widget>
  52
+    <Kind>2</Kind>
  53
+    <Name>MATRIX1(2,2)</Name>
  54
+    <Value>1</Value>
  55
+</Widget>
  56
+<Widget>
  57
+    <Kind>2</Kind>
  58
+    <Name>MATRIX1(2,3)</Name>
  59
+    <Value>0</Value>
  60
+</Widget>
  61
+<Widget>
  62
+    <Kind>2</Kind>
  63
+    <Name>MATRIX1(3,0)</Name>
  64
+    <Value>1</Value>
  65
+</Widget>
  66
+<Widget>
  67
+    <Kind>2</Kind>
  68
+    <Name>MATRIX1(3,1)</Name>
  69
+    <Value>0</Value>
  70
+</Widget>
  71
+<Widget>
  72
+    <Kind>2</Kind>
  73
+    <Name>MATRIX1(3,2)</Name>
  74
+    <Value>0</Value>
  75
+</Widget>
  76
+<Widget>
  77
+    <Kind>2</Kind>
  78
+    <Name>MATRIX1(3,3)</Name>
  79
+    <Value>1</Value>
  80
+</Widget>
  81
+<Widget>
  82
+    <Kind>2</Kind>
  83
+    <Name>MATRIX2(0,0)</Name>
  84
+    <Value>1</Value>
  85
+</Widget>
  86
+<Widget>
  87
+    <Kind>2</Kind>
  88
+    <Name>MATRIX2(0,1)</Name>
  89
+    <Value>0</Value>
  90
+</Widget>
  91
+<Widget>
  92
+    <Kind>2</Kind>
  93
+    <Name>MATRIX2(0,2)</Name>
  94
+    <Value>1</Value>
  95
+</Widget>
  96
+<Widget>
  97
+    <Kind>2</Kind>
  98
+    <Name>MATRIX2(0,3)</Name>
  99
+    <Value>1</Value>
  100
+</Widget>
  101
+<Widget>
  102
+    <Kind>2</Kind>
  103
+    <Name>MATRIX2(0,4)</Name>
  104
+    <Value>0</Value>
  105
+</Widget>
  106
+<Widget>
  107
+    <Kind>2</Kind>
  108
+    <Name>MATRIX2(0,5)</Name>
  109
+    <Value>1</Value>
  110
+</Widget>
  111
+<Widget>
  112
+    <Kind>2</Kind>
  113
+    <Name>MATRIX2(1,0)</Name>
  114
+    <Value>0</Value>
  115
+</Widget>
  116
+<Widget>
  117
+    <Kind>2</Kind>
  118
+    <Name>MATRIX2(1,1)</Name>
  119
+    <Value>0</Value>
  120
+</Widget>
  121
+<Widget>
  122
+    <Kind>2</Kind>
  123
+    <Name>MATRIX2(1,2)</Name>
  124
+    <Value>0</Value>
  125
+</Widget>
  126
+<Widget>
  127
+    <Kind>2</Kind>
  128
+    <Name>MATRIX2(1,3)</Name>
  129
+    <Value>0</Value>
  130
+</Widget>
  131
+<Widget>
  132
+    <Kind>2</Kind>
  133
+    <Name>MATRIX2(1,4)</Name>
  134
+    <Value>0</Value>
  135
+</Widget>
  136
+<Widget>
  137
+    <Kind>2</Kind>
  138
+    <Name>MATRIX2(1,5)</Name>
  139
+    <Value>0</Value>
  140
+</Widget>
  141
+<Widget>
  142
+    <Kind>2</Kind>
  143
+    <Name>MATRIX2(2,0)</Name>
  144
+    <Value>1</Value>
  145
+</Widget>
  146
+<Widget>
  147
+    <Kind>2</Kind>
  148
+    <Name>MATRIX2(2,1)</Name>
  149
+    <Value>0</Value>
  150
+</Widget>
  151
+<Widget>
  152
+    <Kind>2</Kind>
  153
+    <Name>MATRIX2(2,2)</Name>
  154
+    <Value>1</Value>
  155
+</Widget>
  156
+<Widget>
  157
+    <Kind>2</Kind>
  158
+    <Name>MATRIX2(2,3)</Name>
  159
+    <Value>1</Value>
  160
+</Widget>
  161
+<Widget>
  162
+    <Kind>2</Kind>
  163
+    <Name>MATRIX2(2,4)</Name>
  164
+    <Value>0</Value>
  165
+</Widget>
  166
+<Widget>
  167
+    <Kind>2</Kind>
  168
+    <Name>MATRIX2(2,5)</Name>
  169
+    <Value>1</Value>
  170
+</Widget>
  171
+<Widget>
  172
+    <Kind>2</Kind>
  173
+    <Name>MATRIX3(0,0)</Name>
  174
+    <Value>1</Value>
  175
+</Widget>
  176
+<Widget>
  177
+    <Kind>2</Kind>
  178
+    <Name>MATRIX3(0,1)</Name>
  179
+    <Value>0</Value>
  180
+</Widget>
  181
+<Widget>
  182
+    <Kind>2</Kind>
  183
+    <Name>MATRIX3(0,2)</Name>
  184
+    <Value>0</Value>
  185
+</Widget>
  186
+<Widget>
  187
+    <Kind>2</Kind>
  188
+    <Name>MATRIX3(0,3)</Name>
  189
+    <Value>1</Value>
  190
+</Widget>
  191
+<Widget>
  192
+    <Kind>20</Kind>
  193
+    <Name>IMAGETGL</Name>
  194
+    <Value>1</Value>
  195
+</Widget>
  196
+<Widget>
  197
+    <Kind>21</Kind>
  198
+    <Name>R2SLIDER</Name>
  199
+    <Value>59.0725</Value>
  200
+</Widget>
  201
+<Widget>
  202
+    <Kind>17</Kind>
  203
+    <Name>FIRST ITEM</Name>
  204
+    <Value>1</Value>
  205
+</Widget>
  206
+<Widget>
  207
+    <Kind>17</Kind>
  208
+    <Name>SECOND ITEM</Name>
  209
+    <Value>0</Value>
  210
+</Widget>
  211
+<Widget>
  212
+    <Kind>17</Kind>
  213
+    <Name>THIRD ITEM WHATS UP DOG</Name>
  214
+    <Value>0</Value>
  215
+</Widget>
  216
+<Widget>
  217
+    <Kind>17</Kind>
  218
+    <Name>FOURTH ITEM</Name>
  219
+    <Value>0</Value>
  220
+</Widget>
  221
+<Widget>
  222
+    <Kind>17</Kind>
  223
+    <Name>FIFTH ITEM</Name>
  224
+    <Value>0</Value>
  225
+</Widget>
  226
+<Widget>
  227
+    <Kind>17</Kind>
  228
+    <Name>SIXTH ITEM</Name>
  229
+    <Value>0</Value>
  230
+</Widget>
14  example-ofxUISaveLoadSettings/src/testApp.cpp
@@ -325,15 +325,15 @@ void testApp::setGUI2()
325 325
 
326 326
     gui2->addSpacer(length-xInit, 2);         
327 327
     gui2->addWidgetDown(new ofxUILabel("LABEL BUTTON", OFX_UI_FONT_MEDIUM));
328  
-    gui2->addWidgetDown(new ofxUILabelButton(length-xInit, false, "LABEL BUTTON", OFX_UI_FONT_MEDIUM));     
329  
-    gui2->addWidgetDown(new ofxUILabelButton(false, "AUTOSIZE BUTTON", OFX_UI_FONT_MEDIUM));     
330  
-    gui2->addWidgetDown(new ofxUILabelButton(false, "MEDIUM BUTTON", OFX_UI_FONT_MEDIUM));     
  328
+    gui2->addLabelButton("LABEL BUTTON", false, length-xInit);
  329
+    gui2->addLabelButton("AUTOSIZE BUTTON", false, length-xInit);
  330
+    gui2->addLabelButton("MEDIUM BUTTON", false, length-xInit);
331 331
     
332 332
     gui2->addSpacer(length-xInit, 2);             
333  
-    gui2->addWidgetDown(new ofxUILabel("LABEL TOGGLES", OFX_UI_FONT_MEDIUM));	
334  
-    gui2->addWidgetDown(new ofxUILabelToggle(length-xInit, false, "LABEL TOGGLE", OFX_UI_FONT_MEDIUM));     
335  
-    gui2->addWidgetDown(new ofxUILabelToggle(false, "AUTOSIZE TOGGLE", OFX_UI_FONT_MEDIUM));     
336  
-    gui2->addWidgetDown(new ofxUILabelToggle(false, "MEDIUM TOGGLE", OFX_UI_FONT_MEDIUM));     
  333
+    gui2->addLabel("LABEL TOGGLES");	
  334
+    gui2->addLabelToggle("LABEL TOGGLE", false, length-xInit);     
  335
+
  336
+    gui2->addLabelToggle("AUTOSIZE TOGGLE", false);
337 337
     
338 338
 	ofAddListener(gui2->newGUIEvent,this,&testApp::guiEvent);
339 339
 }
6  example-ofxUISimpleExample/bin/data/GUI/guiSettings.xml
@@ -36,7 +36,7 @@
36 36
 <Widget>
37 37
     <Kind>4</Kind>
38 38
     <Name>RADIUS</Name>
39  
-    <Value>580.769</Value>
  39
+    <Value>357.692</Value>
40 40
 </Widget>
41 41
 <Widget>
42 42
     <Kind>4</Kind>
@@ -51,6 +51,6 @@
51 51
 <Widget>
52 52
     <Kind>11</Kind>
53 53
     <Name>POSITION</Name>
54  
-    <XValue>167</XValue>
55  
-    <YValue>154</YValue>
  54
+    <XValue>215</XValue>
  55
+    <YValue>218</YValue>
56 56
 </Widget>

0 notes on commit f29a7d7

Please sign in to comment.
Something went wrong with that request. Please try again.