Sophie

Sophie

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

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: helpWindow.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.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>helpWindow.cpp</h1><a href="helpWindow_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 &lt;qfile.h&gt;</span>
<a name="l00013"></a>00013 <span class="preprocessor">#include &lt;qtextstream.h&gt;</span>
<a name="l00014"></a>00014 <span class="preprocessor">#include &lt;qstringlist.h&gt;</span>
<a name="l00015"></a>00015 
<a name="l00016"></a>00016 <span class="preprocessor">#include &lt;qlabel.h&gt;</span>
<a name="l00017"></a>00017 <span class="preprocessor">#include &lt;qpushbutton.h&gt;</span>
<a name="l00018"></a>00018 <span class="preprocessor">#include &lt;qlayout.h&gt;</span>
<a name="l00019"></a>00019 <span class="preprocessor">#include &lt;qsizegrip.h&gt;</span>
<a name="l00020"></a>00020 <span class="preprocessor">#include &lt;qkeysequence.h&gt;</span>
<a name="l00021"></a>00021 
<a name="l00022"></a>00022 <span class="comment">//Projectwide includes</span>
<a name="l00023"></a>00023 <span class="preprocessor">#include "<a class="code" href="helpWindow_8h.html">helpWindow.h</a>"</span>
<a name="l00024"></a>00024 <span class="preprocessor">#include "<a class="code" href="contents_8h.html">contents.h</a>"</span>
<a name="l00025"></a>00025 <span class="preprocessor">#include "<a class="code" href="whatsNew_8h.html">whatsNew.h</a>"</span>
<a name="l00026"></a>00026 <span class="preprocessor">#include "<a class="code" href="importing_8h.html">importing.h</a>"</span>
<a name="l00027"></a>00027 <span class="preprocessor">#include "<a class="code" href="annotating_8h.html">annotating.h</a>"</span>
<a name="l00028"></a>00028 <span class="preprocessor">#include "<a class="code" href="framing_8h.html">framing.h</a>"</span>
<a name="l00029"></a>00029 <span class="preprocessor">#include "<a class="code" href="enhancing_8h.html">enhancing.h</a>"</span>
<a name="l00030"></a>00030 <span class="preprocessor">#include "<a class="code" href="proTools_8h.html">proTools.h</a>"</span>
<a name="l00031"></a>00031 <span class="preprocessor">#include "<a class="code" href="manipulating_8h.html">manipulating.h</a>"</span>
<a name="l00032"></a>00032 <span class="preprocessor">#include "<a class="code" href="loadSave_8h.html">loadSave.h</a>"</span>
<a name="l00033"></a>00033 <span class="preprocessor">#include "<a class="code" href="help_2shortcuts_8h.html">shortcuts.h</a>"</span>
<a name="l00034"></a>00034 
<a name="l00035"></a>00035 <span class="preprocessor">#include "../ALabel.h"</span>
<a name="l00036"></a>00036 <span class="preprocessor">#include "../../config.h"</span>
<a name="l00037"></a>00037 
<a name="l00038"></a>00038 <span class="comment">//==============================================</span>
<a name="l00039"></a><a class="code" href="classHelpWindow.html#eca92a7a47d8f6c5cbd54713da59eb4c">00039</a> <a class="code" href="classHelpWindow.html#eca92a7a47d8f6c5cbd54713da59eb4c">HelpWindow::HelpWindow</a>( <a class="code" href="classQWidget.html">QWidget</a>* parent, <span class="keyword">const</span> <span class="keywordtype">char</span>* name ) : <a class="code" href="classQDialog.html">QDialog</a>(parent,name)
<a name="l00040"></a>00040 {
<a name="l00041"></a>00041   <span class="comment">//determine necessary encoding for reading and writing to html files</span>
<a name="l00042"></a>00042   QTextStream::Encoding fileEncoding;
<a name="l00043"></a>00043   QString savingCharSet;
<a name="l00044"></a>00044   QString loadingCharSet;
<a name="l00045"></a>00045 
<a name="l00046"></a>00046   <span class="comment">//Mac OSX -&gt; Use UTF16</span>
<a name="l00047"></a>00047 <span class="preprocessor">  #if defined(Q_OS_MACX)</span>
<a name="l00048"></a>00048 <span class="preprocessor"></span>  fileEncoding = QTextStream::Unicode;
<a name="l00049"></a>00049   savingCharSet = <span class="stringliteral">"utf16"</span>;
<a name="l00050"></a>00050   loadingCharSet = <span class="stringliteral">"UTF-16"</span>;
<a name="l00051"></a>00051   
<a name="l00052"></a>00052   <span class="comment">//Other UNIX or Windows with Unicode support -&gt; Use UTF8</span>
<a name="l00053"></a>00053 <span class="preprocessor">  #elif !defined(Q_WS_WIN) || (defined(Q_WS_WIN) &amp;&amp; defined(UNICODE))</span>
<a name="l00054"></a>00054 <span class="preprocessor"></span>  fileEncoding = QTextStream::UnicodeUTF8;
<a name="l00055"></a>00055   savingCharSet = <span class="stringliteral">"utf8"</span>;
<a name="l00056"></a>00056   loadingCharSet = <span class="stringliteral">"UTF-8"</span>;
<a name="l00057"></a>00057 
<a name="l00058"></a>00058   <span class="comment">//Windows without Unicode support (Win95/98/ME) -&gt; Use Latin-1</span>
<a name="l00059"></a>00059 <span class="preprocessor">  #else</span>
<a name="l00060"></a>00060 <span class="preprocessor"></span>  fileEncoding = QTextStream::Latin1;
<a name="l00061"></a>00061   savingCharSet = <span class="stringliteral">"latin-1"</span>;
<a name="l00062"></a>00062   loadingCharSet = <span class="stringliteral">"latin-1"</span>;
<a name="l00063"></a>00063 <span class="preprocessor">  #endif</span>
<a name="l00064"></a>00064 <span class="preprocessor"></span>  <span class="comment">//-------------------------------------------------------------</span>
<a name="l00065"></a>00065   <span class="comment">//generate html pages</span>
<a name="l00066"></a>00066   <a class="code" href="classWhatsNew.html#859b810a0ebcd1009ba09e32bd1f3eae" title="generates the html file">WhatsNew::generateHTML</a>    (fileEncoding, savingCharSet);
<a name="l00067"></a>00067   <a class="code" href="classImporting.html#1f54f3fde8effda4573a151c039741c6" title="generates the html file">Importing::generateHTML</a>   (fileEncoding, savingCharSet);
<a name="l00068"></a>00068   <a class="code" href="classAnnotating.html#171892c7f268378d11a3fe55f734ce39" title="generates the html file">Annotating::generateHTML</a>  (fileEncoding, savingCharSet);
<a name="l00069"></a>00069   <a class="code" href="classFraming.html#be4d2bb35e028658f65f2235a5df28f1" title="generates the html file">Framing::generateHTML</a>     (fileEncoding, savingCharSet);
<a name="l00070"></a>00070   <a class="code" href="classEnhancing.html#c74497a217b6f4c2bc9ca12d965601df" title="generates the html file">Enhancing::generateHTML</a>   (fileEncoding, savingCharSet);
<a name="l00071"></a>00071   <a class="code" href="classProTools.html#8f6a9c47f5e2a9a2f57f3f03bad08773" title="generates the html file">ProTools::generateHTML</a>    (fileEncoding, savingCharSet);
<a name="l00072"></a>00072   <a class="code" href="classManipulating.html#09051df4db5db6f5ef2f0b01d149d04f" title="generates the html file">Manipulating::generateHTML</a>(fileEncoding, savingCharSet);
<a name="l00073"></a>00073   <a class="code" href="classLoadSave.html#446221355a2abd5277f5f77019e3b1c9" title="generates the html file">LoadSave::generateHTML</a>    (fileEncoding, savingCharSet);
<a name="l00074"></a>00074   <a class="code" href="classShortcuts.html#af495353955891b0cb790ce7078f44e2" title="generates the shortcuts html file">Shortcuts::generateHTML</a>   (fileEncoding, savingCharSet);
<a name="l00075"></a>00075   
<a name="l00076"></a>00076   resize( 800, 400 );
<a name="l00077"></a>00077   setPaletteBackgroundColor( QColor(255,255,255) );
<a name="l00078"></a>00078 
<a name="l00079"></a>00079   <span class="comment">//set window title</span>
<a name="l00080"></a>00080   setCaption( tr(<span class="stringliteral">"Album Shaper Help"</span>));
<a name="l00081"></a>00081   <span class="comment">//--</span>
<a name="l00082"></a>00082   <span class="comment">//create billboard widget</span>
<a name="l00083"></a>00083   <a class="code" href="classHelpWindow.html#8098680ba8804bb9d363691f1b10f140">billboard</a> = <span class="keyword">new</span> <a class="code" href="classALabel.html">ALabel</a>( <span class="keyword">this</span>, <span class="stringliteral">"helpBillboard"</span>, NULL,
<a name="l00084"></a>00084                                   <a class="code" href="ALabel_8h.html#bbefd1951dab0ad20e6fccb31470ddb0">APPEAR_IMMEDIATELY</a>, <a class="code" href="ALabel_8h.html#4dd1193478481952320d730df65bc522">SLIDE_OUT_LEFT</a> );
<a name="l00085"></a>00085   <a class="code" href="classHelpWindow.html#8098680ba8804bb9d363691f1b10f140">billboard</a>-&gt;<a class="code" href="classALabel.html#d513cece6e846f2bfa4261dafa270c25" title="animates setting an image">setPixmap</a>( QPixmap( QString(<a class="code" href="config_8cpp.html#59e02362a9a29a755712dc830a3eb513">IMAGE_PATH</a>)+<span class="stringliteral">"helpImages/helpBillboard.png"</span>) );
<a name="l00086"></a>00086   <a class="code" href="classHelpWindow.html#b2dfa896079f11af06aeb1d2caa379f4">currentPage</a> = <a class="code" href="contents_8h.html#9906b617670362187e0cb314384d6dcfbe331817ddf8a37be1d59ea66ac17b1b">BILLBOARD</a>;
<a name="l00087"></a>00087   connect( <a class="code" href="classHelpWindow.html#8098680ba8804bb9d363691f1b10f140">billboard</a>, SIGNAL(pixmapRemoved()),
<a name="l00088"></a>00088            <span class="keyword">this</span>, SLOT(<a class="code" href="classHelpWindow.html#f3391adb3ef2e41796c2083113d63cb8">showFirstSelection</a>()) );
<a name="l00089"></a>00089 
<a name="l00090"></a>00090   <span class="comment">//construct special mime source factory for loading html files for the contents and content frames</span>
<a name="l00091"></a>00091   <a class="code" href="classHelpWindow.html#a2efbe88869ad75db5dc545eab35e92f">loadingMimeSource</a> = <span class="keyword">new</span> QMimeSourceFactory();
<a name="l00092"></a>00092   <a class="code" href="classHelpWindow.html#a2efbe88869ad75db5dc545eab35e92f">loadingMimeSource</a>-&gt;setExtensionType(<span class="stringliteral">"html"</span>,QString(<span class="stringliteral">"text/html;charset=%1"</span>).arg(loadingCharSet) );
<a name="l00093"></a>00093 
<a name="l00094"></a>00094   <span class="comment">//create contents widget</span>
<a name="l00095"></a>00095   <a class="code" href="classContents.html">Contents</a>* contents = <span class="keyword">new</span> <a class="code" href="classContents.html">Contents</a>(fileEncoding, savingCharSet, <a class="code" href="classHelpWindow.html#a2efbe88869ad75db5dc545eab35e92f">loadingMimeSource</a>, <span class="keyword">this</span>);
<a name="l00096"></a>00096   connect( contents, SIGNAL(<a class="code" href="classHelpWindow.html#4209cb920226ad1ed276b678f00dc206">setPage</a>(<a class="code" href="contents_8h.html#9906b617670362187e0cb314384d6dcf" title="Contents window widget.">HELP_PAGE</a>)),
<a name="l00097"></a>00097            <span class="keyword">this</span>, SLOT(<a class="code" href="classHelpWindow.html#4209cb920226ad1ed276b678f00dc206">setPage</a>(<a class="code" href="contents_8h.html#9906b617670362187e0cb314384d6dcf" title="Contents window widget.">HELP_PAGE</a>)) );
<a name="l00098"></a>00098 
<a name="l00099"></a>00099   <span class="comment">//create widget for holding content</span>
<a name="l00100"></a>00100   <a class="code" href="classHelpWindow.html#1be7c8fadcd924980854a701b4f7b689">content</a> = <span class="keyword">new</span> <a class="code" href="classQTextBrowser.html">QTextBrowser</a>( <span class="keyword">this</span> );
<a name="l00101"></a>00101   <a class="code" href="classHelpWindow.html#1be7c8fadcd924980854a701b4f7b689">content</a>-&gt;setHScrollBarMode( QScrollView::Auto );
<a name="l00102"></a>00102   <a class="code" href="classHelpWindow.html#1be7c8fadcd924980854a701b4f7b689">content</a>-&gt;setVScrollBarMode( QScrollView::Auto );
<a name="l00103"></a>00103   <a class="code" href="classHelpWindow.html#1be7c8fadcd924980854a701b4f7b689">content</a>-&gt;setFrameStyle( QFrame::NoFrame );
<a name="l00104"></a>00104   <a class="code" href="classHelpWindow.html#1be7c8fadcd924980854a701b4f7b689">content</a>-&gt;setMimeSourceFactory( <a class="code" href="classHelpWindow.html#a2efbe88869ad75db5dc545eab35e92f">loadingMimeSource</a> );
<a name="l00105"></a>00105   
<a name="l00106"></a>00106   <span class="comment">//PLATFORM_SPECIFIC_CODE</span>
<a name="l00107"></a>00107   <span class="comment">//mac os x puts in a size grip that can interfere with the updates icon, in order</span>
<a name="l00108"></a>00108   <span class="comment">//to avoid this we manually place the size grip ourselves</span>
<a name="l00109"></a>00109   <span class="comment">//windows users expect a grip too, but qt doesn't put one in by default. we'll add</span>
<a name="l00110"></a>00110   <span class="comment">//it for them too. :-)</span>
<a name="l00111"></a>00111 <span class="preprocessor">#if defined(Q_OS_MACX) || defined(Q_OS_WIN)</span>
<a name="l00112"></a>00112 <span class="preprocessor"></span>  <a class="code" href="classHelpWindow.html#1be7c8fadcd924980854a701b4f7b689">content</a>-&gt;setCornerWidget( <span class="keyword">new</span> QSizeGrip(<span class="keyword">this</span>) );
<a name="l00113"></a>00113 <span class="preprocessor">#endif</span>
<a name="l00114"></a>00114 <span class="preprocessor"></span>    
<a name="l00115"></a>00115   <a class="code" href="classHelpWindow.html#1be7c8fadcd924980854a701b4f7b689">content</a>-&gt;hide();
<a name="l00116"></a>00116   <span class="comment">//--</span>
<a name="l00117"></a>00117   <span class="comment">//place items in grid layout</span>
<a name="l00118"></a>00118   QGridLayout* grid = <span class="keyword">new</span> QGridLayout( <span class="keyword">this</span>, 4, 3, 0);
<a name="l00119"></a>00119   grid-&gt;addMultiCellWidget( <a class="code" href="classHelpWindow.html#8098680ba8804bb9d363691f1b10f140">billboard</a>, 0,2, 0,0, Qt::AlignHCenter | Qt::AlignTop );
<a name="l00120"></a>00120   grid-&gt;addWidget( contents, 1,1 );
<a name="l00121"></a>00121   grid-&gt;addMultiCellWidget( <a class="code" href="classHelpWindow.html#1be7c8fadcd924980854a701b4f7b689">content</a>, 0,2, 2,2 );
<a name="l00122"></a>00122 
<a name="l00123"></a>00123   grid-&gt;setRowSpacing( 0, QMAX(<a class="code" href="classHelpWindow.html#8098680ba8804bb9d363691f1b10f140">billboard</a>-&gt;sizeHint().height() - 
<a name="l00124"></a>00124                                contents-&gt;<a class="code" href="classContents.html#4138625616f8cea8113ab41961603522">minimumSizeHint</a>().height(), 0)/2 );
<a name="l00125"></a>00125   grid-&gt;setColSpacing( 1, contents-&gt;<a class="code" href="classContents.html#4138625616f8cea8113ab41961603522">minimumSizeHint</a>().width() );
<a name="l00126"></a>00126   grid-&gt;setRowStretch( 1, 1 );
<a name="l00127"></a>00127   grid-&gt;setColStretch( 2, 1 );
<a name="l00128"></a>00128   <span class="comment">//--</span>
<a name="l00129"></a>00129   <span class="comment">//PLATFORM_SPECIFIC_CODE - Close Button</span>
<a name="l00130"></a>00130 <span class="preprocessor">#if (!defined(Q_OS_WIN) &amp;&amp; !defined(Q_OS_MACX))</span>
<a name="l00131"></a>00131 <span class="preprocessor"></span>  QPushButton* closeButton = <span class="keyword">new</span> QPushButton( tr(<span class="stringliteral">"Close"</span>), <span class="keyword">this</span> );
<a name="l00132"></a>00132   closeButton-&gt;setSizePolicy( QSizePolicy::Fixed, QSizePolicy::Fixed );
<a name="l00133"></a>00133   closeButton-&gt;setDefault(<span class="keyword">true</span>);
<a name="l00134"></a>00134   connect( closeButton, SIGNAL(clicked()), SLOT(close()) );
<a name="l00135"></a>00135   grid-&gt;addMultiCellWidget( closeButton, 3,3, 0,2, Qt::AlignCenter );
<a name="l00136"></a>00136 <span class="preprocessor">#endif  </span>
<a name="l00137"></a>00137 <span class="preprocessor"></span>  <span class="comment">//--</span>
<a name="l00138"></a>00138 }
<a name="l00139"></a>00139 <span class="comment">//==============================================</span>
<a name="l00140"></a><a class="code" href="classHelpWindow.html#c16acebf09487f6ecc473d67a4db1365">00140</a> <a class="code" href="classHelpWindow.html#c16acebf09487f6ecc473d67a4db1365">HelpWindow::~HelpWindow</a>()
<a name="l00141"></a>00141 {
<a name="l00142"></a>00142   <span class="keyword">delete</span> <a class="code" href="classHelpWindow.html#a2efbe88869ad75db5dc545eab35e92f">loadingMimeSource</a>;
<a name="l00143"></a>00143   <a class="code" href="classHelpWindow.html#a2efbe88869ad75db5dc545eab35e92f">loadingMimeSource</a> = NULL;
<a name="l00144"></a>00144 }
<a name="l00145"></a>00145 <span class="comment">//==============================================</span>
<a name="l00146"></a><a class="code" href="classHelpWindow.html#de58338631180bc323dcd1dcb855adb5">00146</a> <span class="keywordtype">void</span> <a class="code" href="classHelpWindow.html#de58338631180bc323dcd1dcb855adb5">HelpWindow::closeEvent</a>( QCloseEvent* e)
<a name="l00147"></a>00147 {
<a name="l00148"></a>00148   <a class="code" href="classHelpWindow.html#de58338631180bc323dcd1dcb855adb5">QWidget::closeEvent</a>( e );
<a name="l00149"></a>00149   emit <a class="code" href="classHelpWindow.html#5c92276a4cb3e4b9fefbd320a7075dfd">closed</a>();
<a name="l00150"></a>00150 }
<a name="l00151"></a>00151 <span class="comment">//==============================================</span>
<a name="l00152"></a><a class="code" href="classHelpWindow.html#49721c6e7526ba5602c077f35abfb2e7">00152</a> <span class="keywordtype">void</span> <a class="code" href="classHelpWindow.html#49721c6e7526ba5602c077f35abfb2e7">HelpWindow::reject</a>()
<a name="l00153"></a>00153 {
<a name="l00154"></a>00154   <a class="code" href="classHelpWindow.html#49721c6e7526ba5602c077f35abfb2e7">QDialog::reject</a>();
<a name="l00155"></a>00155   emit <a class="code" href="classHelpWindow.html#5c92276a4cb3e4b9fefbd320a7075dfd">closed</a>();
<a name="l00156"></a>00156 }
<a name="l00157"></a>00157 <span class="comment">//==============================================</span>
<a name="l00158"></a><a class="code" href="classHelpWindow.html#4209cb920226ad1ed276b678f00dc206">00158</a> <span class="keywordtype">void</span> <a class="code" href="classHelpWindow.html#4209cb920226ad1ed276b678f00dc206">HelpWindow::setPage</a>(<a class="code" href="contents_8h.html#9906b617670362187e0cb314384d6dcf" title="Contents window widget.">HELP_PAGE</a> page)
<a name="l00159"></a>00159 {
<a name="l00160"></a>00160   <span class="comment">//if billboard stillshown first remove it.</span>
<a name="l00161"></a>00161   <span class="keywordflow">if</span>( <a class="code" href="classHelpWindow.html#b2dfa896079f11af06aeb1d2caa379f4">currentPage</a> == <a class="code" href="contents_8h.html#9906b617670362187e0cb314384d6dcfbe331817ddf8a37be1d59ea66ac17b1b">BILLBOARD</a> )
<a name="l00162"></a>00162   {
<a name="l00163"></a>00163     <a class="code" href="classHelpWindow.html#8098680ba8804bb9d363691f1b10f140">billboard</a>-&gt;<a class="code" href="classALabel.html#e0b0ff246381ec3d2da4e1710ad885c1" title="animates removing an image">removePixmap</a>();
<a name="l00164"></a>00164     <a class="code" href="classHelpWindow.html#b2dfa896079f11af06aeb1d2caa379f4">currentPage</a> = page;
<a name="l00165"></a>00165     
<a name="l00166"></a>00166     <span class="comment">//show page only once billboard has finished sliding away to the left</span>
<a name="l00167"></a>00167   }
<a name="l00168"></a>00168   <span class="keywordflow">else</span>
<a name="l00169"></a>00169   {
<a name="l00170"></a>00170     <a class="code" href="classHelpWindow.html#b2dfa896079f11af06aeb1d2caa379f4">currentPage</a> = page;
<a name="l00171"></a>00171     <a class="code" href="classHelpWindow.html#46f7c907f060001ccf2026b372164765">showCurrentPage</a>();
<a name="l00172"></a>00172   }
<a name="l00173"></a>00173 }
<a name="l00174"></a>00174 <span class="comment">//==============================================</span>
<a name="l00175"></a><a class="code" href="classHelpWindow.html#f3391adb3ef2e41796c2083113d63cb8">00175</a> <span class="keywordtype">void</span> <a class="code" href="classHelpWindow.html#f3391adb3ef2e41796c2083113d63cb8">HelpWindow::showFirstSelection</a>()
<a name="l00176"></a>00176 {
<a name="l00177"></a>00177   <a class="code" href="classHelpWindow.html#1be7c8fadcd924980854a701b4f7b689">content</a>-&gt;show();
<a name="l00178"></a>00178   <a class="code" href="classHelpWindow.html#46f7c907f060001ccf2026b372164765">showCurrentPage</a>();
<a name="l00179"></a>00179 }
<a name="l00180"></a>00180 <span class="comment">//==============================================</span>
<a name="l00181"></a><a class="code" href="classHelpWindow.html#46f7c907f060001ccf2026b372164765">00181</a> <span class="keywordtype">void</span> <a class="code" href="classHelpWindow.html#46f7c907f060001ccf2026b372164765">HelpWindow::showCurrentPage</a>()
<a name="l00182"></a>00182 {
<a name="l00183"></a>00183   <span class="keywordflow">if</span>( <a class="code" href="classHelpWindow.html#b2dfa896079f11af06aeb1d2caa379f4">currentPage</a> == <a class="code" href="contents_8h.html#9906b617670362187e0cb314384d6dcfd79196c8267d2aa80495945c209e7515">KEYBOARD_SHORTCUTS</a> )
<a name="l00184"></a>00184     <a class="code" href="classHelpWindow.html#1be7c8fadcd924980854a701b4f7b689">content</a>-&gt;setSource( <a class="code" href="classShortcuts.html#fca51b0de213e074a681c9eafe13be1b" title="returns the shortcuts html filename">Shortcuts::filename</a>() );
<a name="l00185"></a>00185   <span class="keywordflow">else</span> <span class="keywordflow">if</span>( <a class="code" href="classHelpWindow.html#b2dfa896079f11af06aeb1d2caa379f4">currentPage</a> == <a class="code" href="contents_8h.html#9906b617670362187e0cb314384d6dcf06e752f7f7f6766f797fc1f8b6fd2b69">WHATS_NEW</a> )
<a name="l00186"></a>00186     <a class="code" href="classHelpWindow.html#1be7c8fadcd924980854a701b4f7b689">content</a>-&gt;setSource( <a class="code" href="classWhatsNew.html#90b9751270e2459ced93a9c287b4f7be" title="returns the html filename">WhatsNew::filename</a>() );
<a name="l00187"></a>00187 
<a name="l00188"></a>00188   <span class="keywordflow">else</span> <span class="keywordflow">if</span>( <a class="code" href="classHelpWindow.html#b2dfa896079f11af06aeb1d2caa379f4">currentPage</a> == <a class="code" href="contents_8h.html#9906b617670362187e0cb314384d6dcf84c9bd551ddf11b71a351f03f4a87e8e">IMPORTING_AND_ORGANIZING</a> )
<a name="l00189"></a>00189     <a class="code" href="classHelpWindow.html#1be7c8fadcd924980854a701b4f7b689">content</a>-&gt;setSource( <a class="code" href="classImporting.html#9370244378b4d0ff486f4fbda3b5c864" title="returns the html filename">Importing::filename</a>() );
<a name="l00190"></a>00190   <span class="keywordflow">else</span> <span class="keywordflow">if</span>( <a class="code" href="classHelpWindow.html#b2dfa896079f11af06aeb1d2caa379f4">currentPage</a> == <a class="code" href="contents_8h.html#9906b617670362187e0cb314384d6dcfd7385de62096d6a536a31a3d6e198362">ANNOTATING_ALBUMS</a> )
<a name="l00191"></a>00191     <a class="code" href="classHelpWindow.html#1be7c8fadcd924980854a701b4f7b689">content</a>-&gt;setSource( <a class="code" href="classAnnotating.html#d3e66eafc25b6a6111de970f976c251c" title="returns the html filename">Annotating::filename</a>() );
<a name="l00192"></a>00192   <span class="keywordflow">else</span> <span class="keywordflow">if</span>( <a class="code" href="classHelpWindow.html#b2dfa896079f11af06aeb1d2caa379f4">currentPage</a> == <a class="code" href="contents_8h.html#9906b617670362187e0cb314384d6dcf2b993c3678439330be0f8b1be9ceb25e">FRAMING</a> )
<a name="l00193"></a>00193     <a class="code" href="classHelpWindow.html#1be7c8fadcd924980854a701b4f7b689">content</a>-&gt;setSource( <a class="code" href="classFraming.html#876d3548f79d8a169bfbb1a25848fcf8" title="returns the html filename">Framing::filename</a>() );
<a name="l00194"></a>00194   <span class="keywordflow">else</span> <span class="keywordflow">if</span>( <a class="code" href="classHelpWindow.html#b2dfa896079f11af06aeb1d2caa379f4">currentPage</a> == <a class="code" href="contents_8h.html#9906b617670362187e0cb314384d6dcfffe47bcd944fa17e2a5083f8509ddc52">ENHANCING</a> )
<a name="l00195"></a>00195     <a class="code" href="classHelpWindow.html#1be7c8fadcd924980854a701b4f7b689">content</a>-&gt;setSource( <a class="code" href="classEnhancing.html#b2b3210b1e19973491756b58e93ccef8" title="returns the html filename">Enhancing::filename</a>() );
<a name="l00196"></a>00196   <span class="keywordflow">else</span> <span class="keywordflow">if</span>( <a class="code" href="classHelpWindow.html#b2dfa896079f11af06aeb1d2caa379f4">currentPage</a> == <a class="code" href="contents_8h.html#9906b617670362187e0cb314384d6dcf88da70a25e729357519bfb03a0482f7c">PRO_TOOLS</a> )
<a name="l00197"></a>00197     <a class="code" href="classHelpWindow.html#1be7c8fadcd924980854a701b4f7b689">content</a>-&gt;setSource( <a class="code" href="classProTools.html#c4c9c770c8d3f731774aac2662ff6385" title="returns the html filename">ProTools::filename</a>() );
<a name="l00198"></a>00198   <span class="keywordflow">else</span> <span class="keywordflow">if</span>( <a class="code" href="classHelpWindow.html#b2dfa896079f11af06aeb1d2caa379f4">currentPage</a> == <a class="code" href="contents_8h.html#9906b617670362187e0cb314384d6dcf0df9883052a98eb7b6f41b483333b6b4">MANIPULATING</a> )
<a name="l00199"></a>00199     <a class="code" href="classHelpWindow.html#1be7c8fadcd924980854a701b4f7b689">content</a>-&gt;setSource( <a class="code" href="classManipulating.html#a9b2cacffefc9385a19d1891d47c702d" title="returns the html filename">Manipulating::filename</a>() );
<a name="l00200"></a>00200   <span class="keywordflow">else</span> <span class="keywordflow">if</span>( <a class="code" href="classHelpWindow.html#b2dfa896079f11af06aeb1d2caa379f4">currentPage</a> == <a class="code" href="contents_8h.html#9906b617670362187e0cb314384d6dcf9af40cf25698783a60eea7245d0d79e6">SAVING_AND_LOADING</a> )
<a name="l00201"></a>00201     <a class="code" href="classHelpWindow.html#1be7c8fadcd924980854a701b4f7b689">content</a>-&gt;setSource( <a class="code" href="classLoadSave.html#1a6a6b88592509d4e7d1050c9ff92df3" title="returns the html filename">LoadSave::filename</a>() );
<a name="l00202"></a>00202   <span class="keywordflow">else</span>
<a name="l00203"></a>00203     <a class="code" href="classHelpWindow.html#1be7c8fadcd924980854a701b4f7b689">content</a>-&gt;setText(<span class="stringliteral">""</span>);
<a name="l00204"></a>00204   
<a name="l00205"></a>00205   <a class="code" href="classHelpWindow.html#1be7c8fadcd924980854a701b4f7b689">content</a>-&gt;setFocus();
<a name="l00206"></a>00206 }
<a name="l00207"></a>00207 <span class="comment">//==============================================</span>
<a name="l00208"></a>00208 
<a name="l00209"></a>00209 
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 23 02:34:25 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>