NCL Composer  0.1.5
 All Classes Functions Variables Pages
PropertiesViewFactory.h
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 #ifndef PROPERTIESVIEW_H
19 #define PROPERTIESVIEW_H
20 
21 #include "PropertiesView_global.h"
22 #include "PropertiesViewPlugin.h"
23 
24 #include <core/extensions/IPluginFactory.h>
25 using namespace composer::extension;
26 
31 class PropertiesViewFactory : public QObject,
32  public IPluginFactory
33 {
34  Q_OBJECT
35  Q_INTERFACES(IPluginFactory)
36 
37  public:
42 
47 
53  IPlugin* createPluginInstance();
54 
60  void releasePluginInstance(IPlugin *);
61 
67  QString id() const;
68 
74  QString name() const;
75 
81  QIcon icon() const;
82 
88  QString version() { return NCLCOMPOSER_PLUGINS_VERSION; }
95  QString compatVersion() {return "0.1";}
101  QString vendor() {return "Telemidia Lab";}
107  QString copyright() {return "Telemidia/PUC-Rio";}
114  QString license() {return "LGPL";}
115 
121  QString description() {return tr("Property View shows the attributes "
122  "of a current selected entity and "
123  "enables the user to change its "
124  "values.");}
125 
126  QString url() {return "http://composer.telemidia.puc-rio.br/debug";}
127 
128  QString category() {return "NCL";}
129 
130 };
131 
132 #endif // DEBUGCONSOLE_H