[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [pykde4] sip/ktexteditor: Removed the deprecated and useless smart* classes (on request from the Kat
From: Simon Edwards <simon () simonzone ! com>
Date: 2013-05-30 18:41:31
Message-ID: 20130530184131.19F8CA6071 () git ! kde ! org
[Download RAW message or body]
Git commit e071ca57a052663cc486aef98c293df9ebe021af by Simon Edwards.
Committed on 30/05/2013 at 20:40.
Pushed by sedwards into branch 'master'.
Removed the deprecated and useless smart* classes (on request from the Kate team).
M +0 -8 sip/ktexteditor/codecompletionmodel.sip
M +0 -10 sip/ktexteditor/cursor.sip
M +0 -6 sip/ktexteditor/document.sip
M +0 -7 sip/ktexteditor/ktexteditormod.sip
M +0 -10 sip/ktexteditor/range.sip
D +0 -80 sip/ktexteditor/smartcursor.sip
D +0 -39 sip/ktexteditor/smartcursornotifier.sip
D +0 -39 sip/ktexteditor/smartcursorwatcher.sip
D +0 -83 sip/ktexteditor/smartinterface.sip
D +0 -108 sip/ktexteditor/smartrange.sip
D +0 -47 sip/ktexteditor/smartrangenotifier.sip
D +0 -47 sip/ktexteditor/smartrangewatcher.sip
http://commits.kde.org/pykde4/e071ca57a052663cc486aef98c293df9ebe021af
diff --git a/sip/ktexteditor/codecompletionmodel.sip b/sip/ktexteditor/codecompletionmodel.sip
index 3f1c9ca..6753857 100644
--- a/sip/ktexteditor/codecompletionmodel.sip
+++ b/sip/ktexteditor/codecompletionmodel.sip
@@ -159,14 +159,6 @@ public:
sipType = sipType_KTextEditor_LoadSaveFilterCheckPlugin;
else if (dynamic_cast<KTextEditor::Plugin*>(sipCpp))
sipType = sipType_KTextEditor_Plugin;
- else if (dynamic_cast<KTextEditor::SmartCursorNotifier*>(sipCpp))
- sipType = sipType_KTextEditor_SmartCursorNotifier;
- else if (dynamic_cast<KTextEditor::SmartCursorNotifier*>(sipCpp))
- sipType = sipType_KTextEditor_SmartCursorNotifier;
- else if (dynamic_cast<KTextEditor::SmartRangeNotifier*>(sipCpp))
- sipType = sipType_KTextEditor_SmartRangeNotifier;
- else if (dynamic_cast<KTextEditor::SmartRangeNotifier*>(sipCpp))
- sipType = sipType_KTextEditor_SmartRangeNotifier;
else if (dynamic_cast<KTextEditor::CodeCompletionModel*>(sipCpp))
{
sipType = sipType_KTextEditor_CodeCompletionModel;
diff --git a/sip/ktexteditor/cursor.sip b/sip/ktexteditor/cursor.sip
index e3f9268..096a19c 100644
--- a/sip/ktexteditor/cursor.sip
+++ b/sip/ktexteditor/cursor.sip
@@ -36,8 +36,6 @@ public:
Cursor (int line, int column);
Cursor (const KTextEditor::Cursor& copy);
virtual bool isValid () const;
- virtual bool isSmartCursor () const;
- virtual KTextEditor::SmartCursor* toSmartCursor () const;
static KTextEditor::Cursor invalid ();
static KTextEditor::Cursor start ();
virtual void setPosition (const KTextEditor::Cursor& position);
@@ -77,13 +75,6 @@ protected:
public:
virtual ~Cursor ();
//ig QDebug operator << (QDebug s, const KTextEditor::Cursor& cursor);
-%ConvertToSubClassCode
- // CTSCC for subclasses of 'Cursor'
- sipType = NULL;
-
- if (dynamic_cast<KTextEditor::SmartCursor*>(sipCpp))
- sipType = sipType_KTextEditor_SmartCursor;
-%End
};
// class Cursor
@@ -93,5 +84,4 @@ public:
%ModuleHeaderCode
//ctscc
#include <ktexteditor/cursor.h>
-#include <ktexteditor/smartcursor.h>
%End
diff --git a/sip/ktexteditor/document.sip b/sip/ktexteditor/document.sip
index b914646..26c0c7c 100644
--- a/sip/ktexteditor/document.sip
+++ b/sip/ktexteditor/document.sip
@@ -265,10 +265,6 @@ signals:
sipType = sipType_KTextEditor_LoadSaveFilterCheckPlugin;
else if (dynamic_cast<KTextEditor::Plugin*>(sipCpp))
sipType = sipType_KTextEditor_Plugin;
- else if (dynamic_cast<KTextEditor::SmartCursorNotifier*>(sipCpp))
- sipType = sipType_KTextEditor_SmartCursorNotifier;
- else if (dynamic_cast<KTextEditor::SmartRangeNotifier*>(sipCpp))
- sipType = sipType_KTextEditor_SmartRangeNotifier;
else if (dynamic_cast<KTextEditor::CodeCompletionModel*>(sipCpp))
{
sipType = sipType_KTextEditor_CodeCompletionModel;
@@ -299,7 +295,5 @@ signals:
#include <ktexteditor/loadsavefiltercheckplugin.h>
#include <ktexteditor/plugin.h>
#include <qobject.h>
-#include <ktexteditor/smartcursornotifier.h>
-#include <ktexteditor/smartrangenotifier.h>
#include <ktexteditor/view.h>
%End
diff --git a/sip/ktexteditor/ktexteditormod.sip b/sip/ktexteditor/ktexteditormod.sip
index f590616..ded4843 100644
--- a/sip/ktexteditor/ktexteditormod.sip
+++ b/sip/ktexteditor/ktexteditormod.sip
@@ -60,13 +60,6 @@
%Include recoveryinterface.sip
%Include searchinterface.sip
%Include sessionconfiginterface.sip
-%Include smartcursor.sip
-%Include smartcursornotifier.sip
-%Include smartcursorwatcher.sip
-%Include smartinterface.sip
-%Include smartrange.sip
-%Include smartrangenotifier.sip
-%Include smartrangewatcher.sip
%Include templateinterface.sip
%Include templateinterface2.sip
%Include texthintinterface.sip
diff --git a/sip/ktexteditor/range.sip b/sip/ktexteditor/range.sip
index 70b5bf5..cb2b171 100644
--- a/sip/ktexteditor/range.sip
+++ b/sip/ktexteditor/range.sip
@@ -40,8 +40,6 @@ public:
Range (const KTextEditor::Range& copy);
virtual bool isValid () const;
static KTextEditor::Range invalid ();
- virtual bool isSmartRange () const;
- virtual KTextEditor::SmartRange* toSmartRange () const;
//ig KTextEditor::Cursor& start ();
//ig KTextEditor::Cursor& end ();
void setBothLines (int line);
@@ -97,13 +95,6 @@ public:
const KTextEditor::Cursor& start () const;
const KTextEditor::Cursor& end () const;
//ig QDebug operator << (QDebug s, const KTextEditor::Range& range);
-%ConvertToSubClassCode
- // CTSCC for subclasses of 'Range'
- sipType = NULL;
-
- if (dynamic_cast<KTextEditor::SmartRange*>(sipCpp))
- sipType = sipType_KTextEditor_SmartRange;
-%End
};
// class Range
@@ -113,5 +104,4 @@ public:
%ModuleHeaderCode
//ctscc
#include <ktexteditor/range.h>
-#include <ktexteditor/smartrange.h>
%End
diff --git a/sip/ktexteditor/smartcursor.sip b/sip/ktexteditor/smartcursor.sip
deleted file mode 100644
index cab0f05..0000000
--- a/sip/ktexteditor/smartcursor.sip
+++ /dev/null
@@ -1,80 +0,0 @@
-//
-// Copyright 2007 Jim Bublitz <jbublitz@nwinternet.com>
-// Earlier copyrights 1998 - 2006 Jim Bublitz also apply
-
-
-// Generated by preSip
-
-
-// This file is part of PyKDE4.
-
-// PyKDE4 is free software; you can redistribute it and/or modify
-// it under the terms of the GNU Lesser General Public License as
-// published by the Free Software Foundation; either version 2.1 of
-// the License, or (at your option) any later version.
-
-// PyKDE4 is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License
-// along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-namespace KTextEditor
-{
-
-class SmartCursor : KTextEditor::Cursor /Abstract/
-{
-%TypeHeaderCode
-#include <ktexteditor/smartcursor.h>
-%End
-
-
-public:
- virtual bool isSmartCursor () const;
- virtual KTextEditor::SmartCursor* toSmartCursor () const;
- KTextEditor::SmartRange* smartRange () const;
- KTextEditor::Document* document () const;
- virtual bool atEndOfLine () const;
- virtual bool atEndOfDocument () const;
- virtual bool isValid () const;
- QChar character () const;
- virtual bool insertText (const QStringList& text, bool block = 0);
-
- enum AdvanceMode
- {
- ByCharacter,
- ByCursorPosition
- };
-
- virtual bool advance (int distance, KTextEditor::SmartCursor::AdvanceMode mode = \
KTextEditor::SmartCursor::ByCharacter);
-
- enum InsertBehavior
- {
- StayOnInsert,
- MoveOnInsert
- };
-
- KTextEditor::SmartCursor::InsertBehavior insertBehavior () const;
- void setInsertBehavior (KTextEditor::SmartCursor::InsertBehavior insertBehavior);
- virtual bool hasNotifier () const=0;
- virtual KTextEditor::SmartCursorNotifier* notifier ()=0;
- virtual void deleteNotifier ()=0;
- virtual KTextEditor::SmartCursorWatcher* watcher () const=0;
- virtual void setWatcher (KTextEditor::SmartCursorWatcher* watcher = 0)=0;
-
-protected:
- SmartCursor (const KTextEditor::Cursor& position, KTextEditor::Document* \
doc, KTextEditor::SmartCursor::InsertBehavior insertBehavior);
-
-private:
- SmartCursor (const KTextEditor::SmartCursor&);
-
-public:
- virtual ~SmartCursor ();
-};
-// class SmartCursor
-
-};
-// namespace KTextEditor
-
diff --git a/sip/ktexteditor/smartcursornotifier.sip b/sip/ktexteditor/smartcursornotifier.sip
deleted file mode 100644
index 5b0cf8d..0000000
--- a/sip/ktexteditor/smartcursornotifier.sip
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright 2011 Simon Edwards <simon@simonzone.com>
-
-// Generated by twine2
-
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU Library General Public License as
-// published by the Free Software Foundation; either version 2, or
-// (at your option) any later version.
-
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details
-
-// You should have received a copy of the GNU Library General Public
-// License along with this program; if not, write to the
-// Free Software Foundation, Inc.,
-// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-
-namespace KTextEditor
-{
-class SmartCursorNotifier : QObject
-{
-%TypeHeaderCode
-#include <ktexteditor/smartcursornotifier.h>
-%End
-
-public:
- SmartCursorNotifier ();
- bool wantsDirectChanges () const;
- void setWantsDirectChanges (bool wantsDirectChanges);
-signals:
- void positionChanged (KTextEditor::SmartCursor* cursor);
- void positionDeleted (KTextEditor::SmartCursor* cursor);
- void characterDeleted (KTextEditor::SmartCursor* cursor, bool deletedBefore);
- void characterInserted (KTextEditor::SmartCursor* cursor, bool insertedBefore);
- void deleted (KTextEditor::SmartCursor* cursor);
-};
-};
diff --git a/sip/ktexteditor/smartcursorwatcher.sip b/sip/ktexteditor/smartcursorwatcher.sip
deleted file mode 100644
index b651d74..0000000
--- a/sip/ktexteditor/smartcursorwatcher.sip
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright 2011 Simon Edwards <simon@simonzone.com>
-
-// Generated by twine2
-
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU Library General Public License as
-// published by the Free Software Foundation; either version 2, or
-// (at your option) any later version.
-
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details
-
-// You should have received a copy of the GNU Library General Public
-// License along with this program; if not, write to the
-// Free Software Foundation, Inc.,
-// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-
-namespace KTextEditor
-{
-class SmartCursorWatcher
-{
-%TypeHeaderCode
-#include <ktexteditor/smartcursorwatcher.h>
-%End
-
-public:
- SmartCursorWatcher ();
- virtual ~SmartCursorWatcher ();
- bool wantsDirectChanges () const;
- void setWantsDirectChanges (bool wantsDirectChanges);
- virtual void positionChanged (KTextEditor::SmartCursor* cursor);
- virtual void positionDeleted (KTextEditor::SmartCursor* cursor);
- virtual void characterDeleted (KTextEditor::SmartCursor* cursor, bool deletedBefore);
- virtual void characterInserted (KTextEditor::SmartCursor* cursor, bool insertedBefore);
- virtual void deleted (KTextEditor::SmartCursor* cursor);
-};
-};
diff --git a/sip/ktexteditor/smartinterface.sip b/sip/ktexteditor/smartinterface.sip
deleted file mode 100644
index c61d048..0000000
--- a/sip/ktexteditor/smartinterface.sip
+++ /dev/null
@@ -1,83 +0,0 @@
-//
-// Copyright 2007 Jim Bublitz <jbublitz@nwinternet.com>
-// Earlier copyrights 1998 - 2006 Jim Bublitz also apply
-
-
-// Generated by preSip
-
-
-// This file is part of PyKDE4.
-
-// PyKDE4 is free software; you can redistribute it and/or modify
-// it under the terms of the GNU Lesser General Public License as
-// published by the Free Software Foundation; either version 2.1 of
-// the License, or (at your option) any later version.
-
-// PyKDE4 is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License
-// along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-namespace KTextEditor
-{
-
-class SmartInterface /Abstract/
-{
-%TypeHeaderCode
-#include <ktexteditor/smartinterface.h>
-%End
-
-
-public:
- SmartInterface ();
- QMutex* smartMutex () const;
- virtual void clearSmartInterface ()=0;
- bool clearOnDocumentReload () const;
- void setClearOnDocumentReload (bool clearOnReload);
- virtual int currentRevision () const=0;
- virtual void releaseRevision (int revision) const=0;
- virtual void useRevision (int revision)=0;
- void clearRevision ();
- virtual KTextEditor::Cursor translateFromRevision (const KTextEditor::Cursor& cursor, \
KTextEditor::SmartCursor::InsertBehavior insertBehavior = \
KTextEditor::SmartCursor::StayOnInsert) const;
- virtual KTextEditor::SmartCursor* newSmartCursor (const KTextEditor::Cursor& position = \
KTextEditor::Cursor::start(), KTextEditor::SmartCursor::InsertBehavior insertBehavior = \
KTextEditor::SmartCursor::MoveOnInsert)=0;
- KTextEditor::SmartCursor* newSmartCursor (int line, int column, \
KTextEditor::SmartCursor::InsertBehavior insertBehavior = \
KTextEditor::SmartCursor::MoveOnInsert);
- virtual void deleteCursors ()=0;
- virtual KTextEditor::SmartRange* newSmartRange (const KTextEditor::Range& range = \
KTextEditor::Range(), KTextEditor::SmartRange* parent = 0, KTextEditor::SmartRange::InsertBehaviors \
insertBehavior = KTextEditor::SmartRange::DoNotExpand)=0;
- KTextEditor::SmartRange* newSmartRange (const KTextEditor::Cursor& startPosition, const \
KTextEditor::Cursor& endPosition, KTextEditor::SmartRange* parent = 0, \
KTextEditor::SmartRange::InsertBehaviors insertBehavior = \
KTextEditor::SmartRange::DoNotExpand);
- KTextEditor::SmartRange* newSmartRange (int startLine, int startColumn, int endLine, int endColumn, \
KTextEditor::SmartRange* parent = 0, KTextEditor::SmartRange::InsertBehaviors insertBehavior = \
KTextEditor::SmartRange::DoNotExpand);
- virtual KTextEditor::SmartRange* newSmartRange (KTextEditor::SmartCursor* start, \
KTextEditor::SmartCursor* end, KTextEditor::SmartRange* parent = 0, \
KTextEditor::SmartRange::InsertBehaviors insertBehavior = \
KTextEditor::SmartRange::DoNotExpand)=0;
- virtual void unbindSmartRange (KTextEditor::SmartRange* range)=0;
- virtual void deleteRanges ()=0;
- virtual void addHighlightToDocument (KTextEditor::SmartRange* topRange, bool \
supportDynamic = 0)=0;
- virtual void removeHighlightFromDocument (KTextEditor::SmartRange* topRange)=0;
- virtual const QList<KTextEditor::SmartRange*> documentHighlights () const=0;
- virtual void clearDocumentHighlights ()=0;
- virtual void addHighlightToView (KTextEditor::View* view, KTextEditor::SmartRange* \
topRange, bool supportDynamic = 0)=0;
- virtual void removeHighlightFromView (KTextEditor::View* view, KTextEditor::SmartRange* \
topRange)=0;
- virtual const QList<KTextEditor::SmartRange*> viewHighlights (KTextEditor::View* view) const=0;
- virtual void clearViewHighlights (KTextEditor::View* view)=0;
- virtual void addActionsToDocument (KTextEditor::SmartRange* topRange)=0;
- virtual void removeActionsFromDocument (KTextEditor::SmartRange* topRange)=0;
- virtual const QList<KTextEditor::SmartRange*> documentActions () const=0;
- virtual void clearDocumentActions ()=0;
- virtual void addActionsToView (KTextEditor::View* view, KTextEditor::SmartRange* \
topRange)=0;
- virtual void removeActionsFromView (KTextEditor::View* view, KTextEditor::SmartRange* \
topRange)=0;
- virtual const QList<KTextEditor::SmartRange*> viewActions (KTextEditor::View* view) const=0;
- virtual void clearViewActions (KTextEditor::View* view)=0;
-
-protected:
- virtual void attributeDynamic (KTextEditor::Attribute::Ptr a)=0;
- virtual void attributeNotDynamic (KTextEditor::Attribute::Ptr a)=0;
-
-public:
- virtual ~SmartInterface ();
- virtual KTextEditor::Range translateFromRevision (const KTextEditor::Range& range, \
KTextEditor::SmartRange::InsertBehaviors insertBehavior = \
KTextEditor::SmartRange::ExpandLeft|KTextEditor::SmartRange::ExpandRight) const;
-};
-// class SmartInterface
-
-};
-// namespace KTextEditor
-
diff --git a/sip/ktexteditor/smartrange.sip b/sip/ktexteditor/smartrange.sip
deleted file mode 100644
index 06c6da7..0000000
--- a/sip/ktexteditor/smartrange.sip
+++ /dev/null
@@ -1,108 +0,0 @@
-//
-// Copyright 2007 Jim Bublitz <jbublitz@nwinternet.com>
-// Earlier copyrights 1998 - 2006 Jim Bublitz also apply
-
-
-// Generated by preSip
-
-
-// This file is part of PyKDE4.
-
-// PyKDE4 is free software; you can redistribute it and/or modify
-// it under the terms of the GNU Lesser General Public License as
-// published by the Free Software Foundation; either version 2.1 of
-// the License, or (at your option) any later version.
-
-// PyKDE4 is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License
-// along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-namespace KTextEditor
-{
-
-class SmartRange : KTextEditor::Range
-{
-%TypeHeaderCode
-#include <ktexteditor/smartrange.h>
-%End
-
-
-
-public:
- enum InsertBehavior
- {
- DoNotExpand,
- ExpandLeft,
- ExpandRight
- };
-
- typedef QFlags<KTextEditor::SmartRange::InsertBehavior> InsertBehaviors;
- virtual bool isSmartRange () const;
- virtual KTextEditor::SmartRange* toSmartRange () const;
- virtual void setRange (const KTextEditor::Range& range);
-//ig KTextEditor::SmartCursor& smartStart ();
-//ig KTextEditor::SmartCursor& smartEnd ();
- virtual bool confineToRange (const KTextEditor::Range& range);
- virtual bool expandToRange (const KTextEditor::Range& range);
- KTextEditor::Document* document () const;
- virtual QStringList text (bool block = 0) const;
- virtual bool replaceText (const QStringList& text, bool block = 0);
- virtual bool removeText (bool block = 0);
- KTextEditor::SmartRange::InsertBehaviors insertBehavior () const;
- void setInsertBehavior (KTextEditor::SmartRange::InsertBehaviors behavior);
- KTextEditor::SmartRange* parentRange () const;
- virtual void setParentRange (KTextEditor::SmartRange* r);
- bool hasParent (KTextEditor::SmartRange* parent) const;
- int depth () const;
- KTextEditor::SmartRange* topParentRange () const;
- const QList<KTextEditor::SmartRange*>& childRanges () const;
- void clearChildRanges ();
- void deleteChildRanges ();
- void clearAndDeleteChildRanges ();
- KTextEditor::SmartRange* childBefore (const KTextEditor::SmartRange* range) const;
- KTextEditor::SmartRange* childAfter (const KTextEditor::SmartRange* range) const;
- KTextEditor::SmartRange* mostSpecificRange (const KTextEditor::Range& input) const;
- KTextEditor::SmartRange* firstRangeContaining (const KTextEditor::Cursor& pos) const;
- KTextEditor::SmartRange* deepestRangeContaining (const KTextEditor::Cursor& pos, \
QStack<KTextEditor::SmartRange*>* rangesEntered = 0, QStack<KTextEditor::SmartRange*>* rangesExited = 0) \
const;
- KTextEditor::Attribute::Ptr attribute () const;
- void setAttribute (KTextEditor::Attribute::Ptr attribute);
- void associateAction (KAction* action);
- void dissociateAction (KAction* action);
- const QList<KAction*>& associatedActions () const;
- void clearAssociatedActions ();
- KTextEditor::SmartRangeNotifier* primaryNotifier ();
- const QList<KTextEditor::SmartRangeNotifier*> notifiers () const;
- void addNotifier (KTextEditor::SmartRangeNotifier* notifier);
- void removeNotifier (KTextEditor::SmartRangeNotifier* notifier);
- void deletePrimaryNotifier ();
- const QList<KTextEditor::SmartRangeWatcher*>& watchers () const;
- void addWatcher (KTextEditor::SmartRangeWatcher* watcher);
- void removeWatcher (KTextEditor::SmartRangeWatcher* watcher);
-
-protected:
- SmartRange (KTextEditor::SmartCursor* start, KTextEditor::SmartCursor* end, \
KTextEditor::SmartRange* parent = 0, KTextEditor::SmartRange::InsertBehaviors insertBehavior = \
KTextEditor::SmartRange::DoNotExpand);
- virtual void rangeChanged (KTextEditor::Cursor* cursor, const KTextEditor::Range& from);
- virtual void checkFeedback ();
- virtual KTextEditor::SmartRangeNotifier* createNotifier ()=0;
-
-private:
- SmartRange (const KTextEditor::SmartRange&);
-
-public:
- virtual ~SmartRange ();
- const KTextEditor::SmartCursor& smartStart () const;
- const KTextEditor::SmartCursor& smartEnd () const;
- QList<KTextEditor::SmartRange*> deepestRangesContaining (const KTextEditor::Cursor& pos) const;
- int overlapCount () const;
-protected:
- void rebuildChildStructure ();
-};
-// class SmartRange
-
-};
-// namespace KTextEditor
-
diff --git a/sip/ktexteditor/smartrangenotifier.sip b/sip/ktexteditor/smartrangenotifier.sip
deleted file mode 100644
index 5153d11..0000000
--- a/sip/ktexteditor/smartrangenotifier.sip
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright 2011 Simon Edwards <simon@simonzone.com>
-
-// Generated by twine2
-
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU Library General Public License as
-// published by the Free Software Foundation; either version 2, or
-// (at your option) any later version.
-
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details
-
-// You should have received a copy of the GNU Library General Public
-// License along with this program; if not, write to the
-// Free Software Foundation, Inc.,
-// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-
-namespace KTextEditor
-{
-class SmartRangeNotifier : QObject
-{
-%TypeHeaderCode
-#include <ktexteditor/smartrangenotifier.h>
-%End
-
-public:
- SmartRangeNotifier ();
- bool wantsDirectChanges () const;
- void setWantsDirectChanges (bool wantsDirectChanges);
-signals:
- void rangePositionChanged (KTextEditor::SmartRange* range);
- void rangeContentsChanged (KTextEditor::SmartRange* range);
- void rangeContentsChanged (KTextEditor::SmartRange* range, \
KTextEditor::SmartRange* mostSpecificChild);
- void mouseEnteredRange (KTextEditor::SmartRange* range, KTextEditor::View* view);
- void mouseExitedRange (KTextEditor::SmartRange* range, KTextEditor::View* view);
- void caretEnteredRange (KTextEditor::SmartRange* range, KTextEditor::View* view);
- void caretExitedRange (KTextEditor::SmartRange* range, KTextEditor::View* view);
- void rangeEliminated (KTextEditor::SmartRange* range);
- void rangeDeleted (KTextEditor::SmartRange* range);
- void parentRangeChanged (KTextEditor::SmartRange* range, KTextEditor::SmartRange* \
newParent, KTextEditor::SmartRange* oldParent);
- void childRangeInserted (KTextEditor::SmartRange* range, KTextEditor::SmartRange* \
child);
- void childRangeRemoved (KTextEditor::SmartRange* range, KTextEditor::SmartRange* \
child);
- void rangeAttributeChanged (KTextEditor::SmartRange* range, \
KTextEditor::Attribute::Ptr currentAttribute, KTextEditor::Attribute::Ptr \
previousAttribute);
-};
-};
diff --git a/sip/ktexteditor/smartrangewatcher.sip b/sip/ktexteditor/smartrangewatcher.sip
deleted file mode 100644
index 9a8fc3e..0000000
--- a/sip/ktexteditor/smartrangewatcher.sip
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright 2011 Simon Edwards <simon@simonzone.com>
-
-// Generated by twine2
-
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU Library General Public License as
-// published by the Free Software Foundation; either version 2, or
-// (at your option) any later version.
-
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details
-
-// You should have received a copy of the GNU Library General Public
-// License along with this program; if not, write to the
-// Free Software Foundation, Inc.,
-// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-
-namespace KTextEditor
-{
-class SmartRangeWatcher
-{
-%TypeHeaderCode
-#include <ktexteditor/smartrangewatcher.h>
-%End
-
-public:
- SmartRangeWatcher ();
- virtual ~SmartRangeWatcher ();
- bool wantsDirectChanges () const;
- void setWantsDirectChanges (bool wantsDirectChanges);
- virtual void rangePositionChanged (KTextEditor::SmartRange* range);
- virtual void rangeContentsChanged (KTextEditor::SmartRange* range);
- virtual void rangeContentsChanged (KTextEditor::SmartRange* range, \
KTextEditor::SmartRange* mostSpecificChild);
- virtual void mouseEnteredRange (KTextEditor::SmartRange* range, KTextEditor::View* view);
- virtual void mouseExitedRange (KTextEditor::SmartRange* range, KTextEditor::View* view);
- virtual void caretEnteredRange (KTextEditor::SmartRange* range, KTextEditor::View* view);
- virtual void caretExitedRange (KTextEditor::SmartRange* range, KTextEditor::View* view);
- virtual void rangeEliminated (KTextEditor::SmartRange* range);
- virtual void rangeDeleted (KTextEditor::SmartRange* range);
- virtual void parentRangeChanged (KTextEditor::SmartRange* range, KTextEditor::SmartRange* \
newParent, KTextEditor::SmartRange* oldParent);
- virtual void childRangeInserted (KTextEditor::SmartRange* range, KTextEditor::SmartRange* \
child);
- virtual void childRangeRemoved (KTextEditor::SmartRange* range, KTextEditor::SmartRange* \
child);
- virtual void rangeAttributeChanged (KTextEditor::SmartRange* range, \
KTextEditor::Attribute::Ptr currentAttribute, KTextEditor::Attribute::Ptr \
previousAttribute);
-};
-};
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic