32 #include <QHBoxLayout> 33 #include <QTextBrowser> 40 : error_message_(error_message)
44 QTextBrowser* error_display =
new QTextBrowser;
45 error_display->setHtml(
"The class required for this panel, '" +
getClassId() +
48 QHBoxLayout* layout =
new QHBoxLayout;
49 layout->addWidget(error_display);
void save(Config config) const override
Copy Config data into config equivalent to the last which was sent to load().
virtual void save(Config config) const
Override to save configuration data. This version saves the name and class ID of the panel...
bool isValid() const
Returns true if the internal Node reference is valid, false if not. Same as (getType() != Invalid)...
Configuration data storage class.
FailedPanel(const QString &desired_class_id, const QString &error_message)
virtual void setClassId(const QString &class_id)
Set the class identifier used to create this instance. Typically this will be set by the factory obje...
void load(const Config &config) override
Store the given Config data for later, so we can return it with save() when someone writes this back ...
virtual QString getClassId() const
Return the class identifier which was used to create this instance. This version just returns whateve...
virtual void load(const Config &config)
Override to load configuration data. This version loads the name of the panel.
void copy(const Config &source)
Make this a deep copy of source.