kexi
kexipropertyeditorview.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef KEXIPROPERTYEDITORVIEW_H
00022 #define KEXIPROPERTYEDITORVIEW_H
00023
00024
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
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
00071
00072
00073
00074 protected slots:
00075 void slotPropertySetChanged(KoProperty::Set* );
00076
00077 protected:
00078 class Private;
00079 Private *d;
00080 };
00081
00082 #endif
|