summaryrefslogtreecommitdiffstats
path: root/kexi/plugins/macros/kexiactions/navigateaction.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-31 00:15:51 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-31 00:15:51 -0600
commitf7055674768fa7f0267da4a14b9061e60ebab3fc (patch)
tree9cf91b2040d16220234c24c945e950952c359832 /kexi/plugins/macros/kexiactions/navigateaction.cpp
parentaf2ab9c9888013e42237f71166eeafe5e988da0f (diff)
downloadkoffice-f7055674768fa7f0267da4a14b9061e60ebab3fc.tar.gz
koffice-f7055674768fa7f0267da4a14b9061e60ebab3fc.zip
Rename KShared
Diffstat (limited to 'kexi/plugins/macros/kexiactions/navigateaction.cpp')
-rw-r--r--kexi/plugins/macros/kexiactions/navigateaction.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kexi/plugins/macros/kexiactions/navigateaction.cpp b/kexi/plugins/macros/kexiactions/navigateaction.cpp
index 815b8723..336039ae 100644
--- a/kexi/plugins/macros/kexiactions/navigateaction.cpp
+++ b/kexi/plugins/macros/kexiactions/navigateaction.cpp
@@ -47,7 +47,7 @@ namespace KexiMacro {
{
TQStringList list;
list << "first" << "previous" << "next" << "last" << "goto";
- this->appendChild( KSharedPtr<KoMacro::Variable>( new KoMacro::Variable(list, "@list") ) );
+ this->appendChild( TDESharedPtr<KoMacro::Variable>( new KoMacro::Variable(list, "@list") ) );
/*TODO should this actions belong to navigate? maybe it would be more wise to have
such kind of functionality in an own e.g. "Modify" action to outline, that
@@ -64,25 +64,25 @@ NavigateAction::NavigateAction()
: KexiAction("navigate", i18n("Navigate"))
{
KoMacro::Variable* navvar = new NavigateVariable<NavigateAction>(this);
- setVariable(KSharedPtr<KoMacro::Variable>( navvar ));
+ setVariable(TDESharedPtr<KoMacro::Variable>( navvar ));
KoMacro::Variable* rowvar = new KexiVariable<NavigateAction>(this, "rownr", i18n("Row"));
rowvar->setVariant(0);
- setVariable(KSharedPtr<KoMacro::Variable>(rowvar));
+ setVariable(TDESharedPtr<KoMacro::Variable>(rowvar));
KoMacro::Variable* colvar = new KexiVariable<NavigateAction>(this, "colnr", i18n("Column"));
colvar->setVariant(0);
- setVariable(KSharedPtr<KoMacro::Variable>(colvar));
+ setVariable(TDESharedPtr<KoMacro::Variable>(colvar));
}
NavigateAction::~NavigateAction()
{
}
-bool NavigateAction::notifyUpdated(KSharedPtr<KoMacro::MacroItem> macroitem, const TQString& name)
+bool NavigateAction::notifyUpdated(TDESharedPtr<KoMacro::MacroItem> macroitem, const TQString& name)
{
kdDebug()<<"NavigateAction::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()<<"NavigateAction::notifyUpdated() No such variable="<<name<<" in macroitem."<<endl;
return false;
@@ -94,15 +94,15 @@ bool NavigateAction::notifyUpdated(KSharedPtr<KoMacro::MacroItem> macroitem, con
const int colnr = macroitem->variant("colnr", true).toInt(); // e.g. "macro1" or "macro2" if objectvalue above is "macro"
macroitem->variable("rownr", true)->setChildren(
- KoMacro::Variable::List() << KSharedPtr<KoMacro::Variable>(new KoMacro::Variable(rownr)) );
+ KoMacro::Variable::List() << TDESharedPtr<KoMacro::Variable>(new KoMacro::Variable(rownr)) );
macroitem->variable("colnr", true)->setChildren(
- KoMacro::Variable::List() << KSharedPtr<KoMacro::Variable>(new KoMacro::Variable(colnr)) );
+ KoMacro::Variable::List() << TDESharedPtr<KoMacro::Variable>(new KoMacro::Variable(colnr)) );
}
return true;
}
-void NavigateAction::activate(KSharedPtr<KoMacro::Context> context)
+void NavigateAction::activate(TDESharedPtr<KoMacro::Context> context)
{
KexiDialogBase* dialog = dynamic_cast<KexiDialogBase*>( mainWin()->activeWindow() );
if(! dialog) {