]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
fight warnings, fix minor warnings. Build GUI finished
authorSALOME <salome@opencascade.com>
Mon, 24 Aug 2020 11:28:55 +0000 (14:28 +0300)
committerSALOME <salome@opencascade.com>
Mon, 24 Aug 2020 11:28:55 +0000 (14:28 +0300)
48 files changed:
src/GLViewer/GLViewer_BaseObjects.cxx
src/GLViewer/GLViewer_Grid.cxx
src/GraphicsView/GraphicsView_Object.h
src/GraphicsView/GraphicsView_Selector.cxx
src/OCCViewer/OCCViewer.h
src/OCCViewer/OCCViewer_ClippingDlg.cxx
src/OCCViewer/OCCViewer_ViewFrame.h
src/Plot2d/Plot2d_PlotItems.cxx
src/Plot2d/Plot2d_ViewFrame.cxx
src/Prs/SALOME_Prs.h
src/Qtx/QtxBiColorTool.cxx
src/Qtx/QtxColorScale.cxx
src/Qtx/QtxMainWindow.cxx
src/Qtx/QtxPagePrefMgr.cxx
src/Qtx/QtxPathListEdit.cxx
src/Qtx/QtxShortcutEdit.cxx
src/Qtx/QtxWorkstack.cxx
src/Qtx/QtxWorkstackAction.cxx
src/QxScene/QxScene_ViewWindow.cxx
src/QxScene/QxScene_ViewWindow.h
src/STD/STD_Application.cxx
src/SUIT/SUIT_DataBrowser.cxx
src/SUIT/SUIT_TreeModel.cxx
src/SUIT/SUIT_ViewWindow.cxx
src/VTKViewer/VTKViewer_Actor.cxx
src/VTKViewer/VTKViewer_Actor.h
src/VTKViewer/VTKViewer_AppendFilter.h
src/VTKViewer/VTKViewer_CellCenters.cxx
src/VTKViewer/VTKViewer_CellCenters.h
src/VTKViewer/VTKViewer_CellLocationsArray.cxx
src/VTKViewer/VTKViewer_CellLocationsArray.h
src/VTKViewer/VTKViewer_DataSetMapper.cxx
src/VTKViewer/VTKViewer_ExtractUnstructuredGrid.cxx
src/VTKViewer/VTKViewer_ExtractUnstructuredGrid.h
src/VTKViewer/VTKViewer_Filter.h
src/VTKViewer/VTKViewer_FramedTextActor.cxx
src/VTKViewer/VTKViewer_FramedTextActor.h
src/VTKViewer/VTKViewer_GeometryFilter.cxx
src/VTKViewer/VTKViewer_GeometryFilter.h
src/VTKViewer/VTKViewer_InteractorStyle.cxx
src/VTKViewer/VTKViewer_InteractorStyle.h
src/VTKViewer/VTKViewer_PolyDataMapper.h
src/VTKViewer/VTKViewer_RenderWindowInteractor.h
src/VTKViewer/VTKViewer_Transform.h
src/VTKViewer/VTKViewer_TransformFilter.h
src/VTKViewer/VTKViewer_Trihedron.h
src/ViewerTools/ViewerTools_FontWidgetBase.cxx
tools/CurvePlot/src/cpp/CurvePlot.cxx

index fa66857f6bc06e963aa3a439aefceaabcd6bcb30..39a46a0e6776a8aec957293045983400de9a1621 100644 (file)
@@ -422,7 +422,7 @@ GLboolean GLViewer_MarkerSet::unhighlight()
   \param isCircle - true if sensitive area of detection is round
   \param isShift  - true if selection exec with append option
 */
-GLboolean GLViewer_MarkerSet::select( GLfloat x, GLfloat y, GLfloat tol, GLViewer_Rect rect, GLboolean isFull,
+GLboolean GLViewer_MarkerSet::select( GLfloat x, GLfloat y, GLfloat tol, GLViewer_Rect /*rect*/, GLboolean /*isFull*/,
                                       GLboolean isCircle, GLboolean isShift )
 {
        //GUI_UNUSED(isFull);
@@ -816,7 +816,7 @@ bool GLViewer_MarkerSet::initializeFromByteCopy( QByteArray theArray )
   \param size - size of polyline
   \param toolTip - tool tip of polyline
 */
-GLViewer_Polyline::GLViewer_Polyline( int number, float size, const QString& toolTip ):
+GLViewer_Polyline::GLViewer_Polyline( int number, float /*size*/, const QString& toolTip ):
   GLViewer_Object(),
   myNumber( 0 ),
   myXCoord( 0 ),
@@ -1007,7 +1007,7 @@ GLViewer_Drawer* GLViewer_Polyline::createDrawer()
   \param isCircle - true if sensitive area of detection is round
   \return true if highlight status is changed
 */
-GLboolean GLViewer_Polyline::highlight( GLfloat x, GLfloat y, GLfloat tol, GLboolean isCircle )
+GLboolean GLViewer_Polyline::highlight( GLfloat x, GLfloat y, GLfloat /*tol*/, GLboolean /*isCircle*/ )
 {
        //GUI_UNUSED(isCircle);
        //GUI_UNUSED(tol);
@@ -1093,14 +1093,9 @@ GLboolean GLViewer_Polyline::unhighlight()
   \param isCircle - true if sensitive area of detection is round
   \param isShift  - true if selection exec with append option
 */
-GLboolean GLViewer_Polyline::select( GLfloat x, GLfloat y, GLfloat tol, GLViewer_Rect rect, GLboolean isFull,
-                                     GLboolean isCircle, GLboolean isShift )
+GLboolean GLViewer_Polyline::select( GLfloat x, GLfloat y, GLfloat /*tol*/, GLViewer_Rect /*rect*/, GLboolean /*isFull*/,
+                                     GLboolean /*isCircle*/, GLboolean /*isShift*/ )
 {
-       //GUI_UNUSED(isCircle);
-       //GUI_UNUSED(isFull);
-       //GUI_UNUSED(isShift);
-       //GUI_UNUSED(rect);
-       //GUI_UNUSED(tol);
     if( !myIsVisible )
         return false;
     GLfloat xa, xb, ya, yb, l;
@@ -1631,12 +1626,9 @@ GLboolean GLViewer_TextObject::unhighlight()
   \param isCircle - true if sensitive area of detection is round
   \param isShift  - true if selection exec with append option
 */
-GLboolean GLViewer_TextObject::select( GLfloat theX, GLfloat theY, GLfloat theTol, GLViewer_Rect rect,
-                                       GLboolean isFull, GLboolean isCircle, GLboolean isShift )
+GLboolean GLViewer_TextObject::select( GLfloat theX, GLfloat theY, GLfloat theTol, GLViewer_Rect /*rect*/,
+                                       GLboolean /*isFull*/, GLboolean isCircle, GLboolean /*isShift*/ )
 { 
-       //GUI_UNUSED(isFull);
-       //GUI_UNUSED(isShift);
-       //GUI_UNUSED(rect);
     if( !myIsVisible )
         return false;
 
index b46bf62d66fab06a9afc2afd82d3e7c236c3aef8..79538241ee134bfb132301df814051f047fba535 100644 (file)
@@ -56,27 +56,17 @@ GLViewer_Grid::GLViewer_Grid() :
   \param xPan and \param yPan     - offsets along x and y direction
   \param xScale and \param yScal  - scale factors along x and y direction
 */
-GLViewer_Grid::GLViewer_Grid( GLfloat width, GLfloat height,
-                              GLfloat winW, GLfloat winH,
-                              GLfloat xSize, GLfloat ySize,
-                              GLfloat xPan, GLfloat yPan,
-                              GLfloat xScale, GLfloat yScale ) :
+GLViewer_Grid::GLViewer_Grid( GLfloat /*width*/, GLfloat /*height*/,
+                              GLfloat /*winW*/, GLfloat /*winH*/,
+                              GLfloat /*xSize*/, GLfloat /*ySize*/,
+                              GLfloat /*xPan*/, GLfloat /*yPan*/,
+                              GLfloat /*xScale*/, GLfloat /*yScale*/ ) :
        myGridList( 0 ), myGridHeight( (GLfloat)0.0 ), myGridWidth( (GLfloat)0.0 ),
        myWinW( (GLfloat)0.0 ), myWinH( (GLfloat)0.0 ), myXSize( (GLfloat)0.0 ), myYSize( (GLfloat)0.0 ),
        myXPan( (GLfloat)0.0 ), myYPan( (GLfloat)0.0 ), myXScale( (GLfloat)1.0 ), myYScale( (GLfloat)1.0 ),
        myLineWidth( (GLfloat)0.05 ), myCenterWidth( (GLfloat)1.5 ), myCenterRadius( (GLfloat)5.0 ), 
        myScaleFactor( 10 ), myIsUpdate( GL_FALSE )
 {
-       //GUI_UNUSED(height);
-       //GUI_UNUSED(width);
-       //GUI_UNUSED(winH);
-       //GUI_UNUSED(winW);
-       //GUI_UNUSED(xPan);
-       //GUI_UNUSED(xScale);
-       //GUI_UNUSED(xSize);
-       //GUI_UNUSED(yPan);
-       //GUI_UNUSED(yScale);
-       //GUI_UNUSED(ySize);
   myGridColor[0] = 0.5;
   myGridColor[1] = 0.5;
   myGridColor[2] = 0.5;
index 4c57961863db8b62dbb05c4f2d9b3bf24d071022..a0900b28f346b0c06fd4bcc7bfc9d561a90e52e4 100644 (file)
@@ -74,10 +74,10 @@ public:
   virtual void               move( double theDX, double theDY, bool theIsAtOnce = false );
   virtual bool               finishMove( bool theStatus );
   virtual bool               isMoving() const { return myIsMoving; }
-  virtual bool               isMovingByXAllowed( double theDX ) {/*GUI_UNUSED(theDX);*/ return true; }
-  virtual bool               isMovingByYAllowed( double theDY ) {/*GUI_UNUSED(theDY);*/ return true; }
+  virtual bool               isMovingByXAllowed( double /*theDX*/ ) { return true; }
+  virtual bool               isMovingByYAllowed( double /*theDY*/ ) { return true; }
 
-  virtual bool               updateScale( bool theIsScaleUp, bool theIsCtrl ) {/*GUI_UNUSED(theIsScaleUp);GUI_UNUSED(theIsCtrl);*/ return false; }
+  virtual bool               updateScale( bool /*theIsScaleUp*/, bool /*theIsCtrl*/ ) { return false; }
 
   virtual QRectF             getPullingRect() const { return getRect(); }
   virtual bool               portContains( const QPointF& ) { return false; }
index 8bc9ae19476e5e6509beb1e2527e800e9a279e5d..fd57e5c4a41cc2badd63a3d73ae6d45cd64b412e 100644 (file)
@@ -103,9 +103,8 @@ void GraphicsView_Selector::unselectAll()
 // Function : checkSelection
 // Purpose  : 
 //================================================================
-void GraphicsView_Selector::checkSelection( int selBefore, bool append, int theStatus )
+void GraphicsView_Selector::checkSelection( int selBefore, bool /*append*/, int theStatus )
 {
-       //GUI_UNUSED(append);
   int selAfter = numSelected();
   if ( selBefore > 0 && selAfter < 1 )     
     emit selSelectionCancel();
index 173a7a1c8056c269f748bf7c697df1de10a923e6..f227a1fb3024bd0eee70e6c8cc32f1e482d8ec55 100644 (file)
@@ -45,6 +45,6 @@ namespace OCCViewer
 {
   OCCVIEWER_EXPORT Quantity_Color color( const QColor& );
   OCCVIEWER_EXPORT QColor         color( const Quantity_Color& );
-};
+}
 
 #endif //OCCVIEWER_H
index 1bf2cf18d027d136aa236196f8442308aefb29b1..5d535ec967ecc078a312c0dfc1d59cedc81f3013 100644 (file)
@@ -905,7 +905,7 @@ void OCCViewer_ClippingDlg::updatePreview() {
     gp_Pnt aBasePnt;
     gp_Dir aNormal;
     clipPlaneParams(aClipPlane, ic, aSize, aBasePnt, aNormal, myModel->trihedronSize());
-    if(myPreviewPlaneVector.size() < clipPlanesCount()) {
+    if(myPreviewPlaneVector.size() < (size_t)clipPlanesCount()) { //TODO: mismatch signed/unsigned
       myPreviewPlaneVector.resize(clipPlanesCount());
     }
     myPreviewPlane = myPreviewPlaneVector[aCurPlaneIndex];
@@ -939,7 +939,7 @@ void OCCViewer_ClippingDlg::updatePreview() {
       myPreviewPlaneVector[aCurPlaneIndex].Nullify();
     }
   }
-  for(int i = 0; i < myPreviewPlaneVector.size(); i++) {
+  for(int i = 0; i < (int)myPreviewPlaneVector.size(); i++) {//TODO: mismatch signed/unsigned
     if( i == aCurPlaneIndex ) continue;
     if(!myPreviewPlaneVector[i].IsNull())
       ic->SetColor( myPreviewPlaneVector[i], Quantity_Color( 85 / 255., 85 / 255., 255 / 255., Quantity_TOC_RGB ), false );
@@ -969,7 +969,7 @@ void OCCViewer_ClippingDlg::erasePreview()
 
   Handle(AIS_InteractiveContext) ic = myModel->getAISContext();
 
-  for ( int i=0; i < myPreviewPlaneVector.size(); i++ ) {
+  for ( int i=0; i < (int)myPreviewPlaneVector.size(); i++ ) {//TODO: mismatch signed/unsigned
   Handle(AIS_Plane) myPreviewPlane = myPreviewPlaneVector[i];
     if ( !myPreviewPlane.IsNull() && ic->IsDisplayed( myPreviewPlane ) ) {
       ic->Erase( myPreviewPlane, false );
index 9c5ec78e9f1fddbdf7d405757b995fc5fbb6657a..f5684a1fd74815b28e0521762bf59b0559e7d1ee 100644 (file)
@@ -145,15 +145,15 @@ public slots:
   virtual void activateRotation() {}
   virtual void activatePanning() {}
   virtual void activateGlobalPanning() {}
-  virtual void onSetRotationPoint( bool on ) {/*GUI_UNUSED(on);*/}
+  virtual void onSetRotationPoint( bool /*on*/ ) {}
   virtual void onAxialScale() {}
   virtual void onAmbientToogle() {}
   virtual void onMemorizeView() {}
   virtual void onRestoreView() {}
-  virtual void onSwitchInteractionStyle( bool on ) {/*GUI_UNUSED(on);*/ }
+  virtual void onSwitchInteractionStyle( bool /*on*/ ) {}
 
   virtual void activateSetRotationGravity() {}
-  virtual void activateSetRotationSelected( double theX, double theY, double theZ ) {/*GUI_UNUSED(theX);GUI_UNUSED(theY);GUI_UNUSED(theZ);*/}
+  virtual void activateSetRotationSelected( double /*theX*/, double /*theY*/, double /*theZ*/ ) {}
   virtual void activateStartPointSelection( TopAbs_ShapeEnum ) {}
   virtual void updateGravityCoords() {}
    
index e0a78895cb95484b0b3d88b5702e66b180e26fc0..3754e1190be2673a2048d760a3167cb1b0bc42c0 100644 (file)
@@ -984,7 +984,7 @@ bool Plot2d_HistogramItem::isCrossItems() const
   Draws bar of histogram and on it bars of histograms with lower height.
 */
 void Plot2d_HistogramItem::drawRectAndLowers( QPainter* thePainter,
-                                              Qt::Orientation theOr,
+                                              Qt::Orientation /*theOr*/,
                                               const QRect& theRect ) const
 {
   QRect aRect = theRect;
@@ -1042,7 +1042,7 @@ int Plot2d_HistogramItem::getCrossedTop( const QRect& theRect ) const
   return aRes;
 }
 
-QwtGraphic Plot2d_HistogramItem::legendIcon( int index, const QSizeF &size ) const
+QwtGraphic Plot2d_HistogramItem::legendIcon( int /*index*/, const QSizeF &size ) const
 {   
     return defaultIcon( color(), size );
 }
index 90d0eda45d45ca05cc7deb52839273671b25dd0b..c435a71ef0921133e920d310fac9974b89e3f7fa 100644 (file)
@@ -2850,7 +2850,7 @@ bool Plot2d_ViewFrame::hasPlotObject( Plot2d_Object* object ) const
 /*!
   Sets curve type
 */
-void Plot2d_ViewFrame::setCurveType( QwtPlotCurve* curve, int curveType )
+void Plot2d_ViewFrame::setCurveType( QwtPlotCurve* curve, int /*curveType*/ )
 {
   if ( !curve )
     return;
@@ -3176,7 +3176,7 @@ QwtPlotMarker* Plot2d_Plot2d::createMarkerAndTooltip( QwtSymbol* symbol,
 QwtPlotGrid* Plot2d_Plot2d::grid() const
 {
   return myGrid;
-};
+}
 
 QwtPlotZoomer* Plot2d_Plot2d::zoomer() const
 {
index dba9132b26a60eec9d519b75a28c9adb7a84ef31..df32bda402eaebf3cf2c7a193796436e6f55599b 100644 (file)
@@ -307,7 +307,7 @@ public:
   //! \retval Return false.
   virtual bool isVisible( const Handle(SALOME_InteractiveObject)& ){ return false; }
   virtual void Repaint() {} //!< Null body here.
-  virtual void GetVisible( SALOME_ListIO& theList ) {/*GUI_UNUSED(theList);*/}
+  virtual void GetVisible( SALOME_ListIO& /*theList*/ ) {/*GUI_UNUSED(theList);*/}
 };
 
 /*!
index 7517685ca0908bf2bf9895aade9d66df72d46b7b..616a80f978517f5fe3b4aca29305a72fe7def1c4 100644 (file)
@@ -61,7 +61,7 @@ public:
     }
     return mySizeHint; 
   }
-  void paintEvent( QPaintEvent* e )
+  void paintEvent( QPaintEvent* /*e*/ )
   {
     QStylePainter sp(this);
     QStyleOptionButton option;
index 6ef8d823fbf3af1523c037c4cc047fa2137db295..d7c2cd3a9ca1ea5c6c06cc38828901f0df2c737f 100644 (file)
@@ -706,7 +706,7 @@ void QtxColorScale::hide()
   \brief Paint widget
   \param e paint event
 */
-void QtxColorScale::paintEvent( QPaintEvent* e )
+void QtxColorScale::paintEvent( QPaintEvent* /*e*/ )
 {
   QPainter p( this );
   drawFrame( &p );
index fcfe0fe1e349fbfd98b67e9e6b3a565a9c752bc8..df152aa74cd4b8b27115e75453741b2834e93adb 100644 (file)
@@ -69,7 +69,7 @@ QtxMainWindow::Filter::Filter( QWidget* wid, QtxMainWindow* mw, QObject* parent
   myWidget( wid )
 {
   QApplication::instance()->installEventFilter( this );
-};
+}
 
 /*!
   \brief Destructor.
@@ -142,7 +142,7 @@ QtxMainWindow::Resizer::Resizer( const QPoint& p, const Qt::Orientation o, QtxMa
   setPosition( p );
 
   myRubber->hide();
-};
+}
 
 /*!
   \brief Destructor.
index d11413755a03659031da6be3a6ebbaa7a9494386..7f7e519366f6a1dc0b205f79a20c730f19da3f0a 100644 (file)
@@ -4475,7 +4475,7 @@ void QtxPagePrefShortcutBtnsItem::retrieve()
   \param param resource file parameter associated with the preference item
 */
 QtxPagePrefShortcutTreeItem::QtxPagePrefShortcutTreeItem( const QString& title, QtxPreferenceItem* parent, const QString& sect, 
-                                                          const QString& param ): QtxPageNamedPrefItem( title, parent, sect, "" )
+                                                          const QString& /*param*/ ): QtxPageNamedPrefItem( title, parent, sect, "" )
 {
   mySection = sect;
 
index 31ce3002b9281b2880030d92d3b26433c8d7b7cc..f3860e00628059ba7f1f4646290b5a49ffe91713 100644 (file)
@@ -207,8 +207,8 @@ QtxPathListEdit::Delegate::~Delegate()
   \param option style option
   \param index data model index
 */
-QWidget* QtxPathListEdit::Delegate::createEditor( QWidget* parent, const QStyleOptionViewItem& option,
-                                                  const QModelIndex& index ) const
+QWidget* QtxPathListEdit::Delegate::createEditor( QWidget* parent, const QStyleOptionViewItem& /*option*/,
+                                                  const QModelIndex& /*index*/ ) const
 {
   return myPathEdit->createEditor( parent );
 }
@@ -220,7 +220,7 @@ QWidget* QtxPathListEdit::Delegate::createEditor( QWidget* parent, const QStyleO
   \param model data model
   \param index data model index
 */
-void QtxPathListEdit::Delegate::setModelData( QWidget* editor, QAbstractItemModel* model,
+void QtxPathListEdit::Delegate::setModelData( QWidget* editor, QAbstractItemModel* /*model*/,
                                               const QModelIndex& index ) const
 {
   myPathEdit->setModelData( editor, index );
@@ -270,7 +270,7 @@ void QtxPathListEdit::Delegate::paint( QPainter* painter, const QStyleOptionView
   \param rect selection rectangle
 */
 void QtxPathListEdit::Delegate::drawFocus( QPainter* painter, const QStyleOptionViewItem& option,
-                                           const QRect& rect ) const
+                                           const QRect& /*rect*/ ) const
 {
   QItemDelegate::drawFocus( painter, option, option.rect );
 }
index 415cf9484f482f819fadce327e1cffec5840a999..798caf2548034509fdeba4802d6a4f8566d63f95 100644 (file)
@@ -242,7 +242,7 @@ QtxShortcutTree::~QtxShortcutTree(){}
   \param event event
   \return \c true if further event processing should be stopped
 */
-bool QtxShortcutTree::eventFilter(QObject* obj, QEvent* event) 
+bool QtxShortcutTree::eventFilter(QObject* /*obj*/, QEvent* event) 
 { 
   if ( currentItem() && currentItem()->isSelected() ) {
     
@@ -273,7 +273,7 @@ bool QtxShortcutTree::eventFilter(QObject* obj, QEvent* event)
   \param cur the current item
   \param prev the previous current item
 */
-void QtxShortcutTree::onCurrentItemChanged( QTreeWidgetItem* cur, QTreeWidgetItem* prev )
+void QtxShortcutTree::onCurrentItemChanged( QTreeWidgetItem* /*cur*/, QTreeWidgetItem* prev )
 {
   if ( prev && prev->text( 1 ).endsWith( "+" ) )
       prev->setText( 1, myPrevBindings[ prev->parent()->text( 0 ) ][ prev->text( 0 ) ] );
index 18b10df00fa9472b3261b39cf1bc21d11cf14534..0438d7905e1d4a65dc2166540d5949552d9401bd 100644 (file)
@@ -1080,7 +1080,7 @@ void QtxWorkstackArea::onChildDestroyed( QObject* obj )
   \brief Called when child widget container is shown.
   \param c child widget container being shown
 */
-void QtxWorkstackArea::onChildShown( QtxWorkstackChild* c )
+void QtxWorkstackArea::onChildShown( QtxWorkstackChild* /*c*/ )
 {
   updateState();
 }
@@ -1089,7 +1089,7 @@ void QtxWorkstackArea::onChildShown( QtxWorkstackChild* c )
   \brief Called when child widget container is hidden.
   \param c child widget container being hidden
 */
-void QtxWorkstackArea::onChildHidden( QtxWorkstackChild* c )
+void QtxWorkstackArea::onChildHidden( QtxWorkstackChild* /*c*/ )
 {
   updateState();
 }
@@ -1469,7 +1469,7 @@ bool QtxWorkstackChild::eventFilter( QObject* o, QEvent* e )
   \brief Called when child widget is destroyed.
   \param obj child widget being destroyed
 */
-void QtxWorkstackChild::onDestroyed( QObject* obj )
+void QtxWorkstackChild::onDestroyed( QObject* /*obj*/ )
 {
   deleteLater();
 }
index c0611c145db93c7f1137b1a4dada96bc80768504..c8cb067230773f4bfd64bed9532766ee2c94e66a 100644 (file)
@@ -297,7 +297,7 @@ void QtxWorkstackAction::setStatusTip( const int id, const QString& txt )
   \brief Process action activated by the user.
   \param type action ID
 */
-void QtxWorkstackAction::perform( const int type )
+void QtxWorkstackAction::perform( const int /*type*/ )
 {
   /*
   switch ( type )
index 5eb9bbf5df292a47fa41c14f5970066c3271f1c4..8802adb34bf0e8784e2641306cd1b65efbb3ac2c 100644 (file)
@@ -235,9 +235,8 @@ void QxScene_ViewWindow::onViewFitAll()
 /*!
     Set background of the viewport
 */
-void QxScene_ViewWindow::setBackgroundColor( const QColor& color )
+void QxScene_ViewWindow::setBackgroundColor( const QColor& /*color*/ )
 {
-       //GUI_UNUSED(color);
   DEBTRACE("QxScene_ViewWindow::setBackgroundColor");
 }
 
@@ -254,9 +253,8 @@ QColor QxScene_ViewWindow::backgroundColor() const
 /*!
   Custom resize event handler
 */
-void QxScene_ViewWindow::resizeEvent( QResizeEvent* theEvent )
+void QxScene_ViewWindow::resizeEvent( QResizeEvent* /*theEvent*/ )
 {
-       //GUI_UNUSED(theEvent);
   DEBTRACE("QxScene_ViewWindow::resizeEvent");
 }
 
index 05fbd7495381a065e0d361107e8875027f034900..7b6794056a9104c77eee0d67f5686d8e073f2dea 100644 (file)
@@ -82,7 +82,7 @@ class QXSCENE_EXPORT QxScene_ViewWindow : public SUIT_ViewWindow {
   void              onViewReset(); 
   
  protected:
-  void              resizeEvent( QResizeEvent* theEvent );
+  void              resizeEvent( QResizeEvent* /*theEvent*/ );
 
   QGraphicsScene*   _scene;
   QGraphicsView*    _sceneView;
index 8aa52f100f70c391c744c9932a43891bb55b2dc6..4a391e3484dcdf2d274c7897b69d253477590b52 100644 (file)
@@ -472,7 +472,7 @@ bool STD_Application::isPossibleToClose( bool& closePermanently )
   return true;
 }
 
-int STD_Application::closeChoice( const QString& docName )
+int STD_Application::closeChoice( const QString& /*docName*/ )
 {
   int answer = SUIT_MessageBox::question( desktop(), tr( "CLOSE_STUDY" ), tr( "CLOSE_QUESTION" ),
                                           SUIT_MessageBox::Save | SUIT_MessageBox::Discard | SUIT_MessageBox::Cancel,
@@ -487,7 +487,7 @@ int STD_Application::closeChoice( const QString& docName )
   return res;
 }
 
-bool STD_Application::closeAction( const int choice, bool& closePermanently )
+bool STD_Application::closeAction( const int choice, bool& /*closePermanently*/ )
 {
   bool res = true;
   switch( choice )
index def245c6ceab0f2905e790f18d38b41c6ad464db..4431d324c6160aa63bcfa30adf2ae8333e33fe29 100644 (file)
@@ -143,7 +143,7 @@ void SUIT_DataBrowser::setUpdateModified( const bool on )
   \param obj starting object for updating
   \param autoOpen if \c true automatically open branches
 */
-void SUIT_DataBrowser::updateTree( SUIT_DataObject* obj, const bool autoOpen )
+void SUIT_DataBrowser::updateTree( SUIT_DataObject* obj, const bool /*autoOpen*/ )
 {
   //GUI_UNUSED(autoOpen);
   SUIT_ProxyModel* m = qobject_cast<SUIT_ProxyModel*>( model() );
@@ -471,7 +471,7 @@ void SUIT_DataBrowser::onDblClicked( const QModelIndex& index )
   \brief Called when item specified by index is expanded.
   \internal
 */
-void SUIT_DataBrowser::onExpanded( const QModelIndex& index )
+void SUIT_DataBrowser::onExpanded( const QModelIndex& /*index*/ )
 {
   //GUI_UNUSED(index);
   if (myResizeOnExpandItem) {
index effb255ddffe6ae11d27ec081a123d66f67dbe11..9c7970b4b520dba57061ae3656944434edbdaac3 100644 (file)
@@ -1728,7 +1728,7 @@ QMimeData* SUIT_TreeModel::mimeData( const QModelIndexList& indexes ) const
 }
 
 bool SUIT_TreeModel::dropMimeData( const QMimeData* data, Qt::DropAction action,
-                                   int row, int column, const QModelIndex& parent )
+                                   int row, int /*column*/, const QModelIndex& parent )
 {
   //GUI_UNUSED(column);
   if ( action == Qt::IgnoreAction )
index 4f63308173d6c78aa967535e89886e6c8ec9a546..057e7ac9416772c8e87b738aa03e353c4a9df582 100644 (file)
@@ -454,7 +454,7 @@ void SUIT_ViewWindow::updateSyncViews()
 /*!
   "Synchronize View" action slot.
 */
-void SUIT_ViewWindow::onSynchronizeView( bool checked )
+void SUIT_ViewWindow::onSynchronizeView( bool /*checked*/ )
 {
   //GUI_UNUSED(checked);
   QAction* a = qobject_cast<QAction*>( sender() );
index 389596de381e20b775ca2263f9f01731841b4fc9..49e98cbac058150fb09a540442172119bca1d6dc 100644 (file)
@@ -54,7 +54,7 @@ int VTKViewer_POINT_SIZE = 5;
 int VTKViewer_LINE_WIDTH = 3;
 
 
-vtkStandardNewMacro(VTKViewer_Actor);
+vtkStandardNewMacro(VTKViewer_Actor)
 
 /*!
   Constructor
@@ -637,7 +637,7 @@ VTKViewer_Actor
 */
 void
 VTKViewer_Actor
-::SetMaterial(std::vector<vtkProperty*> theProps)
+::SetMaterial(std::vector<vtkProperty*> /*theProps*/)
 {
 }
 
@@ -770,4 +770,4 @@ vtkDataSet* VTKViewer_Actor::GetHighlightedDataSet() {
 
 
 
-vtkCxxSetObjectMacro(VTKViewer_Actor,PreviewProperty,vtkProperty);
+vtkCxxSetObjectMacro(VTKViewer_Actor,PreviewProperty,vtkProperty)
index fe6d2f0c10c899caca3bddd941d4daa937dcc28f..805eaca23dcb7958f39ba4f5f97a2d439d4da3e7 100644 (file)
@@ -76,7 +76,7 @@ class VTKVIEWER_EXPORT VTKViewer_Actor : public vtkLODActor
  public:
   static VTKViewer_Actor* New();
   
-  vtkTypeMacro(VTKViewer_Actor,vtkLODActor);
+  vtkTypeMacro(VTKViewer_Actor,vtkLODActor)
 
   //----------------------------------------------------------------------------
   //! Get its name
@@ -319,7 +319,7 @@ class VTKVIEWER_EXPORT VTKViewer_Actor : public vtkLODActor
   //! Is notified on enabling/disabling selection
   virtual
   void
-  EnableSelection( bool enable ) {}
+  EnableSelection( bool /*enable*/ ) {}
 
   //! Ask, if the descendant of the VTKViewer_Actor will implement its own highlight or not
   virtual
index 25eb9e81d1e3f9d2f01556308895c752d33bcb2e..449f25d31bebd68f4f8da79d04480684ea24b6b9 100644 (file)
@@ -49,7 +49,7 @@ public:
   /*! \fn vtkTypeMacro(VTKViewer_AppendFilter, vtkAppendFilter)
    *  \brief VTK type revision macros.
    */
-  vtkTypeMacro(VTKViewer_AppendFilter, vtkAppendFilter);
+  vtkTypeMacro(VTKViewer_AppendFilter, vtkAppendFilter)
 
   void SetDoMappingFlag(const bool theFlag);
 
index b497d52eda3ccea063e77550e38579eb5dd2621b..f6058d000e536463368090d45617cc7e8f1d5840 100644 (file)
@@ -33,7 +33,7 @@
 #include <vtkPolyData.h>
 #include <vtkCellArray.h>
 
-vtkStandardNewMacro(VTKViewer_CellCenters);
+vtkStandardNewMacro(VTKViewer_CellCenters)
 
 /*!
  * Class       : VTKViewer_CellCenters
index 05d0e010a54a330126f83b4305fff03457e8298d..b0b0ec848520fd6b192c9af565152515d9effbf4 100644 (file)
@@ -39,7 +39,7 @@
 class VTKVIEWER_EXPORT VTKViewer_CellCenters : public vtkCellCenters
 {
 public:
-  vtkTypeMacro(VTKViewer_CellCenters,vtkCellCenters);
+  vtkTypeMacro(VTKViewer_CellCenters,vtkCellCenters)
 
   static VTKViewer_CellCenters *New();
 
index 315c60e67c804cbbae278c8cc92d58584787f98d..c950608323de57b1d8897efb3042c189d882f67a 100644 (file)
@@ -28,4 +28,4 @@
 
 #include <vtkObjectFactory.h>
 
-vtkStandardNewMacro(VTKViewer_CellLocationsArray);
+vtkStandardNewMacro(VTKViewer_CellLocationsArray)
index d7869ed1886b958106029eab273347f119cca6f7..e3db50ac3d0a9c51bd8c0f3ad4c713fa4b1496fd 100644 (file)
@@ -39,7 +39,7 @@ struct VTKVIEWER_EXPORT VTKViewer_CellLocationsArray : TCellLocationsArray
 {
   static VTKViewer_CellLocationsArray* New();
   
-  vtkTypeMacro(VTKViewer_CellLocationsArray,TCellLocationsArray);
+  vtkTypeMacro(VTKViewer_CellLocationsArray,TCellLocationsArray)
 };
 
 #undef TCellLocationsArray
index 45878797ea90237cbd27bfe79856ebdda8d38a7d..e5862952df31d0c216ce6a67e9f2dc6c6b367940 100644 (file)
@@ -23,7 +23,7 @@
 #include <vtkDataSetSurfaceFilter.h>
 #include <vtkObjectFactory.h>
 
-vtkStandardNewMacro(VTKViewer_DataSetMapper);
+vtkStandardNewMacro(VTKViewer_DataSetMapper)
 
 //----------------------------------------------------------------------------
 VTKViewer_DataSetMapper::VTKViewer_DataSetMapper()
index 5cd12e23f0fce26bfecb59fa3b6e6516fdfe0e47..0b392acaa33e9d757ac1dfd57e08c34e9a992f2f 100644 (file)
@@ -47,7 +47,7 @@
 
 #define VTK_XVERSION (VTK_MAJOR_VERSION*10000+VTK_MINOR_VERSION*100+VTK_BUILD_VERSION)
 
-vtkStandardNewMacro(VTKViewer_ExtractUnstructuredGrid);
+vtkStandardNewMacro(VTKViewer_ExtractUnstructuredGrid)
 
 
 VTKViewer_ExtractUnstructuredGrid::VTKViewer_ExtractUnstructuredGrid():
@@ -287,9 +287,9 @@ inline int InsertCell(vtkUnstructuredGrid *theInput,
                       vtkIdTypeArray*& theFaces,
                       vtkIdTypeArray*& theFaceLocations,
                       vtkIdType theCellId,
-                      vtkIdList *theIdList,
+                      vtkIdList* /*theIdList*/,
                       bool theStoreMapping,
-                      vtkIdType theOutId,
+                      vtkIdType /*theOutId*/,
                       VTKViewer_ExtractUnstructuredGrid::TVectorId& theOut2InId/*,
                       VTKViewer_ExtractUnstructuredGrid::TMapId& theIn2OutId*/)
 {
@@ -346,7 +346,7 @@ inline void InsertPointCell(vtkCellArray *theConnectivity,
                             vtkIdType theCellId,
                             vtkIdList *theIdList,
                             bool theStoreMapping,
-                            vtkIdType theOutId
+                            vtkIdType /*theOutId*/
                             VTKViewer_ExtractUnstructuredGrid::TVectorId& theOut2InId/*,
                             VTKViewer_ExtractUnstructuredGrid::TMapId& theIn2OutId*/)
 {
index c64e28d70e1e60381a2bf1f707347d59b03cd662..64ff52fa04c27743459d67d7e874f25a3c38a526 100644 (file)
@@ -45,7 +45,7 @@ class VTKVIEWER_EXPORT VTKViewer_ExtractUnstructuredGrid : public vtkUnstructure
 {
 public:
   //! VTK type macros.
-  vtkTypeMacro( VTKViewer_ExtractUnstructuredGrid, vtkUnstructuredGridAlgorithm );
+  vtkTypeMacro( VTKViewer_ExtractUnstructuredGrid, vtkUnstructuredGridAlgorithm )
 
   //! \brief Construct with all types of clipping turned off.
   static VTKViewer_ExtractUnstructuredGrid *New();
index c7aa3ba3657fe580b778f8690efc01a8f178bc6f..4dd15b106f8a96c59bce2ef7f8a692ba115ab96c 100644 (file)
@@ -35,7 +35,7 @@
 
 class VTKViewer_Actor;
 
-DEFINE_STANDARD_HANDLE(VTKViewer_Filter, Standard_Transient);
+DEFINE_STANDARD_HANDLE(VTKViewer_Filter, Standard_Transient)
 
 /*
   Class       : VTKViewer_Filter
index d810958ce392a486219e125e2a6ad72d35acfdad..4b4ac0d632e89dce751cf23f091874563e72af32 100644 (file)
@@ -63,7 +63,7 @@ namespace
 }
 
 //==================================================================
-vtkStandardNewMacro(VTKViewer_FramedTextActor);
+vtkStandardNewMacro(VTKViewer_FramedTextActor)
 
 //==================================================================
 // function : VTKViewer_FramedTextActor
index 1999c5c772170990d3b063f69e2364c8d111f2d0..0035441a046cbe7c2b6d84bf6ff113dccc799a44 100644 (file)
@@ -41,7 +41,7 @@ public:
   enum LayoutType { Vertical = 0, Horizontal };
 
 public:
-  vtkTypeMacro(VTKViewer_FramedTextActor,vtkActor2D);
+  vtkTypeMacro(VTKViewer_FramedTextActor,vtkActor2D)
   static VTKViewer_FramedTextActor *New();
 
   virtual int                 RenderOpaqueGeometry(vtkViewport*);
index c273927ac245a4c8eb419f0b61c320d65131113a..996f443a35f5b3d9ab5ca910a058b8fc1ecb51b2 100644 (file)
@@ -92,7 +92,7 @@
 #endif
 ///////////////////////////////////////////////////////////////////////////////////////////////
 
-vtkStandardNewMacro(VTKViewer_GeometryFilter);
+vtkStandardNewMacro(VTKViewer_GeometryFilter)
 
 VTKViewer_GeometryFilter
 ::VTKViewer_GeometryFilter():
@@ -1229,7 +1229,7 @@ void
 VTKViewer_GeometryFilter
 ::InsertId( const vtkIdType theCellId,
             const vtkIdType theCellType,
-            TVectorId& theVTK2ObjIds,
+            TVectorId& /*theVTK2ObjIds*/,
             TMapOfVectorId& theDimension2VTK2ObjIds )
 {
   //theVTK2ObjIds.push_back( theCellId );
index 7f60f5fab53cf74a63a99aa12f695387eb8d1a86..9a641896f382353d592089a8f20b43940d8927e0 100644 (file)
@@ -48,7 +48,7 @@ public:
   /*! \fn vtkTypeMacro(VTKViewer_GeometryFilter, vtkGeometryFilter)
    *  \brief VTK type revision macros.
    */
-  vtkTypeMacro(VTKViewer_GeometryFilter, vtkGeometryFilter);
+  vtkTypeMacro(VTKViewer_GeometryFilter, vtkGeometryFilter)
   /*! \fn void SetInside(int theShowInside)
    * \brief Sets \a myShowInside flag. \a myShowInside is changed, call this->Modified().
    * \param theShowInside - used for changing value of \a myShowInside variable.
@@ -112,7 +112,7 @@ public:
 
   static void InsertId( const vtkIdType theCellId,
                         const vtkIdType theCellType,
-                        TVectorId& theVTK2ObjIds,
+                        TVectorId& /*theVTK2ObjIds*/,
                         TMapOfVectorId& theDimension2VTK2ObjIds );
 
 protected:
index cd67ed70ce09de02dcef5b84291edb8f600d644d..bdc3eaf14f24bf8132de6e9109f59283e5ee08a6 100644 (file)
@@ -74,7 +74,7 @@ static int GetEdgeId(vtkPicker *thePicker, SALOME_Actor *theActor, int theObjId)
 }
 */
 
-vtkStandardNewMacro(VTKViewer_InteractorStyle);
+vtkStandardNewMacro(VTKViewer_InteractorStyle)
 
 
 /*!Constructor.*/
@@ -1221,7 +1221,7 @@ void VTKViewer_InteractorStyle::OnSelectionModeChanged()
 /*! called when user moves mouse inside viewer window and there is no active viewer operation \n
  * (!put necessary processing here!)
  */
-void VTKViewer_InteractorStyle::onCursorMove(QPoint mousePos) {
+void VTKViewer_InteractorStyle::onCursorMove(QPoint /*mousePos*/) {
   // processing highlighting
 //  SUIT_Study* anActiveStudy = SUIT_Application::getDesktop()->getActiveStudy();
 //  SALOME_Selection* Sel = SALOME_Selection::Selection( anActiveStudy->getSelection() );
index 5ecd8f23b147c58b8a13c9fecf385b7faafcbd0b..d6111f78e736e62eadd13c830e0d774f06cbed35 100644 (file)
@@ -72,7 +72,7 @@ class VTKVIEWER_EXPORT VTKViewer_InteractorStyle : public QObject, public vtkInt
 {
  public:
   static VTKViewer_InteractorStyle *New();
-  vtkTypeMacro(VTKViewer_InteractorStyle, vtkInteractorStyle);
+  vtkTypeMacro(VTKViewer_InteractorStyle, vtkInteractorStyle)
 
   virtual void SetInteractor(vtkRenderWindowInteractor *theInteractor);
   void setViewWnd(VTKViewer_ViewWindow* theViewWnd);
@@ -152,7 +152,7 @@ class VTKVIEWER_EXPORT VTKViewer_InteractorStyle : public QObject, public vtkInt
   void startRotate();
   void startFitArea();
   void startSpin();
-  void SetTDxStyle(vtkTDxInteractorStyle *tdxStyle) {}
+  void SetTDxStyle(vtkTDxInteractorStyle* /*tdxStyle*/) {}
   bool needsRedrawing();
 
  protected:
@@ -161,7 +161,7 @@ class VTKVIEWER_EXPORT VTKViewer_InteractorStyle : public QObject, public vtkInt
   virtual void onStartOperation();
   virtual void onFinishOperation();
   virtual void onOperation(QPoint mousePos);
-  virtual void onCursorMove(QPoint mousePos);
+  virtual void onCursorMove(QPoint /*mousePos*/);
   virtual void setCursor(const int operation);
 
   void drawRect();
index c8661cdbe7dc6aebefa72ec3aeca94eda830c9de..76272dbd4445be5901b71619e55499b6a9e46cb8 100644 (file)
@@ -66,7 +66,7 @@ public:
 
 public:
   static VTKViewer_PolyDataMapper* New();
-  vtkTypeMacro( VTKViewer_PolyDataMapper, MAPPER_SUPERCLASS );
+  vtkTypeMacro( VTKViewer_PolyDataMapper, MAPPER_SUPERCLASS )
 
   //! Set point marker enabled
   void SetMarkerEnabled( bool );
index 63e9985dd60369178490fe02b986f3e3e2e6cb67..5dd07295dfad7349b030220e370cea836670bc4c 100644 (file)
@@ -163,16 +163,16 @@ public:
 
   void setViewWindow( VTKViewer_ViewWindow* theViewWnd );
 
-  void setCellData(const int& theIndex,
-                   VTKViewer_Actor* theMapActor,
-                   VTKViewer_Actor* theActor) {}
-  void setEdgeData(const int& theCellIndex,
-                   VTKViewer_Actor* theMapActor,
-                   const int& theEdgeIndex,
-                   VTKViewer_Actor* theActor ) {} //NB
-  void setPointData(const int& theIndex,
-                    VTKViewer_Actor* theMapActor,
-                    VTKViewer_Actor* theActor) {}
+  void setCellData(const int& /*theIndex*/,
+                   VTKViewer_Actor* /*theMapActor*/,
+                   VTKViewer_Actor* /*theActor*/) {}
+  void setEdgeData(const int& /*theCellIndex*/,
+                   VTKViewer_Actor* /*theMapActor*/,
+                   const int& /*theEdgeIndex*/,
+                   VTKViewer_Actor* /*theActor*/ ) {} //NB
+  void setPointData(const int& /*theIndex*/,
+                    VTKViewer_Actor* /*theMapActor*/,
+                    VTKViewer_Actor* /*theActor*/) {}
 
   typedef void (*TUpdateActor)(const TColStd_IndexedMapOfInteger& theMapIndex,
                                VTKViewer_Actor* theMapActor,
index 798114598b52d04f466e93ed449cf8473ec78af5..f2d60c43f80fcbc1df50075e10ddb25492898eba 100644 (file)
@@ -35,7 +35,7 @@ class VTKVIEWER_EXPORT VTKViewer_Transform : public vtkTransform
 public:
   /*!Create new instance of VTKViewer_Transform.*/
   static VTKViewer_Transform *New();
-  vtkTypeMacro( VTKViewer_Transform, vtkTransform );
+  vtkTypeMacro( VTKViewer_Transform, vtkTransform )
 
   int  IsIdentity();
   //merge with V2_2_0_VISU_improvements:void SetScale( float theScaleX, float theScaleY, float theScaleZ );
index 916b4b1387578d91f59c941f668ba7426f1a75ee..c2fc87112f6fde70a4e4b900c52ca6070ea8a582 100644 (file)
@@ -35,7 +35,7 @@ class VTKVIEWER_EXPORT VTKViewer_TransformFilter : public vtkTransformFilter
 public:
   /*!Create new instance of VTKViewer_TransformFilter.*/
   static VTKViewer_TransformFilter *New();
-  vtkTypeMacro(VTKViewer_TransformFilter,vtkTransformFilter);
+  vtkTypeMacro(VTKViewer_TransformFilter,vtkTransformFilter)
 
 protected:
   /*!Constructor.*/
index e2fe380d6a50f689e2e87c3ae48edacbf5ffd7cf..98718ac8c2b3920957686f9fd9fb732a7698d5ba 100644 (file)
@@ -65,7 +65,7 @@ class VTKVIEWER_EXPORT VTKViewer_UnScaledActor: public vtkFollower
   
 public:
   
-  vtkTypeMacro(VTKViewer_UnScaledActor,vtkFollower);
+  vtkTypeMacro(VTKViewer_UnScaledActor,vtkFollower)
   
   /*!Create new instance of VTKViewer_UnScaledActor.*/
   static VTKViewer_UnScaledActor *New();
@@ -91,7 +91,7 @@ class VTKVIEWER_EXPORT VTKViewer_LineActor: public vtkFollower
   
 public:
   /*!vtk type macros.*/
-  vtkTypeMacro(VTKViewer_LineActor,vtkFollower);
+  vtkTypeMacro(VTKViewer_LineActor,vtkFollower)
   
   /*!Create new instance of VTKViewer_LineActor.*/
   static VTKViewer_LineActor *New();
@@ -155,7 +155,7 @@ protected:
 
 public:
   /*!vtk type macros.*/
-  vtkTypeMacro(VTKViewer_Trihedron,vtkObject);
+  vtkTypeMacro(VTKViewer_Trihedron,vtkObject)
   
   /*!Create new instance of VTKViewer_Trihedron.*/
   static VTKViewer_Trihedron *New();
@@ -232,7 +232,7 @@ protected:
   
 public:
   /*!vtk type macros.*/
-  vtkTypeMacro(VTKViewer_Axis,vtkObject);
+  vtkTypeMacro(VTKViewer_Axis,vtkObject)
   
   /*! Add to \a theRenderer actors: myLineActor,myLabelActor,myArrowActor
    */
index f3559b4151b491fe87fd1eaf45ef6568fdcc9731..d911195e3f4e0efe1e6eabd5ad7394c8e9ee3bf1 100644 (file)
@@ -102,7 +102,7 @@ void ViewerTools_FontWidgetBase::onColor()
 }
 
 void ViewerTools_FontWidgetBase::SetData( const QColor& theColor,
-                                          const int theFamily,
+                                          const int /*theFamily*/,
                                           const bool theBold,
                                           const bool theItalic,
                                           const bool theShadow )
@@ -116,7 +116,7 @@ void ViewerTools_FontWidgetBase::SetData( const QColor& theColor,
 }
 
 void ViewerTools_FontWidgetBase::GetData( QColor& theColor,
-                                          int& theFamily,
+                                          int& /*theFamily*/,
                                           bool& theBold,
                                           bool& theItalic,
                                           bool& theShadow ) const
index dfea9083f450c73f10f97ecd499e539d0d903aff..b63a69e35536e60959504faeb00339995dbd381e 100644 (file)
@@ -47,7 +47,7 @@ namespace
         throw CURVEPLOT::Exception(msg);
       }
   }
-};
+}
 
 namespace CURVEPLOT
 {