[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [ktexteditor] /: KF 5.0 todo list
From:       Dominik Haumann <dhaumann () kde ! org>
Date:       2014-03-11 20:05:24
Message-ID: E1WNSvU-00086C-Dq () scm ! kde ! org
[Download RAW message or body]

Git commit 0e8cae028411f71d9f0305257953cc5f034e67df by Dominik Haumann.
Committed on 11/03/2014 at 20:02.
Pushed by dhaumann into branch 'master'.

KF 5.0 todo list

M  +7    -0    docs/porting.dox
M  +56   -23   src/TODO

http://commits.kde.org/ktexteditor/0e8cae028411f71d9f0305257953cc5f034e67df

diff --git a/docs/porting.dox b/docs/porting.dox
index 3ac7ee7..5baa7ac 100644
--- a/docs/porting.dox
+++ b/docs/porting.dox
@@ -35,6 +35,13 @@ Entirely removed interfaces and classes are:
  - \p SmartCursor, \p SmartRange, \p SmartCursorNotifier, \p SmartCursorWatcher,
    \p SmartRangeNotifier, \p SmartRangeWatcher (already unsupported since KDE 4.5)
  - \p LoadSaveFilterCheckPlugin was removed, since it was unused.
+ - \p KTextEditor::VariableInterface \n
+   This interface was not used by other applications and therefore got removed.
+   If required, it can be added again.
+ - \p KTextEditor::SearchInterface \n
+   This interface was not used by other applications and therefore got removed.
+   If required, it can be added again (see file
+   ktexteditor/src/search/searchinterface.h).
 
 \section kte_port_merge Merged Interfaces
 The following interfaces were merged, in order:
diff --git a/src/TODO b/src/TODO
index 6f5ca8b..7550ee7 100644
--- a/src/TODO
+++ b/src/TODO
@@ -1,23 +1,56 @@
-KDE Framework 5.0
-
-- KTE: search for places marked with "KDE5"
-- KTE: export Kate Part Scripting
-- KTE: drop MarkInterface
-  - replace it with an interface based on KTE::MovingCursors
-  - this way, we can drop a lot of code dedicated just for mark handling
-  - example
-    - a mark could be set to MovingCursor(line, 0) with StayOnInsert
-    - drawing the bookmark works just like now
-    - if lines are joined the bookmark changes to MoveOnInsert (*)
-    - if lines are wrapped at the mark position, change back to StayOnInsert (*)
-    - (*) right now, we don't have a MovingCursorFeedback class, so if we
-      want to adapt the insert behavior manually (again special code)...
-      ...or add as additional flag to InsertBehavior: WrapOnLineWrap
-      this way the mark would automatically always stay on the correct line,
-      even when joining text and wrapping it again
-  - still provide some default mark types
-- scrolling API: http://bugs.kde.org/show_bug.cgi?id=138956
-- KTE: Merge some interfaces (TODO: TemplateInterface2)
-- KTE: ModificaionInterface, merge into Document, and:
-     - add: bool Document::isModifiedOnDisk()
-     - add: ModifiedOnDiskReason Document::modifiedOnDiskReason() const;
+TODO list that needs to be fixed before KDE Framework 5.0
+
+merge kateextendedattribute.h into kte/attribute.h
+- spell checking
+- default style (maybe extend default style with dsInvalid)
+- name ???
+
+TemplateInterface2
+- make internal (copy interface to snippet plugin)
+
+merge KTE::RangeCommand into KTE::Command?
+- merge KTE::CommandExtension::completionObject into KTE::Command and return
+  0 by default.
+- also: is KTE::CommandExtension needed? Also merge into KTE::Command?
+-> ask Simon and Michal
+
+KTE::HighlightInterface:
+- evaluate to add color functions:
+- QColor backgroundColor(), selectionColor(), ...
+
+KTextEditor::Cursor: add from KDevelop's SimpleCursor:
+- inline uint qHash(const KDevelop::SimpleCursor& cursor) {
+      return cursor.line * 53 + cursor.column * 47;
+  }
+
+KTE::Range, add from KDevelop's SimpleRange:
+- inline uint qHash(const KDevelop::SimpleRange& range) {
+      return qHash(range.start) + qHash(range.end)*41;
+  }
+
+
+add QByteArray KTE::Document::checksum() const
+
+? add QIcon KTE::Document::documentIcon() const -> considers modified state and all
+? add QIcon KTE::Document::mimetypeIcon() const ?
+
+KTE::ViewCursor
+- factor WrappingCursor/BoundedCursor into a public ViewCursor
+
+KTE::HighlightInterface:
+- add defaultStyleAt(Cursor) into KTE::Document
+- move defaultStyleAttribute(enum ) into KTE::View
+- lineAttributes() + AttributeBlock: move to KTE::View
+
+KTE::ModificationInterface
+- merge enum OnDiskModified and OnDiskCreated into OnDiskModified
+- some strange functions, have a look again (e.g. slotModifiedOnDisk???)
+- merge entire interface into KTE::Document ?
+- add: bool Document::isModifiedOnDisk()
+- add: ModifiedOnDiskReason Document::modifiedOnDiskReason() const;
+
+merge KTE::RecoveryInterface into KTE::Document
+
+copy read/writeSessionConfig into KTE::Document (with enum to skip items)
+copy read/writeSessionConfig into KTE::View (with enum to skip items)
+then, KTE::SessionConfigInterface is only Plugin extension interface
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic