NodePropertyWidget Class Reference

A sidebar to edit informations of a node. More...

#include <nodepropertywidget.h>

List of all members.

Public Member Functions

 NodePropertyWidget (const QString &title, QWidget *parent=0, Qt::WindowFlags flags=0)
 ~NodePropertyWidget ()
void setNode (Node *node)
void updateLabels ()

Detailed Description

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.

Author:
Manuel Unglaub

Constructor & Destructor Documentation

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.

Parameters:
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.


Member Function Documentation

void NodePropertyWidget::setNode ( Node node  ) 

Set a node which will be shown and available for editing.

Parameters:
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.


The documentation for this class was generated from the following files:
Generated on Fri May 14 19:12:51 2010 for Silence by  doxygen 1.6.3