ctkWidgetsPlugins.h

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 #ifndef __ctkWidgetsPlugins_h
00022 #define __ctkWidgetsPlugins_h
00023 
00024 // Qt includes
00025 #include <QDesignerCustomWidgetCollectionInterface>
00026 
00027 // CTK includes
00028 #include "CTKWidgetsPluginsExport.h"
00029 #include "ctkCollapsibleButtonPlugin.h"
00030 #include "ctkCollapsibleGroupBoxPlugin.h"
00031 #include "ctkColorPickerButtonPlugin.h"
00032 #include "ctkCoordinatesWidgetPlugin.h"
00033 #include "ctkDirectoryButtonPlugin.h"
00034 #include "ctkDoubleRangeSliderPlugin.h"
00035 #include "ctkDoubleSliderPlugin.h"
00036 #include "ctkDynamicSpacerPlugin.h"
00037 #include "ctkFittedTextBrowserPlugin.h"
00038 #include "ctkMatrixWidgetPlugin.h"
00039 #include "ctkMenuButtonPlugin.h"
00040 #include "ctkRangeSliderPlugin.h"
00041 #include "ctkRangeWidgetPlugin.h"
00042 #include "ctkTitleComboBoxPlugin.h"
00043 #include "ctkTreeComboBoxPlugin.h"
00044 #include "ctkSliderSpinBoxWidgetPlugin.h"
00045 
00047 class CTK_WIDGETS_PLUGINS_EXPORT ctkWidgetsPlugins : public QObject,
00048       public QDesignerCustomWidgetCollectionInterface
00049 {
00050   Q_OBJECT
00051   Q_INTERFACES(QDesignerCustomWidgetCollectionInterface);
00052 
00053 public:
00054   QList<QDesignerCustomWidgetInterface*> customWidgets() const
00055     {
00056     QList<QDesignerCustomWidgetInterface *> plugins;
00057     plugins << new ctkCollapsibleButtonPlugin
00058             << new ctkCollapsibleGroupBoxPlugin
00059             << new ctkColorPickerButtonPlugin
00060             << new ctkCoordinatesWidgetPlugin
00061             << new ctkDirectoryButtonPlugin
00062             << new ctkDoubleRangeSliderPlugin
00063             << new ctkDoubleSliderPlugin
00064             << new ctkDynamicSpacerPlugin
00065             << new ctkFittedTextBrowserPlugin
00066             << new ctkMatrixWidgetPlugin
00067             << new ctkMenuButtonPlugin
00068             << new ctkRangeSliderPlugin
00069             << new ctkRangeWidgetPlugin
00070             << new ctkTitleComboBoxPlugin
00071             << new ctkTreeComboBoxPlugin
00072             << new ctkSliderSpinBoxWidgetPlugin;
00073     return plugins;
00074     }
00075 };
00076 
00077 #endif
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines