fltk  1.3.5-source
About: FLTK (Fast Light Tool Kit) is a cross-platform C++ GUI toolkit for UNIX/Linux (X11), Microsoft Windows, and MacOS X.
  Fossies Dox: fltk-1.3.5-source.tar.bz2  ("inofficial" and yet experimental doxygen-generated source code documentation)  

factory.cxx
Go to the documentation of this file.
1 //
2 // "$Id$"
3 //
4 // Widget factory code for the Fast Light Tool Kit (FLTK).
5 //
6 // Type classes for most of the fltk widgets. Most of the work
7 // is done by code in Fl_Widget_Type.C. Also a factory instance
8 // of each of these type classes.
9 //
10 // This file also contains the "new" menu, which has a pointer
11 // to a factory instance for every class (both the ones defined
12 // here and ones in other files)
13 //
14 // Copyright 1998-2010 by Bill Spitzak and others.
15 //
16 // This library is free software. Distribution and use rights are outlined in
17 // the file "COPYING" which should have been included with this file. If this
18 // file is missing or damaged, see the license at:
19 //
20 // http://www.fltk.org/COPYING.php
21 //
22 // Please report all bugs and problems on the following page:
23 //
24 // http://www.fltk.org/str.php
25 //
26 
27 #include <FL/Fl.H>
28 #include <FL/Fl_Group.H>
29 #include <FL/Fl_Menu_Item.H>
30 #include <FL/Fl_Pixmap.H>
31 #include <FL/Fl_Tree.H>
32 #include <stdio.h>
33 #include "../src/flstring.h"
34 #include "undo.h"
35 
36 #include "Fl_Widget_Type.h"
37 
38 extern Fl_Pixmap *pixmap[];
39 
41 
42 #include <FL/Fl_Box.H>
43 class Fl_Box_Type : public Fl_Widget_Type {
44 public:
45  virtual const char *type_name() {return "Fl_Box";}
46  virtual const char *alt_type_name() {return "fltk::Widget";}
47  Fl_Widget *widget(int x,int y,int w, int h) {
48  return new Fl_Box(x,y,w,h,"label");}
49  Fl_Widget_Type *_make() {return new Fl_Box_Type();}
50  int pixmapID() { return 5; }
51 };
53 
55 
56 #include <FL/Fl_Button.H>
58  {"Normal",0,0,(void*)0},
59  {"Toggle",0,0,(void*)FL_TOGGLE_BUTTON},
60  {"Radio",0,0,(void*)FL_RADIO_BUTTON},
61  {0}};
64 public:
65  virtual void ideal_size(int &w, int &h) {
67  w += 2 * (o->labelsize() - 4);
68  h = (h / 5) * 5;
69  }
70  virtual const char *type_name() {return "Fl_Button";}
71  virtual const char *alt_type_name() {return "fltk::Button";}
72  Fl_Widget *widget(int x,int y,int w,int h) {
73  return new Fl_Button(x,y,w,h,"button");}
74  Fl_Widget_Type *_make() {return new Fl_Button_Type();}
75  int is_button() const {return 1;}
76  int pixmapID() { return 2; }
77 };
79 
81 
82 #include <FL/Fl_Return_Button.H>
84 public:
85  virtual void ideal_size(int &w, int &h) {
87  int W = o->h();
88  if (o->w()/3 < W) W = o->w()/3;
89  w += W + 8 - o->labelsize();
90  }
91  virtual const char *type_name() {return "Fl_Return_Button";}
92  virtual const char *alt_type_name() {return "fltk::ReturnButton";}
93  Fl_Widget *widget(int x,int y,int w,int h) {
94  return new Fl_Return_Button(x,y,w,h,"button");}
96  int pixmapID() { return 23; }
97 };
99 
101 
102 #include <FL/Fl_Repeat_Button.H>
104 public:
105  virtual const char *type_name() {return "Fl_Repeat_Button";}
106  virtual const char *alt_type_name() {return "fltk::RepeatButton";}
107  Fl_Widget *widget(int x,int y,int w,int h) {
108  return new Fl_Repeat_Button(x,y,w,h,"button");}
110  int pixmapID() { return 25; }
111 };
113 
115 
116 #include <FL/Fl_Light_Button.H>
118 public:
119  virtual void ideal_size(int &w, int &h) {
121  w += 4;
122  }
123  virtual const char *type_name() {return "Fl_Light_Button";}
124  virtual const char *alt_type_name() {return "fltk::LightButton";}
125  Fl_Widget *widget(int x,int y,int w,int h) {
126  return new Fl_Light_Button(x,y,w,h,"button");}
128  int pixmapID() { return 24; }
129 };
131 
133 
134 #include <FL/Fl_Check_Button.H>
136 public:
137  virtual void ideal_size(int &w, int &h) {
139  w += 4;
140  }
141  virtual const char *type_name() {return "Fl_Check_Button";}
142  virtual const char *alt_type_name() {return "fltk::CheckButton";}
143  Fl_Widget *widget(int x,int y,int w,int h) {
144  return new Fl_Check_Button(x,y,w,h,"button");}
146  int pixmapID() { return 3; }
147 };
149 
151 
152 #include <FL/Fl_Round_Button.H>
154 public:
155  virtual void ideal_size(int &w, int &h) {
157  w += 4;
158  }
159  virtual const char *type_name() {return "Fl_Round_Button";}
160  virtual const char *alt_type_name() {return "fltk::RadioButton";}
161  Fl_Widget *widget(int x,int y,int w,int h) {
162  return new Fl_Round_Button(x,y,w,h,"button");}
164  int pixmapID() { return 4; }
165 };
167 
169 
170 extern int batch_mode;
171 
172 #include <FL/Fl_Browser.H>
173 #include <FL/Fl_Check_Browser.H>
174 #include <FL/Fl_File_Browser.H>
175 
177  {"No Select",0,0,(void*)FL_NORMAL_BROWSER},
178  {"Select",0,0,(void*)FL_SELECT_BROWSER},
179  {"Hold",0,0,(void*)FL_HOLD_BROWSER},
180  {"Multi",0,0,(void*)FL_MULTI_BROWSER},
181  {0}};
184  int textstuff(int w, Fl_Font& f, int& s, Fl_Color& c);
185 public:
186  virtual void ideal_size(int &w, int &h) {
187  Fl_Browser *myo = (Fl_Browser *)o;
188  fl_font(myo->textfont(), myo->textsize());
189  h -= Fl::box_dh(o->box());
190  w -= Fl::box_dw(o->box());
191  int ww = (int)fl_width('m');
192  w = ((w + ww - 1) / ww) * ww + Fl::box_dw(o->box());
193  h = ((h + fl_height() - 1) / fl_height()) * fl_height() +
194  Fl::box_dh(o->box());
195  if (h < 30) h = 30;
196  if (w < 50) w = 50;
197  }
198  virtual const char *type_name() {return "Fl_Browser";}
199  virtual const char *alt_type_name() {return "fltk::Browser";}
200  Fl_Widget *widget(int x,int y,int w,int h) {
201  Fl_Browser* b = new Fl_Browser(x,y,w,h);
202  // Fl_Browser::add calls fl_height(), which requires the X display open.
203  // Avoid this when compiling so it works w/o a display:
204  if (!batch_mode) {
205  char buffer[20];
206  for (int i = 1; i <= 20; i++) {
207  sprintf(buffer,"Browser Line %d",i);
208  b->add(buffer);
209  }
210  }
211  return b;
212  }
214  int pixmapID() { return 31; }
215 };
217 
218 int Fl_Browser_Type::textstuff(int w, Fl_Font& f, int& s, Fl_Color& c) {
219  Fl_Browser *myo = (Fl_Browser*)(w==4 ? ((Fl_Widget_Type*)factory)->o : o);
220  switch (w) {
221  case 4:
222  case 0: f = myo->textfont(); s = myo->textsize(); c = myo->textcolor(); break;
223  case 1: myo->textfont(f); break;
224  case 2: myo->textsize(s); break;
225  case 3: myo->textcolor(c); break;
226  }
227  return 1;
228 }
229 
232  int textstuff(int w, Fl_Font& f, int& s, Fl_Color& c);
233 public:
234  virtual void ideal_size(int &w, int &h) {
236  fl_font(myo->textfont(), myo->textsize());
237  h -= Fl::box_dh(o->box());
238  w -= Fl::box_dw(o->box()) - fl_height();
239  int ww = (int)fl_width('m');
240  w = ((w + ww - 1) / ww) * ww + Fl::box_dw(o->box());
241  h = ((h + fl_height() - 1) / fl_height()) * fl_height() +
242  Fl::box_dh(o->box());
243  if (h < 30) h = 30;
244  if (w < 50) w = 50;
245  }
246  virtual const char *type_name() {return "Fl_Check_Browser";}
247  virtual const char *alt_type_name() {return "fltk::CheckBrowser";}
248  Fl_Widget *widget(int x,int y,int w,int h) {
249  Fl_Check_Browser* b = new Fl_Check_Browser(x,y,w,h);
250  // Fl_Check_Browser::add calls fl_height(), which requires the X display open.
251  // Avoid this when compiling so it works w/o a display:
252  if (!batch_mode) {
253  char buffer[20];
254  for (int i = 1; i <= 20; i++) {
255  sprintf(buffer,"Browser Line %d",i);
256  b->add(buffer);
257  }
258  }
259  return b;
260  }
262  int pixmapID() { return 32; }
263 };
265 
267  Fl_Check_Browser *myo = (Fl_Check_Browser*)(w==4 ? ((Fl_Widget_Type*)factory)->o : o);
268  switch (w) {
269  case 4:
270  case 0: f = myo->textfont(); s = myo->textsize(); c = myo->textcolor(); break;
271  case 1: myo->textfont(f); break;
272  case 2: myo->textsize(s); break;
273  case 3: myo->textcolor(c); break;
274  }
275  return 1;
276 }
277 
278 class Fl_Tree_Type : public Fl_Widget_Type {
279 public:
280  virtual void ideal_size(int &w, int &h) {
281  if (h < 60) h = 60;
282  if (w < 80) w = 80;
283  }
284  virtual const char *type_name() {return "Fl_Tree";}
285  virtual const char *alt_type_name() {return "fltk::TreeBrowser";}
286  Fl_Widget *widget(int x,int y,int w,int h) {
287  Fl_Tree* b = new Fl_Tree(x,y,w,h);
288  if (!batch_mode) {
289  b->add("/A1/B1/C1");
290  b->add("/A1/B1/C2");
291  b->add("/A1/B2/C1");
292  b->add("/A1/B2/C2");
293  b->add("/A2/B1/C1");
294  b->add("/A2/B1/C2");
295  b->add("/A2/B2/C1");
296  b->add("/A2/B2/C2");
297  }
298  return b;
299  }
300  Fl_Widget_Type *_make() {return new Fl_Tree_Type();}
301  int pixmapID() { return 50; }
302 };
304 
307  int textstuff(int w, Fl_Font& f, int& s, Fl_Color& c);
308 public:
309  virtual void ideal_size(int &w, int &h) {
311  fl_font(myo->textfont(), myo->textsize());
312  h -= Fl::box_dh(o->box());
313  w -= Fl::box_dw(o->box()) + fl_height();
314  int ww = (int)fl_width('m');
315  w = ((w + ww - 1) / ww) * ww + Fl::box_dw(o->box());
316  h = ((h + fl_height() - 1) / fl_height()) * fl_height() +
317  Fl::box_dh(o->box());
318  if (h < 30) h = 30;
319  if (w < 50) w = 50;
320  }
321  virtual const char *type_name() {return "Fl_File_Browser";}
322  virtual const char *alt_type_name() {return "fltk::FileBrowser";}
323  Fl_Widget *widget(int x,int y,int w,int h) {
324  Fl_File_Browser* b = new Fl_File_Browser(x,y,w,h);
325  // Fl_File_Browser::add calls fl_height(), which requires the X display open.
326  // Avoid this when compiling so it works w/o a display:
327  if (!batch_mode) {
328  b->load(".");
329  }
330  return b;
331  }
333  int pixmapID() { return 33; }
334 };
336 
338  Fl_File_Browser *myo = (Fl_File_Browser*)(w==4 ? ((Fl_Widget_Type*)factory)->o : o);
339  switch (w) {
340  case 4:
341  case 0: f = myo->textfont(); s = myo->textsize(); c = myo->textcolor(); break;
342  case 1: myo->textfont(f); break;
343  case 2: myo->textsize(s); break;
344  case 3: myo->textcolor(c); break;
345  }
346  return 1;
347 }
348 
350 
351 #include <FL/Fl_Counter.H>
353  {"Normal",0,0,(void*)FL_NORMAL_COUNTER},
354  {"Simple",0,0,(void*)FL_SIMPLE_COUNTER},
355  {0}};
358  int textstuff(int w, Fl_Font& f, int& s, Fl_Color& c);
359  int is_valuator() const {return 1;}
360  int pixmapID() { return 41; }
361 public:
362  virtual const char *type_name() {return "Fl_Counter";}
363  virtual const char *alt_type_name() {return "fltk::Counter";}
364  Fl_Widget *widget(int x,int y,int w,int h) {
365  return new Fl_Counter(x,y,w,h,"counter:");}
367 };
369 
370 int Fl_Counter_Type::textstuff(int w, Fl_Font& f, int& s, Fl_Color& c) {
371  Fl_Counter *myo = (Fl_Counter*)(w==4 ? ((Fl_Widget_Type*)factory)->o : o);
372  switch (w) {
373  case 4:
374  case 0: f = myo->textfont(); s = myo->textsize(); c = myo->textcolor(); break;
375  case 1: myo->textfont(f); break;
376  case 2: myo->textsize(s); break;
377  case 3: myo->textcolor(c); break;
378  }
379  return 1;
380 }
381 
383 
384 #include <FL/Fl_Spinner.H>
386  {"Integer",0,0,(void*)FL_INT_INPUT},
387  {"Float", 0,0,(void*)FL_FLOAT_INPUT},
388  {0}};
391  int textstuff(int w, Fl_Font& f, int& s, Fl_Color& c);
392  int pixmapID() { return 47; }
393 public:
394  virtual void ideal_size(int &w, int &h) {
395  Fl_Spinner *myo = (Fl_Spinner *)o;
396  fl_font(myo->textfont(), myo->textsize());
397  h = fl_height() + myo->textsize() - 6;
398  if (h < 15) h = 15;
399  w -= Fl::box_dw(o->box());
400  int ww = (int)fl_width('m');
401  w = ((w + ww - 1) / ww) * ww + Fl::box_dw(o->box()) + h / 2;
402  if (w < 40) w = 40 ;
403  }
404  virtual const char *type_name() {return "Fl_Spinner";}
405  virtual const char *alt_type_name() {return "fltk::Spinner";}
406  int is_spinner() const { return 1; }
407  Fl_Widget *widget(int x,int y,int w,int h) {
408  return new Fl_Spinner(x,y,w,h,"spinner:");}
410 };
412 
413 int Fl_Spinner_Type::textstuff(int w, Fl_Font& f, int& s, Fl_Color& c) {
414  Fl_Spinner *myo = (Fl_Spinner*)(w==4 ? ((Fl_Widget_Type*)factory)->o : o);
415  switch (w) {
416  case 4:
417  case 0: f = (Fl_Font)myo->textfont(); s = myo->textsize(); c = myo->textcolor(); break;
418  case 1: myo->textfont(f); break;
419  case 2: myo->textsize(s); break;
420  case 3: myo->textcolor(c); break;
421  }
422  return 1;
423 }
424 
426 
427 #include <FL/Fl_Input.H>
429  {"Normal",0,0,(void*)FL_NORMAL_INPUT},
430  {"Multiline",0,0,(void*)FL_MULTILINE_INPUT},
431  {"Secret",0,0,(void*)FL_SECRET_INPUT},
432  {"Int",0,0,(void*)FL_INT_INPUT},
433  {"Float",0,0,(void*)FL_FLOAT_INPUT},
434  {0}};
437  int textstuff(int w, Fl_Font& f, int& s, Fl_Color& c);
438 public:
439  virtual void ideal_size(int &w, int &h) {
440  Fl_Input *myo = (Fl_Input *)o;
441  fl_font(myo->textfont(), myo->textsize());
442  h = fl_height() + myo->textsize() - 6;
443  w -= Fl::box_dw(o->box());
444  int ww = (int)fl_width('m');
445  w = ((w + ww - 1) / ww) * ww + Fl::box_dw(o->box());
446  if (h < 15) h = 15;
447  if (w < 15) w = 15;
448  }
449  virtual const char *type_name() {return "Fl_Input";}
450  virtual const char *alt_type_name() {return "fltk::Input";}
451  int is_input() const {return 1;}
452  Fl_Widget *widget(int x,int y,int w,int h) {
453  Fl_Input *myo = new Fl_Input(x,y,w,h,"input:");
454  myo->value("Text Input");
455  return myo;
456  }
457  Fl_Widget_Type *_make() {return new Fl_Input_Type();}
458  int pixmapID() { return 14; }
459  virtual void copy_properties() {
461  Fl_Input_ *d = (Fl_Input_*)live_widget, *s = (Fl_Input_*)o;
462  d->textfont(s->textfont());
463  d->textsize(s->textsize());
464  d->textcolor(s->textcolor());
465  d->shortcut(s->shortcut());
466  }
467 };
469 
470 int Fl_Input_Type::textstuff(int w, Fl_Font& f, int& s, Fl_Color& c) {
471  Fl_Input_ *myo = (Fl_Input_*)(w==4 ? ((Fl_Widget_Type*)factory)->o : o);
472  switch (w) {
473  case 4:
474  case 0: f = myo->textfont(); s = myo->textsize(); c = myo->textcolor(); break;
475  case 1: myo->textfont(f); break;
476  case 2: myo->textsize(s); break;
477  case 3: myo->textcolor(c); break;
478  }
479  return 1;
480 }
481 
483 
484 #include <FL/Fl_File_Input.H>
486  Fl_Menu_Item *subtypes() {return 0;}
487  int textstuff(int w, Fl_Font& f, int& s, Fl_Color& c);
488 public:
489  virtual void ideal_size(int &w, int &h) {
490  Fl_File_Input *myo = (Fl_File_Input *)o;
491  fl_font(myo->textfont(), myo->textsize());
492  h = fl_height() + myo->textsize() + 4;
493  w -= Fl::box_dw(o->box());
494  int ww = (int)fl_width('m');
495  w = ((w + ww - 1) / ww) * ww + Fl::box_dw(o->box());
496  if (h < 20) h = 20;
497  if (w < 50) w = 50;
498  }
499  virtual const char *type_name() {return "Fl_File_Input";}
500  virtual const char *alt_type_name() {return "fltk::FileInput";}
501  int is_input() const {return 1;}
502  Fl_Widget *widget(int x,int y,int w,int h) {
503  Fl_File_Input *myo = new Fl_File_Input(x,y,w,h,"file:");
504  myo->value("/now/is/the/time/for/a/filename.ext");
505  return myo;
506  }
508  int pixmapID() { return 30; }
509 };
511 
513  Fl_File_Input *myo = (Fl_File_Input*)(w==4 ? ((Fl_Widget_Type*)factory)->o : o);
514  switch (w) {
515  case 4:
516  case 0: f = myo->textfont(); s = myo->textsize(); c = myo->textcolor(); break;
517  case 1: myo->textfont(f); break;
518  case 2: myo->textsize(s); break;
519  case 3: myo->textcolor(c); break;
520  }
521  return 1;
522 }
523 
525 
526 #include <FL/Fl_Text_Display.H>
528  int textstuff(int w, Fl_Font& f, int& s, Fl_Color& c);
529 public:
530  virtual void ideal_size(int &w, int &h) {
532  fl_font(myo->textfont(), myo->textsize());
533  h -= Fl::box_dh(o->box());
534  w -= Fl::box_dw(o->box());
535  int ww = (int)fl_width('m');
536  w = ((w + ww - 1) / ww) * ww + Fl::box_dw(o->box());
537  h = ((h + fl_height() - 1) / fl_height()) * fl_height() +
538  Fl::box_dh(o->box());
539  if (h < 30) h = 30;
540  if (w < 50) w = 50;
541  }
542  virtual const char *type_name() {return "Fl_Text_Display";}
543  virtual const char *alt_type_name() {return "fltk::TextDisplay";}
544  int is_text_display() const {return 1;}
545  Fl_Widget *widget(int x,int y,int w,int h) {
546  Fl_Text_Display *myo = new Fl_Text_Display(x,y,w,h);
547  return myo;
548  }
550  int pixmapID() { return 28; }
551 };
553 
555  Fl_Text_Display *myo = (Fl_Text_Display*)(w==4 ? ((Fl_Widget_Type*)factory)->o : o);
556  switch (w) {
557  case 4:
558  case 0: f = myo->textfont(); s = myo->textsize(); c = myo->textcolor(); break;
559  case 1: myo->textfont(f); break;
560  case 2: myo->textsize(s); break;
561  case 3: myo->textcolor(c); break;
562  }
563  return 1;
564 }
565 
567 
568 #include <FL/Fl_Text_Editor.H>
570  int textstuff(int w, Fl_Font& f, int& s, Fl_Color& c);
571 public:
572  virtual void ideal_size(int &w, int &h) {
573  Fl_Text_Editor *myo = (Fl_Text_Editor *)o;
574  fl_font(myo->textfont(), myo->textsize());
575  h -= Fl::box_dh(o->box());
576  w -= Fl::box_dw(o->box());
577  int ww = (int)fl_width('m');
578  w = ((w + ww - 1) / ww) * ww + Fl::box_dw(o->box());
579  h = ((h + fl_height() - 1) / fl_height()) * fl_height() +
580  Fl::box_dh(o->box());
581  if (h < 30) h = 30;
582  if (w < 50) w = 50;
583  }
584  virtual const char *type_name() {return "Fl_Text_Editor";}
585  virtual const char *alt_type_name() {return "fltk::TextEditor";}
586  int is_text_display() const {return 1;}
587  Fl_Widget *widget(int x,int y,int w,int h) {
588  Fl_Text_Editor *myo = new Fl_Text_Editor(x,y,w,h);
589  return myo;
590  }
592  int pixmapID() { return 29; }
593 };
595 
597  Fl_Text_Editor *myo = (Fl_Text_Editor*)(w==4 ? ((Fl_Widget_Type*)factory)->o : o);
598  switch (w) {
599  case 4:
600  case 0: f = myo->textfont(); s = myo->textsize(); c = myo->textcolor(); break;
601  case 1: myo->textfont(f); break;
602  case 2: myo->textsize(s); break;
603  case 3: myo->textcolor(c); break;
604  }
605  return 1;
606 }
607 
609 
610 #include <FL/Fl_Clock.H>
612 public:
613  virtual const char *type_name() {return "Fl_Clock";}
614  virtual const char *alt_type_name() {return "fltk::Clock";}
615  Fl_Widget *widget(int x,int y,int w,int h) {
616  return new Fl_Clock(x,y,w,h);}
617  Fl_Widget_Type *_make() {return new Fl_Clock_Type();}
618  int pixmapID() { return 34; }
619 };
621 
623 
624 #include <FL/Fl_Help_View.H>
626 public:
627  virtual void ideal_size(int &w, int &h) {
628  Fl_Help_View *myo = (Fl_Help_View *)o;
629  fl_font(myo->textfont(), myo->textsize());
630  h -= Fl::box_dh(o->box());
631  w -= Fl::box_dw(o->box());
632  int ww = (int)fl_width('m');
633  w = ((w + ww - 1) / ww) * ww + Fl::box_dw(o->box());
634  h = ((h + fl_height() - 1) / fl_height()) * fl_height() +
635  Fl::box_dh(o->box());
636  if (h < 30) h = 30;
637  if (w < 50) w = 50;
638  }
639  virtual const char *type_name() {return "Fl_Help_View";}
640  virtual const char *alt_type_name() {return "fltk::HelpView";}
641  Fl_Widget *widget(int x,int y,int w,int h) {
642  Fl_Help_View *myo = new Fl_Help_View(x,y,w,h);
643  if (!batch_mode) {
644  myo->value("<HTML><BODY><H1>Fl_Help_View Widget</H1>"
645  "<P>This is a Fl_Help_View widget.</P></BODY></HTML>");
646  }
647  return myo;}
649  int pixmapID() { return 35; }
650 };
652 
654 
655 #include <FL/Fl_Progress.H>
657 public:
658  virtual const char *type_name() {return "Fl_Progress";}
659  virtual const char *alt_type_name() {return "fltk::ProgressBar";}
660  Fl_Widget *widget(int x,int y,int w,int h) {
661  Fl_Progress *myo = new Fl_Progress(x,y,w,h,"label");
662  myo->value(50);
663  return myo;}
665  int pixmapID() { return 36; }
666 };
668 
670 
671 #include <FL/Fl_Adjuster.H>
673  int is_valuator() const {return 1;}
674 public:
675  virtual const char *type_name() {return "Fl_Adjuster";}
676  virtual const char *alt_type_name() {return "fltk::Adjuster";}
677  Fl_Widget *widget(int x,int y,int w,int h) {
678  return new Fl_Adjuster(x,y,w,h);}
680  int pixmapID() { return 40; }
681 };
683 
685 
686 #include <FL/Fl_Dial.H>
688  {"Dot",0,0,(void*)0},
689  {"Line",0,0,(void*)FL_LINE_DIAL},
690  {"Fill",0,0,(void*)FL_FILL_DIAL},
691  {0}};
692 class Fl_Dial_Type : public Fl_Widget_Type {
694  int is_valuator() const {return 1;}
695 public:
696  virtual const char *type_name() {return "Fl_Dial";}
697  virtual const char *alt_type_name() {return "fltk::Dial";}
698  Fl_Widget *widget(int x,int y,int w,int h) {
699  return new Fl_Dial(x,y,w,h);}
700  Fl_Widget_Type *_make() {return new Fl_Dial_Type();}
701  int pixmapID() { return 42; }
702 };
704 
706 
707 #include <FL/Fl_Roller.H>
709  {"Vertical",0,0,(void*)0},
710  {"Horizontal",0,0,(void*)FL_HORIZONTAL},
711  {0}};
714  int is_valuator() const {return 1;}
715 public:
716  virtual const char *type_name() {return "Fl_Roller";}
717  virtual const char *alt_type_name() {return "fltk::Roller";}
718  Fl_Widget *widget(int x,int y,int w,int h) {
719  return new Fl_Roller(x,y,w,h);}
721  int pixmapID() { return 43; }
722 };
724 
726 
727 #include <FL/Fl_Scrollbar.H>
729  {"Vertical",0,0,(void*)FL_VERT_SLIDER},
730  {"Horizontal",0,0,(void*)FL_HOR_SLIDER},
731  {"Vert Fill",0,0,(void*)FL_VERT_FILL_SLIDER},
732  {"Horz Fill",0,0,(void*)FL_HOR_FILL_SLIDER},
733  {"Vert Knob",0,0,(void*)FL_VERT_NICE_SLIDER},
734  {"Horz Knob",0,0,(void*)FL_HOR_NICE_SLIDER},
735  {0}};
738  int is_valuator() const {return 2;}
739 public:
740  virtual const char *type_name() {return "Fl_Slider";}
741  virtual const char *alt_type_name() {return "fltk::Slider";}
742  Fl_Widget *widget(int x,int y,int w,int h) {
743  return new Fl_Slider(x,y,w,h,"slider:");}
745  int pixmapID() { return 37; }
746 };
748 
750  {"Vertical",0,0,(void*)FL_VERT_SLIDER},
751  {"Horizontal",0,0,(void*)FL_HOR_SLIDER},
752  {0}};
755  int is_valuator() const {return 3;}
756 public:
757  virtual const char *type_name() {return "Fl_Scrollbar";}
758  virtual const char *alt_type_name() {return "fltk::Scrollbar";}
759  Fl_Widget *widget(int x,int y,int w,int h) {
760  return new Fl_Scrollbar(x,y,w,h);}
762  int pixmapID() { return 38; }
763 };
765 
767 
768 #include <FL/Fl_Output.H>
770  {"Normal",0,0,(void*)FL_NORMAL_OUTPUT},
771  {"Multiline",0,0,(void*)FL_MULTILINE_OUTPUT},
772  {0}};
775 public:
776  virtual void ideal_size(int &w, int &h) {
777  Fl_Output *myo = (Fl_Output *)o;
778  fl_font(myo->textfont(), myo->textsize());
779  h = fl_height() + myo->textsize() - 6;
780  w -= Fl::box_dw(o->box());
781  int ww = (int)fl_width('m');
782  w = ((w + ww - 1) / ww) * ww + Fl::box_dw(o->box());
783  if (h < 15) h = 15;
784  if (w < 15) w = 15;
785  }
786  virtual const char *type_name() {return "Fl_Output";}
787  virtual const char *alt_type_name() {return "fltk::Output";}
788  Fl_Widget *widget(int x,int y,int w,int h) {
789  Fl_Output *myo = new Fl_Output(x,y,w,h,"output:");
790  myo->value("Text Output");
791  return myo;
792  }
794  int pixmapID() { return 27; }
795 };
797 
799 
800 #include <FL/Fl_Value_Input.H>
802 public:
803  virtual void ideal_size(int &w, int &h) {
804  Fl_Value_Input *myo = (Fl_Value_Input *)o;
805  fl_font(myo->textfont(), myo->textsize());
806  h = fl_height() + myo->textsize() - 6;
807  w -= Fl::box_dw(o->box());
808  int ww = (int)fl_width('m');
809  w = ((w + ww - 1) / ww) * ww + Fl::box_dw(o->box());
810  if (h < 15) h = 15;
811  if (w < 15) w = 15;
812  }
813  virtual const char *type_name() {return "Fl_Value_Input";}
814  virtual const char *alt_type_name() {return "fltk::ValueInput";}
815  int textstuff(int w, Fl_Font& f, int& s, Fl_Color& c);
816  int is_valuator() const {return 1;}
817  int is_value_input() const {return 1;}
818  Fl_Widget *widget(int x,int y,int w,int h) {
819  Fl_Value_Input *myo = new Fl_Value_Input(x,y,w,h,"value:");
820  return myo;
821  }
823  int pixmapID() { return 44; }
824 };
826 
828  Fl_Value_Input *myo = (Fl_Value_Input*)(w==4 ? ((Fl_Widget_Type*)factory)->o : o);
829  switch (w) {
830  case 4:
831  case 0: f = myo->textfont(); s = myo->textsize(); c = myo->textcolor(); break;
832  case 1: myo->textfont(f); break;
833  case 2: myo->textsize(s); break;
834  case 3: myo->textcolor(c); break;
835  }
836  return 1;
837 }
838 
840 
841 #include <FL/Fl_Value_Output.H>
843 public:
844  virtual void ideal_size(int &w, int &h) {
846  fl_font(myo->textfont(), myo->textsize());
847  h = fl_height() + myo->textsize() - 6;
848  w = o->w() - Fl::box_dw(o->box());
849  int ww = (int)fl_width('m');
850  w = ((w + ww - 1) / ww) * ww + Fl::box_dw(o->box());
851  if (h < 15) h = 15;
852  if (w < 15) w = 15;
853  }
854  virtual const char *type_name() {return "Fl_Value_Output";}
855  virtual const char *alt_type_name() {return "fltk::ValueOutput";}
856  int textstuff(int w, Fl_Font& f, int& s, Fl_Color& c);
857  int is_valuator() const {return 1;}
858  Fl_Widget *widget(int x,int y,int w,int h) {
859  Fl_Value_Output *myo = new Fl_Value_Output(x,y,w,h,"value:");
860  return myo;
861  }
863  int pixmapID() { return 45; }
864 };
866 
868  Fl_Value_Output *myo = (Fl_Value_Output*)(w==4 ? ((Fl_Widget_Type*)factory)->o : o);
869  switch (w) {
870  case 4:
871  case 0: f = myo->textfont(); s = myo->textsize(); c = myo->textcolor(); break;
872  case 1: myo->textfont(f); break;
873  case 2: myo->textsize(s); break;
874  case 3: myo->textcolor(c); break;
875  }
876  return 1;
877 }
878 
880 
881 #include <FL/Fl_Value_Slider.H>
883  int textstuff(int w, Fl_Font& f, int& s, Fl_Color& c);
884 public:
885  virtual const char *type_name() {return "Fl_Value_Slider";}
886  virtual const char *alt_type_name() {return "fltk::ValueSlider";}
887  Fl_Widget *widget(int x,int y,int w,int h) {
888  return new Fl_Value_Slider(x,y,w,h,"slider:");}
890  int pixmapID() { return 39; }
891 };
893 
895  Fl_Value_Slider *myo = (Fl_Value_Slider*)(w==4 ? ((Fl_Widget_Type*)factory)->o : o);
896  switch (w) {
897  case 4:
898  case 0: f = myo->textfont(); s = myo->textsize(); c = myo->textcolor(); break;
899  case 1: myo->textfont(f); break;
900  case 2: myo->textsize(s); break;
901  case 3: myo->textcolor(c); break;
902  }
903  return 1;
904 }
905 
907 
909 extern class Fl_Code_Type Fl_Code_type;
911 extern class Fl_Data_Type Fl_Data_type;
912 extern class Fl_Decl_Type Fl_Decl_type;
914 extern class Fl_Comment_Type Fl_Comment_type;
915 extern class Fl_Class_Type Fl_Class_type;
916 extern class Fl_Window_Type Fl_Window_type;
918 extern class Fl_Group_Type Fl_Group_type;
919 extern class Fl_Pack_Type Fl_Pack_type;
920 extern class Fl_Tabs_Type Fl_Tabs_type;
921 extern class Fl_Scroll_Type Fl_Scroll_type;
922 extern class Fl_Table_Type Fl_Table_type;
923 extern class Fl_Tile_Type Fl_Tile_type;
925 extern class Fl_Choice_Type Fl_Choice_type;
929 extern class Fl_Submenu_Type Fl_Submenu_type;
930 extern class Fl_Wizard_Type Fl_Wizard_type;
931 
932 extern void select(Fl_Type *,int);
933 extern void select_only(Fl_Type *);
934 
935 #include <FL/Fl_Window.H>
936 
937 static void cb(Fl_Widget *, void *v) {
938  undo_checkpoint();
939  undo_suspend();
940  Fl_Type *t = ((Fl_Type*)v)->make();
941  if (t) {
942  if (t->is_widget() && !t->is_window()) {
943  Fl_Widget_Type *wt = (Fl_Widget_Type *)t;
944 
945  // Set font sizes...
947 
948  Fl_Font f;
950  Fl_Color c;
951 
952  wt->textstuff(2, f, s, c);
953 
954  // Resize and/or reposition new widget...
955  int w = 0, h = 0;
956  wt->ideal_size(w, h);
957 
958  if (!strcmp(wt->type_name(), "Fl_Menu_Bar")) {
959  // Move and resize the menubar across the top of the window...
960  wt->o->resize(0, 0, w, h);
961  } else {
962  // Just resize to the ideal size...
963  wt->o->size(w, h);
964  }
965  }
966  select_only(t);
967  set_modflag(1);
968  t->open();
969  } else {
970  undo_current --;
971  undo_last --;
972  }
973  undo_resume();
974 }
975 
977 {"Code",0,0,0,FL_SUBMENU},
978  {"Function/Method",0,cb,(void*)&Fl_Function_type},
979  {"Code",0,cb,(void*)&Fl_Code_type},
980  {"Code Block",0,cb,(void*)&Fl_CodeBlock_type},
981  {"Declaration",0,cb,(void*)&Fl_Decl_type},
982  {"Declaration Block",0,cb,(void*)&Fl_DeclBlock_type},
983  {"Class",0,cb,(void*)&Fl_Class_type},
984  {"Widget Class",0,cb,(void*)&Fl_Widget_Class_type},
985  {"Comment",0,cb,(void*)&Fl_Comment_type},
986  {"Binary Data",0,cb,(void*)&Fl_Data_type},
987 {0},
988 {"Group",0,0,0,FL_SUBMENU},
989  {0,0,cb,(void*)&Fl_Window_type},
990  {0,0,cb,(void*)&Fl_Group_type},
991  {0,0,cb,(void*)&Fl_Pack_type},
992  {0,0,cb,(void*)&Fl_Tabs_type},
993  {0,0,cb,(void*)&Fl_Scroll_type},
994  {0,0,cb,(void*)&Fl_Table_type},
995  {0,0,cb,(void*)&Fl_Tile_type},
996  {0,0,cb,(void*)&Fl_Wizard_type},
997 {0},
998 {"Buttons",0,0,0,FL_SUBMENU},
999  {0,0,cb,(void*)&Fl_Button_type},
1000  {0,0,cb,(void*)&Fl_Return_Button_type},
1001  {0,0,cb,(void*)&Fl_Light_Button_type},
1002  {0,0,cb,(void*)&Fl_Check_Button_type},
1003  {0,0,cb,(void*)&Fl_Repeat_Button_type},
1004  {0,0,cb,(void*)&Fl_Round_Button_type},
1005 {0},
1006 {"Valuators",0,0,0,FL_SUBMENU},
1007  {0,0,cb,(void*)&Fl_Slider_type},
1008  {0,0,cb,(void*)&Fl_Scrollbar_type},
1009  {0,0,cb,(void*)&Fl_Value_Slider_type},
1010  {0,0,cb,(void*)&Fl_Adjuster_type},
1011  {0,0,cb,(void*)&Fl_Counter_type},
1012  {0,0,cb,(void*)&Fl_Spinner_type},
1013  {0,0,cb,(void*)&Fl_Dial_type},
1014  {0,0,cb,(void*)&Fl_Roller_type},
1015  {0,0,cb,(void*)&Fl_Value_Input_type},
1016  {0,0,cb,(void*)&Fl_Value_Output_type},
1017 {0},
1018 {"Text",0,0,0,FL_SUBMENU},
1019  {0,0,cb,(void*)&Fl_File_Input_type},
1020  {0,0,cb,(void*)&Fl_Input_type},
1021  {0,0,cb,(void*)&Fl_Output_type},
1022  {0,0,cb,(void*)&Fl_Text_Display_type},
1023  {0,0,cb,(void*)&Fl_Text_Editor_type},
1024 {0},
1025 {"Menus",0,0,0,FL_SUBMENU},
1026  {0,0,cb,(void*)&Fl_Menu_Bar_type},
1027  {0,0,cb,(void*)&Fl_Menu_Button_type},
1028  {0,0,cb,(void*)&Fl_Choice_type},
1029  {0,0,cb,(void*)&Fl_Input_Choice_type},
1030  {0,0,cb, (void*)&Fl_Submenu_type},
1031  {0,0,cb, (void*)&Fl_Menu_Item_type},
1032 {0},
1033 {"Browsers",0,0,0,FL_SUBMENU},
1034  {0,0,cb,(void*)&Fl_Browser_type},
1035  {0,0,cb,(void*)&Fl_Check_Browser_type},
1036  {0,0,cb,(void*)&Fl_File_Browser_type},
1037  {0,0,cb,(void*)&Fl_Tree_type},
1038 {0},
1039 {"Other",0,0,0,FL_SUBMENU},
1040  {0,0,cb,(void*)&Fl_Box_type},
1041  {0,0,cb,(void*)&Fl_Clock_type},
1042  {0,0,cb,(void*)&Fl_Help_View_type},
1043  {0,0,cb,(void*)&Fl_Progress_type},
1044 {0},
1045 {0}};
1046 
1047 #include <FL/Fl_Multi_Label.H>
1048 
1049 // modify a menuitem to display an icon in front of the label
1050 static void make_iconlabel( Fl_Menu_Item *mi, Fl_Image *ic, const char *txt )
1051 {
1052  if (ic) {
1053  char *t1 = new char[strlen(txt)+6];
1054  strcpy( t1, " " );
1055  strcat(t1, txt);
1056  strcat(t1, "...");
1057  mi->image( ic );
1058  Fl_Multi_Label *ml = new Fl_Multi_Label;
1059  ml->labela = (char*)ic;
1060  ml->labelb = t1;
1061  ml->typea = _FL_IMAGE_LABEL;
1062  ml->typeb = FL_NORMAL_LABEL;
1063  ml->label( mi );
1064  }
1065  else if (txt!=mi->text)
1066  mi->label(txt);
1067 }
1068 
1070  for (unsigned i = 0; i < sizeof(New_Menu)/sizeof(*New_Menu); i++) {
1071  Fl_Menu_Item *m = New_Menu+i;
1072  if (m->user_data()) {
1073  Fl_Type *t = (Fl_Type*)m->user_data();
1074  if (m->text) {
1075  make_iconlabel( m, pixmap[t->pixmapID()], m->label() );
1076  } else {
1077  const char *n = t->type_name();
1078  if (!strncmp(n,"Fl_",3)) n += 3;
1079  if (!strncmp(n,"fltk::",6)) n += 6;
1080  make_iconlabel( m, pixmap[t->pixmapID()], n );
1081  }
1082  }
1083  }
1084 }
1085 
1086 // use keyword to pick the type, this is used to parse files:
1088 Fl_Type *Fl_Type_make(const char *tn) {
1089  reading_file = 1; // makes labels be null
1090  Fl_Type *r = 0;
1091  for (unsigned i = 0; i < sizeof(New_Menu)/sizeof(*New_Menu); i++) {
1092  Fl_Menu_Item *m = New_Menu+i;
1093  if (!m->user_data()) continue;
1094  Fl_Type *t = (Fl_Type*)(m->user_data());
1095  if (!fl_ascii_strcasecmp(tn,t->type_name())) {r = t->make(); break;}
1096  if (!fl_ascii_strcasecmp(tn,t->alt_type_name())) {r = t->make(); break;}
1097  }
1098  reading_file = 0;
1099  return r;
1100 }
1101 
1103 
1104 // Since I have included all the .H files, do this table here:
1105 // This table is only used to read fdesign files:
1106 
1107 struct symbol {const char *name; int value;};
1108 
1109 static symbol table[] = {
1110  {"BLACK", FL_BLACK},
1111  {"RED", FL_RED},
1112  {"GREEN", FL_GREEN},
1113  {"YELLOW", FL_YELLOW},
1114  {"BLUE", FL_BLUE},
1115  {"MAGENTA", FL_MAGENTA},
1116  {"CYAN", FL_CYAN},
1117  {"WHITE", FL_WHITE},
1118 
1119  {"LCOL", FL_BLACK},
1120  {"COL1", FL_GRAY},
1121  {"MCOL", FL_LIGHT1},
1122  {"LEFT_BCOL", FL_LIGHT3},
1123  {"TOP_BCOL", FL_LIGHT2},
1124  {"BOTTOM_BCOL", FL_DARK2},
1125  {"RIGHT_BCOL", FL_DARK3},
1126  {"INACTIVE", FL_INACTIVE_COLOR},
1127  {"INACTIVE_COL", FL_INACTIVE_COLOR},
1128  {"FREE_COL1", FL_FREE_COLOR},
1129  {"FREE_COL2", FL_FREE_COLOR+1},
1130  {"FREE_COL3", FL_FREE_COLOR+2},
1131  {"FREE_COL4", FL_FREE_COLOR+3},
1132  {"FREE_COL5", FL_FREE_COLOR+4},
1133  {"FREE_COL6", FL_FREE_COLOR+5},
1134  {"FREE_COL7", FL_FREE_COLOR+6},
1135  {"FREE_COL8", FL_FREE_COLOR+7},
1136  {"FREE_COL9", FL_FREE_COLOR+8},
1137  {"FREE_COL10", FL_FREE_COLOR+9},
1138  {"FREE_COL11", FL_FREE_COLOR+10},
1139  {"FREE_COL12", FL_FREE_COLOR+11},
1140  {"FREE_COL13", FL_FREE_COLOR+12},
1141  {"FREE_COL14", FL_FREE_COLOR+13},
1142  {"FREE_COL15", FL_FREE_COLOR+14},
1143  {"FREE_COL16", FL_FREE_COLOR+15},
1144  {"TOMATO", 131},
1145  {"INDIANRED", 164},
1146  {"SLATEBLUE", 195},
1147  {"DARKGOLD", 84},
1148  {"PALEGREEN", 157},
1149  {"ORCHID", 203},
1150  {"DARKCYAN", 189},
1151  {"DARKTOMATO", 113},
1152  {"WHEAT", 174},
1153  {"ALIGN_CENTER", FL_ALIGN_CENTER},
1154  {"ALIGN_TOP", FL_ALIGN_TOP},
1155  {"ALIGN_BOTTOM", FL_ALIGN_BOTTOM},
1156  {"ALIGN_LEFT", FL_ALIGN_LEFT},
1157  {"ALIGN_RIGHT", FL_ALIGN_RIGHT},
1158  {"ALIGN_INSIDE", FL_ALIGN_INSIDE},
1159  {"ALIGN_TOP_LEFT", FL_ALIGN_TOP | FL_ALIGN_LEFT},
1160  {"ALIGN_TOP_RIGHT", FL_ALIGN_TOP | FL_ALIGN_RIGHT},
1161  {"ALIGN_BOTTOM_LEFT", FL_ALIGN_BOTTOM | FL_ALIGN_LEFT},
1162  {"ALIGN_BOTTOM_RIGHT", FL_ALIGN_BOTTOM | FL_ALIGN_RIGHT},
1163  {"ALIGN_CENTER|FL_ALIGN_INSIDE", FL_ALIGN_CENTER|FL_ALIGN_INSIDE},
1164  {"ALIGN_TOP|FL_ALIGN_INSIDE", FL_ALIGN_TOP|FL_ALIGN_INSIDE},
1165  {"ALIGN_BOTTOM|FL_ALIGN_INSIDE", FL_ALIGN_BOTTOM|FL_ALIGN_INSIDE},
1166  {"ALIGN_LEFT|FL_ALIGN_INSIDE", FL_ALIGN_LEFT|FL_ALIGN_INSIDE},
1167  {"ALIGN_RIGHT|FL_ALIGN_INSIDE", FL_ALIGN_RIGHT|FL_ALIGN_INSIDE},
1168  {"ALIGN_INSIDE|FL_ALIGN_INSIDE", FL_ALIGN_INSIDE|FL_ALIGN_INSIDE},
1169  {"ALIGN_TOP_LEFT|FL_ALIGN_INSIDE", FL_ALIGN_TOP|FL_ALIGN_LEFT|FL_ALIGN_INSIDE},
1170  {"ALIGN_TOP_RIGHT|FL_ALIGN_INSIDE", FL_ALIGN_TOP|FL_ALIGN_RIGHT|FL_ALIGN_INSIDE},
1171  {"ALIGN_BOTTOM_LEFT|FL_ALIGN_INSIDE", FL_ALIGN_BOTTOM|FL_ALIGN_LEFT|FL_ALIGN_INSIDE},
1172  {"ALIGN_BOTTOM_RIGHT|FL_ALIGN_INSIDE",FL_ALIGN_BOTTOM|FL_ALIGN_RIGHT|FL_ALIGN_INSIDE},
1173 
1174  {"ALIGN_LEFT_TOP", FL_ALIGN_TOP | FL_ALIGN_LEFT},
1175  {"ALIGN_RIGHT_TOP", FL_ALIGN_TOP | FL_ALIGN_RIGHT},
1176  {"ALIGN_LEFT_BOTTOM", FL_ALIGN_BOTTOM | FL_ALIGN_LEFT},
1177  {"ALIGN_RIGHT_BOTTOM", FL_ALIGN_BOTTOM | FL_ALIGN_RIGHT},
1178  {"INVALID_STYLE", 255},
1179  {"NORMAL_STYLE", FL_HELVETICA},
1180  {"BOLD_STYLE", FL_HELVETICA|FL_BOLD},
1181  {"ITALIC_STYLE", FL_HELVETICA|FL_ITALIC},
1182  {"BOLDITALIC_STYLE", FL_HELVETICA|FL_BOLD|FL_ITALIC},
1183  {"FIXED_STYLE", FL_COURIER},
1184  {"FIXEDBOLD_STYLE", FL_COURIER|FL_BOLD},
1185  {"FIXEDITALIC_STYLE", FL_COURIER|FL_ITALIC},
1186  {"FIXEDBOLDITALIC_STYLE", FL_COURIER|FL_BOLD|FL_ITALIC},
1187  {"TIMES_STYLE", FL_TIMES},
1188  {"TIMESBOLD_STYLE", FL_TIMES|FL_BOLD},
1189  {"TIMESITALIC_STYLE", FL_TIMES|FL_ITALIC},
1190  {"TIMESBOLDITALIC_STYLE", FL_TIMES|FL_BOLD|FL_ITALIC},
1191  {"SHADOW_STYLE", (_FL_SHADOW_LABEL<<8)},
1192  {"ENGRAVED_STYLE", (_FL_ENGRAVED_LABEL<<8)},
1193  {"EMBOSSED_STYLE", (_FL_EMBOSSED_LABEL<<0)},
1194  {"TINY_SIZE", 8},
1195  {"SMALL_SIZE", 11},
1196  {"NORMAL_SIZE", FL_NORMAL_SIZE},
1197  {"MEDIUM_SIZE", 18},
1198  {"LARGE_SIZE", 24},
1199  {"HUGE_SIZE", 32},
1200  {"DEFAULT_SIZE", FL_NORMAL_SIZE},
1201  {"TINY_FONT", 8},
1202  {"SMALL_FONT", 11},
1203  {"NORMAL_FONT", FL_NORMAL_SIZE},
1204  {"MEDIUM_FONT", 18},
1205  {"LARGE_FONT", 24},
1206  {"HUGE_FONT", 32},
1207  {"NORMAL_FONT1", 11},
1208  {"NORMAL_FONT2", FL_NORMAL_SIZE},
1209  {"DEFAULT_FONT", 11},
1210  {"RETURN_END_CHANGED", 0},
1211  {"RETURN_CHANGED", 1},
1212  {"RETURN_END", 2},
1213  {"RETURN_ALWAYS", 3},
1214  {"PUSH_BUTTON", FL_TOGGLE_BUTTON},
1215  {"RADIO_BUTTON", FL_RADIO_BUTTON},
1216  {"HIDDEN_BUTTON", FL_HIDDEN_BUTTON},
1217  {"SELECT_BROWSER", FL_SELECT_BROWSER},
1218  {"HOLD_BROWSER", FL_HOLD_BROWSER},
1219  {"MULTI_BROWSER", FL_MULTI_BROWSER},
1220  {"SIMPLE_COUNTER", FL_SIMPLE_COUNTER},
1221  {"LINE_DIAL", FL_LINE_DIAL},
1222  {"FILL_DIAL", FL_FILL_DIAL},
1223  {"VERT_SLIDER", FL_VERT_SLIDER},
1224  {"HOR_SLIDER", FL_HOR_SLIDER},
1225  {"VERT_FILL_SLIDER", FL_VERT_FILL_SLIDER},
1226  {"HOR_FILL_SLIDER", FL_HOR_FILL_SLIDER},
1227  {"VERT_NICE_SLIDER", FL_VERT_NICE_SLIDER},
1228  {"HOR_NICE_SLIDER", FL_HOR_NICE_SLIDER},
1229 };
1230 
1231 #include <stdlib.h>
1232 
1233 int lookup_symbol(const char *name, int &v, int numberok) {
1234  if (name[0]=='F' && name[1]=='L' && name[2]=='_') name += 3;
1235  for (int i=0; i < int(sizeof(table)/sizeof(*table)); i++)
1236  if (!fl_ascii_strcasecmp(name,table[i].name)) {v = table[i].value; return 1;}
1237  if (numberok && ((v = atoi(name)) || !strcmp(name,"0"))) return 1;
1238  return 0;
1239 }
1240 
1241 //
1242 // End of "$Id$".
1243 //
Fl_Scrollbar_Type::_make
Fl_Widget_Type * _make()
Definition: factory.cxx:761
Fl_Widget_Class_type
class Fl_Widget_Class_Type Fl_Widget_Class_type
Definition: Fl_Window_Type.cxx:1434
Fl_Roller
Definition: Fl_Roller.H:35
Fl_Spinner_Type::is_spinner
int is_spinner() const
Definition: factory.cxx:406
Fl_Spinner_Type::textstuff
int textstuff(int w, Fl_Font &f, int &s, Fl_Color &c)
Definition: factory.cxx:413
Fl_Round_Button_type
static Fl_Round_Button_Type Fl_Round_Button_type
Definition: factory.cxx:166
Fl_Tree_Type
Definition: factory.cxx:278
Fl_File_Input_Type::subtypes
Fl_Menu_Item * subtypes()
Definition: factory.cxx:486
Fl_Browser_Type::alt_type_name
virtual const char * alt_type_name()
Definition: factory.cxx:199
fl_font
void fl_font(Fl_Font face, Fl_Fontsize fsize)
Definition: fl_draw.H:509
Fl_Input_Type::widget
Fl_Widget * widget(int x, int y, int w, int h)
Definition: factory.cxx:452
Fl_Multi_Label::label
void label(Fl_Widget *)
Definition: Fl_Multi_Label.cxx:59
FL_HOLD_BROWSER
#define FL_HOLD_BROWSER
Definition: Fl_Browser_.H:35
Fl_Pixmap.H
fl_width
FL_EXPORT double fl_width(const char *txt)
Definition: fl_font.cxx:65
Fl_File_Browser_Type::widget
Fl_Widget * widget(int x, int y, int w, int h)
Definition: factory.cxx:323
FL_ALIGN_LEFT
const Fl_Align FL_ALIGN_LEFT
Definition: Enumerations.H:839
Fl_Scrollbar_Type::pixmapID
int pixmapID()
Definition: factory.cxx:762
Fl_Return_Button_Type::alt_type_name
virtual const char * alt_type_name()
Definition: factory.cxx:92
Fl_Scrollbar_Type::is_valuator
int is_valuator() const
Definition: factory.cxx:755
Fl_File_Input.H
Fl_Value_Slider::textfont
Fl_Font textfont() const
Definition: Fl_Value_Slider.H:43
Fl.H
Fl_File_Input_Type::_make
Fl_Widget_Type * _make()
Definition: factory.cxx:507
Fl_Browser_Type
Definition: factory.cxx:182
Fl_Widget_Class_Type
Definition: Fl_Type.h:644
Fl_Widget_Type
Definition: Fl_Type.h:374
Fl_Return_Button_Type
Definition: factory.cxx:83
Fl_Input_Type::pixmapID
int pixmapID()
Definition: factory.cxx:458
Fl_Dial.H
Fl_DeclBlock_Type
Definition: Fl_Type.h:300
Fl_Light_Button.H
Fl_Scrollbar
Definition: Fl_Scrollbar.H:43
Fl_Tree_Type::widget
Fl_Widget * widget(int x, int y, int w, int h)
Definition: factory.cxx:286
Fl_Dial_Type::subtypes
Fl_Menu_Item * subtypes()
Definition: factory.cxx:693
Fl_Counter
Definition: Fl_Counter.H:48
Fl_Repeat_Button_Type::widget
Fl_Widget * widget(int x, int y, int w, int h)
Definition: factory.cxx:107
Fl_Type_make
Fl_Type * Fl_Type_make(const char *tn)
Definition: factory.cxx:1088
Fl_Tree_Type::_make
Fl_Widget_Type * _make()
Definition: factory.cxx:300
Fl_Round_Button
Definition: Fl_Round_Button.H:36
Fl_File_Input_Type::textstuff
int textstuff(int w, Fl_Font &f, int &s, Fl_Color &c)
Definition: factory.cxx:512
Fl_Clock_type
static Fl_Clock_Type Fl_Clock_type
Definition: factory.cxx:620
Fl_Input_Type::copy_properties
virtual void copy_properties()
Definition: factory.cxx:459
Fl_Return_Button.H
Fl_Text_Editor_Type
Definition: factory.cxx:569
Fl_Check_Browser_Type::_make
Fl_Widget_Type * _make()
Definition: factory.cxx:261
select_only
void select_only(Fl_Type *)
Definition: Fl_Type.cxx:245
Fl_Color
unsigned int Fl_Color
Definition: Enumerations.H:934
Fl_Progress_Type::type_name
virtual const char * type_name()
Definition: factory.cxx:658
FL_TOGGLE_BUTTON
#define FL_TOGGLE_BUTTON
value() toggles between 0 and 1 at every click of the button
Definition: Fl_Button.H:33
Fl_Counter.H
Fl_Spinner.H
Fl_Adjuster_Type::_make
Fl_Widget_Type * _make()
Definition: factory.cxx:679
Fl_File_Input_Type
Definition: factory.cxx:485
Fl_Menu_Item::image
void image(Fl_Image *a)
Definition: Fl_Menu_Item.H:355
Fl_Window_type
class Fl_Window_Type Fl_Window_type
Definition: Fl_Window_Type.cxx:503
Fl_Button_Type::ideal_size
virtual void ideal_size(int &w, int &h)
Definition: factory.cxx:65
Fl_Text_Editor_Type::_make
Fl_Widget_Type * _make()
Definition: factory.cxx:591
Fl_Browser::textsize
Fl_Fontsize textsize() const
Definition: Fl_Browser.H:147
Fl_Clock_Type::alt_type_name
virtual const char * alt_type_name()
Definition: factory.cxx:614
FL_ITALIC
const Fl_Font FL_ITALIC
add this to helvetica, courier, or times
Definition: Enumerations.H:898
undo_resume
void undo_resume()
Definition: undo.cxx:172
Fl_Input.H
Fl_Dial_Type::alt_type_name
virtual const char * alt_type_name()
Definition: factory.cxx:697
Fl_File_Browser_Type
Definition: factory.cxx:305
Fl_Button_Type::pixmapID
int pixmapID()
Definition: factory.cxx:76
Fl_Input_::textsize
Fl_Fontsize textsize() const
Definition: Fl_Input_.H:395
FL_INACTIVE_COLOR
const Fl_Color FL_INACTIVE_COLOR
the inactive foreground color
Definition: Enumerations.H:939
Fl_Tree_Type::alt_type_name
virtual const char * alt_type_name()
Definition: factory.cxx:285
FL_VERT_SLIDER
#define FL_VERT_SLIDER
Definition: Fl_Slider.H:30
Fl_Image
Base class for image caching and drawing.
Definition: Fl_Image.H:55
_FL_EMBOSSED_LABEL
draws edges as though the text is raised
Definition: Enumerations.H:768
Fl_Button_type
static Fl_Button_Type Fl_Button_type
Definition: factory.cxx:78
Fl_Check_Browser_Type::textstuff
int textstuff(int w, Fl_Font &f, int &s, Fl_Color &c)
Definition: factory.cxx:266
Fl_Value_Slider_Type::pixmapID
int pixmapID()
Definition: factory.cxx:890
FL_WHITE
const Fl_Color FL_WHITE
Definition: Enumerations.H:971
Fl_Check_Button_type
static Fl_Check_Button_Type Fl_Check_Button_type
Definition: factory.cxx:148
Fl_Check_Button_Type::widget
Fl_Widget * widget(int x, int y, int w, int h)
Definition: factory.cxx:143
make_iconlabel
static void make_iconlabel(Fl_Menu_Item *mi, Fl_Image *ic, const char *txt)
Definition: factory.cxx:1050
Fl_Dial_Type
Definition: factory.cxx:692
Fl_Clock
This widget provides a round analog clock display.
Definition: Fl_Clock.H:113
Fl_Text_Editor_Type::is_text_display
int is_text_display() const
Definition: factory.cxx:586
Fl_Value_Slider.H
Fl_Text_Display::textfont
Fl_Font textfont() const
Definition: Fl_Text_Display.H:290
Fl_Check_Button_Type::_make
Fl_Widget_Type * _make()
Definition: factory.cxx:145
Fl_Text_Editor_Type::type_name
virtual const char * type_name()
Definition: factory.cxx:584
Fl_Slider
Definition: Fl_Slider.H:61
Fl_Input_::value
int value(const char *)
Definition: Fl_Input_.cxx:1284
Fl_Progress_type
static Fl_Progress_Type Fl_Progress_type
Definition: factory.cxx:667
FL_GREEN
const Fl_Color FL_GREEN
Definition: Enumerations.H:958
Fl_Browser_Type::type_name
virtual const char * type_name()
Definition: factory.cxx:198
Fl_Value_Output.H
Fl_Roller_Type::alt_type_name
virtual const char * alt_type_name()
Definition: factory.cxx:717
FL_NORMAL_OUTPUT
#define FL_NORMAL_OUTPUT
Definition: Fl_Input_.H:37
browser_type_menu
static Fl_Menu_Item browser_type_menu[]
Definition: factory.cxx:176
Fl_Spinner::textcolor
Fl_Color textcolor() const
Definition: Fl_Spinner.H:188
Fl_Button
Buttons generate callbacks when they are clicked by the user.
Definition: Fl_Button.H:79
Fl_Group_Type
Definition: Fl_Type.h:474
Fl_Text_Display_Type::_make
Fl_Widget_Type * _make()
Definition: factory.cxx:549
Fl_Light_Button
Definition: Fl_Light_Button.H:38
Fl_Spinner_type
static Fl_Spinner_Type Fl_Spinner_type
Definition: factory.cxx:411
Fl_Text_Editor_Type::textstuff
int textstuff(int w, Fl_Font &f, int &s, Fl_Color &c)
Definition: factory.cxx:596
Fl_Widget_Type::textstuff
virtual int textstuff(int what, Fl_Font &, int &, Fl_Color &)
Definition: Fl_Widget_Type.cxx:1390
Fl_Value_Input_Type::_make
Fl_Widget_Type * _make()
Definition: factory.cxx:822
Fl_Menu_Item::label
const char * label() const
Definition: Fl_Menu_Item.H:148
Fl_Slider_Type
Definition: factory.cxx:736
Fl_File_Browser_Type::pixmapID
int pixmapID()
Definition: factory.cxx:333
Fl_Multi_Label
Definition: Fl_Multi_Label.H:48
Fl_Browser_type
static Fl_Browser_Type Fl_Browser_type
Definition: factory.cxx:216
Fl_Round_Button_Type::pixmapID
int pixmapID()
Definition: factory.cxx:164
FL_SECRET_INPUT
#define FL_SECRET_INPUT
Definition: Fl_Input_.H:34
Fl_Check_Browser_Type::pixmapID
int pixmapID()
Definition: factory.cxx:262
Fl_Help_View_Type::pixmapID
int pixmapID()
Definition: factory.cxx:649
Fl_Text_Display_Type::widget
Fl_Widget * widget(int x, int y, int w, int h)
Definition: factory.cxx:545
FL_TIMES
const Fl_Font FL_TIMES
Times roman.
Definition: Enumerations.H:887
Fl_Help_View_Type::_make
Fl_Widget_Type * _make()
Definition: factory.cxx:648
Fl_Box_Type::_make
Fl_Widget_Type * _make()
Definition: factory.cxx:49
Fl_Help_View_Type::type_name
virtual const char * type_name()
Definition: factory.cxx:639
Fl_Value_Slider_Type::type_name
virtual const char * type_name()
Definition: factory.cxx:885
FL_FREE_COLOR
#define FL_FREE_COLOR
Definition: Enumerations.H:974
Fl_Scrollbar.H
Fl_Scrollbar_Type::alt_type_name
virtual const char * alt_type_name()
Definition: factory.cxx:758
Fl_Box_type
static Fl_Box_Type Fl_Box_type
Definition: factory.cxx:52
Fl_Scroll_Type
Definition: Fl_Type.h:548
FL_BLUE
const Fl_Color FL_BLUE
Definition: Enumerations.H:960
Fl_Text_Editor_Type::ideal_size
virtual void ideal_size(int &w, int &h)
Definition: factory.cxx:572
FL_SUBMENU
This item is a submenu to other items.
Definition: Fl_Menu_Item.H:39
Fl_File_Input
This widget displays a pathname in a text input field.
Definition: Fl_File_Input.H:47
Fl_Adjuster_Type::alt_type_name
virtual const char * alt_type_name()
Definition: factory.cxx:676
Fl_Check_Browser_Type::alt_type_name
virtual const char * alt_type_name()
Definition: factory.cxx:247
Fl_Type::is_widget
virtual int is_widget() const
Definition: Fl_Type.cxx:749
Fl_Spinner::textfont
Fl_Font textfont() const
Definition: Fl_Spinner.H:196
reading_file
int reading_file
Definition: factory.cxx:1087
Fl_Repeat_Button_Type::_make
Fl_Widget_Type * _make()
Definition: factory.cxx:109
fl_height
int fl_height()
Definition: fl_draw.H:527
FL_VERT_NICE_SLIDER
#define FL_VERT_NICE_SLIDER
Definition: Fl_Slider.H:34
Fl_Counter_Type::subtypes
Fl_Menu_Item * subtypes()
Definition: factory.cxx:357
Fl_Counter_Type::pixmapID
int pixmapID()
Definition: factory.cxx:360
Fl_Adjuster_Type::widget
Fl_Widget * widget(int x, int y, int w, int h)
Definition: factory.cxx:677
Fl_Round_Button_Type::ideal_size
virtual void ideal_size(int &w, int &h)
Definition: factory.cxx:155
Fl_Value_Input_Type::textstuff
int textstuff(int w, Fl_Font &f, int &s, Fl_Color &c)
Definition: factory.cxx:827
Fl_Scrollbar_Type::subtypes
Fl_Menu_Item * subtypes()
Definition: factory.cxx:754
dial_type_menu
static Fl_Menu_Item dial_type_menu[]
Definition: factory.cxx:687
Fl_Progress
Definition: Fl_Progress.H:38
Fl_Browser_Type::_make
Fl_Widget_Type * _make()
Definition: factory.cxx:213
FL_COURIER
const Fl_Font FL_COURIER
Courier normal.
Definition: Enumerations.H:883
Fl_Roller.H
Fl_Spinner_Type::ideal_size
virtual void ideal_size(int &w, int &h)
Definition: factory.cxx:394
Fl_Multi_Label::labelb
const char * labelb
Definition: Fl_Multi_Label.H:56
Fl_Value_Output_Type::_make
Fl_Widget_Type * _make()
Definition: factory.cxx:862
roller_type_menu
static Fl_Menu_Item roller_type_menu[]
Definition: factory.cxx:708
Fl_File_Input_Type::type_name
virtual const char * type_name()
Definition: factory.cxx:499
Fl_Counter::textcolor
Fl_Color textcolor() const
Definition: Fl_Counter.H:105
Fl_Browser_Type::pixmapID
int pixmapID()
Definition: factory.cxx:214
Fl_Spinner_Type::_make
Fl_Widget_Type * _make()
Definition: factory.cxx:409
Fl_File_Input::value
int value(const char *str)
Definition: Fl_File_Input.cxx:153
Fl_Input_::shortcut
int shortcut() const
Definition: Fl_Input_.H:374
Fl_Browser
Definition: Fl_Browser.H:80
FL_DARK2
const Fl_Color FL_DARK2
Definition: Enumerations.H:947
Fl_Progress_Type::widget
Fl_Widget * widget(int x, int y, int w, int h)
Definition: factory.cxx:660
Fl_Data_type
class Fl_Data_Type Fl_Data_type
Definition: Fl_Function_Type.cxx:893
Fl_Wizard_Type
Definition: Fl_Type.h:572
Fl_Text_Display_Type::ideal_size
virtual void ideal_size(int &w, int &h)
Definition: factory.cxx:530
Fl_Value_Output_Type::is_valuator
int is_valuator() const
Definition: factory.cxx:857
Fl_Value_Slider::textcolor
Fl_Color textcolor() const
Definition: Fl_Value_Slider.H:51
Fl_Value_Input_type
static Fl_Value_Input_Type Fl_Value_Input_type
Definition: factory.cxx:825
b
long b
Definition: jpegint.h:397
FL_BLACK
const Fl_Color FL_BLACK
Definition: Enumerations.H:956
Fl_Data_Type
Definition: Fl_Type.h:283
FL_HOR_NICE_SLIDER
#define FL_HOR_NICE_SLIDER
Definition: Fl_Slider.H:35
Fl_Value_Slider_Type::alt_type_name
virtual const char * alt_type_name()
Definition: factory.cxx:886
Fl_Roller_type
static Fl_Roller_Type Fl_Roller_type
Definition: factory.cxx:723
Fl_Output_Type::pixmapID
int pixmapID()
Definition: factory.cxx:794
Fl_Button_Type::is_button
int is_button() const
Definition: factory.cxx:75
Fl_Check_Button_Type::alt_type_name
virtual const char * alt_type_name()
Definition: factory.cxx:142
Fl_Table_type
class Fl_Table_Type Fl_Table_type
Definition: Fl_Group_Type.cxx:218
Fl_Counter::textsize
Fl_Fontsize textsize() const
Definition: Fl_Counter.H:100
Fl_Slider_Type::widget
Fl_Widget * widget(int x, int y, int w, int h)
Definition: factory.cxx:742
Fl_Multi_Label::typea
uchar typea
Definition: Fl_Multi_Label.H:61
Fl_Output_type
static Fl_Output_Type Fl_Output_type
Definition: factory.cxx:796
Fl_Dial_Type::pixmapID
int pixmapID()
Definition: factory.cxx:701
Fl_Value_Slider::textsize
Fl_Fontsize textsize() const
Definition: Fl_Value_Slider.H:47
Fl_Light_Button_type
static Fl_Light_Button_Type Fl_Light_Button_type
Definition: factory.cxx:130
Fl_Text_Display_Type::alt_type_name
virtual const char * alt_type_name()
Definition: factory.cxx:543
Fl::box_dh
static int box_dh(Fl_Boxtype)
Definition: fl_boxtype.cxx:397
Fl_Browser_::textsize
Fl_Fontsize textsize() const
Definition: Fl_Browser_.H:301
FL_HORIZONTAL
#define FL_HORIZONTAL
The valuator can work horizontally.
Definition: Fl_Valuator.H:31
Fl_Help_View.H
Fl_Value_Output::textsize
Fl_Fontsize textsize() const
Definition: Fl_Value_Output.H:74
Fl_Tree.H
This file contains the definitions of the Fl_Tree class.
Fl_File_Browser_Type::alt_type_name
virtual const char * alt_type_name()
Definition: factory.cxx:322
Fl_Light_Button_Type::ideal_size
virtual void ideal_size(int &w, int &h)
Definition: factory.cxx:119
Fl_Help_View_Type::widget
Fl_Widget * widget(int x, int y, int w, int h)
Definition: factory.cxx:641
Fl_Roller_Type::pixmapID
int pixmapID()
Definition: factory.cxx:721
Fl_Dial_Type::_make
Fl_Widget_Type * _make()
Definition: factory.cxx:700
buffer
static char * buffer
Definition: file.cxx:215
FL_ALIGN_INSIDE
const Fl_Align FL_ALIGN_INSIDE
Definition: Enumerations.H:843
Fl_Value_Input
Definition: Fl_Value_Input.H:56
Fl_Counter_Type
Definition: factory.cxx:356
FL_MULTILINE_INPUT
#define FL_MULTILINE_INPUT
Definition: Fl_Input_.H:33
Fl::box_dw
static int box_dw(Fl_Boxtype)
Definition: fl_boxtype.cxx:391
Fl_Clock_Type::type_name
virtual const char * type_name()
Definition: factory.cxx:613
Fl_Box_Type::widget
Fl_Widget * widget(int x, int y, int w, int h)
Definition: factory.cxx:47
Fl_Repeat_Button.H
Fl_File_Browser::textsize
Fl_Fontsize textsize() const
Definition: Fl_File_Browser.H:88
Fl_Window.H
Fl_File_Browser
Definition: Fl_File_Browser.H:39
Fl_Slider_Type::subtypes
Fl_Menu_Item * subtypes()
Definition: factory.cxx:737
Fl_Spinner_Type::subtypes
Fl_Menu_Item * subtypes()
Definition: factory.cxx:390
Fl_Dial_Type::is_valuator
int is_valuator() const
Definition: factory.cxx:694
FL_LINE_DIAL
#define FL_LINE_DIAL
Definition: Fl_Dial.H:31
undo_suspend
void undo_suspend()
Definition: undo.cxx:177
Fl_Menu_Button_type
class Fl_Menu_Button_Type Fl_Menu_Button_type
Definition: Fl_Menu_Type.cxx:524
Fl_Multi_Label.H
Fl_CodeBlock_Type
Definition: Fl_Type.h:247
Fl_Spinner_Type::widget
Fl_Widget * widget(int x, int y, int w, int h)
Definition: factory.cxx:407
Fl_Check_Button_Type::ideal_size
virtual void ideal_size(int &w, int &h)
Definition: factory.cxx:137
Fl_Choice_Type
Definition: Fl_Type.h:761
Fl_Value_Output_Type::textstuff
int textstuff(int w, Fl_Font &f, int &s, Fl_Color &c)
Definition: factory.cxx:867
Fl_Light_Button_Type::pixmapID
int pixmapID()
Definition: factory.cxx:128
Fl_Roller_Type::_make
Fl_Widget_Type * _make()
Definition: factory.cxx:720
Fl_Widget_Type::default_size
static int default_size
Definition: Fl_Type.h:398
Fl_Box.H
Fl_Widget::w
void w(int v)
Definition: Fl_Widget.H:143
Fl_Menu_Item::user_data
void * user_data() const
Definition: Fl_Menu_Item.H:251
Fl_Code_Type
Definition: Fl_Type.h:194
Fl_Box_Type
Definition: factory.cxx:43
Fl_Input_Type
Definition: factory.cxx:435
Fl_Text_Display::textcolor
Fl_Color textcolor() const
Definition: Fl_Text_Display.H:314
Fl_Scrollbar_Type::widget
Fl_Widget * widget(int x, int y, int w, int h)
Definition: factory.cxx:759
Fl_File_Input_Type::alt_type_name
virtual const char * alt_type_name()
Definition: factory.cxx:500
Fl_Counter_Type::is_valuator
int is_valuator() const
Definition: factory.cxx:359
Fl_Return_Button_type
static Fl_Return_Button_Type Fl_Return_Button_type
Definition: factory.cxx:98
Fl_Input_Type::type_name
virtual const char * type_name()
Definition: factory.cxx:449
Fl_Menu_Button_Type
Definition: Fl_Type.h:740
Fl_Adjuster_Type::type_name
virtual const char * type_name()
Definition: factory.cxx:675
Fl_Adjuster_Type
Definition: factory.cxx:672
Fl_Check_Button_Type
Definition: factory.cxx:135
Fl_Value_Output::textcolor
Fl_Color textcolor() const
Definition: Fl_Value_Output.H:77
Fl_Check_Button_Type::pixmapID
int pixmapID()
Definition: factory.cxx:146
undo_checkpoint
void undo_checkpoint()
Definition: undo.cxx:125
FL_MULTI_BROWSER
#define FL_MULTI_BROWSER
Definition: Fl_Browser_.H:36
Fl_Function_type
class Fl_Function_Type Fl_Function_type
Definition: Fl_Function_Type.cxx:244
scrollbar_type_menu
static Fl_Menu_Item scrollbar_type_menu[]
Definition: factory.cxx:749
Fl_Code_type
class Fl_Code_Type Fl_Code_type
Definition: Fl_Function_Type.cxx:477
Fl_Submenu_Type
Definition: Fl_Type.h:690
Fl_Return_Button_Type::_make
Fl_Widget_Type * _make()
Definition: factory.cxx:95
Fl_Repeat_Button_Type::alt_type_name
virtual const char * alt_type_name()
Definition: factory.cxx:106
FL_YELLOW
const Fl_Color FL_YELLOW
Definition: Enumerations.H:959
Fl_Text_Display_Type::type_name
virtual const char * type_name()
Definition: factory.cxx:542
Fl_Pixmap
Definition: Fl_Pixmap.H:41
Fl_Value_Input::textcolor
Fl_Color textcolor() const
Definition: Fl_Value_Input.H:116
undo.h
Fl_Input_Type::alt_type_name
virtual const char * alt_type_name()
Definition: factory.cxx:450
FL_HELVETICA
const Fl_Font FL_HELVETICA
Helvetica (or Arial) normal (0)
Definition: Enumerations.H:879
Fl_Text_Display.H
Fl_Spinner_Type::type_name
virtual const char * type_name()
Definition: factory.cxx:404
Fl_Browser.H
Fl_Button_Type::widget
Fl_Widget * widget(int x, int y, int w, int h)
Definition: factory.cxx:72
Fl_Type::type_name
virtual const char * type_name()=0
Fl_Light_Button_Type::type_name
virtual const char * type_name()
Definition: factory.cxx:123
buttontype_menu
static Fl_Menu_Item buttontype_menu[]
Definition: factory.cxx:57
Fl_Value_Output_type
static Fl_Value_Output_Type Fl_Value_Output_type
Definition: factory.cxx:865
Fl_Widget_Type::o
Fl_Widget * o
Definition: Fl_Type.h:401
Fl_Progress_Type::alt_type_name
virtual const char * alt_type_name()
Definition: factory.cxx:659
Fl_Value_Input_Type
Definition: factory.cxx:801
Fl_Spinner_Type::pixmapID
int pixmapID()
Definition: factory.cxx:392
Fl_Output_Type::_make
Fl_Widget_Type * _make()
Definition: factory.cxx:793
Fl_Type::is_window
virtual int is_window() const
Definition: Fl_Type.cxx:759
Fl_Roller_Type::is_valuator
int is_valuator() const
Definition: factory.cxx:714
Fl_Clock_Type::_make
Fl_Widget_Type * _make()
Definition: factory.cxx:617
Fl_Text_Editor_Type::alt_type_name
virtual const char * alt_type_name()
Definition: factory.cxx:585
Fl_Output_Type::type_name
virtual const char * type_name()
Definition: factory.cxx:786
FL_NORMAL_BROWSER
#define FL_NORMAL_BROWSER
Definition: Fl_Browser_.H:33
Fl_Text_Editor_type
static Fl_Text_Editor_Type Fl_Text_Editor_type
Definition: factory.cxx:594
Fl_Return_Button
Definition: Fl_Return_Button.H:33
Fl_Round_Button_Type::widget
Fl_Widget * widget(int x, int y, int w, int h)
Definition: factory.cxx:161
Fl_Value_Input_Type::is_value_input
int is_value_input() const
Definition: factory.cxx:817
Fl_Progress_Type
Definition: factory.cxx:656
FL_FLOAT_INPUT
#define FL_FLOAT_INPUT
Definition: Fl_Input_.H:30
Fl_Counter_Type::_make
Fl_Widget_Type * _make()
Definition: factory.cxx:366
Fl_Type
Definition: Fl_Type.h:43
Fl_Input
Definition: Fl_Input.H:222
pixmap
Fl_Pixmap * pixmap[]
Definition: Fl_Type.cxx:154
Fl_Table_Type
Definition: Fl_Type.h:511
Fl_Comment_Type
Definition: Fl_Type.h:321
Fl_Input_Type::_make
Fl_Widget_Type * _make()
Definition: factory.cxx:457
Fl_Value_Input_Type::pixmapID
int pixmapID()
Definition: factory.cxx:823
Fl_Return_Button_Type::pixmapID
int pixmapID()
Definition: factory.cxx:96
table
static symbol table[]
Definition: factory.cxx:1109
Fl_Input_Type::is_input
int is_input() const
Definition: factory.cxx:451
Fl_Menu_Item_Type
Definition: Fl_Type.h:671
Fl_Output_Type::widget
Fl_Widget * widget(int x, int y, int w, int h)
Definition: factory.cxx:788
Fl_Adjuster.H
Fl_Output_Type::alt_type_name
virtual const char * alt_type_name()
Definition: factory.cxx:787
Fl_Menu_Bar_Type
Definition: Fl_Type.h:826
Fl_CodeBlock_type
class Fl_CodeBlock_Type Fl_CodeBlock_type
Definition: Fl_Function_Type.cxx:568
fl_ascii_strcasecmp
int fl_ascii_strcasecmp(const char *s, const char *t)
Definition: flstring.c:99
cb
static void cb(Fl_Widget *, void *v)
Definition: factory.cxx:937
Fl_Choice_type
class Fl_Choice_Type Fl_Choice_type
Definition: Fl_Menu_Type.cxx:530
Fl_Light_Button_Type
Definition: factory.cxx:117
Fl_Check_Browser_type
static Fl_Check_Browser_Type Fl_Check_Browser_type
Definition: factory.cxx:264
FL_CYAN
const Fl_Color FL_CYAN
Definition: Enumerations.H:962
Fl_Browser_Type::subtypes
Fl_Menu_Item * subtypes()
Definition: factory.cxx:183
FL_NORMAL_SIZE
Fl_Fontsize FL_NORMAL_SIZE
normal font size
Definition: Fl_Widget.cxx:117
Fl_Slider_Type::pixmapID
int pixmapID()
Definition: factory.cxx:745
Fl_Roller_Type::widget
Fl_Widget * widget(int x, int y, int w, int h)
Definition: factory.cxx:718
Fl_File_Browser_Type::_make
Fl_Widget_Type * _make()
Definition: factory.cxx:332
Fl_Widget
Definition: Fl_Widget.H:101
Fl_Multi_Label::labela
const char * labela
Definition: Fl_Multi_Label.H:52
Fl_Output_Type::ideal_size
virtual void ideal_size(int &w, int &h)
Definition: factory.cxx:776
Fl_Text_Display_Type::pixmapID
int pixmapID()
Definition: factory.cxx:550
Fl_Button_Type::alt_type_name
virtual const char * alt_type_name()
Definition: factory.cxx:71
Fl_Output_Type
Definition: factory.cxx:773
Fl_Text_Editor_Type::widget
Fl_Widget * widget(int x, int y, int w, int h)
Definition: factory.cxx:587
Fl_Spinner_Type
Definition: factory.cxx:389
Fl_Progress::value
void value(float v)
Definition: Fl_Progress.H:63
FL_LIGHT2
const Fl_Color FL_LIGHT2
Definition: Enumerations.H:951
FL_LIGHT3
const Fl_Color FL_LIGHT3
Definition: Enumerations.H:952
Fl_Counter_Type::textstuff
int textstuff(int w, Fl_Font &f, int &s, Fl_Color &c)
Definition: factory.cxx:370
Fl_Value_Output
Definition: Fl_Value_Output.H:41
Fl_Counter_Type::type_name
virtual const char * type_name()
Definition: factory.cxx:362
Fl_Type::open
virtual void open()
Definition: Fl_Type.cxx:727
Fl_Dial
Definition: Fl_Dial.H:47
Fl_Check_Button.H
FL_ALIGN_BOTTOM
const Fl_Align FL_ALIGN_BOTTOM
Definition: Enumerations.H:835
Fl_File_Browser_Type::type_name
virtual const char * type_name()
Definition: factory.cxx:321
Fl_Scroll_type
class Fl_Scroll_Type Fl_Scroll_type
Definition: Fl_Group_Type.cxx:420
Fl_Widget::box
Fl_Boxtype box() const
Definition: Fl_Widget.H:363
Fl_Button_Type::subtypes
Fl_Menu_Item * subtypes()
Definition: factory.cxx:63
Fl_Value_Slider_Type::widget
Fl_Widget * widget(int x, int y, int w, int h)
Definition: factory.cxx:887
Fl_Input_::textfont
Fl_Font textfont() const
Definition: Fl_Input_.H:386
FL_NORMAL_INPUT
#define FL_NORMAL_INPUT
Definition: Fl_Input_.H:29
Fl_File_Input_Type::pixmapID
int pixmapID()
Definition: factory.cxx:508
Fl_Widget_Type.h
Fl_File_Browser_Type::textstuff
int textstuff(int w, Fl_Font &f, int &s, Fl_Color &c)
Definition: factory.cxx:337
select
void select(Fl_Type *, int)
Definition: Fl_Type.cxx:240
FL_LIGHT1
const Fl_Color FL_LIGHT1
Definition: Enumerations.H:950
Fl_Tree_Type::pixmapID
int pixmapID()
Definition: factory.cxx:301
Fl_Check_Browser_Type
Definition: factory.cxx:230
Fl_Repeat_Button_Type::type_name
virtual const char * type_name()
Definition: factory.cxx:105
Fl_Repeat_Button_type
static Fl_Repeat_Button_Type Fl_Repeat_Button_type
Definition: factory.cxx:112
Fl_Check_Browser
Definition: Fl_Check_Browser.H:32
FL_SIMPLE_COUNTER
#define FL_SIMPLE_COUNTER
Definition: Fl_Counter.H:33
Fl_Text_Display_type
static Fl_Text_Display_Type Fl_Text_Display_type
Definition: factory.cxx:552
Fl_Slider_Type::alt_type_name
virtual const char * alt_type_name()
Definition: factory.cxx:741
Fl_Widget::h
void h(int v)
Definition: Fl_Widget.H:145
Fl_Value_Slider_Type
Definition: factory.cxx:882
Fl_Tree_type
static Fl_Tree_Type Fl_Tree_type
Definition: factory.cxx:303
FL_HOR_FILL_SLIDER
#define FL_HOR_FILL_SLIDER
Definition: Fl_Slider.H:33
Fl_Scrollbar_type
static Fl_Scrollbar_Type Fl_Scrollbar_type
Definition: factory.cxx:764
Fl_Value_Output_Type
Definition: factory.cxx:842
Fl_Clock_Type::pixmapID
int pixmapID()
Definition: factory.cxx:618
spinner_type_menu
static Fl_Menu_Item spinner_type_menu[]
Definition: factory.cxx:385
Fl_Roller_Type::type_name
virtual const char * type_name()
Definition: factory.cxx:716
Fl_Input_Choice_Type
Definition: Fl_Type.h:786
lookup_symbol
int lookup_symbol(const char *name, int &v, int numberok)
Definition: factory.cxx:1233
Fl_Counter_Type::widget
Fl_Widget * widget(int x, int y, int w, int h)
Definition: factory.cxx:364
Fl_Input_Type::ideal_size
virtual void ideal_size(int &w, int &h)
Definition: factory.cxx:439
Fl_DeclBlock_type
class Fl_DeclBlock_Type Fl_DeclBlock_type
Definition: Fl_Function_Type.cxx:1040
symbol::value
int value
Definition: factory.cxx:1107
Fl_Slider_Type::is_valuator
int is_valuator() const
Definition: factory.cxx:738
Fl_Widget_Type::copy_properties
virtual void copy_properties()
Definition: Fl_Widget_Type.cxx:2814
FL_VERT_FILL_SLIDER
#define FL_VERT_FILL_SLIDER
Definition: Fl_Slider.H:32
Fl_Decl_Type
Definition: Fl_Type.h:267
FL_RED
const Fl_Color FL_RED
Definition: Enumerations.H:957
_FL_SHADOW_LABEL
draws a drop shadow under the text
Definition: Enumerations.H:766
Fl_Box
Definition: Fl_Box.H:34
FL_BOLD
const Fl_Font FL_BOLD
add this to helvetica, courier, or times
Definition: Enumerations.H:897
Fl_Light_Button_Type::_make
Fl_Widget_Type * _make()
Definition: factory.cxx:127
Fl_File_Browser_Type::subtypes
Fl_Menu_Item * subtypes()
Definition: factory.cxx:306
Fl_Button_Type
Definition: factory.cxx:62
Fl_Check_Browser.H
set_modflag
void set_modflag(int mf)
Definition: fluid.cxx:1687
Fl_Tile_type
class Fl_Tile_Type Fl_Tile_type
Definition: Fl_Group_Type.cxx:435
Fl_Box_Type::pixmapID
int pixmapID()
Definition: factory.cxx:50
Fl_Widget::size
void size(int W, int H)
Definition: Fl_Widget.H:341
Fl_Repeat_Button_Type
Definition: factory.cxx:103
Fl_Check_Browser_Type::widget
Fl_Widget * widget(int x, int y, int w, int h)
Definition: factory.cxx:248
x
int x
Definition: test.c:73
Fl_Input_Type::subtypes
Fl_Menu_Item * subtypes()
Definition: factory.cxx:436
Fl_Help_View::value
void value(const char *val)
Definition: Fl_Help_View.cxx:3527
Fl_File_Browser.H
Fl_Adjuster
Definition: Fl_Adjuster.H:43
Fl_Help_View::textsize
void textsize(Fl_Fontsize s)
Definition: Fl_Help_View.H:342
Fl_Help_View::textfont
void textfont(Fl_Font f)
Definition: Fl_Help_View.H:338
Fl_Text_Display
Rich text display widget.
Definition: Fl_Text_Display.H:82
Fl_Font
int Fl_Font
Definition: Enumerations.H:877
symbol
Definition: factory.cxx:1107
FL_FILL_DIAL
#define FL_FILL_DIAL
Definition: Fl_Dial.H:32
Fl_Widget_Type::ideal_size
virtual void ideal_size(int &w, int &h)
Definition: Fl_Widget_Type.cxx:72
FL_MULTILINE_OUTPUT
#define FL_MULTILINE_OUTPUT
Definition: Fl_Input_.H:38
Fl_Value_Output_Type::pixmapID
int pixmapID()
Definition: factory.cxx:863
Fl_Type::alt_type_name
virtual const char * alt_type_name()
Definition: Fl_Type.h:94
FL_ALIGN_TOP
const Fl_Align FL_ALIGN_TOP
Definition: Enumerations.H:833
Fl_Text_Display_Type::textstuff
int textstuff(int w, Fl_Font &f, int &s, Fl_Color &c)
Definition: factory.cxx:554
Fl_Input_type
static Fl_Input_Type Fl_Input_type
Definition: factory.cxx:468
Fl_Output_Type::subtypes
Fl_Menu_Item * subtypes()
Definition: factory.cxx:774
Fl_Round_Button_Type
Definition: factory.cxx:153
FL_ALIGN_CENTER
const Fl_Align FL_ALIGN_CENTER
Definition: Enumerations.H:830
Fl_Adjuster_Type::pixmapID
int pixmapID()
Definition: factory.cxx:680
Fl_Counter::textfont
Fl_Font textfont() const
Definition: Fl_Counter.H:95
Fl_Comment_type
class Fl_Comment_Type Fl_Comment_type
Definition: Fl_Function_Type.cxx:1248
Fl_Group.H
Fl_Output.H
Fl_Counter_type
static Fl_Counter_Type Fl_Counter_type
Definition: factory.cxx:368
counter_type_menu
static Fl_Menu_Item counter_type_menu[]
Definition: factory.cxx:352
Fl_Scrollbar_Type
Definition: factory.cxx:753
Fl_Round_Button.H
Fl_File_Input_Type::is_input
int is_input() const
Definition: factory.cxx:501
Fl_Dial_type
static Fl_Dial_Type Fl_Dial_type
Definition: factory.cxx:703
Fl_Spinner::textsize
Fl_Fontsize textsize() const
Definition: Fl_Spinner.H:204
Fl_Menu_Item
Definition: Fl_Menu_Item.H:112
Fl_Value_Input_Type::widget
Fl_Widget * widget(int x, int y, int w, int h)
Definition: factory.cxx:818
Fl_Widget_Type::live_widget
Fl_Widget * live_widget
Definition: Fl_Type.h:395
FL_NORMAL_LABEL
draws the text (0)
Definition: Enumerations.H:764
y
int y
Definition: test.c:74
Fl_Value_Output_Type::type_name
virtual const char * type_name()
Definition: factory.cxx:854
Fl_Button_Type::type_name
virtual const char * type_name()
Definition: factory.cxx:70
Fl_Spinner_Type::alt_type_name
virtual const char * alt_type_name()
Definition: factory.cxx:405
Fl_Value_Output_Type::alt_type_name
virtual const char * alt_type_name()
Definition: factory.cxx:855
Fl_Help_View
Definition: Fl_Help_View.H:200
undo_last
int undo_last
Definition: undo.cxx:55
Fl_Pack_Type
Definition: Fl_Type.h:499
Fl_Value_Input.H
undo_current
int undo_current
Definition: undo.cxx:54
FL_GRAY
#define FL_GRAY
Definition: Enumerations.H:978
Fl_Box_Type::type_name
virtual const char * type_name()
Definition: factory.cxx:45
Fl_Tabs_type
class Fl_Tabs_Type Fl_Tabs_type
Definition: Fl_Group_Type.cxx:235
Fl_Progress_Type::pixmapID
int pixmapID()
Definition: factory.cxx:665
Fl_Check_Button_Type::type_name
virtual const char * type_name()
Definition: factory.cxx:141
Fl_Input_::textcolor
Fl_Color textcolor() const
Definition: Fl_Input_.H:405
Fl_Round_Button_Type::type_name
virtual const char * type_name()
Definition: factory.cxx:159
Fl_Adjuster_Type::is_valuator
int is_valuator() const
Definition: factory.cxx:673
Fl_Browser_Type::widget
Fl_Widget * widget(int x, int y, int w, int h)
Definition: factory.cxx:200
f
Fl_Box_Draw_F * f
Definition: fl_boxtype.cxx:285
Fl_Group_type
class Fl_Group_Type Fl_Group_type
Definition: Fl_Group_Type.cxx:36
Fl_Input_Choice_type
class Fl_Input_Choice_Type Fl_Input_Choice_type
Definition: Fl_Menu_Type.cxx:532
Fl_Tabs_Type
Definition: Fl_Type.h:526
_FL_ENGRAVED_LABEL
draws edges as though the text is engraved
Definition: Enumerations.H:767
Fl_Button_Type::_make
Fl_Widget_Type * _make()
Definition: factory.cxx:74
Fl_Menu_Item_type
class Fl_Menu_Item_Type Fl_Menu_Item_type
Definition: Fl_Menu_Type.cxx:133
Fl_Tree_Type::type_name
virtual const char * type_name()
Definition: factory.cxx:284
Fl_Button.H
Fl_Light_Button_Type::widget
Fl_Widget * widget(int x, int y, int w, int h)
Definition: factory.cxx:125
Fl_Help_View_type
static Fl_Help_View_Type Fl_Help_View_type
Definition: factory.cxx:651
FL_SELECT_BROWSER
#define FL_SELECT_BROWSER
Definition: Fl_Browser_.H:34
Fl_Menu_Item::text
const char * text
menu item text, returned by label()
Definition: Fl_Menu_Item.H:113
output_type_menu
static Fl_Menu_Item output_type_menu[]
Definition: factory.cxx:769
Fl_Dial_Type::widget
Fl_Widget * widget(int x, int y, int w, int h)
Definition: factory.cxx:698
Fl_Value_Input::textfont
Fl_Font textfont() const
Definition: Fl_Value_Input.H:108
Fl_Browser_::textfont
Fl_Font textfont() const
Definition: Fl_Browser_.H:292
Fl_Window_Type
Definition: Fl_Type.h:584
Fl_Text_Display_Type::is_text_display
int is_text_display() const
Definition: factory.cxx:544
Fl_Value_Output_Type::ideal_size
virtual void ideal_size(int &w, int &h)
Definition: factory.cxx:844
Fl_Value_Slider_Type::textstuff
int textstuff(int w, Fl_Font &f, int &s, Fl_Color &c)
Definition: factory.cxx:894
Fl_Multi_Label::typeb
uchar typeb
Definition: Fl_Multi_Label.H:66
_FL_IMAGE_LABEL
the label displays an "icon" based on a Fl_Image
Definition: Enumerations.H:771
Fl_Text_Display::textsize
Fl_Fontsize textsize() const
Definition: Fl_Text_Display.H:302
Fl_Value_Input::textsize
Fl_Fontsize textsize() const
Definition: Fl_Value_Input.H:112
Fl_Adjuster_type
static Fl_Adjuster_Type Fl_Adjuster_type
Definition: factory.cxx:682
Fl_File_Input_type
static Fl_File_Input_Type Fl_File_Input_type
Definition: factory.cxx:510
Fl_Value_Slider
Definition: Fl_Value_Slider.H:33
Fl_Value_Input_Type::type_name
virtual const char * type_name()
Definition: factory.cxx:813
FL_RADIO_BUTTON
#define FL_RADIO_BUTTON
Definition: Fl_Button.H:34
Fl_Text_Editor.H
Fl_Counter_Type::alt_type_name
virtual const char * alt_type_name()
Definition: factory.cxx:363
Fl_Light_Button_Type::alt_type_name
virtual const char * alt_type_name()
Definition: factory.cxx:124
Fl_Help_View_Type::ideal_size
virtual void ideal_size(int &w, int &h)
Definition: factory.cxx:627
Fl_Type::make
virtual Fl_Type * make()=0
Fl_Input_
Definition: Fl_Input_.H:94
Fl_Widget::resize
virtual void resize(int x, int y, int w, int h)
Definition: Fl_Widget.cxx:150
Fl_Text_Editor_Type::pixmapID
int pixmapID()
Definition: factory.cxx:592
Fl_Roller_Type::subtypes
Fl_Menu_Item * subtypes()
Definition: factory.cxx:713
Fl_Submenu_type
class Fl_Submenu_Type Fl_Submenu_type
Definition: Fl_Menu_Type.cxx:134
Fl_Check_Browser_Type::type_name
virtual const char * type_name()
Definition: factory.cxx:246
Fl_Help_View_Type::alt_type_name
virtual const char * alt_type_name()
Definition: factory.cxx:640
Fl_Text_Display_Type
Definition: factory.cxx:527
Fl_Input_Type::textstuff
int textstuff(int w, Fl_Font &f, int &s, Fl_Color &c)
Definition: factory.cxx:470
FL_ALIGN_RIGHT
const Fl_Align FL_ALIGN_RIGHT
Definition: Enumerations.H:841
Fl_Type::factory
Fl_Type * factory
Definition: Fl_Type.h:73
Fl_Output
Definition: Fl_Output.H:47
Fl_File_Browser_Type::ideal_size
virtual void ideal_size(int &w, int &h)
Definition: factory.cxx:309
FL_HOR_SLIDER
#define FL_HOR_SLIDER
Definition: Fl_Slider.H:31
Fl_File_Browser_type
static Fl_File_Browser_Type Fl_File_Browser_type
Definition: factory.cxx:335
Fl_Wizard_type
class Fl_Wizard_Type Fl_Wizard_type
Definition: Fl_Group_Type.cxx:266
Fl_File_Input_Type::ideal_size
virtual void ideal_size(int &w, int &h)
Definition: factory.cxx:489
Fl_Value_Input_Type::ideal_size
virtual void ideal_size(int &w, int &h)
Definition: factory.cxx:803
slider_type_menu
static Fl_Menu_Item slider_type_menu[]
Definition: factory.cxx:728
Fl_Pack_type
class Fl_Pack_Type Fl_Pack_type
Definition: Fl_Group_Type.cxx:136
Fl_Widget::labelsize
Fl_Fontsize labelsize() const
Definition: Fl_Widget.H:502
Fl_Value_Input_Type::is_valuator
int is_valuator() const
Definition: factory.cxx:816
fill_in_New_Menu
void fill_in_New_Menu()
Definition: factory.cxx:1069
Fl_Tree_Type::ideal_size
virtual void ideal_size(int &w, int &h)
Definition: factory.cxx:280
Fl_Class_type
class Fl_Class_Type Fl_Class_type
Definition: Fl_Function_Type.cxx:1443
Fl_Value_Output::textfont
Fl_Font textfont() const
Definition: Fl_Value_Output.H:70
Fl_Check_Browser_Type::subtypes
Fl_Menu_Item * subtypes()
Definition: factory.cxx:231
Fl_Return_Button_Type::ideal_size
virtual void ideal_size(int &w, int &h)
Definition: factory.cxx:85
Fl_Scrollbar_Type::type_name
virtual const char * type_name()
Definition: factory.cxx:757
FL_MAGENTA
const Fl_Color FL_MAGENTA
Definition: Enumerations.H:961
Fl_Decl_type
class Fl_Decl_Type Fl_Decl_type
Definition: Fl_Function_Type.cxx:695
symbol::name
const char * name
Definition: factory.cxx:1107
name
static const char * name
Definition: Fl_arg.cxx:53
Fl_Browser_Type::textstuff
int textstuff(int w, Fl_Font &f, int &s, Fl_Color &c)
Definition: factory.cxx:218
FL_NORMAL_COUNTER
#define FL_NORMAL_COUNTER
Definition: Fl_Counter.H:32
Fl_Clock_Type
Definition: factory.cxx:611
Fl_Roller_Type
Definition: factory.cxx:712
Fl_Round_Button_Type::_make
Fl_Widget_Type * _make()
Definition: factory.cxx:163
Fl_Browser_::textcolor
Fl_Color textcolor() const
Definition: Fl_Browser_.H:310
Fl_Slider_Type::type_name
virtual const char * type_name()
Definition: factory.cxx:740
Fl_Repeat_Button_Type::pixmapID
int pixmapID()
Definition: factory.cxx:110
Fl_Check_Browser_Type::ideal_size
virtual void ideal_size(int &w, int &h)
Definition: factory.cxx:234
Fl_Clock_Type::widget
Fl_Widget * widget(int x, int y, int w, int h)
Definition: factory.cxx:615
Fl_Slider_Type::_make
Fl_Widget_Type * _make()
Definition: factory.cxx:744
Fl_Check_Button
A button with a "checkmark" to show its status.
Definition: Fl_Check_Button.H:30
Fl_Value_Input_Type::alt_type_name
virtual const char * alt_type_name()
Definition: factory.cxx:814
FL_HIDDEN_BUTTON
#define FL_HIDDEN_BUTTON
for Forms compatibility
Definition: Fl_Button.H:39
Fl_Progress.H
New_Menu
Fl_Menu_Item New_Menu[]
Definition: factory.cxx:976
Fl_Menu_Item.H
Fl_Menu_Bar_type
class Fl_Menu_Bar_Type Fl_Menu_Bar_type
Definition: Fl_Menu_Type.cxx:564
Fl_Help_View_Type
Definition: factory.cxx:625
batch_mode
int batch_mode
Definition: fluid.cxx:697
Fl_Slider_type
static Fl_Slider_Type Fl_Slider_type
Definition: factory.cxx:747
Fl_Class_Type
Definition: Fl_Type.h:338
Fl_Function_Type
Definition: Fl_Type.h:165
Fl_Repeat_Button
Definition: Fl_Repeat_Button.H:33
Fl_Progress_Type::_make
Fl_Widget_Type * _make()
Definition: factory.cxx:664
Fl_Browser_Type::ideal_size
virtual void ideal_size(int &w, int &h)
Definition: factory.cxx:186
Fl_Value_Slider_type
static Fl_Value_Slider_Type Fl_Value_Slider_type
Definition: factory.cxx:892
Fl_Value_Output_Type::widget
Fl_Widget * widget(int x, int y, int w, int h)
Definition: factory.cxx:858
Fl_File_Input_Type::widget
Fl_Widget * widget(int x, int y, int w, int h)
Definition: factory.cxx:502
Fl_Tree
Tree widget.
Definition: Fl_Tree.H:323
Fl_Tile_Type
Definition: Fl_Type.h:561
Fl_Spinner
Definition: Fl_Spinner.H:45
Fl_Return_Button_Type::type_name
virtual const char * type_name()
Definition: factory.cxx:91
Fl_Dial_Type::type_name
virtual const char * type_name()
Definition: factory.cxx:696
Fl_Text_Editor
Definition: Fl_Text_Editor.H:40
Fl_Return_Button_Type::widget
Fl_Widget * widget(int x, int y, int w, int h)
Definition: factory.cxx:93
Fl_Value_Slider_Type::_make
Fl_Widget_Type * _make()
Definition: factory.cxx:889
Fl_Clock.H
Fl_Box_Type::alt_type_name
virtual const char * alt_type_name()
Definition: factory.cxx:46
FL_INT_INPUT
#define FL_INT_INPUT
Definition: Fl_Input_.H:31
Fl_Round_Button_Type::alt_type_name
virtual const char * alt_type_name()
Definition: factory.cxx:160
Fl_Type::pixmapID
virtual int pixmapID()
Definition: Fl_Type.h:159
input_type_menu
static Fl_Menu_Item input_type_menu[]
Definition: factory.cxx:428
FL_DARK3
const Fl_Color FL_DARK3
Definition: Enumerations.H:946