kpresenter
KPrPropertyEditor.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef PROPERTYEDITOR_H
00021 #define PROPERTYEDITOR_H
00022
00023 #include <qtabdialog.h>
00024 #include <KPrGeneralProperty.h>
00025
00026 class KCommand;
00027 class KPrObject;
00028 class KPrPage;
00029 class KPrDocument;
00030 class KPrPenStyleWidget;
00031 class KPrBrushProperty;
00032 class KPrRectProperty;
00033 class KPrPolygonProperty;
00034 class KPrPieProperty;
00035 class KPrPictureProperty;
00036 class KPrTextProperty;
00037 class KPrObjectProperties;
00038
00039 class KPrPropertyEditor : public QTabDialog
00040 {
00041 Q_OBJECT
00042
00043 public:
00044 KPrPropertyEditor( QWidget *parent = 0, const char *name = 0, KPrPage *page = 0, KPrDocument *doc = 0 );
00045 ~KPrPropertyEditor();
00046
00047 KCommand * getCommand();
00048
00049 private slots:
00050 void slotDone();
00051
00052 private:
00053 void setupTabs();
00054 void setupTabPen( bool configureLineEnds );
00055 void setupTabBrush();
00056 void setupTabRect();
00057 void setupTabPolygon();
00058 void setupTabPie();
00059 void setupTabPicture();
00060 void setupTabText();
00061 void setupTabGeneral();
00062
00063 KPrGeneralProperty::GeneralValue getGeneralValue();
00064
00065 KPrPage *m_page;
00066 KPrDocument *m_doc;
00067 QPtrList<KPrObject> m_objects;
00068
00069 KPrPenStyleWidget *m_penProperty;
00070 KPrBrushProperty *m_brushProperty;
00071 KPrRectProperty *m_rectProperty;
00072 KPrPolygonProperty *m_polygonProperty;
00073 KPrPieProperty *m_pieProperty;
00074 KPrPictureProperty *m_pictureProperty;
00075 KPrTextProperty *m_textProperty;
00076 KPrGeneralProperty *m_generalProperty;
00077
00078 KPrObjectProperties *m_objectProperties;
00079
00080 signals:
00081 void propertiesOk();
00082 };
00083
00084 #endif
|