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

List:       kde-commits
Subject:    KDE/kdelibs/interfaces/ktexteditor
From:       Philippe Fremy <phil () freehackers ! org>
Date:       2007-08-27 17:04:48
Message-ID: 1188234288.923377.4495.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 705290 by pfremy:

Add a "container extension" concept for the kpart host of a ktexteditor. Such host \
can then provide additional services to the kpart

Define a first extension MdiContainer which gives the kpart the ability to add
and remove documents, add and remove views and query and change the active
view.



 M  +1 -0      CMakeLists.txt  
 A             containerinterface.h   [License: LGPL (v2)]
 M  +1 -1      document.h  
 M  +4 -0      editorchooser.h  


--- trunk/KDE/kdelibs/interfaces/ktexteditor/CMakeLists.txt #705289:705290
@@ -59,6 +59,7 @@
     codecompletioninterface.h
     codecompletionmodel.h
     configinterface.h
+    containerinterface.h
     DESTINATION  ${INCLUDE_INSTALL_DIR}/ktexteditor )
 
 install( FILES ktexteditor.desktop ktexteditorplugin.desktop  DESTINATION  \
                ${SERVICETYPES_INSTALL_DIR} )
--- trunk/KDE/kdelibs/interfaces/ktexteditor/document.h #705289:705290
@@ -147,7 +147,7 @@
     virtual View *createView ( QWidget *parent ) = 0;
 
     /**
-     * Return the view which is currently has user focus, if any.
+     * Return the view which currently has user focus, if any.
      */
     virtual View* activeView() const = 0;
 
--- trunk/KDE/kdelibs/interfaces/ktexteditor/editorchooser.h #705289:705290
@@ -123,6 +123,10 @@
     /**
      * Static accessor to get the Editor instance of the currently used
      * KTextEditor component.
+     *
+     * That Editor instance can be qobject-cast to specific extensions.
+     * If the result of the cast is not NULL, that extension is supported:
+     *
      * \param postfix config group postfix string
      * \param fallBackToKatePart if \e true, the returned Editor component
      *        will be a katepart if no other implementation can be found


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

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