summaryrefslogtreecommitdiffstats
path: root/sip/tdecore/kaccel.sip
diff options
context:
space:
mode:
Diffstat (limited to 'sip/tdecore/kaccel.sip')
-rw-r--r--sip/tdecore/kaccel.sip78
1 files changed, 39 insertions, 39 deletions
diff --git a/sip/tdecore/kaccel.sip b/sip/tdecore/kaccel.sip
index 7b34881..2222223 100644
--- a/sip/tdecore/kaccel.sip
+++ b/sip/tdecore/kaccel.sip
@@ -24,7 +24,7 @@
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-class KAccel : QAccel
+class KAccel : TQAccel
{
%TypeHeaderCode
#include <kaccel.h>
@@ -32,32 +32,32 @@ class KAccel : QAccel
public:
- KAccel (QWidget* /TransferThis/, const char* = 0);
- KAccel (QWidget*, QObject* /TransferThis/, const char* = 0);
+ KAccel (TQWidget* /TransferThis/, const char* = 0);
+ KAccel (TQWidget*, TQObject* /TransferThis/, const char* = 0);
KAccelActions& actions ();
bool isEnabled () const;
void setEnabled (bool);
bool setAutoUpdate (bool);
%If ( KDE_3_1_4 - )
- KAccelAction* insert (const QString&, const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), bool = 1, bool = 1);
- KAccelAction* insert (const QString&, const QString&, const QString&, const KShortcut&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), bool = 1, bool = 1);
+ KAccelAction* insert (const TQString&, const TQString&, const TQString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), bool = 1, bool = 1);
+ KAccelAction* insert (const TQString&, const TQString&, const TQString&, const KShortcut&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), bool = 1, bool = 1);
KAccelAction* insert (const char*, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), bool = 1, bool = 1);
KAccelAction* insert (KStdAccel::StdAccel, SIP_RXOBJ_CON, SIP_SLOT_CON (), bool = 1, bool = 1);
%End
- bool remove (const QString&);
+ bool remove (const TQString&);
bool updateConnections ();
- const KShortcut& shortcut (const QString&) const;
- bool setShortcut (const QString&, const KShortcut&);
+ const KShortcut& shortcut (const TQString&) const;
+ bool setShortcut (const TQString&, const KShortcut&);
%If ( KDE_3_1_4 - )
- bool setSlot (const QString&, SIP_RXOBJ_CON, SIP_SLOT_CON ());
+ bool setSlot (const TQString&, SIP_RXOBJ_CON, SIP_SLOT_CON ());
%End
- bool setEnabled (const QString&, bool);
- const QString& configGroup () const;
- void setConfigGroup (const QString&);
+ bool setEnabled (const TQString&, bool);
+ const TQString& configGroup () const;
+ void setConfigGroup (const TQString&);
bool readSettings (KConfigBase* = 0);
bool writeSettings (KConfigBase* = 0) const;
void emitKeycodeChanged ();
@@ -66,22 +66,22 @@ signals:
void keycodeChanged ();
public:
- bool insertItem (const QString&, const QString&, const char*, int = 0, QPopupMenu* = 0, bool = 1);
- bool insertItem (const QString&, const QString&, int, int, QPopupMenu*, bool = 1);
- bool insertStdItem (KStdAccel::StdAccel, const QString& = QString ::null );
+ bool insertItem (const TQString&, const TQString&, const char*, int = 0, TQPopupMenu* = 0, bool = 1);
+ bool insertItem (const TQString&, const TQString&, int, int, TQPopupMenu*, bool = 1);
+ bool insertStdItem (KStdAccel::StdAccel, const TQString& = TQString ::null );
%If ( KDE_3_1_4 - )
- bool connectItem (const QString&, SIP_RXOBJ_CON, SIP_SLOT_CON (), bool = 1);
+ bool connectItem (const TQString&, SIP_RXOBJ_CON, SIP_SLOT_CON (), bool = 1);
bool connectItem (KStdAccel::StdAccel, SIP_RXOBJ_CON, SIP_SLOT_CON ());
%End
- bool removeItem (const QString&);
- bool setItemEnabled (const QString&, bool);
- void changeMenuAccel (QPopupMenu*, int, const QString&);
- void changeMenuAccel (QPopupMenu*, int, KStdAccel::StdAccel);
- static int stringToKey (const QString&);
- int currentKey (const QString&) const;
- QString findKey (int) const;
+ bool removeItem (const TQString&);
+ bool setItemEnabled (const TQString&, bool);
+ void changeMenuAccel (TQPopupMenu*, int, const TQString&);
+ void changeMenuAccel (TQPopupMenu*, int, KStdAccel::StdAccel);
+ static int stringToKey (const TQString&);
+ int currentKey (const TQString&) const;
+ TQString findKey (int) const;
protected:
//igx virtual void virtual_hook (int, void*);
@@ -90,26 +90,26 @@ public:
%If ( - KDE_3_2_0 )
//ig bool getAutoUpdate ();
-//ig KAccelAction* insert (const QString&, const QString&);
+//ig KAccelAction* insert (const TQString&, const TQString&);
%End
public:
%If ( - KDE_3_1_4 )
- KAccelAction* insert (const QString&, const QString&, const QString&, const KShortcut&, const QObject*, const char*, bool = 1, bool = 1);
- KAccelAction* insert (const QString&, const QString&, const QString&, const KShortcut&, const KShortcut&, const QObject*, const char*, bool = 1, bool = 1);
- KAccelAction* insert (const char*, const KShortcut&, const QObject*, const char*, bool = 1, bool = 1);
- KAccelAction* insert (KStdAccel::StdAccel, const QObject*, const char*, bool = 1, bool = 1);
- bool setSlot (const QString&, const QObject*, const char*);
+ KAccelAction* insert (const TQString&, const TQString&, const TQString&, const KShortcut&, const TQObject*, const char*, bool = 1, bool = 1);
+ KAccelAction* insert (const TQString&, const TQString&, const TQString&, const KShortcut&, const KShortcut&, const TQObject*, const char*, bool = 1, bool = 1);
+ KAccelAction* insert (const char*, const KShortcut&, const TQObject*, const char*, bool = 1, bool = 1);
+ KAccelAction* insert (KStdAccel::StdAccel, const TQObject*, const char*, bool = 1, bool = 1);
+ bool setSlot (const TQString&, const TQObject*, const char*);
%End
public:
%If ( - KDE_3_1_4 )
- bool connectItem (const QString&, const QObject*, const char*, bool = 1);
- bool connectItem (KStdAccel::StdAccel, const QObject*, const char*);
+ bool connectItem (const TQString&, const TQObject*, const char*, bool = 1);
+ bool connectItem (KStdAccel::StdAccel, const TQObject*, const char*);
//force
%ConvertToSubClassCode
@@ -157,8 +157,8 @@ public:
-%MappedType QMap<int,QString>
-//converts a Python dict of int:QString
+%MappedType TQMap<int,TQString>
+//converts a Python dict of int:TQString
{
%TypeHeaderCode
#include <kaccel.h>
@@ -178,13 +178,13 @@ public:
// Get it.
- const QMap<int,QString> map = *sipCpp;
- QMap<int,QString>::ConstIterator it;
+ const TQMap<int,TQString> map = *sipCpp;
+ TQMap<int,TQString>::ConstIterator it;
for (it = map.begin (); it != map.end (); ++it)
{
PyObject *iKey = PyInt_FromLong (((long) it.key ()));
- PyObject *sData = PyString_FromString ((char *)((QString *)&it.data ()));
+ PyObject *sData = PyString_FromString ((char *)((TQString *)&it.data ()));
if ((iKey == NULL) || (sData == NULL) || (PyDict_SetItem (dict, iKey, sData) < 0))
{
@@ -205,19 +205,19 @@ public:
if (sipIsErr == NULL)
return PyDict_Check(sipPy);
- QMap<int,QString> *map = new QMap<int,QString>;
+ TQMap<int,TQString> *map = new TQMap<int,TQString>;
PyObject *key, *value;
SIP_SSIZE_T pos = 0;
int iKey;
- QString *sData;
+ TQString *sData;
while (PyDict_Next(sipPy, &pos, &key, &value))
{
int iserr = 0, sData_state;
iKey = PyInt_AS_LONG (key);
- sData = (QString *)sipForceConvertToType(value, sipType_QString, sipTransferObj, SIP_NOT_NONE, &sData_state, &iserr);
+ sData = (TQString *)sipForceConvertToType(value, sipType_QString, sipTransferObj, SIP_NOT_NONE, &sData_state, &iserr);
if (iserr)
{