summaryrefslogtreecommitdiffstats
path: root/khexedit/lib/kselection.h
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:14:58 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:14:58 -0600
commit9e5c87c89567a98c3344c90e392a27715437334c (patch)
tree6c1dd96ae0ba38b7e8f0a492d591881f44f474da /khexedit/lib/kselection.h
parent53904b41cf005abbae3d468532db9adc2b04a9b4 (diff)
downloadtdeutils-9e5c87c89567a98c3344c90e392a27715437334c.tar.gz
tdeutils-9e5c87c89567a98c3344c90e392a27715437334c.zip
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'khexedit/lib/kselection.h')
-rw-r--r--khexedit/lib/kselection.h42
1 files changed, 21 insertions, 21 deletions
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(); }
}