summaryrefslogtreecommitdiffstats
path: root/kexi/core/kexiactionproxy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kexi/core/kexiactionproxy.cpp')
-rw-r--r--kexi/core/kexiactionproxy.cpp76
1 files changed, 38 insertions, 38 deletions
diff --git a/kexi/core/kexiactionproxy.cpp b/kexi/core/kexiactionproxy.cpp
index 0dbcf637..7f5f42f9 100644
--- a/kexi/core/kexiactionproxy.cpp
+++ b/kexi/core/kexiactionproxy.cpp
@@ -25,12 +25,12 @@
#include <kmainwindow.h>
#include <kshortcut.h>
-#include <qwidget.h>
-#include <qsignal.h>
-#include <qiconset.h>
+#include <tqwidget.h>
+#include <tqsignal.h>
+#include <tqiconset.h>
KAction_setEnabled_Helper::KAction_setEnabled_Helper(KexiActionProxy* proxy)
- : QObject(0,"KAction_setEnabled_Helper")
+ : TQObject(0,"KAction_setEnabled_Helper")
, m_proxy( proxy )
{
}
@@ -45,7 +45,7 @@ void KAction_setEnabled_Helper::slotSetEnabled(bool enabled)
//=======================
-KexiSharedActionConnector::KexiSharedActionConnector( KexiActionProxy* proxy, QObject *obj )
+KexiSharedActionConnector::KexiSharedActionConnector( KexiActionProxy* proxy, TQObject *obj )
: m_proxy(proxy)
, m_object(obj)
{
@@ -67,7 +67,7 @@ void KexiSharedActionConnector::plugSharedActionToExternalGUI(
}
void KexiSharedActionConnector::plugSharedActionsToExternalGUI(
- const QValueList<QCString>& action_names, KXMLGUIClient *client)
+ const TQValueList<TQCString>& action_names, KXMLGUIClient *client)
{
m_proxy->plugSharedActionsToExternalGUI(action_names, client);
}
@@ -75,7 +75,7 @@ void KexiSharedActionConnector::plugSharedActionsToExternalGUI(
//=======================
-KexiActionProxy::KexiActionProxy(QObject *receiver, KexiSharedActionHost *host)
+KexiActionProxy::KexiActionProxy(TQObject *receiver, KexiSharedActionHost *host)
: m_host( host ? host : &KexiSharedActionHost::defaultHost() )
, m_receiver(receiver)
, m_signals(47)
@@ -92,12 +92,12 @@ KexiActionProxy::KexiActionProxy(QObject *receiver, KexiSharedActionHost *host)
KexiActionProxy::~KexiActionProxy()
{
- QPtrListIterator<KexiActionProxy> it(m_sharedActionChildren);
+ TQPtrListIterator<KexiActionProxy> it(m_sharedActionChildren);
//detach myself from every child
for (;it.current();++it) {
it.current()->setActionProxyParent_internal( 0 );
}
- //take me from parent
+ //take me from tqparent
if (m_actionProxyParent)
m_actionProxyParent->takeActionProxyChild( this );
@@ -106,13 +106,13 @@ KexiActionProxy::~KexiActionProxy()
delete m_KAction_setEnabled_helper;
}
-void KexiActionProxy::plugSharedAction(const char *action_name, QObject* receiver, const char *slot)
+void KexiActionProxy::plugSharedAction(const char *action_name, TQObject* receiver, const char *slot)
{
if (!action_name)// || !receiver || !slot)
return;
- QPair<QSignal*,bool> *p = m_signals[action_name];
+ TQPair<TQSignal*,bool> *p = m_signals[action_name];
if (!p) {
- p = new QPair<QSignal*,bool>( new QSignal(&m_signal_parent), true );
+ p = new TQPair<TQSignal*,bool>( new TQSignal(&m_signal_parent), true );
m_signals.insert(action_name, p);
}
if (receiver && slot)
@@ -121,14 +121,14 @@ void KexiActionProxy::plugSharedAction(const char *action_name, QObject* receive
void KexiActionProxy::unplugSharedAction(const char *action_name)
{
- QPair<QSignal*,bool> *p = m_signals.take(action_name);
+ TQPair<TQSignal*,bool> *p = m_signals.take(action_name);
if (!p)
return;
delete p->first;
delete p;
}
-int KexiActionProxy::plugSharedAction(const char *action_name, QWidget* w)
+int KexiActionProxy::plugSharedAction(const char *action_name, TQWidget* w)
{
KAction *a = sharedAction(action_name);
if (!a) {
@@ -138,7 +138,7 @@ int KexiActionProxy::plugSharedAction(const char *action_name, QWidget* w)
return a->plug(w);
}
-void KexiActionProxy::unplugSharedAction(const char *action_name, QWidget* w)
+void KexiActionProxy::unplugSharedAction(const char *action_name, TQWidget* w)
{
KAction *a = sharedAction(action_name);
if (!a) {
@@ -148,18 +148,18 @@ void KexiActionProxy::unplugSharedAction(const char *action_name, QWidget* w)
a->unplug(w);
}
-KAction* KexiActionProxy::plugSharedAction(const char *action_name, const QString& alternativeText, QWidget* w)
+KAction* KexiActionProxy::plugSharedAction(const char *action_name, const TQString& alternativeText, TQWidget* w)
{
KAction *a = sharedAction(action_name);
if (!a) {
kdWarning() << "KexiActionProxy::plugSharedAction(): NO SUCH ACTION: " << action_name << endl;
return 0;
}
- QCString altName = a->name();
+ TQCString altName = a->name();
altName += "_alt";
KAction *alt_act = new KAction(alternativeText, a->iconSet(), a->shortcut(),
- 0, 0, a->parent(), altName);
- QObject::connect(alt_act, SIGNAL(activated()), a, SLOT(activate()));
+ 0, 0, a->tqparent(), altName);
+ TQObject::connect(alt_act, TQT_SIGNAL(activated()), a, TQT_SLOT(activate()));
alt_act->plug(w);
//OK?
@@ -173,35 +173,35 @@ void KexiActionProxy::plugSharedActionToExternalGUI(const char *action_name, KXM
KAction *a = client->action(action_name);
if (!a)
return;
- plugSharedAction(a->name(), a, SLOT(activate()));
+ plugSharedAction(a->name(), a, TQT_SLOT(activate()));
//update availability
setAvailable(a->name(), a->isEnabled());
//changes will be signaled
- QObject::connect(a, SIGNAL(enabled(bool)), m_KAction_setEnabled_helper, SLOT(slotSetEnabled(bool)));
+ TQObject::connect(a, TQT_SIGNAL(enabled(bool)), m_KAction_setEnabled_helper, TQT_SLOT(slotSetEnabled(bool)));
}
void KexiActionProxy::plugSharedActionsToExternalGUI(
- const QValueList<QCString>& action_names, KXMLGUIClient *client)
+ const TQValueList<TQCString>& action_names, KXMLGUIClient *client)
{
- for (QValueList<QCString>::const_iterator it = action_names.constBegin(); it!=action_names.constEnd(); ++it) {
+ for (TQValueList<TQCString>::const_iterator it = action_names.constBegin(); it!=action_names.constEnd(); ++it) {
plugSharedActionToExternalGUI(*it, client);
}
}
bool KexiActionProxy::activateSharedAction(const char *action_name, bool alsoCheckInChildren)
{
- QPair<QSignal*,bool> *p = m_signals[action_name];
+ TQPair<TQSignal*,bool> *p = m_signals[action_name];
if (!p || !p->second) {
- //try in children...
+ //try in tqchildren...
if (alsoCheckInChildren) {
- QPtrListIterator<KexiActionProxy> it( m_sharedActionChildren );
+ TQPtrListIterator<KexiActionProxy> it( m_sharedActionChildren );
for( ; it.current(); ++it ) {
if (it.current()->activateSharedAction( action_name, alsoCheckInChildren ))
return true;
}
}
- return m_actionProxyParent ? m_actionProxyParent->activateSharedAction(action_name, false) : false; //last chance: parent
+ return m_actionProxyParent ? m_actionProxyParent->activateSharedAction(action_name, false) : false; //last chance: tqparent
}
//activate in this proxy...
p->first->activate();
@@ -215,12 +215,12 @@ KAction* KexiActionProxy::sharedAction(const char* action_name)
bool KexiActionProxy::isSupported(const char* action_name) const
{
- QPair<QSignal*,bool> *p = m_signals[action_name];
+ TQPair<TQSignal*,bool> *p = m_signals[action_name];
if (!p) {
- //not supported explicitly - try in children...
+ //not supported explicitly - try in tqchildren...
if (m_focusedChild)
return m_focusedChild->isSupported(action_name);
- QPtrListIterator<KexiActionProxy> it( m_sharedActionChildren );
+ TQPtrListIterator<KexiActionProxy> it( m_sharedActionChildren );
for( ; it.current(); ++it ) {
if (it.current()->isSupported(action_name))
return true;
@@ -232,19 +232,19 @@ bool KexiActionProxy::isSupported(const char* action_name) const
bool KexiActionProxy::isAvailable(const char* action_name, bool alsoCheckInChildren) const
{
- QPair<QSignal*,bool> *p = m_signals[action_name];
+ TQPair<TQSignal*,bool> *p = m_signals[action_name];
if (!p) {
- //not supported explicitly - try in children...
+ //not supported explicitly - try in tqchildren...
if (alsoCheckInChildren) {
if (m_focusedChild)
return m_focusedChild->isAvailable(action_name, alsoCheckInChildren);
- QPtrListIterator<KexiActionProxy> it( m_sharedActionChildren );
+ TQPtrListIterator<KexiActionProxy> it( m_sharedActionChildren );
for( ; it.current(); ++it ) {
if (it.current()->isSupported(action_name))
return it.current()->isAvailable(action_name, alsoCheckInChildren);
}
}
- return m_actionProxyParent ? m_actionProxyParent->isAvailable(action_name, false) : false; //last chance: parent
+ return m_actionProxyParent ? m_actionProxyParent->isAvailable(action_name, false) : false; //last chance: tqparent
}
//supported explicitly:
return p->second != 0;
@@ -252,7 +252,7 @@ bool KexiActionProxy::isAvailable(const char* action_name, bool alsoCheckInChild
void KexiActionProxy::setAvailable(const char* action_name, bool set)
{
- QPair<QSignal*,bool> *p = m_signals[action_name];
+ TQPair<TQSignal*,bool> *p = m_signals[action_name];
if (!p)
return;
p->second = set;
@@ -269,13 +269,13 @@ void KexiActionProxy::addActionProxyChild( KexiActionProxy* child )
void KexiActionProxy::takeActionProxyChild( KexiActionProxy* child )
{
- if (m_sharedActionChildren.findRef( child ) != -1)
+ if (m_sharedActionChildren.tqfindRef( child ) != -1)
m_sharedActionChildren.take();
}
-void KexiActionProxy::setActionProxyParent_internal( KexiActionProxy* parent )
+void KexiActionProxy::setActionProxyParent_internal( KexiActionProxy* tqparent )
{
- m_actionProxyParent = parent;
+ m_actionProxyParent = tqparent;
}
#include "kexiactionproxy_p.moc"