kpresenter

KPrPropertyEditor.h

00001 // -*- Mode: c++; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 4; -*-
00002 /* This file is part of the KDE project
00003    Copyright (C) 2005 Thorsten Zachmann <zachmann@kde.org>
00004 
00005    This library is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU Library General Public
00007    License as published by the Free Software Foundation; either
00008    version 2 of the License, or (at your option) any later version.
00009 
00010    This library is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013    Library General Public License for more details.
00014 
00015    You should have received a copy of the GNU Library General Public License
00016    along with this library; see the file COPYING.LIB.  If not, write to
00017    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018  * Boston, MA 02110-1301, USA.
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 /* PROPERTYEDITOR_H */
KDE Home | KDE Accessibility Home | Description of Access Keys