X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FStyle%2FStyle_Salome.h;h=8a8f90f75416300a5c1fd3d3f4bc4f5ff70b9871;hb=782de26fa93b9fb5edc9854cdda4a77b03c92175;hp=75659e9ac5901b90eae46a4320cf6fe2f9106cad;hpb=1c889394b028b786898a995d38c07c8f3d564837;p=modules%2Fgui.git diff --git a/src/Style/Style_Salome.h b/src/Style/Style_Salome.h index 75659e9ac..8a8f90f75 100644 --- a/src/Style/Style_Salome.h +++ b/src/Style/Style_Salome.h @@ -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;