Sophie

Sophie

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

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: recentAlbumMenuItem.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>recentAlbumMenuItem.h</h1><a href="recentAlbumMenuItem_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_RECENTALBUMMENUITEM_H</span>
<a name="l00012"></a>00012 <span class="preprocessor"></span><span class="preprocessor">#define GUI_RECENTALBUMMENUITEM_H</span>
<a name="l00013"></a>00013 <span class="preprocessor"></span>
<a name="l00014"></a>00014 <span class="preprocessor">#include &lt;qmenudata.h&gt;</span> 
<a name="l00015"></a>00015 <span class="preprocessor">#include &lt;qimage.h&gt;</span>
<a name="l00016"></a>00016 
<a name="l00017"></a>00017 <span class="comment">//forward declarations</span>
<a name="l00018"></a>00018 
<a name="l00019"></a>00019 <span class="comment">//=====================================</span>
<a name="l00022"></a>00022 <span class="comment"></span><span class="comment">//=====================================</span>
<a name="l00023"></a><a class="code" href="classRecentAlbumMenuItem.html">00023</a> <span class="keyword">class </span><a class="code" href="classRecentAlbumMenuItem.html" title="A custom menu entry, displays album image, name, and number of photos.">RecentAlbumMenuItem</a> : <span class="keyword">public</span> <a class="code" href="classQCustomMenuItem.html">QCustomMenuItem</a>
<a name="l00024"></a>00024 {
<a name="l00025"></a>00025 <span class="comment">//----------------------</span>
<a name="l00026"></a>00026 <span class="keyword">public</span>:
<a name="l00027"></a>00027   <a class="code" href="classRecentAlbumMenuItem.html#354ab25f0544318701dcfef55e905ebb">RecentAlbumMenuItem</a>( Key <a class="code" href="classRecentAlbumMenuItem.html#36498fbf466c609c7d1d7900c093682b">acceleratorKey</a> );
<a name="l00028"></a>00028 
<a name="l00030"></a>00030   <span class="keywordtype">void</span> <a class="code" href="classRecentAlbumMenuItem.html#8f24dece7400a13da2e48ab8a70b29d2" title="updates entry as per arguments passed (used by constructor during intiailization...">changeItem</a>( QString <a class="code" href="classRecentAlbumMenuItem.html#99a2324b66081f9fda0716880905c157" title="album name">albumName</a>, QString albumLocation, QString <a class="code" href="classRecentAlbumMenuItem.html#569129eb48599392a7b8e090ad4217c9" title="number of photos">numPhotos</a> );
<a name="l00031"></a>00031     
<a name="l00032"></a>00032   
<a name="l00034"></a>00034   <span class="keywordtype">void</span> <a class="code" href="classRecentAlbumMenuItem.html#dbae14ce02aab6186cc91ce1a02600fc" title="paints entry">paint</a>( QPainter * p, <span class="keyword">const</span> QColorGroup &amp; cg, <span class="keywordtype">bool</span> act, <span class="keywordtype">bool</span> enabled, 
<a name="l00035"></a>00035               <span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y, <span class="keywordtype">int</span> w, <span class="keywordtype">int</span> h );
<a name="l00036"></a>00036 
<a name="l00038"></a>00038   QSize <a class="code" href="classRecentAlbumMenuItem.html#42a7d14255eb18be7b52009921c4d6ad" title="returns menu entry size">sizeHint</a> ();
<a name="l00039"></a>00039 
<a name="l00042"></a>00042   <span class="keywordtype">void</span> <a class="code" href="classRecentAlbumMenuItem.html#8fbcd4bb687b9a6ca0e1171fe0848a1f" title="after all menu items have been refreshed hint at maximum width so we can adequately...">setMaxWidth</a>( <span class="keywordtype">int</span> val );
<a name="l00043"></a>00043 
<a name="l00045"></a>00045   <span class="keywordtype">bool</span> <a class="code" href="classRecentAlbumMenuItem.html#43fb3d3e87cfcd20190f051228134ebb" title="no icon necessary since album image painted here">fullSpan</a>() <span class="keyword">const</span>;
<a name="l00046"></a>00046   <span class="comment">//----------------------</span>
<a name="l00047"></a>00047 <span class="keyword">private</span>:
<a name="l00048"></a><a class="code" href="classRecentAlbumMenuItem.html#36498fbf466c609c7d1d7900c093682b">00048</a>   Key acceleratorKey;
<a name="l00049"></a>00049 
<a name="l00051"></a><a class="code" href="classRecentAlbumMenuItem.html#947ab36fc08c87e0997e9237ee237554">00051</a>   QImage <a class="code" href="classRecentAlbumMenuItem.html#947ab36fc08c87e0997e9237ee237554" title="album image">albumImage</a>;
<a name="l00052"></a>00052   
<a name="l00054"></a><a class="code" href="classRecentAlbumMenuItem.html#99a2324b66081f9fda0716880905c157">00054</a>   QString albumName;
<a name="l00055"></a>00055   
<a name="l00057"></a><a class="code" href="classRecentAlbumMenuItem.html#569129eb48599392a7b8e090ad4217c9">00057</a>   QString numPhotos;
<a name="l00058"></a>00058   
<a name="l00060"></a><a class="code" href="classRecentAlbumMenuItem.html#fa0cbaf725a37f20af94b10b02a8a73c">00060</a>   QSize <a class="code" href="classRecentAlbumMenuItem.html#fa0cbaf725a37f20af94b10b02a8a73c" title="computed size">size</a>;  
<a name="l00061"></a>00061 
<a name="l00063"></a><a class="code" href="classRecentAlbumMenuItem.html#24a7b428c635dce4efe51dd27dad6cd3">00063</a>   <span class="keywordtype">int</span> <a class="code" href="classRecentAlbumMenuItem.html#24a7b428c635dce4efe51dd27dad6cd3" title="max element width">maxWidth</a>;
<a name="l00064"></a>00064 
<a name="l00066"></a><a class="code" href="classRecentAlbumMenuItem.html#37540412a8fd5ee7add7ebfea246e0f7">00066</a>   <span class="keywordtype">int</span> <a class="code" href="classRecentAlbumMenuItem.html#37540412a8fd5ee7add7ebfea246e0f7" title="used for painting purposes">idealImageWidth</a>;
<a name="l00067"></a>00067   <span class="comment">//----------------------</span>
<a name="l00068"></a>00068 };
<a name="l00069"></a>00069 <span class="comment">//======================</span>
<a name="l00070"></a>00070 <span class="preprocessor">#endif //GUI_RECENTALBUMMENUITEM_H</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 23 02:34:27 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>