6
6
propagate_load((Fl_Group *)o,v);
9
Fl_Value_Input *widget_x_input=(Fl_Value_Input *)0;
11
Fl_Value_Input *widget_y_input=(Fl_Value_Input *)0;
13
Fl_Value_Input *widget_w_input=(Fl_Value_Input *)0;
15
Fl_Value_Input *widget_h_input=(Fl_Value_Input *)0;
9
17
Fl_Input *v_input[4]={(Fl_Input *)0};
11
19
Fl_Double_Window* make_widget_panel() {
89
97
{ Fl_Button* o = new Fl_Button(295, 115, 20, 20, "@-1<-");
90
98
o->tooltip("Left-align the label.");
100
o->labelcolor(FL_INACTIVE_COLOR);
93
101
o->callback((Fl_Callback*)align_cb, (void*)(FL_ALIGN_LEFT));
95
103
{ Fl_Button* o = new Fl_Button(315, 115, 20, 20, "@-1->");
96
104
o->tooltip("Right-align the label.");
106
o->labelcolor(FL_INACTIVE_COLOR);
99
107
o->callback((Fl_Callback*)align_cb, (void*)(FL_ALIGN_RIGHT));
101
109
{ Fl_Button* o = new Fl_Button(335, 115, 20, 20, "@-18");
102
110
o->tooltip("Top-align the label.");
112
o->labelcolor(FL_INACTIVE_COLOR);
105
113
o->callback((Fl_Callback*)align_cb, (void*)(FL_ALIGN_TOP));
107
115
{ Fl_Button* o = new Fl_Button(355, 115, 20, 20, "@-12");
108
116
o->tooltip("Bottom-align the label.");
118
o->labelcolor(FL_INACTIVE_COLOR);
111
119
o->callback((Fl_Callback*)align_cb, (void*)(FL_ALIGN_BOTTOM));
113
121
{ Fl_Button* o = new Fl_Button(375, 115, 20, 20, "@-3square");
114
122
o->tooltip("Show the label inside the widget.");
124
o->labelcolor(FL_INACTIVE_COLOR);
117
125
o->callback((Fl_Callback*)align_cb, (void*)(FL_ALIGN_INSIDE));
119
127
{ Fl_Box* o = new Fl_Box(256, 116, 20, 20);
124
{ Fl_Value_Input* o = new Fl_Value_Input(95, 150, 60, 20, "X:");
132
{ Fl_Value_Input* o = widget_x_input = new Fl_Value_Input(95, 150, 60, 20, "X:");
125
133
o->tooltip("The X position of the widget.");
126
134
o->labelsize(10);
127
135
o->maximum(2048);
132
140
{ Fl_Box* o = new Fl_Box(95, 150, 0, 20, "Position:");
133
141
o->align(FL_ALIGN_RIGHT|FL_ALIGN_INSIDE);
135
{ Fl_Value_Input* o = new Fl_Value_Input(155, 150, 60, 20, "Y:");
143
{ Fl_Value_Input* o = widget_y_input = new Fl_Value_Input(155, 150, 60, 20, "Y:");
136
144
o->tooltip("The Y position of the widget.");
137
145
o->labelsize(10);
138
146
o->maximum(2048);
140
148
o->callback((Fl_Callback*)y_cb);
141
149
o->align(FL_ALIGN_TOP_LEFT);
143
{ Fl_Value_Input* o = new Fl_Value_Input(215, 150, 60, 20, "Width:");
151
{ Fl_Value_Input* o = widget_w_input = new Fl_Value_Input(215, 150, 60, 20, "Width:");
144
152
o->tooltip("The width of the widget.");
145
153
o->labelsize(10);
146
154
o->maximum(2048);
148
156
o->callback((Fl_Callback*)w_cb);
149
157
o->align(FL_ALIGN_TOP_LEFT);
151
{ Fl_Value_Input* o = new Fl_Value_Input(275, 150, 60, 20, "Height:");
159
{ Fl_Value_Input* o = widget_h_input = new Fl_Value_Input(275, 150, 60, 20, "Height:");
152
160
o->tooltip("The height of the widget.");
153
161
o->labelsize(10);
154
162
o->maximum(2048);
194
202
{ Shortcut_Button* o = new Shortcut_Button(95, 210, 300, 20, "Shortcut:");
195
203
o->tooltip("The shortcut key for the widget.");
196
204
o->box(FL_DOWN_BOX);
198
o->selection_color(7);
205
o->color(FL_BACKGROUND2_COLOR);
206
o->selection_color(FL_BACKGROUND2_COLOR);
199
207
o->labeltype(FL_NORMAL_LABEL);
201
209
o->labelsize(14);
210
o->labelcolor(FL_BLACK);
203
211
o->callback((Fl_Callback*)shortcut_in_cb);
204
212
o->align(FL_ALIGN_LEFT);
205
213
o->when(FL_WHEN_RELEASE);
214
222
{ Fl_Light_Button* o = new Fl_Light_Button(210, 235, 60, 20, "Border");
215
223
o->tooltip("Add a border around the window.");
216
o->selection_color(1);
224
o->selection_color((Fl_Color)1);
217
225
o->labelsize(10);
218
226
o->callback((Fl_Callback*)border_cb);
220
228
{ Fl_Light_Button* o = new Fl_Light_Button(270, 235, 55, 20, "Modal");
221
229
o->tooltip("Make the window modal.");
222
o->selection_color(1);
230
o->selection_color((Fl_Color)1);
223
231
o->labelsize(10);
224
232
o->callback((Fl_Callback*)modal_cb);
226
234
{ Fl_Light_Button* o = new Fl_Light_Button(325, 235, 70, 20, "Nonmodal");
227
235
o->tooltip("Make the window non-modal.");
228
o->selection_color(1);
236
o->selection_color((Fl_Color)1);
230
238
o->callback((Fl_Callback*)non_modal_cb);
231
239
o->align(132|FL_ALIGN_INSIDE);
236
244
o->callback((Fl_Callback*)propagate_load);
237
245
{ Fl_Light_Button* o = new Fl_Light_Button(95, 260, 70, 20, "Visible");
238
246
o->tooltip("Show the widget.");
239
o->selection_color(1);
247
o->selection_color((Fl_Color)1);
240
248
o->labelsize(10);
241
249
o->callback((Fl_Callback*)visible_cb);
246
254
{ Fl_Light_Button* o = new Fl_Light_Button(165, 260, 70, 20, "Active");
247
255
o->tooltip("Activate the widget.");
248
o->selection_color(1);
256
o->selection_color((Fl_Color)1);
249
257
o->labelsize(10);
250
258
o->callback((Fl_Callback*)active_cb);
252
260
{ Fl_Light_Button* o = new Fl_Light_Button(235, 260, 70, 20, "Resizable");
253
261
o->tooltip("Make the widget resizable.");
254
o->selection_color(1);
262
o->selection_color((Fl_Color)1);
255
263
o->labelsize(10);
256
264
o->callback((Fl_Callback*)resizable_cb);
257
265
o->when(FL_WHEN_CHANGED);
259
267
{ Fl_Light_Button* o = new Fl_Light_Button(305, 260, 70, 20, "Hotspot");
260
268
o->tooltip("Center the window under this widget.");
261
o->selection_color(1);
269
o->selection_color((Fl_Color)1);
262
270
o->labelsize(10);
263
271
o->callback((Fl_Callback*)hotspot_cb);
264
272
o->when(FL_WHEN_CHANGED);
412
420
{ Fl_Light_Button* o = new Fl_Light_Button(330, 65, 65, 20, "public");
413
421
o->tooltip("Make the widget publicly accessible.");
414
o->selection_color(1);
422
o->selection_color((Fl_Color)1);
415
423
o->labelsize(10);
416
424
o->callback((Fl_Callback*)name_public_cb);
417
425
o->when(FL_WHEN_CHANGED);
487
495
{ Fl_Light_Button* o = new Fl_Light_Button(290, 295, 105, 20, "No Change");
488
496
o->tooltip("Call the callback even if the value has not changed.");
489
o->selection_color(1);
497
o->selection_color((Fl_Color)1);
490
498
o->labelsize(10);
491
499
o->callback((Fl_Callback*)when_button_cb);
510
518
{ Fl_Button* o = new Fl_Button(215, 335, 100, 25, "No &Overlay");
511
519
o->tooltip("Hide the widget overlay box.");
520
o->labelcolor((Fl_Color)1);
513
521
o->callback((Fl_Callback*)overlay_cb);
515
523
{ Fl_Button* o = new Fl_Button(155, 335, 80, 25, "Revert");