<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>AlbumShaper: subalbumsWidget.cpp 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.6.2 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main 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 List</span></a></li> <li><a href="globals.html"><span>File Members</span></a></li> </ul> </div> <h1>subalbumsWidget.cpp</h1><a href="subalbumsWidget_8cpp.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="comment">//Systemwide includes</span> <a name="l00012"></a>00012 <span class="preprocessor">#include <qwidget.h></span> <a name="l00013"></a>00013 <span class="preprocessor">#include <qlayout.h></span> <a name="l00014"></a>00014 <span class="preprocessor">#include <qlabel.h></span> <a name="l00015"></a>00015 <span class="preprocessor">#include <qfont.h></span> <a name="l00016"></a>00016 <span class="preprocessor">#include <qpixmap.h></span> <a name="l00017"></a>00017 <span class="preprocessor">#include <qapplication.h></span> <a name="l00018"></a>00018 <span class="preprocessor">#include <qtoolbutton.h></span> <a name="l00019"></a>00019 <span class="preprocessor">#include <qtooltip.h></span> <a name="l00020"></a>00020 <a name="l00021"></a>00021 <span class="comment">//Projectwide includes</span> <a name="l00022"></a>00022 <span class="preprocessor">#include "<a class="code" href="subalbumsWidget_8h.html">subalbumsWidget.h</a>"</span> <a name="l00023"></a>00023 <span class="preprocessor">#include "<a class="code" href="subalbumPreviewWidget_8h.html">subalbumPreviewWidget.h</a>"</span> <a name="l00024"></a>00024 <span class="preprocessor">#include "<a class="code" href="subalbumsIconView_8h.html">subalbumsIconView.h</a>"</span> <a name="l00025"></a>00025 <span class="preprocessor">#include "<a class="code" href="layoutWidget_8h.html">layoutWidget.h</a>"</span> <a name="l00026"></a>00026 <span class="preprocessor">#include "<a class="code" href="window_8h.html">window.h</a>"</span> <a name="l00027"></a>00027 <span class="preprocessor">#include "<a class="code" href="titleWidget_8h.html">titleWidget.h</a>"</span> <a name="l00028"></a>00028 <span class="preprocessor">#include "<a class="code" href="questionDialog_8h.html">dialogs/questionDialog.h</a>"</span> <a name="l00029"></a>00029 <span class="preprocessor">#include "../config.h"</span> <a name="l00030"></a>00030 <span class="preprocessor">#include "../backend/album.h"</span> <a name="l00031"></a>00031 <span class="preprocessor">#include "../backend/subalbum.h"</span> <a name="l00032"></a>00032 <span class="preprocessor">#include "../backend/tools/guiTools.h"</span> <a name="l00033"></a>00033 <span class="preprocessor">#include "../configuration/configuration.h"</span> <a name="l00034"></a>00034 <a name="l00035"></a>00035 <span class="comment">//==============================================</span> <a name="l00036"></a><a class="code" href="classSubalbumsWidget.html#a729508fab2e62db4f1449c76dd3db17c">00036</a> <a class="code" href="classSubalbumsWidget.html#a729508fab2e62db4f1449c76dd3db17c" title="Creates layout.">SubalbumsWidget::SubalbumsWidget</a>(<a class="code" href="classQWidget.html">QWidget</a> *parent, <a name="l00037"></a>00037 <span class="keyword">const</span> <span class="keywordtype">char</span>* name ) : <a name="l00038"></a>00038 <a class="code" href="classQWidget.html">QWidget</a>(parent,name) <a name="l00039"></a>00039 { <a name="l00040"></a>00040 <span class="comment">//set layout pointer</span> <a name="l00041"></a>00041 <a class="code" href="classSubalbumsWidget.html#a28e14bd6da98ab63cd8d10e1c92e540b" title="Pointer to layoutwidget this widget is in.">layout</a> = (<a class="code" href="classLayoutWidget.html" title="Displays list of subalbums and a particular subalbum layout.">LayoutWidget</a>*)parent; <a name="l00042"></a>00042 <a name="l00043"></a>00043 <span class="comment">//create "Collections:" header</span> <a name="l00044"></a>00044 <a class="code" href="classQLabel.html">QLabel</a>* collectionsHeader = <span class="keyword">new</span> <a class="code" href="classQLabel.html">QLabel</a>( <span class="keyword">this</span> ); <a name="l00045"></a>00045 collectionsHeader->setText( tr(<span class="stringliteral">"Collections:"</span>) ); <a name="l00046"></a>00046 QFont labelFont = collectionsHeader->font(); <a name="l00047"></a>00047 labelFont.setWeight(QFont::Bold); <a name="l00048"></a>00048 collectionsHeader->setFont( labelFont ); <a name="l00049"></a>00049 <span class="comment">//--------------------------------------</span> <a name="l00050"></a>00050 <span class="comment">//create collections list</span> <a name="l00051"></a>00051 <a class="code" href="classSubalbumsWidget.html#a25d381eb6d953d97b91e2ba01ff755ae" title="list of subalbums">collections</a> = <span class="keyword">new</span> <a class="code" href="classSubalbumsIconView.html" title="Extension of iconview, used to list all subalbums in album. Supports drag-n-drop...">SubalbumsIconView</a>( <span class="keyword">this</span> ); <a name="l00052"></a>00052 <a name="l00053"></a>00053 <span class="comment">//only one item can be selected at a time</span> <a name="l00054"></a>00054 <a class="code" href="classSubalbumsWidget.html#a25d381eb6d953d97b91e2ba01ff755ae" title="list of subalbums">collections</a>->setSelectionMode( QIconView::Single ) ; <a name="l00055"></a>00055 <a name="l00056"></a>00056 <span class="comment">//single column of items</span> <a name="l00057"></a>00057 <a class="code" href="classSubalbumsWidget.html#a25d381eb6d953d97b91e2ba01ff755ae" title="list of subalbums">collections</a>->setGridX(1); <a name="l00058"></a>00058 <a name="l00059"></a>00059 <span class="comment">//text is on right of icons</span> <a name="l00060"></a>00060 <a class="code" href="classSubalbumsWidget.html#a25d381eb6d953d97b91e2ba01ff755ae" title="list of subalbums">collections</a>->setItemTextPos( QIconView::Right ); <a name="l00061"></a>00061 <a name="l00062"></a>00062 <span class="comment">//disable frame</span> <a name="l00063"></a>00063 <a class="code" href="classSubalbumsWidget.html#a25d381eb6d953d97b91e2ba01ff755ae" title="list of subalbums">collections</a>->setFrameShape ( QFrame::NoFrame ); <a name="l00064"></a>00064 <a name="l00065"></a>00065 <a class="code" href="classSubalbumsWidget.html#a25d381eb6d953d97b91e2ba01ff755ae" title="list of subalbums">collections</a>->setMaxItemWidth(500); <a name="l00066"></a>00066 <a class="code" href="classSubalbumsWidget.html#a25d381eb6d953d97b91e2ba01ff755ae" title="list of subalbums">collections</a>->setPaletteBackgroundColor( QColor(193, 210, 238) ); <a name="l00067"></a>00067 <a class="code" href="classSubalbumsWidget.html#a25d381eb6d953d97b91e2ba01ff755ae" title="list of subalbums">collections</a>->setDragAutoScroll(<span class="keyword">true</span>); <a name="l00068"></a>00068 <a class="code" href="classSubalbumsWidget.html#a25d381eb6d953d97b91e2ba01ff755ae" title="list of subalbums">collections</a>->setAcceptDrops(<span class="keyword">true</span>); <a name="l00069"></a>00069 <a class="code" href="classSubalbumsWidget.html#a25d381eb6d953d97b91e2ba01ff755ae" title="list of subalbums">collections</a>->setVScrollBarMode( QScrollView::Auto ); <a name="l00070"></a>00070 <a class="code" href="classSubalbumsWidget.html#a25d381eb6d953d97b91e2ba01ff755ae" title="list of subalbums">collections</a>->setHScrollBarMode( QScrollView::Auto ); <a name="l00071"></a>00071 <span class="comment">//--------------------------------------</span> <a name="l00072"></a>00072 <span class="comment">//no selection by default</span> <a name="l00073"></a>00073 <a class="code" href="classSubalbumsWidget.html#a2d5d85ae2e9e78723547dfa1f7d6fcbb">currentSelection</a> = NULL; <a name="l00074"></a>00074 <span class="comment">//--------------------------------------</span> <a name="l00075"></a>00075 <span class="comment">//connect drop event on iconview to reorder slot</span> <a name="l00076"></a>00076 connect( <a class="code" href="classSubalbumsWidget.html#a25d381eb6d953d97b91e2ba01ff755ae" title="list of subalbums">collections</a>, SIGNAL(itemHasMoved()), SLOT(<a class="code" href="classSubalbumsWidget.html#ae334af5171e9f76e5d14c4dde6cb996c" title="relayout collectionicons after a create/delete refresh">reorder</a>()) ); <a name="l00077"></a>00077 <a name="l00078"></a>00078 <span class="comment">//handle selection attempts</span> <a name="l00079"></a>00079 connect( <a class="code" href="classSubalbumsWidget.html#a25d381eb6d953d97b91e2ba01ff755ae" title="list of subalbums">collections</a>, SIGNAL(selectionChanged(<a class="code" href="classQIconViewItem.html">QIconViewItem</a>*)), <a name="l00080"></a>00080 <span class="keyword">this</span>, SLOT(<a class="code" href="classSubalbumsWidget.html#a4f7d3a7fef3e03de451366479ee0cf98" title="respond to user clicking collection icons">handleSelectionAttempt</a>(<a class="code" href="classQIconViewItem.html">QIconViewItem</a>*))); <a name="l00081"></a>00081 <span class="comment">//--------------------------------------</span> <a name="l00082"></a>00082 <span class="comment">//create create/delete buttons</span> <a name="l00083"></a>00083 QFont buttonFont( qApp->font() ); <a name="l00084"></a>00084 buttonFont.setBold(<span class="keyword">true</span>); <a name="l00085"></a>00085 buttonFont.setPointSize( 11 ); <a name="l00086"></a>00086 <a name="l00087"></a>00087 <a class="code" href="classSubalbumsWidget.html#a118ae235308c46f595549f968038a8c3" title="Create collection button.">createButton</a> = <span class="keyword">new</span> QToolButton( <span class="keyword">this</span> ); <a name="l00088"></a>00088 <a class="code" href="classSubalbumsWidget.html#a118ae235308c46f595549f968038a8c3" title="Create collection button.">createButton</a>->setTextLabel(tr(<span class="stringliteral">"Create"</span>)); <a name="l00089"></a>00089 <a class="code" href="classSubalbumsWidget.html#a118ae235308c46f595549f968038a8c3" title="Create collection button.">createButton</a>->setIconSet( QPixmap(QString(<a class="code" href="config_8cpp.html#a59e02362a9a29a755712dc830a3eb513">IMAGE_PATH</a>)+<span class="stringliteral">"buttonIcons/create.png"</span>) ); <a name="l00090"></a>00090 <a class="code" href="classSubalbumsWidget.html#a118ae235308c46f595549f968038a8c3" title="Create collection button.">createButton</a>->setTextPosition(QToolButton::Right); <a name="l00091"></a>00091 <a class="code" href="classSubalbumsWidget.html#a118ae235308c46f595549f968038a8c3" title="Create collection button.">createButton</a>->setFont( buttonFont ); <a name="l00092"></a>00092 <a class="code" href="classSubalbumsWidget.html#a118ae235308c46f595549f968038a8c3" title="Create collection button.">createButton</a>->setUsesTextLabel( <span class="keyword">true</span> ); <a name="l00093"></a>00093 <a class="code" href="classSubalbumsWidget.html#a118ae235308c46f595549f968038a8c3" title="Create collection button.">createButton</a>->setEnabled(<span class="keyword">true</span>); <a name="l00094"></a>00094 <a class="code" href="classSubalbumsWidget.html#a118ae235308c46f595549f968038a8c3" title="Create collection button.">createButton</a>->setSizePolicy( QSizePolicy::Fixed, QSizePolicy::Fixed ); <a name="l00095"></a>00095 QToolTip::add( <a class="code" href="classSubalbumsWidget.html#a118ae235308c46f595549f968038a8c3" title="Create collection button.">createButton</a>, tr(<span class="stringliteral">"Create a collection and append to subalbum list"</span>) ); <a name="l00096"></a>00096 connect( <a class="code" href="classSubalbumsWidget.html#a118ae235308c46f595549f968038a8c3" title="Create collection button.">createButton</a>, SIGNAL(clicked()), SLOT(<a class="code" href="classSubalbumsWidget.html#a597578f4f71f8fa1f1f82eaf7b66c807" title="create a new collection">createAction</a>()) ); <a name="l00097"></a>00097 <a name="l00098"></a>00098 <a class="code" href="classSubalbumsWidget.html#aada264fba7e5295fea1047fa199a2dde" title="Delete collection button.">deleteButton</a> = <span class="keyword">new</span> QToolButton( <span class="keyword">this</span> ); <a name="l00099"></a>00099 <a class="code" href="classSubalbumsWidget.html#aada264fba7e5295fea1047fa199a2dde" title="Delete collection button.">deleteButton</a>->setTextLabel(tr(<span class="stringliteral">"Delete"</span>)); <a name="l00100"></a>00100 <a class="code" href="classSubalbumsWidget.html#aada264fba7e5295fea1047fa199a2dde" title="Delete collection button.">deleteButton</a>->setIconSet( QPixmap(QString(<a class="code" href="config_8cpp.html#a59e02362a9a29a755712dc830a3eb513">IMAGE_PATH</a>)+<span class="stringliteral">"buttonIcons/delete.png"</span>) ); <a name="l00101"></a>00101 <a class="code" href="classSubalbumsWidget.html#aada264fba7e5295fea1047fa199a2dde" title="Delete collection button.">deleteButton</a>->setTextPosition(QToolButton::Right); <a name="l00102"></a>00102 <a class="code" href="classSubalbumsWidget.html#aada264fba7e5295fea1047fa199a2dde" title="Delete collection button.">deleteButton</a>->setFont( buttonFont ); <a name="l00103"></a>00103 <a class="code" href="classSubalbumsWidget.html#aada264fba7e5295fea1047fa199a2dde" title="Delete collection button.">deleteButton</a>->setUsesTextLabel( <span class="keyword">true</span> ); <a name="l00104"></a>00104 <a class="code" href="classSubalbumsWidget.html#aada264fba7e5295fea1047fa199a2dde" title="Delete collection button.">deleteButton</a>->setEnabled(<span class="keyword">false</span>); <a name="l00105"></a>00105 <a class="code" href="classSubalbumsWidget.html#aada264fba7e5295fea1047fa199a2dde" title="Delete collection button.">deleteButton</a>->setSizePolicy( QSizePolicy::Fixed, QSizePolicy::Fixed ); <a name="l00106"></a>00106 QToolTip::add( <a class="code" href="classSubalbumsWidget.html#aada264fba7e5295fea1047fa199a2dde" title="Delete collection button.">deleteButton</a>, tr(<span class="stringliteral">"Delete selected collection and all its contents"</span>) ); <a name="l00107"></a>00107 connect( <a class="code" href="classSubalbumsWidget.html#aada264fba7e5295fea1047fa199a2dde" title="Delete collection button.">deleteButton</a>, SIGNAL(clicked()), SLOT(<a class="code" href="classSubalbumsWidget.html#a4542fe141b9343750f13c4f4efdc62e8" title="deletes the currently selected collection">deleteAction</a>()) ); <a name="l00108"></a>00108 <span class="comment">//--------------------------------------</span> <a name="l00109"></a>00109 <span class="comment">//place label, listbox, and buttons in grid</span> <a name="l00110"></a>00110 QGridLayout* grid = <span class="keyword">new</span> QGridLayout( <span class="keyword">this</span>, 3, 2, 0 ); <a name="l00111"></a>00111 grid->addMultiCellWidget( collectionsHeader, 0, 0, 0, 1, Qt::AlignHCenter ); <a name="l00112"></a>00112 grid->addMultiCellWidget( <a class="code" href="classSubalbumsWidget.html#a25d381eb6d953d97b91e2ba01ff755ae" title="list of subalbums">collections</a>, 1, 1, 0, 1 ); <a name="l00113"></a>00113 grid->addWidget( <a class="code" href="classSubalbumsWidget.html#a118ae235308c46f595549f968038a8c3" title="Create collection button.">createButton</a>, 2, 0, Qt::AlignHCenter); <a name="l00114"></a>00114 grid->addWidget( <a class="code" href="classSubalbumsWidget.html#aada264fba7e5295fea1047fa199a2dde" title="Delete collection button.">deleteButton</a>, 2, 1, Qt::AlignHCenter); <a name="l00115"></a>00115 <a name="l00116"></a>00116 <span class="comment">//allow collections listing to grow</span> <a name="l00117"></a>00117 grid->setRowStretch( 1, 1 ); <a name="l00118"></a>00118 <a name="l00119"></a>00119 <span class="comment">//set the background of the widget to be white</span> <a name="l00120"></a>00120 setPaletteBackgroundColor( QColor(193, 210, 238) ); <a name="l00121"></a>00121 } <a name="l00122"></a>00122 <span class="comment">//==============================================</span> <a name="l00123"></a><a class="code" href="classSubalbumsWidget.html#a597578f4f71f8fa1f1f82eaf7b66c807">00123</a> <span class="keywordtype">void</span> <a class="code" href="classSubalbumsWidget.html#a597578f4f71f8fa1f1f82eaf7b66c807" title="create a new collection">SubalbumsWidget::createAction</a>() <a name="l00124"></a>00124 { <a name="l00125"></a>00125 <span class="comment">//create new collection object</span> <a name="l00126"></a>00126 <a class="code" href="classAlbum.html" title="An album contains Subalbums.">Album</a>* albm = <a class="code" href="classSubalbumsWidget.html#a28e14bd6da98ab63cd8d10e1c92e540b" title="Pointer to layoutwidget this widget is in.">layout</a>-><a class="code" href="classLayoutWidget.html#adef61c20f8268bc631dab83afc252be2" title="Returns a pointer to the window.">getWindow</a>()-><a class="code" href="classWindow.html#a04266b8ffe0013bee23b57701e1e6b61" title="returns a pointer to the title widget">getTitle</a>()-><a class="code" href="classTitleWidget.html#a13e859247711ac55672705c663d793a4" title="Returns a pointer to the album object.">getAlbum</a>(); <a name="l00127"></a>00127 <a class="code" href="classSubalbum.html" title="A subalbum contains photos.">Subalbum</a>* newCollection = <span class="keyword">new</span> <a class="code" href="classSubalbum.html" title="A subalbum contains photos.">Subalbum</a>( albm, albm-><a class="code" href="classAlbum.html#a612d94f8a24a71110343722e8f9d45f9" title="Returns number of subalbums.">getNumSubalbums</a>()+1 ); <a name="l00128"></a>00128 albm-><a class="code" href="classAlbum.html#a199f0331da194cdeb6c11d73ada0b5cf" title="Appends subalbum to end of linked list.">appendSubalbum</a>( newCollection ); <a name="l00129"></a>00129 <a name="l00130"></a>00130 <span class="comment">//create collection icon and auto select it</span> <a name="l00131"></a>00131 <a class="code" href="classSubalbumPreviewWidget.html" title="Displays subalbum icon and name.">SubalbumPreviewWidget</a>* newCollectionIcon = <span class="keyword">new</span> <a class="code" href="classSubalbumPreviewWidget.html" title="Displays subalbum icon and name.">SubalbumPreviewWidget</a>( <a class="code" href="classSubalbumsWidget.html#a25d381eb6d953d97b91e2ba01ff755ae" title="list of subalbums">collections</a>, newCollection ); <a name="l00132"></a>00132 newCollectionIcon->setDropEnabled(<span class="keyword">true</span>); <a name="l00133"></a>00133 <a class="code" href="classSubalbumsWidget.html#a54f9c4e19d66dffedd01aea966af2fb9" title="select specified collection">selectCollection</a>( newCollectionIcon ); <a name="l00134"></a>00134 <a name="l00135"></a>00135 <span class="comment">//update enabled state of delete collection button</span> <a name="l00136"></a>00136 <a class="code" href="classSubalbumsWidget.html#aada264fba7e5295fea1047fa199a2dde" title="Delete collection button.">deleteButton</a>->setEnabled( <a class="code" href="classSubalbumsWidget.html#a25d381eb6d953d97b91e2ba01ff755ae" title="list of subalbums">collections</a>->count() > 1 ); <a name="l00137"></a>00137 } <a name="l00138"></a>00138 <span class="comment">//==============================================</span> <a name="l00139"></a><a class="code" href="classSubalbumsWidget.html#a4542fe141b9343750f13c4f4efdc62e8">00139</a> <span class="keywordtype">void</span> <a class="code" href="classSubalbumsWidget.html#a4542fe141b9343750f13c4f4efdc62e8" title="deletes the currently selected collection">SubalbumsWidget::deleteAction</a>() <a name="l00140"></a>00140 { <a name="l00141"></a>00141 <span class="comment">//if an item is selected it remove it</span> <a name="l00142"></a>00142 <span class="keywordflow">if</span>(<a class="code" href="classSubalbumsWidget.html#a25d381eb6d953d97b91e2ba01ff755ae" title="list of subalbums">collections</a>->currentItem() != NULL) <a name="l00143"></a>00143 { <a name="l00144"></a>00144 <span class="comment">//if user has chosen to not receive destructive action warnings, or agrees to the action, then</span> <a name="l00145"></a>00145 <span class="comment">//delete subalbum and refresh view</span> <a name="l00146"></a>00146 <span class="keywordtype">bool</span> proceed = !((<a class="code" href="classWindow.html" title="Top level widget, encapsulates the title widget, the layout widget, and the toolbar...">Window</a>*)qApp->mainWidget())->getConfig()->getBool( <span class="stringliteral">"alerts"</span>, <span class="stringliteral">"showDestructiveAlerts"</span> ); <a name="l00147"></a>00147 <span class="keywordflow">if</span>(!proceed) <a name="l00148"></a>00148 { <a name="l00149"></a>00149 <a class="code" href="classQuestionDialog.html" title="A configurable question dialog that returns true/false.">QuestionDialog</a> sure( tr(<span class="stringliteral">"Delete collection?"</span>), <a name="l00150"></a>00150 tr(<span class="stringliteral">"Once deleted a collection and it's contents cannot be brought back unless a saved copy of the album exists."</span>), <a name="l00151"></a>00151 <span class="stringliteral">"alertIcons/warning.png"</span>, <a name="l00152"></a>00152 <span class="keyword">this</span> ); <a name="l00153"></a>00153 proceed = sure.exec(); <a name="l00154"></a>00154 } <a name="l00155"></a>00155 <span class="keywordflow">if</span>(proceed) <a name="l00156"></a>00156 { <a name="l00157"></a>00157 <span class="comment">//get handle on currently selected collection</span> <a name="l00158"></a>00158 <a class="code" href="classQIconViewItem.html">QIconViewItem</a>* oldSelection = <a class="code" href="classSubalbumsWidget.html#a25d381eb6d953d97b91e2ba01ff755ae" title="list of subalbums">collections</a>->currentItem(); <a name="l00159"></a>00159 <a name="l00160"></a>00160 <span class="comment">//get handle on the next automatically selected collection</span> <a name="l00161"></a>00161 <span class="comment">//auto select the new collection. If there is no next </span> <a name="l00162"></a>00162 <span class="comment">//collection, select the previous collection (again if present)</span> <a name="l00163"></a>00163 <a class="code" href="classQIconViewItem.html">QIconViewItem</a>* newSelection = oldSelection->nextItem(); <a name="l00164"></a>00164 <span class="keywordflow">if</span>(newSelection == NULL) newSelection = oldSelection->prevItem(); <a name="l00165"></a>00165 <a name="l00166"></a>00166 <span class="comment">//auto select a remaining collection if one exists</span> <a name="l00167"></a>00167 <span class="comment">//we select before removing and deleting the old collection so that</span> <a name="l00168"></a>00168 <span class="comment">//the collection information above smoothly transitions</span> <a name="l00169"></a>00169 <a class="code" href="classSubalbumsWidget.html#a54f9c4e19d66dffedd01aea966af2fb9" title="select specified collection">selectCollection</a>( newSelection ); <a name="l00170"></a>00170 <a name="l00171"></a>00171 <span class="comment">//remove the collection from the album</span> <a name="l00172"></a>00172 <a class="code" href="classSubalbum.html" title="A subalbum contains photos.">Subalbum</a>* s = ((<a class="code" href="classSubalbumPreviewWidget.html" title="Displays subalbum icon and name.">SubalbumPreviewWidget</a>*) oldSelection)->getSubalbum(); <a name="l00173"></a>00173 <a class="code" href="classSubalbumsWidget.html#a28e14bd6da98ab63cd8d10e1c92e540b" title="Pointer to layoutwidget this widget is in.">layout</a>-><a class="code" href="classLayoutWidget.html#adef61c20f8268bc631dab83afc252be2" title="Returns a pointer to the window.">getWindow</a>()-><a class="code" href="classWindow.html#a04266b8ffe0013bee23b57701e1e6b61" title="returns a pointer to the title widget">getTitle</a>()-><a class="code" href="classTitleWidget.html#a13e859247711ac55672705c663d793a4" title="Returns a pointer to the album object.">getAlbum</a>()-><a class="code" href="classAlbum.html#a65bf21f4172a533a6c20ce4d370d38d6" title="Removes a subalbum.">removeSubalbum</a>( s ); <a name="l00174"></a>00174 <a name="l00175"></a>00175 <span class="comment">//free the collection icon</span> <a name="l00176"></a>00176 <span class="keyword">delete</span> oldSelection; <a name="l00177"></a>00177 oldSelection = NULL; <a name="l00178"></a>00178 <a name="l00179"></a>00179 <span class="comment">//rearrange the items in the grid, making </span> <a name="l00180"></a>00180 <span class="comment">//sure new selection is visible</span> <a name="l00181"></a>00181 <a class="code" href="classSubalbumsWidget.html#a25d381eb6d953d97b91e2ba01ff755ae" title="list of subalbums">collections</a>->arrangeItemsInGrid(); <a name="l00182"></a>00182 <span class="keywordflow">if</span>(newSelection != NULL) <a class="code" href="classSubalbumsWidget.html#a25d381eb6d953d97b91e2ba01ff755ae" title="list of subalbums">collections</a>->ensureItemVisible( newSelection ); <a name="l00183"></a>00183 <a name="l00184"></a>00184 <span class="comment">//update enabled state of delete collection button</span> <a name="l00185"></a>00185 <a class="code" href="classSubalbumsWidget.html#aada264fba7e5295fea1047fa199a2dde" title="Delete collection button.">deleteButton</a>->setEnabled( <a class="code" href="classSubalbumsWidget.html#a25d381eb6d953d97b91e2ba01ff755ae" title="list of subalbums">collections</a>->count() > 1 ); <a name="l00186"></a>00186 <a name="l00187"></a>00187 <span class="comment">//notifty title widget that the album's photo count has possible changed</span> <a name="l00188"></a>00188 <a class="code" href="classSubalbumsWidget.html#a28e14bd6da98ab63cd8d10e1c92e540b" title="Pointer to layoutwidget this widget is in.">layout</a>-><a class="code" href="classLayoutWidget.html#adef61c20f8268bc631dab83afc252be2" title="Returns a pointer to the window.">getWindow</a>()-><a class="code" href="classWindow.html#a04266b8ffe0013bee23b57701e1e6b61" title="returns a pointer to the title widget">getTitle</a>()-><a class="code" href="classTitleWidget.html#a857e73e3c89bcb5091bba375255649a9" title="update begin presentation menu entry - disabled when no photos in album">updateMenus</a>(); <a name="l00189"></a>00189 } <a name="l00190"></a>00190 } <a name="l00191"></a>00191 } <a name="l00192"></a>00192 <span class="comment">//==============================================</span> <a name="l00193"></a><a class="code" href="classSubalbumsWidget.html#ad903413dbf56a0bc4c40bc0110be934e">00193</a> <span class="keywordtype">void</span> <a class="code" href="classSubalbumsWidget.html#ad903413dbf56a0bc4c40bc0110be934e">SubalbumsWidget::refreshSelectedCollectionName</a>() <a name="l00194"></a>00194 { <a name="l00195"></a>00195 <span class="keywordflow">if</span>( <a class="code" href="classSubalbumsWidget.html#a2d5d85ae2e9e78723547dfa1f7d6fcbb">currentSelection</a> != NULL) <a name="l00196"></a>00196 <a class="code" href="classSubalbumsWidget.html#a2d5d85ae2e9e78723547dfa1f7d6fcbb">currentSelection</a>->setText( ((<a class="code" href="classSubalbumPreviewWidget.html" title="Displays subalbum icon and name.">SubalbumPreviewWidget</a>*)<a class="code" href="classSubalbumsWidget.html#a2d5d85ae2e9e78723547dfa1f7d6fcbb">currentSelection</a>)->getSubalbum()->getName() ); <a name="l00197"></a>00197 } <a name="l00198"></a>00198 <span class="comment">//==============================================</span> <a name="l00199"></a><a class="code" href="classSubalbumsWidget.html#a12febd6c41636d26a80b7b6fdea4d081">00199</a> <span class="keywordtype">void</span> <a class="code" href="classSubalbumsWidget.html#a12febd6c41636d26a80b7b6fdea4d081">SubalbumsWidget::updatedSelectedCollectionImage</a>( QPixmap* val) <a name="l00200"></a>00200 { <a name="l00201"></a>00201 <span class="keywordflow">if</span>( <a class="code" href="classSubalbumsWidget.html#a2d5d85ae2e9e78723547dfa1f7d6fcbb">currentSelection</a> != NULL) <a name="l00202"></a>00202 <a class="code" href="classSubalbumsWidget.html#a2d5d85ae2e9e78723547dfa1f7d6fcbb">currentSelection</a>->setPixmap( *val ); <a name="l00203"></a>00203 } <a name="l00204"></a>00204 <span class="comment">//==============================================</span> <a name="l00205"></a><a class="code" href="classSubalbumsWidget.html#ae334af5171e9f76e5d14c4dde6cb996c">00205</a> <span class="keywordtype">void</span> <a class="code" href="classSubalbumsWidget.html#ae334af5171e9f76e5d14c4dde6cb996c" title="relayout collectionicons after a create/delete refresh">SubalbumsWidget::reorder</a>() <a name="l00206"></a>00206 { <a name="l00207"></a>00207 <span class="comment">//so item has been moved, reorder linked list of items as necessary</span> <a name="l00208"></a>00208 <a class="code" href="classSubalbumsWidget.html#a25d381eb6d953d97b91e2ba01ff755ae" title="list of subalbums">collections</a>->sort( <span class="keyword">true</span> ); <a name="l00209"></a>00209 <a class="code" href="classSubalbumsWidget.html#a25d381eb6d953d97b91e2ba01ff755ae" title="list of subalbums">collections</a>->arrangeItemsInGrid(); <a name="l00210"></a>00210 <a name="l00211"></a>00211 <span class="comment">//sync lists</span> <a name="l00212"></a>00212 <a class="code" href="classAlbum.html" title="An album contains Subalbums.">Album</a>* albm = <a class="code" href="classSubalbumsWidget.html#a28e14bd6da98ab63cd8d10e1c92e540b" title="Pointer to layoutwidget this widget is in.">layout</a>-><a class="code" href="classLayoutWidget.html#adef61c20f8268bc631dab83afc252be2" title="Returns a pointer to the window.">getWindow</a>()-><a class="code" href="classWindow.html#a04266b8ffe0013bee23b57701e1e6b61" title="returns a pointer to the title widget">getTitle</a>()-><a class="code" href="classTitleWidget.html#a13e859247711ac55672705c663d793a4" title="Returns a pointer to the album object.">getAlbum</a>(); <a name="l00213"></a>00213 albm-><a class="code" href="classAlbum.html#ab50528917284c5bfe4a69cf9641fbe06" title="Syncs subalbum ordering with front end gui ordering.">syncSubalbumList</a>((<a class="code" href="classSubalbumPreviewWidget.html" title="Displays subalbum icon and name.">SubalbumPreviewWidget</a>*)<a class="code" href="classSubalbumsWidget.html#a25d381eb6d953d97b91e2ba01ff755ae" title="list of subalbums">collections</a>->firstItem()); <a name="l00214"></a>00214 } <a name="l00215"></a>00215 <span class="comment">//==============================================</span> <a name="l00216"></a><a class="code" href="classSubalbumsWidget.html#a0e0b2584ef7fed4f7c8d5ecdb83d95e1">00216</a> <span class="keywordtype">void</span> <a class="code" href="classSubalbumsWidget.html#a0e0b2584ef7fed4f7c8d5ecdb83d95e1" title="Activates/Deactives create/delete buttons.">SubalbumsWidget::updateButtons</a>(<span class="keywordtype">bool</span> enable) <a name="l00217"></a>00217 { <a name="l00218"></a>00218 <span class="keywordflow">if</span>(enable) <a name="l00219"></a>00219 { <a name="l00220"></a>00220 <a class="code" href="classSubalbumsWidget.html#a118ae235308c46f595549f968038a8c3" title="Create collection button.">createButton</a>->setEnabled( <span class="keyword">true</span> ); <a name="l00221"></a>00221 <a class="code" href="classSubalbumsWidget.html#aada264fba7e5295fea1047fa199a2dde" title="Delete collection button.">deleteButton</a>->setEnabled( <a class="code" href="classSubalbumsWidget.html#addf4816f9cb117e8019708f735b5da96" title="Cached enabled/disabled state of buttons.">buttonsState</a> ); <a name="l00222"></a>00222 } <a name="l00223"></a>00223 <span class="keywordflow">else</span> <a name="l00224"></a>00224 { <a name="l00225"></a>00225 <a class="code" href="classSubalbumsWidget.html#addf4816f9cb117e8019708f735b5da96" title="Cached enabled/disabled state of buttons.">buttonsState</a> = <a class="code" href="classSubalbumsWidget.html#a118ae235308c46f595549f968038a8c3" title="Create collection button.">createButton</a>->isEnabled(); <a name="l00226"></a>00226 <a class="code" href="classSubalbumsWidget.html#a118ae235308c46f595549f968038a8c3" title="Create collection button.">createButton</a>->setEnabled( <span class="keyword">false</span> ); <a name="l00227"></a>00227 <a class="code" href="classSubalbumsWidget.html#aada264fba7e5295fea1047fa199a2dde" title="Delete collection button.">deleteButton</a>->setEnabled( <span class="keyword">false</span> ); <a name="l00228"></a>00228 } <a name="l00229"></a>00229 } <a name="l00230"></a>00230 <span class="comment">//==============================================</span> <a name="l00231"></a><a class="code" href="classSubalbumsWidget.html#ad192a43781f0d918c79b20122f6d9979">00231</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#ad192a43781f0d918c79b20122f6d9979" title="Returns parent.">SubalbumsWidget::getParent</a>() { <span class="keywordflow">return</span> <a class="code" href="classSubalbumsWidget.html#a28e14bd6da98ab63cd8d10e1c92e540b" title="Pointer to layoutwidget this widget is in.">layout</a>; } <a name="l00232"></a><a class="code" href="classSubalbumsWidget.html#aa3dd8c5b8baab3e18b64231a47671c1f">00232</a> <a class="code" href="classQIconViewItem.html">QIconViewItem</a>* <a class="code" href="classSubalbumsWidget.html#aa3dd8c5b8baab3e18b64231a47671c1f" title="Returns current selection.">SubalbumsWidget::getCurrentSelection</a>() { <span class="keywordflow">return</span> <a class="code" href="classSubalbumsWidget.html#a2d5d85ae2e9e78723547dfa1f7d6fcbb">currentSelection</a>; } <a name="l00233"></a>00233 <span class="comment">//==============================================</span> <a name="l00234"></a><a class="code" href="classSubalbumsWidget.html#a7de8f9e1b842ec9f7e450f6094fa9755">00234</a> <a class="code" href="classSubalbum.html" title="A subalbum contains photos.">Subalbum</a>* <a class="code" href="classSubalbumsWidget.html#a7de8f9e1b842ec9f7e450f6094fa9755" title="Returns the currently selected subalbum.">SubalbumsWidget::getSelectedSubalbum</a>() <a name="l00235"></a>00235 { <a name="l00236"></a>00236 <span class="keywordflow">return</span> ((<a class="code" href="classSubalbumPreviewWidget.html" title="Displays subalbum icon and name.">SubalbumPreviewWidget</a>*) <a class="code" href="classSubalbumsWidget.html#a2d5d85ae2e9e78723547dfa1f7d6fcbb">currentSelection</a> )->getSubalbum(); <a name="l00237"></a>00237 } <a name="l00238"></a>00238 <span class="comment">//==============================================</span> <a name="l00239"></a><a class="code" href="classSubalbumsWidget.html#af70e74f80dbeb87dc7df7c838e1a702e">00239</a> <span class="keywordtype">void</span> <a class="code" href="classSubalbumsWidget.html#af70e74f80dbeb87dc7df7c838e1a702e" title="Refreshes list of collections, selecting first by default.">SubalbumsWidget::refreshCollectionsList</a>() <a name="l00240"></a>00240 { <a name="l00241"></a>00241 <span class="comment">//delete all previous entries</span> <a name="l00242"></a>00242 <a class="code" href="classQIconViewItem.html">QIconViewItem</a>* current = <a class="code" href="classSubalbumsWidget.html#a25d381eb6d953d97b91e2ba01ff755ae" title="list of subalbums">collections</a>->firstItem(); <a name="l00243"></a>00243 <span class="keywordflow">while</span>(current != NULL) <a name="l00244"></a>00244 { <a name="l00245"></a>00245 <a class="code" href="classQIconViewItem.html">QIconViewItem</a>* next = current->nextItem(); <a name="l00246"></a>00246 <span class="keyword">delete</span> current; <a name="l00247"></a>00247 current = next; <a name="l00248"></a>00248 } <a name="l00249"></a>00249 <a name="l00250"></a>00250 <span class="comment">//for some reason scrollbar does not disappear automatically.</span> <a name="l00251"></a>00251 <span class="comment">//Calling clear fixes this.</span> <a name="l00252"></a>00252 <a class="code" href="classSubalbumsWidget.html#a25d381eb6d953d97b91e2ba01ff755ae" title="list of subalbums">collections</a>->clear(); <a name="l00253"></a>00253 <a name="l00254"></a>00254 <span class="comment">//reset cached selection handle</span> <a name="l00255"></a>00255 <a class="code" href="classSubalbumsWidget.html#a2d5d85ae2e9e78723547dfa1f7d6fcbb">currentSelection</a> = NULL; <a name="l00256"></a>00256 <a name="l00257"></a>00257 <span class="comment">//insert all collections</span> <a name="l00258"></a>00258 <a class="code" href="classSubalbum.html" title="A subalbum contains photos.">Subalbum</a>* curCollection = <a class="code" href="classSubalbumsWidget.html#a28e14bd6da98ab63cd8d10e1c92e540b" title="Pointer to layoutwidget this widget is in.">layout</a>-><a class="code" href="classLayoutWidget.html#adef61c20f8268bc631dab83afc252be2" title="Returns a pointer to the window.">getWindow</a>()-><a class="code" href="classWindow.html#a04266b8ffe0013bee23b57701e1e6b61" title="returns a pointer to the title widget">getTitle</a>()-><a class="code" href="classTitleWidget.html#a13e859247711ac55672705c663d793a4" title="Returns a pointer to the album object.">getAlbum</a>()-><a class="code" href="classAlbum.html#a0870f79ed21521222c97a704bad0d50f" title="Returns a pointer to the first Subalbum.">getFirstSubalbum</a>(); <a name="l00259"></a>00259 <span class="keywordflow">while</span>( curCollection != NULL) <a name="l00260"></a>00260 { <a name="l00261"></a>00261 <a class="code" href="classSubalbumPreviewWidget.html" title="Displays subalbum icon and name.">SubalbumPreviewWidget</a>* item = <span class="keyword">new</span> <a class="code" href="classSubalbumPreviewWidget.html" title="Displays subalbum icon and name.">SubalbumPreviewWidget</a>( <a class="code" href="classSubalbumsWidget.html#a25d381eb6d953d97b91e2ba01ff755ae" title="list of subalbums">collections</a>, curCollection ); <a name="l00262"></a>00262 item->setDropEnabled(<span class="keyword">true</span>); <a name="l00263"></a>00263 curCollection = curCollection-><a class="code" href="classSubalbum.html#a510a01088f04712e93ae202cc758065f" title="Returns pointer to next subalbum.">getNext</a>(); <a name="l00264"></a>00264 } <a name="l00265"></a>00265 <a name="l00266"></a>00266 <span class="comment">//refresh iconview</span> <a name="l00267"></a>00267 <a class="code" href="classSubalbumsWidget.html#a25d381eb6d953d97b91e2ba01ff755ae" title="list of subalbums">collections</a>->arrangeItemsInGrid(); <a name="l00268"></a>00268 <a name="l00269"></a>00269 <span class="comment">//auto select first item</span> <a name="l00270"></a>00270 <a class="code" href="classSubalbumsWidget.html#a11ce00e893087b5a7f42013753ea0119" title="Select specified subalbum.">selectFirstCollection</a>(); <a name="l00271"></a>00271 } <a name="l00272"></a>00272 <span class="comment">//==============================================</span> <a name="l00273"></a><a class="code" href="classSubalbumsWidget.html#a4f7d3a7fef3e03de451366479ee0cf98">00273</a> <span class="keywordtype">void</span> <a class="code" href="classSubalbumsWidget.html#a4f7d3a7fef3e03de451366479ee0cf98" title="respond to user clicking collection icons">SubalbumsWidget::handleSelectionAttempt</a>( <a class="code" href="classQIconViewItem.html">QIconViewItem</a>* item ) <a name="l00274"></a>00274 { <a name="l00275"></a>00275 <span class="comment">//select collections only when program is not busy.</span> <a name="l00276"></a>00276 <span class="keywordflow">if</span>( !<a class="code" href="classSubalbumsWidget.html#a28e14bd6da98ab63cd8d10e1c92e540b" title="Pointer to layoutwidget this widget is in.">layout</a>-><a class="code" href="classLayoutWidget.html#adef61c20f8268bc631dab83afc252be2" title="Returns a pointer to the window.">getWindow</a>()-><a class="code" href="classWindow.html#a04266b8ffe0013bee23b57701e1e6b61" title="returns a pointer to the title widget">getTitle</a>()-><a class="code" href="classTitleWidget.html#aa838a5981f04cfdf6de35c119b6141a8" title="is program busy?">getBusy</a>() ) <a name="l00277"></a>00277 <a class="code" href="classSubalbumsWidget.html#a54f9c4e19d66dffedd01aea966af2fb9" title="select specified collection">selectCollection</a>( item ); <a name="l00278"></a>00278 } <a name="l00279"></a>00279 <span class="comment">//==============================================</span> <a name="l00280"></a><a class="code" href="classSubalbumsWidget.html#a11ce00e893087b5a7f42013753ea0119">00280</a> <span class="keywordtype">void</span> <a class="code" href="classSubalbumsWidget.html#a11ce00e893087b5a7f42013753ea0119" title="Select specified subalbum.">SubalbumsWidget::selectFirstCollection</a>() <a name="l00281"></a>00281 { <a name="l00282"></a>00282 <a class="code" href="classSubalbumsWidget.html#a54f9c4e19d66dffedd01aea966af2fb9" title="select specified collection">selectCollection</a>( <a class="code" href="classSubalbumsWidget.html#a25d381eb6d953d97b91e2ba01ff755ae" title="list of subalbums">collections</a>->firstItem() ); <a name="l00283"></a>00283 } <a name="l00284"></a>00284 <span class="comment">//==============================================</span> <a name="l00285"></a><a class="code" href="classSubalbumsWidget.html#a54f9c4e19d66dffedd01aea966af2fb9">00285</a> <span class="keywordtype">void</span> <a class="code" href="classSubalbumsWidget.html#a54f9c4e19d66dffedd01aea966af2fb9" title="select specified collection">SubalbumsWidget::selectCollection</a>( <a class="code" href="classQIconViewItem.html">QIconViewItem</a>* item ) <a name="l00286"></a>00286 { <a name="l00287"></a>00287 <span class="comment">//no necessary action when selecting the currently selection collection</span> <a name="l00288"></a>00288 <span class="keywordflow">if</span>(<a class="code" href="classSubalbumsWidget.html#a2d5d85ae2e9e78723547dfa1f7d6fcbb">currentSelection</a> == item) <span class="keywordflow">return</span>; <a name="l00289"></a>00289 <a name="l00290"></a>00290 <span class="comment">//select item</span> <a name="l00291"></a>00291 <span class="keywordflow">if</span>( item != NULL ) <a class="code" href="classSubalbumsWidget.html#a25d381eb6d953d97b91e2ba01ff755ae" title="list of subalbums">collections</a>->setSelected( item, <span class="keyword">true</span>); <a name="l00292"></a>00292 <a name="l00293"></a>00293 <span class="comment">//cachce selection</span> <a name="l00294"></a>00294 <a class="code" href="classSubalbumsWidget.html#a2d5d85ae2e9e78723547dfa1f7d6fcbb">currentSelection</a> = item; <a name="l00295"></a>00295 <a name="l00296"></a>00296 <span class="comment">//emit signal that a different collection has been selected</span> <a name="l00297"></a>00297 <span class="keywordflow">if</span>(<a class="code" href="classSubalbumsWidget.html#a2d5d85ae2e9e78723547dfa1f7d6fcbb">currentSelection</a> == NULL ) <a name="l00298"></a>00298 emit <a class="code" href="classSubalbumsWidget.html#ace3b886e1c6ed3893c88f8e92c2799c7">collectionSelected</a>( NULL ); <a name="l00299"></a>00299 <span class="keywordflow">else</span> <a name="l00300"></a>00300 emit <a class="code" href="classSubalbumsWidget.html#ace3b886e1c6ed3893c88f8e92c2799c7">collectionSelected</a>( ((<a class="code" href="classSubalbumPreviewWidget.html" title="Displays subalbum icon and name.">SubalbumPreviewWidget</a>*)<a class="code" href="classSubalbumsWidget.html#a2d5d85ae2e9e78723547dfa1f7d6fcbb">currentSelection</a>)->getSubalbum() ); <a name="l00301"></a>00301 } <a name="l00302"></a>00302 <span class="comment">//==============================================</span> <a name="l00303"></a>00303 <span class="comment">/*</span> <a name="l00304"></a>00304 <span class="comment"> void SubalbumsWidget::setSelectedSubalbum( Subalbum* selection )</span> <a name="l00305"></a>00305 <span class="comment">{</span> <a name="l00306"></a>00306 <span class="comment"> QIconViewItem* current = collections->firstItem();</span> <a name="l00307"></a>00307 <span class="comment"> while(current != NULL)</span> <a name="l00308"></a>00308 <span class="comment"> {</span> <a name="l00309"></a>00309 <span class="comment"> //found indicated collection</span> <a name="l00310"></a>00310 <span class="comment"> if( ((SubalbumPreviewWidget*)current)->getSubalbum() == selection )</span> <a name="l00311"></a>00311 <span class="comment"> {</span> <a name="l00312"></a>00312 <span class="comment"> current->setSelected( true );</span> <a name="l00313"></a>00313 <span class="comment"> break;</span> <a name="l00314"></a>00314 <span class="comment"> }</span> <a name="l00315"></a>00315 <span class="comment"></span> <a name="l00316"></a>00316 <span class="comment"> //move to next item</span> <a name="l00317"></a>00317 <span class="comment"> current = current->nextItem();</span> <a name="l00318"></a>00318 <span class="comment"> }</span> <a name="l00319"></a>00319 <span class="comment">}*/</span> <a name="l00320"></a>00320 <span class="comment">//==============================================</span> <a name="l00321"></a>00321 </pre></div></div> <hr size="1"/><address style="text-align: right;"><small>Generated by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2 </small></address> </body> </html>