Sourceforge.net - The VCF's Project Host
   The VCF Website Home   |   Online Discussion Forums   |   Sourceforge.net Project Page   

VCF::TextEvent Class Reference

#include <vcf/ApplicationKit/TextModel.h>

Inheritance diagram for VCF::TextEvent:

VCF::ModelEvent VCF::Event VCF::Object List of all members.

Public Member Functions

 TextEvent (Object *source)
 TextEvent (Object *source, const String &changedText)
 TextEvent (Object *source, int selectionStart, uint32 selectionLength)
 TextEvent (Object *source, uint32 type, const String &changedText, uint32 changeStart, uint32 changeLength)
 TextEvent (Object *source, uint32 type, uint32 changeStart, uint32 changeLength)
 TextEvent (Object *source, uint32 type, const String &replacedText, const String &changedText, uint32 replaceStart, uint32 replaceLength)
 TextEvent (const TextEvent &rhs)
virtual ~TextEvent ()
TextEventoperator= (const TextEvent &rhs)
TextModelgetTextModel ()
 returns the text model associated with this event.
virtual Objectclone (bool deep=false)

Public Attributes

String changeText
String originalText
int selectionStart
 The current position of the selection.
uint32 selectionLength
 The number of characters in the selection.
uint32 changeStart
 The length of the change.
uint32 changeLength
 The start of the change.

Constructor & Destructor Documentation

VCF::TextEvent::TextEvent Object source  )  [inline]
 

VCF::TextEvent::TextEvent Object source,
const String changedText
[inline]
 

VCF::TextEvent::TextEvent Object source,
int  selectionStart,
uint32  selectionLength
[inline]
 

VCF::TextEvent::TextEvent Object source,
uint32  type,
const String changedText,
uint32  changeStart,
uint32  changeLength
[inline]
 

VCF::TextEvent::TextEvent Object source,
uint32  type,
uint32  changeStart,
uint32  changeLength
[inline]
 

VCF::TextEvent::TextEvent Object source,
uint32  type,
const String replacedText,
const String changedText,
uint32  replaceStart,
uint32  replaceLength
[inline]
 

VCF::TextEvent::TextEvent const TextEvent rhs  )  [inline]
 

virtual VCF::TextEvent::~TextEvent  )  [inline, virtual]
 


Member Function Documentation

virtual Object* VCF::TextEvent::clone bool  deep = false  )  [inline, virtual]
 

Reimplemented from VCF::ModelEvent.

TextModel* VCF::TextEvent::getTextModel  )  [inline]
 

returns the text model associated with this event.

May return null if the source of the event was not a TextModel

TextEvent& VCF::TextEvent::operator= const TextEvent rhs  )  [inline]
 


Member Data Documentation

uint32 VCF::TextEvent::changeLength
 

The start of the change.

uint32 VCF::TextEvent::changeStart
 

The length of the change.

String VCF::TextEvent::changeText
 

String VCF::TextEvent::originalText
 

uint32 VCF::TextEvent::selectionLength
 

The number of characters in the selection.

int VCF::TextEvent::selectionStart
 

The current position of the selection.

A return value of -1 indicates no current selection. In this case the getSelectionLength() will also return 0.


The documentation for this class was generated from the following file:
   Comments or Suggestions?    License Information