Sophie

Sophie

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

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: blurSharpenSlider.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>blurSharpenSlider.cpp</h1><a href="blurSharpenSlider_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="preprocessor">#include "<a class="code" href="blurSharpenSlider_8h.html">blurSharpenSlider.h</a>"</span>
<a name="l00012"></a>00012 
<a name="l00013"></a>00013 <span class="comment">//==========================================</span>
<a name="l00014"></a><a class="code" href="classBlurSharpenSlider.html#af5307360bd5441e143c88ae3ffcff68">00014</a> <a class="code" href="classBlurSharpenSlider.html#af5307360bd5441e143c88ae3ffcff68">BlurSharpenSlider::BlurSharpenSlider</a>( Orientation orientation, 
<a name="l00015"></a>00015                                       <a class="code" href="classQWidget.html">QWidget</a>* parent, <span class="keyword">const</span> <span class="keywordtype">char</span>* name )
<a name="l00016"></a>00016                                     : <a class="code" href="classDynamicSlider.html" title="A more dynamic slider that provides moving tooltips that show the slider value.">DynamicSlider</a>( orientation, parent, name) 
<a name="l00017"></a>00017 {
<a name="l00018"></a>00018   <a class="code" href="classDynamicSlider.html#750e540c9e41e4ffcc04634d3c126ebe" title="when set, a zero string is shown instead of the current value/prefix/suffix when...">setZeroString</a>( tr(<span class="stringliteral">"No change"</span>) );
<a name="l00019"></a>00019   <a class="code" href="classDynamicSlider.html#3468a9997b768c4464eede49b4c2b563" title="set two prefix values, one for when the value is positive and one for when the value...">setPrefixes</a>( QString(tr(<span class="stringliteral">"Blur"</span>))+<span class="stringliteral">": "</span>, 
<a name="l00020"></a>00020                QString(tr(<span class="stringliteral">"Sharpen"</span>))+<span class="stringliteral">": "</span> );
<a name="l00021"></a>00021   <a class="code" href="classDynamicSlider.html#c831f79ca17aec39750abbd2becff8ec" title="set the suffix that is displayed after the current slider value">setSuffix</a>(<span class="stringliteral">"x"</span>);  
<a name="l00022"></a>00022 }
<a name="l00023"></a>00023 <span class="comment">//==========================================</span>
<a name="l00024"></a><a class="code" href="classBlurSharpenSlider.html#1fd0fe7493790aa70fd2f20e83de27ec">00024</a> QString <a class="code" href="classBlurSharpenSlider.html#1fd0fe7493790aa70fd2f20e83de27ec" title="subclass DynamicSlider and reimplement this method to change the behavior used to...">BlurSharpenSlider::mapValToString</a>()
<a name="l00025"></a>00025 {
<a name="l00026"></a>00026   <span class="comment">//always use the absolute value of the value</span>
<a name="l00027"></a>00027   <span class="keywordflow">return</span> QString(<span class="stringliteral">"%1"</span>).arg( QABS(value()) );
<a name="l00028"></a>00028 }
<a name="l00029"></a>00029 <span class="comment">//==========================================</span>
</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>