[Gui] DockWindow and DemoMode: remove unused includes
This commit is contained in:
@@ -20,34 +20,30 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
# include <cmath>
|
||||
# include <float.h>
|
||||
# include <climits>
|
||||
# include <QCursor>
|
||||
# include <QTimer>
|
||||
# include <Inventor/nodes/SoCamera.h>
|
||||
#endif
|
||||
|
||||
#include <Base/Tools.h>
|
||||
|
||||
#include "DemoMode.h"
|
||||
#include "ui_DemoMode.h"
|
||||
|
||||
#include "Application.h"
|
||||
#include "Command.h"
|
||||
#include "Document.h"
|
||||
#include "MainWindow.h"
|
||||
#include "View3DInventor.h"
|
||||
#include "View3DInventorViewer.h"
|
||||
#include <Base/Tools.h>
|
||||
|
||||
|
||||
using namespace Gui::Dialog;
|
||||
|
||||
/* TRANSLATOR Gui::Dialog::DemoMode */
|
||||
|
||||
DemoMode::DemoMode(QWidget* /*parent*/, Qt::WindowFlags fl)
|
||||
: QDialog(nullptr, fl|Qt::WindowStaysOnTopHint), viewAxis(0,0,-1), ui(new Ui_DemoMode)
|
||||
: QDialog(nullptr, fl | Qt::WindowStaysOnTopHint), viewAxis(0, 0, -1), ui(new Ui_DemoMode)
|
||||
{
|
||||
// create widgets
|
||||
ui->setupUi(this);
|
||||
@@ -137,7 +133,7 @@ Gui::View3DInventor* DemoMode::activeView() const
|
||||
|
||||
float DemoMode::getSpeed(int v) const
|
||||
{
|
||||
float speed = (static_cast<float>(v))/50.0f; // let 2.0 be the maximum speed
|
||||
float speed = (static_cast<float>(v)) / 50.0f; // let 2.0 be the maximum speed
|
||||
return speed;
|
||||
}
|
||||
|
||||
@@ -161,8 +157,8 @@ void DemoMode::on_angleSlider_valueChanged(int v)
|
||||
if (view) {
|
||||
SoCamera* cam = view->getViewer()->getSoRenderManager()->getCamera();
|
||||
if (!cam) return;
|
||||
float angle = Base::toRadians<float>(/*90-v*/v-this->oldvalue);
|
||||
SbRotation rot(SbVec3f(-1,0,0),angle);
|
||||
float angle = Base::toRadians<float>(/*90-v*/v - this->oldvalue);
|
||||
SbRotation rot(SbVec3f(-1, 0, 0), angle);
|
||||
reorientCamera(cam ,rot);
|
||||
this->oldvalue = v;
|
||||
if (view->getViewer()->isAnimating()) {
|
||||
@@ -242,7 +238,7 @@ void DemoMode::on_fullscreen_toggled(bool on)
|
||||
|
||||
void DemoMode::on_timeout_valueChanged(int v)
|
||||
{
|
||||
timer->setInterval(v*1000);
|
||||
timer->setInterval(v * 1000);
|
||||
}
|
||||
|
||||
void DemoMode::onAutoPlay()
|
||||
|
||||
@@ -20,13 +20,12 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef GUI_DIALOG_DEMOMODE_H
|
||||
#define GUI_DIALOG_DEMOMODE_H
|
||||
|
||||
#include <Inventor/SbLinear.h>
|
||||
#include <QDialog>
|
||||
|
||||
|
||||
class QTimer;
|
||||
class SoCamera;
|
||||
class SbRotation;
|
||||
|
||||
@@ -20,11 +20,11 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#include "DockWindow.h"
|
||||
|
||||
|
||||
using namespace Gui;
|
||||
|
||||
DockWindow::DockWindow( Gui::Document* pcDocument, QWidget *parent)
|
||||
|
||||
@@ -24,11 +24,10 @@
|
||||
#ifndef GUI_DOCKWINDOW_H
|
||||
#define GUI_DOCKWINDOW_H
|
||||
|
||||
|
||||
#include <Base/Parameter.h>
|
||||
#include <Gui/View.h>
|
||||
#include <QWidget>
|
||||
|
||||
|
||||
namespace Gui {
|
||||
class MDIView;
|
||||
class Application;
|
||||
|
||||
@@ -23,15 +23,17 @@
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
# include <QPointer>
|
||||
# include <QDockWidget>
|
||||
# include <QAction>
|
||||
# include <QDockWidget>
|
||||
# include <QMap>
|
||||
# include <QPointer>
|
||||
#endif
|
||||
|
||||
#include <App/Application.h>
|
||||
|
||||
#include "DockWindowManager.h"
|
||||
#include "MainWindow.h"
|
||||
#include <App/Application.h>
|
||||
|
||||
|
||||
using namespace Gui;
|
||||
|
||||
|
||||
@@ -20,14 +20,13 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef GUI_DOCKWINDOWMANAGER_H
|
||||
#define GUI_DOCKWINDOWMANAGER_H
|
||||
|
||||
#include <QStringList>
|
||||
#include <QObject>
|
||||
#include <FCGlobal.h>
|
||||
|
||||
|
||||
class QDockWidget;
|
||||
class QWidget;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user