Skip to content
Skip to link menu
Trinity API Reference
Trinity API Reference
tdeui
tdeui
tdeui
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 <tdeshortcut.h>
25
40
class
TDEUI_EXPORT
KKeyButton
:
public
TQPushButton
41
{
42
TQ_OBJECT
43
44
public
:
48
KKeyButton
( TQWidget *parent = 0,
const
char
*name = 0 );
52
virtual
~
KKeyButton
();
53
55
void
setShortcut(
const
TDEShortcut
& cut ) TDE_DEPRECATED;
57
void
setShortcut(
const
TDEShortcut
& cut,
bool
bQtShortcut );
58
const
TDEShortcut
& shortcut()
const
59
{
return
m_cut; }
60
64
void
setText(
const
TQString& text );
65
66
signals:
67
void
capturedShortcut(
const
TDEShortcut
& );
68
69
public
slots:
74
void
captureShortcut();
75
76
protected
:
77
TDEShortcut
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:41
TDEShortcut
tdeui
Skip menu "tdeui"
Main Page
Namespace List
Class Hierarchy
Alphabetical List
Class List
File List
Namespace Members
Class Members
Related Pages
tdeui
Skip menu "tdeui"
arts
dcop
dnssd
interfaces
kspeech
interface
library
tdetexteditor
kate
kded
kdoctools
kimgio
kjs
libtdemid
libtdescreensaver
tdeabc
tdecmshell
tdecore
tdefx
tdehtml
tdeinit
tdeio
bookmarks
httpfilter
kpasswdserver
kssl
tdefile
tdeio
tdeioexec
tdeioslave
http
tdemdi
tdemdi
tdenewstuff
tdeparts
tdeprint
tderandr
tderesources
tdespell2
tdesu
tdeui
tdeunittest
tdeutils
tdewallet