summaryrefslogtreecommitdiffstats
path: root/kexi/core/kexiactionproxy.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2013-02-01 15:02:43 -0600
committerTimothy Pearson <[email protected]>2013-02-01 15:02:43 -0600
commitaea627236e4de24599c3e30617cf264c3c1b7d40 (patch)
tree467e13ca5a7eb0ab292259289ecc3572f53c5eae /kexi/core/kexiactionproxy.cpp
parent786304c6211f35ddc4cdd54b7aa7985fef4a2e70 (diff)
downloadkoffice-aea627236e4de24599c3e30617cf264c3c1b7d40.tar.gz
koffice-aea627236e4de24599c3e30617cf264c3c1b7d40.zip
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'kexi/core/kexiactionproxy.cpp')
-rw-r--r--kexi/core/kexiactionproxy.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/kexi/core/kexiactionproxy.cpp b/kexi/core/kexiactionproxy.cpp
index 851a4d3a..72004434 100644
--- a/kexi/core/kexiactionproxy.cpp
+++ b/kexi/core/kexiactionproxy.cpp
@@ -29,16 +29,16 @@
#include <tqsignal.h>
#include <tqiconset.h>
-KAction_setEnabled_Helper::KAction_setEnabled_Helper(KexiActionProxy* proxy)
- : TQObject(0,"KAction_setEnabled_Helper")
+TDEAction_setEnabled_Helper::TDEAction_setEnabled_Helper(KexiActionProxy* proxy)
+ : TQObject(0,"TDEAction_setEnabled_Helper")
, m_proxy( proxy )
{
}
-void KAction_setEnabled_Helper::slotSetEnabled(bool enabled)
+void TDEAction_setEnabled_Helper::slotSetEnabled(bool enabled)
{
- if (sender()->inherits("KAction")) {
- const KAction *a = static_cast<const KAction*>(sender());
+ if (sender()->inherits("TDEAction")) {
+ const TDEAction *a = static_cast<const TDEAction*>(sender());
m_proxy->setAvailable(a->name(), enabled);
}
}
@@ -81,7 +81,7 @@ KexiActionProxy::KexiActionProxy(TQObject *receiver, KexiSharedActionHost *host)
, m_signals(47)
, m_actionProxyParent(0)
, m_signal_parent( 0, "signal_parent" )
- , m_KAction_setEnabled_helper( new KAction_setEnabled_Helper(this) )
+ , m_TDEAction_setEnabled_helper( new TDEAction_setEnabled_Helper(this) )
, m_focusedChild(0)
{
m_signals.setAutoDelete(true);
@@ -103,7 +103,7 @@ KexiActionProxy::~KexiActionProxy()
m_host->takeActionProxyFor(m_receiver);
- delete m_KAction_setEnabled_helper;
+ delete m_TDEAction_setEnabled_helper;
}
void KexiActionProxy::plugSharedAction(const char *action_name, TQObject* receiver, const char *slot)
@@ -130,7 +130,7 @@ void KexiActionProxy::unplugSharedAction(const char *action_name)
int KexiActionProxy::plugSharedAction(const char *action_name, TQWidget* w)
{
- KAction *a = sharedAction(action_name);
+ TDEAction *a = sharedAction(action_name);
if (!a) {
kdWarning() << "KexiActionProxy::plugSharedAction(): NO SUCH ACTION: " << action_name << endl;
return -1;
@@ -140,7 +140,7 @@ int KexiActionProxy::plugSharedAction(const char *action_name, TQWidget* w)
void KexiActionProxy::unplugSharedAction(const char *action_name, TQWidget* w)
{
- KAction *a = sharedAction(action_name);
+ TDEAction *a = sharedAction(action_name);
if (!a) {
kdWarning() << "KexiActionProxy::unplugSharedAction(): NO SUCH ACTION: " << action_name << endl;
return;
@@ -148,16 +148,16 @@ void KexiActionProxy::unplugSharedAction(const char *action_name, TQWidget* w)
a->unplug(w);
}
-KAction* KexiActionProxy::plugSharedAction(const char *action_name, const TQString& alternativeText, TQWidget* w)
+TDEAction* KexiActionProxy::plugSharedAction(const char *action_name, const TQString& alternativeText, TQWidget* w)
{
- KAction *a = sharedAction(action_name);
+ TDEAction *a = sharedAction(action_name);
if (!a) {
kdWarning() << "KexiActionProxy::plugSharedAction(): NO SUCH ACTION: " << action_name << endl;
return 0;
}
TQCString altName = a->name();
altName += "_alt";
- KAction *alt_act = new KAction(alternativeText, a->iconSet(), a->shortcut(),
+ TDEAction *alt_act = new TDEAction(alternativeText, a->iconSet(), a->shortcut(),
0, 0, a->parent(), altName);
TQObject::connect(alt_act, TQT_SIGNAL(activated()), a, TQT_SLOT(activate()));
alt_act->plug(w);
@@ -170,7 +170,7 @@ KAction* KexiActionProxy::plugSharedAction(const char *action_name, const TQStri
void KexiActionProxy::plugSharedActionToExternalGUI(const char *action_name, KXMLGUIClient *client)
{
- KAction *a = client->action(action_name);
+ TDEAction *a = client->action(action_name);
if (!a)
return;
plugSharedAction(a->name(), a, TQT_SLOT(activate()));
@@ -178,7 +178,7 @@ void KexiActionProxy::plugSharedActionToExternalGUI(const char *action_name, KXM
//update availability
setAvailable(a->name(), a->isEnabled());
//changes will be signaled
- TQObject::connect(a, TQT_SIGNAL(enabled(bool)), m_KAction_setEnabled_helper, TQT_SLOT(slotSetEnabled(bool)));
+ TQObject::connect(a, TQT_SIGNAL(enabled(bool)), m_TDEAction_setEnabled_helper, TQT_SLOT(slotSetEnabled(bool)));
}
void KexiActionProxy::plugSharedActionsToExternalGUI(
@@ -208,7 +208,7 @@ bool KexiActionProxy::activateSharedAction(const char *action_name, bool alsoChe
return true;
}
-KAction* KexiActionProxy::sharedAction(const char* action_name)
+TDEAction* KexiActionProxy::sharedAction(const char* action_name)
{
return m_host->mainWindow()->actionCollection()->action(action_name);
}