Sophie

Sophie

distrib > Mandriva > current > x86_64 > by-pkgid > 4272c97b1af3db3f39a3b697bcba7e48 > files > 420

albumshaper-2.1-7mdv2010.1.x86_64.rpm

<!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: 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.6.2 -->
<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 &quot;<a class="code" href="blurSharpenSlider_8h.html">blurSharpenSlider.h</a>&quot;</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#aaf5307360bd5441e143c88ae3ffcff68">00014</a> <a class="code" href="classBlurSharpenSlider.html#aaf5307360bd5441e143c88ae3ffcff68">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#a750e540c9e41e4ffcc04634d3c126ebe" title="when set, a zero string is shown instead of the current value/prefix/suffix when...">setZeroString</a>( tr(<span class="stringliteral">&quot;No change&quot;</span>) );
<a name="l00019"></a>00019   <a class="code" href="classDynamicSlider.html#a3468a9997b768c4464eede49b4c2b563" 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">&quot;Blur&quot;</span>))+<span class="stringliteral">&quot;: &quot;</span>, 
<a name="l00020"></a>00020                QString(tr(<span class="stringliteral">&quot;Sharpen&quot;</span>))+<span class="stringliteral">&quot;: &quot;</span> );
<a name="l00021"></a>00021   <a class="code" href="classDynamicSlider.html#ac831f79ca17aec39750abbd2becff8ec" title="set the suffix that is displayed after the current slider value">setSuffix</a>(<span class="stringliteral">&quot;x&quot;</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#a1fd0fe7493790aa70fd2f20e83de27ec">00024</a> QString <a class="code" href="classBlurSharpenSlider.html#a1fd0fe7493790aa70fd2f20e83de27ec" 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">&quot;%1&quot;</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 by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2 </small></address>
</body>
</html>