Sophie

Sophie

distrib > Mandriva > cooker > i586 > by-pkgid > 76bdad05b5dca2a491582dbec0713d55 > files > 977

libqwt-devel-6.0.1-2.i586.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>Qwt User&#39;s Guide: qwt_column_symbol.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.7.3 -->
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Qwt User's Guide&#160;<span id="projectnumber">6.0.1</span></div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</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 id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<h1>qwt_column_symbol.h</h1>  </div>
</div>
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* -*- mode: C++ ; c-file-style: &quot;stroustrup&quot; -*- *****************************</span>
<a name="l00002"></a>00002 <span class="comment"> * Qwt Widget Library</span>
<a name="l00003"></a>00003 <span class="comment"> * Copyright (C) 1997   Josef Wilgen</span>
<a name="l00004"></a>00004 <span class="comment"> * Copyright (C) 2002   Uwe Rathmann</span>
<a name="l00005"></a>00005 <span class="comment"> *</span>
<a name="l00006"></a>00006 <span class="comment"> * This library is free software; you can redistribute it and/or</span>
<a name="l00007"></a>00007 <span class="comment"> * modify it under the terms of the Qwt License, Version 1.0</span>
<a name="l00008"></a>00008 <span class="comment"> *****************************************************************************/</span>
<a name="l00009"></a>00009 
<a name="l00010"></a>00010 <span class="preprocessor">#ifndef QWT_COLUMN_SYMBOL_H</span>
<a name="l00011"></a>00011 <span class="preprocessor"></span><span class="preprocessor">#define QWT_COLUMN_SYMBOL_H</span>
<a name="l00012"></a>00012 <span class="preprocessor"></span>
<a name="l00013"></a>00013 <span class="preprocessor">#include &quot;qwt_global.h&quot;</span>
<a name="l00014"></a>00014 <span class="preprocessor">#include &quot;qwt_interval.h&quot;</span>
<a name="l00015"></a>00015 <span class="preprocessor">#include &lt;qpen.h&gt;</span>
<a name="l00016"></a>00016 <span class="preprocessor">#include &lt;qsize.h&gt;</span>
<a name="l00017"></a>00017 <span class="preprocessor">#include &lt;qrect.h&gt;</span>
<a name="l00018"></a>00018 
<a name="l00019"></a>00019 <span class="keyword">class </span>QPainter;
<a name="l00020"></a>00020 <span class="keyword">class </span>QPalette;
<a name="l00021"></a>00021 <span class="keyword">class </span>QRect;
<a name="l00022"></a>00022 <span class="keyword">class </span><a class="code" href="class_qwt_text.html" title="A class representing a text.">QwtText</a>;
<a name="l00023"></a>00023 
<a name="l00028"></a><a class="code" href="class_qwt_column_rect.html">00028</a> <span class="keyword">class </span>QWT_EXPORT <a class="code" href="class_qwt_column_rect.html" title="Directed rectangle representing bounding rectangle und orientation of a column.">QwtColumnRect</a>
<a name="l00029"></a>00029 {
<a name="l00030"></a>00030 <span class="keyword">public</span>:
<a name="l00032"></a><a class="code" href="class_qwt_column_rect.html#a70bb2c6f1f8dabe3bc00793740e0908b">00032</a>     <span class="keyword">enum</span> <a class="code" href="class_qwt_column_rect.html#a70bb2c6f1f8dabe3bc00793740e0908b" title="Direction of the column.">Direction</a>
<a name="l00033"></a>00033     {
<a name="l00035"></a><a class="code" href="class_qwt_column_rect.html#a70bb2c6f1f8dabe3bc00793740e0908ba3cde7a99f22f5d897ed4b963731256a6">00035</a>         <a class="code" href="class_qwt_column_rect.html#a70bb2c6f1f8dabe3bc00793740e0908ba3cde7a99f22f5d897ed4b963731256a6" title="From left to right.">LeftToRight</a>,
<a name="l00036"></a>00036 
<a name="l00038"></a><a class="code" href="class_qwt_column_rect.html#a70bb2c6f1f8dabe3bc00793740e0908bac08f1153f84950e62d369cc7b7011b5e">00038</a>         <a class="code" href="class_qwt_column_rect.html#a70bb2c6f1f8dabe3bc00793740e0908bac08f1153f84950e62d369cc7b7011b5e" title="From right to left.">RightToLeft</a>,
<a name="l00039"></a>00039 
<a name="l00041"></a><a class="code" href="class_qwt_column_rect.html#a70bb2c6f1f8dabe3bc00793740e0908baa5f0a56f1bd041136476d4ad40ae56f0">00041</a>         <a class="code" href="class_qwt_column_rect.html#a70bb2c6f1f8dabe3bc00793740e0908baa5f0a56f1bd041136476d4ad40ae56f0" title="From bottom to top.">BottomToTop</a>,
<a name="l00042"></a>00042 
<a name="l00044"></a><a class="code" href="class_qwt_column_rect.html#a70bb2c6f1f8dabe3bc00793740e0908ba82a13d6063cc299b78ebe1a90a1f39da">00044</a>         TopToBottom
<a name="l00045"></a>00045     };
<a name="l00046"></a>00046 
<a name="l00048"></a><a class="code" href="class_qwt_column_rect.html#ad3eeebc150334ee9393d7aff4f33c873">00048</a>     <a class="code" href="class_qwt_column_rect.html" title="Directed rectangle representing bounding rectangle und orientation of a column.">QwtColumnRect</a>():
<a name="l00049"></a>00049         direction( BottomToTop )
<a name="l00050"></a>00050     {
<a name="l00051"></a>00051     }
<a name="l00052"></a>00052 
<a name="l00054"></a><a class="code" href="class_qwt_column_rect.html#a0169ba0be3e683ce5c87aacfd172095e">00054</a>     QRectF toRect()<span class="keyword"> const</span>
<a name="l00055"></a>00055 <span class="keyword">    </span>{
<a name="l00056"></a>00056         QRectF r( hInterval.minValue(), vInterval.minValue(),
<a name="l00057"></a>00057             hInterval.maxValue() - hInterval.minValue(),
<a name="l00058"></a>00058             vInterval.maxValue() - vInterval.minValue() );
<a name="l00059"></a>00059         r = r.normalized();
<a name="l00060"></a>00060 
<a name="l00061"></a>00061         <span class="keywordflow">if</span> ( hInterval.borderFlags() &amp; <a class="code" href="class_qwt_interval.html#a3a4b4e49495108c660fc07a62af7ac54aa7fde04c41d882187bb13f0104da7240" title="Min value is not included in the interval.">QwtInterval::ExcludeMinimum</a> )
<a name="l00062"></a>00062             r.adjust( 1, 0, 0, 0 );
<a name="l00063"></a>00063         <span class="keywordflow">if</span> ( hInterval.borderFlags() &amp; <a class="code" href="class_qwt_interval.html#a3a4b4e49495108c660fc07a62af7ac54a70e70e65956ae319e507bc38b792c434" title="Max value is not included in the interval.">QwtInterval::ExcludeMaximum</a> )
<a name="l00064"></a>00064             r.adjust( 0, 0, -1, 0 );
<a name="l00065"></a>00065         <span class="keywordflow">if</span> ( vInterval.borderFlags() &amp; <a class="code" href="class_qwt_interval.html#a3a4b4e49495108c660fc07a62af7ac54aa7fde04c41d882187bb13f0104da7240" title="Min value is not included in the interval.">QwtInterval::ExcludeMinimum</a> )
<a name="l00066"></a>00066             r.adjust( 0, 1, 0, 0 );
<a name="l00067"></a>00067         <span class="keywordflow">if</span> ( vInterval.borderFlags() &amp; <a class="code" href="class_qwt_interval.html#a3a4b4e49495108c660fc07a62af7ac54a70e70e65956ae319e507bc38b792c434" title="Max value is not included in the interval.">QwtInterval::ExcludeMaximum</a> )
<a name="l00068"></a>00068             r.adjust( 0, 0, 0, -1 );
<a name="l00069"></a>00069 
<a name="l00070"></a>00070         <span class="keywordflow">return</span> r;
<a name="l00071"></a>00071     }
<a name="l00072"></a>00072 
<a name="l00074"></a><a class="code" href="class_qwt_column_rect.html#a8bb5221efc769ef7f474e1f1795de4b6">00074</a>     Qt::Orientation orientation()<span class="keyword"> const</span>
<a name="l00075"></a>00075 <span class="keyword">    </span>{
<a name="l00076"></a>00076         <span class="keywordflow">if</span> ( direction == LeftToRight || direction == RightToLeft )
<a name="l00077"></a>00077             <span class="keywordflow">return</span> Qt::Horizontal;
<a name="l00078"></a>00078 
<a name="l00079"></a>00079         <span class="keywordflow">return</span> Qt::Vertical;
<a name="l00080"></a>00080     }
<a name="l00081"></a>00081 
<a name="l00083"></a><a class="code" href="class_qwt_column_rect.html#a16a24ece2aa70fc763d08e220608d63a">00083</a>     <a class="code" href="class_qwt_interval.html" title="A class representing an interval.">QwtInterval</a> <a class="code" href="class_qwt_column_rect.html#a16a24ece2aa70fc763d08e220608d63a" title="Interval for the horizontal coordinates.">hInterval</a>;
<a name="l00084"></a>00084 
<a name="l00086"></a><a class="code" href="class_qwt_column_rect.html#a0dcd7826655c73da74a8f9ad87f3d62a">00086</a>     <a class="code" href="class_qwt_interval.html" title="A class representing an interval.">QwtInterval</a> <a class="code" href="class_qwt_column_rect.html#a0dcd7826655c73da74a8f9ad87f3d62a" title="Interval for the vertical coordinates.">vInterval</a>;
<a name="l00087"></a>00087 
<a name="l00089"></a><a class="code" href="class_qwt_column_rect.html#aa630854df28955f2ee91c94524b079d7">00089</a>     <a class="code" href="class_qwt_column_rect.html#a70bb2c6f1f8dabe3bc00793740e0908b" title="Direction of the column.">Direction</a> <a class="code" href="class_qwt_column_rect.html#aa630854df28955f2ee91c94524b079d7" title="Direction.">direction</a>;
<a name="l00090"></a>00090 };
<a name="l00091"></a>00091 
<a name="l00093"></a><a class="code" href="class_qwt_column_symbol.html">00093</a> <span class="keyword">class </span>QWT_EXPORT <a class="code" href="class_qwt_column_symbol.html" title="A drawing primitive for columns.">QwtColumnSymbol</a>
<a name="l00094"></a>00094 {
<a name="l00095"></a>00095 <span class="keyword">public</span>:
<a name="l00100"></a><a class="code" href="class_qwt_column_symbol.html#aaace508375eef3ee23ed6c47b1d65ef2">00100</a>     <span class="keyword">enum</span> <a class="code" href="class_qwt_column_symbol.html#aaace508375eef3ee23ed6c47b1d65ef2">Style</a>
<a name="l00101"></a>00101     {
<a name="l00103"></a><a class="code" href="class_qwt_column_symbol.html#aaace508375eef3ee23ed6c47b1d65ef2a3c16d900e0dcfc18f174f4120136cb5b">00103</a>         NoStyle = -1,
<a name="l00104"></a>00104 
<a name="l00109"></a><a class="code" href="class_qwt_column_symbol.html#aaace508375eef3ee23ed6c47b1d65ef2ad21d1b393a2474a1caa6a9d83daa8f21">00109</a>         <a class="code" href="class_qwt_column_symbol.html#aaace508375eef3ee23ed6c47b1d65ef2ad21d1b393a2474a1caa6a9d83daa8f21">Box</a>,
<a name="l00110"></a>00110 
<a name="l00116"></a><a class="code" href="class_qwt_column_symbol.html#aaace508375eef3ee23ed6c47b1d65ef2aa9a5f984f62fb53ce3eeea35be3b0536">00116</a>         UserStyle = 1000
<a name="l00117"></a>00117     };
<a name="l00118"></a>00118 
<a name="l00123"></a><a class="code" href="class_qwt_column_symbol.html#a4b97f7748370447559a11a5adeb70e44">00123</a>     <span class="keyword">enum</span> <a class="code" href="class_qwt_column_symbol.html#a4b97f7748370447559a11a5adeb70e44">FrameStyle</a>
<a name="l00124"></a>00124     {
<a name="l00126"></a><a class="code" href="class_qwt_column_symbol.html#a4b97f7748370447559a11a5adeb70e44a11a035d598228e1498b98153e3e9e043">00126</a>         <a class="code" href="class_qwt_column_symbol.html#a4b97f7748370447559a11a5adeb70e44a11a035d598228e1498b98153e3e9e043" title="No frame.">NoFrame</a>,
<a name="l00127"></a>00127 
<a name="l00129"></a><a class="code" href="class_qwt_column_symbol.html#a4b97f7748370447559a11a5adeb70e44a2841bca1e2a5d94fbfc5a51787460be1">00129</a>         <a class="code" href="class_qwt_column_symbol.html#a4b97f7748370447559a11a5adeb70e44a2841bca1e2a5d94fbfc5a51787460be1" title="A plain frame style.">Plain</a>,
<a name="l00130"></a>00130 
<a name="l00132"></a><a class="code" href="class_qwt_column_symbol.html#a4b97f7748370447559a11a5adeb70e44a078f2b7db1cee79e83878fcc869df62e">00132</a>         Raised
<a name="l00133"></a>00133     };
<a name="l00134"></a>00134 
<a name="l00135"></a>00135 <span class="keyword">public</span>:
<a name="l00136"></a>00136     <a class="code" href="class_qwt_column_symbol.html" title="A drawing primitive for columns.">QwtColumnSymbol</a>( Style = NoStyle );
<a name="l00137"></a>00137     <span class="keyword">virtual</span> ~<a class="code" href="class_qwt_column_symbol.html" title="A drawing primitive for columns.">QwtColumnSymbol</a>();
<a name="l00138"></a>00138 
<a name="l00139"></a>00139     <span class="keywordtype">void</span> setFrameStyle( FrameStyle style );
<a name="l00140"></a>00140     FrameStyle frameStyle() <span class="keyword">const</span>;
<a name="l00141"></a>00141 
<a name="l00142"></a>00142     <span class="keywordtype">void</span> setLineWidth( <span class="keywordtype">int</span> width );
<a name="l00143"></a>00143     <span class="keywordtype">int</span> lineWidth() <span class="keyword">const</span>;
<a name="l00144"></a>00144 
<a name="l00145"></a>00145     <span class="keywordtype">void</span> setPalette( <span class="keyword">const</span> QPalette &amp; );
<a name="l00146"></a>00146     <span class="keyword">const</span> QPalette &amp;palette() <span class="keyword">const</span>;
<a name="l00147"></a>00147 
<a name="l00148"></a>00148     <span class="keywordtype">void</span> setStyle( Style );
<a name="l00149"></a>00149     Style style() <span class="keyword">const</span>;
<a name="l00150"></a>00150 
<a name="l00151"></a>00151     <span class="keyword">virtual</span> <span class="keywordtype">void</span> draw( QPainter *, <span class="keyword">const</span> <a class="code" href="class_qwt_column_rect.html" title="Directed rectangle representing bounding rectangle und orientation of a column.">QwtColumnRect</a> &amp; ) <span class="keyword">const</span>;
<a name="l00152"></a>00152 
<a name="l00153"></a>00153 <span class="keyword">protected</span>:
<a name="l00154"></a>00154     <span class="keywordtype">void</span> drawBox( QPainter *, <span class="keyword">const</span> <a class="code" href="class_qwt_column_rect.html" title="Directed rectangle representing bounding rectangle und orientation of a column.">QwtColumnRect</a> &amp; ) <span class="keyword">const</span>;
<a name="l00155"></a>00155 
<a name="l00156"></a>00156 <span class="keyword">private</span>:
<a name="l00157"></a>00157     <span class="keyword">class </span>PrivateData;
<a name="l00158"></a>00158     PrivateData* d_data;
<a name="l00159"></a>00159 };
<a name="l00160"></a>00160 
<a name="l00161"></a>00161 <span class="preprocessor">#endif</span>
</pre></div></div>
</div>
<hr class="footer"/><address class="footer"><small>Generated by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address>
</body>
</html>