1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Qwt User's Guide: qwt_grid.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3.8 -->
<div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a> | <a class="qindex" href="pages.html">Related Pages</a></div>
<h1>qwt_grid.h</h1><pre class="fragment"><div>00001 <span class="comment">/* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************</span>
00002 <span class="comment"> * Qwt Widget Library</span>
00003 <span class="comment"> * Copyright (C) 1997 Josef Wilgen</span>
00004 <span class="comment"> * Copyright (C) 2002 Uwe Rathmann</span>
00005 <span class="comment"> * </span>
00006 <span class="comment"> * This library is free software; you can redistribute it and/or</span>
00007 <span class="comment"> * modify it under the terms of the Qwt License, Version 1.0</span>
00008 <span class="comment"> *****************************************************************************/</span>
00009
00010 <span class="preprocessor">#ifndef QWT_GRID_H</span>
00011 <span class="preprocessor"></span><span class="preprocessor">#define QWT_GRID_H</span>
00012 <span class="preprocessor"></span>
00013 <span class="preprocessor">#include <qpen.h></span>
00014 <span class="preprocessor">#include "qwt_global.h"</span>
00015 <span class="preprocessor">#include "qwt_dimap.h"</span>
00016 <span class="preprocessor">#include "qwt_scldiv.h"</span>
00017
00018 <span class="keyword">class </span>QPainter;
00019
<a name="l00032"></a><a class="code" href="class_qwt_grid.html">00032</a> <span class="keyword">class </span>QWT_EXPORT QwtGrid
00033 {
00034 <span class="keyword">public</span>:
00035
00036 QwtGrid();
00037 <span class="keyword">virtual</span> ~QwtGrid();
00038
00039 <span class="keyword">virtual</span> <span class="keywordtype">void</span> draw(QPainter *p, <span class="keyword">const</span> QRect &r,
00040 <span class="keyword">const</span> <a class="code" href="class_qwt_di_map.html">QwtDiMap</a> &mx, <span class="keyword">const</span> <a class="code" href="class_qwt_di_map.html">QwtDiMap</a> &my) <span class="keyword">const</span>;
00041
00042 <span class="keywordtype">void</span> enableX(<span class="keywordtype">bool</span> tf);
00043 <span class="keywordtype">bool</span> xEnabled() <span class="keyword">const</span>;
00044
00045 <span class="keywordtype">void</span> enableY(<span class="keywordtype">bool</span> tf);
00046 <span class="keywordtype">bool</span> yEnabled() <span class="keyword">const</span>;
00047
00048 <span class="keywordtype">void</span> enableXMin(<span class="keywordtype">bool</span> tf);
00049 <span class="keywordtype">bool</span> xMinEnabled() <span class="keyword">const</span>;
00050
00051 <span class="keywordtype">void</span> enableYMin(<span class="keywordtype">bool</span> tf);
00052 <span class="keywordtype">bool</span> yMinEnabled() <span class="keyword">const</span>;
00053
00054 <span class="keywordtype">void</span> setXDiv(<span class="keyword">const</span> <a class="code" href="class_qwt_scale_div.html">QwtScaleDiv</a> &sx);
00055 <span class="keyword">const</span> <a class="code" href="class_qwt_scale_div.html">QwtScaleDiv</a> &xScaleDiv() <span class="keyword">const</span>;
00056
00057 <span class="keywordtype">void</span> setYDiv(<span class="keyword">const</span> <a class="code" href="class_qwt_scale_div.html">QwtScaleDiv</a> &sy);
00058 <span class="keyword">const</span> <a class="code" href="class_qwt_scale_div.html">QwtScaleDiv</a> &yScaleDiv() <span class="keyword">const</span>;
00059
00060 <span class="keywordtype">void</span> setPen(<span class="keyword">const</span> QPen &p);
00061
00062 <span class="keywordtype">void</span> setMajPen(<span class="keyword">const</span> QPen &p);
00063 <span class="keyword">const</span> QPen& majPen() <span class="keyword">const</span>;
00064
00065 <span class="keywordtype">void</span> setMinPen(<span class="keyword">const</span> QPen &p);
00066 <span class="keyword">const</span> QPen& minPen() <span class="keyword">const</span>;
00067
00068
00069 <span class="keyword">protected</span>:
00070 <span class="keyword">virtual</span> <span class="keywordtype">void</span> gridChanged();
00071
00072 <span class="keyword">private</span>:
00073
00074 <span class="keywordtype">bool</span> d_xEnabled;
00075 <span class="keywordtype">bool</span> d_yEnabled;
00076 <span class="keywordtype">bool</span> d_xMinEnabled;
00077 <span class="keywordtype">bool</span> d_yMinEnabled;
00078
00079 <a class="code" href="class_qwt_scale_div.html">QwtScaleDiv</a> d_sdx;
00080 <a class="code" href="class_qwt_scale_div.html">QwtScaleDiv</a> d_sdy;
00081
00082 QPen d_majPen;
00083 QPen d_minPen;
00084 };
00085
00086 <span class="preprocessor">#endif</span>
</div></pre><hr size="1"><address style="align: right;"><small>Generated on Tue Nov 16 21:12:20 2004 for Qwt User's Guide by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 ></a> 1.3.8 </small></address>
</body>
</html>
|