NCL Composer
0.1.5
|
PropertyEditor is a Widget that allows to edit individual properties (also called attributes) of any entity. More...
#include <PropertyEditor.h>
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) |
PropertyEditor is a Widget that allows to edit individual properties (also called attributes) of any entity.
Definition at line 33 of file PropertyEditor.h.
|
explicit |
void PropertyEditor::setAttributeValue | ( | QString | property, |
QString | value | ||
) |
Set a value of an attribute.
property | Which property must be changed. |
value | The 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.
tagname | The current tagname. |
Definition at line 59 of file PropertyEditor.cpp.