kexi

kexipropertyeditorview.h

00001 /* This file is part of the KDE project
00002    Copyright (C) 2004 Cedric Pasteur <cedric.pasteur@free.fr>
00003    Copyright (C) 2004-2005 Jaroslaw Staniek <js@iidea.pl>
00004 
00005    This program 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 program 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 program; see the file COPYING.  If not, write to
00017    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018  * Boston, MA 02110-1301, USA.
00019 */
00020 
00021 #ifndef KEXIPROPERTYEDITORVIEW_H
00022 #define KEXIPROPERTYEDITORVIEW_H
00023 
00024 //#include "kexiviewbase.h"
00025 #include <qwidget.h>
00026 
00027 class QLabel;
00028 class KexiMainWindow;
00029 
00030 namespace KoProperty {
00031     class Editor;
00032     class Set;
00033 }
00034 
00036 class KEXIEXTWIDGETS_EXPORT KexiObjectInfoLabel : public QWidget
00037 {
00038     public:
00039         KexiObjectInfoLabel(QWidget* parent, const char* name = 0);
00040         ~KexiObjectInfoLabel();
00041 
00042         void setObjectClassIcon(const QCString& name);
00043         QCString objectClassIcon() const { return m_classIcon; }
00044         void setObjectClassName(const QString& name);
00045         QString objectClassName() const { return m_className; }
00046         void setObjectName(const QCString& name);
00047         QCString objectName() const { return m_objectName; }
00048     protected:
00049         void updateName();
00050 
00051         QString m_className;
00052         QCString m_classIcon, m_objectName;
00053         QLabel *m_objectIconLabel, *m_objectNameLabel;
00054 };
00055 
00058 class KEXIEXTWIDGETS_EXPORT KexiPropertyEditorView : public QWidget //KexiViewBase
00059 {
00060     Q_OBJECT
00061 
00062     public:
00063         KexiPropertyEditorView(KexiMainWindow *mainWin, QWidget* parent);
00064         virtual ~KexiPropertyEditorView();
00065 
00066         virtual QSize sizeHint() const;
00067         virtual QSize minimumSizeHint() const;
00068         KoProperty::Editor *editor() const;
00069 
00070 //  public slots:
00071 //      virtual void setGeometry( const QRect &r );
00072 //      virtual void resize( int w, int h );
00073 
00074     protected slots:
00075         void slotPropertySetChanged(KoProperty::Set* );
00076 
00077     protected:
00078         class Private;
00079         Private *d;
00080 };
00081 
00082 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys