18#ifndef SEARCHANDREPLACEWORKER_H
19#define SEARCHANDREPLACEWORKER_H
21#include "../conductorproperties.h"
22#include "../titleblockproperties.h"
65 QList<Diagram *> diagrams = QList<Diagram *>(),
66 QList<Element *> elements = QList<Element *>(),
67 QList<IndependentTextItem *>
68 texts = QList<IndependentTextItem *>(),
70 conductors = QList<Conductor *>());
73 {
return QString(
"XXXXXXXXXXXXXXXXXXX");}
74 static QDate
eraseDate() {
return QDate(1900, 1, 1);}
84 const QString &change);
Definition conductor.h:43
The ConductorProperties class This class represents the functional properties of a particular conduct...
Definition conductorproperties.h:68
Definition diagramcontext.h:57
The Diagram class This class represents an electric diagram. It manages its various child elements,...
Definition diagram.h:56
Definition independenttextitem.h:28
The SearchAndReplaceWorker class This class is the worker use to change properties when use the searc...
Definition searchandreplaceworker.h:52
void replaceElement(QList< Element * > list)
SearchAndReplaceWorker::replaceElement Replace all properties of each elements in list All element mu...
Definition searchandreplaceworker.cpp:104
TitleBlockProperties m_titleblock_properties
Definition searchandreplaceworker.h:91
DiagramContext m_element_context
Definition searchandreplaceworker.h:92
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:251
static void setupLineEdit(QLineEdit *l, QCheckBox *cb, QString str)
SearchAndReplaceWorker::setupLineEdit With search and replace, when the variable to edit is a text,...
Definition searchandreplaceworker.cpp:379
void replaceConductor(QList< Conductor * > list)
SearchAndReplaceWorker::replaceConductor Replace all properties of each conductor in list All conduct...
Definition searchandreplaceworker.cpp:199
static ConductorProperties applyChange(const ConductorProperties &original, const ConductorProperties &change)
SearchAndReplaceWorker::applyChange.
Definition searchandreplaceworker.cpp:414
static QDate eraseDate()
Definition searchandreplaceworker.h:74
static ConductorProperties invalidConductorProperties()
Definition searchandreplaceworker.cpp:388
void replaceDiagram(QList< Diagram * > diagram_list)
SearchAndReplaceWorker::replaceDiagram Replace all properties of each diagram in diagram_list,...
Definition searchandreplaceworker.cpp:42
QString m_indi_text
Definition searchandreplaceworker.h:93
ConductorProperties m_conductor_properties
Definition searchandreplaceworker.h:94
static QString eraseText()
Definition searchandreplaceworker.h:72
SearchAndReplaceWorker()
Definition searchandreplaceworker.cpp:30
void replaceIndiText(QList< IndependentTextItem * > list)
SearchAndReplaceWorker::replaceIndiText Replace all displayed text of independent text of list Each m...
Definition searchandreplaceworker.cpp:160
advancedReplaceStruct m_advanced_struct
Definition searchandreplaceworker.h:95
Definition titleblockproperties.h:29
Definition searchandreplaceworker.h:34
QString what
Definition searchandreplaceworker.h:41
QString replace
Definition searchandreplaceworker.h:43
QString search
Definition searchandreplaceworker.h:42
int who
Definition searchandreplaceworker.h:40