18 #ifndef SEARCHANDREPLACEWORKER_H 19 #define SEARCHANDREPLACEWORKER_H 63 void replaceAdvanced (QList<Diagram *> diagrams = QList<Diagram *>(), QList<Element *> elements = QList<Element *>(),\
64 QList<IndependentTextItem *> texts = QList<IndependentTextItem *>(), QList<Conductor *> conductors = QList<Conductor *>());
66 static QString
eraseText() {
return QString(
"XXXXXXXXXXXXXXXXXXX");}
67 static QDate
eraseDate() {
return QDate(1900, 1, 1);}
68 static void setupLineEdit(QLineEdit *l, QCheckBox *cb, QString str);
72 static QString
applyChange(
const QString &original,
const QString &change);
88 #endif // SEARCHANDREPLACEWORKER_H
void replaceDiagram(QList< Diagram *> diagram_list)
SearchAndReplaceWorker::replaceDiagram Replace all properties of each diagram in , by the current titleblock propertie of this worker.
advancedReplaceStruct m_advanced_struct
DiagramContext m_element_context
static ConductorProperties invalidConductorProperties()
static QString eraseText()
static ConductorProperties applyChange(const ConductorProperties &original, const ConductorProperties &change)
SearchAndReplaceWorker::applyChange.
void replaceIndiText(QList< IndependentTextItem *> list)
SearchAndReplaceWorker::replaceIndiText Replace all displayed text of independent text of Each must ...
void replaceElement(QList< Element *> list)
SearchAndReplaceWorker::replaceElement Replace all properties of each elements in All element must b...
static void setupLineEdit(QLineEdit *l, QCheckBox *cb, QString str)
SearchAndReplaceWorker::setupLineEdit With search and replace, when the variable to edit is a text...
The SearchAndReplaceWorker class This class is the worker use to change properties when use the searc...
TitleBlockProperties m_titleblock_properties
void replaceConductor(QList< Conductor *> list)
SearchAndReplaceWorker::replaceConductor Replace all properties of each conductor in All conductor m...
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...
ConductorProperties m_conductor_properties