|
QElectroTech
0.8-dev
|
Go to the documentation of this file.
18 #ifndef SEARCHANDREPLACEWORKER_H
19 #define SEARCHANDREPLACEWORKER_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);
100 #endif // SEARCHANDREPLACEWORKER_H
@ Terminale
Definition: element.h:57
bool m_show_text
Definition: conductorproperties.h:103
int who
Definition: searchandreplaceworker.h:40
The ChangeTitleBlockCommand class This command changes the title block properties for a particular di...
Definition: changetitleblockcommand.h:31
QColor color
Definition: conductorproperties.h:85
QUndoStack * undoStack()
Definition: qetproject.h:168
Qt::PenStyle style
Definition: conductorproperties.h:110
QString m_indi_text
Definition: searchandreplaceworker.h:93
void replaceConductor(QList< Conductor * > list)
SearchAndReplaceWorker::replaceConductor Replace all properties of each conductor in list All conduct...
Definition: searchandreplaceworker.cpp:197
ConductorProperties m_conductor_properties
Definition: searchandreplaceworker.h:94
DiagramContext elementInformations() const
Definition: element.h:97
void replaceIndiText(QList< IndependentTextItem * > list)
SearchAndReplaceWorker::replaceIndiText Replace all displayed text of independent text of list Each m...
Definition: searchandreplaceworker.cpp:158
QString what
Definition: searchandreplaceworker.h:41
static QStringList elementInfoKeys()
QETApp::elementInfoKeys.
Definition: qetapp.cpp:366
static QString eraseText()
Definition: searchandreplaceworker.h:72
void replaceDiagram(QList< Diagram * > diagram_list)
SearchAndReplaceWorker::replaceDiagram Replace all properties of each diagram in diagram_list,...
Definition: searchandreplaceworker.cpp:41
@ Simple
Definition: element.h:51
QDate date
Date (displayed by the default template)
Definition: titleblockproperties.h:56
double verti_rotate_text
Definition: conductorproperties.h:100
BorderTitleBlock border_and_titleblock
Diagram dimensions and title block.
Definition: diagram.h:83
int m_dash_size
Definition: conductorproperties.h:97
DiagramContext context
Container for the additional, user-defined fields.
Definition: titleblockproperties.h:66
QString title
Folio title (displayed by the default template)
Definition: titleblockproperties.h:54
The Diagram class This class represents an electric diagram. It manages its various child elements,...
Definition: diagram.h:56
int text_size
Definition: conductorproperties.h:96
Definition: titleblockproperties.h:29
SingleLineProperties singleLineProperties
Definition: conductorproperties.h:112
QString locmach
Location(displayed by the default template)
Definition: titleblockproperties.h:59
TitleBlockProperties exportTitleBlock()
BorderTitleBlock::exportTitleBlock.
Definition: bordertitleblock.cpp:279
@ Master
Definition: element.h:55
QString plant
Plant (displayed by the default template)
Definition: titleblockproperties.h:58
ConductorProperties properties
Definition: conductor.h:48
SearchAndReplaceWorker()
Definition: searchandreplaceworker.cpp:29
QString search
Definition: searchandreplaceworker.h:42
QVariant value(const QString &key) const
Definition: diagramcontext.cpp:100
Qt::Alignment m_vertical_alignment
Definition: conductorproperties.h:108
QString m_function
Definition: conductorproperties.h:90
static ConductorProperties invalidConductorProperties()
Definition: searchandreplaceworker.cpp:380
QString filename
Filename (displayed by the default template)
Definition: titleblockproperties.h:57
double horiz_rotate_text
Definition: conductorproperties.h:101
The SearchAndReplaceWorker class This class is the worker use to change properties when use the searc...
Definition: searchandreplaceworker.h:52
Qt::Alignment m_horizontal_alignment
Definition: conductorproperties.h:107
QColor m_color_2
Definition: conductorproperties.h:86
Definition: qetproject.h:51
double cond_size
Definition: conductorproperties.h:99
static QDate eraseDate()
Definition: searchandreplaceworker.h:74
The ChangeDiagramTextCommand class This commad modifies a text item.
Definition: diagramcommands.h:206
QString m_formula
Definition: conductorproperties.h:94
QString author
Author of the diagram/folio (displayed by the default template)
Definition: titleblockproperties.h:55
static ConductorProperties applyChange(const ConductorProperties &original, const ConductorProperties &change)
SearchAndReplaceWorker::applyChange.
Definition: searchandreplaceworker.cpp:406
The ConductorProperties class This class represents the functional properties of a particular conduct...
Definition: conductorproperties.h:68
advancedReplaceStruct m_advanced_struct
Definition: searchandreplaceworker.h:95
Definition: independenttextitem.h:28
void add(DiagramContext other)
DiagramContext::add Add all value of other to this. If a key already exist, the value is replaced....
Definition: diagramcontext.cpp:31
Definition: searchandreplaceworker.h:34
bool contains(const QString &) const
Definition: diagramcontext.cpp:70
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
bool m_bicolor
Definition: conductorproperties.h:105
QString replace
Definition: searchandreplaceworker.h:43
Definition: conductor.h:43
QString indexrev
Revision Index (displayed by the default template)
Definition: titleblockproperties.h:60
QString m_wire_color
Definition: conductorproperties.h:92
DiagramContext m_element_context
Definition: searchandreplaceworker.h:92
The QPropertyUndoCommand class This undo command manage QProperty of a QObject. This undo command can...
Definition: qpropertyundocommand.h:34
QString text
Definition: conductorproperties.h:89
QString m_tension_protocol
Definition: conductorproperties.h:91
bool addValue(const QString &, const QVariant &, bool show=true)
Definition: diagramcontext.cpp:91
QString folio
Folio information (displayed by the default template)
Definition: titleblockproperties.h:62
TitleBlockProperties m_titleblock_properties
Definition: searchandreplaceworker.h:91
QIcon tr
Definition: qeticons.cpp:206
QString m_wire_section
Definition: conductorproperties.h:93
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:371
Definition: diagramcontext.h:56
void replaceElement(QList< Element * > list)
SearchAndReplaceWorker::replaceElement Replace all properties of each elements in list All element mu...
Definition: searchandreplaceworker.cpp:103