[Drawing] Gui: remove unused headers

- also some sorting
- also enable precompiled header
This commit is contained in:
Uwe
2022-12-10 05:37:30 +01:00
parent b2a3c5e22c
commit 20a3d4b7ed
18 changed files with 132 additions and 160 deletions

View File

@@ -20,46 +20,43 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <QCheckBox>
# include <QMessageBox>
#endif
#include <Standard_math.hxx>
#include "TaskDialog.h"
#include <Gui/Application.h>
#include <Gui/Command.h>
#include <Gui/Selection.h>
#include <Gui/Document.h>
#include <Gui/Selection.h>
#include <Gui/View3DInventor.h>
#include <Gui/View3DInventorViewer.h>
#include <Mod/Part/App/PartFeature.h>
#include "TaskDialog.h"
using namespace DrawingGui;
/* TRANSLATOR DrawingGui::TaskProjection */
TaskProjection::TaskProjection()
{
QString texts[10] =
{
tr("Visible sharp edges"),
tr("Visible smooth edges"),
tr("Visible sewn edges"),
tr("Visible outline edges"),
tr("Visible isoparameters"),
tr("Hidden sharp edges"),
tr("Hidden smooth edges"),
tr("Hidden sewn edges"),
tr("Hidden outline edges"),
tr("Hidden isoparameters")
};
widget = new QWidget();
TaskProjection::TaskProjection()
{
QString texts[10] =
{
tr("Visible sharp edges"),
tr("Visible smooth edges"),
tr("Visible sewn edges"),
tr("Visible outline edges"),
tr("Visible isoparameters"),
tr("Hidden sharp edges"),
tr("Hidden smooth edges"),
tr("Hidden sewn edges"),
tr("Hidden outline edges"),
tr("Hidden isoparameters")
};
widget = new QWidget();
QVBoxLayout *mainLayout = new QVBoxLayout;
for (int i=0; i<10; i++) {
@@ -73,19 +70,19 @@ TaskProjection::TaskProjection()
widget->setLayout(mainLayout);
taskbox = new Gui::TaskView::TaskBox(
QPixmap(), tr("Project shapes"), false, nullptr);
taskbox->groupLayout()->addWidget(widget);
Content.push_back(taskbox);
}
TaskProjection::~TaskProjection()
{
// automatically deleted in the sub-class
}
bool TaskProjection::accept()
{
taskbox = new Gui::TaskView::TaskBox(
QPixmap(), tr("Project shapes"), false, nullptr);
taskbox->groupLayout()->addWidget(widget);
Content.push_back(taskbox);
}
TaskProjection::~TaskProjection()
{
// automatically deleted in the sub-class
}
bool TaskProjection::accept()
{
Gui::Document* document = Gui::Application::Instance->activeDocument();
if (!document) {
QMessageBox::warning(widget, tr("No active document"),
@@ -139,7 +136,7 @@ bool TaskProjection::accept()
}
Gui::Command::updateActive();
Gui::Command::commitCommand();
return true;
}
#include "moc_TaskDialog.cpp"
return true;
}
#include "moc_TaskDialog.cpp"