[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/lib/kross/main
From: Sebastian Sauer <mail () dipe ! org>
Date: 2006-01-04 15:13:43
Message-ID: 1136387623.187207.6470.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 494296 by sebsauer:
Added bool executeScriptAction(ScriptAction* action) to be able to reuse the \
errordialog.
M +7 -2 scriptguiclient.cpp
M +7 -0 scriptguiclient.h
--- trunk/koffice/lib/kross/main/scriptguiclient.cpp #494295:494296
@@ -249,9 +249,14 @@
kdDebug() << QString("Kross::Api::ScriptGUIClient::executeScriptFile() \
file='%1'").arg(file) << endl;
ScriptAction::Ptr action = new ScriptAction(file);
- connect(action.data(), SIGNAL( failed(const QString&, const QString&) ),
+ return executeScriptAction(action.data());
+}
+
+bool ScriptGUIClient::executeScriptAction(ScriptAction* action)
+{
+ connect(action, SIGNAL( failed(const QString&, const QString&) ),
this, SLOT( executionFailed(const QString&, const QString&) ));
- connect(action.data(), SIGNAL( success() ),
+ connect(action, SIGNAL( success() ),
this, SLOT( successfullyExecuted() ));
action->activate();
--- trunk/koffice/lib/kross/main/scriptguiclient.h #494295:494296
@@ -142,6 +142,13 @@
bool executeScriptFile(const QString& file);
/**
+ * This method executes the \a ScriptAction \p action .
+ * Internaly we just call \a ScriptAction::activate and
+ * redirect the success/failed signals to our internal slots.
+ */
+ bool executeScriptAction(ScriptAction* action);
+
+ /**
* The \a ScriptManagerGUI dialog will be displayed to
* let the user manage the scriptfiles.
*/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic