Skip to content
Skip to link menu
Trinity API Reference
Trinity API Reference
kdeui
kdeui
kdeui
kkeybutton.h
1
/* This file is part of the KDE libraries
2
Copyright (C) 2001, 2002 Ellis Whitehead <ellis@kde.org>
3
4
This library is free software; you can redistribute it and/or
5
modify it under the terms of the GNU Library General Public
6
License as published by the Free Software Foundation; either
7
version 2 of the License, or (at your option) any later version.
8
9
This library is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
Library General Public License for more details.
13
14
You should have received a copy of the GNU Library General Public License
15
along with this library; see the file COPYING.LIB. If not, write to
16
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17
Boston, MA 02110-1301, USA.
18
*/
19
20
#ifndef _KKEYBUTTON_H_
21
#define _KKEYBUTTON_H_
22
23
#include <tqpushbutton.h>
24
#include <kshortcut.h>
25
40
class
KDEUI_EXPORT
KKeyButton
:
public
TQPushButton
41
{
42
Q_OBJECT
43
44
public
:
48
KKeyButton
( TQWidget *parent = 0,
const
char
*name = 0 );
52
virtual
~
KKeyButton
();
53
55
void
setShortcut(
const
KShortcut
& cut ) KDE_DEPRECATED;
57
void
setShortcut(
const
KShortcut
& cut,
bool
bQtShortcut );
58
const
KShortcut
& shortcut()
const
59
{
return
m_cut; }
60
64
void
setText(
const
TQString& text );
65
66
signals:
67
void
capturedShortcut(
const
KShortcut
& );
68
69
public
slots:
74
void
captureShortcut();
75
76
protected
:
77
KShortcut
m_cut;
78
bool
m_bEditing;
79
83
void
drawButton( TQPainter* _painter );
84
85
protected
:
86
virtual
void
virtual_hook(
int
id
,
void
* data );
87
private
:
88
class
KKeyButtonPrivate* d;
89
};
90
91
#endif
KKeyButton
A push button that looks like a keyboard key.
Definition:
kkeybutton.h:40
KShortcut
kdeui
Skip menu "kdeui"
Main Page
Namespace List
Class Hierarchy
Alphabetical List
Class List
File List
Namespace Members
Class Members
Related Pages
kdeui
Skip menu "kdeui"
arts
dcop
dnssd
interfaces
interface
library
kspeech
ktexteditor
kabc
kate
kcmshell
kdecore
kded
kdefx
kdeprint
kdesu
kdeui
kdoctools
khtml
kimgio
kinit
kio
bookmarks
httpfilter
kfile
kio
kioexec
kpasswdserver
kssl
kioslave
http
kjs
kmdi
kmdi
knewstuff
kparts
krandr
kresources
kspell2
kunittest
kutils
kwallet
libkmid
libkscreensaver