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

KDevelop Property Editing Library

  • PropertyLib
  • PComboBox
Public Member Functions | Protected Slots | Protected Member Functions | List of all members
PropertyLib::PComboBox Class Reference

#include <pcombobox.h>

Inheritance diagram for PropertyLib::PComboBox:
PropertyLib::PropertyWidget PropertyLib::PCursorEdit

Public Member Functions

 PComboBox (MultiProperty *property, const TQMap< TQString, TQVariant > &list, TQWidget *parent=0, const char *name=0)
 
 PComboBox (MultiProperty *property, const TQMap< TQString, TQVariant > &list, bool rw, TQWidget *parent=0, const char *name=0)
 
virtual TQVariant value () const
 
virtual void setValue (const TQVariant &value, bool emitChange=true)
 
virtual void setValueList (const TQMap< TQString, TQVariant > &valueList)
 
- Public Member Functions inherited from PropertyLib::PropertyWidget
 PropertyWidget (MultiProperty *property, TQWidget *parent=0, const char *name=0)
 
virtual TQString propertyName () const
 
virtual void setProperty (MultiProperty *property)
 
virtual void drawViewer (TQPainter *p, const TQColorGroup &cg, const TQRect &r, const TQVariant &value)
 
virtual void undo ()
 

Protected Slots

void updateProperty (int val)
 

Protected Member Functions

TQString findDescription (const TQVariant &value)
 

Additional Inherited Members

- Signals inherited from PropertyLib::PropertyWidget
void propertyChanged (MultiProperty *property, const TQVariant &value)
 
- Protected Attributes inherited from PropertyLib::PropertyWidget
MultiProperty * m_property
 

Detailed Description

Property editor with combobox.

Definition at line 36 of file pcombobox.h.

Constructor & Destructor Documentation

◆ PComboBox() [1/2]

PropertyLib::PComboBox::PComboBox ( MultiProperty *  property,
const TQMap< TQString, TQVariant > &  list,
TQWidget *  parent = 0,
const char *  name = 0 
)

This constructor is used for read-only selection combo.

It provides a value from valueList

Definition at line 27 of file pcombobox.cpp.

◆ PComboBox() [2/2]

PropertyLib::PComboBox::PComboBox ( MultiProperty *  property,
const TQMap< TQString, TQVariant > &  list,
bool  rw,
TQWidget *  parent = 0,
const char *  name = 0 
)

This constructor is used for read-write selection combo.

It provides a value from valueList

Definition at line 33 of file pcombobox.cpp.

Member Function Documentation

◆ setValue()

void PropertyLib::PComboBox::setValue ( const TQVariant &  value,
bool  emitChange = true 
)
virtual

Sets the value shown in the editor widget.

Set emitChange to false if you don't want to emit propertyChanged signal.

Implements PropertyLib::PropertyWidget.

Definition at line 67 of file pcombobox.cpp.

◆ setValueList()

void PropertyLib::PComboBox::setValueList ( const TQMap< TQString, TQVariant > &  valueList)
virtual

Sets the list of possible values shown in the editor widget.

This method does not emit propertyChanged signal. Reimplemented because combobox is used to display possible values from valueList.

Reimplemented from PropertyLib::PropertyWidget.

Definition at line 94 of file pcombobox.cpp.

◆ value()

TQVariant PropertyLib::PComboBox::value ( ) const
virtual
Returns
the value currently entered in the editor widget.

Implements PropertyLib::PropertyWidget.

Definition at line 59 of file pcombobox.cpp.


The documentation for this class was generated from the following files:
  • pcombobox.h
  • pcombobox.cpp

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