SketcherGui: apply clang-format

This commit is contained in:
Abdullah Tahiri
2023-05-25 15:09:30 +02:00
committed by abdullahtahiriyo
parent dc2d861bf0
commit 78ae9c1d7d
98 changed files with 17648 additions and 13572 deletions

View File

@@ -22,43 +22,42 @@
#include "PreCompiled.h"
#ifndef _PreComp_
# include <QDialog>
#include <QDialog>
#endif
#include <Gui/MainWindow.h>
#include "ui_SketchMirrorDialog.h"
#include "SketchMirrorDialog.h"
#include "ui_SketchMirrorDialog.h"
using namespace SketcherGui;
SketchMirrorDialog::SketchMirrorDialog()
: QDialog(Gui::getMainWindow())
, RefGeoid(-1)
, RefPosid(Sketcher::PointPos::none)
, ui(new Ui_SketchMirrorDialog)
: QDialog(Gui::getMainWindow())
, RefGeoid(-1)
, RefPosid(Sketcher::PointPos::none)
, ui(new Ui_SketchMirrorDialog)
{
ui->setupUi(this);
}
SketchMirrorDialog::~SketchMirrorDialog()
{
}
{}
void SketchMirrorDialog::accept()
{
if (ui->XAxisRadioButton->isChecked()) {
RefGeoid=Sketcher::GeoEnum::HAxis;
RefPosid=Sketcher::PointPos::none;
RefGeoid = Sketcher::GeoEnum::HAxis;
RefPosid = Sketcher::PointPos::none;
}
else if (ui->YAxisRadioButton->isChecked()) {
RefGeoid=Sketcher::GeoEnum::VAxis;
RefPosid=Sketcher::PointPos::none;
RefGeoid = Sketcher::GeoEnum::VAxis;
RefPosid = Sketcher::PointPos::none;
}
else if (ui->OriginRadioButton->isChecked()) {
RefGeoid=Sketcher::GeoEnum::RtPnt;
RefPosid=Sketcher::PointPos::start;
RefGeoid = Sketcher::GeoEnum::RtPnt;
RefPosid = Sketcher::PointPos::start;
}
QDialog::accept();