Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Qt3::QTextCommandHistory Class Reference

#include </home/clem/local/src/opie/noncore/apps/opie-write/qrichtext_p.h>

Collaboration diagram for Qt3::QTextCommandHistory:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 QTextCommandHistory (int s)
virtual ~QTextCommandHistory ()
void clear ()
void addCommand (QTextCommand *cmd)
QTextCursorundo (QTextCursor *c)
QTextCursorredo (QTextCursor *c)
bool isUndoAvailable ()
bool isRedoAvailable ()
void setUndoDepth (int d)
int undoDepth () const
int historySize () const
int currentPosition () const

Private Attributes

QPtrList< QTextCommandhistory
int current
int steps

Constructor & Destructor Documentation

Qt3::QTextCommandHistory::QTextCommandHistory int  s  )  [inline]
 

Definition at line 355 of file qrichtext_p.h.

References TRUE.

Qt3::QTextCommandHistory::~QTextCommandHistory  )  [inline, virtual]
 

Definition at line 379 of file qrichtext_p.h.

References QTextCommandHistory::clear().


Member Function Documentation

void QTextCommandHistory::addCommand QTextCommand cmd  ) 
 

Definition at line 98 of file qrichtext.cpp.

References QPtrList< type >::append(), QPtrList< type >::at(), QPtrList< type >::clear(), QPtrList< type >::count(), current, FALSE, history, i, QPtrList< type >::insert(), QPtrList< type >::removeFirst(), QPtrCollection::setAutoDelete(), steps, QPtrList< type >::take(), and TRUE.

Referenced by Qt3::QTextDocument::addCommand().

void Qt3::QTextCommandHistory::clear  )  [inline]
 

Definition at line 358 of file qrichtext_p.h.

int Qt3::QTextCommandHistory::currentPosition  )  const [inline]
 

Definition at line 371 of file qrichtext_p.h.

int Qt3::QTextCommandHistory::historySize  )  const [inline]
 

Definition at line 370 of file qrichtext_p.h.

bool QTextCommandHistory::isRedoAvailable  ) 
 

Definition at line 154 of file qrichtext.cpp.

References QPtrList< type >::count(), current, and history.

bool QTextCommandHistory::isUndoAvailable  ) 
 

Definition at line 149 of file qrichtext.cpp.

References current.

QTextCursor * QTextCommandHistory::redo QTextCursor c  ) 
 

Definition at line 133 of file qrichtext.cpp.

References QPtrList< type >::at(), QPtrList< type >::count(), current, and history.

Referenced by Qt3::QTextDocument::redo().

void Qt3::QTextCommandHistory::setUndoDepth int  d  )  [inline]
 

Definition at line 367 of file qrichtext_p.h.

QTextCursor * QTextCommandHistory::undo QTextCursor c  ) 
 

Definition at line 123 of file qrichtext.cpp.

References QPtrList< type >::at(), current, and history.

Referenced by Qt3::QTextDocument::undo().

int Qt3::QTextCommandHistory::undoDepth  )  const [inline]
 

Definition at line 368 of file qrichtext_p.h.


Member Data Documentation

int Qt3::QTextCommandHistory::current [private]
 

Definition at line 375 of file qrichtext_p.h.

Referenced by addCommand(), isRedoAvailable(), isUndoAvailable(), redo(), and undo().

QPtrList<QTextCommand> Qt3::QTextCommandHistory::history [private]
 

Definition at line 374 of file qrichtext_p.h.

Referenced by addCommand(), isRedoAvailable(), redo(), and undo().

int Qt3::QTextCommandHistory::steps [private]
 

Definition at line 375 of file qrichtext_p.h.

Referenced by addCommand().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 18:03:20 2005 for OPIE by  doxygen 1.4.2