All pastes #459249 Raw Edit

Malix0

public cpp v1 · immutable
#459249 ·published 2007-04-26 10:53 UTC
rendered paste body
Index: interfaces/ktexteditor/editor.h===================================================================--- interfaces/ktexteditor/editor.h	(revisione 657573)+++ interfaces/ktexteditor/editor.h	(copia locale)@@ -242,6 +242,15 @@      */     virtual KIcon configPageIcon (int number) const = 0;+    /*+    * Debug+    */+  public:+     /**+      * sDebugScript Signal wrapper+      */+    virtual void debugScript(const QString&) = 0;+   Q_SIGNALS:     /**      * The \p editor emits this signal whenever a \p document was successfully@@ -253,6 +262,11 @@     void documentCreated (KTextEditor::Editor *editor,                           KTextEditor::Document *document);+    /**+     * The \p sDebugScript emits the script debug message+     */+    void sDebugScript(const QString&);+   private:     class EditorPrivate* const d; };Index: kate/part/kateglobal.h===================================================================--- kate/part/kateglobal.h	(revisione 657573)+++ kate/part/kateglobal.h	(copia locale)@@ -150,6 +150,16 @@     KIcon configPageIcon (int number) const;+   /**+   * Debug+   */+  public:+    /**+     * Emit debug message via \p sDebugScript signal+     * \param message the message to be emitted+     */+    void debugScript(const QString& message);+   /**    * Kate Part Internal stuff ;)    */Index: kate/part/katejscript.cpp===================================================================--- kate/part/katejscript.cpp	(revisione 657573)+++ kate/part/katejscript.cpp	(copia locale)@@ -163,6 +163,7 @@   switch (id) {     case Debug:       kDebug(13051) << args[0]->toString(exec).qstring() << endl;+      KateGlobal::self()->debugScript(args[0]->toString(exec).qstring());       return KJS::Undefined();     default:       break;Index: kate/part/kateglobal.cpp===================================================================--- kate/part/kateglobal.cpp	(revisione 657573)+++ kate/part/kateglobal.cpp	(copia locale)@@ -445,6 +445,11 @@   return KIcon("edit"); }+void KateGlobal::debugScript(const QString& message)+{+  sDebugScript(message);+}+ KateGlobal *KateGlobal::self () {   if (!s_self) {