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.
![]() ![]() |
#include <FL/Fl_Widget.H>
#include <FL/Fl_Menu.H>
#include <FL/Fl_Plugin.H>
#include "Fluid_Image.h"
#include <FL/fl_draw.H>
#include <stdarg.h>
#include "ExternalCodeEditor_UNIX.h"
#include <FL/Fl_Tabs.H>
#include <FL/Fl_Pack.H>
#include <FL/Fl_Wizard.H>
#include <FL/Fl_Menu_.H>
#include <FL/Fl_Menu_Button.H>
#include <FL/Fl_Choice.H>
#include <FL/Fl_Input_Choice.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Menu_Bar.H>
Go to the source code of this file.
Classes | |
class | Fl_Type |
class | Fl_Function_Type |
class | Fl_Code_Type |
class | Fl_CodeBlock_Type |
class | Fl_Decl_Type |
class | Fl_Data_Type |
class | Fl_DeclBlock_Type |
class | Fl_Comment_Type |
class | Fl_Class_Type |
class | Fl_Widget_Type |
class | igroup |
class | itabs |
class | iwizard |
class | Fl_Group_Type |
class | Fl_Pack_Type |
class | Fl_Table_Type |
class | Fl_Tabs_Type |
class | Fl_Scroll_Type |
class | Fl_Tile_Type |
class | Fl_Wizard_Type |
class | Fl_Window_Type |
class | Fl_Widget_Class_Type |
class | Fl_Menu_Item_Type |
class | Fl_Submenu_Type |
class | Fl_Menu_Type |
class | Fl_Menu_Button_Type |
class | Fl_Choice_Type |
class | Fl_Input_Choice_Type |
class | Fl_Menu_Bar_Type |
class | Fl_Commandline_Plugin |
Macros | |
#define | NUM_EXTRA_CODE 4 |
#define | __fl_attr(x) |
Functions | |
void | set_modflag (int mf) |
Fl_Widget * | make_widget_browser (int X, int Y, int W, int H) |
void | redraw_widget_browser (Fl_Type *) |
void | delete_all (int selected_only=0) |
void | selection_changed (Fl_Type *new_current) |
void | reveal_in_browser (Fl_Type *) |
int | has_toplevel_function (const char *rtype, const char *sig) |
void | write_word (const char *) |
void | write_string (const char *,...) |
int | write_file (const char *, int selected_only=0) |
int | write_code (const char *cfile, const char *hfile) |
int | write_strings (const char *sfile) |
int | write_declare (const char *,...) |
int | is_id (char) |
const char * | unique_id (void *o, const char *, const char *, const char *) |
void | write_c (const char *,...) |
void | vwrite_c (const char *format, va_list args) |
void | write_h (const char *,...) |
void | write_cstring (const char *) |
void | write_cstring (const char *, int length) |
void | write_cdata (const char *, int length) |
void | write_indent (int n) |
void | write_open (int) |
void | write_close (int n) |
void | write_public (int state) |
const char * | indent () |
int | read_file (const char *, int merge) |
const char * | read_word (int wantbrace=0) |
void | read_error (const char *format,...) |
const char * | c_check (const char *c, int type=0) |
int | storestring (const char *n, const char *&p, int nostrip=0) |
Variables | |
const char | pack_type_name [] |
Fl_Menu_Item | pack_type_menu [] |
const char | table_type_name [] |
const char | tabs_type_name [] |
const char | scroll_type_name [] |
Fl_Menu_Item | scroll_type_menu [] |
const char | tile_type_name [] |
const char | wizard_type_name [] |
Fl_Menu_Item | window_type_menu [] |
Fl_Menu_Item | menu_item_type_menu [] |
Fl_Menu_Item | button_type_menu [] |
Fl_Menu_Item | dummymenu [] |
int | modflag |
int | write_number |
int | write_sourceview |
int | indentation |
int | include_H_from_C |
int | use_FL_COMMAND |
Definition at line 121 of file Fl_Function_Type.cxx.
References _c_check().
Referenced by callback_cb(), comment_cb(), Fl_Function_Type::open(), Fl_Code_Type::open(), Fl_CodeBlock_Type::open(), Fl_Decl_Type::open(), Fl_DeclBlock_Type::open(), Fl_Class_Type::open(), user_data_cb(), user_data_type_cb(), and v_input_cb().
void delete_all | ( | int | selected_only = 0 | ) |
Definition at line 833 of file Fl_Type.cxx.
References delete_children(), f, Fl_Type::first, include_H_from_C, selection_changed(), and use_FL_COMMAND.
Referenced by cut_cb(), delete_cb(), exit_cb(), new_cb(), and read_file().
Return 1 if the list contains a function with the given signature at the top level.
Definition at line 989 of file Fl_Type.cxx.
References Fl_Type::first, Fl_Function_Type::has_signature(), Fl_Type::is_in_class(), Fl_Type::next, and Fl_Type::type_name().
Referenced by Fl_Widget_Type::write_static().
const char* indent | ( | ) |
Definition at line 99 of file code.cxx.
References indentation, and spaces.
Referenced by main(), Fl_Text_Display::overstrike(), fl_margins::push(), Fl_Tree_Item::show_self(), Fl_Widget_Type::write_block_close(), Fluid_Image::write_code(), Fl_Code_Type::write_code1(), Fl_CodeBlock_Type::write_code1(), Fl_Widget_Type::write_code1(), Fl_Menu_Item_Type::write_code1(), Fl_CodeBlock_Type::write_code2(), Fl_Group_Type::write_code2(), Fl_Window_Type::write_code2(), Fl_Widget_Class_Type::write_code2(), Fl_Menu_Type::write_code2(), Fl_Widget_Type::write_color(), Fl_Type::write_comment_inline_c(), Fl_Widget_Type::write_extra_code(), and Fl_Widget_Type::write_widget_code().
int is_id | ( | char | ) |
Definition at line 40 of file code.cxx.
Referenced by Fl_Class_Type::open(), unique_id(), Fl_Widget_Type::write_static(), and Fl_Menu_Item_Type::write_static().
Fl_Widget* make_widget_browser | ( | int | X, |
int | Y, | ||
int | W, | ||
int | H | ||
) |
Definition at line 228 of file Fl_Type.cxx.
References Fl_Type::Widget_Browser, widget_browser, x, and y.
Referenced by make_main_window().
void read_error | ( | const char * | format, |
... | |||
) |
Definition at line 151 of file file.cxx.
References buffer, fin, fl_message(), fname, lineno, and vsnprintf.
Referenced by Fluid_Image::find(), read_children(), Fl_Type::read_property(), Fl_Widget_Type::read_property(), and read_word().
int read_file | ( | const char * | , |
int | merge | ||
) |
Definition at line 493 of file file.cxx.
References Fl_Type::add_child(), close_read(), Fl_Type::current, delete_all(), deselect(), filename, Fl_Type::first, Fl_Type::is_menu_button(), Fl_Type::next, open_read(), read_children(), read_version, Fl_Type::selected, and selection_changed().
Referenced by duplicate_cb(), main(), new_cb(), open_cb(), open_history_cb(), paste_cb(), redo_cb(), revert_cb(), and undo_cb().
const char* read_word | ( | int | wantbrace = 0 | ) |
Definition at line 230 of file file.cxx.
References buffer, expand_buffer(), fin, length, lineno, read_error(), read_quoted(), and x.
Referenced by read_children(), read_fdesign(), Fl_Type::read_property(), Fl_Function_Type::read_property(), Fl_CodeBlock_Type::read_property(), Fl_Data_Type::read_property(), Fl_DeclBlock_Type::read_property(), Fl_Class_Type::read_property(), Fl_Widget_Type::read_property(), and Fl_Window_Type::read_property().
void redraw_widget_browser | ( | Fl_Type * | ) |
Definition at line 232 of file Fl_Type.cxx.
References Fl_Browser_::display(), Fl_Widget::redraw(), and widget_browser.
void reveal_in_browser | ( | Fl_Type * | t | ) |
Make sure that the given item is visible in the browser by opening all parent groups and moving the item into the visible space.
Definition at line 1082 of file Fl_Type.cxx.
References Fl_Browser_::display(), fixvisible(), p, Fl_Type::parent, redraw_browser(), and widget_browser.
Referenced by Fl_Window_Type::handle().
void selection_changed | ( | Fl_Type * | new_current | ) |
Definition at line 1921 of file Fl_Widget_Type.cxx.
References check_redraw_corresponding_parent(), Fl_Type::current, Fl_Type::first, haderror, load_panel(), Fl_Type::new_selected, Fl_Type::next, p, redraw_browser(), redraw_overlays(), Fl_Type::selected, set_cb(), the_panel, update_sourceview_position(), and Fl_Widget::visible().
Referenced by Widget_Browser::callback(), delete_all(), read_file(), Fl_Type::remove(), select_all_cb(), and select_none_cb().
void set_modflag | ( | int | mf | ) |
Definition at line 1687 of file fluid.cxx.
References Fl_Menu_Item::activate(), Fl::add_timeout(), Fl_Menu_Item::deactivate(), filename, FL_PATH_MAX, Fl_Window::label(), main_window, modflag, NULL, Fl::remove_timeout(), save_item, snprintf, sourceview_panel, sv_autorefresh, title, update_sourceview_timer(), Fl_Button::value(), and Fl_Widget::visible().
Referenced by active_cb(), Fl_Type::add(), align_cb(), align_position_cb(), align_text_image_cb(), align_widget_cb(), border_cb(), box_cb(), callback_cb(), cb(), Fl_Tabs_Type::click_test(), code_input_cb(), color2_cb(), color_cb(), comment_cb(), cut_cb(), delete_cb(), down_box_cb(), earlier_cb(), external_editor_timer(), h_cb(), header_input_cb(), hotspot_cb(), i18n_int_cb(), i18n_text_cb(), i18n_type_cb(), image_browse_cb(), image_cb(), inactive_browse_cb(), inactive_cb(), include_H_from_C_button_cb(), label_cb(), labelcolor_cb(), labelfont_cb(), labelsize_cb(), labeltype_cb(), later_cb(), main(), max_cb(), max_h_cb(), max_w_cb(), min_cb(), min_h_cb(), min_w_cb(), modal_cb(), Fl_Window_Type::moveallchildren(), name_public_cb(), name_public_member_cb(), new_cb(), non_modal_cb(), Fl_Function_Type::open(), Fl_Decl_Type::open(), Fl_Data_Type::open(), Fl_DeclBlock_Type::open(), Fl_Comment_Type::open(), Fl_Class_Type::open(), open_cb(), open_history_cb(), redo_cb(), resizable_cb(), Overlay_Window::resize(), revert_cb(), save_cb(), set_filename(), set_max_size_cb(), set_min_size_cb(), shortcut_in_cb(), slider_size_cb(), step_cb(), storestring(), subclass_cb(), subtype_cb(), textcolor_cb(), textfont_cb(), textsize_cb(), tooltip_cb(), type_make_cb(), undo_cb(), use_FL_COMMAND_button_cb(), user_data_cb(), user_data_type_cb(), v_input_cb(), value_cb(), visible_cb(), w_cb(), wc_relative_cb(), when_button_cb(), when_cb(), widget_size_cb(), x_cb(), xclass_cb(), and y_cb().
Definition at line 670 of file Fl_Type.cxx.
References free(), length, malloc(), p, set_modflag(), strlcpy, and undo_checkpoint().
Referenced by Fl_Type::callback(), Fl_Type::comment(), Fl_Widget_Type::extra_code(), Fl_Widget_Type::image_name(), Fl_Widget_Type::inactive_name(), Fl_Type::label(), Fl_Type::name(), Fl_Function_Type::open(), Fl_CodeBlock_Type::open(), Fl_DeclBlock_Type::open(), Fl_Class_Type::open(), Fl_Function_Type::read_property(), Fl_CodeBlock_Type::read_property(), Fl_Data_Type::read_property(), Fl_DeclBlock_Type::read_property(), Fl_Class_Type::read_property(), Fl_Window_Type::read_property(), Fl_Widget_Type::subclass(), Fl_Widget_Type::tooltip(), Fl_Type::user_data(), Fl_Type::user_data_type(), and xclass_cb().
Definition at line 63 of file code.cxx.
References buffer, id_root, is_id(), name, and p.
Referenced by Fl_Type::callback_name(), Fl_Menu_Item_Type::menu_name(), Fl_Menu_Type::write_code2(), and Fluid_Image::write_static().
void vwrite_c | ( | const char * | format, |
va_list | args | ||
) |
Definition at line 257 of file code.cxx.
References code_file, varused, and varused_test.
Referenced by write_c(), and Fluid_Image::write_initializer().
void write_c | ( | const char * | , |
... | |||
) |
Definition at line 265 of file code.cxx.
References vwrite_c().
Referenced by Fl_Widget_Type::write_block_close(), Fluid_Image::write_code(), write_code(), Fl_Type::write_code1(), Fl_Function_Type::write_code1(), Fl_Code_Type::write_code1(), Fl_CodeBlock_Type::write_code1(), Fl_Decl_Type::write_code1(), Fl_Data_Type::write_code1(), Fl_DeclBlock_Type::write_code1(), Fl_Comment_Type::write_code1(), Fl_Widget_Type::write_code1(), Fl_Widget_Class_Type::write_code1(), Fl_Menu_Item_Type::write_code1(), Fl_Function_Type::write_code2(), Fl_CodeBlock_Type::write_code2(), Fl_DeclBlock_Type::write_code2(), Fl_Group_Type::write_code2(), Fl_Window_Type::write_code2(), Fl_Widget_Class_Type::write_code2(), Fl_Menu_Type::write_code2(), Fl_Widget_Type::write_color(), Fl_Type::write_comment_c(), Fl_Type::write_comment_inline_c(), Fl_Widget_Type::write_extra_code(), Fluid_Image::write_initializer(), Fl_Menu_Item_Type::write_item(), Fluid_Image::write_static(), Fl_Widget_Type::write_static(), Fl_Menu_Item_Type::write_static(), and Fl_Widget_Type::write_widget_code().
void write_cdata | ( | const char * | , |
int | length | ||
) |
Definition at line 225 of file code.cxx.
References code_file, length, varused, varused_test, and write_sourceview.
Referenced by Fl_Data_Type::write_code1(), and Fluid_Image::write_static().
void write_close | ( | int | n | ) |
Definition at line 117 of file file.cxx.
References fout, needspace, and write_indent().
Referenced by Fl_Type::write().
Definition at line 342 of file code.cxx.
References b, code_file, Fl_Type::code_position, Fl_Type::code_position_end, current_class, current_widget_class, f, Fl_Type::first, fl_filename_name(), fl_fopen(), FL_VERSION, header_file, header_file_name, Fl_Type::header_position, Fl_Type::header_position_end, i18n_file, i18n_include, i18n_program, i18n_type, id_root, include_H_from_C, included_root, indentation, Fl_Type::is_comment(), Fl_Type::last, Fl_Type::next, NULL, p, write_c(), write_code(), Fl_Type::write_code1(), write_declare(), write_number, write_sourceview, x, and y.
void write_cstring | ( | const char * | ) |
Definition at line 222 of file code.cxx.
References write_cstring().
void write_cstring | ( | const char * | , |
int | length | ||
) |
Definition at line 154 of file code.cxx.
References code_file, length, p, varused, and varused_test.
Referenced by Fl_Widget_Type::write_code1(), Fl_Widget_Class_Type::write_code1(), Fl_Window_Type::write_code2(), Fl_Widget_Class_Type::write_code2(), write_cstring(), Fl_Menu_Item_Type::write_item(), Fluid_Image::write_static(), and Fl_Widget_Type::write_widget_code().
int write_declare | ( | const char * | , |
... | |||
) |
Definition at line 127 of file code.cxx.
References buf, header_file, included_root, p, and vsnprintf.
Referenced by write_code(), Fl_Widget_Type::write_static(), and Fl_Menu_Item_Type::write_static().
int write_file | ( | const char * | , |
int | selected_only = 0 |
||
) |
Definition at line 312 of file file.cxx.
References close_write(), code_file_name, filename, Fl_Type::first, FL_VERSION, header_file_name, i18n_file, i18n_function, i18n_include, i18n_set, i18n_type, include_H_from_C, open_write(), p, use_FL_COMMAND, write_string(), and write_word().
Referenced by copy_cb(), cut_cb(), duplicate_cb(), main(), save_cb(), save_template_cb(), undo_cb(), and undo_checkpoint().
void write_h | ( | const char * | , |
... | |||
) |
Definition at line 272 of file code.cxx.
References header_file, and varused_test.
Referenced by write_code(), Fl_Type::write_code1(), Fl_Function_Type::write_code1(), Fl_Decl_Type::write_code1(), Fl_Data_Type::write_code1(), Fl_DeclBlock_Type::write_code1(), Fl_Comment_Type::write_code1(), Fl_Class_Type::write_code1(), Fl_Widget_Type::write_code1(), Fl_Widget_Class_Type::write_code1(), Fl_Menu_Item_Type::write_code1(), Fl_DeclBlock_Type::write_code2(), Fl_Class_Type::write_code2(), Fl_Type::write_comment_h(), write_public(), and Fl_Widget_Type::write_static().
void write_indent | ( | int | n | ) |
Definition at line 103 of file file.cxx.
References fout, and needspace.
Referenced by Fl_Type::write(), write_close(), Fl_Type::write_properties(), and Fl_Widget_Type::write_properties().
void write_open | ( | int | ) |
Definition at line 110 of file file.cxx.
References fout, and needspace.
Referenced by Fl_Type::write().
void write_public | ( | int | state | ) |
Definition at line 1447 of file Fl_Function_Type.cxx.
References current_class, current_widget_class, state, write_h(), Fl_Class_Type::write_public_state, and Fl_Widget_Class_Type::write_public_state.
Referenced by Fl_Function_Type::write_code1(), Fl_Decl_Type::write_code1(), Fl_Data_Type::write_code1(), Fl_Widget_Type::write_code1(), and Fl_Menu_Item_Type::write_code1().
void write_string | ( | const char * | , |
... | |||
) |
Definition at line 93 of file file.cxx.
References fout, and needspace.
Referenced by write_file(), Fl_Function_Type::write_properties(), Fl_CodeBlock_Type::write_properties(), Fl_Decl_Type::write_properties(), Fl_Data_Type::write_properties(), Fl_DeclBlock_Type::write_properties(), Fl_Comment_Type::write_properties(), Fl_Class_Type::write_properties(), Fl_Widget_Type::write_properties(), Fl_Window_Type::write_properties(), and Fl_Widget_Class_Type::write_properties().
int write_strings | ( | const char * | sfile | ) |
Definition at line 466 of file code.cxx.
References Fl_Type::first, fl_fopen(), FL_VERSION, i18n_set, i18n_type, Fl_Type::label(), p, and Fl_Widget_Type::tooltip().
Referenced by write_strings_cb().
void write_word | ( | const char * | ) |
Definition at line 58 of file file.cxx.
References fout, is_id(), needspace, and p.
Referenced by Fl_Type::write(), write_file(), Fl_Type::write_properties(), Fl_Function_Type::write_properties(), Fl_CodeBlock_Type::write_properties(), Fl_Data_Type::write_properties(), Fl_DeclBlock_Type::write_properties(), Fl_Class_Type::write_properties(), Fl_Widget_Type::write_properties(), and Fl_Window_Type::write_properties().
Fl_Menu_Item button_type_menu[] |
Definition at line 513 of file Fl_Menu_Type.cxx.
Referenced by Fl_Menu_Button_Type::subtypes().
Fl_Menu_Item dummymenu[] |
Definition at line 528 of file Fl_Menu_Type.cxx.
Referenced by Fl_Choice_Type::widget(), and Fl_Input_Choice_Type::widget().
int include_H_from_C |
Definition at line 42 of file Fl_Window_Type.cxx.
Referenced by delete_all(), include_H_from_C_button_cb(), read_children(), show_project_cb(), write_code(), and write_file().
int indentation |
Definition at line 98 of file code.cxx.
Referenced by indent(), Fl_Widget_Type::write_block_close(), write_code(), Fl_Function_Type::write_code1(), Fl_CodeBlock_Type::write_code1(), Fl_Widget_Type::write_code1(), Fl_Function_Type::write_code2(), and Fl_CodeBlock_Type::write_code2().
Fl_Menu_Item menu_item_type_menu[] |
Definition at line 37 of file Fl_Menu_Type.cxx.
Referenced by Fl_Menu_Item_Type::subtypes().
int modflag |
Definition at line 122 of file fluid.cxx.
Referenced by exit_cb(), new_cb(), open_cb(), open_history_cb(), revert_cb(), set_filename(), set_modflag(), undo_checkpoint(), and undo_clear().
Fl_Menu_Item pack_type_menu[] |
Definition at line 131 of file Fl_Group_Type.cxx.
Referenced by Fl_Pack_Type::subtypes().
const char pack_type_name[] |
Definition at line 129 of file Fl_Group_Type.cxx.
Referenced by Fl_Pack_Type::type_name().
Fl_Menu_Item scroll_type_menu[] |
Definition at line 411 of file Fl_Group_Type.cxx.
Referenced by Fl_Scroll_Type::subtypes().
const char scroll_type_name[] |
Definition at line 393 of file Fl_Group_Type.cxx.
Referenced by Fl_Scroll_Type::type_name().
const char table_type_name[] |
Definition at line 216 of file Fl_Group_Type.cxx.
Referenced by Fl_Table_Type::type_name().
const char tabs_type_name[] |
Definition at line 227 of file Fl_Group_Type.cxx.
Referenced by color_cb(), and Fl_Tabs_Type::type_name().
const char tile_type_name[] |
Definition at line 433 of file Fl_Group_Type.cxx.
Referenced by Fl_Tile_Type::type_name().
int use_FL_COMMAND |
Definition at line 43 of file Fl_Window_Type.cxx.
Referenced by delete_all(), Shortcut_Button::draw(), read_children(), show_project_cb(), use_FL_COMMAND_button_cb(), write_file(), Fl_Menu_Item_Type::write_item(), and Fl_Widget_Type::write_widget_code().
Fl_Menu_Item window_type_menu[] |
Definition at line 271 of file Fl_Window_Type.cxx.
Referenced by Fl_Window_Type::subtypes().
const char wizard_type_name[] |
Definition at line 258 of file Fl_Group_Type.cxx.
Referenced by Fl_Wizard_Type::type_name().
int write_number |
Definition at line 281 of file code.cxx.
Referenced by write_code(), Fluid_Image::write_static(), Fl_Widget_Type::write_static(), and Fl_Menu_Item_Type::write_static().
int write_sourceview |
Definition at line 282 of file code.cxx.
Referenced by update_sourceview_cb(), write_cdata(), write_code(), and Fl_Data_Type::write_code1().