RE: apply clang format
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
# include <QMessageBox>
|
||||
#include <QMessageBox>
|
||||
#endif
|
||||
|
||||
#include <App/Document.h>
|
||||
@@ -30,8 +30,8 @@
|
||||
#include <Gui/Command.h>
|
||||
#include <Gui/WaitCursor.h>
|
||||
|
||||
#include "ui_Poisson.h"
|
||||
#include "Poisson.h"
|
||||
#include "ui_Poisson.h"
|
||||
|
||||
|
||||
using namespace ReenGui;
|
||||
@@ -48,7 +48,7 @@ public:
|
||||
/* TRANSLATOR ReenGui::PoissonWidget */
|
||||
|
||||
PoissonWidget::PoissonWidget(const App::DocumentObjectT& obj, QWidget* parent)
|
||||
: d(new Private())
|
||||
: d(new Private())
|
||||
{
|
||||
Q_UNUSED(parent);
|
||||
d->ui.setupUi(this);
|
||||
@@ -66,21 +66,17 @@ bool PoissonWidget::accept()
|
||||
QString document = QString::fromStdString(d->obj.getDocumentPython());
|
||||
QString object = QString::fromStdString(d->obj.getObjectPython());
|
||||
|
||||
QString argument = QString::fromLatin1(
|
||||
"Points=%1.Points, "
|
||||
"OctreeDepth=%2, "
|
||||
"SolverDivide=%3, "
|
||||
"SamplesPerNode=%4"
|
||||
)
|
||||
.arg(object)
|
||||
.arg(d->ui.octreeDepth->value())
|
||||
.arg(d->ui.solverDivide->value())
|
||||
.arg(d->ui.samplesPerNode->value())
|
||||
;
|
||||
QString argument = QString::fromLatin1("Points=%1.Points, "
|
||||
"OctreeDepth=%2, "
|
||||
"SolverDivide=%3, "
|
||||
"SamplesPerNode=%4")
|
||||
.arg(object)
|
||||
.arg(d->ui.octreeDepth->value())
|
||||
.arg(d->ui.solverDivide->value())
|
||||
.arg(d->ui.samplesPerNode->value());
|
||||
QString command = QString::fromLatin1("%1.addObject(\"Mesh::Feature\", \"Poisson\").Mesh = "
|
||||
"ReverseEngineering.poissonReconstruction(%2)")
|
||||
.arg(document, argument)
|
||||
;
|
||||
"ReverseEngineering.poissonReconstruction(%2)")
|
||||
.arg(document, argument);
|
||||
|
||||
Gui::WaitCursor wc;
|
||||
Gui::Command::addModule(Gui::Command::App, "ReverseEngineering");
|
||||
@@ -98,7 +94,7 @@ bool PoissonWidget::accept()
|
||||
return true;
|
||||
}
|
||||
|
||||
void PoissonWidget::changeEvent(QEvent *e)
|
||||
void PoissonWidget::changeEvent(QEvent* e)
|
||||
{
|
||||
QWidget::changeEvent(e);
|
||||
if (e->type() == QEvent::LanguageChange) {
|
||||
@@ -112,9 +108,10 @@ void PoissonWidget::changeEvent(QEvent *e)
|
||||
TaskPoisson::TaskPoisson(const App::DocumentObjectT& obj)
|
||||
{
|
||||
widget = new PoissonWidget(obj);
|
||||
taskbox = new Gui::TaskView::TaskBox(
|
||||
Gui::BitmapFactory().pixmap("actions/FitSurface"),
|
||||
widget->windowTitle(), true, nullptr);
|
||||
taskbox = new Gui::TaskView::TaskBox(Gui::BitmapFactory().pixmap("actions/FitSurface"),
|
||||
widget->windowTitle(),
|
||||
true,
|
||||
nullptr);
|
||||
taskbox->groupLayout()->addWidget(widget);
|
||||
Content.push_back(taskbox);
|
||||
}
|
||||
@@ -122,8 +119,7 @@ TaskPoisson::TaskPoisson(const App::DocumentObjectT& obj)
|
||||
TaskPoisson::~TaskPoisson() = default;
|
||||
|
||||
void TaskPoisson::open()
|
||||
{
|
||||
}
|
||||
{}
|
||||
|
||||
bool TaskPoisson::accept()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user