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.6 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
{
TQtWIN
};
%End
enum ModFlag
{
SHIFT,
CTRL,
ALT,
WIN
};
KKey ();
KKey (int);
KKey (const TQKeySequence&);
KKey (const TQKeyEvent*);
KKey (const KKey&);
KKey (const TQString&);
KKey (uint, uint);
void clear ();
bool init (int);
bool init (const TQKeySequence&);
bool init (const TQKeyEvent*);
bool init (const KKey&);
bool init (const TQString&);
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 keyCodeTQt () const;
TQString toString () const;
TQString toStringInternal () const;
void simplify ();
static KKey& null ();
static TQString modFlagLabel (KKey::ModFlag);
public:
%If ( - KDE_3_2_0 )
//ig bool isValidTQt () const;
//ig bool isValidNative () const;
%End
public:
%If ( KDE_3_1_2 - KDE_3_1_3 )
enum
{
TQtWIN
};
%End
public:
%If ( - KDE_3_1_2 )
enum
{
TQtWIN
};
%End
}; // class KKey
class KKeySequence
{
%TypeHeaderCode
#include <kshortcut.h>
%End
public:
enum
{
MAX_KEYS
};
KKeySequence ();
KKeySequence (const TQKeySequence&);
KKeySequence (const KKey&);
//ig KKeySequence (const KKeyNative&);
KKeySequence (const KKeySequence&);
KKeySequence (const TQString&);
void clear ();
bool init (const TQKeySequence&);
bool init (const KKey&);
//ig bool init (const KKeyNative&);
bool init (const KKeySequence&);
bool init (const TQString&);
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
TQKeySequence qt () const;
int keyCodeTQt () const;
TQString toString () const;
TQString 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_SETQUENCES
};
KShortcut ();
KShortcut (int);
KShortcut (const TQKeySequence&);
KShortcut (const KKey&);
KShortcut (const KKeySequence&);
KShortcut (const KShortcut&);
KShortcut (const char*);
KShortcut (const TQString&);
void clear ();
bool init (int);
bool init (const TQKeySequence&);
bool init (const KKey&);
bool init (const KKeySequence&);
bool init (const KShortcut&);
bool init (const TQString&);
uint count () const;
const KKeySequence& seq (uint) const;
int keyCodeTQt () 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 TQKeySequence () const;
%End
TQString toString () const;
TQString toStringInternal (const KShortcut* = 0) const;
static KShortcut& null ();
protected:
public:
%If ( KDE_3_1_4 - )
//ig operator int () const;
%End
}; // class KShortcut