Sophie

Sophie

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

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: layoutWidget.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>layoutWidget.h</h1><a href="layoutWidget_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_LAYOUTWIDGET_H</span>
<a name="l00012"></a>00012 <span class="preprocessor"></span><span class="preprocessor">#define GUI_LAYOUTWIDGET_H</span>
<a name="l00013"></a>00013 <span class="preprocessor"></span>
<a name="l00014"></a>00014 <span class="preprocessor">#include &lt;qwidget.h&gt;</span>
<a name="l00015"></a>00015 
<a name="l00016"></a>00016 <span class="comment">//--------------------</span>
<a name="l00017"></a>00017 <span class="comment">//forward declarations</span>
<a name="l00018"></a>00018 <span class="keyword">class </span><a class="code" href="classQLabel.html">QLabel</a>;
<a name="l00019"></a>00019 <span class="keyword">class </span>QGridLayout;
<a name="l00020"></a>00020 <span class="keyword">class </span>QTabWidget;
<a name="l00021"></a>00021 <span class="keyword">class </span><a class="code" href="classSubalbumsWidget.html" title="Columnview of all subalbums in album.">SubalbumsWidget</a>;
<a name="l00022"></a>00022 <span class="keyword">class </span><a class="code" href="classSubalbumWidget.html" title="Displays subalbum layout.">SubalbumWidget</a>;
<a name="l00023"></a>00023 <span class="keyword">class </span><a class="code" href="classEditingInterface.html" title="Interface for editing photo.">EditingInterface</a>;
<a name="l00024"></a>00024 <span class="keyword">class </span><a class="code" href="classSubalbum.html" title="A subalbum contains photos.">Subalbum</a>;
<a name="l00025"></a>00025 <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="l00026"></a>00026 <span class="keyword">class </span><a class="code" href="classWindow.html" title="Top level widget, encapsulates the title widget, the layout widget, and the toolbar...">Window</a>;
<a name="l00027"></a>00027 <span class="comment">//--------------------</span>
<a name="l00028"></a>00028 
<a name="l00029"></a>00029 <span class="comment">//=====================================</span>
<a name="l00033"></a>00033 <span class="comment"></span><span class="comment">//=====================================</span>
<a name="l00034"></a>00034 
<a name="l00035"></a><a class="code" href="classLayoutWidget.html">00035</a> <span class="keyword">class </span><a class="code" href="classLayoutWidget.html" title="Displays list of subalbums and a particular subalbum layout.">LayoutWidget</a> : <span class="keyword">public</span> <a class="code" href="classQWidget.html">QWidget</a>
<a name="l00036"></a>00036 {
<a name="l00037"></a>00037 Q_OBJECT
<a name="l00038"></a>00038   
<a name="l00039"></a>00039 <span class="keyword">public</span>:
<a name="l00041"></a>00041   <a class="code" href="classLayoutWidget.html#b1b53bc0ad9b07b82e0a8666443069bc" title="Creates empty layout.">LayoutWidget</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="l00042"></a>00042   
<a name="l00044"></a>00044   <a class="code" href="classSubalbumWidget.html" title="Displays subalbum layout.">SubalbumWidget</a>* <a class="code" href="classLayoutWidget.html#5255327976cceb4c6150936683c08714" title="Returns a pointer to the subalbum.">getSubalbum</a>();
<a name="l00045"></a>00045   
<a name="l00047"></a>00047   <a class="code" href="classSubalbumsWidget.html" title="Columnview of all subalbums in album.">SubalbumsWidget</a>* <a class="code" href="classLayoutWidget.html#e8f37ccb7560209b1dba692aebad6648" title="Returns a pointer to the subalbums.">getSubalbums</a>();
<a name="l00048"></a>00048   
<a name="l00050"></a>00050   <a class="code" href="classWindow.html" title="Top level widget, encapsulates the title widget, the layout widget, and the toolbar...">Window</a>* <a class="code" href="classLayoutWidget.html#def61c20f8268bc631dab83afc252be2" title="Returns a pointer to the window.">getWindow</a>();
<a name="l00051"></a>00051   
<a name="l00053"></a>00053   <span class="keywordtype">void</span> <a class="code" href="classLayoutWidget.html#675b2bae5415c2ca668edb460d9f908e" title="Refreshes layout.">refresh</a>();
<a name="l00054"></a>00054 
<a name="l00057"></a>00057   <span class="keywordtype">void</span> <a class="code" href="classLayoutWidget.html#354b0dfb17383495dbb952f9f7eabeea" title="Reverts all selected photos in organize mode, or currently shown photo if in editing...">revertPhotos</a>();
<a name="l00058"></a>00058   <span class="comment">//----------------------</span>
<a name="l00059"></a>00059 <span class="keyword">private</span>:
<a name="l00061"></a><a class="code" href="classLayoutWidget.html#a743a6e95be2ccdcbe01a4a54cf7c786">00061</a>     <a class="code" href="classWindow.html" title="Top level widget, encapsulates the title widget, the layout widget, and the toolbar...">Window</a>* <a class="code" href="classLayoutWidget.html#a743a6e95be2ccdcbe01a4a54cf7c786" title="Window pointer.">window</a>;
<a name="l00062"></a>00062   
<a name="l00064"></a><a class="code" href="classLayoutWidget.html#29642b0ea418acfc65d19c40d29adf5c">00064</a>   QGridLayout* <a class="code" href="classLayoutWidget.html#29642b0ea418acfc65d19c40d29adf5c" title="Grid items placed in.">grid</a>;
<a name="l00065"></a>00065   
<a name="l00067"></a><a class="code" href="classLayoutWidget.html#4781bcbe27f1323a93b675ef33b1de12">00067</a>   <a class="code" href="classSubalbumsWidget.html" title="Columnview of all subalbums in album.">SubalbumsWidget</a>* <a class="code" href="classLayoutWidget.html#4781bcbe27f1323a93b675ef33b1de12" title="List of subalbums.">subalbums</a>;
<a name="l00068"></a>00068   
<a name="l00070"></a><a class="code" href="classLayoutWidget.html#ed706c6cc72ade4c3c5d3f615df297ba">00070</a>   QTabWidget* <a class="code" href="classLayoutWidget.html#ed706c6cc72ade4c3c5d3f615df297ba" title="Tab widget containing organize and edit widgets.">tabbedArea</a>;
<a name="l00071"></a>00071   
<a name="l00073"></a><a class="code" href="classLayoutWidget.html#af96ebf66a7088fb6f659630ae210eb4">00073</a>   <a class="code" href="classSubalbumWidget.html" title="Displays subalbum layout.">SubalbumWidget</a>* <a class="code" href="classLayoutWidget.html#af96ebf66a7088fb6f659630ae210eb4" title="Collection organize widget.">subalbum</a>;  
<a name="l00074"></a>00074   
<a name="l00076"></a><a class="code" href="classLayoutWidget.html#880e0576ad0aab401183130141e9c87b">00076</a>   <a class="code" href="classEditingInterface.html" title="Interface for editing photo.">EditingInterface</a>* <a class="code" href="classLayoutWidget.html#880e0576ad0aab401183130141e9c87b" title="Editing interface.">editingInterface</a>;
<a name="l00077"></a>00077 <span class="comment">//----------------------</span>
<a name="l00078"></a>00078 signals:
<a name="l00079"></a>00079   <span class="keywordtype">void</span> <a class="code" href="classLayoutWidget.html#5b23593fe0fc0adac3ade2d3c40ff9c6">collectionSelected</a>( <a class="code" href="classSubalbum.html" title="A subalbum contains photos.">Subalbum</a>* );
<a name="l00080"></a>00080 <span class="comment">//----------------------</span>
<a name="l00081"></a>00081 <span class="keyword">public</span> slots:
<a name="l00082"></a>00082   <span class="keywordtype">void</span> <a class="code" href="classLayoutWidget.html#a85d8b2eabe91ae161a823e8065a41a3">setEditTabEnabled</a>(<span class="keywordtype">bool</span> val);
<a name="l00083"></a>00083 
<a name="l00085"></a>00085   <span class="keywordtype">void</span> <a class="code" href="classLayoutWidget.html#c00f5ce55a249168160ce9f8992a17b3" title="Edits first select photo.">editSelectedPhoto</a>();
<a name="l00086"></a>00086   
<a name="l00088"></a>00088   <span class="keywordtype">void</span> <a class="code" href="classLayoutWidget.html#d31964351b72e66e6a576a0be929a937" title="Select organize tab.">organize</a>();  
<a name="l00089"></a>00089   
<a name="l00091"></a>00091   <span class="keywordtype">void</span> <a class="code" href="classLayoutWidget.html#5036fe09341a10d2eeac514f888dcb3d" title="handle the changing state of selected/shown photos">photoStateChangedEvent</a>();
<a name="l00092"></a>00092   
<a name="l00094"></a>00094   <span class="keywordtype">void</span> <a class="code" href="classLayoutWidget.html#aa7572255c02082d5e6eaf7ad87ec3b3" title="updates the selected collection icon name">refreshSelectedCollectionIconName</a>();
<a name="l00095"></a>00095   
<a name="l00097"></a>00097   <span class="keywordtype">void</span> <a class="code" href="classLayoutWidget.html#61624e646e544e746c6a14d2e8db833d" title="Updates the current subalbums image.">updateSubalbumImage</a>( QPixmap* val);
<a name="l00098"></a>00098 <span class="comment">//----------------------</span>
<a name="l00099"></a>00099 <span class="keyword">private</span> slots:
<a name="l00101"></a>00101   <span class="keywordtype">void</span> <a class="code" href="classLayoutWidget.html#ce924be1bc2d68e7b1780f9913bb651f" title="handle tab shown changed signal">tabChanged</a>( <a class="code" href="classQWidget.html">QWidget</a>* widget );
<a name="l00102"></a>00102 
<a name="l00103"></a>00103   <span class="comment">//show the specified collection in using the organize view</span>
<a name="l00104"></a>00104   <span class="keywordtype">void</span> <a class="code" href="classLayoutWidget.html#8f120e8eda82a5bd77f19ad15d42462a">showCollection</a>(<a class="code" href="classSubalbum.html" title="A subalbum contains photos.">Subalbum</a>* collection);
<a name="l00105"></a>00105 <span class="comment">//----------------------</span>
<a name="l00106"></a>00106 };
<a name="l00107"></a>00107 <span class="comment">//======================</span>
<a name="l00108"></a>00108 
<a name="l00109"></a>00109 <span class="preprocessor">#endif //GUI_LAYOUTWIDGET_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>