Class Avogadro::QtGui::ViewFactory#

class ViewFactory#

The ViewFactory class is a pure virtual that provides a method of dynamically adding views to the MultiViewWidget class.

Author

Marcus D. Hanwell

Public Functions

ViewFactory()#
virtual ~ViewFactory()#
virtual QStringList views() const = 0#

Get the list of views the factory provides.

Returns:

A list of supported views.

virtual QWidget *createView(const QString &view) = 0#

Create a named view, the caller assumes ownership of the widget.

Parameters:

view – The name of the view.

Returns:

A new widget of the requested type, nullptr if none exists.