Mod doc set style de same

This commit is contained in:
Simon De Backer
2020-08-16 11:19:36 +02:00
parent 90417ae509
commit d4ee161c07
274 changed files with 6823 additions and 6756 deletions

View File

@@ -32,11 +32,12 @@ SearchAndReplaceWorker::SearchAndReplaceWorker()
}
/**
* @brief SearchAndReplaceWorker::replaceDiagram
* Replace all properties of each diagram in @diagram_list,
* by the current titleblock propertie of this worker
* @param diagram_list, list of diagram to be changed, all diagrams must belong to the same project;
*/
@brief SearchAndReplaceWorker::replaceDiagram
Replace all properties of each diagram in @diagram_list,
by the current titleblock propertie of this worker
@param diagram_list, list of diagram to be changed,
all diagrams must belong to the same project;
*/
void SearchAndReplaceWorker::replaceDiagram(QList<Diagram *> diagram_list)
{
if (diagram_list.isEmpty()) {
@@ -91,12 +92,14 @@ void SearchAndReplaceWorker::replaceDiagram(Diagram *diagram)
}
/**
* @brief 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.
* @param list
*/
@brief 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.
@param list
*/
void SearchAndReplaceWorker::replaceElement(QList<Element *> list)
{
if (list.isEmpty() || !list.first()->diagram()) {
@@ -147,11 +150,11 @@ void SearchAndReplaceWorker::replaceElement(Element *element)
}
/**
* @brief SearchAndReplaceWorker::replaceIndiText
* Replace all displayed text of independent text of @list
* Each must belong to the same project, if not this function do nothing
* @param list
*/
@brief SearchAndReplaceWorker::replaceIndiText
Replace all displayed text of independent text of @list
Each must belong to the same project, if not this function do nothing
@param list
*/
void SearchAndReplaceWorker::replaceIndiText(QList<IndependentTextItem *> list)
{
if (list.isEmpty() || !list.first()->diagram()) {
@@ -183,12 +186,14 @@ void SearchAndReplaceWorker::replaceIndiText(IndependentTextItem *text)
}
/**
* @brief 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.
* @param list
*/
@brief 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.
@param list
*/
void SearchAndReplaceWorker::replaceConductor(QList<Conductor *> list)
{
if (list.isEmpty() || !list.first()->diagram()) {
@@ -232,15 +237,15 @@ void SearchAndReplaceWorker::replaceConductor(Conductor *conductor)
}
/**
* @brief 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
* @param d
* @param e
* @param t
* @param c
*/
@brief 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
@param d
@param e
@param t
@param c
*/
void SearchAndReplaceWorker::replaceAdvanced(QList<Diagram *> diagrams, QList<Element *> elements, QList<IndependentTextItem *> texts, QList<Conductor *> conductors)
{
QETProject *project_ = nullptr;
@@ -348,15 +353,17 @@ void SearchAndReplaceWorker::replaceAdvanced(QList<Diagram *> diagrams, QList<El
}
/**
* @brief 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
* @param l
* @param cb
* @param str
*/
@brief 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
@param l
@param cb
@param str
*/
void SearchAndReplaceWorker::setupLineEdit(QLineEdit *l, QCheckBox *cb, QString str)
{
l->setText(str);
@@ -385,11 +392,11 @@ ConductorProperties SearchAndReplaceWorker::invalidConductorProperties()
}
/**
* @brief SearchAndReplaceWorker::applyChange
* @param original : the original properties
* @param change : the change properties, to be merged with @original
* @return a new conductor properties with the change applyed.
*/
@brief SearchAndReplaceWorker::applyChange
@param original : the original properties
@param change : the change properties, to be merged with @original
@return a new conductor properties with the change applyed.
*/
ConductorProperties SearchAndReplaceWorker::applyChange(const ConductorProperties &original, const ConductorProperties &change)
{
ConductorProperties new_properties = original;
@@ -420,11 +427,11 @@ ConductorProperties SearchAndReplaceWorker::applyChange(const ConductorPropertie
}
/**
* @brief SearchAndReplaceWorker::applyChange
* @param original : the original string
* @param change : the changed string:
* @return the string to be use in the properties
*/
@brief SearchAndReplaceWorker::applyChange
@param original : the original string
@param change : the changed string:
@return the string to be use in the properties
*/
QString SearchAndReplaceWorker::applyChange(const QString &original, const QString &change)
{
if (change.isEmpty()) {return original;}
@@ -433,11 +440,11 @@ QString SearchAndReplaceWorker::applyChange(const QString &original, const QStri
}
/**
* @brief SearchAndReplaceWorker::replaceAdvanced
* @param diagram
* @return the titleblock properties with the change applied,
* according to the state of @m_advanced_struct
*/
@brief SearchAndReplaceWorker::replaceAdvanced
@param diagram
@return the titleblock properties with the change applied,
according to the state of @m_advanced_struct
*/
TitleBlockProperties SearchAndReplaceWorker::replaceAdvanced(Diagram *diagram)
{
TitleBlockProperties p = diagram->border_and_titleblock.exportTitleBlock();
@@ -459,11 +466,11 @@ TitleBlockProperties SearchAndReplaceWorker::replaceAdvanced(Diagram *diagram)
}
/**
* @brief SearchAndReplaceWorker::replaceAdvanced
* @param element
* @return The diagram context with the change applied,
* according to the state of @m_advanced_struct
*/
@brief SearchAndReplaceWorker::replaceAdvanced
@param element
@return The diagram context with the change applied,
according to the state of @m_advanced_struct
*/
DiagramContext SearchAndReplaceWorker::replaceAdvanced(Element *element)
{
DiagramContext context = element->elementInformations();
@@ -484,11 +491,11 @@ DiagramContext SearchAndReplaceWorker::replaceAdvanced(Element *element)
}
/**
* @brief SearchAndReplaceWorker::replaceAdvanced
* @param conductor
* @return the conductor properties with the change applied,
* according to the state of @m_advanced_struct
*/
@brief SearchAndReplaceWorker::replaceAdvanced
@param conductor
@return the conductor properties with the change applied,
according to the state of @m_advanced_struct
*/
ConductorProperties SearchAndReplaceWorker::replaceAdvanced(Conductor *conductor)
{
ConductorProperties properties = conductor->properties();

View File

@@ -44,9 +44,10 @@ struct advancedReplaceStruct
};
/**
* @brief The SearchAndReplaceWorker class
* This class is the worker use to change properties when use the search and replace function of QET
*/
@brief The SearchAndReplaceWorker class
This class is the worker use to change properties
when use the search and replace function of QET
*/
class SearchAndReplaceWorker
{
public:

View File

@@ -22,10 +22,10 @@
#include <QAbstractButton>
/**
* @brief replaceAdvancedDialog::replaceAdvancedDialog
* @param advanced
* @param parent
*/
@brief replaceAdvancedDialog::replaceAdvancedDialog
@param advanced
@param parent
*/
replaceAdvancedDialog::replaceAdvancedDialog(advancedReplaceStruct advanced, QWidget *parent) :
QDialog(parent),
ui(new Ui::replaceAdvancedDialog)
@@ -47,10 +47,10 @@ replaceAdvancedDialog::~replaceAdvancedDialog()
}
/**
* @brief replaceAdvancedDialog::setAdvancedStruct
* Set the edited advanced struct
* @param advanced
*/
@brief replaceAdvancedDialog::setAdvancedStruct
Set the edited advanced struct
@param advanced
*/
void replaceAdvancedDialog::setAdvancedStruct(advancedReplaceStruct advanced)
{
int index = advanced.who;
@@ -73,9 +73,9 @@ void replaceAdvancedDialog::setAdvancedStruct(advancedReplaceStruct advanced)
}
/**
* @brief replaceAdvancedDialog::advancedStruct
* @return the edited advanced struct
*/
@brief replaceAdvancedDialog::advancedStruct
@return the edited advanced struct
*/
advancedReplaceStruct replaceAdvancedDialog::advancedStruct() const
{
advancedReplaceStruct a;
@@ -110,9 +110,9 @@ void replaceAdvancedDialog::fillWhatComboBox(int index)
}
/**
* @brief replaceAdvancedDialog::on_m_who_cb_currentIndexChanged
* @param index
*/
@brief replaceAdvancedDialog::on_m_who_cb_currentIndexChanged
@param index
*/
void replaceAdvancedDialog::on_m_who_cb_currentIndexChanged(int index) {
fillWhatComboBox(index);
}

View File

@@ -25,9 +25,9 @@
typedef SearchAndReplaceWorker sarw;
/**
* @brief ReplaceConductorDialog::ReplaceConductorDialog
* @param parent
*/
@brief ReplaceConductorDialog::ReplaceConductorDialog
@param parent
*/
ReplaceConductorDialog::ReplaceConductorDialog(const ConductorProperties &properties, QWidget *parent) :
QDialog(parent),
ui(new Ui::ReplaceConductorDialog)
@@ -43,11 +43,11 @@ ReplaceConductorDialog::~ReplaceConductorDialog()
}
/**
* @brief ReplaceConductorDialog::updatePreview
* Update the preview for single line
* @param b true: update from the value displayed by this widget
* false: update from the properties given at the constructor of this widget
*/
@brief ReplaceConductorDialog::updatePreview
Update the preview for single line
@param b true: update from the value displayed by this widget
false: update from the properties given at the constructor of this widget
*/
void ReplaceConductorDialog::updatePreview(bool b)
{
const QRect pixmap_rect(0, 0, 96, 96);
@@ -124,9 +124,9 @@ void ReplaceConductorDialog::setProperties(const ConductorProperties &properties
}
/**
* @brief ReplaceConductorDialog::properties
* @return the properties edited by this widget
*/
@brief ReplaceConductorDialog::properties
@return the properties edited by this widget
*/
ConductorProperties ReplaceConductorDialog::properties() const
{
ConductorProperties properties_;

View File

@@ -27,9 +27,9 @@ namespace Ui {
}
/**
* @brief The ReplaceConductorDialog class
* A Qdialog to edit a conductor properties, use for the search and replace feature of QElectrotech.
*/
@brief The ReplaceConductorDialog class
A Qdialog to edit a conductor properties, use for the search and replace feature of QElectrotech.
*/
class ReplaceConductorDialog : public QDialog
{
Q_OBJECT

View File

@@ -39,10 +39,10 @@ ReplaceElementDialog::~ReplaceElementDialog()
}
/**
* @brief ReplaceElementDialog::setContext
* Set the current diagram context to be edited
* @param context
*/
@brief ReplaceElementDialog::setContext
Set the current diagram context to be edited
@param context
*/
void ReplaceElementDialog::setContext(DiagramContext context)
{
m_context = context;
@@ -53,9 +53,9 @@ void ReplaceElementDialog::setContext(DiagramContext context)
}
/**
* @brief ReplaceElementDialog::context
* @return The edited diagram context
*/
@brief ReplaceElementDialog::context
@return The edited diagram context
*/
DiagramContext ReplaceElementDialog::context() const
{
DiagramContext context;

View File

@@ -39,9 +39,9 @@ ReplaceFolioWidget::~ReplaceFolioWidget()
}
/**
* @brief ReplaceFolioWidget::titleBlockProperties
* @return the title block properties edited by this widget
*/
@brief ReplaceFolioWidget::titleBlockProperties
@return the title block properties edited by this widget
*/
TitleBlockProperties ReplaceFolioWidget::titleBlockProperties() const
{
TitleBlockProperties prop;
@@ -71,10 +71,10 @@ TitleBlockProperties ReplaceFolioWidget::titleBlockProperties() const
}
/**
* @brief ReplaceFolioWidget::setTitleBlockProperties
* Set the title block properties edited by this widget
* @param properties
*/
@brief ReplaceFolioWidget::setTitleBlockProperties
Set the title block properties edited by this widget
@param properties
*/
void ReplaceFolioWidget::setTitleBlockProperties(const TitleBlockProperties &properties)
{
sarw::setupLineEdit(ui->m_title_le, ui->m_title_cb, properties.title);
@@ -130,17 +130,17 @@ ReplaceFolioDialog::~ReplaceFolioDialog()
{}
/**
* @brief ReplaceFolioDialog::titleBlockProperties
* @return The title block properties edited by this dialog
*/
@brief ReplaceFolioDialog::titleBlockProperties
@return The title block properties edited by this dialog
*/
TitleBlockProperties ReplaceFolioDialog::titleBlockProperties() const {
return m_widget->titleBlockProperties();
}
/**
* @brief ReplaceFolioDialog::setTitleBlockProperties
* @param properties : set the title block properties edited by this dialog
*/
@brief ReplaceFolioDialog::setTitleBlockProperties
@param properties : set the title block properties edited by this dialog
*/
void ReplaceFolioDialog::setTitleBlockProperties(const TitleBlockProperties &properties) {
m_widget->setTitleBlockProperties(properties);
}

View File

@@ -36,10 +36,10 @@
#include <QSettings>
/**
* @brief SearchAndReplaceWidget::SearchAndReplaceWidget
* Constructor
* @param parent
*/
@brief SearchAndReplaceWidget::SearchAndReplaceWidget
Constructor
@param parent
*/
SearchAndReplaceWidget::SearchAndReplaceWidget(QWidget *parent) :
QWidget(parent),
ui(new Ui::SearchAndReplaceWidget)
@@ -59,20 +59,20 @@ SearchAndReplaceWidget::SearchAndReplaceWidget(QWidget *parent) :
}
/**
* @brief SearchAndReplaceWidget::~SearchAndReplaceWidget
* Destructor
*/
@brief SearchAndReplaceWidget::~SearchAndReplaceWidget
Destructor
*/
SearchAndReplaceWidget::~SearchAndReplaceWidget() {
delete ui;
}
/**
* @brief SearchAndReplaceWidget::event
* Reimplemented to clear the the lines edit and hide
* the advanced widgets, when this widget become hidden
* @param event
* @return
*/
@brief SearchAndReplaceWidget::event
Reimplemented to clear the the lines edit and hide
the advanced widgets, when this widget become hidden
@param event
@return
*/
bool SearchAndReplaceWidget::event(QEvent *event)
{
if (event->type() == QEvent::Hide)
@@ -95,10 +95,10 @@ bool SearchAndReplaceWidget::event(QEvent *event)
}
/**
* @brief SearchAndReplaceWidget::clear
* Clear the content of the search and replace line edit
* Clear all tree items in the tree widget (except the category items).
*/
@brief SearchAndReplaceWidget::clear
Clear the content of the search and replace line edit
Clear all tree items in the tree widget (except the category items).
*/
void SearchAndReplaceWidget::clear()
{
disconnect(ui->m_tree_widget, &QTreeWidget::itemChanged, this, &SearchAndReplaceWidget::itemChanged);
@@ -128,18 +128,18 @@ void SearchAndReplaceWidget::clear()
}
/**
* @brief SearchAndReplaceWidget::setEditor
* Set the diagram editor of this widget
* @param editor
*/
@brief SearchAndReplaceWidget::setEditor
Set the diagram editor of this widget
@param editor
*/
void SearchAndReplaceWidget::setEditor(QETDiagramEditor *editor) {
m_editor = editor;
}
/**
* @brief SearchAndReplaceWidget::setUpTreeItems
* Set up the main tree widget items
*/
@brief SearchAndReplaceWidget::setUpTreeItems
Set up the main tree widget items
*/
void SearchAndReplaceWidget::setUpTreeItems()
{
m_root_qtwi = new QTreeWidgetItem(ui->m_tree_widget);
@@ -207,10 +207,10 @@ void SearchAndReplaceWidget::setUpTreeItems()
}
/**
* @brief SearchAndReplaceWidget::setHideAdvanced
* Hide advanced widgets
* @param hide
*/
@brief SearchAndReplaceWidget::setHideAdvanced
Hide advanced widgets
@param hide
*/
void SearchAndReplaceWidget::setHideAdvanced(bool hide)
{
m_vertical_animation->setHidden(hide);
@@ -218,9 +218,9 @@ void SearchAndReplaceWidget::setHideAdvanced(bool hide)
}
/**
* @brief SearchAndReplaceWidget::fillItemsList
* Fill the tree
*/
@brief SearchAndReplaceWidget::fillItemsList
Fill the tree
*/
void SearchAndReplaceWidget::fillItemsList()
{
disconnect(ui->m_tree_widget, &QTreeWidget::itemChanged, this, &SearchAndReplaceWidget::itemChanged);
@@ -296,10 +296,10 @@ void SearchAndReplaceWidget::fillItemsList()
}
/**
* @brief SearchAndReplaceWidget::addElement
* Add a tree widget item for @element
* @param element
*/
@brief SearchAndReplaceWidget::addElement
Add a tree widget item for @element
@param element
*/
void SearchAndReplaceWidget::addElement(Element *element)
{
QTreeWidgetItem *parent = m_elements_qtwi;
@@ -341,9 +341,9 @@ void SearchAndReplaceWidget::addElement(Element *element)
}
/**
* @brief SearchAndReplaceWidget::search
* Start the search
*/
@brief SearchAndReplaceWidget::search
Start the search
*/
void SearchAndReplaceWidget::search()
{
QString str = ui->m_search_le->text();
@@ -413,11 +413,11 @@ void SearchAndReplaceWidget::search()
}
/**
* @brief SearchAndReplaceWidget::setVisibleAllParents
* Set visible all parents of @item until the invisible root item
* @param item
* @param expend_parent
*/
@brief SearchAndReplaceWidget::setVisibleAllParents
Set visible all parents of @item until the invisible root item
@param item
@param expend_parent
*/
void SearchAndReplaceWidget::setVisibleAllParents(QTreeWidgetItem *item, bool expend_parent)
{
if (item->parent())
@@ -430,11 +430,13 @@ void SearchAndReplaceWidget::setVisibleAllParents(QTreeWidgetItem *item, bool ex
}
/**
* @brief SearchAndReplaceWidget::nextItem
* @param item : find the next item from @item, if @item is nullptr, start the search for the root of the tree
* @param flags
* @return the next item according to flag or nullptr if there is not a next item
*/
@brief SearchAndReplaceWidget::nextItem
@param item : find the next item from @item,
if @item is nullptr, start the search for the root of the tree
@param flags
@return the next item according to flag
or nullptr if there is not a next item
*/
QTreeWidgetItem *SearchAndReplaceWidget::nextItem(QTreeWidgetItem *item, QTreeWidgetItemIterator::IteratorFlag flags) const
{
QTreeWidgetItem *qtwi = item;
@@ -459,11 +461,13 @@ QTreeWidgetItem *SearchAndReplaceWidget::nextItem(QTreeWidgetItem *item, QTreeWi
}
/**
* @brief SearchAndReplaceWidget::previousItem
* @param item : find the previous item from @item, if @item is nullptr, start the search for the root of the tree
* @param flags
* @return the previous item according to flag or nullptr if there is not a previous item
*/
@brief SearchAndReplaceWidget::previousItem
@param item : find the previous item from @item,
if @item is nullptr, start the search for the root of the tree
@param flags
@return the previous item according to flag
or nullptr if there is not a previous item
*/
QTreeWidgetItem *SearchAndReplaceWidget::previousItem(QTreeWidgetItem *item, QTreeWidgetItemIterator::IteratorFlag flags) const
{
QTreeWidgetItem *qtwi = item;
@@ -488,10 +492,10 @@ QTreeWidgetItem *SearchAndReplaceWidget::previousItem(QTreeWidgetItem *item, QTr
}
/**
* @brief SearchAndReplaceWidget::updateNextPreviousButtons
* According to the current item, if there is a next or a previous item,
* we enable/disable the buttons next/previous item.
*/
@brief SearchAndReplaceWidget::updateNextPreviousButtons
According to the current item, if there is a next or a previous item,
we enable/disable the buttons next/previous item.
*/
void SearchAndReplaceWidget::updateNextPreviousButtons()
{
QTreeWidgetItem *item_ = ui->m_tree_widget->currentItem();
@@ -536,12 +540,12 @@ void SearchAndReplaceWidget::updateNextPreviousButtons()
}
/**
* @brief SearchAndReplaceWidget::itemChanged
* Reimplemented from QTreeWidget.
* Use to update the check state of items.
* @param item
* @param column
*/
@brief SearchAndReplaceWidget::itemChanged
Reimplemented from QTreeWidget.
Use to update the check state of items.
@param item
@param column
*/
void SearchAndReplaceWidget::itemChanged(QTreeWidgetItem *item, int column)
{
Q_UNUSED(column);
@@ -554,11 +558,11 @@ void SearchAndReplaceWidget::itemChanged(QTreeWidgetItem *item, int column)
}
/**
* @brief SearchAndReplaceWidget::setChildCheckState
* @param item : Parent of the items to be evaluated
* @param check : check state
* @param deep : if true, we evaluate every subchilds.
*/
@brief SearchAndReplaceWidget::setChildCheckState
@param item : Parent of the items to be evaluated
@param check : check state
@param deep : if true, we evaluate every subchilds.
*/
void SearchAndReplaceWidget::setChildCheckState(QTreeWidgetItem *item, Qt::CheckState check, bool deep)
{
for (int i=0 ; i<item->childCount() ; ++i)
@@ -571,10 +575,11 @@ void SearchAndReplaceWidget::setChildCheckState(QTreeWidgetItem *item, Qt::Check
}
/**
* @brief SearchAndReplaceWidget::updateParentCheckState
* @param item : a child item of the parent to be evaluated.
* @param all_parents : if true, we evaluate every parents, until the root item.
*/
@brief SearchAndReplaceWidget::updateParentCheckState
@param item : a child item of the parent to be evaluated.
@param all_parents : if true, we evaluate every parents,
until the root item.
*/
void SearchAndReplaceWidget::updateParentCheckState(QTreeWidgetItem *item, bool all_parents)
{
QTreeWidgetItem *parent = item->parent();
@@ -616,9 +621,9 @@ void SearchAndReplaceWidget::updateParentCheckState(QTreeWidgetItem *item, bool
}
/**
* @brief SearchAndReplaceWidget::activateNextChecked
* Activate the next checked (and visible) item
*/
@brief SearchAndReplaceWidget::activateNextChecked
Activate the next checked (and visible) item
*/
void SearchAndReplaceWidget::activateNextChecked()
{
//Next button is disabled, so there is not a next item.
@@ -632,9 +637,9 @@ void SearchAndReplaceWidget::activateNextChecked()
}
/**
* @brief SearchAndReplaceWidget::selectedDiagram
* @return The list of visible and selected diagram in the tree widget
*/
@brief SearchAndReplaceWidget::selectedDiagram
@return The list of visible and selected diagram in the tree widget
*/
QList<Diagram *> SearchAndReplaceWidget::selectedDiagram() const
{
QList <Diagram *> diagram_list;
@@ -654,9 +659,9 @@ QList<Diagram *> SearchAndReplaceWidget::selectedDiagram() const
}
/**
* @brief SearchAndReplaceWidget::selectedElement
* @return The list of visible and selected element in the tree widget
*/
@brief SearchAndReplaceWidget::selectedElement
@return The list of visible and selected element in the tree widget
*/
QList<Element *> SearchAndReplaceWidget::selectedElement() const
{
QList <Element *> element_list;
@@ -676,9 +681,9 @@ QList<Element *> SearchAndReplaceWidget::selectedElement() const
}
/**
* @brief SearchAndReplaceWidget::selectedConductor
* @return The list of visible and selected conductor in the tree widget
*/
@brief SearchAndReplaceWidget::selectedConductor
@return The list of visible and selected conductor in the tree widget
*/
QList<Conductor *> SearchAndReplaceWidget::selectedConductor() const
{
QList <Conductor *> conductor_list;
@@ -698,9 +703,10 @@ QList<Conductor *> SearchAndReplaceWidget::selectedConductor() const
}
/**
* @brief SearchAndReplaceWidget::selectedText
* @return The list of visible and selected independant text in the tree widget
*/
@brief SearchAndReplaceWidget::selectedText
@return The list of visible and selected independant text
in the tree widget
*/
QList<IndependentTextItem *> SearchAndReplaceWidget::selectedText() const
{
QList <IndependentTextItem *> text_list;
@@ -720,10 +726,10 @@ QList<IndependentTextItem *> SearchAndReplaceWidget::selectedText() const
}
/**
* @brief SearchAndReplaceWidget::searchTerms
* @param diagram
* @return All QStrings use as terms for search.
*/
@brief SearchAndReplaceWidget::searchTerms
@param diagram
@return All QStrings use as terms for search.
*/
QStringList SearchAndReplaceWidget::searchTerms(Diagram *diagram)
{
QStringList list;
@@ -744,10 +750,10 @@ QStringList SearchAndReplaceWidget::searchTerms(Diagram *diagram)
}
/**
* @brief SearchAndReplaceWidget::searchTerms
* @param element
* @return All QString use as terms for search
*/
@brief SearchAndReplaceWidget::searchTerms
@param element
@return All QString use as terms for search
*/
QStringList SearchAndReplaceWidget::searchTerms(Element *element)
{
QStringList list;
@@ -781,10 +787,10 @@ QStringList SearchAndReplaceWidget::searchTerms(Element *element)
}
/**
* @brief SearchAndReplaceWidget::searchTerms
* @param conductor
* @return all QString use as terms for search.
*/
@brief SearchAndReplaceWidget::searchTerms
@param conductor
@return all QString use as terms for search.
*/
QStringList SearchAndReplaceWidget::searchTerms(Conductor *conductor)
{
QStringList list;
@@ -800,8 +806,8 @@ QStringList SearchAndReplaceWidget::searchTerms(Conductor *conductor)
}
/**
* @brief SearchAndReplaceWidget::on_m_quit_button_clicked
*/
@brief SearchAndReplaceWidget::on_m_quit_button_clicked
*/
void SearchAndReplaceWidget::on_m_quit_button_clicked()
{
if (auto animator = this->findChild<QWidgetAnimation *>("search and replace animator")) {
@@ -990,9 +996,9 @@ void SearchAndReplaceWidget::on_m_folio_pb_clicked()
}
/**
* @brief SearchAndReplaceWidget::on_m_replace_pb_clicked
* Replace the current selection
*/
@brief SearchAndReplaceWidget::on_m_replace_pb_clicked
Replace the current selection
*/
void SearchAndReplaceWidget::on_m_replace_pb_clicked()
{
QTreeWidgetItem *qtwi = ui->m_tree_widget->currentItem();
@@ -1082,9 +1088,9 @@ void SearchAndReplaceWidget::on_m_replace_pb_clicked()
}
/**
* @brief SearchAndReplaceWidget::on_m_replace_all_pb_clicked
* Replace all checked item
*/
@brief SearchAndReplaceWidget::on_m_replace_all_pb_clicked
Replace all checked item
*/
void SearchAndReplaceWidget::on_m_replace_all_pb_clicked()
{
if (ui->m_folio_pb->text().endsWith(tr(" [édité]"))) {
@@ -1140,10 +1146,10 @@ void SearchAndReplaceWidget::on_m_element_pb_clicked()
}
/**
* @brief SearchAndReplaceWidget::on_m_mode_cb_currentIndexChanged
* Update the search when user change mode.
* @param index
*/
@brief SearchAndReplaceWidget::on_m_mode_cb_currentIndexChanged
Update the search when user change mode.
@param index
*/
void SearchAndReplaceWidget::on_m_mode_cb_currentIndexChanged(int index)
{
Q_UNUSED(index);
@@ -1151,10 +1157,10 @@ void SearchAndReplaceWidget::on_m_mode_cb_currentIndexChanged(int index)
}
/**
* @brief SearchAndReplaceWidget::on_m_case_sensitive_cb_stateChanged
* Update the search when change the case sensitive
* @param arg1
*/
@brief SearchAndReplaceWidget::on_m_case_sensitive_cb_stateChanged
Update the search when change the case sensitive
@param arg1
*/
void SearchAndReplaceWidget::on_m_case_sensitive_cb_stateChanged(int arg1)
{
Q_UNUSED(arg1);
@@ -1162,9 +1168,9 @@ void SearchAndReplaceWidget::on_m_case_sensitive_cb_stateChanged(int arg1)
}
/**
* @brief SearchAndReplaceWidget::on_m_conductor_pb_clicked
* Open a dialog to edit the condutor properties
*/
@brief SearchAndReplaceWidget::on_m_conductor_pb_clicked
Open a dialog to edit the condutor properties
*/
void SearchAndReplaceWidget::on_m_conductor_pb_clicked()
{
ReplaceConductorDialog *dialog = new ReplaceConductorDialog(m_worker.m_conductor_properties, this);
@@ -1191,9 +1197,9 @@ void SearchAndReplaceWidget::on_m_conductor_pb_clicked()
}
/**
* @brief SearchAndReplaceWidget::on_m_advanced_replace_pb_clicked
* Open the advanced editor.
*/
@brief SearchAndReplaceWidget::on_m_advanced_replace_pb_clicked
Open the advanced editor.
*/
void SearchAndReplaceWidget::on_m_advanced_replace_pb_clicked()
{
replaceAdvancedDialog *dialog = new replaceAdvancedDialog(m_worker.m_advanced_struct, this);