Package dsc_suite :: Package gui :: Module dsc :: Class DSC
[hide private]
[frames] | no frames]

Class DSC

source code

PyQt4.QtGui.QMainWindow --+
                          |
                         DSC

class DSC(QMainWindow) This class is the main part of the GUI. It contains all functions to create the GUI interface. It is the only class in the project, which uses the PyQT Framework. The interfaces to other classes is based on Python standard data types as dictionary, list, etc. To start the GUI create an object of the DSC class and the GUI will start.

Attention: The DSC starts an event bases loop. So the python programm which started the GUI will be terminated when the GUI is closed! An interactive console mode in the GUI is planned but not yet implemented.

Instance Methods [hide private]
 
__init__(self)
__init__ This function is the constructor of the DSC class.
source code
 
__str__(self)
__str___
source code
 
keyPressEvent(QEvent)
overrides original keyPressEvent()
source code
 
timerEvent(QEvent)
overrides original timerEvent()
source code
 
__createDataView()
builds the content of the Evaluator tab
source code
 
__createPlaner()
builds the content of the Planer tab
source code
 
__createSettingSection()
builds the content of the parameter section of the Planer Tab
source code
 
__changeParamLayout()
switches between the different algorithm parameter layouts
source code
 
__connect()
connects the widgets with signals and slots
source code
 
__newFile(string)
this function creates a new XML file either for datafiles or plots
source code
 
__newXMLDataFile()
a transmission function for correct call of __newFile(string)
source code
 
__newXMLPlotFile()
a transmission function for correct call of __newFile(string)
source code
 
__openFile()
opens a XML file into the GUI
source code
 
__openXMLFile(path)
opens the XMLFile under path
source code
 
__infoText(string)
shows the string in the information area in planer tab
source code
 
__generate()
generates a table entry in planer tab with the selected parameters
source code
 
__refreshPlaner()
this function is used to display the generated trials in the table of the planer tab
source code
 
__plannedChangeIndex(string)
this function is used to change the order in the table of the planer tab
source code
 
__refreshBrowser(parser)
this function is used to read the data from the given XML file as parser
source code
 
__dataview_fit()
fits the data explorer column size to content
source code
 
__datainfo()
this function shows the information about a datafile
source code
 
__popUp(warn_text)
displays a dialog with the text given by warn_text
source code
 
__startCalc()
starts the preparation for the calculation of data files
source code
 
__showTimeEstimation()
shows time dialog
source code
 
__runCalc()
runs calculation in seperate thread
source code
 
__finishCalc()
writes new content into XML file
source code
 
__evaluate(buttonname)
in this version it shows a dialog to adjust diagram option
source code
 
__showDiagram()
calls the evaluation function
source code
 
__gen_info_func(string)
defines a dynamic function for the call of __infoText(string)
source code
 
__gen_eval_func(string)
defines a dynamic function for the call of __evaluate(string)
source code
 
__gen_index_change_func(string)
defines a dynamic function for the call of plannedChangeIndex(string)
source code
Method Details [hide private]

__init__(self)
(Constructor)

source code 

__init__ This function is the constructor of the DSC class. It calls the build up functions for the GUI and sets same basic configurations. It also launches the event loop. Attention: The constructor will not be leaved.

__str__(self)
(Informal representation operator)

source code 

__str___

  • returns a string with ID of the GUI object

__connect()

source code 
  • connects the widgets with signals and slots

    Attention: Not every signals and slots can be connected in this global way. But those who can should be done here ! If not the code gets very difficult to read.

__openFile()

source code 
  • opens a XML file into the GUI

    Old version: There was an option to save the generated trials to an text file. This feature is not yet implemented after the complete planer tool was re-designed