kspread

kspread_propertyEditor.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 <kspread_generalProperty.h>
00025 
00026 class KCommand;
00027 
00028 namespace KSpread
00029 {
00030 
00031 class EmbeddedObject;
00032 class Sheet;
00033 class Doc;
00034 // class KPrPenStyleWidget;
00035 // class KPrBrushProperty;
00036 // class KPrRectProperty;
00037 // class KPrPolygonProperty;
00038 // class KPrPieProperty;
00039 // class KPrPictureProperty;
00040 // class KPrTextProperty;
00041 // class KPrObjectProperties;
00042 
00043 class PropertyEditor : public QTabDialog
00044 {
00045     Q_OBJECT
00046 
00047 public:
00048     PropertyEditor( QWidget *parent = 0, const char *name = 0, Sheet *page = 0, Doc *doc = 0 );
00049     ~PropertyEditor();
00050 
00051     KCommand * getCommand();
00052 
00053 private slots:
00054     void slotDone();
00055 
00056 private:
00057      void setupTabs();
00058 //     void setupTabPen( bool configureLineEnds );
00059 //     void setupTabBrush();
00060 //     void setupTabRect();
00061 //     void setupTabPolygon();
00062 //     void setupTabPie();
00063 //     void setupTabPicture();
00064 //     void setupTabText();
00065     void setupTabGeneral();
00066 
00067     GeneralProperty::GeneralValue getGeneralValue();
00068 
00069     Sheet *m_page;
00070     Doc *m_doc;
00071     QPtrList<EmbeddedObject> m_objects;
00072 
00073 //     KPrPenStyleWidget *m_penProperty;
00074 //     KPrBrushProperty *m_brushProperty;
00075 //     KPrRectProperty *m_rectProperty;
00076 //     KPrPolygonProperty *m_polygonProperty;
00077 //     KPrPieProperty *m_pieProperty;
00078 //     KPrPictureProperty *m_pictureProperty;
00079 //     KPrTextProperty *m_textProperty;
00080     GeneralProperty *m_generalProperty;
00081 
00082     //KPrObjectProperties *m_objectProperties;
00083 
00084 signals:
00085     void propertiesOk();
00086 };
00087 
00088 }
00089 
00090 #endif /* PROPERTYEDITOR_H */
KDE Home | KDE Accessibility Home | Description of Access Keys