#include <WNT_Window.hxx>
#include <EGL/egl.h>
+
+#include <Standard_WarningsDisable.hxx>
#include <QFileInfo>
+#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : AndroidQt
if (Abs (myTouchPoint.DevX()) + Abs (myTouchPoint.DevY()) > 1)
{
- myView->StartRotation (myTouchPoint.X().first, myTouchPoint.Y().first);
- myView->Rotation (myTouchPoint.X().second, myTouchPoint.Y().second);
+ myView->StartRotation ((Standard_Integer)myTouchPoint.X().first, (Standard_Integer)myTouchPoint.Y().first);
+ myView->Rotation ((Standard_Integer)myTouchPoint.X().second, (Standard_Integer)myTouchPoint.Y().second);
myTouchPoint.ClearDev();
}
#include <OpenGl_Context.hxx>
+#include <Standard_WarningsDisable.hxx>
// workaround broken definitions in Qt
#define GLdouble GLdouble
+#include <QMutex>
#include <QtQuick/qquickwindow.h>
#include <QtQuick/QQuickItem>
#undef GLdouble
+#include <Standard_WarningsRestore.hxx>
#include <AIS_InteractiveContext.hxx>
#include <V3d_View.hxx>
-#include <QMutex>
-
#include "AndroidQt_TouchParameters.h"
//! QML item with embedded OCCT viewer.
#ifndef ANDROIDQT_TOUCHPARAMETERS_H
#define ANDROIDQT_TOUCHPARAMETERS_H
+#include <Standard_WarningsDisable.hxx>
#include <QPair>
+#include <Standard_WarningsRestore.hxx>
//! Class holding touch event state.
class AndroidQt_TouchParameters
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
+#include <Standard_WarningsDisable.hxx>
#include <QApplication>
#include <QQmlApplicationEngine>
+#include <Standard_WarningsRestore.hxx>
#include "AndroidQt.h"
#include "DocumentCommon.h"
#include "View.h"
+#include <Standard_WarningsDisable.hxx>
#include <QFrame>
#include <QVBoxLayout>
#include <QMenuBar>
#include <QMessageBox>
#include <QApplication>
#include <QSignalMapper>
+#include <Standard_WarningsRestore.hxx>
#include <Graphic3d_GraphicDriver.hxx>
#include <OpenGl_GraphicDriver.hxx>
#include "DocumentCommon.h"
+#include <Standard_WarningsDisable.hxx>
#include <QMainWindow>
#include <QAction>
#include <QToolBar>
#include <QMenu>
#include <QMdiArea>
#include <QList>
+#include <Standard_WarningsRestore.hxx>
class COMMONSAMPLE_EXPORT ApplicationCommonWindow: public QMainWindow
<source>ICON_TOOL_SHADOWS</source>
<translation>shadows.png</translation>
</message>
- <message>
- <source>ICON_TOOL_RAYTRACING</source>
- <translation>shadows.png</translation>
- </message>
<message>
<source>ICON_TOOL_REFLECTIONS</source>
<translation>reflections.png</translation>
#include "Transparency.h"
#include "Material.h"
+#include <Standard_WarningsDisable.hxx>
#include <QStatusBar>
#include <QApplication>
#include <QColor>
#include <QColorDialog>
+#include <Standard_WarningsRestore.hxx>
#include <Aspect_DisplayConnection.hxx>
#include <AIS_InteractiveObject.hxx>
{
Quantity_Color aShapeColor;
myContext->Color( Current, aShapeColor );
- aColor.setRgb( aShapeColor.Red() * 255, aShapeColor.Green() * 255, aShapeColor.Blue() * 255 );
+ aColor.setRgb( (Standard_Integer)(aShapeColor.Red() * 255), (Standard_Integer)(aShapeColor.Green() * 255),
+ (Standard_Integer)(aShapeColor.Blue() * 255));
}
else
aColor.setRgb( 255, 255, 255 );
#include "MDIWindow.h"
//#include "IESample.h"
+#include <Standard_WarningsDisable.hxx>
#include <QObject>
#include <QList>
+#include <Standard_WarningsRestore.hxx>
#include <AIS_InteractiveContext.hxx>
#include <V3d_Viewer.hxx>
#include "DocumentCommon.h"
#include "ApplicationCommon.h"
+#include <Standard_WarningsDisable.hxx>
#include <QFrame>
#include <QToolBar>
#include <QFileDialog>
#include <QFileInfo>
#include <QMainWindow>
#include <QVBoxLayout>
+#include <Standard_WarningsRestore.hxx>
MDIWindow::MDIWindow(View* aView,
DocumentCommon* aDocument,
#ifndef MDIWINDOW_H
#define MDIWINDOW_H
+#include <Standard_WarningsDisable.hxx>
#include <QMainWindow>
+#include <Standard_WarningsRestore.hxx>
+
#include "CommonSample.h"
class DocumentCommon;
#include "Material.h"
+#include <Standard_WarningsDisable.hxx>
#include <QPushButton>
#include <QLayout>
#include <QSignalMapper>
+#include <Standard_WarningsRestore.hxx>
#include <Graphic3d_NameOfMaterial.hxx>
#ifndef MATERIAL_H
#define MATERIAL_H
+#include <Standard_WarningsDisable.hxx>
#include <QDialog>
#include <QList>
#include <QPushButton>
+#include <Standard_WarningsRestore.hxx>
#include <AIS_InteractiveContext.hxx>
#include <Aspect_Window.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QWidget>
+#include <Standard_WarningsRestore.hxx>
+
class OcctWindow;
/*
#include "Transparency.h"
+#include <Standard_WarningsDisable.hxx>
#include <QHBoxLayout>
#include <QSpinBox>
+#include <Standard_WarningsRestore.hxx>
DialogTransparency::DialogTransparency( QWidget* parent, Qt::WindowFlags f, bool modal )
: QDialog( parent, f )
+#include <Standard_WarningsDisable.hxx>
#include <QDialog>
#include <QWidget>
+#include <Standard_WarningsRestore.hxx>
+
#include <AIS_InteractiveContext.hxx>
class DialogTransparency : public QDialog
#include "View.h"
#include "ApplicationCommon.h"
+#include <Standard_WarningsDisable.hxx>
#include <QApplication>
#include <QPainter>
#include <QMenu>
#if !defined(_WIN32) && (!defined(__APPLE__) || defined(MACOSX_USE_GLX)) && QT_VERSION < 0x050000
#include <QX11Info>
#endif
+#include <Standard_WarningsRestore.hxx>
#include <Graphic3d_ExportFormat.hxx>
Standard_Real G1;
Standard_Real B1;
myView->BackgroundColor(Quantity_TOC_RGB,R1,G1,B1);
- aColor.setRgb(R1*255,G1*255,B1*255);
+ aColor.setRgb((Standard_Integer)(R1 * 255), (Standard_Integer)(G1 * 255), (Standard_Integer)(B1 * 255));
QColor aRetColor = QColorDialog::getColor(aColor);
#ifndef VIEW_H
#define VIEW_H
+#include <Standard_WarningsDisable.hxx>
#include <QWidget>
#include <QAction>
#include <QList>
+#include <Standard_WarningsRestore.hxx>
#include <AIS_InteractiveContext.hxx>
#include <V3d_View.hxx>
}
-void FThread::setIterator(const TFunction_Iterator& itr)
+void FThread::setIterator(const TFunction_Iterator& theItr)
{
- this->itr = itr;
+ this->itr = theItr;
}
-void FThread::setLogbook(const Handle(TFunction_Logbook)& log)
+void FThread::setLogbook(const Handle(TFunction_Logbook)& theLog)
{
- this->log = log;
+ this->log = theLog;
}
-void FThread::setGraph(GraphWidget* graph)
+void FThread::setGraph(GraphWidget* theGraph)
{
- this->graph = graph;
+ this->graph = theGraph;
}
-void FThread::setThreadIndex(const int thread_index)
+void FThread::setThreadIndex(const int theIndex)
{
- this->thread_index = thread_index;
+ this->thread_index = theIndex;
}
// Returns any free (not executed yet) function
#ifndef _FTHREAD_H_
#define _FTHREAD_H_
+#include <Standard_WarningsDisable.hxx>
#include <QThread>
+#include <Standard_WarningsRestore.hxx>
#include <TFunction_Logbook.hxx>
#include <TFunction_Iterator.hxx>
**
****************************************************************************/
+#include <Standard_WarningsDisable.hxx>
#include <QPainter>
+#include <Standard_WarningsRestore.hxx>
#include "edge.h"
#include "node.h"
#ifndef EDGE_H
#define EDGE_H
+#include <Standard_WarningsDisable.hxx>
#include <QGraphicsItem>
+#include <Standard_WarningsRestore.hxx>
class Node;
#include "edge.h"
#include "node.h"
+#include <Standard_WarningsDisable.hxx>
#include <QDebug>
#include <QGraphicsScene>
#include <QWheelEvent>
#include <QApplication>
+#include <Standard_WarningsRestore.hxx>
#include <math.h>
#ifndef GRAPHWIDGET_H
#define GRAPHWIDGET_H
+#include <Standard_WarningsDisable.hxx>
#include <QGraphicsView>
+#include <Standard_WarningsRestore.hxx>
#include "FThread.h"
**
****************************************************************************/
+#include <Standard_WarningsDisable.hxx>
#include <QApplication>
+#include <Standard_WarningsRestore.hxx>
#include "mainwindow.h"
#include <OSD_Environment.hxx>
**
****************************************************************************/
-#include <QtGui>
-#include <QtGlobal>
-#if QT_VERSION > QT_VERSION_CHECK(5, 0, 0)
-#include <QtWidgets>
-#endif
-
#include "mainwindow.h"
#include "graphwidget.h"
#include "node.h"
#include <TDataStd_Name.hxx>
#include <TDataStd_Real.hxx>
#include <TDataStd_RealArray.hxx>
+
+#include <Standard_WarningsDisable.hxx>
+#include <QtGui>
+#include <QtGlobal>
+#if QT_VERSION > QT_VERSION_CHECK(5, 0, 0)
+#include <QtWidgets>
+#endif
+#include <Standard_WarningsRestore.hxx>
+
#ifdef __GNUC__
#include <unistd.h>
#endif
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
+#include <Standard_WarningsDisable.hxx>
#include <QMainWindow>
+#include <Standard_WarningsRestore.hxx>
+
#include <AppStd_Application.hxx>
class QAction;
**
****************************************************************************/
+#include <Standard_WarningsDisable.hxx>
#include <QGraphicsScene>
#include <QGraphicsSceneMouseEvent>
#include <QPainter>
#include <QStyleOption>
+#include <Standard_WarningsRestore.hxx>
#include "edge.h"
#include "node.h"
#ifndef NODE_H
#define NODE_H
+#include <Standard_WarningsDisable.hxx>
#include <QGraphicsItem>
#include <QList>
+#include <Standard_WarningsRestore.hxx>
#include <TDF_Label.hxx>
#include <OSD_Environment.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QApplication>
#include <QTranslator>
#include <QPixmap>
#include <QLocale>
+#include <Standard_WarningsRestore.hxx>
int main ( int argc, char* argv[] )
#include "Translate.h"
+#include <Standard_WarningsDisable.hxx>
#include <QMessageBox>
-#include <stdlib.h>
#include <QMdiSubWindow>
+#include <Standard_WarningsRestore.hxx>
#include <OSD_Environment.hxx>
+#include <stdlib.h>
+
ApplicationWindow::ApplicationWindow()
: ApplicationCommonWindow( ),
myImportPopup( 0 ),
QMdiArea* ws = getWorkspace();
DocumentCommon* doc = qobject_cast<MDIWindow*>( ws->activeSubWindow()->widget() )->getDocument();
Handle(AIS_InteractiveContext) context = doc->getContext();
- int numSel = context->NbSelected();
+ bool anEnabled = (context->NbSelected() > 0);
- myCasCadeTranslateActions.at( FileExportBREPId )->setEnabled( numSel );
- myCasCadeTranslateActions.at( FileExportIGESId )->setEnabled( numSel );
- myCasCadeTranslateActions.at( FileExportSTEPId )->setEnabled( numSel );
- myCasCadeTranslateActions.at( FileExportSTLId )->setEnabled( numSel );
- myCasCadeTranslateActions.at( FileExportVRMLId )->setEnabled( numSel );
+ myCasCadeTranslateActions.at( FileExportBREPId )->setEnabled( anEnabled );
+ myCasCadeTranslateActions.at( FileExportIGESId )->setEnabled( anEnabled );
+ myCasCadeTranslateActions.at( FileExportSTEPId )->setEnabled( anEnabled );
+ myCasCadeTranslateActions.at( FileExportSTLId )->setEnabled( anEnabled );
+ myCasCadeTranslateActions.at( FileExportVRMLId )->setEnabled( anEnabled );
}
QString ApplicationWindow::getIEResourceDir()
#include "Application.h"
+#include <Standard_WarningsDisable.hxx>
#include <QDir>
#include <QLayout>
#include <QComboBox>
#include <QApplication>
#include <QWidget>
#include <QStyleFactory>
+#include <Standard_WarningsRestore.hxx>
#include <AIS_Shape.hxx>
#include <AIS_InteractiveObject.hxx>
if ( idx != -1 )
{
QString tail = selFilter.mid( idx + 3 );
- int idx = tail.indexOf( " " );
+ idx = tail.indexOf( " " );
if ( idx == -1 )
idx = tail.indexOf( ")" );
QString ext = tail.left( idx );
#define TRANSLATE_H
#include "IESample.h"
+#include <Standard_WarningsDisable.hxx>
#include <QObject>
+#include <Standard_WarningsRestore.hxx>
#include <AIS_InteractiveContext.hxx>
#include <TopTools_HSequenceOfShape.hxx>
#include <OSD_Environment.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QFileDialog>
#include <QStatusBar>
#include <QMdiSubWindow>
+#include <Standard_WarningsRestore.hxx>
ApplicationTut::ApplicationTut()
: ApplicationCommonWindow( )
#include "DocumentTut.h"
+#include <Standard_WarningsDisable.hxx>
#include <QFileDialog>
#include <QMessageBox>
#include <QApplication>
+#include <Standard_WarningsRestore.hxx>
#include <TopoDS_Shape.hxx>
#include <AIS_Shape.hxx>
#include <OSD_Environment.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QApplication>
#include <QTranslator>
+#include <Standard_WarningsRestore.hxx>
int main ( int argc, char* argv[] )
{