You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pytde/sip/tdecore/kshortcut.sip

262 lines
6.5 KiB

//
// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com>
// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
// may also apply
// Generated by preSip
// module tdecore 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.,
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 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