QElectroTech  0.8-dev
searchandreplacewidget.h
Go to the documentation of this file.
1 /*
2  Copyright 2006-2020 The QElectroTech Team
3  This file is part of QElectroTech.
4 
5  QElectroTech is free software: you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation, either version 2 of the License, or
8  (at your option) any later version.
9 
10  QElectroTech is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
17 */
18 #ifndef SEARCHANDREPLACEWIDGET_H
19 #define SEARCHANDREPLACEWIDGET_H
20 
21 #include <QWidget>
22 #include <QTreeWidgetItemIterator>
23 
24 #include "element.h"
25 #include "independenttextitem.h"
26 #include "searchandreplaceworker.h"
28 
29 class QTreeWidgetItem;
30 
31 namespace Ui {
33 }
34 
35 class QETDiagramEditor;
36 
37 class SearchAndReplaceWidget : public QWidget
38 {
39  Q_OBJECT
40 
41  public:
42  explicit SearchAndReplaceWidget(QWidget *parent = nullptr);
43  ~SearchAndReplaceWidget() override;
44 
45  bool event(QEvent *event) override;
46  void clear();
47  void setEditor(QETDiagramEditor *editor);
48 
49  private:
50  void setUpTreeItems();
51  void setHideAdvanced(bool hide);
52  void fillItemsList();
53  void addElement(Element *element);
54  void search();
55 
56  void setVisibleAllParents(QTreeWidgetItem *item,
57  bool expend_parent = true);
58  QTreeWidgetItem *nextItem(
59  QTreeWidgetItem *item=nullptr,
60  QTreeWidgetItemIterator::IteratorFlag flags
62  QTreeWidgetItem *previousItem(
63  QTreeWidgetItem *item=nullptr,
64  QTreeWidgetItemIterator::IteratorFlag flags
67  void itemChanged(QTreeWidgetItem *item, int column);
68  void setChildCheckState(QTreeWidgetItem *item,
69  Qt::CheckState check,
70  bool deep = true);
71  void updateParentCheckState(QTreeWidgetItem *item,
72  bool all_parents = true);
73  void activateNextChecked();
74  QList<Diagram *> selectedDiagram() const;
75  QList<Element *> selectedElement() const;
76  QList<Conductor *> selectedConductor() const;
77  QList<IndependentTextItem *> selectedText() const;
78 
79  static QStringList searchTerms(Diagram *diagram);
80  static QStringList searchTerms(Element *element);
81  static QStringList searchTerms(Conductor *conductor);
82  static QStringList searchTerms(QString str);
83 
84  private slots:
86  void on_m_advanced_pb_toggled(bool checked);
87  void on_m_tree_widget_itemDoubleClicked(QTreeWidgetItem *item,
88  int column);
89  void on_m_reload_pb_clicked();
91  QTreeWidgetItem *current,
92  QTreeWidgetItem *previous);
93  void on_m_next_pb_clicked();
95  void on_m_folio_pb_clicked();
99  void on_m_mode_cb_currentIndexChanged(int index);
103 
104  private:
105  Ui::SearchAndReplaceWidget *ui;
107  QTreeWidgetItem *m_root_qtwi = nullptr,
108  *m_folio_qtwi = nullptr,
109  *m_indi_text_qtwi = nullptr,
110  *m_elements_qtwi = nullptr,
111  *m_simple_elmt_qtwi = nullptr,
112  *m_master_elmt_qtwi = nullptr,
113  *m_slave_elmt_qtwi = nullptr,
114  *m_report_elmt_qtwi = nullptr,
116  *m_conductor_qtwi = nullptr;
117  QList<QTreeWidgetItem *> m_qtwi_elmts;
118  QList<QTreeWidgetItem *> m_category_qtwi;
119  QHash<QTreeWidgetItem *, QPointer <Element>> m_element_hash;
120  QHash<QTreeWidgetItem *,
121  QPointer <IndependentTextItem>> m_text_hash;
122  QHash<QTreeWidgetItem *, QPointer <Conductor>> m_conductor_hash;
123  QPointer<Element> m_highlighted_element;
124  QPointer<QGraphicsObject> m_last_selected;
125  QHash<QTreeWidgetItem *, QPointer <Diagram>> m_diagram_hash;
129 };
130 
131 #endif // SEARCHANDREPLACEWIDGET_H
SearchAndReplaceWidget::searchTerms
static QStringList searchTerms(QString str)
Element::Terminale
@ Terminale
Definition: element.h:57
SearchAndReplaceWidget::addElement
void addElement(Element *element)
SearchAndReplaceWidget::addElement Add a tree widget item for element.
Definition: searchandreplacewidget.cpp:315
SearchAndReplaceWidget::selectedDiagram
QList< Diagram * > selectedDiagram() const
SearchAndReplaceWidget::selectedDiagram.
Definition: searchandreplacewidget.cpp:673
DiagramContext::keys
QList< QString > keys(KeyOrder=None) const
Definition: diagramcontext.cpp:49
Element::linkType
virtual kind linkType() const
Definition: element.h:159
SearchAndReplaceWidget::m_slave_elmt_qtwi
QTreeWidgetItem * m_slave_elmt_qtwi
Definition: searchandreplacewidget.h:113
SearchAndReplaceWidget::m_last_selected
QPointer< QGraphicsObject > m_last_selected
Definition: searchandreplacewidget.h:124
QET::Icons::ElementTerminal
QIcon ElementTerminal
Definition: qeticons.cpp:221
DynamicElementTextItem
The DynamicElementTextItem class This class provide a simple text field of element who can be added o...
Definition: dynamicelementtextitem.h:39
QET::All
@ All
Definition: qet.h:110
SearchAndReplaceWidget::setEditor
void setEditor(QETDiagramEditor *editor)
SearchAndReplaceWidget::setEditor Set the diagram editor of this widget.
Definition: searchandreplacewidget.cpp:144
SearchAndReplaceWorker::m_indi_text
QString m_indi_text
Definition: searchandreplaceworker.h:93
QWidgetAnimation::setHidden
void setHidden(bool hidden)
QWidgetAnimation::setHidden true hide, false show.
Definition: qwidgetanimation.cpp:160
SearchAndReplaceWorker::replaceConductor
void replaceConductor(QList< Conductor * > list)
SearchAndReplaceWorker::replaceConductor Replace all properties of each conductor in list All conduct...
Definition: searchandreplaceworker.cpp:197
QET::Icons::FolioXrefComing
QIcon FolioXrefComing
Definition: qeticons.cpp:220
ReplaceConductorDialog
The ReplaceConductorDialog class A Qdialog to edit a conductor properties, use for the search and rep...
Definition: replaceconductordialog.h:34
SearchAndReplaceWorker::m_conductor_properties
ConductorProperties m_conductor_properties
Definition: searchandreplaceworker.h:94
SearchAndReplaceWidget::activateNextChecked
void activateNextChecked()
SearchAndReplaceWidget::activateNextChecked Activate the next checked (and visible) item.
Definition: searchandreplacewidget.cpp:656
qwidgetanimation.h
SearchAndReplaceWidget
Definition: searchandreplacewidget.h:38
Element::elementInformations
DiagramContext elementInformations() const
Definition: element.h:97
conductor.h
SearchAndReplaceWorker::replaceIndiText
void replaceIndiText(QList< IndependentTextItem * > list)
SearchAndReplaceWorker::replaceIndiText Replace all displayed text of independent text of list Each m...
Definition: searchandreplaceworker.cpp:158
Element::NextReport
@ NextReport
Definition: element.h:52
QET::Icons::ProjectProperties
QIcon ProjectProperties
Definition: qeticons.cpp:149
SearchAndReplaceWidget::on_m_previous_pb_clicked
void on_m_previous_pb_clicked()
Definition: searchandreplacewidget.cpp:992
SearchAndReplaceWidget::nextItem
QTreeWidgetItem * nextItem(QTreeWidgetItem *item=nullptr, QTreeWidgetItemIterator::IteratorFlag flags=QTreeWidgetItemIterator::All) const
SearchAndReplaceWidget::nextItem.
Definition: searchandreplacewidget.cpp:461
SearchAndReplaceWidget::m_worker
SearchAndReplaceWorker m_worker
Definition: searchandreplacewidget.h:126
replaceAdvancedDialog
Definition: replaceadvanceddialog.h:30
elementtextitemgroup.h
SearchAndReplaceWidget::on_m_quit_button_clicked
void on_m_quit_button_clicked()
SearchAndReplaceWidget::on_m_quit_button_clicked.
Definition: searchandreplacewidget.cpp:849
QETApp::elementInfoKeys
static QStringList elementInfoKeys()
QETApp::elementInfoKeys.
Definition: qetapp.cpp:366
SearchAndReplaceWidget::m_category_qtwi
QList< QTreeWidgetItem * > m_category_qtwi
Definition: searchandreplacewidget.h:118
DiagramContent
Definition: diagramcontent.h:46
DiagramContent::m_elements
QList< Element * > m_elements
Definition: diagramcontent.h:69
SearchAndReplaceWidget::m_editor
QETDiagramEditor * m_editor
Definition: searchandreplacewidget.h:106
SearchAndReplaceWidget::ui
Ui::SearchAndReplaceWidget * ui
Definition: searchandreplacewidget.h:105
QWidgetAnimation::availableSpace
@ availableSpace
Definition: qwidgetanimation.h:52
SearchAndReplaceWidget::m_conductor_qtwi
QTreeWidgetItem * m_conductor_qtwi
Definition: searchandreplacewidget.h:116
QET::Icons::PartText
QIcon PartText
Definition: qeticons.cpp:134
QETDiagramEditor::currentProject
QETProject * currentProject() const
QETDiagramEditor::currentProject.
Definition: qetdiagrameditor.cpp:1147
SearchAndReplaceWidget::SearchAndReplaceWidget
SearchAndReplaceWidget(QWidget *parent=nullptr)
SearchAndReplaceWidget::SearchAndReplaceWidget Constructor.
Definition: searchandreplacewidget.cpp:43
SearchAndReplaceWorker::replaceDiagram
void replaceDiagram(QList< Diagram * > diagram_list)
SearchAndReplaceWorker::replaceDiagram Replace all properties of each diagram in diagram_list,...
Definition: searchandreplaceworker.cpp:41
ReplaceFolioDialog
Definition: replacefoliowidget.h:61
Element::Simple
@ Simple
Definition: element.h:51
QET::Icons::Hide
QIcon Hide
Definition: qeticons.cpp:113
SearchAndReplaceWidget::on_m_folio_pb_clicked
void on_m_folio_pb_clicked()
Definition: searchandreplacewidget.cpp:1022
SearchAndReplaceWidget::m_diagram_hash
QHash< QTreeWidgetItem *, QPointer< Diagram > > m_diagram_hash
Definition: searchandreplacewidget.h:125
TitleBlockProperties::date
QDate date
Date (displayed by the default template)
Definition: titleblockproperties.h:56
Element::Slave
@ Slave
Definition: element.h:56
QET::Icons::Element
QIcon Element
Definition: qeticons.cpp:83
SearchAndReplaceWidget::m_conductor_hash
QHash< QTreeWidgetItem *, QPointer< Conductor > > m_conductor_hash
Definition: searchandreplacewidget.h:122
SearchAndReplaceWidget::searchTerms
static QStringList searchTerms(Diagram *diagram)
SearchAndReplaceWidget::searchTerms.
Definition: searchandreplacewidget.cpp:764
SearchAndReplaceWidget::m_terminal_elmt_qtwi
QTreeWidgetItem * m_terminal_elmt_qtwi
Definition: searchandreplacewidget.h:115
SearchAndReplaceWidget::m_folio_qtwi
QTreeWidgetItem * m_folio_qtwi
Definition: searchandreplacewidget.h:108
Diagram::border_and_titleblock
BorderTitleBlock border_and_titleblock
Diagram dimensions and title block.
Definition: diagram.h:83
qetapp.h
SearchAndReplaceWidget::event
bool event(QEvent *event) override
SearchAndReplaceWidget::event Reimplemented to clear the the lines edit and hide the advanced widgets...
Definition: searchandreplacewidget.cpp:84
TitleBlockProperties::context
DiagramContext context
Container for the additional, user-defined fields.
Definition: titleblockproperties.h:66
replacefoliowidget.h
TitleBlockProperties::title
QString title
Folio title (displayed by the default template)
Definition: titleblockproperties.h:54
Diagram
The Diagram class This class represents an electric diagram. It manages its various child elements,...
Definition: diagram.h:56
SearchAndReplaceWidget::m_qtwi_elmts
QList< QTreeWidgetItem * > m_qtwi_elmts
Definition: searchandreplacewidget.h:117
SearchAndReplaceWidget::on_m_conductor_pb_clicked
void on_m_conductor_pb_clicked()
SearchAndReplaceWidget::on_m_conductor_pb_clicked Open a dialog to edit the condutor properties.
Definition: searchandreplacewidget.cpp:1236
SearchAndReplaceWidget::on_m_advanced_replace_pb_clicked
void on_m_advanced_replace_pb_clicked()
SearchAndReplaceWidget::on_m_advanced_replace_pb_clicked Open the advanced editor.
Definition: searchandreplacewidget.cpp:1268
SearchAndReplaceWidget::on_m_replace_pb_clicked
void on_m_replace_pb_clicked()
SearchAndReplaceWidget::on_m_replace_pb_clicked Replace the current selection.
Definition: searchandreplacewidget.cpp:1053
qeticons.h
QETProject::diagrams
QList< Diagram * > diagrams() const
Definition: qetproject.cpp:217
TitleBlockProperties
Definition: titleblockproperties.h:29
SearchAndReplaceWidget::on_m_case_sensitive_cb_stateChanged
void on_m_case_sensitive_cb_stateChanged(int arg1)
SearchAndReplaceWidget::on_m_case_sensitive_cb_stateChanged Update the search when change the case se...
Definition: searchandreplacewidget.cpp:1226
SearchAndReplaceWidget::m_simple_elmt_qtwi
QTreeWidgetItem * m_simple_elmt_qtwi
Definition: searchandreplacewidget.h:111
QET::Icons::Conductor
QIcon Conductor
Definition: qeticons.cpp:35
SearchAndReplaceWidget::updateParentCheckState
void updateParentCheckState(QTreeWidgetItem *item, bool all_parents=true)
SearchAndReplaceWidget::updateParentCheckState.
Definition: searchandreplacewidget.cpp:611
SearchAndReplaceWidget::m_report_elmt_qtwi
QTreeWidgetItem * m_report_elmt_qtwi
Definition: searchandreplacewidget.h:114
TitleBlockProperties::locmach
QString locmach
Location(displayed by the default template)
Definition: titleblockproperties.h:59
ReplaceElementDialog
Definition: replaceelementdialog.h:31
replaceconductordialog.h
QET::Icons::ElementMaster
QIcon ElementMaster
Definition: qeticons.cpp:218
SearchAndReplaceWidget::m_highlighted_element
QPointer< Element > m_highlighted_element
Definition: searchandreplacewidget.h:123
SearchAndReplaceWidget::on_m_element_pb_clicked
void on_m_element_pb_clicked()
Definition: searchandreplacewidget.cpp:1183
BorderTitleBlock::exportTitleBlock
TitleBlockProperties exportTitleBlock()
BorderTitleBlock::exportTitleBlock.
Definition: bordertitleblock.cpp:279
Element::Master
@ Master
Definition: element.h:55
SearchAndReplaceWidget::on_m_tree_widget_currentItemChanged
void on_m_tree_widget_currentItemChanged(QTreeWidgetItem *current, QTreeWidgetItem *previous)
Definition: searchandreplacewidget.cpp:919
TitleBlockProperties::plant
QString plant
Plant (displayed by the default template)
Definition: titleblockproperties.h:58
SearchAndReplaceWidget::setChildCheckState
void setChildCheckState(QTreeWidgetItem *item, Qt::CheckState check, bool deep=true)
SearchAndReplaceWidget::setChildCheckState.
Definition: searchandreplacewidget.cpp:592
SearchAndReplaceWidget::on_m_tree_widget_itemDoubleClicked
void on_m_tree_widget_itemDoubleClicked(QTreeWidgetItem *item, int column)
Definition: searchandreplacewidget.cpp:864
element.h
Conductor::properties
ConductorProperties properties
Definition: conductor.h:48
DynamicElementTextItem::CompositeText
@ CompositeText
Definition: dynamicelementtextitem.h:58
SearchAndReplaceWidget::setUpTreeItems
void setUpTreeItems()
SearchAndReplaceWidget::setUpTreeItems Set up the main tree widget items.
Definition: searchandreplacewidget.cpp:152
SearchAndReplaceWidget::m_root_qtwi
QTreeWidgetItem * m_root_qtwi
Definition: searchandreplacewidget.h:107
QWidgetAnimation
The QWidgetAnimation class This class animate the show and hide function of a QWidget.
Definition: qwidgetanimation.h:46
DiagramContext::value
QVariant value(const QString &key) const
Definition: diagramcontext.cpp:100
SearchAndReplaceWidget::on_m_reload_pb_clicked
void on_m_reload_pb_clicked()
Definition: searchandreplacewidget.cpp:900
SearchAndReplaceWidget::clear
void clear()
SearchAndReplaceWidget::clear Clear the content of the search and replace line edit Clear all tree it...
Definition: searchandreplacewidget.cpp:110
Element
Definition: element.h:41
ConductorProperties::m_function
QString m_function
Definition: conductorproperties.h:90
QET::Icons::ElementSlave
QIcon ElementSlave
Definition: qeticons.cpp:219
replaceAdvancedDialog::advancedStruct
advancedReplaceStruct advancedStruct() const
replaceAdvancedDialog::advancedStruct
Definition: replaceadvanceddialog.cpp:79
QWidgetAnimation::minimumSizeHint
@ minimumSizeHint
Definition: qwidgetanimation.h:51
SearchAndReplaceWidget::fillItemsList
void fillItemsList()
SearchAndReplaceWidget::fillItemsList Fill the tree.
Definition: searchandreplacewidget.cpp:233
SearchAndReplaceWidget::search
void search()
SearchAndReplaceWidget::search Start the search.
Definition: searchandreplacewidget.cpp:359
SearchAndReplaceWidget::on_m_replace_all_pb_clicked
void on_m_replace_all_pb_clicked()
SearchAndReplaceWidget::on_m_replace_all_pb_clicked Replace all checked item.
Definition: searchandreplacewidget.cpp:1151
SearchAndReplaceWorker::invalidConductorProperties
static ConductorProperties invalidConductorProperties()
Definition: searchandreplaceworker.cpp:380
qetproject.h
DynamicElementTextItem::UserText
@ UserText
Definition: dynamicelementtextitem.h:56
TitleBlockProperties::filename
QString filename
Filename (displayed by the default template)
Definition: titleblockproperties.h:57
SearchAndReplaceWidget::m_element_hash
QHash< QTreeWidgetItem *, QPointer< Element > > m_element_hash
Definition: searchandreplacewidget.h:119
SearchAndReplaceWidget::on_m_advanced_pb_toggled
void on_m_advanced_pb_toggled(bool checked)
Definition: searchandreplacewidget.cpp:860
DiagramContent::m_potential_conductors
QList< Conductor * > m_potential_conductors
Definition: diagramcontent.h:76
SearchAndReplaceWidget::setHideAdvanced
void setHideAdvanced(bool hide)
SearchAndReplaceWidget::setHideAdvanced Hide advanced widgets.
Definition: searchandreplacewidget.cpp:223
SearchAndReplaceWidget::selectedConductor
QList< Conductor * > selectedConductor() const
SearchAndReplaceWidget::selectedConductor.
Definition: searchandreplacewidget.cpp:717
SearchAndReplaceWidget::m_vertical_animation
QWidgetAnimation * m_vertical_animation
Definition: searchandreplacewidget.h:127
SearchAndReplaceWorker
The SearchAndReplaceWorker class This class is the worker use to change properties when use the searc...
Definition: searchandreplaceworker.h:52
ReplaceElementDialog::context
DiagramContext context() const
ReplaceElementDialog::context.
Definition: replaceelementdialog.cpp:59
searchandreplacewidget.h
QET::Icons::it
QIcon it
Definition: qeticons.cpp:196
ReplaceConductorDialog::properties
ConductorProperties properties() const
ReplaceConductorDialog::properties.
Definition: replaceconductordialog.cpp:134
SearchAndReplaceWidget::selectedText
QList< IndependentTextItem * > selectedText() const
SearchAndReplaceWidget::selectedText.
Definition: searchandreplacewidget.cpp:740
Ui
Definition: autonumberingdockwidget.h:25
SearchAndReplaceWidget::m_text_hash
QHash< QTreeWidgetItem *, QPointer< IndependentTextItem > > m_text_hash
Definition: searchandreplacewidget.h:121
independenttextitem.h
SearchAndReplaceWidget::on_m_mode_cb_currentIndexChanged
void on_m_mode_cb_currentIndexChanged(int index)
SearchAndReplaceWidget::on_m_mode_cb_currentIndexChanged Update the search when user change mode.
Definition: searchandreplacewidget.cpp:1215
QETProject
Definition: qetproject.h:51
SearchAndReplaceWidget::m_horizontal_animation
QWidgetAnimation * m_horizontal_animation
Definition: searchandreplacewidget.h:128
ElementTextItemGroup
The ElementTextItemGroup class This class represent a group of element text Texts in the group can be...
Definition: elementtextitemgroup.h:36
ReplaceFolioDialog::setTitleBlockProperties
void setTitleBlockProperties(const TitleBlockProperties &properties)
ReplaceFolioDialog::setTitleBlockProperties.
Definition: replacefoliowidget.cpp:151
QETDiagramEditor
Definition: qetdiagrameditor.h:51
SearchAndReplaceWidget::m_indi_text_qtwi
QTreeWidgetItem * m_indi_text_qtwi
Definition: searchandreplacewidget.h:109
replaceelementdialog.h
TitleBlockProperties::author
QString author
Author of the diagram/folio (displayed by the default template)
Definition: titleblockproperties.h:55
SearchAndReplaceWidget::setVisibleAllParents
void setVisibleAllParents(QTreeWidgetItem *item, bool expend_parent=true)
SearchAndReplaceWidget::setVisibleAllParents Set visible all parents of item until the invisible root...
Definition: searchandreplacewidget.cpp:441
QET::Vertical
@ Vertical
Vertical segment.
Definition: qet.h:90
replaceadvanceddialog.h
ConductorProperties
The ConductorProperties class This class represents the functional properties of a particular conduct...
Definition: conductorproperties.h:68
SearchAndReplaceWorker::m_advanced_struct
advancedReplaceStruct m_advanced_struct
Definition: searchandreplaceworker.h:95
IndependentTextItem
Definition: independenttextitem.h:28
searchandreplaceworker.h
qetdiagrameditor.h
advancedReplaceStruct
Definition: searchandreplaceworker.h:34
SearchAndReplaceWidget::m_elements_qtwi
QTreeWidgetItem * m_elements_qtwi
Definition: searchandreplacewidget.h:110
SearchAndReplaceWorker::replaceAdvanced
void replaceAdvanced(QList< Diagram * > diagrams=QList< Diagram * >(), QList< Element * > elements=QList< Element * >(), QList< IndependentTextItem * > texts=QList< IndependentTextItem * >(), QList< Conductor * > conductors=QList< Conductor * >())
SearchAndReplaceWorker::replaceAdvanced Apply the change of text according to the current advancedStr...
Definition: searchandreplaceworker.cpp:249
SearchAndReplaceWidget::on_m_next_pb_clicked
void on_m_next_pb_clicked()
Definition: searchandreplacewidget.cpp:973
QET::Horizontal
@ Horizontal
Horizontal segment.
Definition: qet.h:89
dynamicelementtextitem.h
SearchAndReplaceWidget::itemChanged
void itemChanged(QTreeWidgetItem *item, int column)
SearchAndReplaceWidget::itemChanged Reimplemented from QTreeWidget. Use to update the check state of ...
Definition: searchandreplacewidget.cpp:575
Conductor
Definition: conductor.h:43
TitleBlockProperties::indexrev
QString indexrev
Revision Index (displayed by the default template)
Definition: titleblockproperties.h:60
ConductorProperties::m_wire_color
QString m_wire_color
Definition: conductorproperties.h:92
SearchAndReplaceWidget::selectedElement
QList< Element * > selectedElement() const
SearchAndReplaceWidget::selectedElement.
Definition: searchandreplacewidget.cpp:695
ReplaceFolioDialog::titleBlockProperties
TitleBlockProperties titleBlockProperties() const
ReplaceFolioDialog::titleBlockProperties.
Definition: replacefoliowidget.cpp:143
SearchAndReplaceWidget::previousItem
QTreeWidgetItem * previousItem(QTreeWidgetItem *item=nullptr, QTreeWidgetItemIterator::IteratorFlag flags=QTreeWidgetItemIterator::All) const
SearchAndReplaceWidget::previousItem.
Definition: searchandreplacewidget.cpp:494
SearchAndReplaceWidget::~SearchAndReplaceWidget
~SearchAndReplaceWidget() override
SearchAndReplaceWidget::~SearchAndReplaceWidget Destructor.
Definition: searchandreplacewidget.cpp:73
SearchAndReplaceWorker::m_element_context
DiagramContext m_element_context
Definition: searchandreplaceworker.h:92
DiagramContent::m_text_fields
QSet< IndependentTextItem * > m_text_fields
Definition: diagramcontent.h:70
ConductorProperties::text
QString text
Definition: conductorproperties.h:89
ConductorProperties::m_tension_protocol
QString m_tension_protocol
Definition: conductorproperties.h:91
TitleBlockProperties::folio
QString folio
Folio information (displayed by the default template)
Definition: titleblockproperties.h:62
SearchAndReplaceWorker::m_titleblock_properties
TitleBlockProperties m_titleblock_properties
Definition: searchandreplaceworker.h:91
Element::textGroups
QList< ElementTextItemGroup * > textGroups() const
Element::textGroups.
Definition: element.cpp:1420
QET::Icons::tr
QIcon tr
Definition: qeticons.cpp:206
SearchAndReplaceWidget::m_master_elmt_qtwi
QTreeWidgetItem * m_master_elmt_qtwi
Definition: searchandreplacewidget.h:112
Element::PreviousReport
@ PreviousReport
Definition: element.h:53
QWidgetAnimation::widgetToSubtract
void widgetToSubtract(QVector< QWidget * > widgets)
QWidgetAnimation::widgetToSubtract Widget to subtract the size when the behavior is availableSpace.
Definition: qwidgetanimation.cpp:68
ConductorProperties::m_wire_section
QString m_wire_section
Definition: conductorproperties.h:93
QET::Icons::Diagram
QIcon Diagram
Definition: qeticons.cpp:43
Element::dynamicTextItems
QList< DynamicElementTextItem * > dynamicTextItems() const
Element::dynamicTextItems.
Definition: element.cpp:1316
DiagramContext
Definition: diagramcontext.h:56
diagram.h
SearchAndReplaceWidget::updateNextPreviousButtons
void updateNextPreviousButtons()
SearchAndReplaceWidget::updateNextPreviousButtons According to the current item, if there is a next o...
Definition: searchandreplacewidget.cpp:524
SearchAndReplaceWorker::replaceElement
void replaceElement(QList< Element * > list)
SearchAndReplaceWorker::replaceElement Replace all properties of each elements in list All element mu...
Definition: searchandreplaceworker.cpp:103