summaryrefslogtreecommitdiffstats
path: root/python/pykde/sip/kdecore/kshortcut.sip
diff options
context:
space:
mode:
Diffstat (limited to 'python/pykde/sip/kdecore/kshortcut.sip')
-rw-r--r--python/pykde/sip/kdecore/kshortcut.sip261
1 files changed, 261 insertions, 0 deletions
diff --git a/python/pykde/sip/kdecore/kshortcut.sip b/python/pykde/sip/kdecore/kshortcut.sip
new file mode 100644
index 00000000..c86931b0
--- /dev/null
+++ b/python/pykde/sip/kdecore/kshortcut.sip
@@ -0,0 +1,261 @@
+//
+// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com>
+// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
+// may also apply
+
+
+// Generated by preSip
+// module kdecore version KDE 3.5.3
+
+
+// This software is free software; you can redistribute it and/or
+// modify it under the terms of the GNU General Public License as
+// published by the Free Software Foundation; either version 2 of
+// the License, or (at your option) any later version.
+//
+// This software is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public
+// License along with this library; see the file COPYING.
+// If not, write to the Free Software Foundation, Inc.,
+// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+
+class KKey
+{
+%TypeHeaderCode
+#include <kshortcut.h>
+%End
+
+
+public:
+
+ enum
+ {
+ MOD_FLAG_COUNT
+ };
+
+
+%If ( KDE_3_1_3 - )
+
+ enum
+ {
+ QtWIN
+ };
+
+%End
+
+
+ enum ModFlag
+ {
+ SHIFT,
+ CTRL,
+ ALT,
+ WIN
+ };
+
+ KKey ();
+ KKey (int);
+ KKey (const QKeySequence&);
+ KKey (const QKeyEvent*);
+ KKey (const KKey&);
+ KKey (const QString&);
+ KKey (uint, uint);
+ void clear ();
+ bool init (int);
+ bool init (const QKeySequence&);
+ bool init (const QKeyEvent*);
+ bool init (const KKey&);
+ bool init (const QString&);
+ bool init (uint, uint);
+ bool isNull () const;
+ uint sym () const;
+ uint modFlags () const;
+ int compare (const KKey&) const;
+
+%If ( KDE_3_1_4 - )
+ bool operator == (const KKey&) const;
+ bool operator != (const KKey&) const;
+ bool operator < (const KKey&) const;
+%End
+
+ int keyCodeQt () const;
+ QString toString () const;
+ QString toStringInternal () const;
+ void simplify ();
+ static KKey& null ();
+ static QString modFlagLabel (KKey::ModFlag);
+
+public:
+
+%If ( - KDE_3_2_0 )
+//ig bool isValidQt () const;
+//ig bool isValidNative () const;
+%End
+
+
+public:
+
+%If ( KDE_3_1_2 - KDE_3_1_3 )
+
+ enum
+ {
+ QtWIN
+ };
+
+%End
+
+
+public:
+
+%If ( - KDE_3_1_2 )
+
+ enum
+ {
+ QtWIN
+ };
+
+%End
+
+
+}; // class KKey
+
+
+class KKeySequence
+{
+%TypeHeaderCode
+#include <kshortcut.h>
+%End
+
+
+public:
+
+ enum
+ {
+ MAX_KEYS
+ };
+
+ KKeySequence ();
+ KKeySequence (const QKeySequence&);
+ KKeySequence (const KKey&);
+//ig KKeySequence (const KKeyNative&);
+ KKeySequence (const KKeySequence&);
+ KKeySequence (const QString&);
+ void clear ();
+ bool init (const QKeySequence&);
+ bool init (const KKey&);
+//ig bool init (const KKeyNative&);
+ bool init (const KKeySequence&);
+ bool init (const QString&);
+ uint count () const;
+ const KKey& key (uint) const;
+ bool isTriggerOnRelease () const;
+ bool setKey (uint, const KKey&);
+ bool isNull () const;
+ bool startsWith (const KKeySequence&) const;
+ int compare (const KKeySequence&) const;
+
+%If ( KDE_3_1_4 - )
+ bool operator == (const KKeySequence&) const;
+ bool operator != (const KKeySequence&) const;
+ bool operator < (const KKeySequence&) const;
+%End
+
+ QKeySequence qt () const;
+ int keyCodeQt () const;
+ QString toString () const;
+ QString toStringInternal () const;
+ static KKeySequence& null ();
+
+protected:
+
+public:
+
+%If ( - KDE_3_2_0 )
+//ig void setTriggerOnRelease (bool);
+%End
+
+
+}; // class KKeySequence
+
+
+class KShortcut
+{
+%TypeHeaderCode
+#include <kshortcut.h>
+%End
+
+
+public:
+
+ enum
+ {
+ MAX_SEQUENCES
+ };
+
+ KShortcut ();
+ KShortcut (int);
+ KShortcut (const QKeySequence&);
+ KShortcut (const KKey&);
+ KShortcut (const KKeySequence&);
+ KShortcut (const KShortcut&);
+ KShortcut (const char*);
+ KShortcut (const QString&);
+ void clear ();
+ bool init (int);
+ bool init (const QKeySequence&);
+ bool init (const KKey&);
+ bool init (const KKeySequence&);
+ bool init (const KShortcut&);
+ bool init (const QString&);
+ uint count () const;
+ const KKeySequence& seq (uint) const;
+ int keyCodeQt () const;
+ bool isNull () const;
+ int compare (const KShortcut&) const;
+
+%If ( KDE_3_1_4 - )
+ bool operator == (const KShortcut&) const;
+ bool operator != (const KShortcut&) const;
+ bool operator < (const KShortcut&) const;
+%End
+
+ bool contains (const KKey&) const;
+ bool contains (const KKeyNative&) const;
+ bool contains (const KKeySequence&) const;
+ bool setSeq (uint, const KKeySequence&);
+ bool append (const KKeySequence&);
+
+%If ( KDE_3_3_0 - )
+ void remove (const KKeySequence&);
+%End
+
+
+%If ( KDE_3_2_0 - )
+ bool append (const KKey&);
+ bool append (const KShortcut&);
+%End
+
+
+%If ( KDE_3_1_4 - )
+//ig operator QKeySequence () const;
+%End
+
+ QString toString () const;
+ QString toStringInternal (const KShortcut* = 0) const;
+ static KShortcut& null ();
+
+protected:
+
+public:
+
+%If ( KDE_3_1_4 - )
+//ig operator int () const;
+%End
+
+
+}; // class KShortcut
+