[Robot] Gui: remove unused includes

- also some sorting
This commit is contained in:
Uwe
2022-12-07 04:20:50 +01:00
parent 3177d3eec2
commit 83cd5faabe
39 changed files with 152 additions and 334 deletions

View File

@@ -20,25 +20,18 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <QTimer>
#endif
#include <QTimer>
#include "ui_TrajectorySimulate.h"
#include "TrajectorySimulate.h"
#include <Gui/Application.h>
#include <Gui/Document.h>
#include <Gui/BitmapFactory.h>
#include <Gui/ViewProvider.h>
#include <Gui/WaitCursor.h>
#include <Base/Console.h>
#include <Gui/Selection.h>
#include <Mod/Robot/App/Waypoint.h>
#include "ui_TrajectorySimulate.h"
#include "TrajectorySimulate.h"
using namespace RobotGui;
using namespace Gui;
@@ -83,21 +76,20 @@ TrajectorySimulate::TrajectorySimulate(Robot::RobotObject *pcRobotObject,Robot::
}
QObject::connect(ui->ButtonStepStart ,SIGNAL(clicked()),this,SLOT(start()));
QObject::connect(ui->ButtonStepStop ,SIGNAL(clicked()),this,SLOT(stop()));
QObject::connect(ui->ButtonStepRun ,SIGNAL(clicked()),this,SLOT(run()));
QObject::connect(ui->ButtonStepBack ,SIGNAL(clicked()),this,SLOT(back()));
QObject::connect(ui->ButtonStepForward ,SIGNAL(clicked()),this,SLOT(forward()));
QObject::connect(ui->ButtonStepEnd ,SIGNAL(clicked()),this,SLOT(end()));
QObject::connect(ui->ButtonStepStart, SIGNAL(clicked()), this, SLOT(start()));
QObject::connect(ui->ButtonStepStop, SIGNAL(clicked()), this, SLOT(stop()));
QObject::connect(ui->ButtonStepRun, SIGNAL(clicked()), this, SLOT(run()));
QObject::connect(ui->ButtonStepBack, SIGNAL(clicked()), this, SLOT(back()));
QObject::connect(ui->ButtonStepForward, SIGNAL(clicked()), this, SLOT(forward()));
QObject::connect(ui->ButtonStepEnd, SIGNAL(clicked()), this, SLOT(end()));
// set up timer
timer = new QTimer( this );
timer = new QTimer(this);
timer->setInterval(100);
QObject::connect(timer ,SIGNAL(timeout ()),this,SLOT(timerDone()));
QObject::connect(ui->timeSpinBox ,SIGNAL(valueChanged(double)), this, SLOT(valueChanged(double)) );
QObject::connect(ui->timeSlider ,SIGNAL(valueChanged(int) ), this, SLOT(valueChanged(int)) );
QObject::connect(timer, SIGNAL(timeout()), this, SLOT(timerDone()));
QObject::connect(ui->timeSpinBox, SIGNAL(valueChanged(double)), this,
SLOT(valueChanged(double)));
QObject::connect(ui->timeSlider, SIGNAL(valueChanged(int)), this, SLOT(valueChanged(int)));
// get the view provider
ViewProv = static_cast<ViewProviderRobotObject*>(Gui::Application::Instance->activeDocument()->getViewProvider(pcRobotObject) );