Hi all –
Is there a way to set the molecule in the main window from within an
extension? It looks like I need to access MainWindow::setMolecule, but
I can’t figure out how to get at the MainWindow’s functions.
Any ideas?
Thanks,
Dave
Hi all –
Is there a way to set the molecule in the main window from within an
extension? It looks like I need to access MainWindow::setMolecule, but
I can’t figure out how to get at the MainWindow’s functions.
Any ideas?
Thanks,
Dave
extension? It looks like I need to access MainWindow::setMolecule, but
I can’t figure out how to get at the MainWindow’s functions.
You don’t – because things in libavogadro could be called by
anything. Take a look at the networkfetchextension – you load a new
molecule, then emit the moleculeChanged signal.
There’s another example in the MOPAC code – you can run mopac, then
load the output as a new molecule.
Hope that helps,
-Geoff
On Wed, May 13, 2009 at 3:04 AM, Geoffrey Hutchison
geoff.hutchison@gmail.com wrote:
extension? It looks like I need to access MainWindow::setMolecule, but
I can’t figure out how to get at the MainWindow’s functions.You don’t – because things in libavogadro could be called by anything. Take
a look at the networkfetchextension – you load a new molecule, then emit
the moleculeChanged signal.
Excellent – Thanks, it’s working now
Dave