Salome HOME
0022781: [CEA 1281] Preferences of colors and textures of clipping planes
[modules/gui.git] / src / Style / Style_Salome.h
index 75659e9ac5901b90eae46a4320cf6fe2f9106cad..8a8f90f75416300a5c1fd3d3f4bc4f5ff70b9871 100644 (file)
@@ -1,24 +1,22 @@
-//  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2014  CEA/DEN, EDF R&D, OPEN CASCADE
 //
-//  Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
 //
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of the GNU Lesser General Public
-//  License as published by the Free Software Foundation; either
-//  version 2.1 of the License.
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Lesser General Public License for more details.
 //
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 //
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
-//
-//  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
+
 // File   : Style_Salome.h
 // Author : Natalia Ermolaeva, Open CASCADE S.A.S.
 //
@@ -60,35 +58,35 @@ public:
   virtual void        polish( QWidget* );
   virtual void        unpolish( QWidget* );
   virtual void        drawComplexControl( ComplexControl, const QStyleOptionComplex*,
-                                         QPainter*, const QWidget* = 0 ) const;
+                                          QPainter*, const QWidget* = 0 ) const;
   
   virtual void        drawControl( ControlElement, const QStyleOption*, QPainter*, const QWidget* ) const;
   virtual void        drawPrimitive( PrimitiveElement, const QStyleOption*,
-                                    QPainter*, const QWidget* = 0 ) const;
+                                     QPainter*, const QWidget* = 0 ) const;
   virtual int         pixelMetric( PixelMetric, const QStyleOption* = 0,
-                                  const QWidget* = 0 ) const;
+                                   const QWidget* = 0 ) const;
   virtual QSize       sizeFromContents ( ContentsType, const QStyleOption*,
-                                        const QSize&, const QWidget* = 0 ) const;
+                                         const QSize&, const QWidget* = 0 ) const;
   virtual QPixmap     standardPixmap( StandardPixmap, const QStyleOption*,
-                                     const QWidget* = 0) const;
+                                      const QWidget* = 0) const;
   virtual int         styleHint( StyleHint, const QStyleOption* = 0,
-                                const QWidget* = 0, QStyleHintReturn* = 0 ) const;
+                                 const QWidget* = 0, QStyleHintReturn* = 0 ) const;
   virtual QRect       subControlRect( ComplexControl, const QStyleOptionComplex*,
-                                     SubControl, const QWidget* = 0 ) const;
+                                      SubControl, const QWidget* = 0 ) const;
   virtual QRect       subElementRect( SubElement, const QStyleOption*, const QWidget* = 0 ) const;
 
 protected slots:
   QIcon               standardIconImplementation( StandardPixmap, const QStyleOption* = 0,
-                                                 const QWidget* = 0 ) const;
+                                                  const QWidget* = 0 ) const;
 private:
   void                updatePaletteColors();
   void                updateAllWidgets( QApplication* );
   bool                hasHover() const;
   void                drawHoverRect( QPainter*, const QRect&, const QColor&, const double,
-                                    const int, const bool ) const;
+                                     const int, const bool ) const;
   void                drawHandle( QPainter*, const QRect&, bool, bool = true ) const;
   void                drawBackground( QPainter*, const QRect&, const QColor&, const bool,
-                                     const bool = false, const bool = true ) const;
+                                      const bool = false, const bool = true ) const;
   void                drawBorder( QPainter*, const QRect&, bool ) const;
 
   QString             titleText( const QString&, const int, const int, QFont& ) const;