Refactoring. "Remove" call to the overridable "CheckState" method.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2017-03-31 11:54:05 +03:00
parent 3d9feaf3c5
commit b506b1d177
38 changed files with 38 additions and 38 deletions

View File

@ -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:

View File

@ -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);

View File

@ -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

View File

@ -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

View File

@ -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);

View File

@ -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);

View File

@ -76,7 +76,7 @@ DialogCurveIntersectAxis::DialogCurveIntersectAxis(const VContainer *data, const
InitOkCancelApply(ui);
flagFormula = false;
CheckState();
DialogTool::CheckState();
FillComboBoxPoints(ui->comboBoxAxisPoint);
FillComboBoxCurves(ui->comboBoxCurve);

View File

@ -68,7 +68,7 @@ DialogCutArc::DialogCutArc(const VContainer *data, const quint32 &toolId, QWidge
InitOkCancelApply(ui);
flagFormula = false;
CheckState();
DialogTool::CheckState();
FillComboBoxArcs(ui->comboBoxArc);

View File

@ -68,7 +68,7 @@ DialogCutSpline::DialogCutSpline(const VContainer *data, const quint32 &toolId,
InitOkCancelApply(ui);
flagFormula = false;
CheckState();
DialogTool::CheckState();
FillComboBoxSplines(ui->comboBoxSpline);

View File

@ -68,7 +68,7 @@ DialogCutSplinePath::DialogCutSplinePath(const VContainer *data, const quint32 &
InitOkCancelApply(ui);
flagFormula = false;
CheckState();
DialogTool::CheckState();
FillComboBoxSplinesPath(ui->comboBoxSplinePath);

View File

@ -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

View File

@ -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());

View File

@ -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 */

View File

@ -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 */

View File

@ -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);
}

View File

@ -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);

View File

@ -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)

View File

@ -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();
};

View File

@ -80,7 +80,7 @@ DialogLineIntersectAxis::DialogLineIntersectAxis(const VContainer *data, const q
InitOkCancelApply(ui);
flagFormula = false;
CheckState();
DialogTool::CheckState();
FillComboBoxPoints(ui->comboBoxAxisPoint);
FillComboBoxPoints(ui->comboBoxFirstLinePoint);

View File

@ -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 */

View File

@ -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);

View File

@ -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;

View File

@ -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:

View File

@ -53,7 +53,7 @@ DialogPointFromArcAndTangent::DialogPointFromArcAndTangent(const VContainer *dat
labelEditNamePoint = ui->labelEditNamePoint;
InitOkCancelApply(ui);
CheckState();
DialogTool::CheckState();
FillComboBoxPoints(ui->comboBoxTangentPoint);
FillComboBoxArcs(ui->comboBoxArc);

View File

@ -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)

View File

@ -72,7 +72,7 @@ DialogPointOfContact::DialogPointOfContact(const VContainer *data, const quint32
InitOkCancelApply(ui);
flagFormula = false;
CheckState();
DialogTool::CheckState();
FillComboBoxPoints(ui->comboBoxFirstPoint);
FillComboBoxPoints(ui->comboBoxSecondPoint);

View File

@ -61,7 +61,7 @@ DialogPointOfIntersection::DialogPointOfIntersection(const VContainer *data, con
labelEditNamePoint = ui->labelEditNamePoint;
InitOkCancelApply(ui);
CheckState();
DialogTool::CheckState();
FillComboBoxPoints(ui->comboBoxFirstPoint);
FillComboBoxPoints(ui->comboBoxSecondPoint);

View File

@ -55,7 +55,7 @@ DialogPointOfIntersectionArcs::DialogPointOfIntersectionArcs(const VContainer *d
labelEditNamePoint = ui->labelEditNamePoint;
InitOkCancelApply(ui);
CheckState();
DialogTool::CheckState();
FillComboBoxArcs(ui->comboBoxArc1);
FillComboBoxArcs(ui->comboBoxArc2);

View File

@ -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)

View File

@ -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();

View File

@ -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 */

View File

@ -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);

View File

@ -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);
}

View File

@ -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

View File

@ -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);

View File

@ -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);

View File

@ -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)

View File

@ -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;