Code Documentation 3.6
Social Network Visualizer
Loading...
Searching...
No Matches
DialogEdgeEdit Class Reference

#include <forms/dialogedgeedit.h>

Inheritance diagram for DialogEdgeEdit:
Collaboration diagram for DialogEdgeEdit:

Signals

void userChoices (const QString &label, const double &weight, const QColor &color, const QHash< QString, QString > &customAttributes)

Public Member Functions

 DialogEdgeEdit (QWidget *parent, const int &v1, const int &v2, const QString &label, const double &weight, const QColor &color, const QHash< QString, QString > &customAttributes=QHash< QString, QString >())
 ~DialogEdgeEdit ()

Private Slots

void getUserChoices ()
 Collects all field values and emits userChoices().
void selectColor ()
 Opens a color picker and updates the color button icon.
void on_addPropertyBtn_clicked ()
 Adds a key/value pair from the input fields to the attributes table.
void on_removePropertyBtn_clicked ()
 Removes the selected row from the attributes table.

Private Attributes

Ui::DialogEdgeEdit * ui
int m_v1
int m_v2
QString m_label
double m_weight
QColor m_color
QHash< QString, QString > m_customAttributes
QPixmap m_pixmap

Constructor & Destructor Documentation

◆ DialogEdgeEdit()

DialogEdgeEdit::DialogEdgeEdit ( QWidget * parent,
const int & v1,
const int & v2,
const QString & label,
const double & weight,
const QColor & color,
const QHash< QString, QString > & customAttributes = QHash<QString,QString>() )
explicit

◆ ~DialogEdgeEdit()

DialogEdgeEdit::~DialogEdgeEdit ( )

Member Function Documentation

◆ getUserChoices

void DialogEdgeEdit::getUserChoices ( )
privateslot

Collects all field values and emits userChoices().

◆ on_addPropertyBtn_clicked

void DialogEdgeEdit::on_addPropertyBtn_clicked ( )
privateslot

Adds a key/value pair from the input fields to the attributes table.

◆ on_removePropertyBtn_clicked

void DialogEdgeEdit::on_removePropertyBtn_clicked ( )
privateslot

Removes the selected row from the attributes table.

◆ selectColor

void DialogEdgeEdit::selectColor ( )
privateslot

Opens a color picker and updates the color button icon.

◆ userChoices

void DialogEdgeEdit::userChoices ( const QString & label,
const double & weight,
const QColor & color,
const QHash< QString, QString > & customAttributes )
signal

Member Data Documentation

◆ m_color

QColor DialogEdgeEdit::m_color
private

◆ m_customAttributes

QHash<QString,QString> DialogEdgeEdit::m_customAttributes
private

◆ m_label

QString DialogEdgeEdit::m_label
private

◆ m_pixmap

QPixmap DialogEdgeEdit::m_pixmap
private

◆ m_v1

int DialogEdgeEdit::m_v1
private

◆ m_v2

int DialogEdgeEdit::m_v2
private

◆ m_weight

double DialogEdgeEdit::m_weight
private

◆ ui

Ui::DialogEdgeEdit* DialogEdgeEdit::ui
private

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