30 #include <QMessageBox> 40 : error_message_(error_message)
47 return "The class required for this view controller, '" +
getClassId() +
71 QWidget* parent =
nullptr;
virtual QWidget * getParentWindow()=0
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...
void save(Config config) const override
Write the value of this property and/or its children into the given Config reference.
bool isValid() const
Returns true if the internal Node reference is valid, false if not. Same as (getType() != Invalid)...
Configuration data storage class.
void onActivate() override
called by activate().
virtual QString getName() const
Return the name of this Property as a QString.
FailedViewController(const QString &desired_class_id, const QString &error_message)
void save(Config config) const override
Write into config data equivalent to the last config sent to load().
void load(const Config &config) override
Load the value of this property and/or its children from the given Config reference.
QString getDescription() const override
Return the description.
DisplayContext * context_
void copy(const Config &source)
Make this a deep copy of source.
virtual WindowManagerInterface * getWindowManager() const =0
Return the window manager, if any.
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...