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)  

file.cxx File Reference
#include <stdio.h>
#include <stdlib.h>
#include "../src/flstring.h"
#include <stdarg.h>
#include "alignment_panel.h"
#include <FL/Fl.H>
#include "Fl_Widget_Type.h"
#include <FL/fl_message.H>
#include <FL/Fl_Group.H>
Include dependency graph for file.cxx:

Go to the source code of this file.

Functions

int open_write (const char *s)
 
int close_write ()
 
int is_id (char)
 
void write_word (const char *w)
 
void write_string (const char *format,...)
 
void write_indent (int n)
 
void write_open (int)
 
void write_close (int n)
 
int open_read (const char *s)
 
int close_read ()
 
void read_error (const char *format,...)
 
static int hexdigit (int x)
 
static int read_quoted ()
 
static void expand_buffer (int length)
 
const char * read_word (int wantbrace)
 
int write_file (const char *filename, int selected_only)
 
void read_fdesign ()
 
Fl_TypeFl_Type_make (const char *tn)
 
static void read_children (Fl_Type *p, int paste)
 
void deselect ()
 
int read_file (const char *filename, int merge)
 
int read_fdesign_line (const char *&name, const char *&value)
 

Variables

static FILE * fout
 
static int needspace
 
static FILE * fin
 
static int lineno
 
static const char * fname
 
static char * buffer
 
static int buflen
 
int i18n_type
 
const char * i18n_include
 
const char * i18n_function
 
const char * i18n_file
 
const char * i18n_set
 
int header_file_set
 
int code_file_set
 
const char * header_file_name
 
const char * code_file_name
 
double read_version
 
int fdesign_flip
 
int fdesign_magic
 
static const char * class_matcher []
 

Function Documentation

◆ close_read()

int close_read ( )

Definition at line 140 of file file.cxx.

References fin, and x.

Referenced by read_file().

◆ close_write()

int close_write ( )

Definition at line 45 of file file.cxx.

References fout, and x.

Referenced by write_file().

◆ deselect()

void deselect ( )

Definition at line 249 of file Fl_Type.cxx.

Referenced by Fl_Tree_Item::deselect_all(), read_file(), and Fl_Tree_Item::select_toggle().

◆ expand_buffer()

static void expand_buffer ( int  length)
static

Definition at line 217 of file file.cxx.

References buffer, buflen, length, and malloc().

Referenced by read_fdesign_line(), and read_word().

◆ Fl_Type_make()

Fl_Type* Fl_Type_make ( const char *  tn)

Definition at line 1088 of file factory.cxx.

Referenced by read_children(), and read_fdesign().

◆ hexdigit()

static int hexdigit ( int  x)
static

Definition at line 166 of file file.cxx.

References x.

Referenced by read_quoted().

◆ is_id()

int is_id ( char  )

Definition at line 40 of file code.cxx.

Referenced by write_word().

◆ open_read()

int open_read ( const char *  s)

Definition at line 130 of file file.cxx.

References f, fin, fl_fopen(), fname, and lineno.

Referenced by read_file().

◆ open_write()

int open_write ( const char *  s)

Definition at line 37 of file file.cxx.

References f, fl_fopen(), and fout.

Referenced by write_file().

◆ read_children()

◆ read_error()

void read_error ( const char *  format,
  ... 
)

◆ read_fdesign()

◆ read_fdesign_line()

int read_fdesign_line ( const char *&  name,
const char *&  value 
)

Definition at line 512 of file file.cxx.

References buffer, expand_buffer(), fin, length, name, read_quoted(), and x.

Referenced by read_fdesign().

◆ read_file()

◆ read_quoted()

static int read_quoted ( )
static

Definition at line 174 of file file.cxx.

References fin, hexdigit(), lineno, and x.

Referenced by read_fdesign_line(), and read_word().

◆ read_word()

◆ write_close()

void write_close ( int  n)

Definition at line 117 of file file.cxx.

References fout, needspace, and write_indent().

Referenced by Fl_Type::write().

◆ write_file()

◆ write_indent()

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().

◆ write_open()

void write_open ( int  )

Definition at line 110 of file file.cxx.

References fout, and needspace.

Referenced by Fl_Type::write().

◆ write_string()

◆ write_word()

Variable Documentation

◆ buffer

◆ buflen

◆ class_matcher

const char* class_matcher[]
static
Initial value:
= {
"FL_CHECKBUTTON", "Fl_Check_Button",
"FL_ROUNDBUTTON", "Fl_Round_Button",
"FL_ROUND3DBUTTON", "Fl_Round_Button",
"FL_LIGHTBUTTON", "Fl_Light_Button",
"FL_FRAME", "Fl_Box",
"FL_LABELFRAME", "Fl_Box",
"FL_TEXT", "Fl_Box",
"FL_VALSLIDER", "Fl_Value_Slider",
"FL_MENU", "Fl_Menu_Button",
"3", "FL_BITMAP",
"1", "FL_BOX",
"71","FL_BROWSER",
"11","FL_BUTTON",
"4", "FL_CHART",
"42","FL_CHOICE",
"61","FL_CLOCK",
"25","FL_COUNTER",
"22","FL_DIAL",
"101","FL_FREE",
"31","FL_INPUT",
"12","Fl_Light_Button",
"41","FL_MENU",
"23","FL_POSITIONER",
"13","Fl_Round_Button",
"21","FL_SLIDER",
"2", "FL_BOX",
"62","FL_TIMER",
"24","Fl_Value_Slider",
0}

Definition at line 554 of file file.cxx.

Referenced by read_fdesign().

◆ code_file_name

const char* code_file_name

Definition at line 701 of file fluid.cxx.

Referenced by read_children(), ExternalCodeEditor::tmp_filename(), and write_file().

◆ code_file_set

int code_file_set

Definition at line 699 of file fluid.cxx.

Referenced by arg(), and read_children().

◆ fdesign_flip

int fdesign_flip

Definition at line 550 of file file.cxx.

Referenced by Fl_Widget_Type::read_fdesign(), and read_fdesign().

◆ fdesign_magic

int fdesign_magic

Definition at line 551 of file file.cxx.

Referenced by read_fdesign().

◆ fin

FILE* fin
static

Definition at line 126 of file file.cxx.

Referenced by close_read(), open_read(), read_error(), read_fdesign_line(), read_quoted(), and read_word().

◆ fname

◆ fout

FILE* fout
static

◆ header_file_name

const char* header_file_name

Definition at line 700 of file fluid.cxx.

Referenced by read_children(), and write_file().

◆ header_file_set

int header_file_set

Definition at line 698 of file fluid.cxx.

Referenced by arg(), and read_children().

◆ i18n_file

const char* i18n_file

Definition at line 705 of file fluid.cxx.

Referenced by read_children(), and write_file().

◆ i18n_function

const char* i18n_function

Definition at line 704 of file fluid.cxx.

Referenced by read_children(), and write_file().

◆ i18n_include

const char* i18n_include

Definition at line 703 of file fluid.cxx.

Referenced by read_children(), and write_file().

◆ i18n_set

const char* i18n_set

Definition at line 706 of file fluid.cxx.

Referenced by read_children(), and write_file().

◆ i18n_type

int i18n_type

Definition at line 702 of file fluid.cxx.

Referenced by read_children(), and write_file().

◆ lineno

int lineno
static

Definition at line 127 of file file.cxx.

Referenced by open_read(), read_error(), read_quoted(), and read_word().

◆ needspace

◆ read_version

double read_version

Definition at line 355 of file file.cxx.

Referenced by read_children(), read_file(), and Fl_Widget_Type::read_property().