The PlcLinkWidget class Provides a dedicated widget for linking a PLC-Slave to a PLC-Master IO entry. Displays all PLC-Masters as expandable items, each showing their IO entries. Each IO entry can only be linked to one slave. Already-linked entries are shown as struck-through and greyed out.
More...
#include <plclinkwidget.h>
The PlcLinkWidget class Provides a dedicated widget for linking a PLC-Slave to a PLC-Master IO entry. Displays all PLC-Masters as expandable items, each showing their IO entries. Each IO entry can only be linked to one slave. Already-linked entries are shown as struck-through and greyed out.
◆ PlcLinkWidget()
| PlcLinkWidget::PlcLinkWidget |
( |
Element * | elmt, |
|
|
QWidget * | parent = nullptr ) |
|
explicit |
◆ ~PlcLinkWidget()
| PlcLinkWidget::~PlcLinkWidget |
( |
| ) |
|
|
overridedefault |
◆ apply()
| void PlcLinkWidget::apply |
( |
| ) |
|
|
overridevirtual |
◆ associatedUndo()
| QUndoCommand * PlcLinkWidget::associatedUndo |
( |
| ) |
const |
|
overridevirtual |
◆ buildPlcTree()
| void PlcLinkWidget::buildPlcTree |
( |
| ) |
|
|
private |
PlcLinkWidget::buildPlcTree Build the tree showing all PLC-Masters with their IO entries. IO entries already linked to a slave are shown as struck-through and greyed out.
◆ hideButtons()
| void PlcLinkWidget::hideButtons |
( |
| ) |
|
|
private |
◆ on_m_search_field_textEdited
| void PlcLinkWidget::on_m_search_field_textEdited |
( |
const QString & | text | ) |
|
|
privateslot |
◆ on_m_show_this_pb_clicked
| void PlcLinkWidget::on_m_show_this_pb_clicked |
( |
| ) |
|
|
privateslot |
◆ on_m_tree_widget_customContextMenuRequested
| void PlcLinkWidget::on_m_tree_widget_customContextMenuRequested |
( |
const QPoint & | pos | ) |
|
|
privateslot |
◆ on_m_unlink_pb_clicked
| void PlcLinkWidget::on_m_unlink_pb_clicked |
( |
| ) |
|
|
privateslot |
◆ setElement()
| void PlcLinkWidget::setElement |
( |
Element * | element | ) |
|
|
overridevirtual |
◆ showButtons()
| void PlcLinkWidget::showButtons |
( |
| ) |
|
|
private |
◆ title()
| QString PlcLinkWidget::title |
( |
| ) |
const |
|
overridevirtual |
◆ updateUi
| void PlcLinkWidget::updateUi |
( |
| ) |
|
|
overrideslot |
◆ m_element_to_link
| Element* PlcLinkWidget::m_element_to_link = nullptr |
|
private |
◆ m_hidden_masters_label
| QLabel* PlcLinkWidget::m_hidden_masters_label {nullptr} |
|
private |
◆ m_io_entry_hash
| QHash<QTreeWidgetItem*, PlcIoEntry> PlcLinkWidget::m_io_entry_hash |
|
private |
◆ m_label
| QLabel* PlcLinkWidget::m_label {nullptr} |
|
private |
◆ m_pending_io_index
| int PlcLinkWidget::m_pending_io_index = -1 |
|
private |
◆ m_search_field
| QLineEdit* PlcLinkWidget::m_search_field {nullptr} |
|
private |
◆ m_show_this_pb
| QPushButton* PlcLinkWidget::m_show_this_pb {nullptr} |
|
private |
◆ m_tree_widget
| QTreeWidget* PlcLinkWidget::m_tree_widget {nullptr} |
|
private |
◆ m_unlink_pb
| QPushButton* PlcLinkWidget::m_unlink_pb {nullptr} |
|
private |
The documentation for this class was generated from the following files: