NCL Composer  0.1.5
 All Classes Functions Variables Pages
NCLTextEditorQtDesignerPlugin.cpp
1 /*
2  * Copyright 2011 TeleMidia/PUC-Rio.
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library. If not, see
16  * <http://www.gnu.org/licenses/>.
17  */
18 #include "NCLTextEditorQtDesignerPlugin.h"
19 
20 NCLTextEditorPlugin::NCLTextEditorPlugin()
21 {
22 }
23 
24 QString NCLTextEditorPlugin::name() const
25 {
26  return "NCLTextEditor";
27 }
28 
29 QString NCLTextEditorPlugin::group() const
30 {
31  return "Input";
32 }
33 
34 QString NCLTextEditorPlugin::toolTip() const
35 {
36  return "NCL Text Editor Widget";
37 }
38 
39 QWidget* NCLTextEditorPlugin::createWidget (QWidget* parent)
40 {
41  return new NCLTextEditor(parent);
42 }
43 
44 QString NCLTextEditorPlugin::includeFile() const
45 {
46  return "NCLTextEditor.h";
47 }
48 
49 QIcon NCLTextEditorPlugin::icon() const
50 {
51  return QIcon();
52 }
53 
54 QString NCLTextEditorPlugin::whatsThis() const
55 {
56  return "A widget to create and edit a NCL file";
57 }
58 
59 bool NCLTextEditorPlugin::isContainer() const
60 {
61  return false;
62 }
63 
64 
65 Q_EXPORT_PLUGIN2(ncltexteditorplugin, NCLTextEditorPlugin)