diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-03 22:23:44 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-03 22:23:44 -0600 |
commit | 203ba231d0276943aae36111f9ec1e949f3c6a4c (patch) | |
tree | f039f7a5b5fc2da88a96876971bac580d87f6788 /sip/tdeui/kkeydialog.sip | |
parent | fd35f4a8382b7d223bc0325b9ca3f88515778aa0 (diff) | |
download | pytde-203ba231d0276943aae36111f9ec1e949f3c6a4c.tar.gz pytde-203ba231d0276943aae36111f9ec1e949f3c6a4c.zip |
Initial TQt conversion
Diffstat (limited to 'sip/tdeui/kkeydialog.sip')
-rw-r--r-- | sip/tdeui/kkeydialog.sip | 78 |
1 files changed, 39 insertions, 39 deletions
diff --git a/sip/tdeui/kkeydialog.sip b/sip/tdeui/kkeydialog.sip index 96d4ff9..843e466 100644 --- a/sip/tdeui/kkeydialog.sip +++ b/sip/tdeui/kkeydialog.sip @@ -24,7 +24,7 @@ // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -class KKeyChooser : QWidget +class KKeyChooser : TQWidget { %TypeHeaderCode #include <kkeydialog.h> @@ -41,24 +41,24 @@ public: Global }; - KKeyChooser (QWidget* /TransferThis/, KKeyChooser::ActionType = Application , bool = 1); - KKeyChooser (KActionCollection*, QWidget* /TransferThis/, bool = 1); - KKeyChooser (KAccel*, QWidget* /TransferThis/, bool = 1); - KKeyChooser (KGlobalAccel*, QWidget* /TransferThis/); - KKeyChooser (KShortcutList*, QWidget* /TransferThis/, KKeyChooser::ActionType = Application , bool = 1); + KKeyChooser (TQWidget* /TransferThis/, KKeyChooser::ActionType = Application , bool = 1); + KKeyChooser (KActionCollection*, TQWidget* /TransferThis/, bool = 1); + KKeyChooser (KAccel*, TQWidget* /TransferThis/, bool = 1); + KKeyChooser (KGlobalAccel*, TQWidget* /TransferThis/); + KKeyChooser (KShortcutList*, TQWidget* /TransferThis/, KKeyChooser::ActionType = Application , bool = 1); bool insert (KActionCollection*); %If ( KDE_3_1_0 - ) - bool insert (KActionCollection*, const QString&); + bool insert (KActionCollection*, const TQString&); %End - void syncToConfig (const QString&, KConfigBase*, bool); + void syncToConfig (const TQString&, KConfigBase*, bool); void commitChanges (); void save (); %If ( KDE_3_2_0 - ) - static bool checkGlobalShortcutsConflict (const KShortcut&, bool, QWidget* /Transfer/); - static bool checkStandardShortcutsConflict (const KShortcut&, bool, QWidget* /Transfer/); + static bool checkGlobalShortcutsConflict (const KShortcut&, bool, TQWidget* /Transfer/); + static bool checkStandardShortcutsConflict (const KShortcut&, bool, TQWidget* /Transfer/); %End @@ -76,33 +76,33 @@ protected: bool insert (KShortcutList*); %If ( KDE_3_1_0 - ) - void buildListView (uint, const QString& = QString ::null ); + void buildListView (uint, const TQString& = TQString ::null ); %End void readGlobalKeys (); void updateButtons (); - void fontChange (const QFont&); + void fontChange (const TQFont&); void setShortcut (const KShortcut&); bool isKeyPresent (const KShortcut&, bool = 1); %If ( KDE_3_1_0 - ) -//ig bool isKeyPresentLocally (const KShortcut&, KKeyChooserItem*, const QString&); +//ig bool isKeyPresentLocally (const KShortcut&, KKeyChooserItem*, const TQString&); %End - void _warning (const KKeySequence&, QString, QString); + void _warning (const KKeySequence&, TQString, TQString); protected slots: void slotNoKey (); void slotDefaultKey (); void slotCustomKey (); - void slotListItemSelected (QListViewItem*); + void slotListItemSelected (TQListViewItem*); void capturedShortcut (const KShortcut&); %If ( KDE_3_1_0 - ) void slotSettingsChanged (int); %If ( KDE_3_1_2 - ) - void slotListItemDoubleClicked (QListViewItem*, const QPoint&, int); + void slotListItemDoubleClicked (TQListViewItem*, const TQPoint&, int); %End %End @@ -111,8 +111,8 @@ protected slots: protected: public: - KKeyChooser (KAccel*, QWidget* /TransferThis/, bool, bool, bool = 0); - KKeyChooser (KGlobalAccel*, QWidget* /TransferThis/, bool, bool, bool = 0); + KKeyChooser (KAccel*, TQWidget* /TransferThis/, bool, bool, bool = 0); + KKeyChooser (KGlobalAccel*, TQWidget* /TransferThis/, bool, bool, bool = 0); public slots: void listSync (); @@ -138,33 +138,33 @@ class KKeyDialog : KDialogBase public: - KKeyDialog (bool = 1, QWidget* /TransferThis/ = 0, const char* = 0); + KKeyDialog (bool = 1, TQWidget* /TransferThis/ = 0, const char* = 0); bool insert (KActionCollection*); %If ( KDE_3_1_0 - ) - bool insert (KActionCollection*, const QString&); + bool insert (KActionCollection*, const TQString&); %End bool configure (bool = 1); void commitChanges (); - static int configure (KActionCollection*, QWidget* /Transfer/ = 0, bool = 1); - static int configure (KAccel*, QWidget* /Transfer/ = 0, bool = 1); - static int configure (KGlobalAccel*, QWidget* /Transfer/ = 0, bool = 1); + static int configure (KActionCollection*, TQWidget* /Transfer/ = 0, bool = 1); + static int configure (KAccel*, TQWidget* /Transfer/ = 0, bool = 1); + static int configure (KGlobalAccel*, TQWidget* /Transfer/ = 0, bool = 1); %If ( KDE_3_1_0 - ) - static int configure (KActionCollection*, bool, QWidget* /Transfer/ = 0, bool = 1); - static int configure (KAccel*, bool, QWidget* /Transfer/ = 0, bool = 1); - static int configure (KGlobalAccel*, bool, QWidget* /Transfer/ = 0, bool = 1); + static int configure (KActionCollection*, bool, TQWidget* /Transfer/ = 0, bool = 1); + static int configure (KAccel*, bool, TQWidget* /Transfer/ = 0, bool = 1); + static int configure (KGlobalAccel*, bool, TQWidget* /Transfer/ = 0, bool = 1); %End - static int configureKeys (KAccel*, bool = 1, QWidget* /Transfer/ = 0); - static int configureKeys (KGlobalAccel*, bool = 1, QWidget* /Transfer/ = 0); - static int configureKeys (KActionCollection*, const QString&, bool = 1, QWidget* /Transfer/ = 0); + static int configureKeys (KAccel*, bool = 1, TQWidget* /Transfer/ = 0); + static int configureKeys (KGlobalAccel*, bool = 1, TQWidget* /Transfer/ = 0); + static int configureKeys (KActionCollection*, const TQString&, bool = 1, TQWidget* /Transfer/ = 0); %If ( KDE_3_1_0 - ) private: - KKeyDialog (KKeyChooser::ActionType, bool = 1, QWidget* /TransferThis/ = 0, const char* = 0); + KKeyDialog (KKeyChooser::ActionType, bool = 1, TQWidget* /TransferThis/ = 0, const char* = 0); %End @@ -177,11 +177,11 @@ typedef KKeyChooser KKeyChooser; %MappedType IntDict -//converts a Python dict of QString:int +//converts a Python dict of TQString:int { %TypeHeaderCode #include <qdict.h> -typedef QDict<int> IntDict; +typedef TQDict<int> IntDict; %End %ConvertFromTypeCode @@ -199,12 +199,12 @@ typedef QDict<int> IntDict; // Get it. - QDict<int> qdict = *sipCpp; - QDictIterator<int> it (qdict); + TQDict<int> qdict = *sipCpp; + TQDictIterator<int> it (qdict); while (it.current ()) { - QString current_key = it.currentKey (); + TQString current_key = it.currentKey (); PyObject *a0 = sipConvertFromInstance (¤t_key, sipClass_QCString, sipTransferObj); PyObject *a1 = PyInt_FromLong ((long) it.current ()); @@ -222,23 +222,23 @@ typedef QDict<int> IntDict; %ConvertToTypeCode - // Convert a Python dictionary to a QDict<int> on the heap. + // Convert a Python dictionary to a TQDict<int> on the heap. if (sipIsErr == NULL) return PyDict_Check(sipPy); - QDict<int>* qdict = new QDict<int>; + TQDict<int>* qdict = new TQDict<int>; PyObject *key, *value; SIP_SSIZE_T pos = 0; - QString *a0; + TQString *a0; int a1; while (PyDict_Next(sipPy, &pos, &key, &value)) { int iserr = 0, a0_state; - a0 = (QString *)sipForceConvertToType(key, sipType_QString, sipTransferObj, SIP_NOT_NONE, &a0_state, &iserr); + a0 = (TQString *)sipForceConvertToType(key, sipType_QString, sipTransferObj, SIP_NOT_NONE, &a0_state, &iserr); if ((iserr) || (!PyInt_Check (value))) { |