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

Symbol.h

Go to the documentation of this file.
00001 //LabPlot : Symbol.h
00002 
00003 #ifndef SYMBOL_H
00004 #define SYMBOL_H
00005 
00006 #include <qcolor.h>
00007 #include <qdom.h>
00008 #include "symbols.h"
00009 
00010 class Symbol {
00011 public:
00012         Symbol(SType t=SNONE, QColor c="blue", int s=5, FType f=FNONE, QColor fc="red", int b=1);
00013         void save(QTextStream *t);
00014         void open(QTextStream *t,int version);
00015         QDomElement saveXML(QDomDocument doc);
00016         void openXML(QDomNode node);
00017         void draw(QPainter *p,int X, int Y);
00018         SType Type() { return type; }
00019         void setType(SType t) { type = t; }
00020         QColor Color() { return color; }
00021         void setColor(QString c) {color = QColor(c); }
00022         void setColor(QColor c) {color = c; }
00023         int Size() { return size; }
00024         void setSize(int s) { size = s; }
00025         FType Fill() { return fill; }
00026         void setFill(FType f) { fill = f; }
00027         QColor FillColor() { return fillcolor; }
00028         void setFillColor(QString fc) { fillcolor = QColor(fc); }
00029         void setFillColor(QColor fc) { fillcolor = fc; }
00030         int Brush() { return brush;}
00031         void setBrush(int b) { brush = b; }
00032 private:
00033         SType type;
00034         QColor color;
00035         int size;
00036         FType fill;
00037         QColor fillcolor;
00038         int brush;
00039 };
00040 
00041 #endif //SYMBOL_H

Generated on Sun Apr 2 02:05:09 2006 for LabPlot by  doxygen 1.4.4