2015-04-04 20:06:49 +02:00
|
|
|
#include "guidededitorelement.h"
|
2015-09-06 18:57:18 +02:00
|
|
|
#include <QString>
|
2015-03-22 19:41:59 +01:00
|
|
|
|
2015-09-06 18:57:18 +02:00
|
|
|
GuidedEditorElement::GuidedEditorElement(QObject *parent) : QObject(parent)
|
2015-03-22 19:41:59 +01:00
|
|
|
{
|
|
|
|
|
2015-09-06 18:57:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
GuidedEditorElement::~GuidedEditorElement()
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
QString GuidedEditorElement::getTitle() const
|
|
|
|
{
|
|
|
|
return title;
|
|
|
|
}
|
|
|
|
|
|
|
|
void GuidedEditorElement::setTitle(const QString &value)
|
|
|
|
{
|
|
|
|
title = value;
|
|
|
|
}
|
|
|
|
|
|
|
|
QString GuidedEditorElement::getDescription() const
|
|
|
|
{
|
|
|
|
return description;
|
|
|
|
}
|
|
|
|
|
|
|
|
void GuidedEditorElement::setDescription(const QString &value)
|
|
|
|
{
|
|
|
|
description = value;
|
|
|
|
}
|
|
|
|
|
|
|
|
QString GuidedEditorElement::getExample() const
|
|
|
|
{
|
|
|
|
return example;
|
|
|
|
}
|
|
|
|
|
|
|
|
void GuidedEditorElement::setExample(const QString &value)
|
|
|
|
{
|
|
|
|
example = value;
|
|
|
|
}
|
|
|
|
|
|
|
|
QString GuidedEditorElement::getSyntaxregex() const
|
|
|
|
{
|
|
|
|
return syntaxregex;
|
|
|
|
}
|
2015-03-22 19:41:59 +01:00
|
|
|
|
2015-09-06 18:57:18 +02:00
|
|
|
void GuidedEditorElement::setSyntaxregex(const QString &value)
|
|
|
|
{
|
|
|
|
syntaxregex = value;
|
|
|
|
}
|
2015-03-22 19:41:59 +01:00
|
|
|
|
2015-09-06 18:57:18 +02:00
|
|
|
ElementType GuidedEditorElement::getType() const
|
|
|
|
{
|
|
|
|
return type;
|
2015-03-22 19:41:59 +01:00
|
|
|
}
|
|
|
|
|
2015-09-06 18:57:18 +02:00
|
|
|
void GuidedEditorElement::setType(const ElementType &value)
|
2015-03-22 19:41:59 +01:00
|
|
|
{
|
2015-09-06 18:57:18 +02:00
|
|
|
type = value;
|
|
|
|
}
|
2015-03-22 19:41:59 +01:00
|
|
|
|
2015-09-06 18:57:18 +02:00
|
|
|
QString GuidedEditorElement::getValue() const
|
|
|
|
{
|
|
|
|
return value;
|
|
|
|
}
|
|
|
|
|
|
|
|
void GuidedEditorElement::setValue(const QString &value)
|
|
|
|
{
|
|
|
|
this->value = value;
|
2015-03-22 19:41:59 +01:00
|
|
|
}
|
|
|
|
|