QElectroTech 0.100.0-dev
|
The MasterPropertiesWidget class This class is a widget for make link between a master element with several slave element. This class embenddedthe undo/redo command when apply new connection. More...
#include <masterpropertieswidget.h>
Public Slots | |
void | updateUi () override |
MasterPropertiesWidget::updateUi Build the interface of the widget. | |
Public Member Functions | |
MasterPropertiesWidget (Element *elmt, QWidget *parent=nullptr) | |
MasterPropertiesWidget::MasterPropertiesWidget Default constructor. | |
~MasterPropertiesWidget () override | |
MasterPropertiesWidget::~MasterPropertiesWidget Destructor. | |
void | setElement (Element *element) override |
MasterPropertiesWidget::setElement Set the element to be edited. | |
void | apply () override |
MasterPropertiesWidget::apply If link between edited element and other change, apply the change with a QUndoCommand (got with method associatedUndo) pushed to the stack of element project. Return true if link change, else false. | |
void | reset () override |
MasterPropertiesWidget::reset Reset current widget, clear eveything and rebuild widget. | |
QUndoCommand * | associatedUndo () const override |
MasterPropertiesWidget::associatedUndo If link between the edited element and other change, return a QUndoCommand with this change. If no change return nullptr. | |
QString | title () const override |
title | |
bool | setLiveEdit (bool live_edit) override |
MasterPropertiesWidget::setLiveEdit. | |
Public Member Functions inherited from AbstractElementPropertiesEditorWidget | |
AbstractElementPropertiesEditorWidget (QWidget *parent=nullptr) | |
Public Member Functions inherited from PropertiesEditorWidget | |
PropertiesEditorWidget (QWidget *parent=nullptr) | |
PropertiesEditorWidget::PropertiesEditorWidget Constructor. | |
virtual void | updateUi () |
bool | isLiveEdit () const |
PropertiesEditorWidget::isLiveEdit. | |
Private Slots | |
void | headerCustomContextMenuRequested (const QPoint &pos) |
MasterPropertiesWidget::headerCustomContextMenuRequested. | |
void | on_link_button_clicked () |
MasterPropertiesWidget::on_link_button_clicked move current item in the free_list to linked_list. | |
void | on_unlink_button_clicked () |
MasterPropertiesWidget::on_unlink_button_clicked move current item in linked_list to free_list. | |
void | showElementFromTWI (QTreeWidgetItem *qtwi, int column) |
MasterPropertiesWidget::showElementFromTWI Show the element corresponding to the given QTreeWidgetItem. | |
void | showedElementWasDeleted () |
MasterPropertiesWidget::showedElementWasDeleted Set to nullptr the current showed element when he was deleted. | |
void | diagramWasdeletedFromProject () |
MasterPropertiesWidget::diagramWasdeletedFromProject This slot is called when a diagram is removed from the parent project of edited element to update the content of this widget. | |
void | customContextMenu (const QPoint &pos, int i=0) |
MasterPropertiesWidget::customContextMenu Display a context menu. | |
Private Attributes | |
Ui::MasterPropertiesWidget * | ui |
QHash< QTreeWidgetItem *, Element * > | m_qtwi_hash |
QTreeWidgetItem * | m_qtwi_at_context_menu = nullptr |
QPointer< Element > | m_showed_element |
QETProject * | m_project |
QMenu * | m_context_menu |
QAction * | m_link_action |
QAction * | m_unlink_action |
QAction * | m_show_qtwi |
QAction * | m_show_element |
QAction * | m_save_header_state |
Additional Inherited Members | |
Protected Member Functions inherited from PropertiesEditorWidget | |
virtual void | enableLiveEdit () |
virtual void | disableLiveEdit () |
Protected Attributes inherited from AbstractElementPropertiesEditorWidget | |
QPointer< Element > | m_element |
Protected Attributes inherited from PropertiesEditorWidget | |
bool | m_live_edit |
The MasterPropertiesWidget class This class is a widget for make link between a master element with several slave element. This class embenddedthe undo/redo command when apply new connection.
|
explicit |
MasterPropertiesWidget::MasterPropertiesWidget Default constructor.
elmt | |
parent |
|
override |
MasterPropertiesWidget::~MasterPropertiesWidget Destructor.
|
overridevirtual |
MasterPropertiesWidget::apply If link between edited element and other change, apply the change with a QUndoCommand (got with method associatedUndo) pushed to the stack of element project. Return true if link change, else false.
Reimplemented from PropertiesEditorWidget.
|
overridevirtual |
MasterPropertiesWidget::associatedUndo If link between the edited element and other change, return a QUndoCommand with this change. If no change return nullptr.
Reimplemented from PropertiesEditorWidget.
|
privateslot |
MasterPropertiesWidget::customContextMenu Display a context menu.
pos | |
i | : the tree widget where the context menu was requested. |
|
privateslot |
MasterPropertiesWidget::diagramWasdeletedFromProject This slot is called when a diagram is removed from the parent project of edited element to update the content of this widget.
|
privateslot |
MasterPropertiesWidget::headerCustomContextMenuRequested.
pos |
|
privateslot |
MasterPropertiesWidget::on_link_button_clicked move current item in the free_list to linked_list.
|
privateslot |
MasterPropertiesWidget::on_unlink_button_clicked move current item in linked_list to free_list.
|
overridevirtual |
MasterPropertiesWidget::reset Reset current widget, clear eveything and rebuild widget.
Reimplemented from PropertiesEditorWidget.
|
overridevirtual |
MasterPropertiesWidget::setElement Set the element to be edited.
element |
Implements AbstractElementPropertiesEditorWidget.
|
overridevirtual |
MasterPropertiesWidget::setLiveEdit.
live_edit | = true : live edit is enable else false : live edit is disable. |
Reimplemented from PropertiesEditorWidget.
|
privateslot |
MasterPropertiesWidget::showedElementWasDeleted Set to nullptr the current showed element when he was deleted.
|
privateslot |
MasterPropertiesWidget::showElementFromTWI Show the element corresponding to the given QTreeWidgetItem.
qtwi | |
column |
|
inlineoverridevirtual |
|
overrideslot |
MasterPropertiesWidget::updateUi Build the interface of the widget.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |