NCL Composer  0.1.5
 All Classes Functions Variables Pages
PropertyEditor Class Reference

PropertyEditor is a Widget that allows to edit individual properties (also called attributes) of any entity. More...

#include <PropertyEditor.h>

Inheritance diagram for PropertyEditor:
Collaboration diagram for PropertyEditor:

Signals

void propertyChanged (QString property, QString value)
 

Public Member Functions

 PropertyEditor (QWidget *parent=0)
 Constructor. More...
 
virtual ~PropertyEditor ()
 Destructor.
 
void setTagname (QString tagname, QString name)
 Set the current tagname and update the available properties according to that tagname. More...
 
QString getTagname ()
 Get the current tagname.
 
void setCurrentName (QString name)
 Set the current name (id, name, ...) of the selected entity.
 
void setErrorMessage (QString errorMessage)
 Set the current error message (and change the color of the text) if the errorMessage is not empty.
 
QString getCurrentName ()
 Get the current name.
 
void setAttributeValue (QString property, QString value)
 Set a value of an attribute. More...
 
QSize sizeHint () const
 

Static Public Member Functions

static bool isURL (const QString &tagname, const QString &attr)
 

Detailed Description

PropertyEditor is a Widget that allows to edit individual properties (also called attributes) of any entity.

Definition at line 33 of file PropertyEditor.h.

Constructor & Destructor Documentation

PropertyEditor::PropertyEditor ( QWidget *  parent = 0)
explicit

Constructor.

Parameters
parentThe QObject parent.

Definition at line 34 of file PropertyEditor.cpp.

Member Function Documentation

void PropertyEditor::setAttributeValue ( QString  property,
QString  value 
)

Set a value of an attribute.

Parameters
propertyWhich property must be changed.
valueThe new Value of the property.

Definition at line 115 of file PropertyEditor.cpp.

void PropertyEditor::setTagname ( QString  tagname,
QString  name 
)

Set the current tagname and update the available properties according to that tagname.

The available properties are loaded from the configuration file of the current language.

Parameters
tagnameThe current tagname.

Definition at line 59 of file PropertyEditor.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following files: