The base class for extension plugin factories in Avogadro.
More...
#include <avogadro/qtgui/extensionplugin.h>
◆ name()
virtual QString name |
( |
| ) |
const |
|
pure virtual |
The name of the extension plugin, will be displayed in the user interface.
Implemented in ScriptFileFormats, QTAIMExtension, POVRay, VRML, CustomElements, Hydrogens, Select, CoordinateEditor, Crystal, ThreeDMol, CopyPaste, LineFormatInput, MolecularProperties, QuantumInput, NetworkDatabases, OpenBabel, GamessInput, PluginDownloader, Command, ImportPQR, Symmetry, Spectra, Apbs, LammpsInput, MongoChem, Bonding, SpaceGroup, Surfaces, ClientServer, PlotXrd, PlotPdf, PlotRmsd, and ColorOpacityMap.
◆ description()
virtual QString description |
( |
| ) |
const |
|
pure virtual |
A description of the extension plugin, may be displayed in the user interface.
Implemented in ScriptFileFormats, QTAIMExtension, POVRay, VRML, CustomElements, Hydrogens, Select, CoordinateEditor, Crystal, CopyPaste, QuantumInput, ThreeDMol, LineFormatInput, MolecularProperties, NetworkDatabases, OpenBabel, GamessInput, PluginDownloader, Command, ImportPQR, Symmetry, Spectra, LammpsInput, Apbs, MongoChem, Bonding, SpaceGroup, Surfaces, ClientServer, PlotXrd, PlotPdf, PlotRmsd, and ColorOpacityMap.
◆ actions()
virtual QList<QAction*> actions |
( |
| ) |
const |
|
pure virtual |
- Returns
- The QActions for this extension (should be at least one).
Implemented in ScriptFileFormats, POVRay, VRML, QTAIMExtension, CustomElements, Hydrogens, Select, CoordinateEditor, Surfaces, Crystal, CopyPaste, QuantumInput, ThreeDMol, LineFormatInput, MolecularProperties, NetworkDatabases, OpenBabel, GamessInput, PluginDownloader, Command, ImportPQR, Spectra, LammpsInput, Apbs, MongoChem, Symmetry, Bonding, SpaceGroup, ClientServer, PlotXrd, PlotPdf, PlotRmsd, and ColorOpacityMap.
◆ menuPath()
virtual QStringList menuPath |
( |
QAction * |
action = 0 | ) |
const |
|
pure virtual |
- 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).
Implemented in POVRay, VRML, QTAIMExtension, CoordinateEditor, CopyPaste, Bonding, ScriptFileFormats, CustomElements, Hydrogens, Select, Surfaces, Crystal, QuantumInput, ThreeDMol, LineFormatInput, MolecularProperties, NetworkDatabases, OpenBabel, GamessInput, PluginDownloader, Command, ImportPQR, Spectra, LammpsInput, MongoChem, Apbs, Symmetry, SpaceGroup, ClientServer, PlotXrd, PlotPdf, PlotRmsd, and ColorOpacityMap.
◆ fileFormats()
- Returns
- A list of file format readers/writers.
The caller takes ownership of the objects in the returned list.
Reimplemented in OpenBabel.
◆ setMolecule
◆ readMolecule
Call this slot when the moleculeReady signal indicated that a molecule is ready to be read. The molecule
will have the data read into it. The slot will
- Returns
- true if a molecule was successfully read in.
Reimplemented in Apbs.
◆ setScene
Called when the current scene changes.
◆ setCamera
Called when the active camera for the view changes.
◆ setActiveWidget
virtual void setActiveWidget |
( |
QWidget * |
widget | ) |
|
|
virtualslot |
Called when the active widget changes. This must be used carefully, and should check that the widget has been cast if used.
◆ moleculeReady
void moleculeReady |
( |
int |
numberOfMolecules | ) |
|
|
signal |
Signal that the extension has a new molecule that is ready to be loaded. The application must call readMolecule in order to actually read the molecule(s).
◆ fileFormatsReady
void fileFormatsReady |
( |
| ) |
|
|
signal |
Signal that the extension has file formats that are ready to be registered. If emitted the application should call fileFormats to get the formats the extension is registering.
◆ requestActiveTool
void requestActiveTool |
( |
QString |
toolName | ) |
|
|
signal |
Signal to request a particular tool is set as the active tool. This is useful when loading a structure outside of the normal file API and setting "Navigator" to active instead of "Editor" (the default).
◆ requestActiveDisplayTypes
void requestActiveDisplayTypes |
( |
QStringList |
displayTypes | ) |
|
|
signal |
Request a specific display type (or types) are active, and all others are disabled. This can be useful when loading a specific type of data that would be most readily viewed with a specialized view.
The documentation for this class was generated from the following file: