Main Page | Namespace List | Class Hierarchy | Class List | 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 "symbols.h"
00008 
00009 class Symbol {
00010 public:
00011         Symbol(SType t=SNONE, QColor c="blue", int s=5, FType f=FNONE, QColor fc="red", int b=1);
00012         void save(QTextStream *t);
00013         void open(QTextStream *t,int version);
00014         void draw(QPainter *p,int X, int Y);
00015         SType Type() { return type; }
00016         void setType(SType t) { type = t; }
00017         QColor Color() { return color; }
00018         void setColor(QString c) {color = QColor(c); }
00019         void setColor(QColor c) {color = c; }
00020         int Size() { return size; }
00021         void setSize(int s) { size = s; }
00022         FType Fill() { return fill; }
00023         void setFill(FType f) { fill = f; }
00024         QColor FillColor() { return fillcolor; }
00025         void setFillColor(QString fc) { fillcolor = QColor(fc); }
00026         void setFillColor(QColor fc) { fillcolor = fc; }
00027         int Brush() { return brush;}
00028         void setBrush(int b) { brush = b; }
00029 private:
00030         SType type;
00031         QColor color;
00032         int size;
00033         FType fill;
00034         QColor fillcolor;
00035         int brush;
00036 };
00037 
00038 #endif //SYMBOL_H

Generated on Fri Aug 19 21:34:45 2005 for LabPlot by doxygen 1.3.6