ctkCollapsibleGroupBoxPlugin.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 // Qt includes
00022 #include <QDebug>
00023 
00024 // CTK includes
00025 #include "ctkCollapsibleGroupBoxPlugin.h"
00026 #include "ctkCollapsibleGroupBox.h"
00027 
00028 // --------------------------------------------------------------------------
00029 ctkCollapsibleGroupBoxPlugin::ctkCollapsibleGroupBoxPlugin(QObject *_parent) : QObject(_parent)
00030 {
00031 }
00032 
00033 // --------------------------------------------------------------------------
00034 QWidget *ctkCollapsibleGroupBoxPlugin::createWidget(QWidget *_parent)
00035 {
00036   ctkCollapsibleGroupBox* _widget = new ctkCollapsibleGroupBox(_parent);
00037   return _widget;
00038 }
00039 
00040 // --------------------------------------------------------------------------
00041 QString ctkCollapsibleGroupBoxPlugin::domXml() const
00042 {
00043   return "<widget class=\"ctkCollapsibleGroupBox\" \
00044           name=\"CTKCollapsibleGroupBox\">\n"
00045           " <property name=\"geometry\">\n"
00046           "  <rect>\n"
00047           "   <x>0</x>\n"
00048           "   <y>0</y>\n"
00049           "   <width>300</width>\n"
00050           "   <height>100</height>\n"
00051           "  </rect>\n"
00052           " </property>\n"
00053           " <property name=\"title\">"
00054           "  <string>GroupBox</string>"
00055           " </property>"
00056           "</widget>\n";
00057 }
00058 
00059 // --------------------------------------------------------------------------
00060 QIcon ctkCollapsibleGroupBoxPlugin::icon() const
00061 {
00062   return QIcon(":/Icons/groupboxcollapsible.png");
00063 }
00064 
00065 // --------------------------------------------------------------------------
00066 QString ctkCollapsibleGroupBoxPlugin::includeFile() const
00067 {
00068   return "ctkCollapsibleGroupBox.h";
00069 }
00070 
00071 // --------------------------------------------------------------------------
00072 bool ctkCollapsibleGroupBoxPlugin::isContainer() const
00073 {
00074   return true;
00075 }
00076 
00077 // --------------------------------------------------------------------------
00078 QString ctkCollapsibleGroupBoxPlugin::name() const
00079 {
00080   return "ctkCollapsibleGroupBox";
00081 }
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines