QElectroTech
0.8-dev
|
The LinkSingleElementWidget class this class provide a widget to select an element to be linked to the element given in the constructor. The element given in constructor must be linked with only one other element (like report or slave element). This widget detect automaticaly the kind of element given in the constructor and search all element that can be linked with it. If the element is already linked, the widget ask user to unlink. This widget embedded the diagram command for undo/redo the action. More...
#include <linksingleelementwidget.h>
Public Slots | |
void | updateUi () override |
LinkSingleElementWidget::updateUi Update the content of this widget. More... | |
void | buildTree () |
LinkSingleElementWidget::buildTree Build the content of the QTreeWidget. More... | |
Private Slots | |
void | diagramWasRemovedFromProject () |
LinkSingleElementWidget::diagramWasRemovedFromProject This slot is called when a diagram is removed from the parent project of edited element to update the content of this widget. More... | |
void | showedElementWasDeleted () |
void | linkTriggered () |
LinkSingleElementWidget::linkTriggered Action linkis triggered. More... | |
void | hideButtons () |
LinkSingleElementWidget::hideButtons Hide the button displayed when element is already linked. More... | |
void | showButtons () |
LinkSingleElementWidget::showButtons Show the button displayed when element is already linked. More... | |
void | headerCustomContextMenuRequested (const QPoint &pos) |
void | on_m_unlink_pb_clicked () |
void | on_m_tree_widget_itemDoubleClicked (QTreeWidgetItem *item, int column) |
LinkSingleElementWidget::on_m_tree_widget_itemDoubleClicked Highlight the element represented by item. More... | |
void | on_m_tree_widget_customContextMenuRequested (const QPoint &pos) |
void | on_m_show_linked_pb_clicked () |
void | on_m_show_this_pb_clicked () |
void | on_m_search_field_textEdited (const QString &arg1) |
LinkSingleElementWidget::on_m_search_field_textEdited Search all items which match with arg1 and shows it, other items is hidden. If arg1 is empty, show all items. More... | |
Private Member Functions | |
QList< Element * > | availableElements () |
LinkSingleElementWidget::availableElements. More... | |
void | setUpCompleter () |
LinkSingleElementWidget::setUpCompleter Setup the completer of search_field. More... | |
void | clearTreeWidget () |
LinkSingleElementWidget::clearTreeWidget Clear the tree widget. Delete all QTreeWidget (in the tree widget and in the hash). Clear the hash. More... | |
void | setUpHeaderLabels () |
Private Attributes | |
Ui::LinkSingleElementWidget * | ui |
bool | m_unlink = false |
Element::kind | m_filter |
QHash< QTreeWidgetItem *, Element * > | m_qtwi_elmt_hash |
QHash< QTreeWidgetItem *, QStringList > | m_qtwi_strl_hash |
QTreeWidgetItem * | m_qtwi_at_context_menu = nullptr |
QTreeWidgetItem * | m_pending_qtwi = nullptr |
Element * | m_showed_element = nullptr |
Element * | m_element_to_link = nullptr |
QMenu * | m_context_menu |
QAction * | m_link_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 LinkSingleElementWidget class this class provide a widget to select an element to be linked to the element given in the constructor. The element given in constructor must be linked with only one other element (like report or slave element). This widget detect automaticaly the kind of element given in the constructor and search all element that can be linked with it. If the element is already linked, the widget ask user to unlink. This widget embedded the diagram command for undo/redo the action.
|
explicit |
Methods.
LinkSingleElementWidget::LinkSingleElementWidget Default constructor.
elmt | the edited element |
parent | the parent widget |
|
override |
LinkSingleElementWidget::~LinkSingleElementWidget Default destructor.
|
overridevirtual |
LinkSingleElementWidget::apply Apply the new property of the edited element by pushing the associated undo command to parent project undo stack.
Reimplemented from PropertiesEditorWidget.
|
overridevirtual |
LinkSingleElementWidget::associatedUndo.
Reimplemented from PropertiesEditorWidget.
|
private |
LinkSingleElementWidget::availableElements.
|
slot |
LinkSingleElementWidget::buildTree Build the content of the QTreeWidget.
|
private |
LinkSingleElementWidget::clearTreeWidget Clear the tree widget. Delete all QTreeWidget (in the tree widget and in the hash). Clear the hash.
|
privateslot |
LinkSingleElementWidget::diagramWasRemovedFromProject This slot is called when a diagram is removed from the parent project of edited element to update the content of this widget.
|
privateslot |
|
privateslot |
LinkSingleElementWidget::hideButtons Hide the button displayed when element is already linked.
|
privateslot |
LinkSingleElementWidget::linkTriggered Action linkis triggered.
|
privateslot |
LinkSingleElementWidget::on_m_search_field_textEdited Search all items which match with arg1 and shows it, other items is hidden. If arg1 is empty, show all items.
arg1 |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
LinkSingleElementWidget::on_m_tree_widget_itemDoubleClicked Highlight the element represented by item.
item | |
column |
|
privateslot |
|
overridevirtual |
LinkSingleElementWidget::setElement Set element to be the edited element.
element |
Implements AbstractElementPropertiesEditorWidget.
|
overridevirtual |
LinkSingleElementWidget::setLiveEdit.
live_edit |
Reimplemented from PropertiesEditorWidget.
|
private |
LinkSingleElementWidget::setUpCompleter Setup the completer of search_field.
|
private |
|
privateslot |
LinkSingleElementWidget::showButtons Show the button displayed when element is already linked.
|
privateslot |
|
overridevirtual |
LinkSingleElementWidget::title.
Reimplemented from PropertiesEditorWidget.
|
overrideslot |
LinkSingleElementWidget::updateUi Update the content of this widget.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |