32 #include <QHBoxLayout> 33 #include <QTextBrowser> 41 : error_message_( error_message )
45 QTextBrowser* error_display =
new QTextBrowser;
46 error_display->setHtml(
"The class required for this panel, '" +
getClassId() +
"', could not be loaded.<br><b>Error:</b><br>" +
error_message_ );
48 QHBoxLayout* layout =
new QHBoxLayout;
49 layout->addWidget( error_display );
bool isValid() const
Returns true if the internal Node reference is valid, false if not. Same as (getType() != Invalid)...
virtual void save(Config config) const
Copy Config data into config equivalent to the last which was sent to load().
Configuration data storage class.
virtual void load(const Config &config)
Store the given Config data for later, so we can return it with save() when someone writes this back ...
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...
virtual void save(Config config) const
Override to save configuration data. This version saves the name and class ID of the panel...
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.
virtual QString getClassId() const
Return the class identifier which was used to create this instance. This version just returns whateve...