File: qwt__sclif_8h-source.html

package info (click to toggle)
libqwt 4.2.0-4.1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 9,832 kB
  • ctags: 5,512
  • sloc: cpp: 22,973; ansic: 244; makefile: 66
file content (59 lines) | stat: -rw-r--r-- 4,887 bytes parent folder | download | duplicates (5)
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
<!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&apos;s Guide: qwt_sclif.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&nbsp;Page</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a></div>
<h1>qwt_sclif.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_SCALE_IF_H</span>
00011 <span class="preprocessor"></span><span class="preprocessor">#define QWT_SCALE_IF_H</span>
00012 <span class="preprocessor"></span>
00013 <span class="preprocessor">#include "qwt_global.h"</span>
00014 <span class="preprocessor">#include "qwt_scldraw.h"</span>
00015 
<a name="l00040"></a><a class="code" href="class_qwt_scale_if.html">00040</a> <span class="keyword">class </span>QWT_EXPORT QwtScaleIf
00041 {
00042 <span class="keyword">public</span>:
00043     QwtScaleIf();
00044     <span class="keyword">virtual</span> ~QwtScaleIf();
00045     
00046     <span class="keywordtype">void</span> setScale (<span class="keywordtype">double</span> vmin, <span class="keywordtype">double</span> vmax, <span class="keywordtype">int</span> logarithmic = 0);
00047     <span class="keywordtype">void</span> setScale (<span class="keywordtype">double</span> vmin, <span class="keywordtype">double</span> vmax, <span class="keywordtype">double</span> step, <span class="keywordtype">int</span> logarithmic = 0);
00048     <span class="keywordtype">void</span> setScale(<span class="keyword">const</span> <a class="code" href="class_qwt_scale_div.html">QwtScaleDiv</a> &amp;s);
00049     <span class="keywordtype">void</span> setScaleMaxMajor( <span class="keywordtype">int</span> ticks);
00050     <span class="keywordtype">void</span> setScaleMaxMinor( <span class="keywordtype">int</span> ticks);
00051     <span class="keywordtype">void</span> autoScale();
<a name="l00053"></a><a class="code" href="class_qwt_scale_if.html#a8">00053</a>     <span class="keywordtype">int</span> scaleMaxMinor()<span class="keyword"> const </span>{<span class="keywordflow">return</span> d_maxMinor;}
<a name="l00055"></a><a class="code" href="class_qwt_scale_if.html#a9">00055</a>     <span class="keywordtype">int</span> scaleMaxMajor()<span class="keyword"> const </span>{<span class="keywordflow">return</span> d_maxMajor;}
00056 
00057     <span class="keywordtype">void</span> setScaleDraw(<a class="code" href="class_qwt_scale_draw.html">QwtScaleDraw</a> *);
00058     <span class="keyword">const</span> <a class="code" href="class_qwt_scale_draw.html">QwtScaleDraw</a> *scaleDraw() const;
00059 
00060 protected:
<a name="l00062"></a><a class="code" href="class_qwt_scale_if.html#b0">00062</a>     <span class="keywordtype">bool</span> hasUserScale() {<span class="keywordflow">return</span> d_userScale;}
00063 
00065     <span class="keyword">virtual</span> <span class="keywordtype">void</span> scaleChange() = 0;
00066     <a class="code" href="class_qwt_scale_draw.html">QwtScaleDraw</a> *scaleDraw();
00067 
00068 <span class="keyword">private</span>:
00069     <a class="code" href="class_qwt_scale_draw.html">QwtScaleDraw</a> *d_scaleDraw;
00070     <span class="keywordtype">int</span> d_maxMajor;
00071     <span class="keywordtype">int</span> d_maxMinor;
00072 
00073     <span class="keywordtype">bool</span> d_userScale;
00074 };
00075 <span class="preprocessor">#endif</span>
</div></pre><hr size="1"><address style="align: right;"><small>Generated on Tue Nov 16 21:12:21 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>