AvogadroLibs 1.97.0
|
Singleton to provide access to active objects. More...
#include <avogadro/qtopengl/activeobjects.h>
Public Slots | |
void | setActiveGLWidget (GLWidget *glWidget) |
void | setActiveWidget (QWidget *widget) |
void | setActiveMolecule (QtGui::Molecule *molecule) |
Signals | |
void | activeGLWidgetChanged (GLWidget *glWidget) |
void | activeWidgetChanged (QWidget *widget) |
void | activeMoleculeChanged (QtGui::Molecule *molecule) |
Public Member Functions | |
GLWidget * | activeGLWidget () const |
QWidget * | activeWidget () const |
QtGui::Molecule * | activeMolecule () const |
Static Public Member Functions | |
static ActiveObjects & | instance () |
This class provides access to the active objects in the running application. If you write an application using the Avogadro libraries you need to keep this class updated with changes in active objects in order for built in features to work as expected.
All returned objects are owned by the running application, nullptr indicates that there is no currently active object of that type.
|
static |
Return a reference to the singleton instance that can be queried.
QWidget * activeWidget | ( | ) | const |
Get the active widget (more general, could be GLWidget, vtkGLWidget, etc).
QtGui::Molecule * activeMolecule | ( | ) | const |
Get the active molecule.
|
slot |
Set the active widget (GLWidget, vtkGLWidget, etc).
|
slot |
Set the active widget (GLWidget, vtkGLWidget, etc).
|
signal |
The active GL widget changed.
|
signal |
The active widget changed (GLWidget, vtkGLWidget, etc).
|
signal |
The active molecule changed.