2014-09-10 17:27:45 +02:00
|
|
|
/************************************************************************
|
|
|
|
**
|
|
|
|
** @file vstandardpropertyfactory.h
|
|
|
|
** @author hedgeware <internal(at)hedgeware.net>
|
|
|
|
** @date
|
|
|
|
**
|
|
|
|
** @brief
|
|
|
|
** @copyright
|
|
|
|
** All rights reserved. This program and the accompanying materials
|
|
|
|
** are made available under the terms of the GNU Lesser General Public License
|
|
|
|
** (LGPL) version 2.1 which accompanies this distribution, and is available at
|
|
|
|
** http://www.gnu.org/licenses/lgpl-2.1.html
|
|
|
|
**
|
|
|
|
** This library is distributed in the hope that it will be useful,
|
|
|
|
** but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
** Lesser General Public License for more details.
|
|
|
|
**
|
|
|
|
*************************************************************************/
|
|
|
|
|
|
|
|
#ifndef VASTANDARDPROPERTYFACTORY_H
|
|
|
|
#define VASTANDARDPROPERTYFACTORY_H
|
|
|
|
|
2016-08-08 13:44:49 +02:00
|
|
|
#include <qcompilerdetection.h>
|
|
|
|
#include <QString>
|
|
|
|
|
2014-09-10 17:27:45 +02:00
|
|
|
#include "vabstractpropertyfactory.h"
|
2016-08-08 13:44:49 +02:00
|
|
|
#include "vpropertyexplorer_global.h"
|
2014-09-10 17:27:45 +02:00
|
|
|
|
2014-09-10 19:57:08 +02:00
|
|
|
namespace VPE
|
|
|
|
{
|
2014-09-10 17:27:45 +02:00
|
|
|
|
|
|
|
class VPropertyFactoryManager;
|
|
|
|
|
|
|
|
//! The standard property factory is able to create all the properties that are included in VPropertyExplorer
|
|
|
|
//! by default.
|
|
|
|
class VPROPERTYEXPLORERSHARED_EXPORT VStandardPropertyFactory : public VAbstractPropertyFactory
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
//! Constructor
|
|
|
|
VStandardPropertyFactory();
|
|
|
|
|
|
|
|
//! Constructor
|
|
|
|
//! \param manager Registers this factory at the manager for all it's types
|
2015-10-12 13:52:48 +02:00
|
|
|
explicit VStandardPropertyFactory(VPropertyFactoryManager* manager);
|
2014-09-10 17:27:45 +02:00
|
|
|
|
|
|
|
//! Creates a new property of a certain type and assigns a name and description (otionally)
|
|
|
|
//! \param type The type of the property as string
|
|
|
|
//! \return Returns the created property or NULL if it couldn't be be created
|
2018-06-26 14:53:48 +02:00
|
|
|
Q_REQUIRED_RESULT virtual VProperty* createProperty(const QString& type, const QString &name) override;
|
2014-09-10 17:27:45 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // VASTANDARDPROPERTYFACTORY_H
|