summaryrefslogtreecommitdiffstats
path: root/krita/plugins/viewplugins/scripting/scripting.cc
diff options
context:
space:
mode:
Diffstat (limited to 'krita/plugins/viewplugins/scripting/scripting.cc')
-rw-r--r--krita/plugins/viewplugins/scripting/scripting.cc30
1 files changed, 15 insertions, 15 deletions
diff --git a/krita/plugins/viewplugins/scripting/scripting.cc b/krita/plugins/viewplugins/scripting/scripting.cc
index d7f5fde7..210b8eff 100644
--- a/krita/plugins/viewplugins/scripting/scripting.cc
+++ b/krita/plugins/viewplugins/scripting/scripting.cc
@@ -21,8 +21,8 @@
#include <stdlib.h>
#include <vector>
-#include <qapplication.h>
-#include <qpoint.h>
+#include <tqapplication.h>
+#include <tqpoint.h>
#include <kdebug.h>
#include <kfiledialog.h>
@@ -54,36 +54,36 @@
typedef KGenericFactory<Scripting> KritaScriptingFactory;
K_EXPORT_COMPONENT_FACTORY( kritascripting, KritaScriptingFactory( "krita" ) )
-Scripting::Scripting(QObject *parent, const char *name, const QStringList &)
- : KParts::Plugin(parent, name)
+Scripting::Scripting(TQObject *tqparent, const char *name, const TQStringList &)
+ : KParts::Plugin(tqparent, name)
{
setInstance(KritaScriptingFactory::instance());
- if ( parent->inherits("KisView") )
+ if ( tqparent->inherits("KisView") )
{
setInstance(Scripting::instance());
- m_view = (KisView*) parent;
+ m_view = (KisView*) tqparent;
m_scriptguiclient = new Kross::Api::ScriptGUIClient( m_view, m_view );
// m_scriptguiclient ->setXMLFile(locate("data","kritaplugins/scripting.rc"), true);
//BEGIN TODO: understand why the ScriptGUIClient doesn't "link" its actions to the menu
setXMLFile(locate("data","kritaplugins/scripting.rc"), true);
- new KAction(i18n("Execute Script File..."), 0, 0, m_scriptguiclient, SLOT(executeScriptFile()), actionCollection(), "executescriptfile");
- new KAction(i18n("Script Manager..."), 0, 0, m_scriptguiclient, SLOT(showScriptManager()), actionCollection(), "configurescripts");
+ new KAction(i18n("Execute Script File..."), 0, 0, m_scriptguiclient, TQT_SLOT(executeScriptFile()), actionCollection(), "executescriptfile");
+ new KAction(i18n("Script Manager..."), 0, 0, m_scriptguiclient, TQT_SLOT(showScriptManager()), actionCollection(), "configurescripts");
//END TODO
- QWidget * w = new Kross::Api::WdgScriptsManager(m_scriptguiclient, m_view);
+ TQWidget * w = new Kross::Api::WdgScriptsManager(m_scriptguiclient, m_view);
m_view->canvasSubject()->paletteManager()->addWidget(w, "Scripts Manager", krita::LAYERBOX, 10, PALETTE_DOCKER, false);
- connect(m_scriptguiclient, SIGNAL(executionFinished( const Kross::Api::ScriptAction* )), this, SLOT(executionFinished(const Kross::Api::ScriptAction*)));
- connect(m_scriptguiclient, SIGNAL(executionStarted( const Kross::Api::ScriptAction* )), this, SLOT(executionStarted(const Kross::Api::ScriptAction*)));
+ connect(m_scriptguiclient, TQT_SIGNAL(executionFinished( const Kross::Api::ScriptAction* )), this, TQT_SLOT(executionFinished(const Kross::Api::ScriptAction*)));
+ connect(m_scriptguiclient, TQT_SIGNAL(executionStarted( const Kross::Api::ScriptAction* )), this, TQT_SLOT(executionStarted(const Kross::Api::ScriptAction*)));
KisScriptMonitor::instance()->monitor( m_scriptguiclient );
- Kross::Api::Manager::scriptManager()->addQObject(m_view->canvasSubject()->document(), "KritaDocument");
- Kross::Api::Manager::scriptManager()->addQObject(m_view, "KritaView");
+ Kross::Api::Manager::scriptManager()->addTQObject(m_view->canvasSubject()->document(), "KritaDocument");
+ Kross::Api::Manager::scriptManager()->addTQObject(m_view, "KritaView");
m_scriptProgress = new KisScriptProgress(m_view);
- Kross::Api::Manager::scriptManager()->addQObject(m_scriptProgress, "KritaScriptProgress");
+ Kross::Api::Manager::scriptManager()->addTQObject(m_scriptProgress, "KritaScriptProgress");
}
@@ -98,7 +98,7 @@ void Scripting::executionFinished(const Kross::Api::ScriptAction*)
m_view->canvasSubject()->document()->setModified(true);
m_view->canvasSubject()->document()->currentImage()->activeLayer()->setDirty();
m_scriptProgress->progressDone();
- QApplication::restoreOverrideCursor();
+ TQApplication::restoreOverrideCursor();
}
void Scripting::executionStarted(const Kross::Api::ScriptAction* act)