SketcherGui: apply clang-format

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

View File

@@ -22,7 +22,7 @@
#include "PreCompiled.h"
#ifndef _PreComp_
# include <QEvent>
#include <QEvent>
#endif
#include <Gui/BitmapFactory.h>
@@ -32,55 +32,52 @@
using namespace Gui::TaskView;
TaskSketcherCreateCommands::TaskSketcherCreateCommands(QWidget *parent)
: TaskBox(Gui::BitmapFactory().pixmap("document-new"),tr("Appearance"),true, parent)
TaskSketcherCreateCommands::TaskSketcherCreateCommands(QWidget* parent)
: TaskBox(Gui::BitmapFactory().pixmap("document-new"), tr("Appearance"), true, parent)
{
// we need a separate container widget to add all controls to
//proxy = new QWidget(this);
//ui = new Ui_TaskAppearance();
//ui->setupUi(proxy);
//ui->textLabel1_3->hide();
//ui->changePlot->hide();
//QMetaObject::connectSlotsByName(this);
// proxy = new QWidget(this);
// ui = new Ui_TaskAppearance();
// ui->setupUi(proxy);
// ui->textLabel1_3->hide();
// ui->changePlot->hide();
// QMetaObject::connectSlotsByName(this);
//this->groupLayout()->addWidget(proxy);
// this->groupLayout()->addWidget(proxy);
//std::vector<Gui::ViewProvider*> views;
//setDisplayModes(views);
//setPointSize(views);
//setLineWidth(views);
//setTransparency(views);
// std::vector<Gui::ViewProvider*> views;
// setDisplayModes(views);
// setPointSize(views);
// setLineWidth(views);
// setTransparency(views);
Gui::Selection().Attach(this);
}
TaskSketcherCreateCommands::~TaskSketcherCreateCommands()
{
//delete ui;
// delete ui;
Gui::Selection().Detach(this);
}
void TaskSketcherCreateCommands::changeEvent(QEvent *e)
void TaskSketcherCreateCommands::changeEvent(QEvent* e)
{
TaskBox::changeEvent(e);
//if (e->type() == QEvent::LanguageChange) {
// ui->retranslateUi(proxy);
//}
// if (e->type() == QEvent::LanguageChange) {
// ui->retranslateUi(proxy);
// }
}
/// @cond DOXERR
void TaskSketcherCreateCommands::OnChange(Gui::SelectionSingleton::SubjectType &rCaller,
Gui::SelectionSingleton::MessageType Reason)
void TaskSketcherCreateCommands::OnChange(Gui::SelectionSingleton::SubjectType& rCaller,
Gui::SelectionSingleton::MessageType Reason)
{
Q_UNUSED(rCaller);
if (Reason.Type == SelectionChanges::AddSelection ||
Reason.Type == SelectionChanges::RmvSelection ||
Reason.Type == SelectionChanges::SetSelection ||
Reason.Type == SelectionChanges::ClrSelection) {
}
if (Reason.Type == SelectionChanges::AddSelection
|| Reason.Type == SelectionChanges::RmvSelection
|| Reason.Type == SelectionChanges::SetSelection
|| Reason.Type == SelectionChanges::ClrSelection) {}
}
/// @endcond DOXERR
#include "moc_TaskSketcherCreateCommands.cpp"