Seamly2D
Code documentation
vabstractpropertyfactory.h
Go to the documentation of this file.
1
/************************************************************************
2
**
3
** @file vabstractpropertyfactory.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 VABSTRACTPROPERTYFACTORY_H
22
#define VABSTRACTPROPERTYFACTORY_H
23
24
#include "../vmisc/diagnostic.h"
25
#include <QObject>
26
27
namespace
VPE
28
{
29
30
class
VProperty;
31
32
QT_WARNING_PUSH
33
QT_WARNING_DISABLE_CLANG(
"-Wweak-vtables"
)
34
35
class
VAbstractPropertyFactory
36
{
37
public
:
38
//! Empty virtual destructor
39
virtual
~VAbstractPropertyFactory
() {}
40
41
//! Creates a new property of a certain type and assigns a name and description (otionally)
42
//! \param type The type of the property as string
43
//! \param name The property's name
44
//! \return Returns the created property or NULL if it couldn't be be created
45
virtual
VProperty
*
createProperty
(
const
QString& type,
const
QString &name) = 0;
46
};
47
48
QT_WARNING_POP
49
50
}
51
52
#endif
// VABSTRACTPROPERTYFACTORY_H
VPE::VAbstractPropertyFactory
Definition:
vabstractpropertyfactory.h:36
VPE::VAbstractPropertyFactory::~VAbstractPropertyFactory
virtual ~VAbstractPropertyFactory()
Empty virtual destructor.
Definition:
vabstractpropertyfactory.h:39
VPE::VAbstractPropertyFactory::createProperty
virtual VProperty * createProperty(const QString &type, const QString &name)=0
Creates a new property of a certain type and assigns a name and description (otionally)
VPE::VProperty
Definition:
vproperty.h:57
QT_WARNING_POP
Definition:
union_tool.cpp:127
VPE
Definition:
lineweight_property.h:46
src
libs
vpropertyexplorer
vabstractpropertyfactory.h
Generated by
1.9.1