Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

ht_text_editor_undo Class Reference

#include <textedit.h>

Inheritance diagram for ht_text_editor_undo:

ht_clist ht_list Object List of all members.

Public Member Functions

void init (UINT max_undo_size)
void insert_undo (ht_text_editor *te, ht_undo_data *undo)
bool is_clean ()
bool is_clean (int i)
int get_current_position ()
void mark_clean ()
void undo (ht_text_editor *te, bool place_cursor_first)
void redo (ht_text_editor *te)

Public Attributes

UINT size
UINT max_size
int clean_state
int current_position
bool goto_state

Member Function Documentation

int ht_text_editor_undo::get_current_position  ) 
 

Definition at line 852 of file textedit.cc.

References current_position.

Referenced by ht_text_editor::show_protocol().

void ht_text_editor_undo::init UINT  max_undo_size  ) 
 

Definition at line 842 of file textedit.cc.

References clean_state, current_position, goto_state, Object::init(), max_size, size, and UINT.

Referenced by ht_text_editor::init().

void ht_text_editor_undo::insert_undo ht_text_editor te,
ht_undo_data undo
 

Definition at line 857 of file textedit.cc.

References ht_clist::append(), ht_undo_data::apply(), assert, clean_state, ht_undo_data::combine(), current_position, ht_clist::del(), ht_clist::get(), ht_undo_data::getsize(), goto_state, is_clean(), max_size, size, and UINT.

Referenced by ht_text_editor::textoperation_apply().

bool ht_text_editor_undo::is_clean int  i  ) 
 

Definition at line 915 of file textedit.cc.

References clean_state.

bool ht_text_editor_undo::is_clean  ) 
 

Definition at line 910 of file textedit.cc.

References clean_state, and current_position.

Referenced by insert_undo(), ht_text_editor::redo(), ht_text_editor::show_protocol(), and ht_text_editor::undo().

void ht_text_editor_undo::mark_clean  ) 
 

Definition at line 904 of file textedit.cc.

References clean_state, current_position, and goto_state.

Referenced by ht_text_editor::func(), and ht_text_editor::save().

void ht_text_editor_undo::redo ht_text_editor te  ) 
 

Definition at line 920 of file textedit.cc.

References ht_undo_data::apply(), current_position, ht_clist::get(), and goto_state.

Referenced by ht_text_editor::redo().

void ht_text_editor_undo::undo ht_text_editor te,
bool  place_cursor_first
 

Definition at line 930 of file textedit.cc.

References current_position, ht_clist::get(), goto_state, and ht_undo_data::unapply().

Referenced by ht_text_editor::undo().


Member Data Documentation

int ht_text_editor_undo::clean_state
 

Definition at line 233 of file textedit.h.

Referenced by init(), insert_undo(), is_clean(), and mark_clean().

int ht_text_editor_undo::current_position
 

Definition at line 234 of file textedit.h.

Referenced by get_current_position(), init(), insert_undo(), is_clean(), mark_clean(), redo(), and undo().

bool ht_text_editor_undo::goto_state
 

Definition at line 235 of file textedit.h.

Referenced by init(), insert_undo(), mark_clean(), redo(), and undo().

UINT ht_text_editor_undo::max_size
 

Definition at line 232 of file textedit.h.

Referenced by init(), and insert_undo().

UINT ht_text_editor_undo::size
 

Definition at line 232 of file textedit.h.

Referenced by init(), and insert_undo().


The documentation for this class was generated from the following files:
Generated on Fri May 7 21:16:04 2004 by doxygen 1.3.5