<!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: miscSettings.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 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>miscSettings.cpp</h1><a href="miscSettings_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 include</span> <a name="l00012"></a>00012 <span class="preprocessor">#include <qstring.h></span> <a name="l00013"></a>00013 <a name="l00014"></a>00014 <span class="comment">//Projectwide includes</span> <a name="l00015"></a>00015 <span class="preprocessor">#include "<a class="code" href="miscSettings_8h.html">miscSettings.h</a>"</span> <a name="l00016"></a>00016 <span class="preprocessor">#include "<a class="code" href="configuration_8h.html">configuration.h</a>"</span> <a name="l00017"></a>00017 <a name="l00018"></a>00018 <span class="comment">//==============================================</span> <a name="l00019"></a><a class="code" href="classMiscSettings.html#8fafaea474307f3b748c22c9bd6ad729">00019</a> <span class="keywordtype">void</span> <a class="code" href="classMiscSettings.html#8fafaea474307f3b748c22c9bd6ad729">MiscSettings::setDefaults</a>(<a class="code" href="classConfiguration.html" title="Configuration object manages all user-specific application settings.">Configuration</a>* config) <a name="l00020"></a>00020 { <a name="l00021"></a>00021 <span class="comment">//true first time program is run, ensures "first run"</span> <a name="l00022"></a>00022 <span class="comment">//dialog is only brought up once and never again</span> <a name="l00023"></a>00023 config-><a class="code" href="classConfiguration.html#9dd8bba47dda7f0964567656f9514852" title="Set bool setting.">setBool</a>( <span class="stringliteral">"misc"</span>, <span class="stringliteral">"firstRun"</span>, <span class="keyword">true</span> ); <a name="l00024"></a>00024 <a name="l00025"></a>00025 <span class="comment">//warn users they are running a CVS build if they are</span> <a name="l00026"></a>00026 config-><a class="code" href="classConfiguration.html#9dd8bba47dda7f0964567656f9514852" title="Set bool setting.">setBool</a>( <span class="stringliteral">"misc"</span>, <span class="stringliteral">"cvsWarn"</span>, <span class="keyword">true</span> ); <a name="l00027"></a>00027 <a name="l00028"></a>00028 <span class="comment">//DPI below which users will be warned during cropping</span> <a name="l00029"></a>00029 config-><a class="code" href="classConfiguration.html#735d3e91a3a767567371e8ccd940b6e3" title="Set int setting.">setInt</a>( <span class="stringliteral">"misc"</span>, <span class="stringliteral">"minDPI"</span>, 250 ); <a name="l00030"></a>00030 } <a name="l00031"></a>00031 <span class="comment">//==============================================</span> </pre></div></div> <hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 23 02:34:26 2009 for AlbumShaper by <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>