• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • KDevelop Property Editing Library
 

KDevelop Property Editing Library

  • lib
  • widgets
  • propeditor
propertywidgetproxy.h
1/***************************************************************************
2 * Copyright (C) 2004 by Alexander Dymo *
3 * cloudtemple@mskat.net *
4 * *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU Library General Public License as *
7 * published by the Free Software Foundation; either version 2 of the *
8 * License, or (at your option) any later version. *
9 * *
10 * This program 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 *
13 * GNU General Public License for more details. *
14 * *
15 * You should have received a copy of the GNU Library General Public *
16 * License along with this program; if not, write to the *
17 * Free Software Foundation, Inc., *
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
19 ***************************************************************************/
20#ifndef PROPERTYWIDGETPROXY_H
21#define PROPERTYWIDGETPROXY_H
22
23#include <tqwidget.h>
24#include <tqvariant.h>
25
26#include "multiproperty.h"
27
28class TQHBoxLayout;
29
30namespace PropertyLib{
31
32class PropertyWidget;
33
34#define PropertyType Property::PropertyType
35
42class PropertyWidgetProxy: public TQWidget
43{
44TQ_OBJECT
45
46TQ_PROPERTY( int propertyType READ propertyType WRITE setPropertyType DESIGNABLE true )
47TQ_PROPERTY( PropertyType propertyType2 READ propertyType2 WRITE setPropertyType2 DESIGNABLE false )
48public:
49 PropertyWidgetProxy(TQWidget *parent = 0, const char *name = 0);
50 ~PropertyWidgetProxy();
51
53 void setPropertyType(int propertyType);
54 int propertyType() const { return m_propertyType; }
56 void setPropertyType2(PropertyType propertyType);
57 PropertyType propertyType2() const { return m_propertyType; }
58
59 TQVariant value() const;
60 void setValue(const TQVariant &value);
61
64 bool setProperty( const char *name, const TQVariant &value);
65 TQVariant property( const char *name) const;
66
67protected:
68 virtual void setWidget();
69
70private:
71 Property *p;
72 MultiProperty *mp;
73
74 PropertyType m_propertyType;
75 PropertyWidget *m_editor;
76
77 TQHBoxLayout *m_layout;
78};
79
80}
81
82#endif
PropertyLib::MultiProperty
Holds a list of properties with the same name and type.
Definition multiproperty.h:50
PropertyLib::PropertyWidgetProxy::setPropertyType2
void setPropertyType2(PropertyType propertyType)
Sets the type of a property editor to appear.
Definition propertywidgetproxy.cpp:48
PropertyLib::PropertyWidgetProxy::setPropertyType
void setPropertyType(int propertyType)
Sets the type of a property editor to appear.
Definition propertywidgetproxy.cpp:42
PropertyLib::PropertyWidgetProxy::setProperty
bool setProperty(const char *name, const TQVariant &value)
Sets the type of an editor basing on the value if the name is "value".
Definition propertywidgetproxy.cpp:82
PropertyLib::PropertyWidget
An abstract base class of property viewer and editor vidget.
Definition propertywidget.h:49
PropertyLib::Property
Property.
Definition property.h:62
multiproperty.h
Contains PropertyLib::MultiProperty class.
PropertyLib
Namespace which contain property editing classes.
Definition childproperty.cpp:29

KDevelop Property Editing Library

Skip menu "KDevelop Property Editing Library"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

KDevelop Property Editing Library

Skip menu "KDevelop Property Editing Library"
  • buildtools
  •   lib
  •     base
  •     parsers
  •       autotools
  •       qmake
  •     widgets
  •   api
  • languages
  •   lib
  •     debugger
  •     designer_integration
  •     interfaces
  • lib
  •   catalog
  •   interfaces
  •     extensions
  •     external
  •     extras
  •   util
  •   widgets
  •     propeditor
  • parts
  •   documentation
  •     interfaces
  • src
  •   profileengine
  •     lib
Generated for KDevelop Property Editing Library by doxygen 1.15.0
This website is maintained by Timothy Pearson.