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

List:       kde-commits
Subject:    kdelibs/interfaces/ktexteditor
From:       Dominik Haumann <dhdev () gmx ! de>
Date:       2004-05-15 20:05:32
Message-ID: 20040515200532.971C39003 () office ! kde ! org
[Download RAW message or body]

CVS commit by dhaumann: 

remove RESERVED from enum, added static function for this.


  M +6 -1      markinterface.cpp   1.8
  M +9 -7      markinterface.h   1.15


--- kdelibs/interfaces/ktexteditor/markinterface.cpp  #1.7:1.8
@@ -68,2 +68,7 @@ MarkInterface *KTextEditor::markInterfac
   return static_cast<MarkInterface*>(doc->qt_cast("KTextEditor::MarkInterface"));
 }
+
+const int MarkInterface::reservedMarkersCount()
+{
+    return 7;
+}

--- kdelibs/interfaces/ktexteditor/markinterface.h  #1.14:1.15
@@ -86,4 +86,12 @@ class MarkInterface
     
     /**
+     * get the number of predefined marker types we have so far.
+     * @note If you change this you have to make sure katepart supports the new size!
+     * @return number of reserved marker types
+     * @since 3.3
+     */
+    static const int reservedMarkersCount();
+
+    /**
      * Pre-defined mark types.
      *
@@ -108,10 +116,4 @@ class MarkInterface
       markType07= 0x40,
 
-      /**
-       * RESERVED tells us how many predefined marker types we have so far.
-       * @note If you change this you have to make sure katepart supports the new size!
-       */
-      RESERVED=7,
-
       markType08= 0x80,
       markType09= 0x100,


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

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