ctkDoubleSliderPlugin.cpp

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Library:   CTK
00004  
00005   Copyright (c) 2010  Kitware Inc.
00006 
00007   Licensed under the Apache License, Version 2.0 (the "License");
00008   you may not use this file except in compliance with the License.
00009   You may obtain a copy of the License at
00010 
00011       http://www.commontk.org/LICENSE
00012 
00013   Unless required by applicable law or agreed to in writing, software
00014   distributed under the License is distributed on an "AS IS" BASIS,
00015   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00016   See the License for the specific language governing permissions and
00017   limitations under the License.
00018  
00019 =========================================================================*/
00020 
00021 // CTK includes
00022 #include "ctkDoubleSliderPlugin.h"
00023 #include "ctkDoubleSlider.h"
00024 
00025 // --------------------------------------------------------------------------
00026 ctkDoubleSliderPlugin::ctkDoubleSliderPlugin(QObject *_parent)
00027   : QObject(_parent)
00028 {
00029 }
00030 
00031 // --------------------------------------------------------------------------
00032 QWidget *ctkDoubleSliderPlugin::createWidget(QWidget *_parent)
00033 {
00034   ctkDoubleSlider* _widget = new ctkDoubleSlider(Qt::Horizontal, _parent);
00035   return _widget;
00036 }
00037 
00038 // --------------------------------------------------------------------------
00039 QString ctkDoubleSliderPlugin::domXml() const
00040 {
00041   return "<widget class=\"ctkDoubleSlider\" name=\"CTKSlider\">\n"
00042     "<property name=\"orientation\">\n"
00043     "  <enum>Qt::Horizontal</enum>\n"
00044     " </property>\n"
00045     "</widget>\n";
00046 }
00047 
00048 // --------------------------------------------------------------------------
00049 QIcon ctkDoubleSliderPlugin::icon() const
00050 {
00051   return QIcon(":/Icons/hslider.png");
00052 }
00053 
00054 // --------------------------------------------------------------------------
00055 QString ctkDoubleSliderPlugin::includeFile() const
00056 {
00057   return "ctkDoubleSlider.h";
00058 }
00059 
00060 // --------------------------------------------------------------------------
00061 bool ctkDoubleSliderPlugin::isContainer() const
00062 {
00063   return false;
00064 }
00065 
00066 // --------------------------------------------------------------------------
00067 QString ctkDoubleSliderPlugin::name() const
00068 {
00069   return "ctkDoubleSlider";
00070 }
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines