Qudi
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
managergui.ManagerGui Class Reference

This class provides a GUI to the Qudi manager. More...

Inheritance diagram for managergui.ManagerGui:
Inheritance graph
[legend]
Collaboration diagram for managergui.ManagerGui:
Collaboration graph
[legend]

Public Member Functions

def __init__ (self, kwargs)
 Create an instance of the module. More...
 
def on_activate (self)
 Activation method called on change to active state. More...
 
def on_deactivate (self)
 Close window and remove connections.
 
def show (self)
 Show the window and bring it t the top.
 
def showAboutQudi (self)
 Show a dialog with details about Qudi.
 
def promptForShutdown (self, locked, broken)
 Display a dialog, asking the user to confirm shutdown. More...
 
def resetToDefaultLayout (self)
 Return the dockwidget layout and visibility to its default state.
 
def handleLogEntry (self, entry)
 Forward log entry to log widget and show an error popup if it is an error message. More...
 
def startIPython (self)
 Create an IPython kernel manager and kernel. More...
 
def startIPythonWidget (self)
 Create an IPython console widget and connect it to an IPython kernel.
 
def stopIPython (self)
 Stop the IPython kernel.
 
def stopIPythonWidget (self)
 Disconnect the IPython widget from the kernel.
 
def updateIPythonModuleList (self)
 Remove non-existing modules from namespace, add new modules to namespace, update reloaded modules.
 
def consoleKeepSettings (self)
 Write old values into config dialog.
 
def consoleApplySettings (self)
 Apply values from config dialog to console.
 
def consoleSetFontSize (self, fontsize)
 
def updateConfigWidgets (self)
 Clear and refill the tree widget showing the configuration.
 
def updateGUIModuleList (self)
 Clear and refill the module list widget.
 
def fillModuleList (self, layout, base)
 Fill the module list widget with module widgets for defined gui modules. More...
 
def fillTreeItem (self, item, value)
 Recursively fill a QTreeWidgeItem with the contents from a dictionary. More...
 
def getSoftwareVersion (self)
 Try to determine the software version in case the program is in a git repository.
 
def fillTreeWidget (self, widget, value)
 Fill a QTreeWidget with the content of a dictionary. More...
 
def reloadConfig (self)
 Reload the current config. More...
 
def getLoadFile (self)
 Ask the user for a file where the configuration should be loaded from.
 
def getSaveFile (self)
 Ask the user for a file where the configuration should be saved to.
 

Public Attributes

 modlist
 
 modules
 
 errorDialog
 
 versionLabel
 
 checkTimer
 
 kernel_manager
 
 kernel
 
 namespace
 

Static Public Attributes

 consoleFontSize = StatusVar('console_font_size', 10)
 
 sigStartAll = QtCore.Signal()
 
 sigStartModule = QtCore.Signal(str, str)
 
 sigReloadModule = QtCore.Signal(str, str)
 
 sigCleanupStatus = QtCore.Signal(str, str)
 
 sigStopModule = QtCore.Signal(str, str)
 
 sigLoadConfig = QtCore.Signal(str, bool)
 
 sigSaveConfig = QtCore.Signal(str)
 
 sigRealQuit = QtCore.Signal()
 

Detailed Description

This class provides a GUI to the Qudi manager.

sigStartAll: sent when all modules should be loaded str str sigStartThis: load a specific module str str sigReloadThis reload a specific module from Python code str str sigStopThis: stop all actions of a module and remove references It supports module loading, reloading, logging and other administrative tasks.

Constructor & Destructor Documentation

◆ __init__()

def managergui.ManagerGui.__init__ (   self,
  kwargs 
)

Create an instance of the module.

Parameters
objectmanager:
strname:
dictconfig:

Member Function Documentation

◆ fillModuleList()

def managergui.ManagerGui.fillModuleList (   self,
  layout,
  base 
)

Fill the module list widget with module widgets for defined gui modules.

Parameters
QLayoutlayout: layout of th module list widget where module widgest should be addad
strbase: module category to fill

◆ fillTreeItem()

def managergui.ManagerGui.fillTreeItem (   self,
  item,
  value 
)

Recursively fill a QTreeWidgeItem with the contents from a dictionary.

Parameters
QTreeWidgetItemitem: the widget item to fill
(dict,list,etc)value: value to fill in

◆ fillTreeWidget()

def managergui.ManagerGui.fillTreeWidget (   self,
  widget,
  value 
)

Fill a QTreeWidget with the content of a dictionary.

Parameters
QTreeWidgetwidget: the tree widget to fill
dict,OrderedDictvalue: the dictionary to fill in

◆ handleLogEntry()

def managergui.ManagerGui.handleLogEntry (   self,
  entry 
)

Forward log entry to log widget and show an error popup if it is an error message.

Parameters
dictentry: Log entry

◆ on_activate()

def managergui.ManagerGui.on_activate (   self)

Activation method called on change to active state.

This method creates the Manager main window.

◆ promptForShutdown()

def managergui.ManagerGui.promptForShutdown (   self,
  locked,
  broken 
)

Display a dialog, asking the user to confirm shutdown.

◆ reloadConfig()

def managergui.ManagerGui.reloadConfig (   self)

Reload the current config.

◆ startIPython()

def managergui.ManagerGui.startIPython (   self)

Create an IPython kernel manager and kernel.

Add modules to its namespace.


The documentation for this class was generated from the following file: