class
TE_View
: public
InputHandler
, public
Observable
(Return to index)
Type:
Instantiable
Base Classes:
public
InputHandler
, public
Observable
Derived Classes
Include file:
IVGlyph/textview.h
Public:
TE_View
(
Style
*,
EivTextBuffer
*, int rows, int cols, boolean active)
void
backward_char
(const int cont = 1)
void
backward_line
(const int cont = 1)
void
backward_page
(const int cont = 1)
void
backward_word
(const int cont = 1)
void
beginning_of_line
()
void
beginning_of_text
()
void
beginning_of_word
()
void
convert_selection
(
SelectionManager
*)
void
copy
()
void
copy_selection
(
SelectionManager
*)
void
cut
()
void
cut_eol
()
void
delete_backward
()
void
delete_forward
()
void
disable_caret
()
int
displayed_lines
()
void
do_scroll
(GlyphIndex)
access text editor
virtual void
double_click
(const
Event
&)
various edit functions
void
down
()
virtual void
drag
(const
Event
&)
void
enable_caret
()
void
end_of_line
()
void
end_of_text
()
void
end_of_word
()
int
end_row
()
void
find_backward
(const char* pattern)
void
find_forward
(const char* pattern)
void
find_selection_backward
()
void
find_selection_forward
()
int
first_visible_line
()
void
forward_char
(const int cont = 1)
void
forward_line
(const int cont = 1)
void
forward_page
(const int cont = 1)
void
forward_word
(const int cont = 1)
void
free_selection
(
SelectionManager
*)
text
void
insert_char
(char c)
various information about displayed lines
void
insert_string
(char*, int count)
virtual void
keystroke
(const
Event
&)
void
left
()
void
line_update
()
number of lines in buffer
int
lines
()
scroll to index
int
load
(const char* path)
void
load_popup
()
void
newline
()
selections
void
own_selection
(
SelectionManager
*)
void
page_down
()
void
page_up
()
void
paste_buffer
()
virtual void
press
(const
Event
&)
void
quit
()
InputHandler
virtual void
release
(const
Event
&)
void
right
()
void
save
()
int
save_as
(const char* path)
int
save_current
()
void
save_popup
()
int
start_row
()
const char*
text
()
void
text
(const char*, boolean update =true)
TE_Editor
*
text_editor
()
void
up
()
~TE_View
()
Protected:
boolean
active_
OpenFileChooser
*
chooser_
unsigned long
click_time_
Window
*
current_window_
GlyphIndex
end_row_
last row in view
enum drag_mode_
{ DragSelect, DragMenu, DragNone }
int
event_to_index
(const
Event
&)
popup menu stuff
TE_ViewKeyFunc
key_[keymap_size]
GlyphIndex
lines_
displayed lines
Menu
*
make_menu
(
Menu
*,
CommandInfo
*)
void
make_visible
(const boolean scroll_page = true)
Menu
*
menu_
PopupWindow
*
menu_window_
void
popup_menu
(const
Event
&)
variables to track "tripple-click"
int
rows_
rows in view
void
scroll_to_line
(int line)
char*
selection_buffer_
GlyphIndex
start_row_
1'st row in view
Style
*
style_
EivTextBuffer
*
te_buffer_
TE_Editor
*
text_editor_
unsigned long
threshold_
modes during a drag operation
(more documentation)