Sketcher: Convert PointPos into an enum CLASS

This commit is contained in:
Abdullah Tahiri
2021-12-11 14:43:57 +01:00
parent bb76be1371
commit 97c82a6703
22 changed files with 845 additions and 843 deletions

View File

@@ -41,7 +41,7 @@ using namespace SketcherGui;
SketchMirrorDialog::SketchMirrorDialog(void)
: QDialog(Gui::getMainWindow())
, RefGeoid(-1)
, RefPosid(Sketcher::none)
, RefPosid(Sketcher::PointPos::none)
, ui(new Ui_SketchMirrorDialog)
{
ui->setupUi(this);
@@ -55,15 +55,15 @@ void SketchMirrorDialog::accept()
{
if (ui->XAxisRadioButton->isChecked()) {
RefGeoid=Sketcher::GeoEnum::HAxis;
RefPosid=Sketcher::none;
RefPosid=Sketcher::PointPos::none;
}
else if (ui->YAxisRadioButton->isChecked()) {
RefGeoid=Sketcher::GeoEnum::VAxis;
RefPosid=Sketcher::none;
RefPosid=Sketcher::PointPos::none;
}
else if (ui->OriginRadioButton->isChecked()) {
RefGeoid=Sketcher::GeoEnum::RtPnt;
RefPosid=Sketcher::start;
RefPosid=Sketcher::PointPos::start;
}
QDialog::accept();