/*========================================================================= Library: CTK Copyright (c) Kitware Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.txt Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. =========================================================================*/ #ifndef __ctkCheckBox_h #define __ctkCheckBox_h // QT includes #include // CTK includes #include "ctkWidgetsExport.h" class ctkCheckBoxPrivate; /// ctkCheckBox is an advanced QCheckBox that gives more control /// over its look and feel. /// We can change the indicator check box by a new QIcon, with two mode On/Off. class CTK_WIDGETS_EXPORT ctkCheckBox : public QCheckBox { Q_OBJECT Q_PROPERTY(QIcon checkIcon READ checkIcon WRITE setCheckIcon) public: typedef QCheckBox Superclass; ctkCheckBox(QWidget *_parent); virtual ~ctkCheckBox(); void setCheckIcon(const QIcon& newIcon); QIcon checkIcon() const; protected: QScopedPointer d_ptr; private: Q_DECLARE_PRIVATE(ctkCheckBox); Q_DISABLE_COPY(ctkCheckBox); }; #endif