• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeui
 

tdeui

Public Slots | Signals | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
KKeyButton Class Reference

#include <kkeybutton.h>

Inherits TQPushButton.

Public Slots

void captureShortcut ()
 

Signals

void capturedShortcut (const TDEShortcut &)
 

Public Member Functions

 KKeyButton (TQWidget *parent=0, const char *name=0)
 
virtual ~KKeyButton ()
 
void setShortcut (const TDEShortcut &cut) TDE_DEPRECATED
 
void setShortcut (const TDEShortcut &cut, bool bQtShortcut)
 
const TDEShortcut & shortcut () const
 
void setText (const TQString &text)
 

Protected Member Functions

void drawButton (TQPainter *_painter)
 
virtual void virtual_hook (int id, void *data)
 

Protected Attributes

TDEShortcut m_cut
 
bool m_bEditing
 

Detailed Description

A push button that looks like a keyboard key.

You must call setShortcut() to set the widget's currently displayed key. You can call captureShortcut() to get a new shortcut from the user. If captureShortcut() succeeds, then the capturedShortcut() signal will be emitted with the value of the new shortcut. The widget containing a KKeyButton widget must connect to this signal and check if the shortcut is valid. If it is, you will need to call setShortcut() with the new value in order make it the key currently displayed.

Author
Mark Donohoe donoh.nosp@m.oe@k.nosp@m.de.or.nosp@m.g

Definition at line 40 of file kkeybutton.h.

Constructor & Destructor Documentation

◆ KKeyButton()

KKeyButton::KKeyButton ( TQWidget *  parent = 0,
const char *  name = 0 
)

Constructs key button widget.

Definition at line 68 of file kkeybutton.cpp.

◆ ~KKeyButton()

KKeyButton::~KKeyButton ( )
virtual

Destructs the key button widget.

Definition at line 78 of file kkeybutton.cpp.

Member Function Documentation

◆ captureShortcut

void KKeyButton::captureShortcut ( )
slot

Call this method to capture a shortcut from the keyboard.

If it succeeds, the capturedShortcut() signal will be emitted.

Definition at line 104 of file kkeybutton.cpp.

◆ drawButton()

void KKeyButton::drawButton ( TQPainter *  _painter)
protected

Reimplemented for internal reasons.

Definition at line 123 of file kkeybutton.cpp.

◆ setShortcut() [1/2]

void KKeyButton::setShortcut ( const TDEShortcut &  cut)
Deprecated:
Use setShortcut( cut, false ) instead

Definition at line 93 of file kkeybutton.cpp.

◆ setShortcut() [2/2]

void KKeyButton::setShortcut ( const TDEShortcut &  cut,
bool  bQtShortcut 
)
Since
3.1

Definition at line 83 of file kkeybutton.cpp.

◆ setText()

void KKeyButton::setText ( const TQString &  text)

Reimplemented for internal purposes.

Definition at line 98 of file kkeybutton.cpp.

◆ shortcut()

const TDEShortcut & KKeyButton::shortcut ( ) const
inline

Definition at line 58 of file kkeybutton.h.

◆ virtual_hook()

void KKeyButton::virtual_hook ( int  id,
void *  data 
)
protectedvirtual

Definition at line 175 of file kkeybutton.cpp.

Member Data Documentation

◆ m_bEditing

bool KKeyButton::m_bEditing
protected

Definition at line 78 of file kkeybutton.h.

◆ m_cut

TDEShortcut KKeyButton::m_cut
protected

Definition at line 77 of file kkeybutton.h.


The documentation for this class was generated from the following files:
  • kkeybutton.h
  • kkeybutton.cpp

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
Generated for tdeui by doxygen 1.9.4
This website is maintained by Timothy Pearson.