#include <xbrabo.h>
It is a subclass of QextMDIMainForm providing an MDI interface, a menu and various toolbars.
Definition at line 44 of file xbrabo.h.
Public Member Functions | |
Xbrabo () | |
~Xbrabo () | |
The default destructor. | |
void | init () |
Initializes everything. | |
void | fileOpen (const QString filename) |
Opens an existing calculation with the specified name. | |
Protected Member Functions | |
bool | event (QEvent *e) |
Handles MDI child close events. | |
void | resizeEvent (QResizeEvent *) |
Fits the system menu button position to the menu position. | |
void | closeEvent (QCloseEvent *e) |
Closes the application. | |
Private Slots | |
void | fileNew () |
Generates a new calculation. | |
void | fileOpen () |
Opens an existing calculation. | |
void | fileSave () |
Saves a calculation to disk. | |
void | fileSaveAs () |
Saves a calculation to disk under a new name. | |
void | fileClose () |
Closes a calculation. | |
void | editCut () |
Invokes the cut action of the current view. | |
void | editCopy () |
Invokes the copy action of the current view. | |
void | editPaste () |
Invokes the paste action of the current view. | |
void | editPrefs () |
Changes the program's preferences. | |
void | viewToolBarStandard () |
Toggles the visibility of the Standard toolbar. | |
void | viewToolBarCalculation () |
Toggles the visibility of the Calculation toolbar. | |
void | viewToolBarCoordinates () |
Toggles the visibility of the Coordinates toolbar. | |
void | viewStatusBar () |
Toggles the visibility of the statusbar. | |
void | viewTaskBar () |
Toggles the visibility of the taskbar. | |
void | moleculeReadCoordinates () |
Reads coordinates for the active calculation. | |
void | moleculeCenterView () |
Centers the view for the active calculation. | |
void | moleculeResetOrientation () |
Resets the orientation for the active calculation. | |
void | moleculeZoomFit () |
Resets the zoom for the active calculation. | |
void | moleculeResetView () |
Resets the complete view for the active calculation. | |
void | moleculeAnimate () |
Toggles animation of the molecule. | |
void | moleculeFPS () |
Calculates the maximum framerate for the current parameters. | |
void | moleculeImage () |
Saves the current view as an image. | |
void | moleculeAddAtoms () |
Shows a dialog allowing the addition of atoms. | |
void | moleculeDeleteSelection () |
Deletes all selected atoms. | |
void | moleculeDensity () |
Changes the density isosurfaces. | |
void | moleculeDisplayMode () |
Changes the display mode of the molecule. | |
void | moleculeAlterCartesian () |
Alters the cartesian coordinates of the selected atoms. | |
void | moleculeAlterInternal () |
Alters the selected internal coordinate. | |
void | moleculeSelectAll () |
Selects all atoms. | |
void | moleculeSelectNone () |
Deselects all atoms. | |
void | moleculeSaveCoordinates () |
Saves the coordinates. | |
void | moleculeSelection () |
Toggles between manipulating the selected atoms and the entire system. | |
void | setupGlobal () |
Sets up the global options for the active calculation. | |
void | setupBrabo () |
Sets up the Brabo options for the active calculation. | |
void | setupRelax () |
Sets up the Relax options for the active calculation. | |
void | setupFreq () |
Sets up Distor & Forkon options for the active calculation. | |
void | setupBuur () |
Sets up the Buur options for the active calculation. | |
void | runStart () |
Starts the active calculation. | |
void | runPause () |
Pauses the active calculation. | |
void | runStop () |
Stops the active calculation. | |
void | runWrite () |
Writes the input files for the active calculation. | |
void | runClean () |
Cleans the calculation directory for the active calculation. | |
void | resultsViewOutput () |
Shows the output from the active calculation. | |
void | toolsPlotMap () |
Generates a 2D map from a .map.1 file (output from potdicht). | |
void | toolsOrbitals () |
Shows a 3D representation of orbitals. | |
void | helpHelp () |
void | helpWhatsThis () |
void | helpCredits () |
void | helpAbout () |
Shows an About box for Xbrabo. | |
virtual void | switchToToplevelMode () |
Switches the application to Toplevel mode. | |
virtual void | switchToChildframeMode () |
Switches the application to Childframe mode. | |
virtual void | switchToTabPageMode () |
Switches the application to TabPage mode. | |
void | updateActions () |
Adapts certain actions to the active calculation. | |
void | fixToplevelModeHeight () |
Updates the fixed height of the mainwindow when in Toplevel mode. | |
void | fixToplevelModeHeight2 () |
The actual worker function. | |
Private Member Functions | |
void | loadGeometry () |
Loads as much as needed from the settings file (normally done in PreferencesBase) in order to show the mainwindow during startup. | |
void | initActions () |
Creates the actions and connects them to the relevant slots. | |
void | initMenuBar () |
Creates the menu. | |
void | initToolBars () |
Creates the toolbars. | |
void | updatePreferences () |
Updates the preferences of all calculations. | |
void | updateToolbarsInfo () |
Updates editPreferences with info about the toolbars. | |
void | restoreToolbars () |
Restores the toolbars. | |
QString | actionText (const QString title, const QString brief, const QString details=QString::null, const IconSets::IconSetID iconID=IconSets::LastIcon) |
Constructs a What's This text for actions with proper richtext formatting. | |
Private Attributes | |
QToolBar * | ToolBarStandard |
The File & Edit toolbar. | |
QToolBar * | ToolBarCalculation |
The Setup & Run toolbar. | |
QToolBar * | ToolBarCoordinates |
The MoleculeView toolbar. | |
QAction * | actionFileNew |
Action that's connected to fileNew(). | |
QAction * | actionFileOpen |
Action that's connected to fileOpen(). | |
QAction * | actionFileSave |
Action that's connected to fileSave(). | |
QAction * | actionFileSaveAs |
Action that's connected to fileSaveAs(). | |
QAction * | actionFileClose |
Action that's connected to fileClose(). | |
QAction * | actionFileQuit |
Action that's connected to fileClose(). | |
QAction * | actionEditCut |
Action that's connected to editCut(). | |
QAction * | actionEditCopy |
Action that's connected to editCopy(). | |
QAction * | actionEditPaste |
Action that's connected to editPaste(). | |
QAction * | actionEditPrefs |
Action that's connected to editPrefs(). | |
QAction * | actionViewToolBarStandard |
Action that's connected to viewToolBarStandard. | |
QAction * | actionViewToolBarCalculation |
Action that's connected to viewToolBarCalculation. | |
QAction * | actionViewToolBarCoordinates |
Action that's connected to viewToolBarCoordinates. | |
QAction * | actionViewStatusBar |
Action that's connected to viewStatusBar. | |
QAction * | actionViewTaskBar |
Action that's connected to viewTaskBar. | |
QAction * | actionMoleculeReadCoordinates |
Action that's connected to moleculeReadCoordinates(). | |
QAction * | actionMoleculeCenterView |
Action that's connected to moleculeCenterView(). | |
QAction * | actionMoleculeResetOrientation |
Action that's connected to moleculeResetOrientation(). | |
QAction * | actionMoleculeZoomFit |
Action that's connected to moleculeZoomFit(). | |
QAction * | actionMoleculeResetView |
Action that's connected to moleculeResetView(). | |
QAction * | actionMoleculeAnimate |
Action that's connected to moleculeAnimate(). | |
QAction * | actionMoleculeFPS |
Action that's connected to moleculeFPS(). | |
QAction * | actionMoleculeImage |
Action that's connected to moleculeImage(). | |
QAction * | actionMoleculeAddAtom |
Action that's connected to moleculeAddAtom(). | |
QAction * | actionMoleculeDeleteSelection |
Action that's connected to moleculeDeleteSelection(). | |
QAction * | actionMoleculeDensity |
Action that's connected to moleculeDensity(). | |
QAction * | actionMoleculeDisplayMode |
Action that's connected to moleculeDisplayMode(). | |
QAction * | actionMoleculeAlterCartesian |
Action that's connected to moleculeAlterCartesian(). | |
QAction * | actionMoleculeAlterInternal |
Action that's connected to moleculeAlterInternal(). | |
QAction * | actionMoleculeSelectAll |
Action that's connected to moleculeSelectAll(). | |
QAction * | actionMoleculeSelectNone |
Action that's connected to moleculeSelectNone(). | |
QAction * | actionMoleculeSaveCoordinates |
Action that's connected to moleculeSaveCoordinates(). | |
QAction * | actionMoleculeSelection |
Action that's connected to moleculeSelection(). | |
QAction * | actionSetupGlobal |
Action that's connected to setupGlobal(). | |
QAction * | actionSetupBrabo |
Action that's connected to setupBrabo(). | |
QAction * | actionSetupRelax |
Action that's connected to setupRelax(). | |
QAction * | actionSetupFreq |
Action that's connected to setupFreq(). | |
QAction * | actionSetupBuur |
Action that's connected to setupBuur(). | |
QAction * | actionRunStart |
Action that's connected to runStart(). | |
QAction * | actionRunPause |
Action that's connected to runPause(). | |
QAction * | actionRunStop |
Action that's connected to runStop(). | |
QAction * | actionRunWrite |
Action that's connected to runWrite(). | |
QAction * | actionRunClean |
Action that's connected to runClean(). | |
QAction * | actionResultsViewOutput |
Action that's connected to resultsViewOutput(). | |
QAction * | actionToolsPlotMap |
Action that's connected to toolsPlotMap(). | |
QAction * | actionToolsOrbitals |
Action that's connected to toolsOrbitals(). | |
QAction * | actionHelp |
Action that's connected to help(). | |
QAction * | actionWhatsThis |
Action that's connected to whatsThis(). | |
QAction * | actionCredits |
Action that's connected to helpCredits(). | |
QAction * | actionAbout |
Action that's connected to helpAbout(). | |
XbraboView * | view |
Holds the active view. | |
PreferencesBase * | editPreferences |
The Preferences dialog. |
|
Definition at line 83 of file xbrabo.cpp. |
|
The default destructor.
Definition at line 90 of file xbrabo.cpp. |
|
Initializes everything. Normally this is done in the constructor, but making it a public function it can be invoked after this class is constructed. This way the splashscreen is more useful.
Definition at line 97 of file xbrabo.cpp. |
|
Opens an existing calculation with the specified name.
Definition at line 125 of file xbrabo.cpp. |
|
Handles MDI child close events.
Definition at line 223 of file xbrabo.cpp. |
|
Fits the system menu button position to the menu position.
Definition at line 241 of file xbrabo.cpp. |
|
Closes the application.
Definition at line 249 of file xbrabo.cpp. |
|
Generates a new calculation.
Definition at line 285 of file xbrabo.cpp. |
|
Opens an existing calculation.
Definition at line 320 of file xbrabo.cpp. |
|
Saves a calculation to disk.
Definition at line 336 of file xbrabo.cpp. |
|
Saves a calculation to disk under a new name.
Definition at line 370 of file xbrabo.cpp. |
|
Closes a calculation.
Definition at line 422 of file xbrabo.cpp. |
|
Invokes the cut action of the current view.
Definition at line 462 of file xbrabo.cpp. |
|
Invokes the copy action of the current view.
Definition at line 473 of file xbrabo.cpp. |
|
Invokes the paste action of the current view.
Definition at line 484 of file xbrabo.cpp. |
|
Changes the program's preferences.
Definition at line 495 of file xbrabo.cpp. |
|
Toggles the visibility of the Standard toolbar.
Definition at line 510 of file xbrabo.cpp. |
|
Toggles the visibility of the Calculation toolbar.
Definition at line 523 of file xbrabo.cpp. |
|
Toggles the visibility of the Coordinates toolbar.
Definition at line 536 of file xbrabo.cpp. |
|
Toggles the visibility of the statusbar.
Definition at line 549 of file xbrabo.cpp. |
|
Toggles the visibility of the taskbar.
Definition at line 563 of file xbrabo.cpp. |
|
Reads coordinates for the active calculation.
Definition at line 577 of file xbrabo.cpp. |
|
Centers the view for the active calculation.
Definition at line 590 of file xbrabo.cpp. |
|
Resets the orientation for the active calculation.
Definition at line 601 of file xbrabo.cpp. |
|
Resets the zoom for the active calculation.
Definition at line 612 of file xbrabo.cpp. |
|
Resets the complete view for the active calculation.
Definition at line 623 of file xbrabo.cpp. |
|
Toggles animation of the molecule.
Definition at line 634 of file xbrabo.cpp. |
|
Calculates the maximum framerate for the current parameters.
Definition at line 648 of file xbrabo.cpp. |
|
Saves the current view as an image.
Definition at line 661 of file xbrabo.cpp. |
|
Shows a dialog allowing the addition of atoms.
Definition at line 674 of file xbrabo.cpp. |
|
Deletes all selected atoms.
Definition at line 685 of file xbrabo.cpp. |
|
Changes the density isosurfaces.
Definition at line 696 of file xbrabo.cpp. |
|
Changes the display mode of the molecule.
Definition at line 707 of file xbrabo.cpp. |
|
Alters the cartesian coordinates of the selected atoms.
Definition at line 718 of file xbrabo.cpp. |
|
Alters the selected internal coordinate.
Definition at line 729 of file xbrabo.cpp. |
|
Selects all atoms.
Definition at line 740 of file xbrabo.cpp. |
|
Deselects all atoms.
Definition at line 751 of file xbrabo.cpp. |
|
Saves the coordinates.
Definition at line 762 of file xbrabo.cpp. |
|
Toggles between manipulating the selected atoms and the entire system.
Definition at line 773 of file xbrabo.cpp. |
|
Sets up the global options for the active calculation.
Definition at line 784 of file xbrabo.cpp. |
|
Sets up the Brabo options for the active calculation.
Definition at line 797 of file xbrabo.cpp. |
|
Sets up the Relax options for the active calculation.
Definition at line 810 of file xbrabo.cpp. |
|
Sets up Distor & Forkon options for the active calculation.
Definition at line 823 of file xbrabo.cpp. |
|
Sets up the Buur options for the active calculation.
Definition at line 836 of file xbrabo.cpp. |
|
Starts the active calculation.
Definition at line 849 of file xbrabo.cpp. |
|
Pauses the active calculation.
Definition at line 860 of file xbrabo.cpp. |
|
Stops the active calculation.
Definition at line 871 of file xbrabo.cpp. |
|
Writes the input files for the active calculation.
Definition at line 882 of file xbrabo.cpp. |
|
Cleans the calculation directory for the active calculation.
Definition at line 893 of file xbrabo.cpp. |
|
Shows the output from the active calculation.
Definition at line 904 of file xbrabo.cpp. |
|
Generates a 2D map from a .map.1 file (output from potdicht).
Definition at line 917 of file xbrabo.cpp. |
|
Shows a 3D representation of orbitals.
Definition at line 949 of file xbrabo.cpp. |
|
Definition at line 959 of file xbrabo.cpp. |
|
Definition at line 1000 of file xbrabo.cpp. |
|
Definition at line 1009 of file xbrabo.cpp. |
|
Shows an About box for Xbrabo.
Definition at line 1046 of file xbrabo.cpp. |
|
Switches the application to Toplevel mode.
Definition at line 1058 of file xbrabo.cpp. |
|
Switches the application to Childframe mode.
Definition at line 1067 of file xbrabo.cpp. |
|
Switches the application to TabPage mode.
Definition at line 1090 of file xbrabo.cpp. |
|
Adapts certain actions to the active calculation. It handles all cases, including when there are no opened calculations. It's normally called due to a changed() signal from an XbraboView, but not necessarily from the one with the focus. Some unneccesary updating is bound to occur. Definition at line 1107 of file xbrabo.cpp. |
|
Updates the fixed height of the mainwindow when in Toplevel mode. It also resizes the mainwindow to this size. This function only makes sure that the actual work is done after all events are processed. Otherwise the calculation of the new height of the mainwindow uses old values. Definition at line 1164 of file xbrabo.cpp. |
|
The actual worker function.
Definition at line 1178 of file xbrabo.cpp. |
|
Loads as much as needed from the settings file (normally done in PreferencesBase) in order to show the mainwindow during startup. The rest of the settings are then loaded as a PreferencesBase class is instantiated in init() Definition at line 1233 of file xbrabo.cpp. |
|
Creates the actions and connects them to the relevant slots.
Definition at line 1312 of file xbrabo.cpp. |
|
Creates the menu.
Definition at line 1769 of file xbrabo.cpp. |
|
Creates the toolbars.
Definition at line 1883 of file xbrabo.cpp. |
|
Updates the preferences of all calculations. This is done by calling static functions of BraboBase, GLView and GLSimpleMoleculeView. Definition at line 1954 of file xbrabo.cpp. |
|
Updates editPreferences with info about the toolbars.
Definition at line 1969 of file xbrabo.cpp. |
|
Restores the toolbars. Should be called when Xbrabo is visible, otherwise the toolbarMenu cannot be updated. Definition at line 1979 of file xbrabo.cpp. |
|
Constructs a What's This text for actions with proper richtext formatting.
Definition at line 2005 of file xbrabo.cpp. |
|
The File & Edit toolbar.
|
|
The Setup & Run toolbar.
|
|
The MoleculeView toolbar.
|
|
Action that's connected to fileNew().
|
|
Action that's connected to fileOpen().
|
|
Action that's connected to fileSave().
|
|
Action that's connected to fileSaveAs().
|
|
Action that's connected to fileClose().
|
|
Action that's connected to fileClose().
|
|
Action that's connected to editCut().
|
|
Action that's connected to editCopy().
|
|
Action that's connected to editPaste().
|
|
Action that's connected to editPrefs().
|
|
Action that's connected to viewToolBarStandard.
|
|
Action that's connected to viewToolBarCalculation.
|
|
Action that's connected to viewToolBarCoordinates.
|
|
Action that's connected to viewStatusBar.
|
|
Action that's connected to viewTaskBar.
|
|
Action that's connected to moleculeReadCoordinates().
|
|
Action that's connected to moleculeCenterView().
|
|
Action that's connected to moleculeResetOrientation().
|
|
Action that's connected to moleculeZoomFit().
|
|
Action that's connected to moleculeResetView().
|
|
Action that's connected to moleculeAnimate().
|
|
Action that's connected to moleculeFPS().
|
|
Action that's connected to moleculeImage().
|
|
Action that's connected to moleculeAddAtom().
|
|
Action that's connected to moleculeDeleteSelection().
|
|
Action that's connected to moleculeDensity().
|
|
Action that's connected to moleculeDisplayMode().
|
|
Action that's connected to moleculeAlterCartesian().
|
|
Action that's connected to moleculeAlterInternal().
|
|
Action that's connected to moleculeSelectAll().
|
|
Action that's connected to moleculeSelectNone().
|
|
Action that's connected to moleculeSaveCoordinates().
|
|
Action that's connected to moleculeSelection().
|
|
Action that's connected to setupGlobal().
|
|
Action that's connected to setupBrabo().
|
|
Action that's connected to setupRelax().
|
|
Action that's connected to setupFreq().
|
|
Action that's connected to setupBuur().
|
|
Action that's connected to runStart().
|
|
Action that's connected to runPause().
|
|
Action that's connected to runStop().
|
|
Action that's connected to runWrite().
|
|
Action that's connected to runClean().
|
|
Action that's connected to resultsViewOutput().
|
|
Action that's connected to toolsPlotMap().
|
|
Action that's connected to toolsOrbitals().
|
|
Action that's connected to help().
|
|
Action that's connected to whatsThis().
|
|
Action that's connected to helpCredits().
|
|
Action that's connected to helpAbout().
|
|
Holds the active view.
|
|
The Preferences dialog.
|