author | drw <drw> | 2002-11-02 01:29:30 (UTC) |
---|---|---|
committer | drw <drw> | 2002-11-02 01:29:30 (UTC) |
commit | bf9388acdebf6e55345dff3bd1cd652b45a2202a (patch) (unidiff) | |
tree | 737ca55c9a30a1dde3aa289fd99cac7e4c30a3f7 /noncore/apps/checkbook/graphinfo.cpp | |
parent | 6e9225388baa9dfac4ed09f22189cfa98a610d39 (diff) | |
download | opie-bf9388acdebf6e55345dff3bd1cd652b45a2202a.zip opie-bf9388acdebf6e55345dff3bd1cd652b45a2202a.tar.gz opie-bf9388acdebf6e55345dff3bd1cd652b45a2202a.tar.bz2 |
Code updates/fixes
Diffstat (limited to 'noncore/apps/checkbook/graphinfo.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/checkbook/graphinfo.cpp | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/noncore/apps/checkbook/graphinfo.cpp b/noncore/apps/checkbook/graphinfo.cpp new file mode 100644 index 0000000..7b06bdb --- a/dev/null +++ b/noncore/apps/checkbook/graphinfo.cpp | |||
@@ -0,0 +1,84 @@ | |||
1 | /* | ||
2 | This file is part of the OPIE Project | ||
3 | =. | ||
4 | .=l. Copyright (c) 2002 Dan Williams <williamsdr@acm.org> | ||
5 | .>+-= | ||
6 | _;:, .> :=|. This file is free software; you can | ||
7 | .> <`_, > . <= redistribute it and/or modify it under | ||
8 | :`=1 )Y*s>-.-- : the terms of the GNU General Public | ||
9 | .="- .-=="i, .._ License as published by the Free Software | ||
10 | - . .-<_> .<> Foundation; either version 2 of the License, | ||
11 | ._= =} : or (at your option) any later version. | ||
12 | .%`+i> _;_. | ||
13 | .i_,=:_. -<s. This file is distributed in the hope that | ||
14 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | ||
15 | : .. .:, . . . without even the implied warranty of | ||
16 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | ||
17 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU General | ||
18 | ..}^=.= = ; Public License for more details. | ||
19 | ++= -. .` .: | ||
20 | : = ...= . :.=- You should have received a copy of the GNU | ||
21 | -. .:....=;==+<; General Public License along with this file; | ||
22 | -_. . . )=. = see the file COPYING. If not, write to the | ||
23 | -- :-=` Free Software Foundation, Inc., | ||
24 | 59 Temple Place - Suite 330, | ||
25 | Boston, MA 02111-1307, USA. | ||
26 | |||
27 | */ | ||
28 | |||
29 | #include "graphinfo.h" | ||
30 | |||
31 | GraphInfo::GraphInfo( GraphType type, DataPointList *data, const QString &title, | ||
32 | const QString &xtitle, const QString &ytitle ) | ||
33 | { | ||
34 | t = type; | ||
35 | d = data; | ||
36 | gt = title; | ||
37 | xt = xtitle; | ||
38 | yt = ytitle; | ||
39 | } | ||
40 | |||
41 | GraphInfo::GraphType GraphInfo::graphType() | ||
42 | { | ||
43 | return t; | ||
44 | } | ||
45 | |||
46 | void GraphInfo::setGraphType( GraphType type ) | ||
47 | { | ||
48 | t = type; | ||
49 | } | ||
50 | |||
51 | DataPointList *GraphInfo::dataPoints() | ||
52 | { | ||
53 | return d; | ||
54 | } | ||
55 | |||
56 | void GraphInfo::setDataPoints( DataPointList *data ) | ||
57 | { | ||
58 | d = data; | ||
59 | } | ||
60 | |||
61 | float GraphInfo::maxValue() | ||
62 | { | ||
63 | float max; | ||
64 | |||
65 | } | ||
66 | |||
67 | float GraphInfo::minValue() | ||
68 | { | ||
69 | } | ||
70 | |||
71 | void GraphInfo::setGraphTitle( const QString &title ) | ||
72 | { | ||
73 | gt = title; | ||
74 | } | ||
75 | |||
76 | void GraphInfo::setXAxisTitle( const QString &xtitle ) | ||
77 | { | ||
78 | xt = xtitle; | ||
79 | } | ||
80 | |||
81 | void GraphInfo::setYAxisTitle( const QString &ytitle ) | ||
82 | { | ||
83 | yt = ytitle; | ||
84 | } | ||