6#ifndef BUILDINGBLOCKEDITORS_H
7#define BUILDINGBLOCKEDITORS_H
11#include "ui_EditCombo.h"
12#include "ui_NumericAttributeWidgetForm.h"
13#include "ui_RelationshipWidgetForm.h"
14#include "ui_StringAttributeWidgetForm.h"
18#include <QPlainTextEdit>
20#include <QSortFilterProxyModel>
102 template<
typename T = editor_data_state>
108 virtual void setdata(QStringList
const&);
120 base(std::shared_ptr<editor_data_state> editordata, QWidget* parent =
nullptr,
bool owned =
false);
150 ,
private dbe::Ui::RelationshipForm
221 ,
private Ui::StringAttributeWidgetForm
229 stringattr(
t_virtue const& attr, QWidget* parent =
nullptr,
bool owned =
false,
bool readonly =
false);
278 ,
private Ui::NumericAttributeWidgetForm
286 numericattr(
t_virtue const& attr, QWidget* parent =
nullptr,
bool owned =
false,
bool readonly =
false);
292 virtual void setdefaults(
const QString& ValueDefault);
298 void ShowWarning(QString Format =
"", QString Range =
"");
328 ,
public Ui::EditCombo
336 combo(
t_virtue const& attr, QWidget* parent =
nullptr,
bool owned =
false,
bool readonly =
false);
340 void SetData(QStringList
const&);
343 void setdata(QStringList
const&);
345 QStringList
getdata()
override;
374 multiattr(
t_virtue const& attr, QWidget* parent =
nullptr,
bool owned =
false,
bool readonly =
false);
virtual ~editor_data_state()
bool must_not_be_null() const
editor_data_state(bool isvalid, bool isnotnull, bool isobligatory)
void set_not_null(bool const is)
void set_valid(bool const is)
t_virtue const & get() const
void set_obligatory(bool is)
editor_data(T const &virtue)