Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > d2229253b8f3127ab89b179a82cc8466 > files > 500

libqxt-devel-0.6.1-2.fc15.i686.rpm

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- /builddir/build/BUILD/libqxt/src/gui/qxtglobalshortcut.cpp -->
<head>
  <title>QxtGlobalShortcut Class Reference</title>
  <link href="stylesheet.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="left" valign="top" width="32"><a href="http://libqxt.org"><img src="images/qxt-logo.png" width="50" height="40" align="left" border="0" /></a></td>
<td width="1">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&nbsp;&middot; <a href="modules.html"><font color="#004faf">Modules</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">Classes</font></a>&nbsp;&middot; <a href="namespaces.html"><font color="#004faf">Namespaces</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">Functions</font></a></td>
<td align="right" valign="top" width="230"></td></tr></table><h1 class="title">QxtGlobalShortcut Class Reference<br /><span class="small-subtitle">[<a href="qxtgui.html">QxtGui</a> module]</span>
</h1>
<p>The QxtGlobalShortcut class provides a global shortcut aka &quot;hotkey&quot;. <a href="#details">More...</a></p>
<pre>    #include &lt;QxtGlobalShortcut&gt;</pre><p>Inherits <a href="http://doc.qtsoftware.com/4.5/qobject.html">QObject</a>.</p>
<ul>
<li><a href="qxtglobalshortcut-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-functions"></a>
<h3>Public Functions</h3>
<ul>
<li><div class="fn"></div><b><a href="qxtglobalshortcut.html#QxtGlobalShortcut">QxtGlobalShortcut</a></b> ( QObject * <i>parent</i> = 0 )</li>
<li><div class="fn"></div><b><a href="qxtglobalshortcut.html#QxtGlobalShortcut-2">QxtGlobalShortcut</a></b> ( const QKeySequence &amp; <i>shortcut</i>, QObject * <i>parent</i> = 0 )</li>
<li><div class="fn"></div>virtual <b><a href="qxtglobalshortcut.html#dtor.QxtGlobalShortcut">~QxtGlobalShortcut</a></b> ()</li>
<li><div class="fn"></div>bool <b><a href="qxtglobalshortcut.html#isEnabled">isEnabled</a></b> () const</li>
<li><div class="fn"></div>bool <b><a href="qxtglobalshortcut.html#setShortcut">setShortcut</a></b> ( const QKeySequence &amp; <i>shortcut</i> )</li>
<li><div class="fn"></div>QKeySequence <b><a href="qxtglobalshortcut.html#shortcut">shortcut</a></b> () const</li>
</ul>
<ul>
<li><div class="fn"></div>29 public functions inherited from <a href="http://doc.qtsoftware.com/4.5/qobject.html#public-functions">QObject</a></li>
</ul>
<a name="public-slots"></a>
<h3>Public Slots</h3>
<ul>
<li><div class="fn"></div>void <b><a href="qxtglobalshortcut.html#setDisabled">setDisabled</a></b> ( bool <i>disabled</i> = true )</li>
<li><div class="fn"></div>void <b><a href="qxtglobalshortcut.html#setEnabled">setEnabled</a></b> ( bool <i>enabled</i> = true )</li>
</ul>
<ul>
<li><div class="fn"></div>1 public slot inherited from <a href="http://doc.qtsoftware.com/4.5/qobject.html#public-slots">QObject</a></li>
</ul>
<a name="signals"></a>
<h3>Signals</h3>
<ul>
<li><div class="fn"></div>void <b><a href="qxtglobalshortcut.html#activated">activated</a></b> ()</li>
</ul>
<ul>
<li><div class="fn"></div>1 signal inherited from <a href="http://doc.qtsoftware.com/4.5/qobject.html#signals">QObject</a></li>
</ul>
<h3>Additional Inherited Members</h3>
<ul>
<li><div class="fn"></div>1 property inherited from <a href="http://doc.qtsoftware.com/4.5/qobject.html#properties">QObject</a></li>
<li><div class="fn"></div>1 public type inherited from <a href="http://doc.qtsoftware.com/4.5/qobject.html#public-variables">QObject</a></li>
<li><div class="fn"></div>4 static public members inherited from <a href="http://doc.qtsoftware.com/4.5/qobject.html#static-public-members">QObject</a></li>
<li><div class="fn"></div>7 protected functions inherited from <a href="http://doc.qtsoftware.com/4.5/qobject.html#protected-functions">QObject</a></li>
<li><div class="fn"></div>2 protected variables inherited from <a href="http://doc.qtsoftware.com/4.5/qobject.html#protected-variables">QObject</a></li>
</ul>
<a name="details"></a>
<hr />
<h2>Detailed Description</h2>
<p>The QxtGlobalShortcut class provides a global shortcut aka &quot;hotkey&quot;.</p>
<p>A global shortcut triggers even if the application is not active. This makes it easy to implement applications that react to certain shortcuts still if some other application is active or if the application is for example minimized to the system tray.</p>
<p>Example usage:</p>
<pre>    QxtGlobalShortcut* shortcut = new QxtGlobalShortcut(window);
    connect(shortcut, SIGNAL(activated()), window, SLOT(toggleVisibility()));
    shortcut-&gt;setShortcut(QKeySequence(&quot;Ctrl+Shift+F12&quot;));</pre>
<p><b>Note:</b> Since Qxt 0.6 QxtGlobalShortcut no more requires <a href="qxtapplication.html">QxtApplication</a>.</p>
<hr />
<h2>Member Function Documentation</h2>
<h3 class="fn"><a name="QxtGlobalShortcut"></a>QxtGlobalShortcut::QxtGlobalShortcut ( <a href="http://doc.qtsoftware.com/4.5/qobject.html">QObject</a> * <i>parent</i> = 0 )</h3>
<p>Constructs a new <a href="qxtglobalshortcut.html">QxtGlobalShortcut</a> with <i>parent</i>.</p>
<h3 class="fn"><a name="QxtGlobalShortcut-2"></a>QxtGlobalShortcut::QxtGlobalShortcut ( const <a href="http://doc.qtsoftware.com/4.5/qkeysequence.html">QKeySequence</a> &amp; <i>shortcut</i>, <a href="http://doc.qtsoftware.com/4.5/qobject.html">QObject</a> * <i>parent</i> = 0 )</h3>
<p>Constructs a new <a href="qxtglobalshortcut.html">QxtGlobalShortcut</a> with <i>shortcut</i> and <i>parent</i>.</p>
<h3 class="fn"><a name="dtor.QxtGlobalShortcut"></a>QxtGlobalShortcut::~QxtGlobalShortcut ()&nbsp;&nbsp;<tt> [virtual]</tt></h3>
<p>Destructs the <a href="qxtglobalshortcut.html">QxtGlobalShortcut</a>.</p>
<h3 class="fn"><a name="activated"></a>void QxtGlobalShortcut::activated ()&nbsp;&nbsp;<tt> [signal]</tt></h3>
<p>This signal is emitted when the user types the shortcut's key sequence.</p>
<p>See also shortcut.</p>
<h3 class="fn"><a name="isEnabled"></a>bool QxtGlobalShortcut::isEnabled () const</h3>
<h3 class="fn"><a name="setDisabled"></a>void QxtGlobalShortcut::setDisabled ( bool <i>disabled</i> = true )&nbsp;&nbsp;<tt> [slot]</tt></h3>
<p>Sets the shortcut <i>disabled</i>.</p>
<p>See also enabled.</p>
<h3 class="fn"><a name="setEnabled"></a>void QxtGlobalShortcut::setEnabled ( bool <i>enabled</i> = true )&nbsp;&nbsp;<tt> [slot]</tt></h3>
<p>See also <a href="qxtglobalshortcut.html#isEnabled">isEnabled</a>().</p>
<h3 class="fn"><a name="setShortcut"></a>bool QxtGlobalShortcut::setShortcut ( const <a href="http://doc.qtsoftware.com/4.5/qkeysequence.html">QKeySequence</a> &amp; <i>shortcut</i> )</h3>
<p>See also <a href="qxtglobalshortcut.html#shortcut">shortcut</a>().</p>
<h3 class="fn"><a name="shortcut"></a><a href="http://doc.qtsoftware.com/4.5/qkeysequence.html">QKeySequence</a> QxtGlobalShortcut::shortcut () const</h3>
<p>See also <a href="qxtglobalshortcut.html#setShortcut">setShortcut</a>().</p>
<p /><address><hr /><div align="center">
<table width="100%" cellspacing="0" border="0"><tr class="address">
<td align="left">Copyright &copy; 2007-2010
<a href="mailto:foundation@libqxt.org">Qxt Foundation</a></td>
<td align="right"><div align="right">
<a href="http://libqxt.org">Qxt</a> 0.6.1</div></td>
</tr></table></div></address></body>
</html>