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

tdeui

KKeyDialog Class Reference

Dialog for configuration of TDEActionCollection, TDEAccel, and TDEGlobalAccel. More...

#include <kkeydialog.h>

Inheritance diagram for KKeyDialog:
KDialogBase KDialog TQDialog

List of all members.

Public Member Functions

 KKeyDialog (bool bAllowLetterShortcuts=true, TQWidget *parent=0, const char *name=0)
virtual ~KKeyDialog ()
bool insert (TDEActionCollection *)
bool insert (TDEActionCollection *, const TQString &title)
bool configure (bool bSaveSettings=true)
void commitChanges ()

Static Public Member Functions

static int configure (TDEActionCollection *coll, TQWidget *parent=0, bool bSaveSettings=true)
static int configure (TDEAccel *keys, TQWidget *parent=0, bool bSaveSettings=true)
static int configure (TDEGlobalAccel *keys, TQWidget *parent=0, bool bSaveSettings=true)
static int configure (TDEActionCollection *coll, bool bAllowLetterShortcuts, TQWidget *parent=0, bool bSaveSettings=true)
static int configure (TDEAccel *keys, bool bAllowLetterShortcuts, TQWidget *parent=0, bool bSaveSettings=true)
static int configure (TDEGlobalAccel *keys, bool bAllowLetterShortcuts, TQWidget *parent=0, bool bSaveSettings=true)
static KDE_DEPRECATED int configureKeys (TDEAccel *keys, bool save_settings=true, TQWidget *parent=0)
static KDE_DEPRECATED int configureKeys (TDEGlobalAccel *keys, bool save_settings=true, TQWidget *parent=0)
static KDE_DEPRECATED int configureKeys (TDEActionCollection *coll, const TQString &, bool save_settings=true, TQWidget *parent=0)

Protected Member Functions

virtual void virtual_hook (int id, void *data)

Detailed Description

Dialog for configuration of TDEActionCollection, TDEAccel, and TDEGlobalAccel.

The KKeyDialog class is used for configuring dictionaries of key/action associations for TDEActionCollection, TDEAccel, and TDEGlobalAccel. It uses the KKeyChooser widget and offers buttons to set all keys to defaults and invoke on-line help.

Several static methods are supplied which provide the most convenient interface to the dialog. The most common and most encouraged use is with TDEActionCollection.

 KKeyDialog::configure( actionCollection() );
Author:
Nicolas Hadacek <hadacek@via.ecp.fr>

Definition at line 274 of file kkeydialog.h.


Constructor & Destructor Documentation

KKeyDialog::KKeyDialog ( bool  bAllowLetterShortcuts = true,
TQWidget *  parent = 0,
const char *  name = 0 
)

Constructs a KKeyDialog called name as a child of parent.

Set bAllowLetterShortcuts to false if unmodified alphanumeric keys ('A', '1', etc.) are not permissible shortcuts.

Definition at line 1102 of file kkeydialog.cpp.

KKeyDialog::~KKeyDialog (  )  [virtual]

Destructor.

Deletes all resources used by a KKeyDialog object.

Definition at line 1114 of file kkeydialog.cpp.


Member Function Documentation

void KKeyDialog::commitChanges (  ) 

Commit key setting changes so that changed settings actually become active.

This method is implicitly called from configure(bool) if bSaveSettings is true.

Definition at line 1142 of file kkeydialog.cpp.

int KKeyDialog::configure ( TDEGlobalAccel *  keys,
bool  bAllowLetterShortcuts,
TQWidget *  parent = 0,
bool  bSaveSettings = true 
) [static]

This is an overloaded member function, provided for convenience.

It behaves essentially like the above function.

Definition at line 1172 of file kkeydialog.cpp.

int KKeyDialog::configure ( TDEAccel *  keys,
bool  bAllowLetterShortcuts,
TQWidget *  parent = 0,
bool  bSaveSettings = true 
) [static]

This is an overloaded member function, provided for convenience.

It behaves essentially like the above function.

Definition at line 1162 of file kkeydialog.cpp.

int KKeyDialog::configure ( TDEActionCollection *  coll,
bool  bAllowLetterShortcuts,
TQWidget *  parent = 0,
bool  bSaveSettings = true 
) [static]

This is an overloaded member function, provided for convenience.

It behaves essentially like the above function.

Parameters:
coll the TDEActionCollection to configure
bAllowLetterShortcuts Set to false if unmodified alphanumeric keys ('A', '1', etc.) are not permissible shortcuts.
parent the parent widget to attach to
bSaveSettings if true, the settings will also be saved back to the *uirc file which they were intially read from.

Definition at line 1182 of file kkeydialog.cpp.

int KKeyDialog::configure ( TDEGlobalAccel *  keys,
TQWidget *  parent = 0,
bool  bSaveSettings = true 
) [static]

This is an overloaded member function, provided for convenience.

It behaves essentially like the above function.

Definition at line 1157 of file kkeydialog.cpp.

int KKeyDialog::configure ( TDEAccel *  keys,
TQWidget *  parent = 0,
bool  bSaveSettings = true 
) [static]

This is an overloaded member function, provided for convenience.

It behaves essentially like the above function, except that settings are saved to a *.rc file using TDEConfig.

Definition at line 1152 of file kkeydialog.cpp.

int KKeyDialog::configure ( TDEActionCollection *  coll,
TQWidget *  parent = 0,
bool  bSaveSettings = true 
) [static]

Pops up a modal dialog for configuring key settings.

The new shortcut settings will be active if the user presses OK. If bSaveSettings if true, the settings will also be saved back to the *uirc file which they were intially read from.

Returns:
Accept if the dialog was closed with OK, Reject otherwise.

Definition at line 1147 of file kkeydialog.cpp.

bool KKeyDialog::configure ( bool  bSaveSettings = true  ) 

Run the dialog and call commitChanges() if bSaveSettings is true.

Definition at line 1130 of file kkeydialog.cpp.

static KDE_DEPRECATED int KKeyDialog::configureKeys ( TDEActionCollection *  coll,
const TQString &  ,
bool  save_settings = true,
TQWidget *  parent = 0 
) [inline, static]
Deprecated:
Obsolete. Please use KKeyDialog::configure instead

Definition at line 392 of file kkeydialog.h.

static KDE_DEPRECATED int KKeyDialog::configureKeys ( TDEGlobalAccel *  keys,
bool  save_settings = true,
TQWidget *  parent = 0 
) [inline, static]
Deprecated:
Obsolete. Please use KKeyDialog::configure instead

Definition at line 386 of file kkeydialog.h.

static KDE_DEPRECATED int KKeyDialog::configureKeys ( TDEAccel *  keys,
bool  save_settings = true,
TQWidget *  parent = 0 
) [inline, static]
Deprecated:
Obsolete. Please use KKeyDialog::configure instead

Definition at line 380 of file kkeydialog.h.

bool KKeyDialog::insert ( TDEActionCollection *  pColl,
const TQString &  title 
)

Insert an action collection, i.e.

add all its actions to the ones displayed by the dialog. This method can be useful in applications following the document/view design, with actions in both the document and the view. Simply call insert with the action collections of each one in turn.

Parameters:
title the title associated with the collection (if null, the TDEAboutData::progName() of the collection's instance is used)
Returns:
true :)
Since:
3.1

Definition at line 1125 of file kkeydialog.cpp.

bool KKeyDialog::insert ( TDEActionCollection *  pColl  ) 

Insert an action collection, i.e.

add all its actions to the ones displayed by the dialog. This method can be useful in applications following the document/view design, with actions in both the document and the view. Simply call insert with the action collections of each one in turn.

Returns:
true :)

Definition at line 1120 of file kkeydialog.cpp.


The documentation for this class was generated from the following files:
  • kkeydialog.h
  • kkeydialog.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.6.3
This website is maintained by Timothy Pearson.