#include <forms/dialognodeedit.h>
|
| void | userChoices (const QString &label, const int &size, const QColor &color, const QString &shape, const QString &iconPath=QString(), const QHash< QString, QString > &customAttributes=QHash< QString, QString >()) |
| void | nodeEditDialogError (QString) |
|
| | DialogNodeEdit (QWidget *parent=Q_NULLPTR, const QStringList &nodeShapeList=QStringList(), const QStringList &iconPathList=QStringList(), const QString &label=QString(), const int &size=0, const QColor &color=QColor(), const QString &shape=QString(), const QString &path=QString(), const QHash< QString, QString > &customAttributes=QHash< QString, QString >()) |
| | ~DialogNodeEdit () |
◆ DialogNodeEdit()
| SOCNETV_USE_NAMESPACE DialogNodeEdit::DialogNodeEdit |
( |
QWidget * | parent = Q_NULLPTR, |
|
|
const QStringList & | nodeShapeList = QStringList(), |
|
|
const QStringList & | iconPathList = QStringList(), |
|
|
const QString & | label = QString(), |
|
|
const int & | size = 0, |
|
|
const QColor & | color = QColor(), |
|
|
const QString & | shape = QString(), |
|
|
const QString & | path = QString(), |
|
|
const QHash< QString, QString > & | customAttributes = QHash<QString, QString>() ) |
|
explicit |
◆ ~DialogNodeEdit()
| DialogNodeEdit::~DialogNodeEdit |
( |
| ) |
|
◆ checkErrors
| void DialogNodeEdit::checkErrors |
( |
| ) |
|
|
privateslot |
◆ getNodeIconFile
| void DialogNodeEdit::getNodeIconFile |
( |
| ) |
|
|
privateslot |
◆ getNodeShape
| void DialogNodeEdit::getNodeShape |
( |
const int & | nodeShapeIndex | ) |
|
|
privateslot |
Sets the node shape based on the provided index and updates the UI accordingly.
This function takes an integer index representing a node shape and sets the corresponding shape name to the nodeShape member variable. It also updates the UI elements based on whether the selected shape is custom or not.
- Parameters
-
| nodeShapeIndex | The index representing the node shape. It should correspond to one of the values defined in the NodeShape enumeration. |
The function performs the following actions:
- Maps the nodeShapeIndex to a string representation of the shape.
- If the node shape is custom, enables the text edit and file button, sets the icon path, and updates the UI elements with the custom icon.
- If the node shape is not custom, disables the text edit and file button, clears the icon path, and resets the UI elements.
◆ getUserChoices
| void DialogNodeEdit::getUserChoices |
( |
| ) |
|
|
privateslot |
◆ nodeEditDialogError
| void DialogNodeEdit::nodeEditDialogError |
( |
QString | | ) |
|
|
signal |
◆ on_addPropertyButton_clicked
| void DialogNodeEdit::on_addPropertyButton_clicked |
( |
| ) |
|
|
privateslot |
Slot function that is called when the "Add Property" button is clicked.
This function retrieves the key and value from the respective line edits, checks if both are non-empty, and if so, inserts the key-value pair into the custom attributes map and updates the custom attributes table with the new entry. After adding the new property, it clears the input fields.
◆ on_removePropertyButton_clicked
| void DialogNodeEdit::on_removePropertyButton_clicked |
( |
| ) |
|
|
privateslot |
Slot function called when the remove property button is clicked.
This function removes the currently selected property from the custom attributes table and the internal custom attributes map. If a row is selected in the table, it retrieves the key from the first column of the selected row, removes the corresponding entry from the custom attributes map, and then removes the row from the table.
◆ selectColor
| void DialogNodeEdit::selectColor |
( |
| ) |
|
|
privateslot |
◆ userChoices
| void DialogNodeEdit::userChoices |
( |
const QString & | label, |
|
|
const int & | size, |
|
|
const QColor & | color, |
|
|
const QString & | shape, |
|
|
const QString & | iconPath = QString(), |
|
|
const QHash< QString, QString > & | customAttributes = QHash< QString, QString >() ) |
|
signal |
◆ iconPath
| QString DialogNodeEdit::iconPath |
|
private |
◆ m_customAttributes
| QHash<QString, QString> DialogNodeEdit::m_customAttributes |
|
private |
◆ m_iconList
| QStringList DialogNodeEdit::m_iconList |
|
private |
◆ m_shapeList
| QStringList DialogNodeEdit::m_shapeList |
|
private |
◆ nodeColor
| QColor DialogNodeEdit::nodeColor |
|
private |
◆ nodeLabel
| QString DialogNodeEdit::nodeLabel |
|
private |
◆ nodeShape
| QString DialogNodeEdit::nodeShape |
|
private |
◆ nodeSize
| int DialogNodeEdit::nodeSize |
|
private |
◆ nodeValue
| QString DialogNodeEdit::nodeValue |
|
private |
◆ pixmap
| QPixmap DialogNodeEdit::pixmap |
|
private |
◆ ui
| Ui::DialogNodeEdit* DialogNodeEdit::ui |
|
private |
The documentation for this class was generated from the following files: