00001
00002
00003 #ifndef DIALOG_H
00004 #define DIALOG_H
00005
00006 #include <kdialog.h>
00007 #include <qvbox.h>
00008 #include <kpushbutton.h>
00009 #include <qgroupbox.h>
00010 #include <qcheckbox.h>
00011 #include <qtabwidget.h>
00012 #include <qvalidator.h>
00013 #include <klineedit.h>
00014 #include <klistbox.h>
00015 #include <kcolorbutton.h>
00016 #include <kcombobox.h>
00017 #include "Worksheet.h"
00018
00019 class Dialog: public KDialog
00020 {
00021 Q_OBJECT
00022 public:
00023 Dialog(class Worksheet *p, const char *name);
00024 protected:
00025 void resizeEvent(QResizeEvent *e);
00026 QVBox* surfaceStyle(QTabWidget *tw);
00027 QVBox* simpleStyle(QTabWidget *tw, Graph *graph, Style *style, Symbol *symbol);
00028 QVBox* annotateValuesTab(QTabWidget *tw, Graph *graph);
00029 QGroupBox *vbox, *gbox;
00030 Worksheet *p;
00031 KPushButton *ok, *apply, *cancel;
00032 KComboBox *cb2, *pencb, *brushcb, *sbrushcb;
00033 KComboBox *symbolcb, *symbolfillcb;
00034 KColorButton *color, *fcolor, *scolor, *sfcolor;
00035 QCheckBox *filled;
00036 KLineEdit *ssize, *widthle;
00037 QCheckBox *ccb, *dcb, *coloredcb, *meshcb, *relativecb;
00038 KLineEdit *numberle, *thresholdle;
00039 KComboBox *pcb, *dbrushcb;
00040 KColorButton *contourcolor;
00041 KComboBox *typecb, *positioncb;
00042 KLineEdit *distancele;
00043 private:
00044 void fillBrushBox(KComboBox *cb,SType t, QColor c,FType f, QColor s);
00045 void fillSymbolBox(QColor c, FType f, QColor s, int b);
00046 void fillSymbolFillBox(SType t, QColor c, QColor s, int b);
00047 private slots:
00048 void styleChanged();
00049 void symbolChanged();
00050 };
00051
00052 #endif //DIALOG_H