Sophie

Sophie

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

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: photoPreviewWidget.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>photoPreviewWidget.h</h1><a href="photoPreviewWidget_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_PHOTOPREVIEWWIDGET_H</span>
<a name="l00012"></a>00012 <span class="preprocessor"></span><span class="preprocessor">#define GUI_PHOTOPREVIEWWIDGET_H</span>
<a name="l00013"></a>00013 <span class="preprocessor"></span>
<a name="l00014"></a>00014 <span class="comment">//--------------------</span>
<a name="l00015"></a>00015 <span class="comment">//forward declarations</span>
<a name="l00016"></a>00016 <span class="keyword">class </span>QPixmap;
<a name="l00017"></a>00017 <span class="keyword">class </span>QString;
<a name="l00018"></a>00018 <span class="keyword">class </span><a class="code" href="classPhoto.html" title="A photo consists of a full size image, a smaller slide show image, a very small thumbnail...">Photo</a>;
<a name="l00019"></a>00019 <span class="comment">//--------------------</span>
<a name="l00020"></a>00020 
<a name="l00021"></a><a class="code" href="photoPreviewWidget_8h.html#51af35a52d737b53581977578ece2eb2">00021</a> <span class="preprocessor">#define PHOTO_MARGIN 4</span>
<a name="l00022"></a><a class="code" href="photoPreviewWidget_8h.html#10c8bd04b47d651b52518b055a9154bd">00022</a> <span class="preprocessor"></span><span class="preprocessor">#define PHOTO_SHADOW 3</span>
<a name="l00023"></a><a class="code" href="photoPreviewWidget_8h.html#ba57c2d0765d2249bcc18706eb86cdc4">00023</a> <span class="preprocessor"></span><span class="preprocessor">#define PHOTO_SHADOW_END_OFFSET 2</span>
<a name="l00024"></a><a class="code" href="photoPreviewWidget_8h.html#a85ac1cb0d23fe80344f98942a4b67b7">00024</a> <span class="preprocessor"></span><span class="preprocessor">#define PHOTO_TEXT_MARGIN 1</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span>
<a name="l00026"></a>00026 <span class="preprocessor">#include &lt;qiconview.h&gt;</span>
<a name="l00027"></a>00027 
<a name="l00028"></a>00028 <span class="comment">//=====================================</span>
<a name="l00031"></a>00031 <span class="comment"></span><span class="comment">//=====================================</span>
<a name="l00032"></a><a class="code" href="classPhotoPreviewWidget.html">00032</a> <span class="keyword">class </span><a class="code" href="classPhotoPreviewWidget.html" title="Displays photo thumbnail and description.">PhotoPreviewWidget</a> : <span class="keyword">public</span> <a class="code" href="classQIconViewItem.html">QIconViewItem</a>
<a name="l00033"></a>00033 {
<a name="l00034"></a>00034 <span class="keyword">public</span>:
<a name="l00036"></a>00036   <a class="code" href="classPhotoPreviewWidget.html#ea4916ddf230f37c914099f522fefb4b" title="Sets subalbum pointer.">PhotoPreviewWidget</a>( <a class="code" href="classQIconView.html">QIconView</a> *parent, <a class="code" href="classPhoto.html" title="A photo consists of a full size image, a smaller slide show image, a very small thumbnail...">Photo</a>* <a class="code" href="classPhotoPreviewWidget.html#482d401a94fe00a2a5bd1c2f9a999ad4" title="Pointer to photo backend object.">phto</a> );
<a name="l00037"></a>00037 
<a name="l00039"></a>00039   <a class="code" href="classPhoto.html" title="A photo consists of a full size image, a smaller slide show image, a very small thumbnail...">Photo</a>* <a class="code" href="classPhotoPreviewWidget.html#f54da3447e6426891f5a1a40a0e3e1a7" title="Returns photo pointer.">getPhoto</a>();
<a name="l00040"></a>00040 
<a name="l00042"></a>00042   <span class="keywordtype">void</span> <a class="code" href="classPhotoPreviewWidget.html#32d90bce58cce24b83851f051dce3714" title="Update photo thumbnail from background object.">updateImage</a>();
<a name="l00043"></a>00043 
<a name="l00045"></a>00045   <span class="keywordtype">void</span> <a class="code" href="classPhotoPreviewWidget.html#a2645b8d8e9d18731397692dbb260137" title="Update photo description.">updateDescription</a>();
<a name="l00046"></a>00046 
<a name="l00047"></a>00047   <span class="keywordtype">void</span> <a class="code" href="classPhotoPreviewWidget.html#5a1d2b680d796a9e89eb5af1c0ad3285">paint</a>( QPainter *p );
<a name="l00048"></a>00048 
<a name="l00050"></a>00050   <span class="keywordtype">void</span> <a class="code" href="classPhotoPreviewWidget.html#cf01b867b25b67203ecf3ca72a6d5c53" title="Repain iconview item.">paintItem</a>( QPainter* p,
<a name="l00051"></a>00051                   <span class="keyword">const</span> QColorGroup&amp; cg);
<a name="l00052"></a>00052 
<a name="l00053"></a>00053   <span class="keywordtype">void</span> <a class="code" href="classPhotoPreviewWidget.html#d40116f02fe920262585aefcd929f7eb">paintFocus</a>( QPainter *p, <span class="keyword">const</span> QColorGroup &amp;cg );
<a name="l00054"></a>00054 
<a name="l00055"></a>00055   <span class="keywordtype">void</span> <a class="code" href="classPhotoPreviewWidget.html#ddb523fc7dd928131a9931b01be0f2b6">setText</a> ( <span class="keyword">const</span> QString &amp; text );
<a name="l00056"></a>00056 
<a name="l00057"></a>00057   <span class="keywordtype">void</span> <a class="code" href="classPhotoPreviewWidget.html#0622139cdc67fe47a5948fcf9c791b3b">setPixmap</a>(<span class="keyword">const</span> QPixmap&amp; p, <span class="keywordtype">bool</span> redraw);
<a name="l00058"></a>00058   
<a name="l00059"></a>00059   <span class="keywordtype">bool</span> <a class="code" href="classPhotoPreviewWidget.html#4e56de1e3bb4b7ce970a89d26d31a593">acceptDrop</a>( <span class="keyword">const</span> QMimeSource *e) <span class="keyword">const</span>;
<a name="l00060"></a>00060 
<a name="l00061"></a>00061   <span class="keywordtype">int</span> <a class="code" href="classPhotoPreviewWidget.html#f22bb482f3ff13f026e350950d2cd07d">compare</a> ( <a class="code" href="classQIconViewItem.html">QIconViewItem</a> * i ) <span class="keyword">const</span>;
<a name="l00062"></a>00062 
<a name="l00063"></a>00063   <span class="keywordtype">void</span> <a class="code" href="classPhotoPreviewWidget.html#81806a5a36fa6fbae947dd1aa2f09210">setMousedOver</a>(<span class="keywordtype">bool</span> val);
<a name="l00064"></a>00064 
<a name="l00065"></a>00065   QRect <a class="code" href="classPhotoPreviewWidget.html#a0a4a1da54f1ce102f3d3512afd2fb49">getPhotoInfoRect</a>();
<a name="l00066"></a>00066 
<a name="l00067"></a>00067   <span class="comment">//returns the top left corner of the displayed image in screen coordinates</span>
<a name="l00068"></a>00068   QPoint <a class="code" href="classPhotoPreviewWidget.html#fdd4a5baee26b0cb4f12fee37a165263">getPhotoPos</a>();
<a name="l00069"></a>00069  <span class="comment">//----------------------</span>
<a name="l00070"></a>00070 <span class="keyword">private</span>:
<a name="l00071"></a>00071   <span class="keywordtype">void</span> <a class="code" href="classPhotoPreviewWidget.html#1719368fda87885100c3b440be3db526">initializeItemRect</a>();
<a name="l00072"></a>00072 
<a name="l00074"></a><a class="code" href="classPhotoPreviewWidget.html#482d401a94fe00a2a5bd1c2f9a999ad4">00074</a>   <a class="code" href="classPhoto.html" title="A photo consists of a full size image, a smaller slide show image, a very small thumbnail...">Photo</a>* phto;
<a name="l00075"></a>00075 
<a name="l00076"></a><a class="code" href="classPhotoPreviewWidget.html#d2975bd54873312f3b3a799ec14d8852">00076</a>   <span class="keywordtype">int</span> <a class="code" href="classPhotoPreviewWidget.html#d2975bd54873312f3b3a799ec14d8852">calibratedWidth</a>;
<a name="l00077"></a>00077 
<a name="l00078"></a><a class="code" href="classPhotoPreviewWidget.html#470f63209ed369c3f9c147f11d0f11e6">00078</a> <span class="keywordtype">bool</span> <a class="code" href="classPhotoPreviewWidget.html#470f63209ed369c3f9c147f11d0f11e6">mousedOver</a>;
<a name="l00079"></a>00079 
<a name="l00080"></a><a class="code" href="classPhotoPreviewWidget.html#c59e9c7026c537f86d06dd445d5e1433">00080</a>   QRect <a class="code" href="classPhotoPreviewWidget.html#c59e9c7026c537f86d06dd445d5e1433">photoInfoRect</a>;
<a name="l00081"></a>00081   
<a name="l00083"></a><a class="code" href="classPhotoPreviewWidget.html#18e6c66b12c8f635dbf367190b090787">00083</a>   <span class="keywordtype">int</span> <a class="code" href="classPhotoPreviewWidget.html#85c95ac886de95d09abfc1474153ac22" title="offsets used to center pixmap">pixmapXOffset</a>, <a class="code" href="classPhotoPreviewWidget.html#18e6c66b12c8f635dbf367190b090787">pixmapYOffset</a>;
<a name="l00085"></a>00085 };
<a name="l00086"></a>00086 <span class="comment">//======================</span>
<a name="l00087"></a>00087 
<a name="l00088"></a>00088 <span class="preprocessor">#endif //GUI_PHOTOPREVIEWWIDGET_H</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 23 02:34:26 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>