#include <globalbase.h>
It contains the implementation for the widget GlobalWidget.
Definition at line 35 of file globalbase.h.
| Public Types | |
| enum | Calculation { SinglePointEnergy, EnergyAndForces, GeometryOptimization, Frequencies } | 
| enum | Buur { NoBuur, PC, SM } | 
| enum | Run { Xbrabo, Script, Queue } | 
| Public Slots | |
| void | reset () | 
| Resets all widgets to their default values. | |
| Public Member Functions | |
| GlobalBase (QWidget *parent=0, const char *name=0, bool modal=FALSE, WFlags fl=0) | |
| ~GlobalBase () | |
| The default destructor. | |
| void | setDefaultName (const QString name) | 
| Sets the default calculation name. | |
| unsigned int | calculationType () const | 
| Returns the type of calculation. | |
| unsigned int | buurType () const | 
| Returns the type of crystal calculation. | |
| bool | extendedFormat () const | 
| Returns true if extended format is to be used. | |
| QString | description () const | 
| Returns the description for the calculation. | |
| QString | name () const | 
| Returns the name of the calculation. | |
| QString | directory () const | 
| Returns the directory in which the calculation will be run. | |
| unsigned int | runType () const | 
| Returns the type of run. | |
| unsigned int | queue () const | 
| Returns the queue to which the script file should be submitted. | |
| void | allowChanges (const bool status) | 
| Allows or prohibits changing every option. | |
| void | loadCML (const QDomElement *root) | 
| Reads the widget data from a QDomElement. | |
| void | saveCML (QDomElement *root) | 
| Saves the widget data to a QDomElement. | |
| Protected Slots | |
| void | accept () | 
| Overridden from GlobalWidget::accept(). | |
| void | reject () | 
| Overriden from GlobalWidget::reject(). | |
| Private Slots | |
| void | setChanged (const bool state=true) | 
| Sets the 'changed' property of the dialog. | |
| void | correctType (int index) | 
| Corrects the calculation type, because only Single Point Energy and Energy & Forces are implemented ATM. | |
| void | chooseDir () | 
| Chooses a directory using a dialog. | |
| Private Member Functions | |
| void | makeConnections () | 
| Sets up the permanent connections. Called once from the constructor. | |
| void | init () | 
| Initializes the dialog. Called once from the constructor. | |
| void | saveWidgets () | 
| Saves the status of the widgets to a data struct. | |
| void | restoreWidgets () | 
| Restores the status of the widgets from the data struct. | |
| Private Attributes | |
| WidgetData | data | 
| Internal data structure. | |
| QString | defaultName | 
| Name() when reset is issued. | |
| bool | widgetChanged | 
| Holds the 'changed' property of the widget. | |
| Classes | |
| struct | WidgetData | 
| Struct local to the class GLobalBase containing the data pertaining to all widgets.  More... | |
| 
 | 
| 
 Definition at line 44 of file globalbase.h. | 
| 
 | 
| 
 Definition at line 45 of file globalbase.h. | 
| 
 | 
| 
 Definition at line 46 of file globalbase.h. | 
| 
 | ||||||||||||||||||||
| 
 Definition at line 58 of file globalbase.cpp. | 
| 
 | 
| The default destructor. 
 Definition at line 71 of file globalbase.cpp. | 
| 
 | 
| Sets the default calculation name. 
 Definition at line 78 of file globalbase.cpp. | 
| 
 | 
| Returns the type of calculation. 
 
 Definition at line 86 of file globalbase.cpp. | 
| 
 | 
| Returns the type of crystal calculation. 
 Definition at line 97 of file globalbase.cpp. | 
| 
 | 
| Returns true if extended format is to be used. 
 Definition at line 110 of file globalbase.cpp. | 
| 
 | 
| Returns the description for the calculation. 
 Definition at line 117 of file globalbase.cpp. | 
| 
 | 
| Returns the name of the calculation. 
 Definition at line 124 of file globalbase.cpp. | 
| 
 | 
| Returns the directory in which the calculation will be run. 
 Definition at line 131 of file globalbase.cpp. | 
| 
 | 
| Returns the type of run. 
 
 Definition at line 138 of file globalbase.cpp. | 
| 
 | 
| Returns the queue to which the script file should be submitted. 
 Definition at line 148 of file globalbase.cpp. | 
| 
 | 
| Allows or prohibits changing every option. During a calculation most options may not be changed (type, format, queue, etc.). Definition at line 155 of file globalbase.cpp. | 
| 
 | 
| Reads the widget data from a QDomElement. 
 Definition at line 166 of file globalbase.cpp. | 
| 
 | 
| Saves the widget data to a QDomElement. 
 Definition at line 204 of file globalbase.cpp. | 
| 
 | 
| Resets all widgets to their default values. 
 Definition at line 230 of file globalbase.cpp. | 
| 
 | 
| Overridden from GlobalWidget::accept(). 
 Definition at line 258 of file globalbase.cpp. | 
| 
 | 
| Overriden from GlobalWidget::reject(). 
 Definition at line 276 of file globalbase.cpp. | 
| 
 | 
| Sets the 'changed' property of the dialog. Defaults to true if no argument is provided. Definition at line 293 of file globalbase.cpp. | 
| 
 | 
| Corrects the calculation type, because only Single Point Energy and Energy & Forces are implemented ATM. 
 Definition at line 301 of file globalbase.cpp. | 
| 
 | 
| Chooses a directory using a dialog. 
 Definition at line 310 of file globalbase.cpp. | 
| 
 | 
| Sets up the permanent connections. Called once from the constructor. 
 Definition at line 324 of file globalbase.cpp. | 
| 
 | 
| Initializes the dialog. Called once from the constructor. 
 Definition at line 350 of file globalbase.cpp. | 
| 
 | 
| Saves the status of the widgets to a data struct. 
 Definition at line 362 of file globalbase.cpp. | 
| 
 | 
| Restores the status of the widgets from the data struct. 
 Definition at line 385 of file globalbase.cpp. | 
| 
 | 
| Internal data structure. 
 Definition at line 97 of file globalbase.h. | 
| 
 | 
| Name() when reset is issued. 
 Definition at line 98 of file globalbase.h. | 
| 
 | 
| Holds the 'changed' property of the widget. 
 Definition at line 99 of file globalbase.h. | 
 1.4.6-NO
 1.4.6-NO