mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-03-10 01:40:02 +01:00
Fix various typos in source documentation and comments (cont.)
Found via `codespell`
This commit is contained in:
committed by
Laurent Trinques
parent
a76e5446aa
commit
1994235bc5
@@ -68,7 +68,7 @@ void CompositeTextEditDialog::setUpComboBox()
|
||||
qstrl.removeAll("formula");
|
||||
}
|
||||
|
||||
//We use a QMap because the keys of the map are sorted, then no matter the curent local,
|
||||
//We use a QMap because the keys of the map are sorted, then no matter the current local,
|
||||
//the value of the combo box are always alphabetically sorted
|
||||
QMap <QString, QString> info_map;
|
||||
for(const QString& str : qstrl) {
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
/**
|
||||
@brief ConductorPropertiesDialog::ConductorPropertiesDialog
|
||||
Constructor
|
||||
@param conductor : conductor to edit propertie
|
||||
@param conductor : conductor to edit properties
|
||||
@param parent : parent widget
|
||||
*/
|
||||
ConductorPropertiesDialog::ConductorPropertiesDialog(
|
||||
@@ -57,7 +57,7 @@ ConductorPropertiesDialog::~ConductorPropertiesDialog()
|
||||
/**
|
||||
@brief ConductorPropertiesDialog::PropertiesDialog
|
||||
Static method for open and apply properties.
|
||||
@param conductor : conductor to edit propertie
|
||||
@param conductor : conductor to edit properties
|
||||
@param parent : parent widget
|
||||
*/
|
||||
void ConductorPropertiesDialog::PropertiesDialog(Conductor *conductor,
|
||||
@@ -101,7 +101,7 @@ ConductorProperties ConductorPropertiesDialog::properties() const
|
||||
/**
|
||||
@brief ConductorPropertiesDialog::applyAll
|
||||
@return
|
||||
true -> must apply the propertie to all conductor at the same potential
|
||||
true -> must apply properties to all conductors at the same potential
|
||||
false -> must apply properties only for the edited conductor
|
||||
*/
|
||||
bool ConductorPropertiesDialog::applyAll() const
|
||||
|
||||
@@ -68,7 +68,7 @@ NewDiagramPage::NewDiagramPage(QETProject *project,
|
||||
// default conductor properties
|
||||
m_cpw = new ConductorPropertiesWidget(ConductorProperties::defaultProperties());
|
||||
m_cpw->setHiddenAvailableAutonum(true);
|
||||
// default propertie of report label
|
||||
// default properties of report label
|
||||
rpw = new ReportPropertieWidget(ReportProperties::defaultProperties());
|
||||
// default properties of xref
|
||||
xrefpw = new XRefPropertiesWidget(XRefProperties::defaultProperties(), this);
|
||||
@@ -170,7 +170,7 @@ void NewDiagramPage::applyConf()
|
||||
// proprietes par defaut des conducteurs
|
||||
m_cpw -> properties().toSettings(settings, "diagrameditor/defaultconductor");
|
||||
|
||||
// default report propertie
|
||||
// default report properties
|
||||
rpw->toSettings(settings, "diagrameditor/defaultreport");
|
||||
|
||||
// default xref properties
|
||||
|
||||
@@ -63,7 +63,7 @@ public slots:
|
||||
// attributes
|
||||
private:
|
||||
ProjectPropertiesDialog *ppd_;
|
||||
QETProject *m_project; ///< Project to edit propertie
|
||||
QETProject *m_project; ///< Project to edit properties
|
||||
BorderPropertiesWidget *bpw; ///< Widget to edit default diagram dimensions
|
||||
TitleBlockPropertiesWidget *ipw; ///< Widget to edit default title block properties
|
||||
ConductorPropertiesWidget *m_cpw; ///< Widget to edit default conductor properties
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
|
||||
/**
|
||||
@brief DiagramPropertiesDialog::DiagramPropertiesDialog
|
||||
Deafult constructor
|
||||
Default constructor
|
||||
@param diagram : diagram to edit properties
|
||||
@param parent : parent widget
|
||||
*/
|
||||
|
||||
@@ -87,7 +87,7 @@ DynamicElementTextModel::DynamicElementTextModel(Element *element, QObject *pare
|
||||
|
||||
DynamicElementTextModel::~DynamicElementTextModel()
|
||||
{
|
||||
//Connection is not destroy automaticaly,
|
||||
//Connection is not destroy automatically,
|
||||
//because was not connected to a slot, but a lambda
|
||||
for(DynamicElementTextItem *deti : m_hash_text_connect.keys())
|
||||
setConnection(deti, false);
|
||||
@@ -1623,7 +1623,7 @@ QWidget *DynamicTextItemDelegate::createEditor(
|
||||
if(!deti)
|
||||
break;
|
||||
|
||||
//We use a QMap because the keys of the map are sorted, then no matter the curent local,
|
||||
//We use a QMap because the keys of the map are sorted, then no matter the current local,
|
||||
//the value of the combo box are always alphabetically sorted
|
||||
QMap <QString, QString> info_map;
|
||||
for(const QString& str : availableInfo(deti)) {
|
||||
@@ -1880,8 +1880,8 @@ bool DynamicTextItemDelegate::eventFilter(QObject *object, QEvent *event)
|
||||
|
||||
//This is a bad hack, for change the normal behavior :
|
||||
//in normal behavior,
|
||||
//the value is commited when the spinbox lose focus or enter key is pressed
|
||||
//With this hack the value is commited each time the value change without the need to validate.
|
||||
//the value is committed when the spinbox lose focus or enter key is pressed
|
||||
//With this hack the value is committed each time the value change without the need to validate.
|
||||
//then the change is apply in live
|
||||
if(object->objectName() == "pos_dialog" || object->objectName() == "font_size" || object->objectName() == "rot_spinbox" || \
|
||||
object->objectName() == "group_rotation" || object->objectName() == "group_v_adjustment" || object->objectName() == "width_spinbox" ||\
|
||||
|
||||
@@ -154,7 +154,7 @@ void ElementPropertiesWidget::setDynamicText(DynamicElementTextItem *text)
|
||||
|
||||
/**
|
||||
@brief ElementPropertiesWidget::setTextsGroup
|
||||
Conveniance function :
|
||||
Convenience function :
|
||||
same as call : ElementPropertiesWidget::setElement,
|
||||
with parameter the parent element of group.
|
||||
Set the dynamics text tab as current tab,
|
||||
|
||||
@@ -28,7 +28,7 @@ namespace Ui {
|
||||
|
||||
/**
|
||||
@brief The ImagePropertiesWidget class
|
||||
This class provide a widget to edit the propertie of a DiagramImageItem
|
||||
This class provides a widget to edit the properties of a DiagramImageItem
|
||||
*/
|
||||
class ImagePropertiesWidget : public PropertiesEditorWidget
|
||||
{
|
||||
|
||||
@@ -365,9 +365,9 @@ bool LinkSingleElementWidget::setLiveEdit(bool live_edit)
|
||||
|
||||
/**
|
||||
@brief LinkSingleElementWidget::availableElements
|
||||
@return A QList with all available element
|
||||
@return A QList with all available elements
|
||||
to be linked with the edited element.
|
||||
This methode take care of the combo box "find in diagram"
|
||||
This method takes care of the "find in diagram" combo box
|
||||
*/
|
||||
QVector <QPointer<Element>> LinkSingleElementWidget::availableElements()
|
||||
{
|
||||
@@ -495,9 +495,9 @@ void LinkSingleElementWidget::setUpHeaderLabels()
|
||||
void LinkSingleElementWidget::diagramWasRemovedFromProject()
|
||||
{
|
||||
// We use a timer because if the removed diagram
|
||||
// contain the master element linked to the edited element
|
||||
// we must to wait for this elements be unlinked,
|
||||
// else the list of available master isn't up to date
|
||||
// contains the master element linked to the edited element
|
||||
// we must wait for this elements to be unlinked,
|
||||
// or else the list of available master isn't up to date
|
||||
QTimer::singleShot(10, this, SLOT(updateUi()));
|
||||
}
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ namespace Ui {
|
||||
to the element given in the constructor.
|
||||
The element given in constructor must be linked with only
|
||||
one other element (like report or slave element).
|
||||
This widget detect automaticaly the kind of element given in
|
||||
This widget detect automatically the kind of element given in
|
||||
the constructor and search all element that can be linked with it.
|
||||
If the element is already linked, the widget ask user to unlink.
|
||||
This widget embedded the diagram command for undo/redo the action
|
||||
|
||||
@@ -165,7 +165,7 @@ void MasterPropertiesWidget::setElement(Element *element)
|
||||
|
||||
/**
|
||||
@brief MasterPropertiesWidget::apply
|
||||
If link betwen edited element and other change,
|
||||
If link between edited element and other change,
|
||||
apply the change with a QUndoCommand (got with method associatedUndo)
|
||||
pushed to the stack of element project.
|
||||
Return true if link change, else false
|
||||
@@ -179,7 +179,7 @@ void MasterPropertiesWidget::apply()
|
||||
|
||||
/**
|
||||
@brief MasterPropertiesWidget::reset
|
||||
Reset curent widget, clear eveything and rebuild widget.
|
||||
Reset current widget, clear eveything and rebuild widget.
|
||||
*/
|
||||
void MasterPropertiesWidget::reset()
|
||||
{
|
||||
@@ -346,11 +346,11 @@ void MasterPropertiesWidget::headerCustomContextMenuRequested(const QPoint &pos)
|
||||
|
||||
/**
|
||||
@brief MasterPropertiesWidget::on_link_button_clicked
|
||||
move curent item in the free_list to linked_list
|
||||
move current item in the free_list to linked_list
|
||||
*/
|
||||
void MasterPropertiesWidget::on_link_button_clicked()
|
||||
{
|
||||
//take the curent item from free_list and push it to linked_list
|
||||
//take the current item from free_list and push it to linked_list
|
||||
QTreeWidgetItem *qtwi = ui->m_free_tree_widget->currentItem();
|
||||
if (qtwi)
|
||||
{
|
||||
@@ -365,11 +365,11 @@ void MasterPropertiesWidget::on_link_button_clicked()
|
||||
|
||||
/**
|
||||
@brief MasterPropertiesWidget::on_unlink_button_clicked
|
||||
move curent item in linked_list to free_list
|
||||
move current item in linked_list to free_list
|
||||
*/
|
||||
void MasterPropertiesWidget::on_unlink_button_clicked()
|
||||
{
|
||||
//take the curent item from linked_list and push it to free_list
|
||||
//take the current item from linked_list and push it to free_list
|
||||
QTreeWidgetItem *qtwi = ui->m_link_tree_widget->currentItem();
|
||||
if(qtwi)
|
||||
{
|
||||
@@ -424,9 +424,9 @@ void MasterPropertiesWidget::showedElementWasDeleted()
|
||||
void MasterPropertiesWidget::diagramWasdeletedFromProject()
|
||||
{
|
||||
// We use a timer because if the removed diagram
|
||||
// contain slave element linked to the edited element
|
||||
// we must to wait for this elements be unlinked,
|
||||
// else the linked list provide deleted elements.
|
||||
// contains slave element linked to the edited element
|
||||
// we must wait for this elements be unlinked,
|
||||
// or else the linked list provides deleted elements.
|
||||
QTimer::singleShot(10, this, SLOT(updateUi()));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
|
||||
/**
|
||||
@brief The NewConductorPotentialSelector class
|
||||
Use for get the conductor propertie when two potentials is linked by a conductor
|
||||
Used for getting the conductor properties when two potentials are linked by a conductor
|
||||
*/
|
||||
class NewConductorPotentialSelector : public AbstractPotentialSelector
|
||||
{
|
||||
@@ -45,7 +45,7 @@ class NewConductorPotentialSelector : public AbstractPotentialSelector
|
||||
{
|
||||
Terminal *terminal_1 = conductor->terminal1;
|
||||
Terminal *terminal_2 = conductor->terminal2;
|
||||
//We temporarily remove the conductor of his two terminals,
|
||||
//We temporarily remove the conductor of its two terminals,
|
||||
//to get the two existing potential
|
||||
terminal_1->removeConductor(conductor);
|
||||
terminal_2->removeConductor(conductor);
|
||||
@@ -75,7 +75,7 @@ class NewConductorPotentialSelector : public AbstractPotentialSelector
|
||||
|
||||
/**
|
||||
@brief getPotential
|
||||
Get the conductor propertie of the potential at terminal,
|
||||
Get the conductor properties of the potential at terminal,
|
||||
and the number of wire in this potential.
|
||||
@param terminal
|
||||
@param seq_num
|
||||
@@ -140,7 +140,7 @@ class NewConductorPotentialSelector : public AbstractPotentialSelector
|
||||
|
||||
/**
|
||||
@brief The LinkReportPotentialSelector class
|
||||
Use for get the conductor propertie when two potentials is linked with a folio report
|
||||
Use for getting the conductor properties when two potentials are linked with a folio report
|
||||
*/
|
||||
class LinkReportPotentialSelector : public AbstractPotentialSelector
|
||||
{
|
||||
|
||||
@@ -434,7 +434,7 @@ void TitleBlockPropertiesWidget::updateTemplateList()
|
||||
|
||||
/**
|
||||
@brief TitleBlockPropertiesWidget::changeCurrentTitleBlockTemplate
|
||||
Load the additionnal field of title block "text"
|
||||
Load the additional field of title block "text"
|
||||
*/
|
||||
void TitleBlockPropertiesWidget::changeCurrentTitleBlockTemplate(int index)
|
||||
{
|
||||
|
||||
@@ -151,7 +151,7 @@ void XRefPropertiesWidget::saveProperties(int index) {
|
||||
|
||||
/**
|
||||
@brief XRefPropertiesWidget::updateDisplay
|
||||
Update display with the curent displayed type.
|
||||
Update display with the current displayed type.
|
||||
*/
|
||||
void XRefPropertiesWidget::updateDisplay()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user