[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdelibs/kate
From: Christoph Cullmann <cullmann () kde ! org>
Date: 2005-03-14 21:39:34
Message-ID: 20050314213934.342CA1487F () office ! kde ! org
[Download RAW message or body]
CVS commit by cullmann:
add a jstest test script we really install, this should be used for further testing \
of scriptmanager works
A scripts/Makefile.am 1.1
A scripts/jstest.js 1.1
M +2 -2 Makefile.am 1.13
M +13 -1 part/katejscript.cpp 1.16
--- kdelibs/kate/Makefile.am #1.12:1.13
@@ -1,4 +1,4 @@
-SUBDIRS = interfaces part data plugins
-EXTRA_DIST = AUTHORS COPYING.LIB ChangeLog NEWS README TODO
+SUBDIRS = interfaces part data scripts plugins
+EXTRA_DIST = AUTHORS COPYING.LIB ChangeLog NEWS README TODO
messages:
--- kdelibs/kate/part/katejscript.cpp #1.15:1.16
@@ -37,4 +37,5 @@
#include <qfile.h>
+#include <qfileinfo.h>
namespace KJS {
@@ -476,6 +477,17 @@ void KateJScriptManager::collectScripts
else
{
- kdDebug (13010) << "UPDATE hl cache for: " << *it << endl;
+ kdDebug (13010) << "add script: " << *it << endl;
+
+ QFileInfo fi (*it);
+
+ if (m_scripts[fi.baseName()])
+ continue;
+
+ KateJScriptManager::Script *s = new KateJScriptManager::Script ();
+ s->name = fi.baseName();
+ s->filename = *it;
+
+ m_scripts.insert (s->name, s);
}
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic