Refactoring. "Remove" call to the overridable "CheckState" method.
--HG-- branch : develop
This commit is contained in:
parent
3d9feaf3c5
commit
b506b1d177
|
@ -88,7 +88,7 @@ public slots:
|
|||
void Increments();
|
||||
void Functions();
|
||||
protected:
|
||||
virtual void CheckState() Q_DECL_OVERRIDE;
|
||||
virtual void CheckState() Q_DECL_FINAL;
|
||||
virtual void closeEvent(QCloseEvent *event) Q_DECL_OVERRIDE;
|
||||
virtual void showEvent( QShowEvent *event ) Q_DECL_OVERRIDE;
|
||||
private slots:
|
||||
|
|
|
@ -81,7 +81,7 @@ DialogAlongLine::DialogAlongLine(const VContainer *data, const quint32 &toolId,
|
|||
|
||||
InitOkCancelApply(ui);
|
||||
flagFormula = false;
|
||||
CheckState();
|
||||
DialogTool::CheckState();
|
||||
|
||||
FillComboBoxPoints(ui->comboBoxFirstPoint);
|
||||
FillComboBoxPoints(ui->comboBoxSecondPoint);
|
||||
|
|
|
@ -83,7 +83,7 @@ public slots:
|
|||
void FXF1();
|
||||
void FXF2();
|
||||
protected:
|
||||
virtual void CheckState() Q_DECL_OVERRIDE;
|
||||
virtual void CheckState() Q_DECL_FINAL;
|
||||
virtual void ShowVisualization() Q_DECL_OVERRIDE;
|
||||
/**
|
||||
* @brief SaveData Put dialog data in local variables
|
||||
|
|
|
@ -84,7 +84,7 @@ public slots:
|
|||
void FXLength();
|
||||
|
||||
protected:
|
||||
virtual void CheckState() Q_DECL_OVERRIDE;
|
||||
virtual void CheckState() Q_DECL_FINAL;
|
||||
virtual void ShowVisualization() Q_DECL_OVERRIDE;
|
||||
/**
|
||||
* @brief SaveData Put dialog data in local variables
|
||||
|
|
|
@ -73,7 +73,7 @@ DialogBisector::DialogBisector(const VContainer *data, const quint32 &toolId, QW
|
|||
|
||||
InitOkCancelApply(ui);
|
||||
flagFormula = false;
|
||||
CheckState();
|
||||
DialogTool::CheckState();
|
||||
|
||||
FillComboBoxPoints(ui->comboBoxFirstPoint);
|
||||
FillComboBoxPoints(ui->comboBoxSecondPoint);
|
||||
|
|
|
@ -58,7 +58,7 @@ DialogCubicBezier::DialogCubicBezier(const VContainer *data, const quint32 &tool
|
|||
FillComboBoxPoints(ui->comboBoxP4);
|
||||
FillComboBoxLineColors(ui->comboBoxColor);
|
||||
|
||||
CheckState();
|
||||
DialogTool::CheckState();
|
||||
|
||||
connect(ui->comboBoxP1, static_cast<void (QComboBox::*)(const QString &)>(&QComboBox::currentIndexChanged),
|
||||
this, &DialogCubicBezier::PointNameChanged);
|
||||
|
|
|
@ -76,7 +76,7 @@ DialogCurveIntersectAxis::DialogCurveIntersectAxis(const VContainer *data, const
|
|||
|
||||
InitOkCancelApply(ui);
|
||||
flagFormula = false;
|
||||
CheckState();
|
||||
DialogTool::CheckState();
|
||||
|
||||
FillComboBoxPoints(ui->comboBoxAxisPoint);
|
||||
FillComboBoxCurves(ui->comboBoxCurve);
|
||||
|
|
|
@ -68,7 +68,7 @@ DialogCutArc::DialogCutArc(const VContainer *data, const quint32 &toolId, QWidge
|
|||
|
||||
InitOkCancelApply(ui);
|
||||
flagFormula = false;
|
||||
CheckState();
|
||||
DialogTool::CheckState();
|
||||
|
||||
FillComboBoxArcs(ui->comboBoxArc);
|
||||
|
||||
|
|
|
@ -68,7 +68,7 @@ DialogCutSpline::DialogCutSpline(const VContainer *data, const quint32 &toolId,
|
|||
|
||||
InitOkCancelApply(ui);
|
||||
flagFormula = false;
|
||||
CheckState();
|
||||
DialogTool::CheckState();
|
||||
|
||||
FillComboBoxSplines(ui->comboBoxSpline);
|
||||
|
||||
|
|
|
@ -68,7 +68,7 @@ DialogCutSplinePath::DialogCutSplinePath(const VContainer *data, const quint32 &
|
|||
|
||||
InitOkCancelApply(ui);
|
||||
flagFormula = false;
|
||||
CheckState();
|
||||
DialogTool::CheckState();
|
||||
|
||||
FillComboBoxSplinesPath(ui->comboBoxSplinePath);
|
||||
|
||||
|
|
|
@ -95,7 +95,7 @@ public slots:
|
|||
void FXRotationAngle();
|
||||
|
||||
protected:
|
||||
virtual void CheckState() Q_DECL_OVERRIDE;
|
||||
virtual void CheckState() Q_DECL_FINAL;
|
||||
virtual void ShowVisualization() Q_DECL_OVERRIDE;
|
||||
/**
|
||||
* @brief SaveData Put dialog data in local variables
|
||||
|
|
|
@ -87,7 +87,7 @@ DialogEndLine::DialogEndLine(const VContainer *data, const quint32 &toolId, QWid
|
|||
|
||||
InitOkCancelApply(ui);
|
||||
flagFormula = false;
|
||||
CheckState();
|
||||
DialogTool::CheckState();
|
||||
|
||||
FillComboBoxPoints(ui->comboBoxBasePoint);
|
||||
FillComboBoxTypeLine(ui->comboBoxLineType, VAbstractTool::LineStylesPics());
|
||||
|
|
|
@ -75,7 +75,7 @@ private slots:
|
|||
void SuffixChanged();
|
||||
|
||||
protected:
|
||||
virtual void CheckState() Q_DECL_OVERRIDE;
|
||||
virtual void CheckState() Q_DECL_FINAL;
|
||||
virtual void ShowVisualization() Q_DECL_OVERRIDE;
|
||||
|
||||
/** @brief SaveData Put dialog data in local variables */
|
||||
|
|
|
@ -75,7 +75,7 @@ private slots:
|
|||
void SuffixChanged();
|
||||
|
||||
protected:
|
||||
virtual void CheckState() Q_DECL_OVERRIDE;
|
||||
virtual void CheckState() Q_DECL_FINAL;
|
||||
virtual void ShowVisualization() Q_DECL_OVERRIDE;
|
||||
|
||||
/** @brief SaveData Put dialog data in local variables */
|
||||
|
|
|
@ -40,7 +40,7 @@ DialogGroup::DialogGroup(const VContainer *data, const quint32 &toolId, QWidget
|
|||
{
|
||||
ui->setupUi(this);
|
||||
InitOkCancel(ui);
|
||||
CheckState();
|
||||
DialogTool::CheckState();
|
||||
|
||||
connect(ui->lineEditName, &QLineEdit::textChanged, this, &DialogGroup::NameChanged);
|
||||
}
|
||||
|
|
|
@ -70,7 +70,7 @@ DialogHeight::DialogHeight(const VContainer *data, const quint32 &toolId, QWidge
|
|||
ui->lineEditNamePoint->setText(qApp->getCurrentDocument()->GenerateLabel(LabelType::NewLabel));
|
||||
labelEditNamePoint = ui->labelEditNamePoint;
|
||||
InitOkCancelApply(ui);
|
||||
CheckState();
|
||||
DialogTool::CheckState();
|
||||
|
||||
FillComboBoxPoints(ui->comboBoxBasePoint);
|
||||
FillComboBoxPoints(ui->comboBoxP1Line);
|
||||
|
|
|
@ -57,7 +57,7 @@ public slots:
|
|||
virtual void ChosenObject(quint32 id, const SceneObject &type) Q_DECL_OVERRIDE;
|
||||
|
||||
protected:
|
||||
virtual void CheckState() Q_DECL_OVERRIDE;
|
||||
virtual void CheckState() Q_DECL_FINAL;
|
||||
|
||||
private:
|
||||
Q_DISABLE_COPY(DialogInsertNode)
|
||||
|
|
|
@ -85,7 +85,7 @@ private:
|
|||
/** @brief flagPoint keep state of point */
|
||||
bool flagPoint;
|
||||
|
||||
virtual void CheckState() Q_DECL_OVERRIDE;
|
||||
virtual void CheckState() Q_DECL_FINAL;
|
||||
bool CheckIntersecion();
|
||||
};
|
||||
|
||||
|
|
|
@ -80,7 +80,7 @@ DialogLineIntersectAxis::DialogLineIntersectAxis(const VContainer *data, const q
|
|||
|
||||
InitOkCancelApply(ui);
|
||||
flagFormula = false;
|
||||
CheckState();
|
||||
DialogTool::CheckState();
|
||||
|
||||
FillComboBoxPoints(ui->comboBoxAxisPoint);
|
||||
FillComboBoxPoints(ui->comboBoxFirstLinePoint);
|
||||
|
|
|
@ -84,7 +84,7 @@ private slots:
|
|||
void SuffixChanged();
|
||||
|
||||
protected:
|
||||
virtual void CheckState() Q_DECL_OVERRIDE;
|
||||
virtual void CheckState() Q_DECL_FINAL;
|
||||
virtual void ShowVisualization() Q_DECL_OVERRIDE;
|
||||
|
||||
/** @brief SaveData Put dialog data in local variables */
|
||||
|
|
|
@ -73,7 +73,7 @@ DialogNormal::DialogNormal(const VContainer *data, const quint32 &toolId, QWidge
|
|||
|
||||
InitOkCancelApply(ui);
|
||||
flagFormula = false;
|
||||
CheckState();
|
||||
DialogTool::CheckState();
|
||||
|
||||
FillComboBoxPoints(ui->comboBoxFirstPoint);
|
||||
FillComboBoxPoints(ui->comboBoxSecondPoint);
|
||||
|
|
|
@ -61,7 +61,7 @@ public slots:
|
|||
virtual void ShowDialog(bool click) Q_DECL_OVERRIDE;
|
||||
|
||||
protected:
|
||||
virtual void CheckState() Q_DECL_OVERRIDE;
|
||||
virtual void CheckState() Q_DECL_FINAL;
|
||||
virtual void ShowVisualization() Q_DECL_OVERRIDE;
|
||||
virtual void closeEvent(QCloseEvent *event) Q_DECL_OVERRIDE;
|
||||
|
||||
|
|
|
@ -57,7 +57,7 @@ public slots:
|
|||
virtual void ChosenObject(quint32 id, const SceneObject &type) Q_DECL_OVERRIDE;
|
||||
|
||||
protected:
|
||||
virtual void CheckState() Q_DECL_OVERRIDE;
|
||||
virtual void CheckState() Q_DECL_FINAL;
|
||||
virtual void ShowVisualization() Q_DECL_OVERRIDE;
|
||||
|
||||
private:
|
||||
|
|
|
@ -53,7 +53,7 @@ DialogPointFromArcAndTangent::DialogPointFromArcAndTangent(const VContainer *dat
|
|||
labelEditNamePoint = ui->labelEditNamePoint;
|
||||
|
||||
InitOkCancelApply(ui);
|
||||
CheckState();
|
||||
DialogTool::CheckState();
|
||||
|
||||
FillComboBoxPoints(ui->comboBoxTangentPoint);
|
||||
FillComboBoxArcs(ui->comboBoxArc);
|
||||
|
|
|
@ -82,7 +82,7 @@ protected:
|
|||
*/
|
||||
virtual void SaveData() Q_DECL_OVERRIDE;
|
||||
virtual void closeEvent(QCloseEvent *event) Q_DECL_OVERRIDE;
|
||||
virtual void CheckState() Q_DECL_OVERRIDE;
|
||||
virtual void CheckState() Q_DECL_FINAL;
|
||||
|
||||
private:
|
||||
Q_DISABLE_COPY(DialogPointFromCircleAndTangent)
|
||||
|
|
|
@ -72,7 +72,7 @@ DialogPointOfContact::DialogPointOfContact(const VContainer *data, const quint32
|
|||
|
||||
InitOkCancelApply(ui);
|
||||
flagFormula = false;
|
||||
CheckState();
|
||||
DialogTool::CheckState();
|
||||
|
||||
FillComboBoxPoints(ui->comboBoxFirstPoint);
|
||||
FillComboBoxPoints(ui->comboBoxSecondPoint);
|
||||
|
|
|
@ -61,7 +61,7 @@ DialogPointOfIntersection::DialogPointOfIntersection(const VContainer *data, con
|
|||
labelEditNamePoint = ui->labelEditNamePoint;
|
||||
|
||||
InitOkCancelApply(ui);
|
||||
CheckState();
|
||||
DialogTool::CheckState();
|
||||
|
||||
FillComboBoxPoints(ui->comboBoxFirstPoint);
|
||||
FillComboBoxPoints(ui->comboBoxSecondPoint);
|
||||
|
|
|
@ -55,7 +55,7 @@ DialogPointOfIntersectionArcs::DialogPointOfIntersectionArcs(const VContainer *d
|
|||
labelEditNamePoint = ui->labelEditNamePoint;
|
||||
|
||||
InitOkCancelApply(ui);
|
||||
CheckState();
|
||||
DialogTool::CheckState();
|
||||
|
||||
FillComboBoxArcs(ui->comboBoxArc1);
|
||||
FillComboBoxArcs(ui->comboBoxArc2);
|
||||
|
|
|
@ -92,7 +92,7 @@ protected:
|
|||
*/
|
||||
virtual void SaveData() Q_DECL_OVERRIDE;
|
||||
virtual void closeEvent(QCloseEvent *event) Q_DECL_OVERRIDE;
|
||||
virtual void CheckState() Q_DECL_OVERRIDE;
|
||||
virtual void CheckState() Q_DECL_FINAL;
|
||||
|
||||
private:
|
||||
Q_DISABLE_COPY(DialogPointOfIntersectionCircles)
|
||||
|
|
|
@ -75,7 +75,7 @@ protected:
|
|||
* @brief SaveData Put dialog data in local variables
|
||||
*/
|
||||
virtual void SaveData() Q_DECL_OVERRIDE;
|
||||
virtual void CheckState() Q_DECL_OVERRIDE;
|
||||
virtual void CheckState() Q_DECL_FINAL;
|
||||
|
||||
private slots:
|
||||
void CurveChanged();
|
||||
|
|
|
@ -77,7 +77,7 @@ private slots:
|
|||
void SuffixChanged();
|
||||
|
||||
protected:
|
||||
virtual void CheckState() Q_DECL_OVERRIDE;
|
||||
virtual void CheckState() Q_DECL_FINAL;
|
||||
virtual void ShowVisualization() Q_DECL_OVERRIDE;
|
||||
|
||||
/** @brief SaveData Put dialog data in local variables */
|
||||
|
|
|
@ -74,7 +74,7 @@ DialogShoulderPoint::DialogShoulderPoint(const VContainer *data, const quint32 &
|
|||
|
||||
InitOkCancelApply(ui);
|
||||
flagFormula = false;
|
||||
CheckState();
|
||||
DialogTool::CheckState();
|
||||
|
||||
FillComboBoxTypeLine(ui->comboBoxLineType, VAbstractTool::LineStylesPics());
|
||||
FillComboBoxPoints(ui->comboBoxP1Line);
|
||||
|
|
|
@ -57,7 +57,7 @@ DialogSinglePoint::DialogSinglePoint(const VContainer *data, const quint32 &tool
|
|||
InitOkCancel(ui);
|
||||
|
||||
flagName = true;
|
||||
CheckState();
|
||||
DialogTool::CheckState();
|
||||
|
||||
connect(ui->lineEditName, &QLineEdit::textChanged, this, &DialogTool::NamePointChanged);
|
||||
}
|
||||
|
|
|
@ -67,7 +67,7 @@ public slots:
|
|||
virtual void PointNameChanged() Q_DECL_OVERRIDE;
|
||||
virtual void ShowDialog(bool click) Q_DECL_OVERRIDE;
|
||||
protected:
|
||||
virtual void CheckState() Q_DECL_OVERRIDE;
|
||||
virtual void CheckState() Q_DECL_FINAL;
|
||||
virtual void ShowVisualization() Q_DECL_OVERRIDE;
|
||||
/**
|
||||
* @brief SaveData Put dialog data in local variables
|
||||
|
|
|
@ -68,7 +68,7 @@ public slots:
|
|||
protected:
|
||||
virtual void ShowVisualization() Q_DECL_OVERRIDE;
|
||||
virtual void SaveData() Q_DECL_OVERRIDE;
|
||||
virtual void CheckState() Q_DECL_OVERRIDE;
|
||||
virtual void CheckState() Q_DECL_FINAL;
|
||||
virtual void closeEvent(QCloseEvent *event) Q_DECL_OVERRIDE;
|
||||
private slots:
|
||||
void PointChanged(int row);
|
||||
|
|
|
@ -61,7 +61,7 @@ DialogTriangle::DialogTriangle(const VContainer *data, const quint32 &toolId, QW
|
|||
labelEditNamePoint = ui->labelEditNamePoint;
|
||||
|
||||
InitOkCancelApply(ui);
|
||||
CheckState();
|
||||
DialogTool::CheckState();
|
||||
|
||||
FillComboBoxPoints(ui->comboBoxAxisP1);
|
||||
FillComboBoxPoints(ui->comboBoxAxisP2);
|
||||
|
|
|
@ -82,7 +82,7 @@ protected:
|
|||
* @brief SaveData Put dialog data in local variables
|
||||
*/
|
||||
virtual void SaveData() Q_DECL_OVERRIDE;
|
||||
virtual void CheckState() Q_DECL_OVERRIDE;
|
||||
virtual void CheckState() Q_DECL_FINAL;
|
||||
|
||||
private:
|
||||
Q_DISABLE_COPY(DialogTrueDarts)
|
||||
|
|
|
@ -70,7 +70,7 @@ public slots:
|
|||
protected:
|
||||
/** @brief SaveData Put dialog data in local variables */
|
||||
virtual void SaveData() Q_DECL_OVERRIDE;
|
||||
virtual void CheckState() Q_DECL_OVERRIDE;
|
||||
virtual void CheckState() Q_DECL_FINAL;
|
||||
virtual void closeEvent(QCloseEvent *event) Q_DECL_OVERRIDE;
|
||||
virtual void showEvent( QShowEvent *event ) Q_DECL_OVERRIDE;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user