Seamly2D
Code documentation
vstandardpropertyfactory.h
Go to the documentation of this file.
1 /************************************************************************
2  **
3  ** @file vstandardpropertyfactory.h
4  ** @author hedgeware <internal(at)hedgeware.net>
5  ** @date
6  **
7  ** @brief
8  ** @copyright
9  ** All rights reserved. This program and the accompanying materials
10  ** are made available under the terms of the GNU Lesser General Public License
11  ** (LGPL) version 2.1 which accompanies this distribution, and is available at
12  ** http://www.gnu.org/licenses/lgpl-2.1.html
13  **
14  ** This library is distributed in the hope that it will be useful,
15  ** but WITHOUT ANY WARRANTY; without even the implied warranty of
16  ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  ** Lesser General Public License for more details.
18  **
19  *************************************************************************/
20 
21 #ifndef VASTANDARDPROPERTYFACTORY_H
22 #define VASTANDARDPROPERTYFACTORY_H
23 
24 #include <qcompilerdetection.h>
25 #include <QString>
26 
28 
29 namespace VPE
30 {
31 
32 class VPropertyFactoryManager;
33 
34 //! The standard property factory is able to create all the properties that are included in VPropertyExplorer
35 //! by default.
37 {
38 public:
39  //! Constructor
41 
42  //! Constructor
43  //! \param manager Registers this factory at the manager for all it's types
45 
46  //! Creates a new property of a certain type and assigns a name and description (otionally)
47  //! \param type The type of the property as string
48  //! \return Returns the created property or NULL if it couldn't be be created
49  Q_REQUIRED_RESULT virtual VProperty* createProperty(const QString& type, const QString &name) Q_DECL_OVERRIDE;
50 };
51 
52 }
53 
54 #endif // VASTANDARDPROPERTYFACTORY_H
The standard property factory is able to create all the properties that are included in VPropertyExpl...
virtual Q_REQUIRED_RESULT VProperty * createProperty(const QString &type, const QString &name) Q_DECL_OVERRIDE
Creates a new property of a certain type and assigns a name and description (otionally)