Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

Graph.h

Go to the documentation of this file.
00001 //LabPlot : Graph.h
00002 
00003 #ifndef GRAPH_H
00004 #define GRAPH_H
00005 
00006 #include <qstring.h>
00007 #include <qstringlist.h>
00008 #include <klocale.h>
00009 #include "LRange.h"
00010 #include "Style.h"
00011 #include "Symbol.h"
00012 #include "AnnotateValues.h"
00013 #include "defs.h"
00014 
00015 class Graph
00016 {
00017 public:
00018         Graph(QString n="", QString label="",int t=0, Style st=Style(), 
00019                         Symbol sy=Symbol(),int nr=0, bool s=TRUE);
00020         void openGraph(QTextStream *t,int version);
00021         void saveGraph(QTextStream *t);
00022         QString Name() { return name; }
00023         QString Label() { return label; }
00024         void setLabel(QString l) { label=l; }
00025         PType Type() { return type; }
00026         Style getStyle() { return style; }
00027         void setStyle(Style s) { style = s; }
00028         Symbol getSymbol() { return symbol; }
00029         void setSymbol(Symbol s) { symbol = s; }
00030         int Number() { return number; }
00031         void setNumber(int n) { number = n; }
00032         bool isShown() { return shown; }
00033         void setShown(bool b) { shown = b; }
00034         AnnotateValues getAnnotateValues() { return av; }
00035         void setAnnotateValues(AnnotateValues a) { av=a;}
00036         
00037 protected:
00038         QString name, label;    // name and label (plotted name)
00039         PType type;             // plot type of a graph
00040         Style style;
00041         Symbol symbol;
00042         int number;
00043         bool shown;             // shown/hidden
00044         AnnotateValues av;
00045 };
00046 
00047 #endif // GRAPH_H

Generated on Sun Aug 29 14:56:04 2004 for LabPlot by doxygen 1.3.6