widgetproxy.h
1/* This file is part of the KDE project
2 Copyright (C) 2004 Cedric Pasteur <cedric.pasteur@free.fr>
3 Copyright (C) 2004 Alexander Dymo <cloudtemple@mskat.net>
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
14
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
19*/
20
21#ifndef KPROPERTY_PROPERTYWIDGETPROXY_H
22#define KPROPERTY_PROPERTYWIDGETPROXY_H
23
24#include <tqwidget.h>
25#include "koproperty_global.h"
26
27class TQVariant;
28
29namespace KoProperty {
30
31class WidgetProxyPrivate;
32
37class KOPROPERTY_EXPORT WidgetProxy : public TQWidget
38{
39 TQ_OBJECT
40
41
42 public:
43 WidgetProxy(TQWidget *parent, const char *name=0);
45
46 void setPropertyType(int propertyType);
47 int propertyType() const;
48
49 TQVariant value() const;
50 void setValue(const TQVariant &value);
51
52 virtual bool setProperty( const char *name, const TQVariant &value);
53 virtual TQVariant property( const char *name) const;
54
55 protected:
56 void setWidget();
57
58 private:
59 WidgetProxyPrivate *d;
60};
61
62}
63
64#endif
Namespace for a set of classes implementing generic properties framework.