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 File Reference
#include <FL/Fl.H>
#include <FL/Fl_Group.H>
#include <FL/Fl_Menu_Item.H>
#include <FL/Fl_Pixmap.H>
#include <FL/Fl_Tree.H>
#include <stdio.h>
#include "../src/flstring.h"
#include "undo.h"
#include "Fl_Widget_Type.h"
#include <FL/Fl_Box.H>
#include <FL/Fl_Button.H>
#include <FL/Fl_Return_Button.H>
#include <FL/Fl_Repeat_Button.H>
#include <FL/Fl_Light_Button.H>
#include <FL/Fl_Check_Button.H>
#include <FL/Fl_Round_Button.H>
#include <FL/Fl_Browser.H>
#include <FL/Fl_Check_Browser.H>
#include <FL/Fl_File_Browser.H>
#include <FL/Fl_Counter.H>
#include <FL/Fl_Spinner.H>
#include <FL/Fl_Input.H>
#include <FL/Fl_File_Input.H>
#include <FL/Fl_Text_Display.H>
#include <FL/Fl_Text_Editor.H>
#include <FL/Fl_Clock.H>
#include <FL/Fl_Help_View.H>
#include <FL/Fl_Progress.H>
#include <FL/Fl_Adjuster.H>
#include <FL/Fl_Dial.H>
#include <FL/Fl_Roller.H>
#include <FL/Fl_Scrollbar.H>
#include <FL/Fl_Output.H>
#include <FL/Fl_Value_Input.H>
#include <FL/Fl_Value_Output.H>
#include <FL/Fl_Value_Slider.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Multi_Label.H>
#include <stdlib.h>
Include dependency graph for factory.cxx:

Go to the source code of this file.

Classes

class  Fl_Box_Type
 
class  Fl_Button_Type
 
class  Fl_Return_Button_Type
 
class  Fl_Repeat_Button_Type
 
class  Fl_Light_Button_Type
 
class  Fl_Check_Button_Type
 
class  Fl_Round_Button_Type
 
class  Fl_Browser_Type
 
class  Fl_Check_Browser_Type
 
class  Fl_Tree_Type
 
class  Fl_File_Browser_Type
 
class  Fl_Counter_Type
 
class  Fl_Spinner_Type
 
class  Fl_Input_Type
 
class  Fl_File_Input_Type
 
class  Fl_Text_Display_Type
 
class  Fl_Text_Editor_Type
 
class  Fl_Clock_Type
 
class  Fl_Help_View_Type
 
class  Fl_Progress_Type
 
class  Fl_Adjuster_Type
 
class  Fl_Dial_Type
 
class  Fl_Roller_Type
 
class  Fl_Slider_Type
 
class  Fl_Scrollbar_Type
 
class  Fl_Output_Type
 
class  Fl_Value_Input_Type
 
class  Fl_Value_Output_Type
 
class  Fl_Value_Slider_Type
 
struct  symbol
 

Functions

void select (Fl_Type *, int)
 
void select_only (Fl_Type *)
 
static void cb (Fl_Widget *, void *v)
 
static void make_iconlabel (Fl_Menu_Item *mi, Fl_Image *ic, const char *txt)
 
void fill_in_New_Menu ()
 
Fl_TypeFl_Type_make (const char *tn)
 
int lookup_symbol (const char *name, int &v, int numberok)
 

Variables

Fl_Pixmappixmap []
 
static Fl_Box_Type Fl_Box_type
 
static Fl_Menu_Item buttontype_menu []
 
static Fl_Button_Type Fl_Button_type
 
static Fl_Return_Button_Type Fl_Return_Button_type
 
static Fl_Repeat_Button_Type Fl_Repeat_Button_type
 
static Fl_Light_Button_Type Fl_Light_Button_type
 
static Fl_Check_Button_Type Fl_Check_Button_type
 
static Fl_Round_Button_Type Fl_Round_Button_type
 
int batch_mode
 
static Fl_Menu_Item browser_type_menu []
 
static Fl_Browser_Type Fl_Browser_type
 
static Fl_Check_Browser_Type Fl_Check_Browser_type
 
static Fl_Tree_Type Fl_Tree_type
 
static Fl_File_Browser_Type Fl_File_Browser_type
 
static Fl_Menu_Item counter_type_menu []
 
static Fl_Counter_Type Fl_Counter_type
 
static Fl_Menu_Item spinner_type_menu []
 
static Fl_Spinner_Type Fl_Spinner_type
 
static Fl_Menu_Item input_type_menu []
 
static Fl_Input_Type Fl_Input_type
 
static Fl_File_Input_Type Fl_File_Input_type
 
static Fl_Text_Display_Type Fl_Text_Display_type
 
static Fl_Text_Editor_Type Fl_Text_Editor_type
 
static Fl_Clock_Type Fl_Clock_type
 
static Fl_Help_View_Type Fl_Help_View_type
 
static Fl_Progress_Type Fl_Progress_type
 
static Fl_Adjuster_Type Fl_Adjuster_type
 
static Fl_Menu_Item dial_type_menu []
 
static Fl_Dial_Type Fl_Dial_type
 
static Fl_Menu_Item roller_type_menu []
 
static Fl_Roller_Type Fl_Roller_type
 
static Fl_Menu_Item slider_type_menu []
 
static Fl_Slider_Type Fl_Slider_type
 
static Fl_Menu_Item scrollbar_type_menu []
 
static Fl_Scrollbar_Type Fl_Scrollbar_type
 
static Fl_Menu_Item output_type_menu []
 
static Fl_Output_Type Fl_Output_type
 
static Fl_Value_Input_Type Fl_Value_Input_type
 
static Fl_Value_Output_Type Fl_Value_Output_type
 
static Fl_Value_Slider_Type Fl_Value_Slider_type
 
class Fl_Function_Type Fl_Function_type
 
class Fl_Code_Type Fl_Code_type
 
class Fl_CodeBlock_Type Fl_CodeBlock_type
 
class Fl_Data_Type Fl_Data_type
 
class Fl_Decl_Type Fl_Decl_type
 
class Fl_DeclBlock_Type Fl_DeclBlock_type
 
class Fl_Comment_Type Fl_Comment_type
 
class Fl_Class_Type Fl_Class_type
 
class Fl_Window_Type Fl_Window_type
 
class Fl_Widget_Class_Type Fl_Widget_Class_type
 
class Fl_Group_Type Fl_Group_type
 
class Fl_Pack_Type Fl_Pack_type
 
class Fl_Tabs_Type Fl_Tabs_type
 
class Fl_Scroll_Type Fl_Scroll_type
 
class Fl_Table_Type Fl_Table_type
 
class Fl_Tile_Type Fl_Tile_type
 
class Fl_Input_Choice_Type Fl_Input_Choice_type
 
class Fl_Choice_Type Fl_Choice_type
 
class Fl_Menu_Bar_Type Fl_Menu_Bar_type
 
class Fl_Menu_Button_Type Fl_Menu_Button_type
 
class Fl_Menu_Item_Type Fl_Menu_Item_type
 
class Fl_Submenu_Type Fl_Submenu_type
 
class Fl_Wizard_Type Fl_Wizard_type
 
Fl_Menu_Item New_Menu []
 
int reading_file
 
static symbol table []
 

Function Documentation

◆ cb()

◆ fill_in_New_Menu()

◆ Fl_Type_make()

◆ lookup_symbol()

int lookup_symbol ( const char *  name,
int &  v,
int  numberok 
)

Definition at line 1233 of file factory.cxx.

References fl_ascii_strcasecmp(), name, table, and symbol::value.

Referenced by Fl_Widget_Type::read_fdesign().

◆ make_iconlabel()

◆ select()

void select ( Fl_Type ,
int   
)

◆ select_only()

void select_only ( Fl_Type )

Definition at line 245 of file Fl_Type.cxx.

Referenced by cb().

Variable Documentation

◆ batch_mode

◆ browser_type_menu

Fl_Menu_Item browser_type_menu[]
static
Initial value:
= {
{"No Select",0,0,(void*) 0 },
{"Select",0,0,(void*) 1 },
{"Hold",0,0,(void*) 2 },
{"Multi",0,0,(void*) 3 },
{0}}

Definition at line 176 of file factory.cxx.

Referenced by Fl_Browser_Type::subtypes(), Fl_Check_Browser_Type::subtypes(), and Fl_File_Browser_Type::subtypes().

◆ buttontype_menu

Fl_Menu_Item buttontype_menu[]
static
Initial value:
= {
{"Normal",0,0,(void*)0},
{"Toggle",0,0,(void*)FL_TOGGLE_BUTTON},
{"Radio",0,0,(void*)FL_RADIO_BUTTON},
{0}}

Definition at line 57 of file factory.cxx.

Referenced by Fl_Button_Type::subtypes().

◆ counter_type_menu

Fl_Menu_Item counter_type_menu[]
static
Initial value:
= {
{"Normal",0,0,(void*)FL_NORMAL_COUNTER},
{"Simple",0,0,(void*)FL_SIMPLE_COUNTER},
{0}}

Definition at line 352 of file factory.cxx.

Referenced by Fl_Counter_Type::subtypes().

◆ dial_type_menu

Fl_Menu_Item dial_type_menu[]
static
Initial value:
= {
{"Dot",0,0,(void*)0},
{"Line",0,0,(void*)FL_LINE_DIAL},
{"Fill",0,0,(void*)FL_FILL_DIAL},
{0}}

Definition at line 687 of file factory.cxx.

Referenced by Fl_Dial_Type::subtypes().

◆ Fl_Adjuster_type

Fl_Adjuster_Type Fl_Adjuster_type
static

Definition at line 682 of file factory.cxx.

◆ Fl_Box_type

Fl_Box_Type Fl_Box_type
static

Definition at line 52 of file factory.cxx.

◆ Fl_Browser_type

Fl_Browser_Type Fl_Browser_type
static

Definition at line 216 of file factory.cxx.

◆ Fl_Button_type

Fl_Button_Type Fl_Button_type
static

Definition at line 78 of file factory.cxx.

◆ Fl_Check_Browser_type

Fl_Check_Browser_Type Fl_Check_Browser_type
static

Definition at line 264 of file factory.cxx.

◆ Fl_Check_Button_type

Fl_Check_Button_Type Fl_Check_Button_type
static

Definition at line 148 of file factory.cxx.

◆ Fl_Choice_type

class Fl_Choice_Type Fl_Choice_type

Definition at line 530 of file Fl_Menu_Type.cxx.

◆ Fl_Class_type

class Fl_Class_Type Fl_Class_type

Definition at line 1443 of file Fl_Function_Type.cxx.

◆ Fl_Clock_type

Fl_Clock_Type Fl_Clock_type
static

Definition at line 620 of file factory.cxx.

◆ Fl_Code_type

class Fl_Code_Type Fl_Code_type

Definition at line 477 of file Fl_Function_Type.cxx.

◆ Fl_CodeBlock_type

class Fl_CodeBlock_Type Fl_CodeBlock_type

Definition at line 568 of file Fl_Function_Type.cxx.

◆ Fl_Comment_type

class Fl_Comment_Type Fl_Comment_type

Definition at line 1248 of file Fl_Function_Type.cxx.

◆ Fl_Counter_type

Fl_Counter_Type Fl_Counter_type
static

Definition at line 368 of file factory.cxx.

◆ Fl_Data_type

class Fl_Data_Type Fl_Data_type

Definition at line 893 of file Fl_Function_Type.cxx.

◆ Fl_Decl_type

class Fl_Decl_Type Fl_Decl_type

Definition at line 695 of file Fl_Function_Type.cxx.

◆ Fl_DeclBlock_type

class Fl_DeclBlock_Type Fl_DeclBlock_type

Definition at line 1040 of file Fl_Function_Type.cxx.

◆ Fl_Dial_type

Fl_Dial_Type Fl_Dial_type
static

Definition at line 703 of file factory.cxx.

◆ Fl_File_Browser_type

Fl_File_Browser_Type Fl_File_Browser_type
static

Definition at line 335 of file factory.cxx.

◆ Fl_File_Input_type

Fl_File_Input_Type Fl_File_Input_type
static

Definition at line 510 of file factory.cxx.

◆ Fl_Function_type

class Fl_Function_Type Fl_Function_type

Definition at line 244 of file Fl_Function_Type.cxx.

◆ Fl_Group_type

class Fl_Group_Type Fl_Group_type

Definition at line 36 of file Fl_Group_Type.cxx.

Referenced by group_cb().

◆ Fl_Help_View_type

Fl_Help_View_Type Fl_Help_View_type
static

Definition at line 651 of file factory.cxx.

◆ Fl_Input_Choice_type

class Fl_Input_Choice_Type Fl_Input_Choice_type

Definition at line 532 of file Fl_Menu_Type.cxx.

◆ Fl_Input_type

Fl_Input_Type Fl_Input_type
static

Definition at line 468 of file factory.cxx.

◆ Fl_Light_Button_type

Fl_Light_Button_Type Fl_Light_Button_type
static

Definition at line 130 of file factory.cxx.

◆ Fl_Menu_Bar_type

class Fl_Menu_Bar_Type Fl_Menu_Bar_type

Definition at line 564 of file Fl_Menu_Type.cxx.

◆ Fl_Menu_Button_type

class Fl_Menu_Button_Type Fl_Menu_Button_type

Definition at line 524 of file Fl_Menu_Type.cxx.

◆ Fl_Menu_Item_type

class Fl_Menu_Item_Type Fl_Menu_Item_type

Definition at line 133 of file Fl_Menu_Type.cxx.

◆ Fl_Output_type

Fl_Output_Type Fl_Output_type
static

Definition at line 796 of file factory.cxx.

◆ Fl_Pack_type

class Fl_Pack_Type Fl_Pack_type

Definition at line 136 of file Fl_Group_Type.cxx.

◆ Fl_Progress_type

Fl_Progress_Type Fl_Progress_type
static

Definition at line 667 of file factory.cxx.

◆ Fl_Repeat_Button_type

Fl_Repeat_Button_Type Fl_Repeat_Button_type
static

Definition at line 112 of file factory.cxx.

◆ Fl_Return_Button_type

Fl_Return_Button_Type Fl_Return_Button_type
static

Definition at line 98 of file factory.cxx.

◆ Fl_Roller_type

Fl_Roller_Type Fl_Roller_type
static

Definition at line 723 of file factory.cxx.

◆ Fl_Round_Button_type

Fl_Round_Button_Type Fl_Round_Button_type
static

Definition at line 166 of file factory.cxx.

◆ Fl_Scroll_type

class Fl_Scroll_Type Fl_Scroll_type

Definition at line 420 of file Fl_Group_Type.cxx.

◆ Fl_Scrollbar_type

Fl_Scrollbar_Type Fl_Scrollbar_type
static

Definition at line 764 of file factory.cxx.

◆ Fl_Slider_type

Fl_Slider_Type Fl_Slider_type
static

Definition at line 747 of file factory.cxx.

◆ Fl_Spinner_type

Fl_Spinner_Type Fl_Spinner_type
static

Definition at line 411 of file factory.cxx.

◆ Fl_Submenu_type

class Fl_Submenu_Type Fl_Submenu_type

Definition at line 134 of file Fl_Menu_Type.cxx.

◆ Fl_Table_type

class Fl_Table_Type Fl_Table_type

Definition at line 218 of file Fl_Group_Type.cxx.

◆ Fl_Tabs_type

class Fl_Tabs_Type Fl_Tabs_type

Definition at line 235 of file Fl_Group_Type.cxx.

◆ Fl_Text_Display_type

Fl_Text_Display_Type Fl_Text_Display_type
static

Definition at line 552 of file factory.cxx.

◆ Fl_Text_Editor_type

Fl_Text_Editor_Type Fl_Text_Editor_type
static

Definition at line 594 of file factory.cxx.

◆ Fl_Tile_type

class Fl_Tile_Type Fl_Tile_type

Definition at line 435 of file Fl_Group_Type.cxx.

◆ Fl_Tree_type

Fl_Tree_Type Fl_Tree_type
static

Definition at line 303 of file factory.cxx.

◆ Fl_Value_Input_type

Fl_Value_Input_Type Fl_Value_Input_type
static

Definition at line 825 of file factory.cxx.

◆ Fl_Value_Output_type

Fl_Value_Output_Type Fl_Value_Output_type
static

Definition at line 865 of file factory.cxx.

◆ Fl_Value_Slider_type

Fl_Value_Slider_Type Fl_Value_Slider_type
static

Definition at line 892 of file factory.cxx.

◆ Fl_Widget_Class_type

class Fl_Widget_Class_Type Fl_Widget_Class_type

Definition at line 1434 of file Fl_Window_Type.cxx.

◆ Fl_Window_type

class Fl_Window_Type Fl_Window_type

Definition at line 503 of file Fl_Window_Type.cxx.

◆ Fl_Wizard_type

class Fl_Wizard_Type Fl_Wizard_type

Definition at line 266 of file Fl_Group_Type.cxx.

◆ input_type_menu

Fl_Menu_Item input_type_menu[]
static
Initial value:
= {
{"Normal",0,0,(void*)FL_NORMAL_INPUT},
{"Multiline",0,0,(void*)FL_MULTILINE_INPUT},
{"Secret",0,0,(void*)FL_SECRET_INPUT},
{"Int",0,0,(void*)FL_INT_INPUT},
{"Float",0,0,(void*)FL_FLOAT_INPUT},
{0}}

Definition at line 428 of file factory.cxx.

Referenced by Fl_Input_Type::subtypes().

◆ New_Menu

Fl_Menu_Item New_Menu[]

Definition at line 976 of file factory.cxx.

Referenced by fill_in_New_Menu(), Fl_Type_make(), and Fl_Window_Type::handle().

◆ output_type_menu

Fl_Menu_Item output_type_menu[]
static
Initial value:
= {
{"Normal",0,0,(void*)FL_NORMAL_OUTPUT},
{"Multiline",0,0,(void*)FL_MULTILINE_OUTPUT},
{0}}

Definition at line 769 of file factory.cxx.

Referenced by Fl_Output_Type::subtypes().

◆ pixmap

◆ reading_file

int reading_file

Definition at line 1087 of file factory.cxx.

Referenced by Fl_Type_make(), Fl_Widget_Type::make(), and Fl_Menu_Item_Type::make().

◆ roller_type_menu

Fl_Menu_Item roller_type_menu[]
static
Initial value:
= {
{"Vertical",0,0,(void*)0},
{"Horizontal",0,0,(void*) 1 },
{0}}

Definition at line 708 of file factory.cxx.

Referenced by Fl_Roller_Type::subtypes().

◆ scrollbar_type_menu

Fl_Menu_Item scrollbar_type_menu[]
static
Initial value:
= {
{"Vertical",0,0,(void*) 0 },
{"Horizontal",0,0,(void*) 1 },
{0}}

Definition at line 749 of file factory.cxx.

Referenced by Fl_Scrollbar_Type::subtypes().

◆ slider_type_menu

Fl_Menu_Item slider_type_menu[]
static
Initial value:
= {
{"Vertical",0,0,(void*) 0 },
{"Horizontal",0,0,(void*) 1 },
{"Vert Fill",0,0,(void*) 2 },
{"Horz Fill",0,0,(void*) 3 },
{"Vert Knob",0,0,(void*) 4 },
{"Horz Knob",0,0,(void*) 5 },
{0}}

Definition at line 728 of file factory.cxx.

Referenced by Fl_Slider_Type::subtypes().

◆ spinner_type_menu

Fl_Menu_Item spinner_type_menu[]
static
Initial value:
= {
{"Integer",0,0,(void*)FL_INT_INPUT},
{"Float", 0,0,(void*)FL_FLOAT_INPUT},
{0}}

Definition at line 385 of file factory.cxx.

Referenced by Fl_Spinner_Type::subtypes().

◆ table

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_NORMAL_OUTPUT
#define FL_NORMAL_OUTPUT
Definition: Fl_Input_.H:37
FL_SECRET_INPUT
#define FL_SECRET_INPUT
Definition: Fl_Input_.H:34
FL_MULTILINE_INPUT
#define FL_MULTILINE_INPUT
Definition: Fl_Input_.H:33
FL_LINE_DIAL
#define FL_LINE_DIAL
Definition: Fl_Dial.H:31
FL_FLOAT_INPUT
#define FL_FLOAT_INPUT
Definition: Fl_Input_.H:30
FL_NORMAL_INPUT
#define FL_NORMAL_INPUT
Definition: Fl_Input_.H:29
FL_SIMPLE_COUNTER
#define FL_SIMPLE_COUNTER
Definition: Fl_Counter.H:33
FL_FILL_DIAL
#define FL_FILL_DIAL
Definition: Fl_Dial.H:32
FL_MULTILINE_OUTPUT
#define FL_MULTILINE_OUTPUT
Definition: Fl_Input_.H:38
FL_RADIO_BUTTON
#define FL_RADIO_BUTTON
Definition: Fl_Button.H:34
FL_NORMAL_COUNTER
#define FL_NORMAL_COUNTER
Definition: Fl_Counter.H:32
FL_INT_INPUT
#define FL_INT_INPUT
Definition: Fl_Input_.H:31