The SearchAndReplaceWorker class This class is the worker use to change properties when use the search and replace function of QET.
More...
#include <searchandreplaceworker.h>
The SearchAndReplaceWorker class This class is the worker use to change properties when use the search and replace function of QET.
◆ SearchAndReplaceWorker()
SearchAndReplaceWorker::SearchAndReplaceWorker |
( |
| ) |
|
◆ applyChange() [1/2]
SearchAndReplaceWorker::applyChange.
- Parameters
-
original | : the original properties |
change | : the change properties, to be merged with original |
- Returns
- a new conductor properties with the change applyed.
◆ applyChange() [2/2]
QString SearchAndReplaceWorker::applyChange |
( |
const QString & |
original, |
|
|
const QString & |
change |
|
) |
| |
|
static |
◆ eraseDate()
static QDate SearchAndReplaceWorker::eraseDate |
( |
| ) |
|
|
inlinestatic |
◆ eraseText()
static QString SearchAndReplaceWorker::eraseText |
( |
| ) |
|
|
inlinestatic |
◆ invalidConductorProperties()
◆ replaceAdvanced() [1/4]
◆ replaceAdvanced() [2/4]
◆ replaceAdvanced() [3/4]
◆ replaceAdvanced() [4/4]
SearchAndReplaceWorker::replaceAdvanced Apply the change of text according to the current advancedStruct All items in the 4 list must belong to the same QETProject, if not this function do nothing.
- Parameters
-
diagrams | : |
elements | : |
texts | : |
conductors | : |
◆ replaceConductor() [1/2]
void SearchAndReplaceWorker::replaceConductor |
( |
Conductor * |
conductor | ) |
|
◆ replaceConductor() [2/2]
void SearchAndReplaceWorker::replaceConductor |
( |
QList< Conductor * > |
list | ) |
|
SearchAndReplaceWorker::replaceConductor Replace all properties of each conductor in list All conductor must belong to the same project, if not this function do nothing. All change are made through a undo command append to undo list of the project.
- Parameters
-
◆ replaceDiagram() [1/2]
void SearchAndReplaceWorker::replaceDiagram |
( |
Diagram * |
diagram | ) |
|
◆ replaceDiagram() [2/2]
void SearchAndReplaceWorker::replaceDiagram |
( |
QList< Diagram * > |
diagram_list | ) |
|
SearchAndReplaceWorker::replaceDiagram Replace all properties of each diagram in diagram_list, by the current titleblock propertie of this worker.
- Parameters
-
diagram_list | : list of diagram to be changed, all diagrams must belong to the same project; |
◆ replaceElement() [1/2]
void SearchAndReplaceWorker::replaceElement |
( |
Element * |
element | ) |
|
◆ replaceElement() [2/2]
void SearchAndReplaceWorker::replaceElement |
( |
QList< Element * > |
list | ) |
|
SearchAndReplaceWorker::replaceElement Replace all properties of each elements in list All element must belong to the same project, if not this function do nothing. All change are made through a undo command append to undo list of the project.
- Parameters
-
◆ replaceIndiText() [1/2]
◆ replaceIndiText() [2/2]
◆ setupLineEdit()
void SearchAndReplaceWorker::setupLineEdit |
( |
QLineEdit * |
l, |
|
|
QCheckBox * |
cb, |
|
|
QString |
str |
|
) |
| |
|
static |
SearchAndReplaceWorker::setupLineEdit With search and replace, when the variable to edit is a text, the editor is always the same no matter if it is for a folio, element or conductor. The editor is a QLineEdit to edit the text and checkbox to erase the text if checked. This function fill the editor, from the current string.
- Parameters
-
◆ SearchAndReplaceWidget
◆ m_advanced_struct
◆ m_conductor_properties
◆ m_element_context
◆ m_indi_text
QString SearchAndReplaceWorker::m_indi_text |
|
private |
◆ m_titleblock_properties
The documentation for this class was generated from the following files: