QElectroTech
0.8-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. More... | |
Public Member Functions | |
MasterPropertiesWidget (Element *elmt, QWidget *parent=nullptr) | |
MasterPropertiesWidget::MasterPropertiesWidget Default constructor. More... | |
~MasterPropertiesWidget () override | |
MasterPropertiesWidget::~MasterPropertiesWidget Destructor. More... | |
void | setElement (Element *element) override |
MasterPropertiesWidget::setElement Set the element to be edited. More... | |
void | apply () override |
MasterPropertiesWidget::apply If link betwen 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. More... | |
void | reset () override |
MasterPropertiesWidget::reset Reset curent widget, clear eveything and rebuild widget. More... | |
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. More... | |
QString | title () const override |
title More... | |
bool | setLiveEdit (bool live_edit) override |
MasterPropertiesWidget::setLiveEdit. More... | |
Public Member Functions inherited from AbstractElementPropertiesEditorWidget | |
AbstractElementPropertiesEditorWidget (QWidget *parent=nullptr) | |
Public Member Functions inherited from PropertiesEditorWidget | |
PropertiesEditorWidget (QWidget *parent=nullptr) | |
PropertiesEditorWidget::PropertiesEditorWidget Constructor. More... | |
virtual void | updateUi () |
bool | isLiveEdit () const |
PropertiesEditorWidget::isLiveEdit. More... | |
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 betwen 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 curent item in the free_list to linked_list.
|
privateslot |
MasterPropertiesWidget::on_unlink_button_clicked move curent item in linked_list to free_list.
|
overridevirtual |
MasterPropertiesWidget::reset Reset curent 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 |