00001
00002
00003 #ifndef OBJECTDIALOG_H
00004 #define OBJECTDIALOG_H
00005
00006 #include <qfont.h>
00007 #include <qcheckbox.h>
00008 #include <qlistview.h>
00009 #include "Worksheet.h"
00010 #include "Dialog.h"
00011 #include "RichTextWidget.h"
00012
00013 class ObjectDialog: public Dialog
00014 {
00015 Q_OBJECT
00016 public:
00017 ObjectDialog(Worksheet *p, const char *name, int activetab);
00018 public slots:
00019 void ok_clicked() { apply_clicked(); accept(); }
00020 void apply_clicked();
00021 private slots:
00022 void deleteObject();
00023 void selectFile();
00024 void updateLine();
00025 void updateLineListView();
00026 void updateLabel();
00027 void updateLabelListView();
00028 void updateRect();
00029 void updateRectListView();
00030 void updateEllipse();
00031 void updateEllipseListView();
00032 void updateImage();
00033 void updateImageListView();
00034 private:
00035 Worksheet *p;
00036 QTabWidget *tw;
00037 RichTextWidget *rtw;
00038 QListView *lv1, *lv2, *lv3, *lv4, *lv5;
00039 KLineEdit *lx1le, *ly1le, *lx2le, *ly2le;
00040 KLineEdit *rx1le, *ry1le, *rx2le, *ry2le;
00041 KLineEdit *ex1le, *ey1le, *ex2le, *ey2le;
00042 KLineEdit *ixle, *iyle;
00043 KLineEdit *lwle, *rwle, *ewle, *ile, *isle, *iale, *salle, *saale, *ealle, *eaale;
00044 KColorButton *lcb, *rcb, *rfcb, *ecb, *efcb, *safccb, *eafccb;
00045 QCheckBox *rfccb, *efccb, *startcb, *endcb, *safcb, *eafcb;
00046 };
00047
00048 #endif //OBJECTDIALOG_H