1#ifndef BUILDINGBLOCKEDITORS_H
2#define BUILDINGBLOCKEDITORS_H
6#include "ui_RelationshipWidgetForm.h"
7#include "ui_StringAttributeWidgetForm.h"
8#include "ui_NumericAttributeWidgetForm.h"
9#include "ui_EditCombo.h"
14#include <QPlainTextEdit>
17#include <QSortFilterProxyModel>
120 template<
typename T = editor_data_state> std::shared_ptr<T>
dataeditor()
125 virtual void setdata ( QStringList
const & );
134 base ( std::shared_ptr<editor_data_state> editordata, QWidget * parent =
135 nullptr,
bool owned =
false );
138 virtual void closeEvent ( QCloseEvent * Event );
178 bool eventFilter ( QObject * Target, QEvent * Event );
303 virtual void setdefaults (
const QString & ValueDefault );
309 void ShowWarning ( QString Format =
"", QString Range =
"" );
344 combo (
t_virtue const & attr, QWidget * parent =
nullptr,
bool owned =
false );
348 void SetData ( QStringList
const & );
349 void SetValidatorData ( QStringList
const & Data,
bool AcceptNoMatch =
false );
351 void setdata ( QStringList
const & );
353 QStringList
getdata()
override;
382 multiattr (
t_virtue const & attr, QWidget * parent =
nullptr,
bool owned =
false );
390 bool eventFilter ( QObject * Target, QEvent * Event );
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)