1. Added specific header files to disable and restore compiler warnings: Standard_WarningsDisable.hxx, Standard_WarningsRestore.hxx.
(Currently only MSVC compiler is handled.)
2. Inspector: compiler warnings are disabled for all includes of Qt headers.
3. Inspector: minor code correction to avoid warning due to use of floating point values in integer calculations.
Standard_UUID.hxx
Standard_values.h
Standard_Version.hxx
+Standard_WarningsDisable.hxx
+Standard_WarningsRestore.hxx
\ No newline at end of file
--- /dev/null
+// Copyright (c) 2018 OPEN CASCADE SAS
+//
+// This file is part of Open CASCADE Technology software library.
+//
+// This library is free software; you can redistribute it and/or modify it under
+// the terms of the GNU Lesser General Public License version 2.1 as published
+// by the Free Software Foundation, with special exception defined in the file
+// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
+// distribution for complete text of the license and disclaimer of any warranty.
+//
+// Alternatively, this file may be used under the terms of Open CASCADE
+// commercial license or contractual agreement.
+
+//!@file Supresses compiler warnings.
+//!
+//! Standard_WarningsDisable.hxx disables all compiler warnings.
+//! Standard_WarningsRestore.hxx restore the previous state of warnings.
+//!
+//! Use these headers to wrap include directive containing external (non-OCCT)
+//! header files to avoid compiler warnings to be generated for these files.
+//! They should always be used in pair:
+//!
+//! #include <Standard_WarningsDisable.hxx>
+//! #include <dirty_header.h> // some header that can generate warnings
+//! #include <Standard_WarningsRestore.hxx>
+
+#ifdef _MSC_VER
+#pragma warning(push, 0)
+#endif
+
--- /dev/null
+// Copyright (c) 2018 OPEN CASCADE SAS
+//
+// This file is part of Open CASCADE Technology software library.
+//
+// This library is free software; you can redistribute it and/or modify it under
+// the terms of the GNU Lesser General Public License version 2.1 as published
+// by the Free Software Foundation, with special exception defined in the file
+// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
+// distribution for complete text of the license and disclaimer of any warranty.
+//
+// Alternatively, this file may be used under the terms of Open CASCADE
+// commercial license or contractual agreement.
+
+//!@file Restores compiler warnings suppressed by inclusion of Standard_WarningsDisable.hxx.
+//!
+//! Standard_WarningsDisable.hxx disables all compiler warnings.
+//! Standard_WarningsRestore.hxx restore the previous state of warnings.
+//!
+//! Use these headers to wrap include directive containing external (non-OCCT)
+//! header files to avoid compiler warnings to be generated for these files.
+//! They should always be used in pair:
+//!
+//! #include <Standard_WarningsDisable.hxx>
+//! #include <dirty_header.h> // some header that can generate warnings
+//! #include <Standard_WarningsRestore.hxx>
+
+#ifdef _MSC_VER
+#pragma warning(pop)
+#endif
+
#include <TDF_Attribute.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QItemSelectionModel>
#include <QMap>
#include <QStackedWidget>
+#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : Constructor
#include <Standard.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QMap>
#include <QItemSelection>
#include <QStackedWidget>
#include <QWidget>
+#include <Standard_WarningsRestore.hxx>
class DFBrowserPane_AttributePaneAPI;
class DFBrowserPane_AttributePaneSelector;
#include <Standard.hxx>
#include <Standard_Macro.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QObject>
+#include <Standard_WarningsRestore.hxx>
class DFBrowser_Window;
#include <OSD_OpenFile.hxx>
#include <inspector/TreeModel_ModelBase.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QAbstractItemModel>
#include <QDir>
#include <QFile>
#include <QPlainTextEdit>
#include <QTextStream>
#include <QWidget>
+#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : onSelectionChanged
#include <Standard.hxx>
#include <Standard_Macro.hxx>
-#ifdef _MSC_VER
-#pragma warning(disable : 4127) // conditional expression is constant
-#endif
+#include <Standard_WarningsDisable.hxx>
#include <QObject>
#include <QItemSelection>
#include <QPlainTextEdit>
+#include <Standard_WarningsRestore.hxx>
class QWidget;
// commercial license or contractual agreement.
#include <inspector/DFBrowser_HighlightDelegate.hxx>
-
#include <inspector/DFBrowserPane_Tools.hxx>
+
+#include <Standard_WarningsDisable.hxx>
#include <QPainter>
+#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : paint
#include <Standard.hxx>
#include <Standard_Macro.hxx>
-#ifdef _MSC_VER
-#pragma warning(disable : 4127) // conditional expression is constant
-#endif
+#include <Standard_WarningsDisable.hxx>
#include <QItemDelegate>
+#include <Standard_WarningsRestore.hxx>
//! \class DFBrowser_HighlightDelegate
//! \brief An item delegate to paint in highlight color the cell when the mouse cursor is over it
#include <TDF_AttributeIterator.hxx>
#include <TDF_ChildIterator.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QIcon>
#include <QObject>
+#include <Standard_WarningsRestore.hxx>
const int INFO_LENGHT = 60;
#include <Standard.hxx>
#include <Standard_GUID.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QMap>
#include <QList>
#include <QVariant>
+#include <Standard_WarningsRestore.hxx>
class DFBrowser_Item;
typedef QExplicitlySharedDataPointer<DFBrowser_Item> DFBrowser_ItemPtr;
#include <inspector/DFBrowserPane_AttributePane.hxx>
#include <inspector/DFBrowserPane_ItemRole.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QObject>
+#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : createChild
#include <TDataStd_Name.hxx>
#include <TDF_ChildIterator.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QColor>
#include <QIcon>
#include <QVariant>
+#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : Constructor
#include <inspector/DFBrowserPane_AttributePane.hxx>
#include <inspector/DFBrowserPane_ItemRole.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QIcon>
#include <QLabel>
#include <QObject>
+#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : GetLabel
#include <inspector/DFBrowserPane_ItemRole.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <Qt>
+#include <Standard_WarningsRestore.hxx>
//! Additional data item role for DFBrowser tree item
enum DFBrowser_ItemRole
#include <XCAFApp_Application.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QItemSelectionModel>
#include <QMessageBox>
+#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : Constructor
#include <TDocStd_Application.hxx>
#include <TopoDS_Shape.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QObject>
+#include <Standard_WarningsRestore.hxx>
class DFBrowserPane_AttributePaneAPI;
class DFBrowserPane_AttributePaneCreatorAPI;
#include <inspector/DFBrowser_Window.hxx>
#include <inspector/DFBrowser_TreeLevelView.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QAbstractItemModel>
#include <QGridLayout>
#include <QItemSelectionModel>
#include <QWidget>
+#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : Constructor
#include <Standard.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QItemSelection>
#include <QObject>
+#include <Standard_WarningsRestore.hxx>
class DFBrowser_AttributePaneStack;
#ifndef DFBrowser_SearchItemInfo_H
#define DFBrowser_SearchItemInfo_H
-#ifdef _MSC_VER
-#pragma warning(disable : 4127) // conditional expression is constant
-#endif
+#include <Standard_WarningsDisable.hxx>
#include <QVariant>
#include <QStringList>
#include <QString>
+#include <Standard_WarningsRestore.hxx>
//! \class DFBrowser_SearchItemInfo
//! Information of item in search model
#include <TDF_AttributeIterator.hxx>
#include <TDF_ChildIterator.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QStringList>
#include <QWidget>
#include <QHBoxLayout>
#include <QPaintEvent>
#include <QPainter>
#include <QStyle>
+#include <Standard_WarningsRestore.hxx>
//! class DFBrowser_LineEdit
//! Extension of Qt line edit to visualize help text until the line edit control has not been filled yet
#include <TDocStd_Application.hxx>
#include <TDF_Label.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QCompleter>
#include <QFrame>
#include <QLineEdit>
+#include <Standard_WarningsRestore.hxx>
class DFBrowser_Module;
class DFBrowser_SearchLineModel;
#include <inspector/DFBrowserPane_ItemRole.hxx>
#include <inspector/DFBrowserPane_Tools.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QDir>
#include <QIcon>
+#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : Constructor
#include <TDF_Attribute.hxx>
#include <TDF_Label.hxx>
-#ifdef _MSC_VER
-#pragma warning(disable : 4127) // conditional expression is constant
-#endif
+#include <Standard_WarningsDisable.hxx>
#include <QAbstractTableModel>
#include <QMap>
#include <QStringList>
#include <QVariant>
+#include <Standard_WarningsRestore.hxx>
class QObject;
class DFBrowser_Module;
#include <inspector/DFBrowserPane_Tools.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QAbstractProxyModel>
#include <QGridLayout>
#include <QHeaderView>
#include <QTableView>
#include <QWidget>
+#include <Standard_WarningsRestore.hxx>
const int DEFAULT_COLUMN_WIDTH = 500;
const int DEFAULT_ICON_SIZE = 40;
#include <Standard.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QItemSelection>
#include <QObject>
+#include <Standard_WarningsRestore.hxx>
class DFBrowser_SearchLine;
class QTableView;
#include <inspector/DFBrowser_Module.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QApplication>
#include <QKeyEvent>
+#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : Constructor
#include <Standard.hxx>
#include <Standard_Macro.hxx>
-#ifdef _MSC_VER
-#pragma warning(disable : 4127) // conditional expression is constant
-#endif
+#include <Standard_WarningsDisable.hxx>
#include <QObject>
+#include <Standard_WarningsRestore.hxx>
class DFBrowser_Module;
class QEvent;
#include <inspector/DFBrowser_Window.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QThread>
+#include <Standard_WarningsRestore.hxx>
//! \class DFBrowser_QThread
//! Internal class to cover QThread in order to process ThreadItem.
#include <Standard.hxx>
-#ifdef _MSC_VER
-#pragma warning(disable : 4127) // conditional expression is constant
-#endif
+#include <Standard_WarningsDisable.hxx>
#include <QList>
#include <QObject>
+#include <Standard_WarningsRestore.hxx>
class DFBrowser_Module;
class DFBrowser_ThreadItem;
#include <TDF_AttributeIterator.hxx>
#include <TDF_ChildIterator.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QDir>
+#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : Run
#include <Standard.hxx>
#include <TDF_Label.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QAbstractItemModel>
#include <QMap>
#include <QStringList>
+#include <Standard_WarningsRestore.hxx>
class DFBrowser_Module;
class DFBrowser_SearchLine;
#include <TCollection_AsciiString.hxx>
#include <TDF_Attribute.hxx>
-#ifdef _MSC_VER
-#pragma warning(disable : 4127) // conditional expression is constant
-#endif
+#include <Standard_WarningsDisable.hxx>
#include <QStringList>
#include <QPair>
+#include <Standard_WarningsRestore.hxx>
class DFBrowser_Module;
#include <TDataStd_Real.hxx>
#include <TDataStd_Name.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QColor>
#include <QDir>
#include <QPalette>
#include <QWidget>
+#include <Standard_WarningsRestore.hxx>
namespace DFBrowser_Tools
{
#include <TDF_Attribute.hxx>
#include <TopoDS_Shape.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QAbstractItemModel>
#include <QColor>
#include <QMap>
#include <QPixmap>
#include <QString>
#include <QIcon>
+#include <Standard_WarningsRestore.hxx>
class DFBrowserPane_AttributePaneAPI;
#include <inspector/DFBrowserPane_Tools.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QAbstractItemModel>
#include <QFrame>
#include <QGridLayout>
#include <QTableView>
#include <QToolButton>
#include <QWidget>
+#include <Standard_WarningsRestore.hxx>
const int HISTORY_SIZE = 10;
const int MARGIN_SIZE = 2;
#include <Standard.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QItemSelection>
#include <QObject>
#include <QMap>
#include <QModelIndex>
+#include <Standard_WarningsRestore.hxx>
class DFBrowser_SearchLine;
#include <inspector/DFBrowser_TreeLevelLineDelegate.hxx>
#include <inspector/DFBrowserPane_Tools.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QPainter>
+#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : Constructor
#include <Standard.hxx>
#include <Standard_Macro.hxx>
-#ifdef _MSC_VER
-#pragma warning(disable : 4127) // conditional expression is constant
-#endif
+#include <Standard_WarningsDisable.hxx>
#include <QItemDelegate>
+#include <Standard_WarningsRestore.hxx>
//! \class DFBrowser_TreeLevelLineDelegate
//! Extending standard item delegate by:
#include <inspector/DFBrowser_ItemBase.hxx>
#include <inspector/TreeModel_ModelBase.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QIcon>
#include <QWidget>
+#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : Init
#include <Standard.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QAbstractTableModel>
#include <QObject>
#include <QList>
+#include <Standard_WarningsRestore.hxx>
//! \class DFBrowser_TreeLevelLineModel
//! Tree Model of tree line items. It is initialized by OCAF tree model index. Each element of the current model
#include <inspector/DFBrowserPane_Tools.hxx>
#include <inspector/TreeModel_ModelBase.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QItemSelectionModel>
-
#include <QGridLayout>
#include <QHeaderView>
#include <QTableView>
#include <QWidget>
+#include <Standard_WarningsRestore.hxx>
const int LABEL_OR_ATTRIBUTECOLUMN_WIDTH = 160;
#include <Standard.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QObject>
#include <QItemSelection>
+#include <Standard_WarningsRestore.hxx>
class QWidget;
class QTableView;
#include <TDF_Label.hxx>
#include <inspector/TreeModel_ModelBase.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QApplication>
#include <QColor>
#include <QFont>
#include <QIcon>
+#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : Init
#include <Standard.hxx>
#include <Standard_Macro.hxx>
-#ifdef _MSC_VER
-#pragma warning(disable : 4127) // conditional expression is constant
-#endif
+#include <Standard_WarningsDisable.hxx>
#include <QAbstractTableModel>
#include <QVariant>
+#include <Standard_WarningsRestore.hxx>
class QObject;
#include <TNaming_Builder.hxx>
#include <TNaming_NamedShape.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QAbstractItemModel>
+#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : Constructor
#include <TDF_Label.hxx>
#include <TDocStd_Application.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QByteArray>
#include <QHash>
#include <QObject>
+#include <Standard_WarningsRestore.hxx>
class DFBrowser_Module;
class DFBrowser_TreeModel;
#include <Standard.hxx>
#include <Standard_Macro.hxx>
-#ifdef _MSC_VER
-#pragma warning(disable : 4127) // conditional expression is constant
-#endif
+#include <Standard_WarningsDisable.hxx>
#include <QTreeView>
+#include <Standard_WarningsRestore.hxx>
//! \class DFBrowser_TreeView
//! Extended tree view control with possibility to set predefined size.
#include <TDF_Tool.hxx>
#include <inspector/TreeModel_MessageDialog.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QAction>
#include <QApplication>
#include <QComboBox>
#else
#include <QStyleFactory>
#endif
+#include <Standard_WarningsRestore.hxx>
const int DFBROWSER_DEFAULT_WIDTH = 650;
const int DFBROWSER_DEFAULT_HEIGHT = 350;
#include <TCollection_AsciiString.hxx>
#include <TDF_Label.hxx>
-#ifdef _MSC_VER
-#pragma warning(disable : 4127) // conditional expression is constant
-#endif
+#include <Standard_WarningsDisable.hxx>
#include <QObject>
#include <QItemSelection>
#include <QMainWindow>
#include <QModelIndexList>
+#include <Standard_WarningsRestore.hxx>
class DFBrowser_DumpView;
class DFBrowser_Module;
#include <AIS_InteractiveObject.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QGridLayout>
#include <QHeaderView>
#include <QItemSelectionModel>
#include <QTableView>
#include <QWidget>
+#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : Constructor
#include <TDF_Label.hxx>
#include <Standard.hxx>
-#ifdef _MSC_VER
-#pragma warning(disable : 4127) // conditional expression is constant
-#endif
+#include <Standard_WarningsDisable.hxx>
#include <QList>
#include <QVariant>
+#include <Standard_WarningsRestore.hxx>
class DFBrowserPane_AttributePaneModel;
class DFBrowserPane_TableView;
#include <inspector/DFBrowserPane_AttributePaneModel.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QApplication>
#include <QFont>
#include <QColor>
+#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : Constructor
#include <Standard.hxx>
#include <TDocStd_Document.hxx>
-#ifdef _MSC_VER
-#pragma warning(disable : 4127) // conditional expression is constant
-#endif
+#include <Standard_WarningsDisable.hxx>
#include <QAbstractTableModel>
#include <QList>
#include <QVariant>
+#include <Standard_WarningsRestore.hxx>
//! \class DFBrowserPane_AttributePaneModel
//! \brief This is an extension of table model to visualize a container of values
#include <Standard.hxx>
-#ifdef _MSC_VER
-#pragma warning(disable : 4127) // conditional expression is constant
-#endif
-
+#include <Standard_WarningsDisable.hxx>
#include <QObject>
#include <QItemSelection>
+#include <Standard_WarningsRestore.hxx>
+
#include <list>
class QItemSelectionModel;
#include <inspector/DFBrowserPane_AttributePaneModel.hxx>
-#include <qheaderview.h>
+#include <Standard_WarningsDisable.hxx>
+#include <QHeaderView>
#include <QGridLayout>
#include <QList>
#include <QTableView>
#include <QVariant>
#include <QWidget>
+#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : Constructor
class QWidget;
-#ifdef _MSC_VER
-#pragma warning(disable : 4127) // conditional expression is constant
-#endif
+#include <Standard_WarningsDisable.hxx>
#include <QList>
#include <QVariant>
+#include <Standard_WarningsRestore.hxx>
//! \class DFBrowserPane_HelperArray
//! \brief Class that is used for list and array attributes. Two tables, the first for bounds, the second for values.
#include <BRepTools.hxx>
#include <TCollection_AsciiString.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QApplication>
#include <QFileDialog>
+#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : AddShape
#include <inspector/DFBrowserPane.hxx>
#include <TopoDS_Shape.hxx>
-#ifdef _MSC_VER
-#pragma warning(disable : 4127) // conditional expression is constant
-#endif
+#include <Standard_WarningsDisable.hxx>
#include <QObject>
#include <QModelIndex>
+#include <Standard_WarningsRestore.hxx>
//! \class DFBrowserPane_HelperExport
//! \brief It performs export to BREP of a shape by button is pressed
void OnButtonPressed (const QModelIndex& theIndex);
private:
+#ifdef _MSC_VER
+#pragma warning(push, 0) // 4251: class 'QMap<QModelIndex,TopoDS_Shape>' needs to have dll-interface...
+#endif
QMap<QModelIndex, TopoDS_Shape> myShapes; //!< a container of shapes
+#ifdef _MSC_VER
+#pragma warning(pop)
+#endif
};
#endif
#include <inspector/DFBrowserPane_ItemDelegateButton.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QAbstractItemModel>
#include <QEvent>
#include <QPainter>
+#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : Constructor
#include <Standard.hxx>
#include <Standard_Macro.hxx>
-#ifdef _MSC_VER
-#pragma warning(disable : 4127) // conditional expression is constant
-#endif
+#include <Standard_WarningsDisable.hxx>
#include <QStyledItemDelegate>
#include <QStyleOptionViewItem>
#include <QModelIndex>
#include <QString>
#include <QIcon>
+#include <Standard_WarningsRestore.hxx>
class QObject;
class QPainter;
#include <TDF_Reference.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QVariant>
#include <QTableView>
+#include <Standard_WarningsRestore.hxx>
+
// =======================================================================
// function : GetValues
// purpose :
#include <TDF_TagSource.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QVariant>
#include <QWidget>
+#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : GetValues
#include <TDataStd_AsciiString.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QVariant>
#include <QIcon>
+#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : GetValues
#include <TDataStd_BooleanArray.hxx>
-#ifdef _MSC_VER
-#pragma warning(disable : 4127) // conditional expression is constant
-#endif
-
+#include <Standard_WarningsDisable.hxx>
#include <QGridLayout>
#include <QVariant>
#include <QWidget>
+#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : CreateWidget
#include <TDataStd_BooleanList.hxx>
#include <TDataStd_ListIteratorOfListOfByte.hxx>
-#ifdef _MSC_VER
-#pragma warning(disable : 4127) // conditional expression is constant
-#endif
+#include <Standard_WarningsDisable.hxx>
#include <QVariant>
#include <QWidget>
+#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : GetValues
#include <TDataStd_ByteArray.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QVariant>
#include <QWidget>
+#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : CreateWidget
#include <TDataStd_Comment.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QVariant>
#include <QWidget>
+#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : GetValues
#include <TDataStd_Current.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QVariant>
#include <QWidget>
+#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : GetValues
#include <TDataStd_Directory.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QVariant>
+#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : GetValues
#include <inspector/DFBrowserPane_Tools.hxx>
#include <TDataStd_Expression.hxx>
+
+#include <Standard_WarningsDisable.hxx>
#include <QVariant>
+#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : GetValues
#include <TDataStd_ExtStringArray.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QVariant>
#include <QWidget>
+#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : CreateWidget
#include <TDataStd_ExtStringList.hxx>
#include <TDataStd_ListIteratorOfListOfExtendedString.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QVariant>
#include <QWidget>
+#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : GetValues
#include <TDataStd_IntPackedMap.hxx>
#include <TColStd_MapIteratorOfPackedMapOfInteger.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QVariant>
#include <QWidget>
+#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : GetValues
#include <TDataStd_Integer.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QVariant>
+#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : GetValues
#include <TDataStd_IntegerArray.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QVariant>
#include <QWidget>
+#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : CreateWidget
#include <TDataStd_IntegerList.hxx>
#include <TColStd_ListIteratorOfListOfInteger.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QVariant>
#include <QWidget>
+#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : GetValues
#include <TDataStd_Name.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QVariant>
+#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : GetValues
#include <TDataStd_HDataMapOfStringHArray1OfInteger.hxx>
#include <TDataStd_NamedData.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QTableView>
#include <QTabWidget>
#include <QVariant>
#include <QVBoxLayout>
#include <QWidget>
+#include <Standard_WarningsRestore.hxx>
static const QString VALUES_INTEGER = "values_integer";
static const QString VALUES_REAL = "values_real";
#include <TDataStd_NoteBook.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QVariant>
+#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : GetValues
#include <TDataStd_Real.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QVariant>
+#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : GetValues
#include <TDataStd_RealArray.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QVariant>
#include <QWidget>
+#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : CreateWidget
#include <TColStd_ListIteratorOfListOfReal.hxx>
#include <TDataStd_RealList.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QVariant>
#include <QWidget>
+#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : GetValues
#include <TDataStd_ReferenceArray.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QGridLayout>
#include <QItemSelectionModel>
#include <QTableView>
#include <QVariant>
#include <QWidget>
+#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : CreateWidget
#include <TDataStd_ReferenceList.hxx>
#include <TDF_ListIteratorOfLabelList.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QVariant>
#include <QWidget>
+#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : GetValues
#include <TDataStd_Relation.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QVariant>
#include <QWidget>
+#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : GetValues
#include <TDataStd_Tick.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QVariant>
#include <QWidget>
+#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : GetValues
#include <TDataStd_TreeNode.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QHeaderView>
#include <QVariant>
#include <QTableView>
#include <QVBoxLayout>
#include <QWidget>
#include <QItemSelectionModel>
+#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : Constructor
#include <TDF_AttributeIterator.hxx>
#include <TDF_ChildIterator.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QIcon>
#include <QObject>
+#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : Init
#include <Standard.hxx>
#include <TDF_Attribute.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QList>
#include <QMap>
#include <QVariant>
+#include <Standard_WarningsRestore.hxx>
class DFBrowserPane_TDataStdTreeNodeItem;
typedef QExplicitlySharedDataPointer<DFBrowserPane_TDataStdTreeNodeItem> DFBrowserPane_TDataStdTreeNodeItemPtr;
#include <TDataStd_TreeNode.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QAbstractItemModel>
+#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : Constructor
#include <Standard.hxx>
#include <TDF_Attribute.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QObject>
#include <QHash>
#include <QByteArray>
+#include <Standard_WarningsRestore.hxx>
//! \class DFBrowserPane_TDataStdTreeNodeModel
//! \brief It builds a tree of items for the given tree node attribute.
#include <TDataStd_UAttribute.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QVariant>
+#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : GetValues
#include <TDataStd_Variable.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QVariant>
+#include <Standard_WarningsRestore.hxx>
+
// =======================================================================
// function : GetValues
// purpose :
#include <TDocStd_Modified.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QVariant>
+#include <Standard_WarningsRestore.hxx>
+
// =======================================================================
// function : GetValues
// purpose :
#include <TDF_ListIteratorOfDeltaList.hxx>
#include <Standard_Version.hxx>
-#include <QVariant>
-#include <QWidget>
-
+#include <Standard_WarningsDisable.hxx>
#include <QGridLayout>
#include <QGroupBox>
#include <QTableView>
+#include <QVariant>
+#include <QWidget>
+#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : Constructor
<< aSeparationStr.ToCString() << aSeparationStr.ToCString()
<< "IsSaved" << DFBrowserPane_Tools::BoolToStr (aDocument->IsSaved())
<< "IsChanged" << DFBrowserPane_Tools::BoolToStr (aDocument->IsChanged())
- << "GetSavedTime" << DFBrowserPane_Tools::BoolToStr (aDocument->GetSavedTime())
+ << "GetSavedTime" << aDocument->GetSavedTime()
<< "GetName" << (aDocument->IsSaved() ? DFBrowserPane_Tools::ToString (aDocument->GetName()) : "")
<< "GetPath" << (aDocument->IsSaved() ? DFBrowserPane_Tools::ToString (aDocument->GetPath()) : "")
<< "GetData" << aDocumentDataInfo.ToCString()
#include <TDocStd_XLink.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QVariant>
+#include <Standard_WarningsRestore.hxx>
+
// =======================================================================
// function : GetValues
// purpose :
#include <TDocStd_XLinkRoot.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QVariant>
+#include <Standard_WarningsRestore.hxx>
+
// =======================================================================
// function : GetValues
// purpose :
#include <TFunction_Function.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QVariant>
+#include <Standard_WarningsRestore.hxx>
+
// =======================================================================
// function : GetValues
// purpose :
#include <TFunction_GraphNode.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QVariant>
+#include <Standard_WarningsRestore.hxx>
+
// =======================================================================
// function : GetValues
// purpose :
#include <TFunction_Scope.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QVariant>
+#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : GetValues
#include <TopoDS_Shape.hxx>
#include <TopoDS_Compound.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QFileDialog>
#include <QGridLayout>
#include <QEvent>
#include <QTableView>
#include <QVariant>
#include <QWidget>
+#include <Standard_WarningsRestore.hxx>
const int COLUMN_EXPORT_WIDTH = 20;
const int COLUMN_TYPE_WIDTH = 70;
#include <TNaming_NamedShape.hxx>
#include <TopoDS_Shape.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QMap>
#include <QModelIndex>
+#include <Standard_WarningsRestore.hxx>
class DFBrowserPane_TableView;
class DFBrowserPane_AttributePaneModel;
#include <TopoDS_Compound.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QGridLayout>
#include <QHeaderView>
#include <QTableView>
#include <QVariant>
#include <QWidget>
+#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : Constructor
#include <TopoDS_Compound.hxx>
#include <TopoDS_Shape.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QItemSelectionModel>
#include <QTableView>
#include <QVariant>
#include <QWidget>
+#include <Standard_WarningsRestore.hxx>
const int COLUMN_TYPE_WIDTH = 70;
const int COLUMN_POINTER_WIDTH = 90;
#include <TPrsStd_AISPresentation.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QVariant>
#include <QWidget>
+#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : Constructor
#include <AIS_InteractiveContext.hxx>
#include <TPrsStd_AISViewer.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QVariant>
+#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function :
#include <inspector/DFBrowserPane_TableView.hxx>
#include <inspector/DFBrowserPane_Tools.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QAbstractTableModel>
#include <QHeaderView>
#include <QHBoxLayout>
#include <QScrollBar>
#include <QTableView>
#include <QWidget>
+#include <Standard_WarningsRestore.hxx>
static const int DEFAULT_ROW_HEIGHT = 30;
// =======================================================================
void DFBrowserPane_TableView::SetFixedRowCount (const int theCount, QTableView* theView, const bool theScroll)
{
- double aHeight = theView->verticalHeader()->defaultSectionSize()*theCount + DFBrowserPane_Tools::HeaderSectionMargin();
+ int aHeight = theView->verticalHeader()->defaultSectionSize() * theCount + DFBrowserPane_Tools::HeaderSectionMargin();
if (theScroll)
aHeight += theView->horizontalScrollBar()->sizeHint().height();
#include <Standard.hxx>
-#ifdef _MSC_VER
-#pragma warning(disable : 4127) // conditional expression is constant
-#endif
+#include <Standard_WarningsDisable.hxx>
#include <QWidget>
#include <QMap>
+#include <Standard_WarningsRestore.hxx>
class QTableView;
class QAbstractTableModel;
#include <TopAbs_ShapeEnum.hxx>
#include <TopAbs_Orientation.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QApplication>
#include <QPalette>
#include <QStringList>
#include <QStyle>
#include <QWidget>
+#include <Standard_WarningsRestore.hxx>
#include <sstream>
#include <TopLoc_Location.hxx>
#include <TopoDS_Shape.hxx>
-#ifdef _MSC_VER
-#pragma warning(disable : 4127) // conditional expression is constant
-#endif
+#include <Standard_WarningsDisable.hxx>
#include <QApplication>
#include <QString>
#include <QStyle>
#include <QString>
#include <QVariant>
+#include <Standard_WarningsRestore.hxx>
#define PROPERTY_TABLE_ROW_COUNT 200
//! Returns "true" or "false" text for the given boolean state
//! \param theValue a boolean value
//! \return string value
- Standard_EXPORT static QString BoolToStr (const bool theValue) { return theValue ? "true" : "false"; }
+ Standard_EXPORT static QString BoolToStr (const Standard_Boolean theValue) { return theValue ? "true" : "false"; }
//! Converts a Qt string to OCCT extended string
//! \param theValue a converted string
#include <set>
+#include <Standard_WarningsDisable.hxx>
#include <QStringList>
+#include <Standard_WarningsRestore.hxx>
static std::set<Standard_CString> AttributeTypes;
#include <Standard.hxx>
#include <TopoDS_Shape.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QVariant>
+#include <Standard_WarningsRestore.hxx>
class QWidget;
class QItemSelectionModel;
#include <TDF_Label.hxx>
#include <TDocStd_Application.hxx>
-#ifdef _MSC_VER
-#pragma warning(disable:4127) // conditional expression is constant
-#endif
+#include <Standard_WarningsDisable.hxx>
#include <QMap>
#include <QWidget>
#include <QString>
+#include <Standard_WarningsRestore.hxx>
class DFBrowserPane_AttributePaneAPI;
#include <Quantity_Color.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QColor>
+#include <Standard_WarningsRestore.hxx>
+
// =======================================================================
// function : Constructor
// purpose :
#include <TopoDS_Compound.hxx>
#include <XCAFDoc_ShapeMapTool.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QEvent>
#include <QFileDialog>
#include <QGridLayout>
#include <QTableView>
#include <QVariant>
#include <QWidget>
+#include <Standard_WarningsRestore.hxx>
const int COLUMN_EXPORT_WIDTH = 20;
const int COLUMN_TYPE_WIDTH = 70;
#include <OSD_Path.hxx>
#include <OSD_Protection.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QApplication>
#include <QMainWindow>
#include <QDir>
+#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : CreateCommunicator
#include <TopoDS_Iterator.hxx>
#include <TopoDS_Vertex.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QObject>
#include <QStringList>
+#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : ToString
#include <TCollection_AsciiString.hxx>
#include <TopoDS_Shape.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QMap>
#include <QVariant>
+#include <Standard_WarningsRestore.hxx>
class ShapeView_ItemShape;
typedef QExplicitlySharedDataPointer<ShapeView_ItemShape> ShapeView_ItemShapePtr;
#include <inspector/ShapeView_OpenFileDialog.hxx>
#include <inspector/ShapeView_OpenFileViewModel.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QGroupBox>
#include <QHBoxLayout>
#include <QHeaderView>
#include <QFileSystemModel>
#include <QPushButton>
#include <QToolButton>
+#include <Standard_WarningsRestore.hxx>
const int FONT_POINT_SIZE = 18;
const int ICON_SIZE = 40;
#include <Standard_Macro.hxx>
#include <TCollection_AsciiString.hxx>
-#ifdef _MSC_VER
-#pragma warning(disable : 4127) // conditional expression is constant
-#endif
+#include <Standard_WarningsDisable.hxx>
#include <QDialog>
#include <QItemSelection>
#include <QStringList>
+#include <Standard_WarningsRestore.hxx>
#include <map>
#include <inspector/ShapeView_OpenFileViewModel.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QApplication>
#include <QFileInfo>
#include <QIcon>
#include <QPainter>
+#include <Standard_WarningsRestore.hxx>
const int ICON_SIZE = 40;
// =======================================================================
// action icon for all indices before the last one
QIcon anIcon (":/icons/folder_import.png");
QSize anIconSize (ICON_SIZE, ICON_SIZE);
- int aWidth = theOption.rect.width();
- int aCenter = aWidth / 2.;
- int aHalf = anIconSize.width() / 2.;
+ int aDX = (theOption.rect.width() - anIconSize.width()) / 2;
int aMargin = qApp->style()->pixelMetric (QStyle::PM_HeaderMargin);
- thePainter->drawPixmap (QRect (theOption.rect.left() + (aCenter - aHalf),
+ thePainter->drawPixmap (QRect (theOption.rect.left() + aDX,
theOption.rect.top() + aMargin,
anIconSize.width(),
anIconSize.height()),
#include <Standard.hxx>
#include <Standard_Macro.hxx>
-#ifdef _MSC_VER
-#pragma warning(disable : 4127) // conditional expression is constant
-#endif
+#include <Standard_WarningsDisable.hxx>
#include <QAbstractTableModel>
#include <QStringList>
#include <QItemDelegate>
+#include <Standard_WarningsRestore.hxx>
class QObject;
class QPainter;
#include <TopoDS_Shape.hxx>
#include <inspector/TreeModel_ModelBase.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QMap>
#include <QObject>
+#include <Standard_WarningsRestore.hxx>
class ShapeView_TreeModel;
#include <BRep_Builder.hxx>
#include <BRepTools.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QApplication>
#include <QAction>
#include <QComboBox>
#include <QTreeView>
#include <QWidget>
#include <QVBoxLayout>
+#include <Standard_WarningsRestore.hxx>
const int FIRST_COLUMN_WIDTH = 190;
const int SIZE_COLUMN_WIDTH = 30;
#include <inspector/TInspectorAPI_PluginParameters.hxx>
#include <TopoDS_Shape.hxx>
-#ifdef _MSC_VER
-#pragma warning(disable : 4127) // conditional expression is constant
-#endif
+#include <Standard_WarningsDisable.hxx>
#include <QItemSelection>
#include <QList>
#include <QModelIndexList>
#include <QPoint>
#include <QString>
#include <QTreeView>
+#include <Standard_WarningsRestore.hxx>
class View_Displayer;
class View_Window;
#include <TCollection_AsciiString.hxx>
#include <inspector/TInspector_Window.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QApplication>
#include <QDir>
#include <QMainWindow>
#include <QWidget>
+#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : Constructor
#include <inspector/TInspectorAPI_Communicator.hxx>
#include <inspector/TInspector_PluginParameters.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QApplication>
#include <QDockWidget>
#include <QLabel>
#include <QPushButton>
#include <QStackedWidget>
#include <QVBoxLayout>
+#include <Standard_WarningsRestore.hxx>
const int TINSPECTOR_DEFAULT_WIDTH = 650;
const int TINSPECTOR_DEFAULT_HEIGHT = 500;//350;
#include <TCollection_AsciiString.hxx>
#include <inspector/TInspectorAPI_PluginParameters.hxx>
-#ifdef _MSC_VER
-#pragma warning(disable : 4127) // conditional expression is constant
-#endif
+#include <Standard_WarningsDisable.hxx>
#include <QMap>
#include <QObject>
#include <QString>
+#include <Standard_WarningsRestore.hxx>
class TInspectorAPI_Communicator;
// commercial license or contractual agreement.
#include <inspector/TreeModel_ItemBase.hxx>
-
#include <inspector/TreeModel_ItemRole.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QStringList>
+#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : Constructor
#include <Standard_Macro.hxx>
#include <inspector/TreeModel_ItemRole.hxx>
-#ifdef _MSC_VER
-#pragma warning(disable : 4127) // conditional expression is constant
-#endif
+#include <Standard_WarningsDisable.hxx>
#include <QExplicitlySharedDataPointer>
#include <QHash>
#include <QMap>
#include <QPair>
#include <QSharedData>
#include <QVariant>
+#include <Standard_WarningsRestore.hxx>
class TreeModel_ItemBase;
#ifndef TreeModel_ItemRole_H
#define TreeModel_ItemRole_H
+#include <Standard_WarningsDisable.hxx>
#include <Qt>
+#include <Standard_WarningsRestore.hxx>
//! Sets custom item role of Tree view wmodel
enum TreeModel_ItemRole
#include <inspector/TreeModel_MessageDialog.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QCheckBox>
#include <QCursor>
#include <QGridLayout>
#include <QLabel>
#include <QPushButton>
#include <QWidget>
+#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : Constructor
#include <Standard.hxx>
#include <Standard_Macro.hxx>
-#ifdef _MSC_VER
-#pragma warning(disable : 4127) // conditional expression is constant
-#endif
+#include <Standard_WarningsDisable.hxx>
#include <QCheckBox>
#include <QDialog>
#include <QLabel>
#include <QPushButton>
#include <QString>
+#include <Standard_WarningsRestore.hxx>
class DFBrowser_Module;
class QWidget;
#include <Standard.hxx>
#include <inspector/TreeModel_ItemBase.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QAbstractItemModel>
#include <QExplicitlySharedDataPointer>
#include <QModelIndex>
#include <QVariant>
+#include <Standard_WarningsRestore.hxx>
//! \class TreeModel_ModelBase
//! \brief Implementation of the tree item based model of QAbstractItemModel.
#include <inspector/VInspector_Tools.hxx>
#include <inspector/VInspector_ViewModelHistory.hxx>
-#include <QStringList>
-
#if OCC_VERSION_HEX <= 0x060901
IMPLEMENT_STANDARD_HANDLE(VInspector_CallBack, Standard_Transient)
IMPLEMENT_STANDARD_RTTIEXT(VInspector_CallBack, VInspectorAPI_CallBack)
#include <AIS_InteractiveContext.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QApplication>
#include <QDir>
#include <QLayout>
#include <QMainWindow>
#include <QWidget>
+#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : CreateCommunicator
#include <inspector/VInspector_ItemPresentableObject.hxx>
#include <inspector/VInspector_Tools.hxx>
-#include <QStringList>
-
//#define DEBUG_FREE_OWNERS
// =======================================================================
#include <Standard_Version.hxx>
#include <StdSelect_BRepOwner.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QItemSelectionModel>
#include <QColor>
+#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : initValue
#include <StdSelect_BRepOwner.hxx>
#include <Standard_Version.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QColor>
#include <QItemSelectionModel>
+#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : initValue
#include <inspector/VInspector_ItemSensitiveEntity.hxx>
#include <inspector/VInspector_Tools.hxx>
-#include <QStringList>
-
+#include <Standard_WarningsDisable.hxx>
#include <QColor>
+#include <QStringList>
+#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : getSelection
#include <inspector/VInspector_ItemSelection.hxx>
#include <inspector/VInspector_Tools.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QStringList>
#include <QColor>
+#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : GetSensitiveEntity
#include <inspector/VInspector_ToolBar.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QHBoxLayout>
#include <QPushButton>
#include <QWidget>
-
+#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : Constructor
#include <Standard_Macro.hxx>
#include <inspector/VInspector_ToolActionType.hxx>
-#ifdef _MSC_VER
- #pragma warning(disable : 4127 4718) // conditional expression is constant, recursive call has no side effects
-#endif
+#include <Standard_WarningsDisable.hxx>
#include <QMap>
#include <QObject>
+#include <Standard_WarningsRestore.hxx>
class QWidget;
class QPushButton;
#include <Standard_Version.hxx>
#include <StdSelect_BRepOwner.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QStringList>
+#include <Standard_WarningsRestore.hxx>
#include <sstream>
#include <inspector/VInspector_CallBackMode.hxx>
#include <inspector/VInspector_SelectionType.hxx>
-#ifdef _MSC_VER
-#pragma warning(disable : 4127) // conditional expression is constant
-#endif
-
+#include <Standard_WarningsDisable.hxx>
#include <QList>
#include <QVariant>
+#include <Standard_WarningsRestore.hxx>
//! \class VInspector_Tools
//! The class that gives auxiliary methods for Visualization elements manipulation
#include <inspector/VInspector_ItemSensitiveEntity.hxx>
#include <SelectBasics_EntityOwner.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QItemSelectionModel>
#include <QStringList>
+#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : Constructor
#include <inspector/TreeModel_ModelBase.hxx>
#include <inspector/VInspector_ItemBase.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QByteArray>
#include <QHash>
#include <QMap>
#include <QObject>
+#include <Standard_WarningsRestore.hxx>
class OCAFSampleAPI_Module;
class OCAFSampleModel_DocumentMgr;
#include <inspector/VInspector_ItemHistoryRoot.hxx>
#include <inspector/VInspector_ItemHistoryType.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QStringList>
+#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : Constructor
#include <inspector/VInspector_ItemBase.hxx>
#include <inspector/VInspector_CallBackMode.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QByteArray>
#include <QHash>
#include <QMap>
#include <QObject>
+#include <Standard_WarningsRestore.hxx>
#include <inspector/TreeModel_ModelBase.hxx>
#include <inspector/View_Widget.hxx>
#include <inspector/View_Window.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QApplication>
#include <QDockWidget>
#include <QHeaderView>
#include <QToolButton>
#include <QTreeView>
#include <QWidget>
+#include <Standard_WarningsRestore.hxx>
const int FIRST_COLUMN_WIDTH = 230;
#include <inspector/TInspectorAPI_PluginParameters.hxx>
#include <inspector/VInspector_CallBack.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QObject>
#include <QItemSelection>
#include <QMainWindow>
+#include <Standard_WarningsRestore.hxx>
class TreeModel_MessageDialog;
#include <inspector/View_ToolBar.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QComboBox>
#include <QHBoxLayout>
#include <QLabel>
#include <QToolButton>
#include <QWidget>
+#include <Standard_WarningsRestore.hxx>
const int DEFAULT_COMBO_WIDTH_MINIMUM = 80;
const int DEFAULT_SPACING = 3;
#include <inspector/View_ContextType.hxx>
#include <inspector/View_ToolActionType.hxx>
-#ifdef _MSC_VER
- #pragma warning(disable : 4127 4718) // conditional expression is constant, recursive call has no side effects
-#endif
+#include <Standard_WarningsDisable.hxx>
#include <QObject>
#include <QMap>
+#include <Standard_WarningsRestore.hxx>
class QComboBox;
class QToolButton;
#include <inspector/View_ViewActionType.hxx>
#include <inspector/View_Viewer.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QColorDialog>
#include <QCursor>
#include <QFileInfo>
#include <QRubberBand>
#include <QStatusBar>
#include <QStyleFactory>
+#include <Standard_WarningsRestore.hxx>
#include <stdio.h>
#include <inspector/View_ViewActionType.hxx>
#include <inspector/View_Viewer.hxx>
-#ifdef _MSC_VER
- #pragma warning(disable : 4127 4718) // conditional expression is constant, recursive call has no side effects
-#endif
+#include <Standard_WarningsDisable.hxx>
#include <QAction>
#include <QMap>
#include <QString>
#include <QWidget>
+#include <Standard_WarningsRestore.hxx>
class View_Viewer;
#include <inspector/View_Viewer.hxx>
#include <inspector/View_Widget.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QComboBox>
#include <QDockWidget>
#include <QGridLayout>
#include <QToolBar>
+#include <Standard_WarningsRestore.hxx>
const int DEFAULT_SPACING = 3;
#include <AIS_InteractiveContext.hxx>
#include <inspector/View_ContextType.hxx>
-#ifdef _MSC_VER
-#pragma warning(disable : 4127) // conditional expression is constant
-#endif
+#include <Standard_WarningsDisable.hxx>
#include <QWidget>
+#include <Standard_WarningsRestore.hxx>
class View_Displayer;
class View_ToolBar;