Part: Prepare for clang-format
This commit is contained in:
@@ -200,6 +200,7 @@ PyObject* Part::PartExceptionOCCRangeError;
|
||||
PyObject* Part::PartExceptionOCCConstructionError;
|
||||
PyObject* Part::PartExceptionOCCDimensionError;
|
||||
|
||||
// clang-format off
|
||||
PyMOD_INIT_FUNC(Part)
|
||||
{
|
||||
// load dependent module
|
||||
@@ -564,3 +565,4 @@ PyMOD_INIT_FUNC(Part)
|
||||
|
||||
PyMOD_Return(partModule);
|
||||
}
|
||||
// clang-format on
|
||||
|
||||
@@ -143,6 +143,7 @@ DlgExtrusion::~DlgExtrusion()
|
||||
|
||||
void DlgExtrusion::setupConnections()
|
||||
{
|
||||
// clang-format off
|
||||
connect(ui->rbDirModeCustom, &QRadioButton::toggled,
|
||||
this, &DlgExtrusion::onDirModeCustomToggled);
|
||||
connect(ui->rbDirModeEdge, &QRadioButton::toggled,
|
||||
@@ -161,6 +162,7 @@ void DlgExtrusion::setupConnections()
|
||||
this, &DlgExtrusion::onCheckSymmetricToggled);
|
||||
connect(ui->txtLink, &QLineEdit::textChanged,
|
||||
this, &DlgExtrusion::onTextLinkTextChanged);
|
||||
// clang-format on
|
||||
}
|
||||
|
||||
void DlgExtrusion::changeEvent(QEvent *e)
|
||||
|
||||
@@ -308,6 +308,7 @@ DlgFilletEdges::~DlgFilletEdges()
|
||||
|
||||
void DlgFilletEdges::setupConnections()
|
||||
{
|
||||
// clang-format off
|
||||
connect(ui->shapeObject, qOverload<int>(&QComboBox::activated),
|
||||
this, &DlgFilletEdges::onShapeObjectActivated);
|
||||
connect(ui->selectEdges, &QRadioButton::toggled,
|
||||
@@ -326,6 +327,7 @@ void DlgFilletEdges::setupConnections()
|
||||
connect(ui->filletEndRadius,
|
||||
qOverload<const Base::Quantity&>(&Gui::QuantitySpinBox::valueChanged),
|
||||
this, &DlgFilletEdges::onFilletEndRadiusValueChanged);
|
||||
// clang-format on
|
||||
}
|
||||
|
||||
void DlgFilletEdges::onSelectionChanged(const Gui::SelectionChanges& msg)
|
||||
|
||||
@@ -207,6 +207,7 @@ DlgProjectionOnSurface::~DlgProjectionOnSurface()
|
||||
|
||||
void PartGui::DlgProjectionOnSurface::setupConnections()
|
||||
{
|
||||
// clang-format off
|
||||
connect(ui->pushButtonAddFace,
|
||||
&QPushButton::clicked,
|
||||
this,
|
||||
@@ -259,6 +260,7 @@ void PartGui::DlgProjectionOnSurface::setupConnections()
|
||||
qOverload<double>(&QDoubleSpinBox::valueChanged),
|
||||
this,
|
||||
&DlgProjectionOnSurface::onDoubleSpinBoxSolidDepthValueChanged);
|
||||
// clang-format on
|
||||
}
|
||||
|
||||
void PartGui::DlgProjectionOnSurface::slotDeletedDocument(const App::Document& Doc)
|
||||
|
||||
@@ -142,6 +142,7 @@ DlgRevolution::~DlgRevolution()
|
||||
|
||||
void DlgRevolution::setupConnections()
|
||||
{
|
||||
// clang-format off
|
||||
connect(ui->selectLine, &QPushButton::clicked,
|
||||
this, &DlgRevolution::onSelectLineClicked);
|
||||
connect(ui->btnX, &QPushButton::clicked,
|
||||
@@ -152,6 +153,7 @@ void DlgRevolution::setupConnections()
|
||||
this, &DlgRevolution::onButtonZClicked);
|
||||
connect(ui->txtAxisLink, &QLineEdit::textChanged,
|
||||
this, &DlgRevolution::onAxisLinkTextChanged);
|
||||
// clang-format on
|
||||
}
|
||||
|
||||
Base::Vector3d DlgRevolution::getDirection() const
|
||||
|
||||
@@ -123,6 +123,7 @@ TaskAttacher::TaskAttacher(Gui::ViewProviderDocumentObject *ViewProvider, QWidge
|
||||
ui->setupUi(proxy);
|
||||
QMetaObject::connectSlotsByName(this);
|
||||
|
||||
// clang-format off
|
||||
connect(ui->attachmentOffsetX, qOverload<double>(&Gui::QuantitySpinBox::valueChanged),
|
||||
this, &TaskAttacher::onAttachmentOffsetXChanged);
|
||||
connect(ui->attachmentOffsetY, qOverload<double>(&Gui::QuantitySpinBox::valueChanged),
|
||||
@@ -155,6 +156,7 @@ TaskAttacher::TaskAttacher(Gui::ViewProviderDocumentObject *ViewProvider, QWidge
|
||||
this, &TaskAttacher::onRefName4);
|
||||
connect(ui->listOfModes, &QListWidget::itemSelectionChanged,
|
||||
this, &TaskAttacher::onModeSelect);
|
||||
// clang-format on
|
||||
|
||||
this->groupLayout()->addWidget(proxy);
|
||||
|
||||
|
||||
@@ -278,18 +278,16 @@ FaceAppearances::~FaceAppearances()
|
||||
|
||||
void FaceAppearances::setupConnections()
|
||||
{
|
||||
// clang-format off
|
||||
connect(d->ui->defaultButton, &QPushButton::clicked,
|
||||
this, &FaceAppearances::onDefaultButtonClicked);
|
||||
connect(d->ui->boxSelection, &QPushButton::toggled,
|
||||
this, &FaceAppearances::onBoxSelectionToggled);
|
||||
connect(d->ui->widgetMaterial,
|
||||
&MatGui::MaterialTreeWidget::materialSelected,
|
||||
this,
|
||||
&FaceAppearances::onMaterialSelected);
|
||||
connect(d->ui->buttonCustomAppearance,
|
||||
&QPushButton::clicked,
|
||||
this,
|
||||
&FaceAppearances::onButtonCustomAppearanceClicked);
|
||||
connect(d->ui->widgetMaterial, &MatGui::MaterialTreeWidget::materialSelected,
|
||||
this, &FaceAppearances::onMaterialSelected);
|
||||
connect(d->ui->buttonCustomAppearance, &QPushButton::clicked,
|
||||
this, &FaceAppearances::onButtonCustomAppearanceClicked);
|
||||
// clang-format on
|
||||
}
|
||||
|
||||
void FaceAppearances::slotUndoDocument(const Gui::Document& Doc)
|
||||
|
||||
@@ -73,10 +73,12 @@ LoftWidget::LoftWidget(QWidget* parent)
|
||||
d->ui.selector->setAvailableLabel(tr("Available profiles"));
|
||||
d->ui.selector->setSelectedLabel(tr("Selected profiles"));
|
||||
|
||||
// clang-format off
|
||||
connect(d->ui.selector->availableTreeWidget(), &QTreeWidget::currentItemChanged,
|
||||
this, &LoftWidget::onCurrentItemChanged);
|
||||
connect(d->ui.selector->selectedTreeWidget(), &QTreeWidget::currentItemChanged,
|
||||
this, &LoftWidget::onCurrentItemChanged);
|
||||
// clang-format on
|
||||
|
||||
findShapes();
|
||||
}
|
||||
|
||||
@@ -112,6 +112,7 @@ OffsetWidget::~OffsetWidget()
|
||||
|
||||
void OffsetWidget::setupConnections()
|
||||
{
|
||||
// clang-format off
|
||||
connect(d->ui.spinOffset, qOverload<double>(&Gui::QuantitySpinBox::valueChanged),
|
||||
this, &OffsetWidget::onSpinOffsetValueChanged);
|
||||
connect(d->ui.modeType, qOverload<int>(&QComboBox::activated),
|
||||
@@ -126,6 +127,7 @@ void OffsetWidget::setupConnections()
|
||||
this, &OffsetWidget::onFillOffsetToggled);
|
||||
connect(d->ui.updateView, &QCheckBox::toggled,
|
||||
this, &OffsetWidget::onUpdateViewToggled);
|
||||
// clang-format on
|
||||
}
|
||||
|
||||
Part::Offset* OffsetWidget::getObject() const
|
||||
|
||||
@@ -132,12 +132,14 @@ SweepWidget::SweepWidget(QWidget* parent)
|
||||
d->ui.selector->setSelectedLabel(tr("Selected profiles"));
|
||||
d->ui.labelPath->clear();
|
||||
|
||||
// clang-format off
|
||||
connect(d->ui.buttonPath, &QPushButton::toggled,
|
||||
this, &SweepWidget::onButtonPathToggled);
|
||||
connect(d->ui.selector->availableTreeWidget(), &QTreeWidget::currentItemChanged,
|
||||
this, &SweepWidget::onCurrentItemChanged);
|
||||
connect(d->ui.selector->selectedTreeWidget(), &QTreeWidget::currentItemChanged,
|
||||
this, &SweepWidget::onCurrentItemChanged);
|
||||
// clang-format on
|
||||
|
||||
findShapes();
|
||||
}
|
||||
|
||||
@@ -119,6 +119,7 @@ ThicknessWidget::~ThicknessWidget()
|
||||
|
||||
void ThicknessWidget::setupConnections()
|
||||
{
|
||||
// clang-format off
|
||||
connect(d->ui.spinOffset, qOverload<double>(&Gui::QuantitySpinBox::valueChanged),
|
||||
this, &ThicknessWidget::onSpinOffsetValueChanged);
|
||||
connect(d->ui.modeType, qOverload<int>(&QComboBox::activated),
|
||||
@@ -133,6 +134,7 @@ void ThicknessWidget::setupConnections()
|
||||
this, &ThicknessWidget::onFacesButtonToggled);
|
||||
connect(d->ui.updateView, &QCheckBox::toggled,
|
||||
this, &ThicknessWidget::onUpdateViewToggled);
|
||||
// clang-format on
|
||||
}
|
||||
|
||||
Part::Thickness* ThicknessWidget::getObject() const
|
||||
|
||||
Reference in New Issue
Block a user