|
Slicer 4.2
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
|
00001 /*============================================================================== 00002 00003 Program: 3D Slicer 00004 00005 Copyright (c) Kitware Inc. 00006 00007 See COPYRIGHT.txt 00008 or http://www.slicer.org/copyright/copyright.txt for details. 00009 00010 Unless required by applicable law or agreed to in writing, software 00011 distributed under the License is distributed on an "AS IS" BASIS, 00012 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00013 See the License for the specific language governing permissions and 00014 limitations under the License. 00015 00016 This file was originally developed by Julien Finet, Kitware Inc. 00017 and was partially funded by NIH grant 3P41RR013218-12S1 00018 00019 ==============================================================================*/ 00020 00021 #ifndef __qSlicerStyle_h 00022 #define __qSlicerStyle_h 00023 00024 // Qt includes 00025 //#include <QProxyStyle> 00026 00027 // CTK includes 00028 #include <ctkProxyStyle.h> 00029 00030 // Slicer includes 00031 #include "qSlicerBaseQTGUIExport.h" 00032 00033 class Q_SLICER_BASE_QTGUI_EXPORT qSlicerStyle : public ctkProxyStyle 00034 { 00035 public: 00037 typedef ctkProxyStyle Superclass; 00038 00040 qSlicerStyle(); 00041 virtual ~qSlicerStyle(); 00042 00043 virtual SubControl hitTestComplexControl(ComplexControl cc, const QStyleOptionComplex *opt, 00044 const QPoint &pt, const QWidget *widget) const; 00045 00046 virtual int pixelMetric(PixelMetric metric, const QStyleOption * option = 0, 00047 const QWidget * widget = 0)const; 00048 00049 virtual QRect subControlRect(ComplexControl control, const QStyleOptionComplex *option, 00050 SubControl subControl, const QWidget *widget) const; 00051 virtual QPalette standardPalette()const; 00052 virtual int styleHint(StyleHint hint, const QStyleOption *opt, const QWidget *widget, 00053 QStyleHintReturn *returnData) const; 00054 }; 00055 00056 #endif 00057
1.7.4