2
// Copyright 2007 Jim Bublitz <jbublitz@nwinternet.com>
3
// Earlier copyrights 1998 - 2006 Jim Bublitz also apply
7
// PyKDE4 module kdeui version KDE 3.92.0
10
// This file is part of PyKDE4.
12
// PyKDE4 is free software; you can redistribute it and/or modify
13
// it under the terms of the GNU Lesser General Public License as
14
// published by the Free Software Foundation; either version 2.1 of
15
// the License, or (at your option) any later version.
17
// PyKDE4 is distributed in the hope that it will be useful,
18
// but WITHOUT ANY WARRANTY; without even the implied warranty of
19
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
// GNU General Public License for more details.
22
// You should have received a copy of the GNU General Public License
23
// along with this program. If not, see <http://www.gnu.org/licenses/>.
26
class KAction : QWidgetAction
41
typedef QFlags<KAction::ShortcutType> ShortcutTypes;
43
enum GlobalShortcutLoading
49
KAction (QObject* /TransferThis/);
50
KAction (const QString&, QObject* /TransferThis/);
51
KAction (const KIcon&, const QString&, QObject* /TransferThis/);
52
KShortcut shortcut (KAction::ShortcutTypes = KAction::ActiveShortcut ) const;
53
void setShortcut (const KShortcut&, KAction::ShortcutTypes);
54
void setShortcut (const QKeySequence&, KAction::ShortcutTypes);
55
bool isShortcutConfigurable () const;
56
void setShortcutConfigurable (bool);
57
const KShortcut& globalShortcut (KAction::ShortcutTypes = KAction::ActiveShortcut ) const;
58
void setGlobalShortcut (const KShortcut&, KAction::ShortcutTypes, KAction::GlobalShortcutLoading = KAction::Autoloading );
59
bool globalShortcutAllowed () const;
60
void setGlobalShortcutAllowed (bool, KAction::GlobalShortcutLoading = KAction::Autoloading );
61
KShapeGesture shapeGesture (KAction::ShortcutTypes = KAction::ActiveShortcut ) const;
62
KRockerGesture rockerGesture (KAction::ShortcutTypes = KAction::ActiveShortcut ) const;
63
void setShapeGesture (const KShapeGesture&, KAction::ShortcutTypes);
64
void setRockerGesture (const KRockerGesture&, KAction::ShortcutTypes);
67
void triggered (Qt::MouseButtons, Qt::KeyboardModifiers);