<HTML> <HEAD> <TITLE>class KGlobalAccel</TITLE> <META NAME="Generator" CONTENT="KDOC "> </HEAD> <BODY bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#000099" alink= "#ffffff"> <TABLE WIDTH="100%" BORDER="0"> <TR> <TD> <TABLE BORDER="0"> <TR><TD valign="top" align="left" cellspacing="10"> <h1>class KGlobalAccel</h1> </TD> <TD valign="top" align="right" colspan="1"> The KGlobalAccel class handles global keyboard accelerators, allowing a user to configure key bindings through application configuration files or through the KKeyChooser GUI. <small><A HREF="#longdesc">More...</A></small></TD></TR> </TABLE> <HR> <TABLE BORDER="0"> <TR><TH>Definition</TH><TD><code>#include <<A HREF="kglobalaccel_h.html">kglobalaccel.h</A>></code></TD></TR> <TR><TH>Inherits</TH><TD><A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qobject.html">QObject</A> <small>(qt)</small> <small>[public ]</small></TD></TR> <TR><TH><A HREF="full-list-KGlobalAccel.html">List of all Methods</A></TH></TR> </TABLE> </TD> <TD align="right"><TABLE BORDER="0"><TR><TD><small><A HREF="index-long.html">Annotated List</A></small></TD></TR> <TR><TD><small><A HREF="header-list.html">Files</A></small></TD></TR> <TR><TD><small><A HREF="all-globals.html">Globals</A></small></TD></TR> <TR><TD><small><A HREF="hier.html">Hierarchy</A></small></TD></TR> <TR><TD><small><A HREF="index.html">Index</A></small></TD></TR> </TABLE></TD></TR></TABLE> <h4>Public Methods</h4><ul><LI> <b><A HREF="#ref2">KGlobalAccel</A></b> ( bool _do_not_grab = false) </LI> <LI> <b><A HREF="#ref3">KGlobalAccel</A></b> (<A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qwidget.html">QWidget</A> * parent, const char *name = 0, bool _do_not_grab = false) </LI> <LI> <b><A HREF="#ref4">~KGlobalAccel</A></b> () </LI> <LI>void <b><A HREF="#ref5">clear</A></b> () </LI> <LI>void <b><A HREF="#ref6">connectItem</A></b> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& action, const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qobject.html">QObject</A>* receiver, const char *member, bool activate = true ) </LI> <LI>uint <b><A HREF="#ref7">count</A></b> () const </LI> <LI>int <b><A HREF="#ref8">currentKey</A></b> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& action ) const </LI> <LI>int <b><A HREF="#ref9">defaultKey</A></b> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& action) const </LI> <LI>void <b><A HREF="#ref10">disconnectItem</A></b> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& action, const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qobject.html">QObject</A>* receiver, const char *member ) </LI> <LI><A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> <b><A HREF="#ref11">findKey</A></b> ( int key ) const </LI> <LI>bool <b><A HREF="#ref12">insertItem</A></b> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& descr, const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& action, int defaultKeyCode, bool configurable = true ) </LI> <LI>bool <b><A HREF="#ref13">insertItem</A></b> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& descr, const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& action, <A HREF="KKey.html">KKey</A> defaultKeyCode3, <A HREF="KKey.html">KKey</A> defaultKeyCode4, bool configurable = true ) </LI> <LI>bool <b><A HREF="#ref14">insertItem</A></b> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& descr, const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& action, const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& defaultKeyCode, bool configurable = true ) </LI> <LI>bool <b><A HREF="#ref15">isEnabled</A></b> () const </LI> <LI>bool <b><A HREF="#ref16">isItemEnabled</A></b> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& action ) const </LI> <LI><A HREF="#KKeyEntryMap">KKeyEntryMap</A> <b><A HREF="#ref17">keyDict</A></b> () const </LI> <LI>void <b><A HREF="#ref18">readSettings</A></b> (<A HREF="KConfig.html">KConfig</A>* config) </LI> <LI>void <b><A HREF="#ref19">readSettings</A></b> () </LI> <LI>void <b><A HREF="#ref20">removeItem</A></b> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& action ) </LI> <LI>void <b><A HREF="#ref21">setConfigGroup</A></b> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& group ) </LI> <LI><A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> <b><A HREF="#ref22">configGroup</A></b> () const </LI> <LI>void <b><A HREF="#ref23">setEnabled</A></b> ( bool activate ) </LI> <LI>void <b><A HREF="#ref24">setItemEnabled</A></b> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& action, bool activate ) </LI> <LI>bool <b><A HREF="#ref25">setKeyDict</A></b> ( const <A HREF="#KKeyEntryMap">KKeyEntryMap</A>& nKeyMap ) </LI> <LI>void <b><A HREF="#ref26">writeSettings</A></b> (<A HREF="KConfig.html">KConfig</A>* config) const </LI> <LI>void <b><A HREF="#ref27">writeSettings</A></b> () const </LI> <LI>void <b><A HREF="#ref28">setItemRawModeEnabled</A></b> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& action, bool activate ) </LI> </ul><h4>Signals</h4><ul><LI>void <b><A HREF="#ref31">activated</A></b> () </LI> <LI>void <b><A HREF="#ref32">activated</A></b> ( int ) </LI> </ul><h4>Public Static Methods</h4><ul><LI>static void <b><A HREF="#ref39">setKeyEventsEnabled</A></b> ( bool enabled ) </LI> <LI>static bool <b><A HREF="#ref40">areKeyEventsEnabled</A></b> () </LI> </ul><h4>Protected Methods</h4><ul><LI>bool <b><A HREF="#ref29">grabKey</A></b> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& action, bool bGrab ) </LI> <LI>bool <b><A HREF="#ref30">x11EventFilter</A></b> (const XEvent *) </LI> </ul><h4>Protected Members</h4><ul><LI>int <b><A HREF="#ref33">aAvailableId</A></b></LI> <LI>KKeyEntryMap <b><A HREF="#ref34">aKeyMap</A></b></LI> <LI>bool <b><A HREF="#ref35">bEnabled</A></b></LI> <LI>QString <b><A HREF="#ref36">aGroup</A></b></LI> <LI>bool <b><A HREF="#ref37">do_not_grab</A></b></LI> <LI>KGlobalAccelPrivate* <b><A HREF="#ref38">d</A></b></LI> </ul><HR><H2><A NAME="longdesc">Detailed Description</A></H2><p> The KGlobalAccel class handles global keyboard accelerators, allowing a user to configure key bindings through application configuration files or through the KKeyChooser GUI. </p> <p> A KGlobalAccel contains a list of accelerator items. Each accelerator item consists of an action name and a keyboard code combined with modifiers (SHIFT, CTRL and ALT.) </p> <p> For example, "CTRL+SHIFT+M" could be a shortcut for popping-up a menu of monitor setting choices anywhere on the desktop. The key codes are listed in kckey.cpp. "Monitor settings" could be the action name for this accelerator. The action name indentifies the key binding in configuration files and the KKeyChooser GUI. </p> <p> When pressed,an accelerator key calls the slot to which it has been connected. Accelerator items can be connected so that a key will activate two different slots. </p> <p> Key binding configuration during run time can be prevented by specifying that an accelerator item is not configurable when it is inserted. </p> <p> It is possible for a user to choose to have no key associated with an action. </p> <p></p> <p> The translated first argument for insertItem is only used in the configuration dialog. </p> <p> ... </p> <p> ga = new KGlobalAccel(); ga->insertItem( i18n("Monitor settings"), "Monitor settings", "CTRL+SHIFT+M" ); ga->connectItem( "Monitor settings", myObject, SLOT( popupMenu() ) ); </p> <p> ga->readSettings(); </p> <p></p> <A NAME="KGlobalAccel"></A><A NAME="ref2"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <strong>KGlobalAccel</strong> ( bool _do_not_grab = false) <br></td><td align="right"><h3><strong>KGlobalAccel</strong></h3></td></tr></table><p></p><p> Creates a KGlobalAccel object. </p> <A NAME="KGlobalAccel"></A><A NAME="ref3"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <strong>KGlobalAccel</strong> (<A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qwidget.html">QWidget</A> * parent, const char *name = 0, bool _do_not_grab = false) <br></td><td align="right"><h3><strong>KGlobalAccel</strong></h3></td></tr></table><p></p><p> Creates a KGlobalAccel object with a parent and a name. The parent has the only effect that the KGlobalAccel object will be automatically destroyed in the parent's destructor, thus releaseing the keys. </p> <A NAME="~KGlobalAccel"></A><A NAME="ref4"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <strong>~KGlobalAccel</strong> () <br></td><td align="right"><h3><strong>~KGlobalAccel</strong></h3></td></tr></table><p></p><p> Destroys the accelerator object.and ungrabs any allocated key bindings. </p> <A NAME="clear"></A><A NAME="ref5"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>clear</strong> () <br></td><td align="right"><h3><strong>clear</strong></h3></td></tr></table><p></p><p> Removes all accelerator items. </p> <A NAME="connectItem"></A><A NAME="ref6"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>connectItem</strong> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& action, const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qobject.html">QObject</A>* receiver, const char *member, bool activate = true ) <br></td><td align="right"><h3><strong>connectItem</strong></h3></td></tr></table><p></p><p> Connect an accelerator item to a slot/signal in another object. </p> <p> Arguments: </p> <p></p> <p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5"> <TR><TD align="left" valign="top"><i>action</i></TD><TD align="left" valign="top">is the accelerator item action name. </TD></TR> <TR><TD align="left" valign="top"><i>receiver</i></TD><TD align="left" valign="top">is the object to receive a signal </TD></TR> <TR><TD align="left" valign="top"><i>member</i></TD><TD align="left" valign="top">is a slot or signal in the receiver </TD></TR> <TR><TD align="left" valign="top"><i>activate</i></TD><TD align="left" valign="top">indicates whether the accelrator item should be enabled immediately </TD></TR> </TABLE></P> <A NAME="count"></A><A NAME="ref7"></A><table width="100%"><tr bgcolor="#eeeeee"><td>uint <strong>count</strong> () <br></td><td align="right"><h3><strong>count</strong></h3></td></tr></table><p> <small>[const]</small></p><p> Returns the number of accelerator items. </p> <A NAME="currentKey"></A><A NAME="ref8"></A><table width="100%"><tr bgcolor="#eeeeee"><td>int <strong>currentKey</strong> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& action ) <br></td><td align="right"><h3><strong>currentKey</strong></h3></td></tr></table><p> <small>[const]</small></p><p> Returns the key code of the accelerator item with the action name action, or zero if either the action name cannot be found or the current key is set to no key. </p> <A NAME="defaultKey"></A><A NAME="ref9"></A><table width="100%"><tr bgcolor="#eeeeee"><td>int <strong>defaultKey</strong> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& action) <br></td><td align="right"><h3><strong>defaultKey</strong></h3></td></tr></table><p> <small>[const]</small></p><p> Returns the default key code of the accelerator item with the action name action, or zero if the action name cannot be found. </p> <A NAME="disconnectItem"></A><A NAME="ref10"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>disconnectItem</strong> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& action, const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qobject.html">QObject</A>* receiver, const char *member ) <br></td><td align="right"><h3><strong>disconnectItem</strong></h3></td></tr></table><p></p><p> Disconnects an accelerator item from a function in another object. </p> <A NAME="findKey"></A><A NAME="ref11"></A><table width="100%"><tr bgcolor="#eeeeee"><td><A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> <strong>findKey</strong> ( int key ) <br></td><td align="right"><h3><strong>findKey</strong></h3></td></tr></table><p> <small>[const]</small></p><p> Returns that identifier of the accelerator item with the keycode key, or zero if the item cannot be found. </p> <A NAME="insertItem"></A><A NAME="ref12"></A><table width="100%"><tr bgcolor="#eeeeee"><td>bool <strong>insertItem</strong> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& descr, const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& action, int defaultKeyCode, bool configurable = true ) <br></td><td align="right"><h3><strong>insertItem</strong></h3></td></tr></table><p></p><p> Inserts an accelerator item and returns false if the key code defaultKeyCode is not valid. </p> <p> Arguments: </p> <p></p> <p> If an action already exists the old association and connections will be removed.. </p> <p> </p> <p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5"> <TR><TD align="left" valign="top"><i>action</i></TD><TD align="left" valign="top">is the accelerator item action name. </TD></TR> <TR><TD align="left" valign="top"><i>defaultKeyCode</i></TD><TD align="left" valign="top">is a key code to be used as the default for the action. </TD></TR> <TR><TD align="left" valign="top"><i>configurable</i></TD><TD align="left" valign="top">indicates whether a user can configure the key binding using the KKeyChooser GUI and whether the key will be written back to configuration files on calling writeSettings. </TD></TR> </TABLE></P> <A NAME="insertItem"></A><A NAME="ref13"></A><table width="100%"><tr bgcolor="#eeeeee"><td>bool <strong>insertItem</strong> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& descr, const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& action, <A HREF="KKey.html">KKey</A> defaultKeyCode3, <A HREF="KKey.html">KKey</A> defaultKeyCode4, bool configurable = true ) <br></td><td align="right"><h3><strong>insertItem</strong></h3></td></tr></table><p></p><A NAME="insertItem"></A><A NAME="ref14"></A><table width="100%"><tr bgcolor="#eeeeee"><td>bool <strong>insertItem</strong> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& descr, const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& action, const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& defaultKeyCode, bool configurable = true ) <br></td><td align="right"><h3><strong>insertItem</strong></h3></td></tr></table><p></p><p> Inserts an accelerator item and returns false if the key code defaultKeyCode is not valid. </p> <p> Arguments: </p> <p></p> <p> If an action already exists the old association and connections will be removed.. </p> <p> </p> <p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5"> <TR><TD align="left" valign="top"><i>action</i></TD><TD align="left" valign="top">is the accelerator item action name. </TD></TR> <TR><TD align="left" valign="top"><i>defaultKeyCode</i></TD><TD align="left" valign="top">is a key plus a combination of SHIFT, CTRL and ALT to be used as the default for the action. </TD></TR> <TR><TD align="left" valign="top"><i>configurable</i></TD><TD align="left" valign="top">indicates whether a user can configure the key binding using the KKeyChooser GUI and whether the key will be written back to configuration files on calling writeSettings. </TD></TR> </TABLE></P> <A NAME="isEnabled"></A><A NAME="ref15"></A><table width="100%"><tr bgcolor="#eeeeee"><td>bool <strong>isEnabled</strong> () <br></td><td align="right"><h3><strong>isEnabled</strong></h3></td></tr></table><p> <small>[const]</small></p><A NAME="isItemEnabled"></A><A NAME="ref16"></A><table width="100%"><tr bgcolor="#eeeeee"><td>bool <strong>isItemEnabled</strong> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& action ) <br></td><td align="right"><h3><strong>isItemEnabled</strong></h3></td></tr></table><p> <small>[const]</small></p><A NAME="keyDict"></A><A NAME="ref17"></A><table width="100%"><tr bgcolor="#eeeeee"><td><A HREF="#KKeyEntryMap">KKeyEntryMap</A> <strong>keyDict</strong> () <br></td><td align="right"><h3><strong>keyDict</strong></h3></td></tr></table><p> <small>[const]</small></p><p> Returns the dictionary of accelerator action names and KKeyEntry objects. Note that only a shallow copy is returned so that items will be lost when the KKeyEntry objects are deleted. </p> <A NAME="readSettings"></A><A NAME="ref18"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>readSettings</strong> (<A HREF="KConfig.html">KConfig</A>* config) <br></td><td align="right"><h3><strong>readSettings</strong></h3></td></tr></table><p></p><p> Read all key associations from <code>config</code>, or (if <code>config</code> is zero) from the application's configuration file <A HREF="KGlobal.html#config">KGlobal::config</A>(). </p> <p> The group in which the configuration is stored can be set with <A HREF="KGlobalAccel.html#setConfigGroup">setConfigGroup</A>(). </p> <A NAME="readSettings"></A><A NAME="ref19"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>readSettings</strong> () <br></td><td align="right"><h3><strong>readSettings</strong></h3></td></tr></table><p></p><A NAME="removeItem"></A><A NAME="ref20"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>removeItem</strong> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& action ) <br></td><td align="right"><h3><strong>removeItem</strong></h3></td></tr></table><p></p><p> Removes the accelerator item with the action name action. </p> <A NAME="setConfigGroup"></A><A NAME="ref21"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>setConfigGroup</strong> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& group ) <br></td><td align="right"><h3><strong>setConfigGroup</strong></h3></td></tr></table><p></p><A NAME="configGroup"></A><A NAME="ref22"></A><table width="100%"><tr bgcolor="#eeeeee"><td><A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> <strong>configGroup</strong> () <br></td><td align="right"><h3><strong>configGroup</strong></h3></td></tr></table><p> <small>[const]</small></p><A NAME="setEnabled"></A><A NAME="ref23"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>setEnabled</strong> ( bool activate ) <br></td><td align="right"><h3><strong>setEnabled</strong></h3></td></tr></table><p></p><p> Enables the accelerator if activate is true, or disables it if activate is false... </p> <p> Individual keys can also be enabled or disabled. </p> <A NAME="setItemEnabled"></A><A NAME="ref24"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>setItemEnabled</strong> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& action, bool activate ) <br></td><td align="right"><h3><strong>setItemEnabled</strong></h3></td></tr></table><p></p><p> Enables or disables an accelerator item. </p> <p> Arguments: </p> <p></p> <p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5"> <TR><TD align="left" valign="top"><i>action</i></TD><TD align="left" valign="top">is the accelerator item action name. </TD></TR> <TR><TD align="left" valign="top"><i>activate</i></TD><TD align="left" valign="top">specifies whether the item should be enabled or disabled. </TD></TR> </TABLE></P> <A NAME="setKeyDict"></A><A NAME="ref25"></A><table width="100%"><tr bgcolor="#eeeeee"><td>bool <strong>setKeyDict</strong> ( const <A HREF="#KKeyEntryMap">KKeyEntryMap</A>& nKeyMap ) <br></td><td align="right"><h3><strong>setKeyDict</strong></h3></td></tr></table><p></p><p> Sets the dictionary of accelerator action names and KKeyEntry objects to nKeyMap. Note that only a shallow copy is made so that items will be lost when the KKeyEntry objects are deleted. </p> <A NAME="writeSettings"></A><A NAME="ref26"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>writeSettings</strong> (<A HREF="KConfig.html">KConfig</A>* config) <br></td><td align="right"><h3><strong>writeSettings</strong></h3></td></tr></table><p> <small>[const]</small></p><p> Write the current configurable associations to <code>config</code>, or (if <code>config</code> is zero) to the application's configuration file. </p> <A NAME="writeSettings"></A><A NAME="ref27"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>writeSettings</strong> () <br></td><td align="right"><h3><strong>writeSettings</strong></h3></td></tr></table><p> <small>[const]</small></p><A NAME="setItemRawModeEnabled"></A><A NAME="ref28"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>setItemRawModeEnabled</strong> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& action, bool activate ) <br></td><td align="right"><h3><strong>setItemRawModeEnabled</strong></h3></td></tr></table><p></p><p> Enables or disables raw mode on an accelerator item. </p> <p> Raw mode means that KGlobalAccel will not ungrab the key before emitting the signals. In raw mode, this is the responsibility of the caller. </p> <p> Do not use this until you really really really know what you are doing. </p> <p> Arguments: </p> <p></p> <p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5"> <TR><TD align="left" valign="top"><i>action</i></TD><TD align="left" valign="top">is the accelerator item action name. </TD></TR> <TR><TD align="left" valign="top"><i>activate</i></TD><TD align="left" valign="top">specifies whether raw mode for the item should be enabled or disabled. </TD></TR> </TABLE></P> <A NAME="grabKey"></A><A NAME="ref29"></A><table width="100%"><tr bgcolor="#eeeeee"><td>bool <strong>grabKey</strong> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& action, bool bGrab ) <br></td><td align="right"><h3><strong>grabKey</strong></h3></td></tr></table><p> <small>[protected]</small></p><A NAME="x11EventFilter"></A><A NAME="ref30"></A><table width="100%"><tr bgcolor="#eeeeee"><td>bool <strong>x11EventFilter</strong> (const XEvent *) <br></td><td align="right"><h3><strong>x11EventFilter</strong></h3></td></tr></table><p> <small>[protected]</small></p><p> Filters X11 events ev for key bindings in the accelerator dictionary. If a match is found the activated activated is emitted and the function returns true. Return false if the event is not processed. </p> <p> This is public for compatibility only. You do not need to call it. </p> <A NAME="activated"></A><A NAME="ref31"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>activated</strong> () <br></td><td align="right"><h3><strong>activated</strong></h3></td></tr></table><p> <small>[signal]</small></p><A NAME="activated"></A><A NAME="ref32"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>activated</strong> ( int ) <br></td><td align="right"><h3><strong>activated</strong></h3></td></tr></table><p> <small>[signal]</small></p><A NAME="aAvailableId"></A><A NAME="ref33"></A><table width="100%"><tr bgcolor="#eeeeee"><td>int <strong>aAvailableId</strong> </td><td align="right"><h3><strong>aAvailableId</strong></h3></td></tr></table><p> <small>[protected]</small></p><A NAME="aKeyMap"></A><A NAME="ref34"></A><table width="100%"><tr bgcolor="#eeeeee"><td><A HREF="#KKeyEntryMap">KKeyEntryMap</A> <strong>aKeyMap</strong> </td><td align="right"><h3><strong>aKeyMap</strong></h3></td></tr></table><p> <small>[protected]</small></p><A NAME="bEnabled"></A><A NAME="ref35"></A><table width="100%"><tr bgcolor="#eeeeee"><td>bool <strong>bEnabled</strong> </td><td align="right"><h3><strong>bEnabled</strong></h3></td></tr></table><p> <small>[protected]</small></p><A NAME="aGroup"></A><A NAME="ref36"></A><table width="100%"><tr bgcolor="#eeeeee"><td><A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> <strong>aGroup</strong> </td><td align="right"><h3><strong>aGroup</strong></h3></td></tr></table><p> <small>[protected]</small></p><A NAME="do_not_grab"></A><A NAME="ref37"></A><table width="100%"><tr bgcolor="#eeeeee"><td>bool <strong>do_not_grab</strong> </td><td align="right"><h3><strong>do_not_grab</strong></h3></td></tr></table><p> <small>[protected]</small></p><A NAME="d"></A><A NAME="ref38"></A><table width="100%"><tr bgcolor="#eeeeee"><td><A HREF="#KGlobalAccelPrivate">KGlobalAccelPrivate</A>* <strong>d</strong> </td><td align="right"><h3><strong>d</strong></h3></td></tr></table><p> <small>[protected]</small></p><A NAME="setKeyEventsEnabled"></A><A NAME="ref39"></A><table width="100%"><tr bgcolor="#eeeeee"><td> void <strong>setKeyEventsEnabled</strong> ( bool enabled ) <br></td><td align="right"><h3><strong>setKeyEventsEnabled</strong></h3></td></tr></table><p> <small>[static]</small></p><A NAME="areKeyEventsEnabled"></A><A NAME="ref40"></A><table width="100%"><tr bgcolor="#eeeeee"><td> bool <strong>areKeyEventsEnabled</strong> () <br></td><td align="right"><h3><strong>areKeyEventsEnabled</strong></h3></td></tr></table><p> <small>[static]</small></p><HR> <table> <tr><td><small>Generated by: qateam on updates.mandrakesoft.com on Mon Dec 30 16:08:56 2002, using kdoc 2.0a53.</small></td></tr> </table> </BODY> </HTML>