QElectroTech 0.200.1-dev
Loading...
Searching...
No Matches
ContactGroupSelectionDialog Class Reference

The ContactGroupSelectionDialog class A dialog that displays all slave contact groups defined by a master element in a table format. The user can select one group to assign to a slave element. Columns: #, Type, Subtype, Contacts, Terminals, T1, T2, ..., TN. More...

#include <contactgroupselectiondialog.h>

Inherits QDialog.

Collaboration diagram for ContactGroupSelectionDialog:
Collaboration graph

Public Member Functions

 ContactGroupSelectionDialog (const QVector< ElementData::SlaveContactGroup > &groups, const QSet< int > &usedGroupIndices, const ElementData &slaveData, QWidget *parent=nullptr)
int selectedIndex () const

Static Private Member Functions

static QString typeToString (ElementData::SlaveState type)
static QString subtypeToString (ElementData::SlaveType subtype)

Private Attributes

QTableWidget * m_table = nullptr
QPushButton * m_ok_button = nullptr
int m_selected_index = -1
QSet< int > m_used_indices
QSet< int > m_disabled_rows

Detailed Description

The ContactGroupSelectionDialog class A dialog that displays all slave contact groups defined by a master element in a table format. The user can select one group to assign to a slave element. Columns: #, Type, Subtype, Contacts, Terminals, T1, T2, ..., TN.

Constructor & Destructor Documentation

◆ ContactGroupSelectionDialog()

ContactGroupSelectionDialog::ContactGroupSelectionDialog ( const QVector< ElementData::SlaveContactGroup > & groups,
const QSet< int > & usedGroupIndices,
const ElementData & slaveData,
QWidget * parent = nullptr )
Here is the call graph for this function:

Member Function Documentation

◆ selectedIndex()

int ContactGroupSelectionDialog::selectedIndex ( ) const
Here is the caller graph for this function:

◆ subtypeToString()

QString ContactGroupSelectionDialog::subtypeToString ( ElementData::SlaveType subtype)
staticprivate
Here is the caller graph for this function:

◆ typeToString()

QString ContactGroupSelectionDialog::typeToString ( ElementData::SlaveState type)
staticprivate
Here is the caller graph for this function:

Member Data Documentation

◆ m_disabled_rows

QSet<int> ContactGroupSelectionDialog::m_disabled_rows
private

◆ m_ok_button

QPushButton* ContactGroupSelectionDialog::m_ok_button = nullptr
private

◆ m_selected_index

int ContactGroupSelectionDialog::m_selected_index = -1
private

◆ m_table

QTableWidget* ContactGroupSelectionDialog::m_table = nullptr
private

◆ m_used_indices

QSet<int> ContactGroupSelectionDialog::m_used_indices
private

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