<!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: window.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 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>window.h</h1><a href="window_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_WINDOW_H</span> <a name="l00012"></a>00012 <span class="preprocessor"></span><span class="preprocessor">#define GUI_WINDOW_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>QGridLayout; <a name="l00017"></a>00017 <span class="keyword">class </span>QPixmap; <a name="l00018"></a>00018 <span class="keyword">class </span><a class="code" href="classTitleWidget.html" title="Widget which displays album name, description, representative image, and album shaper...">TitleWidget</a>; <a name="l00019"></a>00019 <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="l00020"></a>00020 <span class="keyword">class </span><a class="code" href="classStatusWidget.html">StatusWidget</a>; <a name="l00021"></a>00021 <span class="comment">//class SlideshowWidget;</span> <a name="l00022"></a>00022 <span class="keyword">class </span><a class="code" href="classConfiguration.html" title="Configuration object manages all user-specific application settings.">Configuration</a>; <a name="l00023"></a>00023 <span class="comment">//--------------------</span> <a name="l00024"></a>00024 <a name="l00025"></a>00025 <span class="preprocessor">#include <qwidget.h></span> <a name="l00026"></a>00026 <a name="l00027"></a>00027 <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="classWindow.html">00032</a> <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> : <span class="keyword">public</span> <a class="code" href="classQWidget.html">QWidget</a> <a name="l00033"></a>00033 { <a name="l00034"></a>00034 Q_OBJECT <a name="l00035"></a>00035 <span class="comment">//----------------------</span> <a name="l00036"></a>00036 <span class="keyword">public</span>: <a name="l00038"></a>00038 <a class="code" href="classWindow.html#a40ae5e98a938fa8bc9a372bcb131f07" title="Creates title area, layout, and tool bar and places them in grid.">Window</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="l00039"></a>00039 <a name="l00041"></a>00041 <a class="code" href="classWindow.html#245d821e6016fa1f6970ccbbedd635f6" title="Save user settings on destruct.">~Window</a>(); <a name="l00042"></a>00042 <a name="l00044"></a>00044 <a class="code" href="classTitleWidget.html" title="Widget which displays album name, description, representative image, and album shaper...">TitleWidget</a>* <a class="code" href="classWindow.html#04266b8ffe0013bee23b57701e1e6b61" title="returns a pointer to the title widget">getTitle</a>(); <a name="l00045"></a>00045 <a name="l00047"></a>00047 <a class="code" href="classLayoutWidget.html" title="Displays list of subalbums and a particular subalbum layout.">LayoutWidget</a>* <a class="code" href="classWindow.html#28288fa350835ef1ddfc8709c5299d1a" title="returns a pointer to the layout object">getLayout</a>(); <a name="l00048"></a>00048 <a name="l00050"></a>00050 <a class="code" href="classStatusWidget.html">StatusWidget</a>* <a class="code" href="classWindow.html#8bc149788c6ed44ae27f22e72392cdf6" title="returns a pointer to the status widget">getStatus</a>(); <a name="l00051"></a>00051 <a name="l00053"></a>00053 <span class="keywordtype">void</span> <a class="code" href="classWindow.html#d1a027c3630d4e1a6395bcf1f761e5d8" title="refreshes the layout">refresh</a>(); <a name="l00054"></a>00054 <a name="l00056"></a>00056 <a class="code" href="classConfiguration.html" title="Configuration object manages all user-specific application settings.">Configuration</a>* <a class="code" href="classWindow.html#ec811812e8330b6a01ee9b424b98935b" title="get setting object">getConfig</a>(); <a name="l00057"></a>00057 <a name="l00058"></a>00058 <span class="comment">//-3-3-3-3-3-3-3-3-3-3-3-3-3-3-3-3-3</span> <a name="l00059"></a>00059 <span class="comment">//the following pixmaps REALLY need to be placed in an icon container class. other label icons could be placed</span> <a name="l00060"></a>00060 <span class="comment">//in such a class to speed up drawing and lower memory usage potentally</span> <a name="l00061"></a>00061 <a name="l00062"></a>00062 <span class="comment">//shadow pixmaps</span> <a name="l00063"></a><a class="code" href="classWindow.html#20283cd11a7dd0d1ec4bd3d501d99f36">00063</a> QPixmap *<a class="code" href="classWindow.html#d68f87a6a1e7fdd961b9f61a6dc5b77e">shadowBL</a>, *<a class="code" href="classWindow.html#3a7de75fd4ecd6de02bb84768a477a30">shadowB</a>, *<a class="code" href="classWindow.html#bd26badbcdfdcefe9068074ce49f2e07">shadowBR</a>, *<a class="code" href="classWindow.html#9aead52d78f783c05ccf575c957e9cc4">shadowR</a>, *<a class="code" href="classWindow.html#20283cd11a7dd0d1ec4bd3d501d99f36">shadowTR</a>; <a name="l00064"></a>00064 <a name="l00065"></a>00065 <span class="comment">//info pixmap</span> <a name="l00066"></a><a class="code" href="classWindow.html#4aa8dad7bc3967dc8802a5a93970dca8">00066</a> QPixmap *<a class="code" href="classWindow.html#4aa8dad7bc3967dc8802a5a93970dca8">photoInfo</a>; <a name="l00067"></a>00067 <span class="comment">//-3-3-3-3-3-3-3-3-3-3-3-3-3-3-3-3-3</span> <a name="l00068"></a>00068 <span class="comment">//----------------------</span> <a name="l00069"></a>00069 <span class="comment">/*</span> <a name="l00070"></a>00070 <span class="comment">public slots:</span> <a name="l00072"></a>00072 <span class="comment"> void startSlideshowAtBeginning();</span> <a name="l00073"></a>00073 <span class="comment"> </span> <a name="l00075"></a>00075 <span class="comment"> void startSlideshowWithSelectedPhoto();</span> <a name="l00076"></a>00076 <span class="comment">//----------------------</span> <a name="l00077"></a>00077 <span class="comment">private slots: </span> <a name="l00079"></a>00079 <span class="comment"> void endSlideshow();</span> <a name="l00080"></a>00080 <span class="comment"> */</span> <a name="l00081"></a>00081 <span class="comment">//----------------------</span> <a name="l00082"></a>00082 <span class="keyword">protected</span>: <a name="l00083"></a>00083 <span class="comment">//reimplementation of event handler</span> <a name="l00084"></a>00084 <span class="keywordtype">bool</span> <a class="code" href="classWindow.html#c9bfe27da2eeb607e01d609176ac6352">event</a>( QEvent * ); <a name="l00085"></a>00085 <a name="l00086"></a>00086 <span class="comment">//window hidden</span> <a name="l00087"></a>00087 <span class="keywordtype">void</span> <a class="code" href="classWindow.html#b4ef602b5a726a6a05c002b987ca2bc2">hideEvent</a>( QHideEvent *); <a name="l00088"></a>00088 <a name="l00089"></a>00089 <span class="comment">//window restored</span> <a name="l00090"></a>00090 <span class="keywordtype">void</span> <a class="code" href="classWindow.html#559488ac63221b8ef70a2c132a48f0f9">showEvent</a>( QShowEvent *); <a name="l00091"></a>00091 <a name="l00092"></a>00092 <span class="comment">//window closed, quit app and save settings</span> <a name="l00093"></a>00093 <span class="keywordtype">void</span> <a class="code" href="classWindow.html#e178e8e59e66b1a57b095b9cde086ce2">closeEvent</a>( QCloseEvent* e); <a name="l00094"></a>00094 <span class="comment">//----------------------</span> <a name="l00095"></a>00095 <span class="keyword">private</span>: <a name="l00097"></a>00097 <span class="keywordtype">void</span> <a class="code" href="classWindow.html#8f5b84775f77f300226b89d750402b10" title="utility function used by above, actually started slideshow">startSlideshow</a>(<span class="keywordtype">bool</span> startAtBeginning); <a name="l00098"></a>00098 <a name="l00100"></a><a class="code" href="classWindow.html#e1d7398fa6a244bf126b6ee5d5c88491">00100</a> <a class="code" href="classConfiguration.html" title="Configuration object manages all user-specific application settings.">Configuration</a>* <a class="code" href="classWindow.html#e1d7398fa6a244bf126b6ee5d5c88491" title="Configuration settings.">config</a>; <a name="l00101"></a>00101 <a name="l00103"></a><a class="code" href="classWindow.html#fa745bef5497e32d03fcf2c0a9b43c33">00103</a> QGridLayout* <a class="code" href="classWindow.html#fa745bef5497e32d03fcf2c0a9b43c33" title="Grid objects placed in.">grid</a>; <a name="l00104"></a>00104 <a name="l00106"></a><a class="code" href="classWindow.html#1fba4880e5580e15778428ba5d499499">00106</a> <a class="code" href="classTitleWidget.html" title="Widget which displays album name, description, representative image, and album shaper...">TitleWidget</a>* <a class="code" href="classWindow.html#1fba4880e5580e15778428ba5d499499" title="Title widget cont ains menu&#39;s, album information and Album Shaper icon.">title</a>; <a name="l00107"></a>00107 <a name="l00109"></a><a class="code" href="classWindow.html#a9256112e47e84f8b9169bcd9b964e94">00109</a> <a class="code" href="classLayoutWidget.html" title="Displays list of subalbums and a particular subalbum layout.">LayoutWidget</a>* <a class="code" href="classWindow.html#a9256112e47e84f8b9169bcd9b964e94" title="Layout includes subalbums listing and particular subalbum layout.">layout</a>; <a name="l00110"></a>00110 <a name="l00112"></a><a class="code" href="classWindow.html#4772a1f167bbfaa4c76eb3f91e7e5728">00112</a> <a class="code" href="classStatusWidget.html">StatusWidget</a>* <a class="code" href="classWindow.html#4772a1f167bbfaa4c76eb3f91e7e5728" title="Status widget either displays a status message or progress bar.">status</a>; <a name="l00113"></a>00113 <a name="l00115"></a>00115 <span class="comment">// SlideshowWidget* slideshow;</span> <a name="l00116"></a>00116 <span class="comment">//----------------------</span> <a name="l00117"></a>00117 }; <a name="l00118"></a>00118 <span class="comment">//======================</span> <a name="l00119"></a>00119 <a name="l00120"></a>00120 <span class="preprocessor">#endif //GUI_WINDOW_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 <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>