~ubuntu-branches/ubuntu/karmic/fltk1.1/karmic

« back to all changes in this revision

Viewing changes to fluid/widget_panel.cxx

  • Committer: Bazaar Package Importer
  • Author(s): Aaron M. Ucko
  • Date: 2005-05-22 13:57:06 UTC
  • mfrom: (2.1.1 hoary)
  • Revision ID: james.westby@ubuntu.com-20050522135706-mchag24yf42lu7bu
Tags: 1.1.6-5
* Revert previous change, which seems to have been ineffective for some
  reason, in favor of commenting out the problematic Makefile rule
  altogether.  (Closes: #310151.)
* debian/control: Go back to specifying the URL as part of the
  description rather than via a non-standard field that doesn't seem to
  have caught on.  (Closes: #310240.)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// generated by Fast Light User Interface Designer (fluid) version 1.0104
 
1
// generated by Fast Light User Interface Designer (fluid) version 1.0106
2
2
 
3
3
#include "widget_panel.h"
4
4
 
6
6
  propagate_load((Fl_Group *)o,v);
7
7
}
8
8
 
 
9
Fl_Value_Input *widget_x_input=(Fl_Value_Input *)0;
 
10
 
 
11
Fl_Value_Input *widget_y_input=(Fl_Value_Input *)0;
 
12
 
 
13
Fl_Value_Input *widget_w_input=(Fl_Value_Input *)0;
 
14
 
 
15
Fl_Value_Input *widget_h_input=(Fl_Value_Input *)0;
 
16
 
9
17
Fl_Input *v_input[4]={(Fl_Input *)0};
10
18
 
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.");
91
99
              o->type(1);
92
 
              o->labelcolor(8);
 
100
              o->labelcolor(FL_INACTIVE_COLOR);
93
101
              o->callback((Fl_Callback*)align_cb, (void*)(FL_ALIGN_LEFT));
94
102
            }
95
103
            { Fl_Button* o = new Fl_Button(315, 115, 20, 20, "@-1->");
96
104
              o->tooltip("Right-align the label.");
97
105
              o->type(1);
98
 
              o->labelcolor(8);
 
106
              o->labelcolor(FL_INACTIVE_COLOR);
99
107
              o->callback((Fl_Callback*)align_cb, (void*)(FL_ALIGN_RIGHT));
100
108
            }
101
109
            { Fl_Button* o = new Fl_Button(335, 115, 20, 20, "@-18");
102
110
              o->tooltip("Top-align the label.");
103
111
              o->type(1);
104
 
              o->labelcolor(8);
 
112
              o->labelcolor(FL_INACTIVE_COLOR);
105
113
              o->callback((Fl_Callback*)align_cb, (void*)(FL_ALIGN_TOP));
106
114
            }
107
115
            { Fl_Button* o = new Fl_Button(355, 115, 20, 20, "@-12");
108
116
              o->tooltip("Bottom-align the label.");
109
117
              o->type(1);
110
 
              o->labelcolor(8);
 
118
              o->labelcolor(FL_INACTIVE_COLOR);
111
119
              o->callback((Fl_Callback*)align_cb, (void*)(FL_ALIGN_BOTTOM));
112
120
            }
113
121
            { Fl_Button* o = new Fl_Button(375, 115, 20, 20, "@-3square");
114
122
              o->tooltip("Show the label inside the widget.");
115
123
              o->type(1);
116
 
              o->labelcolor(8);
 
124
              o->labelcolor(FL_INACTIVE_COLOR);
117
125
              o->callback((Fl_Callback*)align_cb, (void*)(FL_ALIGN_INSIDE));
118
126
            }
119
127
            { Fl_Box* o = new Fl_Box(256, 116, 20, 20);
121
129
            }
122
130
            o->end();
123
131
          }
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);
134
142
          }
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);
142
150
          }
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);
150
158
          }
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);
197
 
            o->color(7);
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);
200
208
            o->labelfont(0);
201
209
            o->labelsize(14);
202
 
            o->labelcolor(56);
 
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);
213
221
            }
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);
219
227
            }
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);
225
233
            }
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);
229
237
              o->labelsize(9);
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);
242
250
            }
245
253
            }
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);
251
259
            }
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);
258
266
            }
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);
411
419
            }
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);
486
494
            }
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);
492
500
            }
509
517
      }
510
518
      { Fl_Button* o = new Fl_Button(215, 335, 100, 25, "No &Overlay");
511
519
        o->tooltip("Hide the widget overlay box.");
512
 
        o->labelcolor(1);
 
520
        o->labelcolor((Fl_Color)1);
513
521
        o->callback((Fl_Callback*)overlay_cb);
514
522
      }
515
523
      { Fl_Button* o = new Fl_Button(155, 335, 80, 25, "Revert");