Back to index

texmacs  1.0.7.15
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Events | Friends
edit_interface_rep Class Reference

#include <edit_interface.hpp>

Inheritance diagram for edit_interface_rep:
Inheritance graph
[legend]
Collaboration diagram for edit_interface_rep:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 edit_interface_rep ()
 ~edit_interface_rep ()
 operator tree ()
void suspend ()
void resume ()
void get_size (SI &wx, SI &wy)
int get_pixel_size ()
void set_shrinking_factor (int sf)
void invalidate (SI x1, SI y1, SI x2, SI y2)
void invalidate (rectangles rs)
void update_visible ()
SI get_window_height ()
void scroll_to (SI x, SI y1)
void set_extents (SI x1, SI y1, SI x2, SI y2)
void draw_text (renderer ren, rectangles &l)
void draw_surround (renderer ren, rectangle r)
void draw_context (renderer ren, rectangle r)
void draw_env (renderer ren)
void draw_cursor (renderer ren)
void draw_selection (renderer ren)
void draw_graphics (renderer ren)
void draw_pre (renderer ren, rectangle r)
void draw_post (renderer ren, rectangle r)
void draw_with_shadow (rectangle r)
void draw_with_stored (rectangle r)
void notify_change (int changed)
bool has_changed (int question)
int idle_time (int event_type=ANY_EVENT)
int change_time ()
void apply_changes ()
void animate ()
void compute_env_rects (path p, rectangles &rs, bool recurse)
void cursor_visible ()
void selection_visible ()
void full_screen_mode (bool flag)
void before_menu_action ()
void after_menu_action ()
cursor search_cursor (path p)
selection search_selection (path start, path end)
rectangle get_window_extents ()
int get_input_mode ()
void set_input_mode (int mode)
void set_input_normal ()
bool in_normal_mode ()
bool in_search_mode ()
bool in_replace_mode ()
bool in_spell_mode ()
bool kbd_get_command (string which, string &help, command &cmd)
void interrupt_shortcut ()
bool try_shortcut (string comb)
tree kbd (string s)
tree kbd_shortcut (string s)
void key_press (string key)
void emulate_keyboard (string keys, string action="")
bool complete_try ()
void complete_message ()
void complete_start (string prefix, array< string > compls)
bool complete_keypress (string key)
string session_complete_command (tree t)
void custom_complete (tree t)
void mouse_any (string s, SI x, SI y, int mods, time_t t)
void mouse_click (SI x, SI y)
bool mouse_extra_click (SI x, SI y)
void mouse_drag (SI x, SI y)
void mouse_select (SI x, SI y, int mods, bool drag)
void mouse_paste (SI x, SI y)
void mouse_adjust (SI x, SI y)
void mouse_scroll (SI x, SI y, bool up)
cursor get_cursor ()
void set_pointer (string name)
void set_pointer (string curs_name, string mask_name)
void update_active_loci ()
tree compute_text_footer (tree st)
tree compute_operation_footer (tree st)
tree compute_compound_footer (tree t, path p)
bool set_latex_footer (tree st)
bool set_hybrid_footer (tree st)
void set_left_footer (tree l)
void append_left_footer (tree &l, string env_var)
void set_left_footer ()
void set_right_footer (tree r)
void set_right_footer ()
void set_footer ()
void set_message (tree l, tree r="", bool temp=false)
void recall_message ()
void handle_get_size_hint (SI &w, SI &h)
void handle_notify_resize (SI w, SI h)
void handle_keypress (string key, time_t t)
void handle_keyboard_focus (bool has_focus, time_t t)
void handle_mouse (string kind, SI x, SI y, int mods, time_t t)
void handle_set_shrinking_factor (int sf)
void handle_clear (SI x1, SI y1, SI x2, SI y2)
void handle_repaint (SI x1, SI y1, SI x2, SI y2)
virtual void table_del_format (string var="")=0
virtual path make_cursor_accessible (path p, bool forwards)=0
virtual void show_cursor_if_hidden ()=0
virtual void go_to (SI x, SI y, bool absolute=true)=0
virtual void go_to (path p)=0
virtual void go_left_physical ()=0
virtual void go_right_physical ()=0
virtual void go_left ()=0
virtual void go_right ()=0
virtual void go_up ()=0
virtual void go_down ()=0
virtual void go_start_line ()=0
virtual void go_end_line ()=0
virtual void go_page_up ()=0
virtual void go_page_down ()=0
virtual void go_to_correct (path p)=0
virtual void go_to_start (path p)=0
virtual void go_to_end (path p)=0
virtual void go_to_border (path p, bool at_start)=0
virtual void go_to_here ()=0
virtual void go_start ()=0
virtual void go_end ()=0
virtual void go_start_of (tree_label what)=0
virtual void go_end_of (tree_label what)=0
virtual void go_start_with (string var, string val)=0
virtual void go_end_with (string var, string val)=0
virtual void go_start_paragraph ()=0
virtual void go_end_paragraph ()=0
virtual void go_to_label (string s)=0
virtual tree get_labels ()=0
virtual bool inside_graphics (bool b=true)=0
virtual bool inside_active_graphics (bool b=true)=0
virtual bool over_graphics (SI x, SI y)=0
virtual tree get_graphics ()=0
virtual double get_x ()=0
virtual double get_y ()=0
virtual frame find_frame (bool last=false)=0
virtual grid find_grid ()=0
virtual void find_limits (point &lim1, point &lim2)=0
virtual bool find_graphical_region (SI &x1, SI &y1, SI &x2, SI &y2)=0
virtual point adjust (point p)=0
virtual tree find_point (point p)=0
virtual tree graphical_select (double x, double y)=0
virtual tree graphical_select (double x1, double y1, double x2, double y2)=0
virtual tree get_graphical_object ()=0
virtual void set_graphical_object (tree t)=0
virtual void invalidate_graphical_object ()=0
virtual void draw_graphical_object (renderer ren)=0
virtual bool mouse_graphics (string s, SI x, SI y, int mods, time_t t)=0
virtual void clear_local_info ()=0
virtual void set_data (new_data data)=0
virtual void get_data (new_data &data)=0
virtual SI as_length (string l)=0
virtual string add_lengths (string l1, string l2)=0
virtual string multiply_length (double x, string l)=0
virtual bool is_length (string s)=0
virtual double divide_lengths (string l1, string l2)=0
virtual void drd_update ()=0
virtual bool defined_at_cursor (string var_name)=0
virtual bool defined_at_init (string var_name)=0
virtual bool defined_in_init (string var_name)=0
virtual tree get_env_value (string var_name, path p)=0
virtual tree get_env_value (string var_name)=0
virtual tree get_init_value (string var_name)=0
virtual string get_env_string (string var_name)=0
virtual string get_init_string (string var_name)=0
virtual int get_env_int (string var_name)=0
virtual int get_init_int (string var_name)=0
virtual double get_env_double (string var_name)=0
virtual double get_init_double (string var_name)=0
virtual language get_env_language ()=0
virtual tree exec_texmacs (tree t, path p)=0
virtual tree exec_texmacs (tree t)=0
virtual tree exec_verbatim (tree t, path p)=0
virtual tree exec_verbatim (tree t)=0
virtual tree exec_html (tree t, path p)=0
virtual tree exec_html (tree t)=0
virtual tree exec_latex (tree t, path p)=0
virtual tree exec_latex (tree t)=0
virtual tree texmacs_exec (tree t)=0
virtual tree get_style ()=0
virtual void set_style (tree t)=0
virtual void init_style ()=0
virtual void init_style (string style)=0
virtual void init_add_package (string package)=0
virtual void init_remove_package (string package)=0
virtual void init_env (string var, tree by)=0
virtual void init_default (string var)=0
virtual void typeset_invalidate (path p)=0
virtual void typeset_invalidate_all ()=0
virtual void notify_assign (path p, tree u)=0
virtual void notify_insert (path p, tree u)=0
virtual void notify_remove (path p, int nr)=0
virtual void notify_split (path p)=0
virtual void notify_join (path p)=0
virtual void notify_assign_node (path p, tree_label op)=0
virtual void notify_insert_node (path p, tree t)=0
virtual void notify_remove_node (path p)=0
virtual void notify_set_cursor (path p, tree data)=0
virtual void post_notify (path p)=0
virtual void clear_undo_history ()=0
virtual double this_author ()=0
virtual void archive_state ()=0
virtual void start_editing ()=0
virtual void end_editing ()=0
virtual void start_slave (double a)=0
virtual void mark_start (double a)=0
virtual bool mark_cancel (double a)=0
virtual void mark_end (double a)=0
virtual void add_undo_mark ()=0
virtual void remove_undo_mark ()=0
virtual int undo_possibilities ()=0
virtual void unredoable_undo ()=0
virtual void undo (int i=0)=0
virtual int redo_possibilities ()=0
virtual void redo (int i=0)=0
virtual void require_save ()=0
virtual void notify_save (bool real_save=true)=0
virtual bool need_save (bool real_save=true)=0
virtual void show_history ()=0
virtual observer position_new (path p)=0
virtual void position_delete (observer o)=0
virtual void position_set (observer o, path p)=0
virtual path position_get (observer o)=0
virtual void correct (path p)=0
virtual void correct_concat (path p, int done=0)=0
virtual bool insert_return ()=0
virtual void remove_return (path p)=0
virtual void insert_tree (tree t, path p_in_t)=0
virtual void insert_tree (tree t)=0
virtual void var_insert_tree (tree t, path p_in_t)=0
virtual void remove_text (bool forward)=0
virtual void remove_structure (bool forward)=0
virtual void remove_structure_upwards ()=0
virtual void make_space (tree t)=0
virtual void make_space (string w)=0
virtual void make_space (string w, string y1, string y2)=0
virtual void make_hspace (string s)=0
virtual void make_hspace (string smin, string sdef, string smax)=0
virtual void make_vspace_before (string s)=0
virtual void make_vspace_before (string smin, string sdef, string smax)=0
virtual void make_vspace_after (string s)=0
virtual void make_vspace_after (string smin, string sdef, string smax)=0
virtual void make_htab (string spc)=0
virtual void make_image (string file_name, bool link, string w, string h, string x, string y)=0
virtual void make_rigid ()=0
virtual void make_lprime (string s)=0
virtual void make_rprime (string s)=0
virtual void make_below ()=0
virtual void make_above ()=0
virtual void make_script (bool sup, bool right)=0
virtual void make_fraction ()=0
virtual void make_sqrt ()=0
virtual void make_var_sqrt ()=0
virtual void make_wide (string wide)=0
virtual void make_wide_under (string wide)=0
virtual void make_neg ()=0
virtual void make_tree ()=0
virtual void make_table (int nr_rows=1, int nr_cols=1)=0
virtual void make_subtable (int nr_rows=1, int nr_cols=1)=0
virtual void table_disactivate ()=0
virtual void table_extract_format ()=0
virtual void table_insert_row (bool forward)=0
virtual void table_insert_column (bool forward)=0
virtual void table_remove_row (bool forward, bool flag=false)=0
virtual void table_remove_column (bool forward, bool flag=false)=0
virtual int table_nr_rows ()=0
virtual int table_nr_columns ()=0
virtual void table_set_extents (int rows, int cols)=0
virtual int table_which_row ()=0
virtual int table_which_column ()=0
virtual path table_search_cell (int row, int col)=0
virtual void table_go_to (int row, int col)=0
virtual void table_set_format (string var, tree val)=0
virtual string table_get_format (string var)=0
virtual void table_format_center ()=0
virtual void table_row_decoration (bool forward)=0
virtual void table_column_decoration (bool forward)=0
virtual void table_correct_block_content ()=0
virtual void table_resize_notify ()=0
virtual void set_cell_mode (string mode)=0
virtual string get_cell_mode ()=0
virtual void cell_set_format (string var, tree val)=0
virtual string cell_get_format (string var)=0
virtual void cell_del_format (string var="")=0
virtual void table_test ()=0
virtual bool in_source ()=0
virtual path find_dynamic (path p)=0
virtual void make_compound (tree_label l, int n=-1)=0
virtual void activate ()=0
virtual void go_to_argument (path p, bool start_flag)=0
virtual void insert_argument (path p, bool forward)=0
virtual void insert_argument (bool forward)=0
virtual void remove_empty_argument (path p, bool forward)=0
virtual void remove_argument (path p, bool forward)=0
virtual void remove_argument (bool forward)=0
virtual void make_with (string var, string val)=0
virtual void insert_with (path p, string var, tree val)=0
virtual void remove_with (path p, string var)=0
virtual void make_mod_active (tree_label l)=0
virtual void make_style_with (string var, string val)=0
virtual void make_hybrid ()=0
virtual bool activate_latex ()=0
virtual void activate_hybrid (bool with_args_hint)=0
virtual void activate_symbol ()=0
virtual bool make_return_before ()=0
virtual bool make_return_after ()=0
virtual void temp_proof_fix ()=0
virtual void generate_bibliography (string bib, string sty, string fname)=0
virtual void generate_table_of_contents (string toc)=0
virtual void generate_index (string idx)=0
virtual void generate_glossary (string glo)=0
virtual void generate_aux (string which="")=0
virtual bool get_save_aux ()=0
virtual path semantic_root (path p)=0
virtual bool semantic_active (path p)=0
virtual bool semantic_select (path p, path &q1, path &q2, int mode)=0
virtual void select (path p)=0
virtual void select (path start, path end)=0
virtual void select_all ()=0
virtual void select_line ()=0
virtual void select_from_cursor ()=0
virtual void select_from_cursor_if_active ()=0
virtual void select_from_keyboard (bool flag)=0
virtual void select_from_shift_keyboard ()=0
virtual void select_enlarge_text ()=0
virtual void select_enlarge ()=0
virtual void select_enlarge_environmental ()=0
virtual bool selection_active_any ()=0
virtual bool selection_active_normal ()=0
virtual bool selection_active_table (bool strict=true)=0
virtual bool selection_active_small ()=0
virtual bool selection_active_enlarging ()=0
virtual void selection_raw_set (string key, tree t)=0
virtual tree selection_raw_get (string key)=0
virtual void selection_correct (path i1, path i2, path &o1, path &o2)=0
virtual path selection_get_subtable (int &i1, int &j1, int &i2, int &j2)=0
virtual void selection_get (selection &sel)=0
virtual void selection_get (path &start, path &end)=0
virtual tree selection_get ()=0
virtual path selection_get_start ()=0
virtual path selection_get_end ()=0
virtual path selection_get_path ()=0
virtual path selection_get_cursor_path ()=0
virtual tree selection_get_env_value (string var)=0
virtual void selection_set (string key, tree t, bool persistant=false)=0
virtual void selection_set (tree t)=0
virtual void selection_set_start (path p=path())=0
virtual void selection_set_end (path p=path())=0
virtual void selection_set_paths (path start, path end)=0
virtual void selection_copy (string key="primary")=0
virtual void selection_paste (string key="primary")=0
virtual void selection_clear (string key="primary")=0
virtual void selection_cancel ()=0
virtual void selection_set_import (string fm)=0
virtual void selection_set_export (string fm)=0
virtual string selection_get_import ()=0
virtual string selection_get_export ()=0
virtual void selection_cut (string key="primary")=0
virtual tree selection_get_cut ()=0
virtual void selection_move ()=0
virtual void cut (path p)=0
virtual void cut (path start, path end)=0
virtual path manual_focus_get ()=0
virtual void manual_focus_set (path p, bool force=true)=0
virtual void manual_focus_release ()=0
virtual path focus_get (bool skip_flag=true)=0
virtual bool inside (string what)=0
virtual bool inside (tree_label l)=0
virtual bool inside_with (string var, string val)=0
virtual string inside_which (tree t)=0
virtual path search_upwards (string what)=0
virtual path search_upwards (tree_label l)=0
virtual path search_parent_upwards (tree_label l)=0
virtual path search_parent_upwards (tree_label l, int &last)=0
virtual path search_upwards_with (string var, string val)=0
virtual path search_upwards_in_set (tree t)=0
virtual path search_previous_compound (path init, string which)=0
virtual path search_next_compound (path init, string which)=0
virtual void search_start (bool forward=true)=0
virtual void search_button_next ()=0
virtual bool search_keypress (string s)=0
virtual tree search_tree ()=0
virtual void replace_start (tree what, tree by, bool forward=true)=0
virtual bool replace_keypress (string s)=0
virtual void spell_start ()=0
virtual void spell_replace (string by)=0
virtual bool spell_keypress (string s)=0
virtual void set_property (scheme_tree what, scheme_tree val)=0
virtual scheme_tree get_property (scheme_tree what)=0
virtual void clear_buffer ()=0
virtual void new_window ()=0
virtual void clone_window ()=0
virtual void tex_buffer ()=0
virtual url get_name ()=0
virtual void focus_on_this_editor ()=0
virtual void notify_page_change ()=0
virtual void print (url ps_name, bool to_file, int first, int last)=0
virtual tm_ostreamprint (tm_ostream &out)
virtual void print_to_file (url ps_name, string first="1", string last="1000000")=0
virtual void print_buffer (string first="1", string last="1000000")=0
virtual void export_ps (url ps_name, string first="1", string last="1000000")=0
virtual array< int > print_snippet (url u, tree t)=0
virtual void footer_eval (string s)=0
virtual tree the_line ()=0
virtual tree the_root ()=0
virtual tree the_buffer ()=0
virtual tree the_subtree (path p)=0
virtual path the_path ()=0
virtual path the_shifted_path ()=0
virtual path the_buffer_path ()=0
virtual void show_tree ()=0
virtual void show_env ()=0
virtual void show_path ()=0
virtual void show_cursor ()=0
virtual void show_selection ()=0
virtual void show_meminfo ()=0
virtual void edit_special ()=0
virtual void edit_test ()=0
void handle_keypress (keypress_event ev)
void handle_keyboard_focus (keyboard_focus_event ev)
void handle_mouse (mouse_event ev)
void handle_clear (clear_event ev)
void handle_repaint (repaint_event ev)
virtual void send (slot s, blackbox val)
virtual void send (slot s, blackbox val)
virtual blackbox query (slot s, int type_id)
virtual blackbox query (slot s, int type_id)
virtual widget read (slot s, blackbox index)
virtual widget read (slot s, blackbox index)
virtual void write (slot s, blackbox index, widget w)
virtual void write (slot s, blackbox index, widget w)
virtual void notify (slot s, blackbox new_val)
virtual void notify (slot s, blackbox new_val)
virtual TMMenuItemas_menuitem ()
virtual QAction * as_qaction ()
virtual QWidget * get_canvas ()
 Get a texmacs canvas (if available).
QTMWidgettm_canvas ()
void handle_get_size (get_size_event ev)
void handle_attach_window (attach_window_event ev)
void handle_resize (resize_event ev)
void handle_set_integer (set_integer_event ev)
void handle_set_coord2 (set_coord2_event ev)
void handle_get_coord2 (get_coord2_event ev)
virtual void handle_get_integer (get_integer_event ev)
virtual void handle_get_double (get_double_event ev)
virtual void handle_get_string (get_string_event ev)
virtual void handle_get_coord1 (get_coord1_event ev)
virtual void handle_get_coord3 (get_coord3_event ev)
virtual void handle_get_coord4 (get_coord4_event ev)
virtual void handle_set_double (set_double_event ev)
virtual void handle_set_string (set_string_event ev)
virtual void handle_set_coord1 (set_coord1_event ev)
virtual void handle_set_coord3 (set_coord3_event ev)
virtual void handle_set_coord4 (set_coord4_event ev)
virtual bool handle (event ev)
virtual void handle_get_widget (get_widget_event ev)
virtual void handle_set_widget (set_widget_event ev)
virtual void handle_position (position_event ev)
virtual void handle_move (move_event ev)
virtual void handle_destroy (destroy_event ev)
virtual void handle_alarm (alarm_event ev)
virtual void handle_update (update_event ev)
virtual void handle_refresh (refresh_event ev)
virtual void handle_invalidate (invalidate_event ev)
virtual void handle_keyboard_grab (keyboard_grab_event ev)
virtual void handle_mouse_grab (mouse_grab_event ev)
virtual void handle_request_alarm (request_alarm_event ev)
virtual void handle_find_child (find_child_event ev)
virtual bool is_window_widget ()
SI x1 ()
SI y1 ()
SI x2 ()
SI y2 ()
bool attached ()
void wk_error (string message)
virtual void connect (slot s, widget w2, slot s2)
virtual void deconnect (slot s, widget w2, slot s2)
virtual widget plain_window_widget (string s, command q)
 Sets the view's title to _title, then constructs a wrapper widget for the view and returns it.
virtual widget plain_window_widget (string s)
void set_current_renderer (basic_renderer _r)
basic_renderer get_current_renderer ()
virtual QWidget * as_qwidget ()
 Returns the actual QWidget wrapped by this qt_widget_rep.
virtual widget make_popup_widget ()
virtual widget make_popup_widget ()
virtual widget popup_window_widget (string s)
virtual widget popup_window_widget (string s)
virtual QMenu * get_qmenu ()
 This method must not give ownership of the menu to the caller, thus allowing menu caching at the TeXmacs level.
virtual QLayoutItem * as_qlayoutitem ()
 Returns a QLayoutItem...

Public Attributes

server_repsv
widget_repcvw
tm_view_repmvw
window win
SI ox
SI oy
SI w
SI h
gravity grav
array< wk_widgeta
array< stringname
int ref_count
int ref_count
int ref_count
QWidget * view
NSViewview
basic_renderer current_renderer

Protected Member Functions

virtual void get_selection (path &start, path &end)=0
virtual void set_selection (path start, path end)=0
virtual cursorthe_cursor ()=0
virtual cursorthe_ghost_cursor ()=0
virtual typesetter get_typesetter ()=0
virtual hashmap< string, treeget_init ()=0
virtual hashmap< string, treeget_fin ()=0
virtual void set_init (hashmap< string, tree > H=tree("?"))=0
virtual void add_init (hashmap< string, tree > H)=0
virtual void set_fin (hashmap< string, tree > H)=0
virtual void set_base_name (url name)=0
virtual void set_bool_property (string what, bool val)=0
virtual void set_int_property (string what, int val)=0
virtual void set_string_property (string what, string val)=0
virtual bool get_bool_property (string what)=0
virtual int get_int_property (string what)=0
virtual string get_string_property (string what)=0
virtual void typeset_preamble ()=0
virtual void typeset_invalidate_env ()=0
virtual void typeset (SI &x1, SI &y1, SI &x2, SI &y2)=0
virtual void back_around (tree t, path p, bool forward)=0
virtual void back_prime (tree t, path p, bool forward)=0
virtual void back_in_around (tree t, path p, bool forward)=0
virtual void back_in_long_arrow (tree t, path p, bool forward)=0
virtual void back_in_wide (tree t, path p, bool forward)=0
virtual void back_in_tree (tree t, path p, bool forward)=0
virtual void pre_remove_around (path p)=0
virtual void back_table (path p, bool forward)=0
virtual void back_in_table (tree t, path p, bool forward)=0
virtual void back_monolithic (path p)=0
virtual void back_general (path p, bool forward)=0
virtual void back_in_with (tree t, path p, bool forward)=0
virtual void back_in_general (tree t, path p, bool forward)=0
virtual void back_in_text_at (tree t, path p, bool forward)=0
virtual path tree_path (path sp, SI x, SI y, SI delta)=0
virtual path search_format ()=0
virtual path search_format (int &row, int &col)=0
virtual void table_bound (path fp, int &i1, int &j1, int &i2, int &j2)=0
virtual tree table_get_subtable (path p, int i1, int j1, int i2, int j2)=0
virtual void table_write_subtable (path fp, int row, int col, tree subt)=0
virtual void table_del_format (path fp, int I1, int J1, int I2, int J2, string var)=0

Protected Attributes

int env_change
time_t last_change
time_t last_update
bool do_animate
time_t next_animate
bool full_screen
bool got_focus
string sh_s
double sh_mark
string pre_edit_s
double pre_edit_mark
widget popup_win
tree message_l
tree message_r
tree last_l
tree last_r
int sfactor
SI pixel
rectangles copy_always
int input_mode
SI last_x
SI last_y
time_t last_t
SI start_x
SI start_y
SI end_x
SI end_y
bool made_selection
bool table_selection
rectangles selection_rects
rectangles env_rects
rectangles foc_rects
rectangles sem_rects
bool sem_correct
cursor oc
bool temp_invalid_cursor
array< stringcompletions
string completion_prefix
int completion_pos
renderer shadow
SI vx1
SI vy1
SI vx2
SI vy2
rectangles stored_rects
renderer stored
rectangles locus_new_rects
rectangles locus_rects
list< stringactive_ids
int cur_sb
int cur_wb
SI cur_wx
SI cur_wy
tm_buffer buf
drd_info drd
treeet
box eb
path rp
path tp
int ptr_focus
list< widget_connectionin
list< widget_connectionin
list< widget_connectionin
list< widget_connectionout
list< widget_connectionout
list< widget_connectionout

Events

emit_position(SI ox, SI oy, SI
w, SI h, gravity grav=north_west)
emit_invalidate(SI x1, SI y1,
SI x2, SI y2) emit_mouse(mouse_event
ev) emit_mouse(mouse_event ev,
string type) emit_mouse(mouse_event
ev, string type, SI x, SI y)
emit_clear(SI x1, SI y1, SI x2,
SI y2) emit_repaint(SI x1, SI
y1, SI x2, SI y2, bool &stop)
emit_find_child(SI x, SI y,
int &which) virtual void 
handle_get_size (get_size_event ev)

Friends

class interactive_command_rep
class tm_window_rep
class tm_server_rep
class server_command_rep
void edit_announce (editor_rep *ed, modification mod)
void edit_done (editor_rep *ed, modification mod)
string get_editor_status_report ()
void tm_failure (const char *msg)
void revert_buffer (url name, tree doc)
void set_aux (string aux, url name)
class wk_widget
class widget
class widget
class widget

Detailed Description

Definition at line 26 of file edit_interface.hpp.


Constructor & Destructor Documentation

Definition at line 43 of file edit_interface.cpp.

Here is the call graph for this function:

Definition at line 63 of file edit_interface.cpp.

                                         {
  if (is_attached (this)) {
    renderer ren= get_renderer (this);
    ren->delete_shadow (shadow);
    ren->delete_shadow (stored);
  }
}

Here is the call graph for this function:


Member Function Documentation

virtual void editor_rep::activate ( ) [pure virtual, inherited]

Implemented in edit_dynamic_rep.

virtual void editor_rep::activate_hybrid ( bool  with_args_hint) [pure virtual, inherited]

Implemented in edit_dynamic_rep.

virtual bool editor_rep::activate_latex ( ) [pure virtual, inherited]

Implemented in edit_dynamic_rep.

virtual void editor_rep::activate_symbol ( ) [pure virtual, inherited]

Implemented in edit_dynamic_rep.

virtual void editor_rep::add_init ( hashmap< string, tree H) [protected, pure virtual, inherited]

Implemented in edit_typeset_rep.

virtual string editor_rep::add_lengths ( string  l1,
string  l2 
) [pure virtual, inherited]

Implemented in edit_typeset_rep.

virtual void editor_rep::add_undo_mark ( ) [pure virtual, inherited]

Implemented in edit_modify_rep.

virtual point editor_rep::adjust ( point  p) [pure virtual, inherited]

Implemented in edit_graphics_rep.

Here is the caller graph for this function:

Implements editor_rep.

Definition at line 681 of file edit_interface.cpp.

Here is the call graph for this function:

void edit_interface_rep::animate ( ) [virtual]

Implements editor_rep.

Definition at line 649 of file edit_interface.cpp.

                             {
  // cout << do_animate << ", " << next_animate << "\n";
  if (do_animate && texmacs_time () - next_animate >= 0) {
    bool flag= false;
    time_t at= 0;
    rectangles rs;
    eb->anim_get_invalid (flag, at, rs);
    if (flag && texmacs_time () - at >= 0)
      invalidate (rs);
    do_animate  = flag;
    next_animate= at;
  }
}

Here is the call graph for this function:

void edit_interface_rep::append_left_footer ( tree l,
string  env_var 
)

Definition at line 27 of file edit_footer.cpp.

                                                               {
  if (!is_concat (l)) l= concat (l);
  string i= get_init_string (env_var);
  string c= get_env_string (env_var);
  if (c != i) l << (" " * c);
}

Here is the call graph for this function:

Here is the caller graph for this function:

Implements editor_rep.

Definition at line 388 of file edit_interface.cpp.

                                   {
  //cout << "Apply changes\n";
  //cout << "et= " << et << "\n";
  //cout << "tp= " << tp << "\n";
  //cout << HRULE << "\n";
  if (env_change == 0) {
    if (last_change-last_update > 0 &&
        idle_time (INTERRUPTED_EVENT) >= 1000/6)
    {
      SERVER (menu_main ("(horizontal (link texmacs-menu))"));
      SERVER (menu_icons (0, "(horizontal (link texmacs-main-icons))"));
      SERVER (menu_icons (1, "(horizontal (link texmacs-mode-icons))"));
      SERVER (menu_icons (2, "(horizontal (link texmacs-focus-icons))"));
      SERVER (menu_icons (3, "(horizontal (link texmacs-extra-icons))"));
      if (use_side_tools)
        { SERVER (side_tools (0, "(vertical (link texmacs-side-tools))")); }
      set_footer ();
      if (!get_renderer (this) -> interrupted ()) drd_update ();
      cache_memorize ();
      last_update= last_change;
    }
    return;
  }
  
  // cout << "Applying changes " << env_change << " to " << get_name() << "\n";
  // time_t t1= texmacs_time ();
  
  // cout << "Always\n";
  update_visible ();
  
  // cout << "Handling automatic resizing\n";
  int sb= 1;
  if (is_attached (this) &&
      get_server() -> has_window() &&
      get_init_string (PAGE_MEDIUM) == "automatic")
    {
      SI wx, wy;
      if (cvw == NULL) ::get_size (get_window (this), wx, wy);
      else ::get_size (widget (cvw), wx, wy);
      if (get_init_string (SCROLL_BARS) == "false") sb= 0;
      if (get_server () -> in_full_screen_mode ()) sb= 0;
#ifdef QTTEXMACS
      if (sb) wx -= 24 * PIXEL;
#else
      if (sb) wx -= 20 * PIXEL;
#endif
      if (wx != cur_wx || wy != cur_wy) {
       cur_wx= wx; cur_wy= wy;
       init_env (PAGE_SCREEN_WIDTH, as_string (wx*sfactor) * "tmpt");
       init_env (PAGE_SCREEN_HEIGHT, as_string (wy*sfactor) * "tmpt");
       notify_change (THE_ENVIRONMENT);
      }
    }
  if (sb != cur_sb) {
    cur_sb= sb;
    if (get_server() -> has_window()) {
      tm_window win= get_server () -> get_window ();
      win -> set_scrollbars (sb);
    }
  }
  
  // window decorations (menu bar, icon bars, footer)
  int wb= 2;
  if (is_attached (this)) {
    string val= get_init_string (WINDOW_BARS);
    if (val == "auto") wb= 2;
    else if (val == "false") wb= 0;
    else if (val == "true") wb= 1;
    if (wb != cur_wb) {
      cur_wb= wb;
      if (wb != 2) {
        get_server () -> show_header (wb);
        get_server () -> show_footer (wb);
      }
    }
  }
  
  // cout << "Handling selection\n";
  if (env_change & (THE_TREE+THE_ENVIRONMENT+THE_SELECTION)) {
    if (made_selection) {
      invalidate (selection_rects);
      if (!selection_active_any ()) {
        made_selection= false;
        set_selection (tp, tp);
        selection_rects= rectangles ();
      }
    }
  }
  
  // cout << "Handling environment\n";
  if (env_change & THE_ENVIRONMENT)
    typeset_invalidate_all ();

  // cout << "Handling tree\n";
  if (env_change & (THE_TREE+THE_ENVIRONMENT)) {
    typeset_invalidate_env ();
    SI x1, y1, x2, y2;
    typeset (x1, y1, x2, y2);
    invalidate (x1- 2*pixel, y1- 2*pixel, x2+ 2*pixel, y2+ 2*pixel);
    // check_data_integrety ();
    the_ghost_cursor()= eb->find_check_cursor (tp);
  }
  
#ifdef EXPERIMENTAL
  if (env_change & THE_ENVIRONMENT)
    environment_update ();
  if (env_change & THE_TREE) {
    cout << HRULE;
    mem= evaluate (ste, cct);
    tree rew= mem->get_tree ();
    cout << HRULE;
    cout << tree_to_texmacs (rew) << LF;
    //print_tree (rew);
  }
#endif
  
  // cout << "Handling extents\n";
  if (env_change & (THE_TREE+THE_ENVIRONMENT+THE_EXTENTS))
    set_extents (eb->x1, eb->y1, eb->x2, eb->y2);
  
  // cout << "Cursor\n";
  temp_invalid_cursor= false;
  if (env_change & (THE_TREE+THE_ENVIRONMENT+THE_EXTENTS+
                    THE_CURSOR+THE_SELECTION+THE_FOCUS)) {
    SI /*P1= pixel,*/ P2= 2*pixel, P3= 3*pixel;
    int THE_CURSOR_BAK= env_change & THE_CURSOR;
    go_to_here ();
    env_change= (env_change & (~THE_CURSOR)) | THE_CURSOR_BAK;
    if (env_change & (THE_TREE+THE_ENVIRONMENT+THE_EXTENTS+THE_CURSOR))
      if (!inside_active_graphics ())
        cursor_visible ();
    
    cursor cu= get_cursor();
    rectangle ocr (oc->ox+ ((SI) (oc->y1*oc->slope))- P3, oc->oy+ oc->y1- P3,
                   oc->ox+ ((SI) (oc->y2*oc->slope))+ P2, oc->oy+ oc->y2+ P3);
    copy_always= rectangles (ocr, copy_always);
    invalidate (ocr->x1, ocr->y1, ocr->x2, ocr->y2);
    rectangle ncr (cu->ox+ ((SI) (cu->y1*cu->slope))- P3, cu->oy+ cu->y1- P3,
                   cu->ox+ ((SI) (cu->y2*cu->slope))+ P2, cu->oy+ cu->y2+ P3);
    invalidate (ncr->x1, ncr->y1, ncr->x2, ncr->y2);
    copy_always= rectangles (ncr, copy_always);
    oc= copy (cu);
   
    // set hot spot in the gui
    send_cursor (this, (cu->ox-sfactor+1)/sfactor, (cu->oy-sfactor+1)/sfactor);

    path sp= selection_get_cursor_path ();
    bool semantic_flag= semantic_active (path_up (sp));
    bool full_context= (get_preference ("show full context") == "on");
    bool table_cells= (get_preference ("show table cells") == "on");
    bool show_focus= (get_preference ("show focus") == "on");
    bool semantic_only= (get_preference ("show only semantic focus") == "on");
    rectangles old_env_rects= env_rects;
    rectangles old_foc_rects= foc_rects;
    env_rects= rectangles ();
    foc_rects= rectangles ();
    path pp= path_up (tp);
    tree pt= subtree (et, pp);
    if (none_accessible (pt));
    else pp= path_up (pp);
    if (full_context || table_cells)
      compute_env_rects (pp, env_rects, true);
    if (show_focus && (!semantic_flag || !semantic_only))
      compute_env_rects (pp, foc_rects, false);
    if (env_rects != old_env_rects) {
      invalidate (old_env_rects);
      invalidate (env_rects);
    }
    else if (env_change & THE_FOCUS) invalidate (env_rects);
    if (foc_rects != old_foc_rects) {
      invalidate (old_foc_rects);
      invalidate (foc_rects);
    }
    else if (env_change & THE_FOCUS) invalidate (foc_rects);
    
    rectangles old_sem_rects= sem_rects;
    bool old_sem_correct= sem_correct;
    sem_rects= rectangles ();
    sem_correct= true;
    if (semantic_flag && show_focus) {
      path sp= selection_get_cursor_path ();
      path p1= tp, p2= tp;
      if (selection_active_any ()) selection_get (p1, p2);
      sem_correct= semantic_select (path_up (sp), p1, p2, 2);
      if (!sem_correct) {
        path sr= semantic_root (path_up (sp));
        p1= start (et, sr);
        p2= end (et, sr);
      }
      path q1, q2;
      selection_correct (p1, p2, q1, q2);
      selection sel= eb->find_check_selection (q1, q2);
      sem_rects << outline (sel->rs, pixel);
    }
    if (sem_rects != old_sem_rects || sem_correct != old_sem_correct) {
      invalidate (old_sem_rects);
      invalidate (sem_rects);
    }
    else if (env_change & THE_FOCUS) invalidate (sem_rects);
    
    invalidate_graphical_object ();
  }
  
  // cout << "Handling selection\n";
  if (env_change & THE_SELECTION) {
    made_selection= selection_active_any ();
    if (made_selection) {
      table_selection= selection_active_table ();
      selection sel; selection_get (sel);
      rectangles rs= thicken (sel->rs, pixel, 3*pixel);
#ifndef QTTEXMACS
      rs= simplify (::correct (rs - thicken (rs, -pixel, -pixel)));
#endif
      selection_rects= rs;
      invalidate (selection_rects);
    }
  }
  
  // cout << "Handling locus highlighting\n";
  if (env_change & (THE_TREE+THE_ENVIRONMENT+THE_EXTENTS))
    update_active_loci ();
  if (env_change & THE_LOCUS) {
    if (locus_new_rects != locus_rects) {
      invalidate (locus_rects);
      invalidate (locus_new_rects);
      locus_rects= locus_new_rects;
    }
  }
  
  // cout << "Handling backing store\n";
  if (!is_nil (stored_rects)) {
    if (env_change & (THE_TREE+THE_ENVIRONMENT+THE_SELECTION+THE_EXTENTS))
      stored_rects= rectangles ();
  }
  if (inside_active_graphics ()) {
    SI gx1, gy1, gx2, gy2;
    if (find_graphical_region (gx1, gy1, gx2, gy2)) {
      rectangle gr= rectangle (gx1, gy1, gx2, gy2);
      if (!is_nil (gr - stored_rects))
        invalidate (gx1, gy1, gx2, gy2);
    }
  }
  
  // cout << "Handling environment changes\n";
  if (env_change & THE_ENVIRONMENT)
    send_invalidate_all (this);
  
  // cout << "Applied changes\n";
  // time_t t2= texmacs_time ();
  // if (t2 - t1 >= 10) cout << "apply_changes took " << t2-t1 << "ms\n";
  env_change  = 0;
  last_change = texmacs_time ();
  last_update = last_change-1;
  manual_focus_release ();
}

Here is the caller graph for this function:

virtual void editor_rep::archive_state ( ) [pure virtual, inherited]

Implemented in edit_modify_rep.

Here is the caller graph for this function:

virtual SI editor_rep::as_length ( string  l) [pure virtual, inherited]

Implemented in edit_typeset_rep.

TMMenuItem * simple_widget_rep::as_menuitem ( ) [virtual, inherited]

Reimplemented from aqua_widget_rep.

Definition at line 482 of file aqua_menu.mm.

{
  TMMenuItem *mi = [[[TMMenuItem alloc] init] autorelease];
  [mi setWidget:this];
  return mi;
}

Here is the call graph for this function:

QAction * simple_widget_rep::as_qaction ( ) [virtual, inherited]

Reimplemented from qt_widget_rep.

Definition at line 223 of file qt_menu.cpp.

                               {
  QAction* a= new QTMAction (NULL);
  QPixmap pxm (impress (this));
  QIcon icon (pxm);
  a->setIcon (icon);
  return a;
}

Here is the call graph for this function:

virtual QLayoutItem* qt_widget_rep::as_qlayoutitem ( ) [inline, virtual, inherited]

Returns a QLayoutItem...

Reimplemented in qt_ui_element_rep, and qt_input_text_widget_rep.

Definition at line 84 of file qt_widget.hpp.

{ return NULL; }
virtual QWidget* qt_view_widget_rep::as_qwidget ( ) [inline, virtual, inherited]

Returns the actual QWidget wrapped by this qt_widget_rep.

This is used to connect to signals, to change properties of the QWidget, etc.

Reimplemented from qt_widget_rep.

Definition at line 42 of file qt_view_widget.hpp.

{ return view ; };
bool wk_widget_rep::attached ( ) [inherited]

Definition at line 108 of file wk_widget.cpp.

                         {
  return win != NULL;
}

Here is the caller graph for this function:

virtual void editor_rep::back_around ( tree  t,
path  p,
bool  forward 
) [protected, pure virtual, inherited]

Implemented in edit_math_rep.

Here is the caller graph for this function:

virtual void editor_rep::back_general ( path  p,
bool  forward 
) [protected, pure virtual, inherited]

Implemented in edit_dynamic_rep.

Here is the caller graph for this function:

virtual void editor_rep::back_in_around ( tree  t,
path  p,
bool  forward 
) [protected, pure virtual, inherited]

Implemented in edit_math_rep.

Here is the caller graph for this function:

virtual void editor_rep::back_in_general ( tree  t,
path  p,
bool  forward 
) [protected, pure virtual, inherited]

Implemented in edit_dynamic_rep.

Here is the caller graph for this function:

virtual void editor_rep::back_in_long_arrow ( tree  t,
path  p,
bool  forward 
) [protected, pure virtual, inherited]

Implemented in edit_math_rep.

Here is the caller graph for this function:

virtual void editor_rep::back_in_table ( tree  t,
path  p,
bool  forward 
) [protected, pure virtual, inherited]

Implemented in edit_table_rep.

Here is the caller graph for this function:

virtual void editor_rep::back_in_text_at ( tree  t,
path  p,
bool  forward 
) [protected, pure virtual, inherited]

Implemented in edit_graphics_rep.

Here is the caller graph for this function:

virtual void editor_rep::back_in_tree ( tree  t,
path  p,
bool  forward 
) [protected, pure virtual, inherited]

Implemented in edit_math_rep.

Here is the caller graph for this function:

virtual void editor_rep::back_in_wide ( tree  t,
path  p,
bool  forward 
) [protected, pure virtual, inherited]

Implemented in edit_math_rep.

Here is the caller graph for this function:

virtual void editor_rep::back_in_with ( tree  t,
path  p,
bool  forward 
) [protected, pure virtual, inherited]

Implemented in edit_dynamic_rep.

Here is the caller graph for this function:

virtual void editor_rep::back_monolithic ( path  p) [protected, pure virtual, inherited]

Implemented in edit_dynamic_rep.

Here is the caller graph for this function:

virtual void editor_rep::back_prime ( tree  t,
path  p,
bool  forward 
) [protected, pure virtual, inherited]

Implemented in edit_math_rep.

Here is the caller graph for this function:

virtual void editor_rep::back_table ( path  p,
bool  forward 
) [protected, pure virtual, inherited]

Implemented in edit_table_rep.

Here is the caller graph for this function:

Implements editor_rep.

Definition at line 674 of file edit_interface.cpp.

Here is the call graph for this function:

virtual void editor_rep::cell_del_format ( string  var = "") [pure virtual, inherited]

Implemented in edit_table_rep.

virtual string editor_rep::cell_get_format ( string  var) [pure virtual, inherited]

Implemented in edit_table_rep.

virtual void editor_rep::cell_set_format ( string  var,
tree  val 
) [pure virtual, inherited]

Implemented in edit_table_rep.

Implements editor_rep.

Definition at line 383 of file edit_interface.cpp.

                                 {
  return last_change;
}
virtual void editor_rep::clear_buffer ( ) [pure virtual, inherited]

Implemented in edit_main_rep.

virtual void editor_rep::clear_local_info ( ) [pure virtual, inherited]

Implemented in edit_typeset_rep.

virtual void editor_rep::clear_undo_history ( ) [pure virtual, inherited]

Implemented in edit_modify_rep.

virtual void editor_rep::clone_window ( ) [pure virtual, inherited]

Implemented in edit_main_rep.

Implements editor_rep.

Definition at line 128 of file edit_complete.cpp.

                                                 {
  set_message ("", "");
  if (key == "space") key= " ";
  if ((key != "tab") && (key != "S-tab")) {
    set_input_normal (); return false; }
  tree st= subtree (et, path_up (tp));
  if (is_compound (st)) {
    set_input_normal (); return false; }
  string s= st->label;
  int end= last_item (tp);
  string old_s= completions [completion_pos];
  string test= completion_prefix * old_s;
  if ((end<N(test)) || (s (end-N(test), end) != test)) {
    set_input_normal (); return false; }

  if (key == "tab") completion_pos++;
  else completion_pos--;
  if (completion_pos < 0) completion_pos= N(completions)-1;
  if (completion_pos >= N(completions)) completion_pos= 0;
  string new_s= completions [completion_pos];
  remove (path_up (tp) * (end-N(old_s)), N(old_s));
  insert (path_up (tp) * (end-N(old_s)), new_s);
  complete_message ();
  return true;
}

Here is the call graph for this function:

Definition at line 88 of file edit_complete.cpp.

                                      {
  int i, n= N(completions);
  string s= "Other completions: ";
  for (i=1; i<min(n,11); i++) {
    int j= (completion_pos + i) % n;
    if (i != 1) s << ", ";
    s << completion_prefix << completions[j];
  }
  set_message (s, "tab");
}

Here is the call graph for this function:

Here is the caller graph for this function:

void edit_interface_rep::complete_start ( string  prefix,
array< string compls 
) [virtual]

Implements editor_rep.

Definition at line 100 of file edit_complete.cpp.

                                                                       {
  // check consistency
  tree st= subtree (et, path_up (tp));
  if (is_compound (st)) return;
  string s= st->label;
  int end= last_item (tp);
  if ((end<N(prefix)) || (s (end-N(prefix), end) != prefix)) return;

  // perform first completion and switch to completion mode if necessary
  if (N (compls) == 1) {
    string s= compls[0];
    if (ends (s, "()")) // temporary fix for Pari
      insert_tree (s, path (N(s)-1));
    else insert_tree (s);
    completions= array<string> ();
  }
  else {
    completion_prefix= prefix;
    completions      = close_completions (compls);
    completion_pos   = 0;
    insert_tree (completions[0]);
    complete_message ();
    beep ();
    set_input_mode (INPUT_COMPLETE);
  }
}

Here is the call graph for this function:

Here is the caller graph for this function:

Implements editor_rep.

Definition at line 59 of file edit_complete.cpp.

                                  {
  tree st= subtree (et, path_up (tp));
  if (is_compound (st)) return false;
  string s= st->label, ss;
  int end= last_item (tp);
  array<string> a;
  if (inside (LABEL) || inside (REFERENCE) || inside (PAGEREF)) {
    if (end != N(s)) return false;
    ss= copy (s);
    tree t= get_labels ();
    int i, n= N(t);
    for (i=0; i<n; i++)
      if (is_atomic (t[i]) && starts (t[i]->label, s))
       a << string (t[i]->label (N(s), N(t[i]->label)));
  }
  else {
    if ((end==0) || (!is_iso_alpha (s[end-1])) ||
       ((end!=N(s)) && is_iso_alpha (s[end]))) return false;
    int start= end-1;
    while ((start>0) && is_iso_alpha (s[start-1])) start--;
    ss= s (start, end);
    a= find_completions (drd, et, ss);
  }
  if (N(a) == 0) return false;
  complete_start (ss, a);
  return true;
}

Here is the call graph for this function:

Definition at line 249 of file edit_footer.cpp.

                                                           {
  if (!(rp < p)) return "";
  tree up= compute_compound_footer (t, path_up (p));
  if (N(focus_get (false))+1 < N(p)) return up;
  tree st= subtree (t, path_up (p));
  int  l = last_item (p);
  switch (L (st)) {
  case DOCUMENT:
  case PARA:
    return up;
  case SURROUND:
    if (l == 0) return concat (up, "left surrounding ");
    if (l == 1) return concat (up, "right surrounding ");
    return up;
  case CONCAT:
    return up;
  case MOVE:
    if (l == 0) return concat (up, "move ");
    else return up;
  case SHIFT:
    if (l==0) return concat (up, "shift ");
    else return up;
  case RESIZE:
    if (l==0) return concat (up, "resize ");
    else return up;
  case CLIPPED:
    if (l==0) return concat (up, "clipped ");
    else return up;
  case _FLOAT:
    if (N(st) >= 1 && is_atomic (st[0]))
      return concat (up, st[0]->label * " ");
    else return concat (up, "float ");
  case LONG_ARROW:
    if (l == 1) return concat (up, "above ");
    else if (l == 2) return concat (up, "below ");
    else return up;
  case BELOW:
    if (l==0) return concat (up, "body ");
    else return concat (up, "script below ");
  case ABOVE:
    if (l==0) return concat (up, "body ");
    else return concat (up, "script above ");
  case FRAC:
    if (l==0) return concat (up, "numerator ");
    else return concat (up, "denominator ");
  case SQRT:
    if (N(st)==1) return concat (up, "square root ");
    if (l==0) return concat (up, "root ");
    else return concat (up, "index ");
  case WIDE:
    if (N(st) >= 1)
      return concat (up, get_accent_type (as_string (st[1])) * " ");
    else
      return concat (up, "wide ");
  case VAR_WIDE:
    if (N(st) >= 1)
      return concat (up, "under " * get_accent_type (as_string (st[1])) * " ");
    else
      return concat (up, "var-wide ");
  case TREE:
    if (l==0) return concat (up, "root ");
    else return concat (up, "branch(" * as_string (l) * ") ");
  case TFORMAT:
    return up;
  case TABLE:
    return concat (up, "(" * as_string (l+1) * ",");
  case ROW:
    return concat (up, as_string (l+1) * ") ");
  case CELL:
    return up;
  case WITH:
    return concat (up, get_with_text (st), " ");
  case DRD_PROPS:
    if (l == 0)
      return concat (up, "drd property(variable) ");
    if ((l&1) == 1)
      return concat (up, "drd property(" * as_string (l/2+1) * ") ");
    return concat (up, "value(" * as_string (l/2) * ") ");
  case COMPOUND:
    if (N(st) >= 1 && is_atomic (st[0]))
      return concat (up, as_string (st[0]) * " ");
    else
      return concat (up, "compound ");
  case HLINK:
    if (N(st) >= 2)
      return concat (up, "hyperlink(" * as_string (st[1]) * ") ");
    else
      return concat (up, "hyperlink ");
  case TUPLE:
    return concat (up, "tuple(" * as_string (l+1) * ") ");
  case ATTR:
    if ((l&1) == 0)
      return concat (up, "variable(" * as_string (l/2+1) * ") ");
    else
      return concat (up, "value(" * as_string (l/2+1) * ") ");
  case SPECIFIC:
    return concat (up, "texmacs ");
  case ANIM_CONSTANT:
    if (l == 0)
      return concat (up, "anim-constant ");
    else return up;
  case ANIM_TRANSLATE:
    if (l == 0)
      return concat (up, "anim-translate ");
    else return up;
  case ANIM_PROGRESSIVE:
    if (l == 0)
      return concat (up, "anim-progressive ");
    else return up;
  default:
    return concat (up, drd->get_name (L(st)) * " ");
  }
}

Here is the call graph for this function:

Here is the caller graph for this function:

void edit_interface_rep::compute_env_rects ( path  p,
rectangles rs,
bool  recurse 
)

Definition at line 290 of file edit_interface.cpp.

                                                                           {
  if (p == rp) return;
  tree st= subtree (et, p);
  if ((is_func (st, TABLE) || is_func (st, SUBTABLE)) &&
      recurse && get_preference ("show table cells") == "on") {
    rectangles rl;
    for (int i=0; i<N(st); i++) {
      if (is_func (st[i], ROW))
        for (int j=0; j<N(st[i]); j++) {
          selection sel= eb->find_check_selection (p*i*j*0, p*i*j*1);
          rectangles rsel= copy (thicken (sel->rs, 0, 2 * pixel));
          if (i > 0 && is_func (st[i-1], ROW) && j < N(st[i-1])) {
            selection bis= eb->find_check_selection (p*(i-1)*j*0, p*(i-1)*j*1);
            rectangles rbis= copy (thicken (bis->rs, 0, 2 * pixel));
            correct_adjacent (rbis, rsel);
          }
          if (i+1 < N(st) && is_func (st[i+1], ROW) && j < N(st[i+1])) {
            selection bis= eb->find_check_selection (p*(i+1)*j*0, p*(i+1)*j*1);
            rectangles rbis= copy (thicken (bis->rs, 0, 2 * pixel));
            correct_adjacent (rsel, rbis);
          }
          rectangles selp= thicken (rsel,  pixel/2,  pixel/2);
          rectangles selm= thicken (rsel, -pixel/2, -pixel/2);
          rl << simplify (::correct (selp - selm));
        }
    }
    rs << simplify (rl);
    if (recurse) compute_env_rects (path_up (p), rs, recurse);
  }
  else if (is_atomic (st) ||
           drd->is_child_enforcing (st) ||
           //is_document (st) || is_concat (st) ||
           is_func (st, TABLE) || is_func (st, SUBTABLE) ||
           is_func (st, ROW) || is_func (st, TFORMAT) ||
           is_graphical (st) ||
           (is_func (st, WITH) && is_graphical (st[N(st)-1])) ||
           (is_func (st, WITH) && is_graphical_text (st[N(st)-1])) ||
           (is_compound (st, "math", 1) &&
            is_compound (subtree (et, path_up (p)), "input")))
    compute_env_rects (path_up (p), rs, recurse);
  else {
    int new_mode= DRD_ACCESS_NORMAL;
    if (get_init_string (MODE) == "src") new_mode= DRD_ACCESS_SOURCE;
    int old_mode= set_access_mode (new_mode);
    tree st= subtree (et, p);
    if (is_accessible_cursor (et, p * right_index (st)) || in_source ()) {
      bool right;
      path p1= p * 0, p2= p * 1, q1, q2;
      if (is_script (subtree (et, p), right)) {
       p1= start (et, p * 0);
       p2= end   (et, p * 0);
      }
      if (is_func (st, CELL)) { q1= p1; q2= p2; }
      else selection_correct (p1, p2, q1, q2);
      selection sel= eb->find_check_selection (q1, q2);
      if (N(focus_get ()) >= N(p))
        if (!recurse || get_preference ("show full context") == "on")
          rs << outline (sel->rs, pixel);
    }
    set_access_mode (old_mode);
    if (recurse || N(rs) == 0)
      compute_env_rects (path_up (p), rs, recurse);
  }
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 161 of file edit_footer.cpp.

                                                     {
  tree r= "";
  if (N(st) >= 2) {
    switch (L (st)) {
    case VAR_WIDE:
      r= concat ("under ", get_accent_type (as_string (st[1]))); break;
    default: ;
    }
  }
  if (r == "" && N(st) >= 1) {
    switch (L (st)) {
    case HSPACE:
      r= concat ("space"); break;
    case VAR_VSPACE:
      r= concat ("vertical space before");
      break;
    case VSPACE:
      r= concat ("vertical space"); break;
    case SPACE:
      r= concat ("space"); break;
    case _FLOAT:
      r= (is_atomic (st[0])? st[0]->label: string ("float")); break;
    case MID:
      r= concat ("middle ", as_symbol (st[0])); break;
    case RIGHT:
      r= concat ("close ", as_symbol (st[0])); break;
    case BIG:
      r= concat ("big ", as_symbol (st[0])); break;
    case LPRIME:
      r= concat ("left prime ", as_string (st[0])); break;
    case LONG_ARROW:
      r= concat ("long arrow ", as_string (st[0])); break;
    case RPRIME:
      r= concat ("prime ", as_string (st[0])); break;
    case SQRT:
      r= tree ((char*) ((N(st)==1)? "square root": "n-th root")); break;
    case WIDE:
      r= tree (get_accent_type (as_string (st[1]))); break;
    case ASSIGN:
      r= concat ("assign ", as_string (st[0])); break;
    case WITH:
      r= concat ("with ", get_with_text (st)); break;
    case PROVIDES:
      r= concat ("provides ", as_string (st[0])); break;
    case VALUE:
      r= concat ("value ", as_string (st[0])); break;
    case QUOTE_VALUE:
      r= concat ("quoted value ", as_string (st[0])); break;
    case ARG:
      r= concat ("argument ", as_string (st[0])); break;
    case QUOTE_ARG:
      r= concat ("quoted argument ", as_string (st[0])); break;
    case COMPOUND:
      if (is_atomic (st[0])) r= as_string (st[0]);
      else r= "compound";
      break;
    case INCLUDE:
      r= concat ("include ", as_string (st[0])); break;
    case INACTIVE:
      r= concat ("inactive ", drd->get_name (L(st[0]))); break;
    case VAR_INACTIVE:
      r= concat ("inactive ", drd->get_name (L(st[0]))); break;
    case LABEL:
      r= concat ("label: ", as_string (st[0])); break;
    case REFERENCE:
      r= concat ("reference: ", as_string (st[0])); break;
    case PAGEREF:
      r= concat ("page reference: ", as_string (st[0])); break;
    case WRITE:
      r= concat ("write to ", as_string (st[0])); break;
    case SPECIFIC:
      r= concat ("specific ", as_string (st[0])); break;
    case IMAGE:
      r= concat ("image"); break;
    default: ;
    }
  }
  if (r == "") {
    switch (L (st)) {
    case IMAGE: r= "image"; break;
    default: r= drd->get_name (L(st));
    }
  }
  if (last_item (tp) == 0) r= concat ("before ", r);
  return r;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 106 of file edit_footer.cpp.

                                                {
  string r;
  language lan= get_env_language ();
  int end  = last_item (tp);
  int start= end;
  tm_char_backwards (st->label, start);
  r= st->label (start, end);
  if (r == "") r= "start";
  if (r == " ") r= "space";
  if (r == "space" && get_env_string (MODE) == "math") r= "apply";
  return r;
}

Here is the call graph for this function:

Here is the caller graph for this function:

void widget_rep::connect ( slot  s,
widget  w2,
slot  s2 
) [virtual, inherited]

Definition at line 150 of file widget.cpp.

                                               {
  widget_connection con (this, s, w2.rep, s2);
  insert (out, con);
  insert (w2->in, con);
}

Here is the call graph for this function:

Here is the caller graph for this function:

virtual void editor_rep::correct ( path  p) [pure virtual, inherited]

Implemented in edit_text_rep.

Here is the caller graph for this function:

virtual void editor_rep::correct_concat ( path  p,
int  done = 0 
) [pure virtual, inherited]

Implemented in edit_text_rep.

Here is the caller graph for this function:

Definition at line 171 of file edit_interface.cpp.

                                    {
  path sp= find_innermost_scroll (eb, tp);
  cursor cu= get_cursor ();
  if (is_nil (sp)) {
    update_visible ();
    cu->y1 -= 2*pixel; cu->y2 += 2*pixel;
    if ((cu->ox+ ((SI) (cu->y1 * cu->slope)) <  vx1) ||
       (cu->ox+ ((SI) (cu->y2 * cu->slope)) >= vx2) ||
       (cu->oy+ cu->y1 <  vy1) ||
       (cu->oy+ cu->y2 >= vy2))
      {
       scroll_to (cu->ox- ((vx2-vx1)>>1), cu->oy+ ((vy2-vy1)>>1));
       send_invalidate_all (this);
      }
  }
  else {
    SI x, y, sx, sy;
    rectangle outer, inner;
    find_canvas_info (eb, sp, x, y, sx, sy, outer, inner);
    if ((cu->ox+ ((SI) (cu->y1 * cu->slope)) < x + outer->x1) ||
       (cu->ox+ ((SI) (cu->y2 * cu->slope)) > x + outer->x2))
      {
       SI tx= inner->x2 - inner->x1;
       SI cx= outer->x2 - outer->x1;
       if (tx > cx) {
         SI outer_cx= cu->ox - x;
         SI inner_cx= outer_cx - sx;
         SI dx= inner_cx - inner->x1;
         double p= 100.0 * ((double) (dx - (cx>>1))) / ((double) (tx-cx));
         p= max (min (p, 100.0), 0.0);
         tree old_xt= eb[path_up (sp)]->get_info ("scroll-x");
         tree new_xt= as_string (p) * "%";
         if (new_xt != old_xt && is_accessible (obtain_ip (old_xt))) {
           object fun= symbol_object ("tree-set");
           object cmd= list_object (fun, old_xt, new_xt);
           exec_delayed (scheme_cmd (cmd));
           temp_invalid_cursor= true;
         }
       }
      }
    if ((cu->oy+ cu->y1 < y + outer->y1) ||
       (cu->oy+ cu->y2 > y + outer->y2))
      {
       SI ty= inner->y2 - inner->y1;
       SI cy= outer->y2 - outer->y1;
       if (ty > cy) {
         SI outer_cy= cu->oy + ((cu->y1 + cu->y2) >> 1) - y;
         SI inner_cy= outer_cy - sy;
         SI dy= inner_cy - inner->y1;
         double p= 100.0 * ((double) (dy - (cy>>1))) / ((double) (ty-cy));
         p= max (min (p, 100.0), 0.0);
         tree old_yt= eb[path_up (sp)]->get_info ("scroll-y");
         tree new_yt= as_string (p) * "%";
         if (new_yt != old_yt && is_accessible (obtain_ip (old_yt))) {
           object fun= symbol_object ("tree-set");
           object cmd= list_object (fun, old_yt, new_yt);
           exec_delayed (scheme_cmd (cmd));
           temp_invalid_cursor= true;
         }
       }
      }
  }
}

Here is the call graph for this function:

Here is the caller graph for this function:

Implements editor_rep.

Definition at line 202 of file edit_complete.cpp.

                                           {
  if (!is_tuple (r)) return;
  int i, n= N(r);
  string prefix;
  array<string> compls;
  for (i=0; i<n; i++)
    if (is_atomic (r[i])) {
      string l= r[i]->label;
      if (is_quoted (l)) l= scm_unquote (l);
      if (prefix == "") prefix= l;
      else compls << l;
    }
  // cout << prefix << ", " << compls << LF;

  if ((prefix == "") || (N(compls) == 0)) return;
  complete_start (prefix, compls);
}

Here is the call graph for this function:

virtual void editor_rep::cut ( path  p) [pure virtual, inherited]

Implemented in edit_select_rep.

Here is the caller graph for this function:

virtual void editor_rep::cut ( path  start,
path  end 
) [pure virtual, inherited]

Implemented in edit_select_rep.

void widget_rep::deconnect ( slot  s,
widget  w2,
slot  s2 
) [virtual, inherited]

Definition at line 157 of file widget.cpp.

                                                 {
  widget_connection con (this, s, w2.rep, s2);
  remove (out, con);
  remove (w2->in, con);
}
virtual bool editor_rep::defined_at_cursor ( string  var_name) [pure virtual, inherited]

Implemented in edit_typeset_rep.

virtual bool editor_rep::defined_at_init ( string  var_name) [pure virtual, inherited]

Implemented in edit_typeset_rep.

virtual bool editor_rep::defined_in_init ( string  var_name) [pure virtual, inherited]

Implemented in edit_typeset_rep.

virtual double editor_rep::divide_lengths ( string  l1,
string  l2 
) [pure virtual, inherited]

Implemented in edit_typeset_rep.

Definition at line 107 of file edit_repaint.cpp.

                                                           {
  int i;
  ren->set_color (light_grey);
  ren->set_line_style (pixel);
  for (i=1; i<N(eb[0]); i++) {
    SI y= eb->sy(0)+ eb[0]->sy2(i);
    if ((y >= r->y1) && (y < r->y2))
      ren->line (r->x1, y, r->x2, y);
  }
  draw_surround (ren, r);
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 55 of file edit_repaint.cpp.

                                             {
  if (!temp_invalid_cursor && (got_focus || full_screen)) {
    cursor cu= get_cursor();
    if (!inside_active_graphics ()) {
      cu->y1 -= 2*pixel; cu->y2 += 2*pixel;
      SI x1= cu->ox + ((SI) (cu->y1 * cu->slope)), y1= cu->oy + cu->y1;
      SI x2= cu->ox + ((SI) (cu->y2 * cu->slope)), y2= cu->oy + cu->y2;
      ren->set_line_style (pixel);
      string mode= get_env_string (MODE);
      string family, series;
      if ((mode == "text") || (mode == "src")) {
       family= get_env_string (FONT_FAMILY);
       series= get_env_string (FONT_SERIES);
      }
      else if (mode == "math") {
       family= get_env_string (MATH_FONT_FAMILY);
       series= get_env_string (MATH_FONT_SERIES);
      }
      else if (mode == "prog") {
       family= get_env_string (PROG_FONT_FAMILY);
       series= get_env_string (PROG_FONT_SERIES);
      }
      if (cu->valid) {
       if (mode == "math")
         ren->set_color (rgb_color (192, 0, 255));
       else ren->set_color (red);
      }
      else ren->set_color (green);
      SI lserif= (series=="bold"? 2*pixel: pixel), rserif= pixel;
      if (family == "ss") lserif= rserif= 0;
      ren->line (x1-lserif, y1, x1+rserif, y1);
      if (y1<=y2-pixel) {
       ren->line (x1, y1, x2, y2-pixel);
       if (series == "bold") ren->line (x1-pixel, y1, x2-pixel, y2-pixel);
       ren->line (x2-lserif, y2-pixel, x2+rserif, y2-pixel);
      }
    }
  }
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 36 of file edit_repaint.cpp.

                                          {
  if (!full_screen) {
    if (!is_nil (env_rects)) {
      ren->set_color (rgb_color (0, 85, 85, 24));
      ren->draw_rectangles (env_rects);
    }
    if (!is_nil (foc_rects)) {
      ren->set_color (rgb_color (0, 255, 255));
      ren->draw_rectangles (foc_rects);
    }
    if (!is_nil (sem_rects)) {
      if (sem_correct) ren->set_color (rgb_color (112, 208, 112));
      else ren->set_color (rgb_color (208, 144, 80));
      ren->draw_rectangles (sem_rects);
    }
  }
}

Here is the call graph for this function:

Here is the caller graph for this function:

virtual void editor_rep::draw_graphical_object ( renderer  ren) [pure virtual, inherited]

Implemented in edit_graphics_rep.

Here is the caller graph for this function:

Definition at line 136 of file edit_repaint.cpp.

                                               {
  if (got_focus || full_screen) {
    cursor cu= get_cursor();
    if (over_graphics(cu->ox, cu->oy) && inside_active_graphics ()) {
      eval ("(graphics-reset-context 'graphics-cursor)");
      draw_graphical_object (ren);
      string tm_curs= as_string (eval ("graphics-texmacs-pointer"));
      if (tm_curs != "none") {
       if (tm_curs == "graphics-cross") {
         ren->set_line_style (pixel);
         ren->set_color (red);
         ren->line (cu->ox, cu->oy-5*pixel, cu->ox, cu->oy+5*pixel);
         ren->line (cu->ox-5*pixel, cu->oy, cu->ox+5*pixel, cu->oy);
        }
       else if (tm_curs == "graphics-cross-arrows") {
         static int s= 6*pixel, a= 2*pixel;
         ren->set_line_style (pixel);
         ren->set_color (red);
         ren->line (cu->ox, cu->oy-s, cu->ox, cu->oy+s);
         ren->line (cu->ox-s, cu->oy, cu->ox+s, cu->oy);
         ren->line (cu->ox, cu->oy-s,cu->ox-a, cu->oy-s+a);
         ren->line (cu->ox, cu->oy-s, cu->ox+a, cu->oy-s+a);
         ren->line (cu->ox, cu->oy+s, cu->ox-a, cu->oy+s-a);
         ren->line (cu->ox, cu->oy+s, cu->ox+a, cu->oy+s-a);
         ren->line (cu->ox-s, cu->oy, cu->ox-s+a, cu->oy+a);
         ren->line (cu->ox-s, cu->oy, cu->ox-s+a, cu->oy-a);
         ren->line (cu->ox+s, cu->oy, cu->ox+s-a, cu->oy+a);
         ren->line (cu->ox+s, cu->oy, cu->ox+s-a, cu->oy-a);
        }
      }
    }
    else eval ("(graphics-reset-context 'text-cursor)");
  }
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 191 of file edit_repaint.cpp.

                                                        {
  renderer win= get_renderer (this);
  win->set_shrinking_factor (sfactor);
  ren->set_shrinking_factor (sfactor);
  draw_context (ren, r);
  draw_env (ren);
  draw_selection (ren);
  draw_graphics (ren);
  draw_cursor (ren); // the text cursor must be drawn over the graphical object
  ren->set_shrinking_factor (1);
  win->set_shrinking_factor (1);
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 172 of file edit_repaint.cpp.

                                                       {
  // draw surroundings
  tree bg= get_init_value (BG_COLOR);
  ren->set_background_pattern (bg);
  clear_pattern_rectangles (ren, rectangles (translate (r, ren->ox, ren->oy)));
  draw_surround (ren, r);

  // predraw cursor
  renderer win= get_renderer (this);
  draw_cursor (ren);
  rectangles l= copy_always;
  while (!is_nil (l)) {
    rectangle lr (l->item);
    win->put_shadow (ren, lr->x1, lr->y1, lr->x2, lr->y2);
    l= l->next;
  }
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 120 of file edit_repaint.cpp.

                                                {
  if (!is_nil (locus_rects)) {
    ren->set_color (rgb_color (32, 160, 96));
    ren->draw_rectangles (locus_rects);
  }
  if (made_selection && !is_nil (selection_rects)) {
    ren->set_color (table_selection? rgb_color (192, 0, 255): red);
#ifdef QTTEXMACS
    ren->draw_selection (selection_rects);
#else
    ren->draw_rectangles (selection_rects);
#endif
  }
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 96 of file edit_repaint.cpp.

                                                            {
  ren->set_background (light_grey);
  string medium= get_init_string (PAGE_MEDIUM);
  if ((medium == "papyrus") || (medium == "paper"))
    ren->clear (max (eb->x2, r->x1), r->y1,
                r->x2, min (eb->y2+ 2*pixel, r->y2));
  else if (medium == "paper")
    ren->clear (r->x1, r->y1, r->x2, min (eb->y1, r->y2));
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 23 of file edit_repaint.cpp.

                                                          {
  nr_painted=0;
  bool tp_found= false;
  tree bg= get_init_value (BG_COLOR);
  ren->set_background_pattern (bg);
  refresh_needed= do_animate;
  refresh_next  = next_animate;
  eb->redraw (ren, eb->find_box_path (tp, tp_found), l);
  do_animate  = refresh_needed;
  next_animate= refresh_next;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 205 of file edit_repaint.cpp.

                                                 {
  renderer win= get_renderer (this);
  rectangle sr= r / sfactor;
  win->new_shadow (shadow);
  win->get_shadow (shadow, sr->x1, sr->y1, sr->x2, sr->y2);
  renderer ren= shadow;

  rectangles l;
  win->set_shrinking_factor (sfactor);
  ren->set_shrinking_factor (sfactor);
  draw_pre (ren, r);
  draw_text (ren, l);
  ren->set_shrinking_factor (1);
  win->set_shrinking_factor (1);

  if (ren->interrupted ()) {
    ren->set_shrinking_factor (sfactor);
    l= l & rectangles (translate (r, ren->ox, ren->oy));
    simplify (l);
    copy_always= translate (copy_always, ren->ox, ren->oy);
    while (!is_nil (copy_always)) {
      l= rectangles (copy_always->item, l);
      copy_always= copy_always->next;
    }
    ren->set_shrinking_factor (1);

    draw_post (ren, r);
    while (!is_nil(l)) {
      SI x1= (l->item->x1)/sfactor - ren->ox - PIXEL;
      SI y1= (l->item->y1)/sfactor - ren->oy - PIXEL;
      SI x2= (l->item->x2)/sfactor - ren->ox + PIXEL;
      SI y2= (l->item->y2)/sfactor - ren->oy + PIXEL;
      ren->outer_round (x1, y1, x2, y2);
      win->put_shadow (ren, x1, y1, x2, y2);
      l= l->next;
    }
  }
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 245 of file edit_repaint.cpp.

                                                 {
  renderer win= get_renderer (this);
  //cout << "Redraw " << (r/(sfactor*PIXEL)) << "\n";

  /* Verify whether the backing store is still valid */
  if (!is_nil (stored_rects)) {
    SI w1, h1, w2, h2;
    win   -> get_extents (w1, h1);
    stored -> get_extents (w2, h2);
    if (stored->ox != win->ox || stored->oy != win->oy ||
       w1 != w2 || h1 != h2) {
      // cout << "x"; cout.flush ();
      stored_rects= rectangles ();
    }
  }

  /* Either draw with backing store or regenerate */
  rectangle sr= r / sfactor;
  if (is_nil (rectangles (r) - stored_rects) && !is_nil (stored_rects)) {
    // cout << "*"; cout.flush ();
    win->new_shadow (shadow);
    win->get_shadow (shadow, sr->x1, sr->y1, sr->x2, sr->y2);
    shadow->put_shadow (stored, sr->x1, sr->y1, sr->x2, sr->y2);
    draw_post (shadow, r);
    win->put_shadow (shadow, sr->x1, sr->y1, sr->x2, sr->y2);
  }
  else {
    // cout << "."; cout.flush ();
    draw_with_shadow (r);
    if (!win->interrupted ()) {
      if (inside_active_graphics ()) {
       shadow->new_shadow (stored);
       shadow->get_shadow (stored, sr->x1, sr->y1, sr->x2, sr->y2);
       //stored_rects= /*stored_rects |*/ rectangles (r);
       stored_rects= simplify (rectangles (r, stored_rects));
       //cout << "Stored: " << stored_rects << "\n";
       //cout << "M"; cout.flush ();
      }
      draw_post (shadow, r);
      win->put_shadow (shadow, sr->x1, sr->y1, sr->x2, sr->y2);
    }
    else draw_post (win, r);
  }
}

Here is the call graph for this function:

Here is the caller graph for this function:

virtual void editor_rep::drd_update ( ) [pure virtual, inherited]

Implemented in edit_typeset_rep.

Here is the caller graph for this function:

virtual void editor_rep::edit_special ( ) [pure virtual, inherited]

Implemented in edit_main_rep.

virtual void editor_rep::edit_test ( ) [pure virtual, inherited]

Implemented in edit_main_rep.

void edit_interface_rep::emulate_keyboard ( string  keys,
string  action = "" 
) [virtual]

Implements editor_rep.

Definition at line 181 of file edit_keyboard.cpp.

                                                                {
  string s= keys;
  while (s != "") {
    int i;
    for (i=1; i<N(s); i++)
      if (s[i]==' ') break;
    call ("keyboard-press", object (s (0, i)), object ((double) 0));
    if (i<N(s)) i++;
    s= s (i, N(s));
  }
  if (N (action) != 0)
    set_message (concat ("You can also obtain ", action, " by typing ", keys),
               action);
}

Here is the call graph for this function:

virtual void editor_rep::end_editing ( ) [pure virtual, inherited]

Implemented in edit_modify_rep.

Here is the caller graph for this function:

virtual tree editor_rep::exec_html ( tree  t,
path  p 
) [pure virtual, inherited]

Implemented in edit_typeset_rep.

Here is the caller graph for this function:

virtual tree editor_rep::exec_html ( tree  t) [pure virtual, inherited]

Implemented in edit_typeset_rep.

virtual tree editor_rep::exec_latex ( tree  t,
path  p 
) [pure virtual, inherited]

Implemented in edit_typeset_rep.

Here is the caller graph for this function:

virtual tree editor_rep::exec_latex ( tree  t) [pure virtual, inherited]

Implemented in edit_typeset_rep.

virtual tree editor_rep::exec_texmacs ( tree  t,
path  p 
) [pure virtual, inherited]

Implemented in edit_typeset_rep.

virtual tree editor_rep::exec_texmacs ( tree  t) [pure virtual, inherited]

Implemented in edit_typeset_rep.

virtual tree editor_rep::exec_verbatim ( tree  t,
path  p 
) [pure virtual, inherited]

Implemented in edit_typeset_rep.

Here is the caller graph for this function:

virtual tree editor_rep::exec_verbatim ( tree  t) [pure virtual, inherited]

Implemented in edit_typeset_rep.

virtual void editor_rep::export_ps ( url  ps_name,
string  first = "1",
string  last = "1000000" 
) [pure virtual, inherited]

Implemented in edit_main_rep.

virtual path editor_rep::find_dynamic ( path  p) [pure virtual, inherited]

Implemented in edit_dynamic_rep.

virtual frame editor_rep::find_frame ( bool  last = false) [pure virtual, inherited]

Implemented in edit_graphics_rep.

Here is the caller graph for this function:

virtual bool editor_rep::find_graphical_region ( SI x1,
SI y1,
SI x2,
SI y2 
) [pure virtual, inherited]

Implemented in edit_graphics_rep.

Here is the caller graph for this function:

virtual grid editor_rep::find_grid ( ) [pure virtual, inherited]

Implemented in edit_graphics_rep.

virtual void editor_rep::find_limits ( point lim1,
point lim2 
) [pure virtual, inherited]

Implemented in edit_graphics_rep.

virtual tree editor_rep::find_point ( point  p) [pure virtual, inherited]

Implemented in edit_graphics_rep.

virtual path editor_rep::focus_get ( bool  skip_flag = true) [pure virtual, inherited]

Implemented in edit_select_rep.

Here is the caller graph for this function:

virtual void editor_rep::focus_on_this_editor ( ) [pure virtual, inherited]

Implemented in edit_main_rep.

Here is the caller graph for this function:

virtual void editor_rep::footer_eval ( string  s) [pure virtual, inherited]

Implemented in edit_main_rep.

void edit_interface_rep::full_screen_mode ( bool  flag) [virtual]

Implements editor_rep.

Definition at line 668 of file edit_interface.cpp.

                                               {
  full_screen= flag;
  send_invalidate_all (this);
}

Here is the call graph for this function:

virtual void editor_rep::generate_aux ( string  which = "") [pure virtual, inherited]

Implemented in edit_process_rep.

virtual void editor_rep::generate_bibliography ( string  bib,
string  sty,
string  fname 
) [pure virtual, inherited]

Implemented in edit_process_rep.

virtual void editor_rep::generate_glossary ( string  glo) [pure virtual, inherited]

Implemented in edit_process_rep.

virtual void editor_rep::generate_index ( string  idx) [pure virtual, inherited]

Implemented in edit_process_rep.

virtual void editor_rep::generate_table_of_contents ( string  toc) [pure virtual, inherited]

Implemented in edit_process_rep.

virtual bool editor_rep::get_bool_property ( string  what) [protected, pure virtual, inherited]

Implemented in edit_main_rep.

virtual QWidget* simple_widget_rep::get_canvas ( ) [inline, virtual, inherited]

Get a texmacs canvas (if available).

Reimplemented from qt_widget_rep.

Definition at line 46 of file qt_simple_widget.hpp.

{ return tm_canvas(); }

Here is the call graph for this function:

Here is the caller graph for this function:

virtual string editor_rep::get_cell_mode ( ) [pure virtual, inherited]

Implemented in edit_table_rep.

Definition at line 41 of file qt_view_widget.hpp.

{  return current_renderer; }

Here is the caller graph for this function:

Implements editor_rep.

Definition at line 171 of file edit_mouse.cpp.

                                {
  if (inside_graphics ()) {
    frame f= find_frame ();
    if (!is_nil (f)) {
      point p= f [point (last_x, last_y)];
      p= f (adjust (p));
      SI x= (SI) p[0];
      SI y= (SI) p[1];
      return cursor (x, y, 0, -5*pixel, 5*pixel, 1.0);
    }
  }
  return copy (the_cursor ());
}

Here is the call graph for this function:

Here is the caller graph for this function:

virtual void editor_rep::get_data ( new_data data) [pure virtual, inherited]

Implemented in edit_typeset_rep.

virtual double editor_rep::get_env_double ( string  var_name) [pure virtual, inherited]

Implemented in edit_typeset_rep.

Here is the caller graph for this function:

virtual int editor_rep::get_env_int ( string  var_name) [pure virtual, inherited]

Implemented in edit_typeset_rep.

Here is the caller graph for this function:

virtual language editor_rep::get_env_language ( ) [pure virtual, inherited]

Implemented in edit_typeset_rep.

Here is the caller graph for this function:

virtual string editor_rep::get_env_string ( string  var_name) [pure virtual, inherited]

Implemented in edit_typeset_rep.

Here is the caller graph for this function:

virtual tree editor_rep::get_env_value ( string  var_name,
path  p 
) [pure virtual, inherited]

Implemented in edit_typeset_rep.

Here is the caller graph for this function:

virtual tree editor_rep::get_env_value ( string  var_name) [pure virtual, inherited]

Implemented in edit_typeset_rep.

virtual hashmap<string,tree> editor_rep::get_fin ( ) [protected, pure virtual, inherited]

Implemented in edit_typeset_rep.

virtual tree editor_rep::get_graphical_object ( ) [pure virtual, inherited]

Implemented in edit_graphics_rep.

virtual tree editor_rep::get_graphics ( ) [pure virtual, inherited]

Implemented in edit_graphics_rep.

Here is the caller graph for this function:

virtual hashmap<string,tree> editor_rep::get_init ( ) [protected, pure virtual, inherited]

Implemented in edit_typeset_rep.

virtual double editor_rep::get_init_double ( string  var_name) [pure virtual, inherited]

Implemented in edit_typeset_rep.

virtual int editor_rep::get_init_int ( string  var_name) [pure virtual, inherited]

Implemented in edit_typeset_rep.

virtual string editor_rep::get_init_string ( string  var_name) [pure virtual, inherited]

Implemented in edit_typeset_rep.

Here is the caller graph for this function:

virtual tree editor_rep::get_init_value ( string  var_name) [pure virtual, inherited]

Implemented in edit_typeset_rep.

Here is the caller graph for this function:

Implements editor_rep.

Definition at line 22 of file edit_keyboard.cpp.

                                    {
  return input_mode;
}
virtual int editor_rep::get_int_property ( string  what) [protected, pure virtual, inherited]

Implemented in edit_main_rep.

virtual tree editor_rep::get_labels ( ) [pure virtual, inherited]

Implemented in edit_cursor_rep.

Here is the caller graph for this function:

virtual url editor_rep::get_name ( ) [pure virtual, inherited]

Implemented in edit_main_rep.

Here is the caller graph for this function:

Implements editor_rep.

Definition at line 110 of file edit_interface.cpp.

                                    {
  return pixel;
}
virtual scheme_tree editor_rep::get_property ( scheme_tree  what) [pure virtual, inherited]

Implemented in edit_main_rep.

virtual QMenu* qt_widget_rep::get_qmenu ( ) [inline, virtual, inherited]

This method must not give ownership of the menu to the caller, thus allowing menu caching at the TeXmacs level.

Called only by code which attaches root menus in the GUI elements.

Reimplemented in qt_ui_element_rep, and qt_menu_rep.

Definition at line 74 of file qt_widget.hpp.

{ return NULL; }
virtual bool editor_rep::get_save_aux ( ) [pure virtual, inherited]

Implemented in edit_process_rep.

virtual void editor_rep::get_selection ( path start,
path end 
) [protected, pure virtual, inherited]

Implemented in edit_select_rep.

Here is the caller graph for this function:

void edit_interface_rep::get_size ( SI wx,
SI wy 
)

Here is the caller graph for this function:

virtual string editor_rep::get_string_property ( string  what) [protected, pure virtual, inherited]

Implemented in edit_main_rep.

virtual tree editor_rep::get_style ( ) [pure virtual, inherited]

Implemented in edit_typeset_rep.

virtual typesetter editor_rep::get_typesetter ( ) [protected, pure virtual, inherited]

Implemented in edit_typeset_rep.

Here is the caller graph for this function:

Implements editor_rep.

Definition at line 688 of file edit_interface.cpp.

                                        {
  SI ox, oy, w, h;
  widget me= ::get_canvas (widget (cvw));
  ::get_position (me, ox, oy);
  ::get_size (me, w, h);
  SI vx1, vy1, vx2, vy2;
  SERVER (get_visible (vx1, vy1, vx2, vy2));
  ox -= vx1; oy -= vy2;
  return rectangle (ox, oy - h, ox + w, oy);
}

Here is the call graph for this function:

Implements editor_rep.

Definition at line 146 of file edit_interface.cpp.

                                       {
  update_visible ();
  return vy2 - vy1;
}

Here is the call graph for this function:

virtual double editor_rep::get_x ( ) [pure virtual, inherited]

Implemented in edit_graphics_rep.

virtual double editor_rep::get_y ( ) [pure virtual, inherited]

Implemented in edit_graphics_rep.

virtual void editor_rep::go_down ( ) [pure virtual, inherited]

Implemented in edit_cursor_rep.

virtual void editor_rep::go_end ( ) [pure virtual, inherited]

Implemented in edit_cursor_rep.

virtual void editor_rep::go_end_line ( ) [pure virtual, inherited]

Implemented in edit_cursor_rep.

virtual void editor_rep::go_end_of ( tree_label  what) [pure virtual, inherited]

Implemented in edit_cursor_rep.

virtual void editor_rep::go_end_paragraph ( ) [pure virtual, inherited]

Implemented in edit_cursor_rep.

virtual void editor_rep::go_end_with ( string  var,
string  val 
) [pure virtual, inherited]

Implemented in edit_cursor_rep.

virtual void editor_rep::go_left ( ) [pure virtual, inherited]

Implemented in edit_cursor_rep.

virtual void editor_rep::go_left_physical ( ) [pure virtual, inherited]

Implemented in edit_cursor_rep.

virtual void editor_rep::go_page_down ( ) [pure virtual, inherited]

Implemented in edit_cursor_rep.

virtual void editor_rep::go_page_up ( ) [pure virtual, inherited]

Implemented in edit_cursor_rep.

virtual void editor_rep::go_right ( ) [pure virtual, inherited]

Implemented in edit_cursor_rep.

virtual void editor_rep::go_right_physical ( ) [pure virtual, inherited]

Implemented in edit_cursor_rep.

virtual void editor_rep::go_start ( ) [pure virtual, inherited]

Implemented in edit_cursor_rep.

virtual void editor_rep::go_start_line ( ) [pure virtual, inherited]

Implemented in edit_cursor_rep.

virtual void editor_rep::go_start_of ( tree_label  what) [pure virtual, inherited]

Implemented in edit_cursor_rep.

virtual void editor_rep::go_start_paragraph ( ) [pure virtual, inherited]

Implemented in edit_cursor_rep.

virtual void editor_rep::go_start_with ( string  var,
string  val 
) [pure virtual, inherited]

Implemented in edit_cursor_rep.

virtual void editor_rep::go_to ( SI  x,
SI  y,
bool  absolute = true 
) [pure virtual, inherited]

Implemented in edit_cursor_rep.

Here is the caller graph for this function:

virtual void editor_rep::go_to ( path  p) [pure virtual, inherited]

Implemented in edit_cursor_rep.

virtual void editor_rep::go_to_argument ( path  p,
bool  start_flag 
) [pure virtual, inherited]

Implemented in edit_dynamic_rep.

virtual void editor_rep::go_to_border ( path  p,
bool  at_start 
) [pure virtual, inherited]

Implemented in edit_cursor_rep.

Here is the caller graph for this function:

virtual void editor_rep::go_to_correct ( path  p) [pure virtual, inherited]

Implemented in edit_cursor_rep.

Here is the caller graph for this function:

virtual void editor_rep::go_to_end ( path  p) [pure virtual, inherited]

Implemented in edit_cursor_rep.

Here is the caller graph for this function:

virtual void editor_rep::go_to_here ( ) [pure virtual, inherited]

Implemented in edit_cursor_rep.

Here is the caller graph for this function:

virtual void editor_rep::go_to_label ( string  s) [pure virtual, inherited]

Implemented in edit_cursor_rep.

virtual void editor_rep::go_to_start ( path  p) [pure virtual, inherited]

Implemented in edit_cursor_rep.

Here is the caller graph for this function:

virtual void editor_rep::go_up ( ) [pure virtual, inherited]

Implemented in edit_cursor_rep.

virtual tree editor_rep::graphical_select ( double  x,
double  y 
) [pure virtual, inherited]

Implemented in edit_graphics_rep.

virtual tree editor_rep::graphical_select ( double  x1,
double  y1,
double  x2,
double  y2 
) [pure virtual, inherited]

Implemented in edit_graphics_rep.

bool attribute_widget_rep::handle ( event  ev) [virtual, inherited]

Reimplemented from basic_widget_rep.

Reimplemented in popup_button_rep, extend_widget_rep, minibar_widget_rep, and scroll_widget_rep.

Definition at line 124 of file attribute_widget.cpp.

                                      {
  if (!is_extra_width_event (ev))
    if (basic_widget_rep::handle (ev))
      return true;
  switch (ev->type) {
  case GET_INTEGER_EVENT:
    handle_get_integer (ev);
    return true;
  case GET_DOUBLE_EVENT:
    handle_get_double (ev);
    return true;
  case GET_STRING_EVENT:
    handle_get_string (ev);
    return true;
  case GET_COORD1_EVENT:
    handle_get_coord1 (ev);
    return true;
  case GET_COORD2_EVENT:
    handle_get_coord2 (ev);
    return true;
  case GET_COORD3_EVENT:
    handle_get_coord3 (ev);
    return true;
  case GET_COORD4_EVENT:
    handle_get_coord4 (ev);
    return true;

  case SET_INTEGER_EVENT:
    handle_set_integer (ev);
    return true;
  case SET_DOUBLE_EVENT:
    handle_set_double (ev);
    return true;
  case SET_STRING_EVENT:
    handle_set_string (ev);
    return true;
  case SET_COORD1_EVENT:
    handle_set_coord1 (ev);
    return true;
  case SET_COORD2_EVENT:
    handle_set_coord2 (ev);
    return true;
  case SET_COORD3_EVENT:
    handle_set_coord3 (ev);
    return true;
  case SET_COORD4_EVENT:
    handle_set_coord4 (ev);
    return true;
  }
  return false;
}

Here is the call graph for this function:

void basic_widget_rep::handle_alarm ( alarm_event  ev) [virtual, inherited]

Reimplemented in ver_scrollbar_widget_rep, and hor_scrollbar_widget_rep.

Definition at line 182 of file basic_widget.cpp.

                                              {
  cout << "Alarm: " << ev->message << "\n";
}

Here is the caller graph for this function:

void simple_widget_rep::handle_attach_window ( attach_window_event  ev) [virtual, inherited]

Reimplemented from basic_widget_rep.

Definition at line 76 of file simple_wk_widget.cpp.

void simple_widget_rep::handle_clear ( clear_event  ev) [virtual, inherited]

Reimplemented from basic_widget_rep.

Definition at line 107 of file simple_wk_widget.cpp.

                                               {
  handle_clear (ev->x1, ev->y1, ev->x2, ev->y2);
}

Here is the call graph for this function:

void edit_interface_rep::handle_clear ( SI  x1,
SI  y1,
SI  x2,
SI  y2 
) [virtual]

Reimplemented from simple_widget_rep.

Definition at line 295 of file edit_repaint.cpp.

                                                            {
  renderer win= get_renderer (this);
  x1 *= sfactor; y1 *= sfactor; x2 *= sfactor; y2 *= sfactor;
  win->set_shrinking_factor (sfactor);
  tree bg= get_init_value (BG_COLOR);
  win->set_background_pattern (bg);
  win->clear_pattern (max (eb->x1, x1), max (eb->y1, y1),
                    min (eb->x2, x2), min (eb->y2, y2));
  draw_surround (win, rectangle (x1, y1, x2, y2));
  win->set_shrinking_factor (1);
}

Here is the call graph for this function:

void basic_widget_rep::handle_destroy ( destroy_event  ev) [virtual, inherited]

Reimplemented in file_chooser_widget_rep, wrapped_widget_rep, texmacs_widget_rep, and inputs_list_widget_rep.

Definition at line 145 of file basic_widget.cpp.

                                                  { (void) ev;
  int i;
  for (i=0; i<N(a); i++)
    a[i] << emit_destroy ();
}

Here is the call graph for this function:

Here is the caller graph for this function:

void basic_widget_rep::handle_find_child ( find_child_event  ev) [virtual, inherited]

Reimplemented in vertical_list_rep, tabs_widget_rep, horizontal_array_rep, horizontal_list_rep, and hsplit_widget_rep.

Definition at line 231 of file basic_widget.cpp.

                                                        {
  int& i= ev->which;
  for (i=0; i<N(a); i++)
    if ((ev->x >= a[i]->x1()-ox) && (ev->x < a[i]->x2()-ox) &&
       (ev->y >= a[i]->y1()-oy) && (ev->y < a[i]->y2()-oy)) return;
  i= -1;
}

Here is the call graph for this function:

Here is the caller graph for this function:

void attribute_widget_rep::handle_get_coord1 ( get_coord1_event  ev) [virtual, inherited]

Reimplemented in scrollable_widget_rep.

Definition at line 48 of file attribute_widget.cpp.

                                                            {
  WK_FAILED ("could not get coord1 attribute " * ev->which);
}

Here is the caller graph for this function:

void simple_widget_rep::handle_get_coord2 ( get_coord2_event  ev) [virtual, inherited]

Reimplemented from attribute_widget_rep.

Definition at line 123 of file simple_wk_widget.cpp.

                                                         {
  if (ev->which == "extra width") { ev->c1= ev->c2= 0; return; }
  else WK_FAILED ("could not get coord2 attribute " * ev->which);
}
void attribute_widget_rep::handle_get_coord3 ( get_coord3_event  ev) [virtual, inherited]

Definition at line 58 of file attribute_widget.cpp.

                                                            {
  WK_FAILED ("could not get coord3 attribute " * ev->which);
}

Here is the caller graph for this function:

void attribute_widget_rep::handle_get_coord4 ( get_coord4_event  ev) [virtual, inherited]

Reimplemented in scrollable_widget_rep.

Definition at line 63 of file attribute_widget.cpp.

                                                            {
  WK_FAILED ("could not get coord4 attribute " * ev->which);
}

Here is the caller graph for this function:

void attribute_widget_rep::handle_get_double ( get_double_event  ev) [virtual, inherited]

Definition at line 38 of file attribute_widget.cpp.

                                                            {
  WK_FAILED ("could not get double attribute " * ev->which);
}

Here is the caller graph for this function:

void attribute_widget_rep::handle_get_integer ( get_integer_event  ev) [virtual, inherited]

Definition at line 33 of file attribute_widget.cpp.

                                                              {
  WK_FAILED ("could not get integer attribute " * ev->which);
}

Here is the caller graph for this function:

void simple_widget_rep::handle_get_size ( get_size_event  ev) [inherited]

Definition at line 71 of file simple_wk_widget.cpp.

                                                     {
  handle_get_size_hint (ev->w, ev->h);
}

Here is the call graph for this function:

void edit_interface_rep::handle_get_size_hint ( SI w,
SI h 
) [virtual]

Reimplemented from simple_widget_rep.

Definition at line 716 of file edit_interface.cpp.

                                                      {
  gui_root_extents (w, h);
}

Here is the call graph for this function:

void attribute_widget_rep::handle_get_string ( get_string_event  ev) [virtual, inherited]

Reimplemented in file_chooser_widget_rep, input_widget_rep, and inputs_list_widget_rep.

Definition at line 43 of file attribute_widget.cpp.

                                                            {
  WK_FAILED ("could not get string attribute " * ev->which);
}

Here is the caller graph for this function:

void basic_widget_rep::handle_get_widget ( get_widget_event  ev) [virtual, inherited]

Reimplemented in texmacs_widget_rep, canvas_widget_rep, and switch_widget_rep.

Definition at line 99 of file basic_widget.cpp.

                                                        {
  int i;
  for (i=0; i<N(a); i++)
    if (name[i] == ev->which) {
      ev->w= a[i];
      return;
    }
  WK_FAILED ("could not get widget attribute " * ev->which);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void basic_widget_rep::handle_invalidate ( invalidate_event  ev) [virtual, inherited]

Definition at line 216 of file basic_widget.cpp.

                                                        {
  if (ev->all_flag) win->invalidate (x1()-ox, y1()-oy, x2()-ox, y2()-oy);
  else win->invalidate (ev->x1, ev->y1, ev->x2, ev->y2);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void simple_widget_rep::handle_keyboard_focus ( keyboard_focus_event  ev) [virtual, inherited]

Reimplemented from basic_widget_rep.

Definition at line 91 of file simple_wk_widget.cpp.

                                                                 {
  handle_keyboard_focus (ev->flag, ev->t);
}

Here is the call graph for this function:

void edit_interface_rep::handle_keyboard_focus ( bool  has_focus,
time_t  t 
) [virtual]

Reimplemented from simple_widget_rep.

Definition at line 235 of file edit_keyboard.cpp.

                                                                   {
  if (DEBUG_KEYBOARD) {
    if (has_focus) cout << "Keyboard] Got focus at " << t << "\n";
    else cout << "Keyboard] Lost focus at " << t << "\n";
  }
  if (got_focus != has_focus) {
    drag_left_reset ();
    drag_right_reset ();
  }
  got_focus= has_focus; (void) t;
  notify_change (THE_FOCUS);
  if (got_focus) {
    focus_on_this_editor ();
    notify_change (THE_DECORATIONS);
  }
  call ("keyboard-focus", object (has_focus), object ((double) t));
}

Here is the call graph for this function:

void basic_widget_rep::handle_keyboard_grab ( keyboard_grab_event  ev) [virtual, inherited]

Definition at line 222 of file basic_widget.cpp.

{ (void) ev; }

Here is the caller graph for this function:

void simple_widget_rep::handle_keypress ( keypress_event  ev) [virtual, inherited]

Reimplemented from basic_widget_rep.

Definition at line 86 of file simple_wk_widget.cpp.

                                                     {
  handle_keypress (ev->key, ev->t);
}

Here is the call graph for this function:

void edit_interface_rep::handle_keypress ( string  key,
time_t  t 
) [virtual]

Reimplemented from simple_widget_rep.

Definition at line 216 of file edit_keyboard.cpp.

                                                         {
  if (DEBUG_KEYBOARD)
    cout << "Keyboard] Pressed " << key << " at " << t << "\n";
  //time_t t1= texmacs_time ();
  if (is_nil (eb)) apply_changes ();
  start_editing ();
  string zero= "a"; zero[0]= '\0';
  string gkey= replace (key, zero, "<#0>");
  call ("keyboard-press", object (gkey), object ((double) t));
  notify_change (THE_DECORATIONS);
  end_editing ();
  //time_t t2= texmacs_time ();
  //if (t2 - t1 >= 10) cout << "handle_keypress took " << t2-t1 << "ms\n";
}

Here is the call graph for this function:

void simple_widget_rep::handle_mouse ( mouse_event  ev) [virtual, inherited]

Reimplemented from basic_widget_rep.

Definition at line 96 of file simple_wk_widget.cpp.

                                               {
  handle_mouse (ev->type, ev->x, ev->y, ev->mods, ev->t);
}

Here is the call graph for this function:

void edit_interface_rep::handle_mouse ( string  kind,
SI  x,
SI  y,
int  mods,
time_t  t 
) [virtual]

Reimplemented from simple_widget_rep.

Definition at line 428 of file edit_mouse.cpp.

                                                                          {
  if (is_nil (eb)) apply_changes ();
  start_editing ();
  x *= sfactor;
  y *= sfactor;
  //cout << kind << " (" << x << ", " << y << "; " << m << ")"
  //     << " at " << t << "\n";

  string rew= kind;
  rew= detect_left_drag ((void*) this, rew, x, y, t, 5 * PIXEL * sfactor);
  if (rew == "start-drag-left") {
    call_mouse_event (rew, left_x, left_y, m, t);
    delayed_call_mouse_event ("dragging-left", x, y, m, t);
  }
  else {
    rew= detect_right_drag ((void*) this, rew, x, y, t, 5 * PIXEL * sfactor);
    if (rew == "start-drag-right") {
      call_mouse_event (rew, right_x, right_y, m, t);
      delayed_call_mouse_event ("dragging-right", x, y, m, t);
    }
    else call_mouse_event (rew, x, y, m, t);
  }

  end_editing ();
}

Here is the call graph for this function:

void basic_widget_rep::handle_mouse_grab ( mouse_grab_event  ev) [virtual, inherited]

Reimplemented in popup_widget_rep.

Definition at line 225 of file basic_widget.cpp.

{ (void) ev; }

Here is the caller graph for this function:

void basic_widget_rep::handle_move ( move_event  ev) [virtual, inherited]

Definition at line 137 of file basic_widget.cpp.

                                            { (void) ev;
}

Here is the caller graph for this function:

void edit_interface_rep::handle_notify_resize ( SI  w,
SI  h 
) [virtual]

Reimplemented from simple_widget_rep.

Definition at line 721 of file edit_interface.cpp.

                                                    {
  (void) w; (void) h;
  notify_change (THE_TREE);
}

Here is the call graph for this function:

void basic_widget_rep::handle_position ( position_event  ev) [virtual, inherited]

Reimplemented in vertical_list_rep, balloon_decoration_widget_rep, scrollable_widget_rep, canvas_widget_rep, button_widget_rep, popup_widget_rep, horizontal_array_rep, tabs_widget_rep, horizontal_list_rep, hsplit_widget_rep, tile_rep, extend_widget_rep, and minibar_widget_rep.

Definition at line 130 of file basic_widget.cpp.

                                                    { (void) ev;
  int i;
  for (i=0; i<N(a); i++)
    a[i] << emit_position (0, 0, w, h, grav);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void basic_widget_rep::handle_refresh ( refresh_event  ev) [virtual, inherited]

Reimplemented in refresh_widget_rep.

Definition at line 210 of file basic_widget.cpp.

                                                  { (void) ev;
  for (int i=0; i<N(a); i++)
    a[i] << emit_refresh ();
}

Here is the call graph for this function:

Here is the caller graph for this function:

void simple_widget_rep::handle_repaint ( repaint_event  ev) [virtual, inherited]

Reimplemented from basic_widget_rep.

Definition at line 112 of file simple_wk_widget.cpp.

                                                   {
  handle_repaint (ev->x1, ev->y1, ev->x2, ev->y2);
}

Here is the call graph for this function:

void edit_interface_rep::handle_repaint ( SI  x1,
SI  y1,
SI  x2,
SI  y2 
) [virtual]

Reimplemented from simple_widget_rep.

Definition at line 308 of file edit_repaint.cpp.

                                                              {
  if (is_nil (eb)) apply_changes ();
  if (env_change != 0) {
    system_warning ("Invalid situation (" * as_string (env_change) * ")",
                  "(edit_interface_rep::handle_repaint)");
    return;
  }

  /*
  // In the past, we used the code below in order to hide the trace of
  // a moving cursor. This code is now incorrect, because the rectangle
  // (x1, y1)--(x2, y2) does not correspond to the repaint region clipping.
  // Nevertheless, the code seems no longer necessary. In case it would be,
  // it should be moved somewhere inside the internal repaint routines.
  SI extra= 3 * get_init_int (FONT_BASE_SIZE) * PIXEL / (2*sfactor);
  SI X1= (x1-extra) * sfactor, Y1= (y1-extra) * sfactor;
  SI X2= (x2+extra) * sfactor, Y2= (y2+extra) * sfactor;
  draw_with_stored (rectangle (X1, Y1, X2, Y2));
  */

  // cout << "Repainting\n";
  draw_with_stored (rectangle (x1, y1, x2, y2) * sfactor);
  if (last_change-last_update > 0)
    last_change = texmacs_time ();
  // cout << "Repainted\n";
}

Here is the call graph for this function:

void basic_widget_rep::handle_request_alarm ( request_alarm_event  ev) [virtual, inherited]

Definition at line 228 of file basic_widget.cpp.

{ (void) ev; }

Here is the caller graph for this function:

void simple_widget_rep::handle_resize ( resize_event  ev) [virtual, inherited]

Reimplemented from basic_widget_rep.

Definition at line 81 of file simple_wk_widget.cpp.

                                                 { (void) ev;
  handle_notify_resize (0, 0); // FIXME
}

Here is the call graph for this function:

void attribute_widget_rep::handle_set_coord1 ( set_coord1_event  ev) [virtual, inherited]

Reimplemented in scrollbar_rep.

Definition at line 87 of file attribute_widget.cpp.

                                                            {
  WK_FAILED ("could not set coord1 attribute " * ev->which);
}

Here is the caller graph for this function:

void simple_widget_rep::handle_set_coord2 ( set_coord2_event  ev) [virtual, inherited]

Reimplemented from attribute_widget_rep.

Definition at line 117 of file simple_wk_widget.cpp.

                                                         {
  if (ev->which == "extra width" && ev->c1 == 0 && ev->c2 == 0) return;
  else WK_FAILED ("could not set coord2 attribute " * ev->which);
}
void attribute_widget_rep::handle_set_coord3 ( set_coord3_event  ev) [virtual, inherited]

Definition at line 97 of file attribute_widget.cpp.

                                                            {
  WK_FAILED ("could not set coord3 attribute " * ev->which);
}

Here is the caller graph for this function:

void attribute_widget_rep::handle_set_coord4 ( set_coord4_event  ev) [virtual, inherited]

Reimplemented in scrollable_widget_rep.

Definition at line 102 of file attribute_widget.cpp.

                                                            {
  WK_FAILED ("could not set coord4 attribute " * ev->which);
}

Here is the caller graph for this function:

void attribute_widget_rep::handle_set_double ( set_double_event  ev) [virtual, inherited]

Definition at line 77 of file attribute_widget.cpp.

                                                            {
  WK_FAILED ("could not set double attribute " * ev->which);
}

Here is the caller graph for this function:

void simple_widget_rep::handle_set_integer ( set_integer_event  ev) [virtual, inherited]

Reimplemented from attribute_widget_rep.

Definition at line 101 of file simple_wk_widget.cpp.

                                                           {
  if (ev->which == "shrinking factor")
    handle_set_shrinking_factor (ev->i);
}

Here is the call graph for this function:

Reimplemented from simple_widget_rep.

Definition at line 727 of file edit_interface.cpp.

Here is the call graph for this function:

void attribute_widget_rep::handle_set_string ( set_string_event  ev) [virtual, inherited]

Reimplemented in file_chooser_widget_rep, image_widget_rep, file_list_widget_rep, input_widget_rep, and inputs_list_widget_rep.

Definition at line 82 of file attribute_widget.cpp.

                                                            {
  WK_FAILED ("could not set string attribute " * ev->which);
}

Here is the caller graph for this function:

void basic_widget_rep::handle_set_widget ( set_widget_event  ev) [virtual, inherited]

Reimplemented in scrollable_widget_rep, texmacs_widget_rep, canvas_widget_rep, and switch_widget_rep.

Definition at line 110 of file basic_widget.cpp.

                                                        {
  int i;
  for (i=0; i<N(a); i++)
    if (name[i] == ev->which) { a[i]= ev->w; return; }
  WK_FAILED ("could not set widget attribute " * ev->which);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void basic_widget_rep::handle_update ( update_event  ev) [virtual, inherited]

Definition at line 201 of file basic_widget.cpp.

                                                { (void) ev;
  if (attached ()) {
    this << emit_attach_window (win);
    this << emit_reposition ();
    this << emit_invalidate_all ();
  }
}

Here is the call graph for this function:

Here is the caller graph for this function:

bool edit_interface_rep::has_changed ( int  question) [virtual]

Implements editor_rep.

Definition at line 368 of file edit_interface.cpp.

                                             {
  return (env_change & question) != 0;
}

Here is the caller graph for this function:

int edit_interface_rep::idle_time ( int  event_type = ANY_EVENT) [virtual]

Implements editor_rep.

Definition at line 373 of file edit_interface.cpp.

                                             {
  if (env_change == 0 &&
      get_renderer (this) -> repainted () &&
      (!check_event (event_type)) &&
      got_focus)
    return texmacs_time () - last_change;
  else return 0;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Implements editor_rep.

Definition at line 44 of file edit_keyboard.cpp.

                                    {
  return input_mode == INPUT_NORMAL;
}

Implements editor_rep.

Definition at line 54 of file edit_keyboard.cpp.

                                     {
  return input_mode == INPUT_REPLACE;
}

Implements editor_rep.

Definition at line 49 of file edit_keyboard.cpp.

                                    {
  return input_mode == INPUT_SEARCH;
}
virtual bool editor_rep::in_source ( ) [pure virtual, inherited]

Implemented in edit_dynamic_rep.

Here is the caller graph for this function:

Implements editor_rep.

Definition at line 59 of file edit_keyboard.cpp.

                                   {
  return input_mode == INPUT_SPELL;
}
virtual void editor_rep::init_add_package ( string  package) [pure virtual, inherited]

Implemented in edit_typeset_rep.

virtual void editor_rep::init_default ( string  var) [pure virtual, inherited]

Implemented in edit_typeset_rep.

virtual void editor_rep::init_env ( string  var,
tree  by 
) [pure virtual, inherited]

Implemented in edit_typeset_rep.

Here is the caller graph for this function:

virtual void editor_rep::init_remove_package ( string  package) [pure virtual, inherited]

Implemented in edit_typeset_rep.

virtual void editor_rep::init_style ( ) [pure virtual, inherited]

Implemented in edit_typeset_rep.

virtual void editor_rep::init_style ( string  style) [pure virtual, inherited]

Implemented in edit_typeset_rep.

virtual void editor_rep::insert_argument ( path  p,
bool  forward 
) [pure virtual, inherited]

Implemented in edit_dynamic_rep.

virtual void editor_rep::insert_argument ( bool  forward) [pure virtual, inherited]

Implemented in edit_dynamic_rep.

virtual bool editor_rep::insert_return ( ) [pure virtual, inherited]

Implemented in edit_text_rep.

Here is the caller graph for this function:

virtual void editor_rep::insert_tree ( tree  t,
path  p_in_t 
) [pure virtual, inherited]

Implemented in edit_text_rep.

Here is the caller graph for this function:

virtual void editor_rep::insert_tree ( tree  t) [pure virtual, inherited]

Implemented in edit_text_rep.

virtual void editor_rep::insert_with ( path  p,
string  var,
tree  val 
) [pure virtual, inherited]

Implemented in edit_dynamic_rep.

virtual bool editor_rep::inside ( string  what) [pure virtual, inherited]

Implemented in edit_replace_rep.

Here is the caller graph for this function:

virtual bool editor_rep::inside ( tree_label  l) [pure virtual, inherited]

Implemented in edit_replace_rep.

virtual bool editor_rep::inside_active_graphics ( bool  b = true) [pure virtual, inherited]

Implemented in edit_graphics_rep.

Here is the caller graph for this function:

virtual bool editor_rep::inside_graphics ( bool  b = true) [pure virtual, inherited]

Implemented in edit_graphics_rep.

Here is the caller graph for this function:

virtual string editor_rep::inside_which ( tree  t) [pure virtual, inherited]

Implemented in edit_replace_rep.

virtual bool editor_rep::inside_with ( string  var,
string  val 
) [pure virtual, inherited]

Implemented in edit_replace_rep.

Implements editor_rep.

Definition at line 73 of file edit_keyboard.cpp.

                                        {
  if (sh_mark != 0) mark_end (sh_mark);
  sh_s= "";
  sh_mark= 0;
}

Here is the call graph for this function:

Here is the caller graph for this function:

void edit_interface_rep::invalidate ( SI  x1,
SI  y1,
SI  x2,
SI  y2 
) [virtual]

Implements editor_rep.

Definition at line 125 of file edit_interface.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Implements editor_rep.

Definition at line 131 of file edit_interface.cpp.

                                             {
  while (!is_nil (rs)) {
    invalidate (rs->item->x1-pixel, rs->item->y1-pixel,
              rs->item->x2+pixel, rs->item->y2+pixel);
    rs= rs->next;
  }
}

Here is the call graph for this function:

virtual void editor_rep::invalidate_graphical_object ( ) [pure virtual, inherited]

Implemented in edit_graphics_rep.

Here is the caller graph for this function:

virtual bool editor_rep::is_length ( string  s) [pure virtual, inherited]

Implemented in edit_typeset_rep.

bool wk_widget_rep::is_window_widget ( ) [virtual, inherited]

Reimplemented in window_widget_rep.

Definition at line 113 of file wk_widget.cpp.

                                 {
  return false;
}

Here is the caller graph for this function:

Implements editor_rep.

Definition at line 201 of file edit_keyboard.cpp.

                                 {
  return sv->kbd_system_rewrite (s);
}

Here is the call graph for this function:

Here is the caller graph for this function:

bool edit_interface_rep::kbd_get_command ( string  which,
string help,
command cmd 
) [virtual]

Implements editor_rep.

Definition at line 64 of file edit_keyboard.cpp.

                                                                           {
  return sv->kbd_get_command (which, help, c);
}

Here is the call graph for this function:

Implements editor_rep.

Definition at line 206 of file edit_keyboard.cpp.

                                            {
  string s= as_string (eval ("(kbd-find-inv-binding '" * cmd * ")"));
  return kbd (s);
}

Here is the call graph for this function:

void edit_interface_rep::key_press ( string  key) [virtual]

Implements editor_rep.

Definition at line 125 of file edit_keyboard.cpp.

                                          {
  string zero= "a"; zero[0]= '\0';
  string key= replace (gkey, "<#0>", zero);
  if (pre_edit_mark != 0) {
    ASSERT (sh_mark == 0, "invalid shortcut during pre-edit");
    mark_cancel (pre_edit_mark);
    pre_edit_s= "";
    pre_edit_mark= 0;
  }
  if (starts (key, "pre-edit:") ) {
    interrupt_shortcut ();
    string s= key (9, N(key));
    if (s == "") return;
    int i, n= N(s), pos= N(s);
    for (i=0; i<n; i++)
      if (s[i] == ':' && is_int (s (0, i))) {
       int k= as_int (s (0, i));
       s= s (i+1, n);
       pos= 0;
       for (int j=0; j<k && pos<N(s); j++)
         tm_char_forwards (s, pos);
       break;
      }
    pre_edit_s= s;
    pre_edit_mark= new_marker ();
    mark_start (pre_edit_mark);
    archive_state ();
    insert_tree (compound ("pre-edit", s), path (0, pos));
    return;
  }

  string new_sh= N(sh_s)==0? key: sh_s * " " * key;
  if (try_shortcut (new_sh)) return;
  if (new_sh != key) {
    interrupt_shortcut ();
    if (try_shortcut (key)) return;
  }

  string rew= sv->kbd_post_rewrite (key);
  if (N(rew) == 1) {
    int i ((unsigned char) rew[0]);
    if ((i >= 32 && i <= 127) || (i >= 128 && i <= 255) || (i == 25))
      if (!inside_active_graphics ()) {
        archive_state ();
       insert_tree (rew);
      }
    interrupt_shortcut ();
  }
  else if (contains_unicode_char (rew)) {
    archive_state ();
    insert_tree (key);
    interrupt_shortcut ();    
  }
}

Here is the call graph for this function:

virtual void editor_rep::make_above ( ) [pure virtual, inherited]

Implemented in edit_math_rep.

virtual void editor_rep::make_below ( ) [pure virtual, inherited]

Implemented in edit_math_rep.

virtual void editor_rep::make_compound ( tree_label  l,
int  n = -1 
) [pure virtual, inherited]

Implemented in edit_dynamic_rep.

virtual path editor_rep::make_cursor_accessible ( path  p,
bool  forwards 
) [pure virtual, inherited]

Implemented in edit_cursor_rep.

Here is the caller graph for this function:

virtual void editor_rep::make_fraction ( ) [pure virtual, inherited]

Implemented in edit_math_rep.

virtual void editor_rep::make_hspace ( string  s) [pure virtual, inherited]

Implemented in edit_text_rep.

virtual void editor_rep::make_hspace ( string  smin,
string  sdef,
string  smax 
) [pure virtual, inherited]

Implemented in edit_text_rep.

virtual void editor_rep::make_htab ( string  spc) [pure virtual, inherited]

Implemented in edit_text_rep.

virtual void editor_rep::make_hybrid ( ) [pure virtual, inherited]

Implemented in edit_dynamic_rep.

virtual void editor_rep::make_image ( string  file_name,
bool  link,
string  w,
string  h,
string  x,
string  y 
) [pure virtual, inherited]

Implemented in edit_text_rep.

virtual void editor_rep::make_lprime ( string  s) [pure virtual, inherited]

Implemented in edit_math_rep.

virtual void editor_rep::make_mod_active ( tree_label  l) [pure virtual, inherited]

Implemented in edit_dynamic_rep.

virtual void editor_rep::make_neg ( ) [pure virtual, inherited]

Implemented in edit_math_rep.

widget aqua_widget_rep::make_popup_widget ( ) [virtual, inherited]

Reimplemented in aqua_menu_rep, and aqua_menu_rep.

Definition at line 56 of file aqua_widget.mm.

                                    {
  return this;
}
widget qt_widget_rep::make_popup_widget ( ) [virtual, inherited]

Reimplemented in qt_ui_element_rep, and qt_menu_rep.

Definition at line 34 of file qt_widget.cpp.

                                  {
  return this;
}
virtual bool editor_rep::make_return_after ( ) [pure virtual, inherited]

Implemented in edit_dynamic_rep.

Here is the caller graph for this function: