Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 4f45e7bdfd4a5ff17f5f8eaab90d017f > files > 885

albumshaper-2.1-6mdv2010.0.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>AlbumShaper: clickableLabel.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.9 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
    </ul>
  </div>
<h1>clickableLabel.h</h1><a href="clickableLabel_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">//==============================================</span>
<a name="l00002"></a>00002 <span class="comment">//  copyright            : (C) 2003-2005 by Will Stokes</span>
<a name="l00003"></a>00003 <span class="comment">//==============================================</span>
<a name="l00004"></a>00004 <span class="comment">//  This program is free software; you can redistribute it</span>
<a name="l00005"></a>00005 <span class="comment">//  and/or modify it under the terms of the GNU General</span>
<a name="l00006"></a>00006 <span class="comment">//  Public License as published by the Free Software</span>
<a name="l00007"></a>00007 <span class="comment">//  Foundation; either version 2 of the License, or</span>
<a name="l00008"></a>00008 <span class="comment">//  (at your option) any later version.</span>
<a name="l00009"></a>00009 <span class="comment">//==============================================</span>
<a name="l00010"></a>00010 
<a name="l00011"></a>00011 <span class="preprocessor">#ifndef GUI_CLICKABLELABEL_H</span>
<a name="l00012"></a>00012 <span class="preprocessor"></span><span class="preprocessor">#define GUI_CLICKABLELABEL_H</span>
<a name="l00013"></a>00013 <span class="preprocessor"></span>
<a name="l00014"></a>00014 <span class="preprocessor">#include &lt;qlabel.h&gt;</span>
<a name="l00015"></a>00015 <span class="preprocessor">#include &lt;qpixmap.h&gt;</span>
<a name="l00016"></a>00016 
<a name="l00017"></a>00017 <span class="comment">//=====================================</span>
<a name="l00020"></a>00020 <span class="comment"></span><span class="comment">//=====================================</span>
<a name="l00021"></a>00021 
<a name="l00022"></a>00022 <span class="comment">//======================</span>
<a name="l00023"></a><a class="code" href="classClickableLabel.html">00023</a> <span class="keyword">class </span><a class="code" href="classClickableLabel.html" title="A clickable label.">ClickableLabel</a> : <span class="keyword">public</span> <a class="code" href="classQLabel.html">QLabel</a>
<a name="l00024"></a>00024 {
<a name="l00025"></a>00025 Q_OBJECT
<a name="l00026"></a>00026 <span class="comment">//----------------------</span>
<a name="l00027"></a>00027 <span class="keyword">public</span>:
<a name="l00028"></a>00028   <a class="code" href="classClickableLabel.html#a0dfd1387fa9c7aa1b11579d55314788">ClickableLabel</a>( <a class="code" href="classQWidget.html">QWidget</a> *parent=0, <span class="keyword">const</span> <span class="keywordtype">char</span>* name=0);  
<a name="l00029"></a>00029   <span class="keywordtype">void</span> <a class="code" href="classClickableLabel.html#c577cf889d98cb6201940bf5d761470b">setInvisible</a>( <span class="keywordtype">bool</span> val );
<a name="l00030"></a>00030 <span class="comment">//----------------------</span>
<a name="l00031"></a>00031 <span class="keyword">protected</span>:
<a name="l00033"></a>00033   <span class="keywordtype">void</span> <a class="code" href="classClickableLabel.html#2e552eca32be5ff7d2b4e7848adb720c" title="double buffer to avoid flicker">paintEvent</a>( QPaintEvent *e );
<a name="l00034"></a>00034 
<a name="l00035"></a>00035   <span class="keywordtype">void</span> <a class="code" href="classClickableLabel.html#de090332b450299e3b8b59fa4b1c524d">enterEvent</a> ( QEvent * );
<a name="l00036"></a>00036   <span class="keywordtype">void</span> <a class="code" href="classClickableLabel.html#d884c3cdc7a6c16af19143e84c79b5da">leaveEvent</a> ( QEvent * );
<a name="l00037"></a>00037   
<a name="l00038"></a>00038   <span class="keywordtype">void</span> <a class="code" href="classClickableLabel.html#0f1a5e1709f011347dcb4e9f7c351ff5">mouseMoveEvent</a>( QMouseEvent* e );
<a name="l00039"></a>00039   <span class="keywordtype">void</span> <a class="code" href="classClickableLabel.html#2575de43e2cc3ac67d115c5b929d6215">mousePressEvent</a> ( QMouseEvent * );
<a name="l00040"></a>00040   <span class="keywordtype">void</span> <a class="code" href="classClickableLabel.html#1e3042d34eaf5b5bb5704d269e3bf5a0">mouseReleaseEvent</a> ( QMouseEvent * e );
<a name="l00041"></a>00041   <span class="comment">//----------------------</span>
<a name="l00042"></a>00042 <span class="keyword">public</span> slots:
<a name="l00043"></a>00043   <span class="keywordtype">void</span> <a class="code" href="classClickableLabel.html#dd89196d69e61c416a0ad26a4d81dae8">setEnabled</a>( <span class="keywordtype">bool</span> val );
<a name="l00044"></a>00044   <span class="keywordtype">void</span> <a class="code" href="classClickableLabel.html#f6ee3b690cac8ad35b1979b4fce21460">setPixmap</a>( <span class="keyword">const</span> QPixmap &amp;p );
<a name="l00045"></a>00045 <span class="comment">//----------------------</span>
<a name="l00046"></a>00046 signals:
<a name="l00047"></a>00047   <span class="keywordtype">void</span> <a class="code" href="classClickableLabel.html#ba68cb811a595c6d90f5c994f2b31f4b">clicked</a>();
<a name="l00048"></a>00048 <span class="comment">//----------------------</span>
<a name="l00049"></a>00049 <span class="keyword">private</span>:
<a name="l00050"></a>00050   <span class="comment">//redraws label using an "active" pixmap</span>
<a name="l00051"></a>00051   <span class="keywordtype">void</span> <a class="code" href="classClickableLabel.html#613707e1f447b69d422a5e144d3045a7">setActive</a>();
<a name="l00052"></a>00052 
<a name="l00053"></a>00053   <span class="comment">//redraws label using a "hightlighted" pixmap</span>
<a name="l00054"></a>00054   <span class="keywordtype">void</span> <a class="code" href="classClickableLabel.html#eabb24ab5ca27fc189486d1696f4fa3f">setHighlighted</a>();
<a name="l00055"></a>00055   
<a name="l00056"></a><a class="code" href="classClickableLabel.html#51ff77536419f3273669441bb5fa39eb">00056</a>   QPixmap <a class="code" href="classClickableLabel.html#51ff77536419f3273669441bb5fa39eb">defaultPixmap</a>;
<a name="l00057"></a><a class="code" href="classClickableLabel.html#ec28892fb42cf4f6ed62f1ac0ff52662">00057</a>   <span class="keywordtype">bool</span> <a class="code" href="classClickableLabel.html#ec28892fb42cf4f6ed62f1ac0ff52662">enabled</a>;
<a name="l00058"></a><a class="code" href="classClickableLabel.html#3e31c45b1ab863ef44584f353056625e">00058</a>   <span class="keywordtype">bool</span> <a class="code" href="classClickableLabel.html#3e31c45b1ab863ef44584f353056625e">invisible</a>;
<a name="l00059"></a><a class="code" href="classClickableLabel.html#7b58d1c7e6d895f1048d19b2afbfa89f">00059</a>   <span class="keywordtype">bool</span> <a class="code" href="classClickableLabel.html#7b58d1c7e6d895f1048d19b2afbfa89f">pressed</a>;
<a name="l00060"></a>00060 <span class="comment">//----------------------</span>
<a name="l00061"></a>00061 };
<a name="l00062"></a>00062 <span class="comment">//======================</span>
<a name="l00063"></a>00063 
<a name="l00064"></a>00064 <span class="preprocessor">#endif //GUI_CLICKABLELABEL_H</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 23 02:34:25 2009 for AlbumShaper by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address>
</body>
</html>