A sidebar to edit informations of a node. More...
#include <nodepropertywidget.h>
Public Member Functions | |
NodePropertyWidget (const QString &title, QWidget *parent=0, Qt::WindowFlags flags=0) | |
~NodePropertyWidget () | |
void | setNode (Node *node) |
void | updateLabels () |
A sidebar to edit informations of a node.
The NodePropertyWidget should be used to change the informations of a node. It can change the caption, the labels and the syntax if it has a TextNodeContent.
This widget is allowed to dock on all docking areas.
NodePropertyWidget::NodePropertyWidget | ( | const QString & | title, | |
QWidget * | parent = 0 , |
|||
Qt::WindowFlags | flags = 0 | |||
) |
The constructor.
Constructs a NodePropertyWidget which is a child of parent and has the provided window flags. The NodePropertyWidget will be paced in the right dock widget area.
The window title is set to title. This title is used when the NodePropertyWidget is docked and undocked. It is also used in the context menu provided by MainWindow. The parameters will be passed to the QDockWidget constructor.
title | The title of this NodePropertyWidget. | |
parent | The parent of this NodePropertyWidget. | |
flags | The window flags of this NodePropertyWidget. |
NodePropertyWidget::~NodePropertyWidget | ( | ) |
The destructor.
Destroys the object.
void NodePropertyWidget::setNode | ( | Node * | node | ) |
Set a node which will be shown and available for editing.
node | The node which will be shown. |
void NodePropertyWidget::updateLabels | ( | ) |
Use this function to update the labels shown in the labeltab of this NodePropertyWidget. This will be necessary after adding or removing labels from the system.