diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-01 15:14:58 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-01 15:14:58 -0600 |
commit | 9e5c87c89567a98c3344c90e392a27715437334c (patch) | |
tree | 6c1dd96ae0ba38b7e8f0a492d591881f44f474da /khexedit/lib | |
parent | 53904b41cf005abbae3d468532db9adc2b04a9b4 (diff) | |
download | tdeutils-9e5c87c89567a98c3344c90e392a27715437334c.tar.gz tdeutils-9e5c87c89567a98c3344c90e392a27715437334c.zip |
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'khexedit/lib')
-rw-r--r-- | khexedit/lib/kbufferranges.h | 2 | ||||
-rw-r--r-- | khexedit/lib/kselection.h | 42 |
2 files changed, 22 insertions, 22 deletions
diff --git a/khexedit/lib/kbufferranges.h b/khexedit/lib/kbufferranges.h index 8a215ed..622ff4a 100644 --- a/khexedit/lib/kbufferranges.h +++ b/khexedit/lib/kbufferranges.h @@ -96,7 +96,7 @@ class TDEBufferRanges bool Modified; KSection Marking; - KSelection Selection; + TDESelection Selection; /** memories first selected word on wordwise selection */ KSection FirstWordSelection; diff --git a/khexedit/lib/kselection.h b/khexedit/lib/kselection.h index 19b8a99..7e69d9b 100644 --- a/khexedit/lib/kselection.h +++ b/khexedit/lib/kselection.h @@ -34,20 +34,20 @@ namespace KHE * *@author Friedrich W. H. Kossebau */ -class KSelection : public KSection +class TDESelection : public KSection { public: /** creates a selection with a given start. * @param Index index in front of which the selection begins */ - KSelection( int Index ); + TDESelection( int Index ); /** creates an invalid selection */ - KSelection(); - ~KSelection(); + TDESelection(); + ~TDESelection(); public: - KSelection &operator=( const KSelection &S ); - KSelection &operator=( const KSection &S ); + TDESelection &operator=( const TDESelection &S ); + TDESelection &operator=( const KSection &S ); public: // modification access /** starts the selection. @@ -103,18 +103,18 @@ class KSelection : public KSection }; -inline KSelection::KSelection() : Anchor( -1 ) {} -inline KSelection::KSelection( int Index ) : Anchor( Index ) {} -inline KSelection::~KSelection() {} +inline TDESelection::TDESelection() : Anchor( -1 ) {} +inline TDESelection::TDESelection( int Index ) : Anchor( Index ) {} +inline TDESelection::~TDESelection() {} -inline KSelection &KSelection::operator=( const KSelection &S ) +inline TDESelection &TDESelection::operator=( const TDESelection &S ) { KSection::operator=(S); Anchor = S.Anchor; return *this; } -inline KSelection &KSelection::operator=( const KSection &S ) +inline TDESelection &TDESelection::operator=( const KSection &S ) { KSection::operator=(S); Anchor = start(); @@ -122,14 +122,14 @@ inline KSelection &KSelection::operator=( const KSection &S ) } -inline void KSelection::setStart( int Index ) +inline void TDESelection::setStart( int Index ) { Anchor = Index; unset(); } -inline void KSelection::setEnd( int Index ) +inline void TDESelection::setEnd( int Index ) { // nothing selected? if( Index == Anchor ) @@ -148,30 +148,30 @@ inline void KSelection::setEnd( int Index ) } } -inline void KSelection::reverse() +inline void TDESelection::reverse() { Anchor = isForward() ? end()+1 : start(); } -inline void KSelection::setForward() +inline void TDESelection::setForward() { Anchor = start(); } -inline void KSelection::setBackward() +inline void TDESelection::setBackward() { Anchor = end()+1; } -inline int KSelection::anchor() const { return Anchor; } +inline int TDESelection::anchor() const { return Anchor; } -inline void KSelection::cancel() { Anchor = -1; unset(); } +inline void TDESelection::cancel() { Anchor = -1; unset(); } -inline bool KSelection::started() const { return Anchor != -1; } +inline bool TDESelection::started() const { return Anchor != -1; } -inline bool KSelection::justStarted() const { return Anchor != -1 && start() == -1; } +inline bool TDESelection::justStarted() const { return Anchor != -1 && start() == -1; } -inline bool KSelection::isForward() const { return Anchor == start(); } +inline bool TDESelection::isForward() const { return Anchor == start(); } } |