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 KLineEdit *filele;
00033 KComboBox *cb2, *pencb, *brushcb, *sbrushcb;
00034 KComboBox *symbolcb, *symbolfillcb;
00035 KColorButton *color, *fcolor, *scolor, *sfcolor;
00036 QCheckBox *filled;
00037 KLineEdit *ssize, *widthle;
00038 QCheckBox *ccb, *dcb, *coloredcb, *meshcb, *relativecb;
00039 KLineEdit *numberle, *thresholdle;
00040 KComboBox *pcb, *dbrushcb;
00041 KColorButton *contourcolor;
00042 KComboBox *typecb, *positioncb;
00043 KLineEdit *distancele;
00044 protected slots:
00045 void fileInfo();
00046 private:
00047 void fillBrushBox(KComboBox *cb,SType t, QColor c,FType f, QColor s);
00048 void fillSymbolBox(QColor c, FType f, QColor s, int b);
00049 void fillSymbolFillBox(SType t, QColor c, QColor s, int b);
00050 private slots:
00051 void styleChanged();
00052 void symbolChanged();
00053 };
00054
00055 #endif //DIALOG_H