Sophie

Sophie

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

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: subalbumsWidget.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>subalbumsWidget.h</h1><a href="subalbumsWidget_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_SUBALBUMSWIDGET_H</span>
<a name="l00012"></a>00012 <span class="preprocessor"></span><span class="preprocessor">#define GUI_SUBALBUMSWIDGET_H</span>
<a name="l00013"></a>00013 <span class="preprocessor"></span>
<a name="l00014"></a>00014 <span class="comment">//forward declarations</span>
<a name="l00015"></a>00015 <span class="keyword">class </span><a class="code" href="classQIconViewItem.html">QIconViewItem</a>;
<a name="l00016"></a>00016 <span class="keyword">class </span>QToolButton;
<a name="l00017"></a>00017 <span class="keyword">class </span><a class="code" href="classLayoutWidget.html" title="Displays list of subalbums and a particular subalbum layout.">LayoutWidget</a>;
<a name="l00018"></a>00018 <span class="keyword">class </span><a class="code" href="classSubalbumsIconView.html" title="Extension of iconview, used to list all subalbums in album. Supports drag-n-drop...">SubalbumsIconView</a>;
<a name="l00019"></a>00019 <span class="keyword">class </span><a class="code" href="classSubalbum.html" title="A subalbum contains photos.">Subalbum</a>;
<a name="l00020"></a>00020 <span class="keyword">class </span><a class="code" href="classSubalbumPreviewWidget.html" title="Displays subalbum icon and name.">SubalbumPreviewWidget</a>;
<a name="l00021"></a>00021 
<a name="l00022"></a>00022 <span class="preprocessor">#include &lt;qwidget.h&gt;</span>
<a name="l00023"></a>00023 
<a name="l00024"></a>00024 <span class="comment">//=====================================</span>
<a name="l00027"></a>00027 <span class="comment"></span><span class="comment">//=====================================</span>
<a name="l00028"></a>00028 
<a name="l00029"></a><a class="code" href="classSubalbumsWidget.html">00029</a> <span class="keyword">class </span><a class="code" href="classSubalbumsWidget.html" title="Columnview of all subalbums in album.">SubalbumsWidget</a> : <span class="keyword">public</span> <a class="code" href="classQWidget.html">QWidget</a>
<a name="l00030"></a>00030 {
<a name="l00031"></a>00031 Q_OBJECT
<a name="l00032"></a>00032 
<a name="l00033"></a>00033 <span class="keyword">public</span>:
<a name="l00035"></a>00035   <a class="code" href="classSubalbumsWidget.html#729508fab2e62db4f1449c76dd3db17c" title="Creates layout.">SubalbumsWidget</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="l00036"></a>00036 
<a name="l00038"></a>00038   <span class="keywordtype">void</span> <a class="code" href="classSubalbumsWidget.html#f70e74f80dbeb87dc7df7c838e1a702e" title="Refreshes list of collections, selecting first by default.">refreshCollectionsList</a>();
<a name="l00039"></a>00039 
<a name="l00041"></a>00041   <a class="code" href="classLayoutWidget.html" title="Displays list of subalbums and a particular subalbum layout.">LayoutWidget</a>* <a class="code" href="classSubalbumsWidget.html#d192a43781f0d918c79b20122f6d9979" title="Returns parent.">getParent</a>();
<a name="l00042"></a>00042 
<a name="l00044"></a>00044   <span class="keywordtype">void</span> <a class="code" href="classSubalbumsWidget.html#0e0b2584ef7fed4f7c8d5ecdb83d95e1" title="Activates/Deactives create/delete buttons.">updateButtons</a>(<span class="keywordtype">bool</span> enable);
<a name="l00045"></a>00045 
<a name="l00047"></a>00047   <a class="code" href="classQIconViewItem.html">QIconViewItem</a>* <a class="code" href="classSubalbumsWidget.html#a3dd8c5b8baab3e18b64231a47671c1f" title="Returns current selection.">getCurrentSelection</a>();
<a name="l00048"></a>00048 
<a name="l00050"></a>00050   <a class="code" href="classSubalbum.html" title="A subalbum contains photos.">Subalbum</a>* <a class="code" href="classSubalbumsWidget.html#7de8f9e1b842ec9f7e450f6094fa9755" title="Returns the currently selected subalbum.">getSelectedSubalbum</a>();    
<a name="l00051"></a>00051 
<a name="l00053"></a>00053 <span class="comment">//  void setSelectedSubalbum( Subalbum* selection );</span>
<a name="l00054"></a>00054 <span class="comment">//----------------------</span>
<a name="l00055"></a>00055 <span class="keyword">private</span>:
<a name="l00057"></a>00057   <span class="keywordtype">void</span> <a class="code" href="classSubalbumsWidget.html#11ce00e893087b5a7f42013753ea0119" title="Select specified subalbum.">selectFirstCollection</a>();
<a name="l00058"></a>00058   
<a name="l00060"></a>00060   <span class="keywordtype">void</span> <a class="code" href="classSubalbumsWidget.html#54f9c4e19d66dffedd01aea966af2fb9" title="select specified collection">selectCollection</a>( <a class="code" href="classQIconViewItem.html">QIconViewItem</a>* item );
<a name="l00061"></a>00061 
<a name="l00063"></a><a class="code" href="classSubalbumsWidget.html#25d381eb6d953d97b91e2ba01ff755ae">00063</a>   <a class="code" href="classSubalbumsIconView.html" title="Extension of iconview, used to list all subalbums in album. Supports drag-n-drop...">SubalbumsIconView</a>* <a class="code" href="classSubalbumsWidget.html#25d381eb6d953d97b91e2ba01ff755ae" title="list of subalbums">collections</a>;
<a name="l00064"></a>00064   
<a name="l00065"></a>00065   <span class="comment">//Currently selected item</span>
<a name="l00066"></a><a class="code" href="classSubalbumsWidget.html#2d5d85ae2e9e78723547dfa1f7d6fcbb">00066</a>   <a class="code" href="classQIconViewItem.html">QIconViewItem</a>* <a class="code" href="classSubalbumsWidget.html#2d5d85ae2e9e78723547dfa1f7d6fcbb">currentSelection</a>;
<a name="l00067"></a>00067   
<a name="l00069"></a><a class="code" href="classSubalbumsWidget.html#118ae235308c46f595549f968038a8c3">00069</a>   QToolButton* <a class="code" href="classSubalbumsWidget.html#118ae235308c46f595549f968038a8c3" title="Create collection button.">createButton</a>;
<a name="l00070"></a>00070   
<a name="l00072"></a><a class="code" href="classSubalbumsWidget.html#ada264fba7e5295fea1047fa199a2dde">00072</a>   QToolButton* <a class="code" href="classSubalbumsWidget.html#ada264fba7e5295fea1047fa199a2dde" title="Delete collection button.">deleteButton</a>;
<a name="l00073"></a>00073   
<a name="l00075"></a><a class="code" href="classSubalbumsWidget.html#28e14bd6da98ab63cd8d10e1c92e540b">00075</a>   <a class="code" href="classLayoutWidget.html" title="Displays list of subalbums and a particular subalbum layout.">LayoutWidget</a>* <a class="code" href="classSubalbumsWidget.html#28e14bd6da98ab63cd8d10e1c92e540b" title="Pointer to layoutwidget this widget is in.">layout</a>;
<a name="l00076"></a>00076   
<a name="l00078"></a><a class="code" href="classSubalbumsWidget.html#ddf4816f9cb117e8019708f735b5da96">00078</a>   <span class="keywordtype">bool</span> <a class="code" href="classSubalbumsWidget.html#ddf4816f9cb117e8019708f735b5da96" title="Cached enabled/disabled state of buttons.">buttonsState</a>;
<a name="l00079"></a>00079   <span class="comment">//----------------------</span>
<a name="l00080"></a>00080 signals:
<a name="l00081"></a>00081     <span class="keywordtype">void</span> <a class="code" href="classSubalbumsWidget.html#ce3b886e1c6ed3893c88f8e92c2799c7">collectionSelected</a>( <a class="code" href="classSubalbum.html" title="A subalbum contains photos.">Subalbum</a>* );
<a name="l00082"></a>00082 <span class="comment">//----------------------</span>
<a name="l00083"></a>00083 <span class="keyword">public</span> slots:
<a name="l00084"></a>00084   <span class="keywordtype">void</span> <a class="code" href="classSubalbumsWidget.html#12febd6c41636d26a80b7b6fdea4d081">updatedSelectedCollectionImage</a>( QPixmap* val);
<a name="l00085"></a>00085   <span class="keywordtype">void</span> <a class="code" href="classSubalbumsWidget.html#d903413dbf56a0bc4c40bc0110be934e">refreshSelectedCollectionName</a>();
<a name="l00086"></a>00086 <span class="comment">//----------------------</span>
<a name="l00087"></a>00087 <span class="keyword">private</span> slots:
<a name="l00089"></a>00089   <span class="keywordtype">void</span> <a class="code" href="classSubalbumsWidget.html#597578f4f71f8fa1f1f82eaf7b66c807" title="create a new collection">createAction</a>();
<a name="l00090"></a>00090 
<a name="l00092"></a>00092   <span class="keywordtype">void</span> <a class="code" href="classSubalbumsWidget.html#4542fe141b9343750f13c4f4efdc62e8" title="deletes the currently selected collection">deleteAction</a>();
<a name="l00093"></a>00093 
<a name="l00095"></a>00095   <span class="keywordtype">void</span> <a class="code" href="classSubalbumsWidget.html#4f7d3a7fef3e03de451366479ee0cf98" title="respond to user clicking collection icons">handleSelectionAttempt</a>( <a class="code" href="classQIconViewItem.html">QIconViewItem</a>* item);
<a name="l00096"></a>00096   
<a name="l00098"></a>00098   <span class="keywordtype">void</span> <a class="code" href="classSubalbumsWidget.html#e334af5171e9f76e5d14c4dde6cb996c" title="relayout collectionicons after a create/delete refresh">reorder</a>();
<a name="l00099"></a>00099 <span class="comment">//----------------------</span>
<a name="l00100"></a>00100 };
<a name="l00101"></a>00101 <span class="comment">//======================</span>
<a name="l00102"></a>00102 
<a name="l00103"></a>00103 <span class="preprocessor">#endif //GUI_SUBALBUMSWIDGET_H</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 23 02:34:28 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>