• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdeutils
  • Sitemap
  • Contact Us
 

okteta

KHEUI::KDataRanges

KHEUI::KDataRanges Class Reference

#include <kdataranges.h>

List of all members.


Detailed Description

a class to control all the ranges like marking and selections holds also all modified ranges and merges them so a repaint can take its info from here

Author:
Friedrich W. H. Kossebau

Definition at line 47 of file kdataranges.h.


Public Member Functions

void adaptSelectionToChanges (const KHE::ArrayChangeMetricsList &changeList)
void addChangedRange (const CoordRange &NewRange)
void addChangedRange (int SI, int EI)
void addChangedRange (const KHE::KSection &S)
void ensureWordSelectionForward (bool Forward)
const KHE::KSection * firstOverlappingSelection (const KHE::KSection &Range) const
KHE::KSection firstWordSelection () const
bool hasFirstWordSelection () const
bool hasMarking () const
bool hasSelection () const
bool isModified () const
 KDataRanges (ByteArrayTableLayout *L)
bool markingIncludes (int Index) const
int noOfSelections () const
const KHE::KSection * overlappingMarking (const KHE::KSection &Range) const
bool overlapsChanges (const CoordRange &Range, CoordRange *ChangedRange) const
bool overlapsMarking (int FirstIndex, int LastIndex, int *SI, int *EI) const
bool overlapsSelection (int FirstIndex, int LastIndex, int *SI, int *EI) const
void removeFurtherSelections ()
void removeMarking ()
KHE::KSection removeSelection (int id=0)
void reset ()
void resetChangedRanges ()
KHE::KSection selection () const
int selectionEnd () const
bool selectionIncludes (int Index) const
bool selectionJustStarted () const
int selectionLength () const
int selectionStart () const
bool selectionStarted () const
void setFirstWordSelection (const KHE::KSection &S)
void setMarking (const KHE::KSection &M)
void setModified (bool M=true)
void setSelection (const KHE::KSection &S)
void setSelectionEnd (int StartIndex)
void setSelectionStart (int StartIndex)
 ~KDataRanges ()

Protected Attributes

CoordRangeList ChangedRanges
KHE::KSection FirstWordSelection
ByteArrayTableLayout * Layout
KHE::KSection Marking
bool Modified
Selection mSelection

Constructor & Destructor Documentation

KHEUI::KDataRanges::KDataRanges ( ByteArrayTableLayout *  L  )  [explicit]

Definition at line 33 of file kdataranges.cpp.

KHEUI::KDataRanges::~KDataRanges (  ) 

Definition at line 40 of file kdataranges.cpp.


Member Function Documentation

void KHEUI::KDataRanges::adaptSelectionToChanges ( const KHE::ArrayChangeMetricsList &  changeList  ) 

Definition at line 309 of file kdataranges.cpp.

void KHEUI::KDataRanges::addChangedRange ( const CoordRange &  NewRange  ) 

Definition at line 264 of file kdataranges.cpp.

void KHEUI::KDataRanges::addChangedRange ( int  SI,
int  EI 
)

Definition at line 251 of file kdataranges.cpp.

void KHEUI::KDataRanges::addChangedRange ( const KHE::KSection &  S  ) 

Definition at line 257 of file kdataranges.cpp.

void KHEUI::KDataRanges::ensureWordSelectionForward ( bool  Forward  ) 

Definition at line 297 of file kdataranges.cpp.

const KHE::KSection * KHEUI::KDataRanges::firstOverlappingSelection ( const KHE::KSection &  Range  )  const

Definition at line 194 of file kdataranges.cpp.

KHE::KSection KHEUI::KDataRanges::firstWordSelection (  )  const [inline]

Definition at line 127 of file kdataranges.h.

bool KHEUI::KDataRanges::hasFirstWordSelection (  )  const [inline]

Definition at line 134 of file kdataranges.h.

bool KHEUI::KDataRanges::hasMarking (  )  const [inline]

Definition at line 135 of file kdataranges.h.

bool KHEUI::KDataRanges::hasSelection (  )  const [inline]

Definition at line 131 of file kdataranges.h.

bool KHEUI::KDataRanges::isModified (  )  const [inline]

Definition at line 129 of file kdataranges.h.

bool KHEUI::KDataRanges::markingIncludes ( int  Index  )  const [inline]

Definition at line 137 of file kdataranges.h.

int KHEUI::KDataRanges::noOfSelections (  )  const [inline]

Definition at line 122 of file kdataranges.h.

const KHE::KSection * KHEUI::KDataRanges::overlappingMarking ( const KHE::KSection &  Range  )  const

Definition at line 200 of file kdataranges.cpp.

bool KHEUI::KDataRanges::overlapsChanges ( const CoordRange &  Range,
CoordRange *  ChangedRange 
) const

Definition at line 235 of file kdataranges.cpp.

bool KHEUI::KDataRanges::overlapsMarking ( int  FirstIndex,
int  LastIndex,
int *  SI,
int *  EI 
) const

Definition at line 182 of file kdataranges.cpp.

bool KHEUI::KDataRanges::overlapsSelection ( int  FirstIndex,
int  LastIndex,
int *  SI,
int *  EI 
) const

Definition at line 170 of file kdataranges.cpp.

void KHEUI::KDataRanges::removeFurtherSelections (  ) 

removes all but the standard selection and returns true if something changed

Definition at line 64 of file kdataranges.cpp.

void KHEUI::KDataRanges::removeMarking (  ) 

removes marking and returns true if something changed

Definition at line 274 of file kdataranges.cpp.

KHE::KSection KHEUI::KDataRanges::removeSelection ( int  id = 0  ) 

removes selection with id and returns it

Definition at line 153 of file kdataranges.cpp.

void KHEUI::KDataRanges::reset (  ) 

removes all ranges

Definition at line 45 of file kdataranges.cpp.

void KHEUI::KDataRanges::resetChangedRanges (  ) 

Definition at line 284 of file kdataranges.cpp.

KHE::KSection KHEUI::KDataRanges::selection (  )  const [inline]

Definition at line 126 of file kdataranges.h.

int KHEUI::KDataRanges::selectionEnd (  )  const [inline]

Definition at line 125 of file kdataranges.h.

bool KHEUI::KDataRanges::selectionIncludes ( int  Index  )  const [inline]

Definition at line 136 of file kdataranges.h.

bool KHEUI::KDataRanges::selectionJustStarted (  )  const [inline]

Definition at line 133 of file kdataranges.h.

int KHEUI::KDataRanges::selectionLength (  )  const [inline]

Definition at line 128 of file kdataranges.h.

int KHEUI::KDataRanges::selectionStart (  )  const [inline]

Definition at line 124 of file kdataranges.h.

bool KHEUI::KDataRanges::selectionStarted (  )  const [inline]

Definition at line 132 of file kdataranges.h.

void KHEUI::KDataRanges::setFirstWordSelection ( const KHE::KSection &  S  ) 

Definition at line 291 of file kdataranges.cpp.

void KHEUI::KDataRanges::setMarking ( const KHE::KSection &  M  ) 

Definition at line 54 of file kdataranges.cpp.

void KHEUI::KDataRanges::setModified ( bool  M = true  )  [inline]

Definition at line 139 of file kdataranges.h.

void KHEUI::KDataRanges::setSelection ( const KHE::KSection &  S  ) 

Definition at line 71 of file kdataranges.cpp.

void KHEUI::KDataRanges::setSelectionEnd ( int  StartIndex  ) 

Definition at line 90 of file kdataranges.cpp.

void KHEUI::KDataRanges::setSelectionStart ( int  StartIndex  ) 

Definition at line 80 of file kdataranges.cpp.


Member Data Documentation

CoordRangeList KHEUI::KDataRanges::ChangedRanges [protected]

Definition at line 116 of file kdataranges.h.

KHE::KSection KHEUI::KDataRanges::FirstWordSelection [protected]

memories first selected word on wordwise selection

Definition at line 114 of file kdataranges.h.

ByteArrayTableLayout* KHEUI::KDataRanges::Layout [protected]

Definition at line 118 of file kdataranges.h.

KHE::KSection KHEUI::KDataRanges::Marking [protected]

Definition at line 111 of file kdataranges.h.

bool KHEUI::KDataRanges::Modified [protected]

true if something changed

Definition at line 109 of file kdataranges.h.

Selection KHEUI::KDataRanges::mSelection [protected]

Definition at line 112 of file kdataranges.h.


The documentation for this class was generated from the following files:
  • kdataranges.h
  • kdataranges.cpp

okteta

Skip menu "okteta"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdeutils

Skip menu "kdeutils"
  • ark
  • kcalc
  • kcharselect
  • kdessh
  • kdf
  • kfloppy
  • kgpg
  • ktimer
  • kwallet
  • okteta
  • printer-applet
  • superkaramba
  • sweeper
Generated for kdeutils by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal