Package schrodinger :: Package application :: Package desmond :: Module fep_gui :: Class _App
[hide private]
[frames] | no frames]

Class _App

    PyQt4.QtGui.QMainWindow --+    
                              |    
ui.qt.appframework.AppFramework --+
                                  |
                                 _App

Class shared by Desmond and Mcpro applications

Instance Methods [hide private]
 
__init__(self, mode=None, cat=None, title=None, default_jobname=None, help_topic1=None, help_topic2=None, pert_class=None)
See class docstring.
 
setFocusCallback(self, callback)
Allows the subframes to register focus-in callbacks that get called whenever the user moves the mouse pointer into the window's area.
 
enterEvent(self, event)
Called when the mouse enters into the window's area.
 
confirmOverwriting(self, jobname)
Overwrite this method
 
executeWithWaitCursor(self, command)
Executes the 'command', waiting until it finishes and returning what is returned from the command.
 
currentTabChanged(self, page_num)
Called when the current tab is changed.
 
_submit_job(self, mae_fname, cmj_fname)
 
_set_detail(self, n_cpu)
 
_get_jlaunch_cmd(self, mae_fname, cmj_fname, jobname=None)
 
_checkVacuumGPU(self)
 
startJob(self)
 
checkValues(self)
Make sure that the GUI is ready to start/write the job.
 
writeMaeFile(self, jobname)
 
writeCmjFile(self, jobname)
 
writeJob(self)
Write the input files.
 
resetPanel(self)
Resets the parameters to their default values.
 
unhidePanel(self)
Called when this panel is re-opened after being hidden.
 
hidePanel(self)
Hides the panel (but still leaves the application open).
 
showHelp(self)
 
projectClosedCallback(self)
 
workspaceChanged(self, changed)

Inherited from ui.qt.appframework.AppFramework: addButtonToBottomLayout, addCentralWidget, askOverwrite, askOverwriteIfNecessary, closeEvent, closePanel, createMenus, error, exec_, getApp, getInputFile, getInputSource, getOpenFileName, getOpenFileNames, help, info, interior, isDockableInMaestro, monitorJob, processEvents, question, quitPanel, restoreCursor, runCommand, setButtonEnabled, setButtonState, setJobViewname, setJobname, setProgress, setProgressError, setWaitCursor, setupJobParameters, show, showEvent, timerEvent, trackJobProgress, updateJobname, updateStatusBar, warning

Inherited from ui.qt.appframework.AppFramework (private): _applyStartDialogParams, _commandCallback, _createMenuItem, _jobprefersettings, _makeItem, _makeMenu, _periodicCallback, _populateEmptyJobname, _read, _reset, _setButtonDefaults, _settings, _setupBottomButtons, _setupDESResIcon, _start, _start_wrapper, _updatePanelJobname, _updateToolWindowFlag, _write

Class Variables [hide private]

Inherited from ui.qt.appframework.AppFramework: jobCompleted, start_wrapper_timeout

Method Details [hide private]

__init__(self, mode=None, cat=None, title=None, default_jobname=None, help_topic1=None, help_topic2=None, pert_class=None)
(Constructor)

 

See class docstring.

Overrides: ui.qt.appframework.AppFramework.__init__
(inherited documentation)

enterEvent(self, event)

 

Called when the mouse enters into the window's area. Will invoke the registered focus command (if any)

executeWithWaitCursor(self, command)

 

Executes the 'command', waiting until it finishes and returning what is returned from the command.

During the execution process, the icon is automatically changed to the 'watch' type of icon and recover to the previous icon when the command is finished.

currentTabChanged(self, page_num)

 

Called when the current tab is changed. Changed the help topic, and if the Plan Calculation tab is selected, updates its table.

checkValues(self)

 

Make sure that the GUI is ready to start/write the job. Used by AppFramework. Returns 0 if it's okay to bring up a Start/Write dialog box. Returns 1 on error.