summaryrefslogtreecommitdiffstats
path: root/kexi/plugins/macros/kexiactions/executeaction.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kexi/plugins/macros/kexiactions/executeaction.cpp')
-rw-r--r--kexi/plugins/macros/kexiactions/executeaction.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/kexi/plugins/macros/kexiactions/executeaction.cpp b/kexi/plugins/macros/kexiactions/executeaction.cpp
index 564b03c8..7383b9a8 100644
--- a/kexi/plugins/macros/kexiactions/executeaction.cpp
+++ b/kexi/plugins/macros/kexiactions/executeaction.cpp
@@ -40,20 +40,20 @@ ExecuteAction::ExecuteAction()
: KexiAction("execute", i18n("Execute"))
{
int conditions = ObjectVariable<ExecuteAction>::VisibleInNav | ObjectVariable<ExecuteAction>::Executable;
- KSharedPtr<KoMacro::Variable> objvar = new ObjectVariable<ExecuteAction>(this, conditions);
+ TDESharedPtr<KoMacro::Variable> objvar = new ObjectVariable<ExecuteAction>(this, conditions);
setVariable(objvar);
- setVariable(KSharedPtr<KoMacro::Variable>( new ObjectNameVariable<ExecuteAction>(this, objvar->variant().toString()) ));
+ setVariable(TDESharedPtr<KoMacro::Variable>( new ObjectNameVariable<ExecuteAction>(this, objvar->variant().toString()) ));
}
ExecuteAction::~ExecuteAction()
{
}
-bool ExecuteAction::notifyUpdated(KSharedPtr<KoMacro::MacroItem> macroitem, const TQString& name)
+bool ExecuteAction::notifyUpdated(TDESharedPtr<KoMacro::MacroItem> macroitem, const TQString& name)
{
kdDebug()<<"ExecuteAction::notifyUpdated() name="<<name<<" macroitem.action="<<(macroitem->action() ? macroitem->action()->name() : "NOACTION")<<endl;
- KSharedPtr<KoMacro::Variable> variable = macroitem->variable(name, false);
+ TDESharedPtr<KoMacro::Variable> variable = macroitem->variable(name, false);
if(! variable) {
kdWarning()<<"ExecuteAction::notifyUpdated() No such variable="<<name<<" in macroitem."<<endl;
return false;
@@ -64,16 +64,16 @@ bool ExecuteAction::notifyUpdated(KSharedPtr<KoMacro::MacroItem> macroitem, cons
const TQString objectvalue = macroitem->variant(OBJECT, true).toString(); // e.g. "macro" or "script"
const TQString objectname = macroitem->variant(NAME, true).toString(); // e.g. "macro1" or "macro2" if objectvalue above is "macro"
macroitem->variable(NAME, true)->setChildren(
- KoMacro::Variable::List() << KSharedPtr<KoMacro::Variable>(new ObjectNameVariable<ExecuteAction>(this, objectvalue, objectname)) );
+ KoMacro::Variable::List() << TDESharedPtr<KoMacro::Variable>(new ObjectNameVariable<ExecuteAction>(this, objectvalue, objectname)) );
}
return true;
}
-void ExecuteAction::activate(KSharedPtr<KoMacro::Context> context)
+void ExecuteAction::activate(TDESharedPtr<KoMacro::Context> context)
{
if(! mainWin()->project()) {
- kdWarning() << "ExecuteAction::activate(KSharedPtr<KoMacro::Context>) Invalid project" << endl;
+ kdWarning() << "ExecuteAction::activate(TDESharedPtr<KoMacro::Context>) Invalid project" << endl;
return;
}