AvogadroLibs  1.91.0
Public Slots | Public Member Functions | List of all members
OpenBabel Class Reference

The OpenBabel class implements the ExtensionPlugin interface to expose some OpenBabel functionality. More...

#include <openbabel.h>

Inheritance diagram for OpenBabel:
ExtensionPlugin

Public Slots

void setMolecule (QtGui::Molecule *mol) override
 
bool readMolecule (QtGui::Molecule &mol) override
 
- Public Slots inherited from ExtensionPlugin
virtual void setMolecule (QtGui::Molecule *mol)=0
 
virtual bool readMolecule (QtGui::Molecule &mol)
 
virtual void setScene (Rendering::Scene *scene)
 
virtual void setCamera (Rendering::Camera *camera)
 
virtual void setActiveWidget (QWidget *widget)
 

Public Member Functions

 OpenBabel (QObject *parent=0)
 
QString name () const override
 
QString description () const override
 
QList< QAction * > actions () const override
 
QStringList menuPath (QAction *) const override
 
QList< Io::FileFormat * > fileFormats () const override
 
QString openBabelInfo () const
 
- Public Member Functions inherited from ExtensionPlugin
 ExtensionPlugin (QObject *parent=0)
 

Additional Inherited Members

- Signals inherited from ExtensionPlugin
void moleculeReady (int numberOfMolecules)
 
void fileFormatsReady ()
 
void requestActiveTool (QString toolName)
 
void requestActiveDisplayTypes (QStringList displayTypes)
 

Detailed Description

Member Function Documentation

◆ name()

QString name ( ) const
overridevirtual

The name of the extension plugin, will be displayed in the user interface.

Implements ExtensionPlugin.

◆ description()

QString description ( ) const
overridevirtual

A description of the extension plugin, may be displayed in the user interface.

Implements ExtensionPlugin.

◆ actions()

QList<QAction*> actions ( ) const
overridevirtual
Returns
The QActions for this extension (should be at least one).

Implements ExtensionPlugin.

◆ menuPath()

QStringList menuPath ( QAction *  action) const
overridevirtual
Returns
The menu path of the supplied action. This can be empty if the action was not recognized, or contain two or more strings (top level, plus name, e.g. File, &Open).

Implements ExtensionPlugin.

◆ fileFormats()

QList<Io::FileFormat*> fileFormats ( ) const
overridevirtual
Returns
A list of file format readers/writers.

The caller takes ownership of the objects in the returned list.

Reimplemented from ExtensionPlugin.


The documentation for this class was generated from the following file: