21#ifndef KPROPERTY_PROPERTYWIDGET_H
22#define KPROPERTY_PROPERTYWIDGET_H
25#include "koproperty_global.h"
36class KOPROPERTY_EXPORT Widget : public TQWidget
42 Widget( Property *property, TQWidget *parent, const char *name= "property_editor");
46 virtual TQVariant value() const = 0;
50 virtual void setValue( const TQVariant &value, bool emitChange= true) = 0;
56 virtual void setProperty( Property *property);
59 virtual void drawViewer(TQPainter *p, const TQColorGroup &cg, const TQRect &r, const TQVariant &value);
65 void setFocusWidget(TQWidget*focusProxy);
68 bool leavesTheSpaceForRevertButton() const;
72 bool hasBorders() const;
79 bool isReadOnly() const;
84 void setReadOnly( bool readOnly);
88 bool visibleFlag() const;
91 void valueChanged( Widget *widget);
92 void acceptInput( Widget *widget);
93 void rejectInput( Widget *widget);
96 void setEditor(TQWidget* editor);
99 virtual bool eventFilter(TQObject* watched, TQEvent* e);
101 virtual void resizeEvent(TQResizeEvent *e);
103 void setLeavesTheSpaceForRevertButton( bool set);
104 void setHasBorders( bool set);
113 void setVisibleFlag( bool visible);
The base class representing a single property.
Namespace for a set of classes implementing generic properties framework.
|