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

KDevelop Property Editing Library

  • lib
  • widgets
  • propeditor
childproperty.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 CHILDPROPERTY_H
21#define CHILDPROPERTY_H
22
23#include "property.h"
24
25namespace PropertyLib{
26
27class MultiProperty;
28
43class ChildProperty: public Property{
44public:
45 enum ChildPropertyType {
46 Size_Height,
47 Size_Width,
48 Point_X,
49 Point_Y,
50 Rect_X,
51 Rect_Y,
52 Rect_Width,
53 Rect_Height,
54 SizePolicy_HorData,
55 SizePolicy_VerData,
56 SizePolicy_HorStretch,
57 SizePolicy_VerStretch
58 };
59
61 ChildProperty() {}
63 ChildProperty(MultiProperty *parent, int type, ChildPropertyType childType, const TQString &name,
64 const TQString &description, const TQVariant &value = TQVariant(),
65 bool save = true, bool readOnly = false);
67 ChildProperty(MultiProperty *parent, const TQString &name, ChildPropertyType childType,
68 const TQStringVariantMap &v_valueList, const TQString &description,
69 const TQVariant &value = TQVariant(), bool save = true, bool readOnly = false);
70
72 virtual TQVariant value() const;
74 virtual void setValue(const TQVariant &value, bool rememberOldValue = true);
75
76private:
77 MultiProperty *m_parent;
78 ChildPropertyType m_childType;
79};
80
81}
82
83#endif
PropertyLib::ChildProperty
Child property.
Definition childproperty.h:43
PropertyLib::ChildProperty::setValue
virtual void setValue(const TQVariant &value, bool rememberOldValue=true)
Sets the value of the property.
Definition childproperty.cpp:44
PropertyLib::ChildProperty::value
virtual TQVariant value() const
Definition childproperty.cpp:107
PropertyLib::ChildProperty::ChildProperty
ChildProperty()
Constructs empty property.
Definition childproperty.h:61
PropertyLib::MultiProperty
Holds a list of properties with the same name and type.
Definition multiproperty.h:50
PropertyLib::Property
Property.
Definition property.h:62
PropertyLib::Property::readOnly
virtual bool readOnly() const
Tells if the property is read only.
Definition property.cpp:106
PropertyLib::Property::name
virtual TQString name() const
Definition property.cpp:57
PropertyLib::Property::description
virtual TQString description() const
Definition property.cpp:91
PropertyLib::Property::type
virtual int type() const
Definition property.cpp:67
PropertyLib
Namespace which contain property editing classes.
Definition childproperty.cpp:29
property.h
Contains PropertyLib::Property class and PropertyLib::Property::PropertyType enum.

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.9.8
This website is maintained by Timothy Pearson.