taurus taurus

Previous topic

taurus.qt.qtgui.taurusgui.conf.tgconf_macrogui

Next topic

DockWidgetPanel

This Page

AppSettingsWizard

Inheritance diagram of AppSettingsWizard

class AppSettingsWizard(parent=None, jdrawCommand='jdraw', configFilePrefix='config')

Bases: PyQt4.QtGui.QWizard

This Wizard provide functionality for creating from scratch a configuration directory for a TaurusGUI based application.

The files in the configuration dir determine the default, permanent, pre-defined contents of the GUI. While the user may add/remove more elements at run time and those customizations will also be stored, this file defines what a user will find when launching the GUI for the first time.

Pages = Enumeration('Pages', ['IntroPage', 'ProjectPage', 'GeneralSettings', 'CustomLogoPage', 'SynopticPage', 'MacroServerInfo', 'InstrumentsPage', 'PanelsPage', 'ExternalAppPage', 'MonitorPage', 'OutroPage'])
addPage(page)
generateXml()

returns the xml code corresponding to the options selected in the wizard and a dictionary representing the paths that have been substituted.

Return type::class:~`str, dict` <:class:~`str`, :class:~`str`>
Returns:The return value is a tuple whose first element is the xml code and the second element is a dict where the keys are the destination files and the values are the original paths.
static getArrayFromNode(rootNode, nodeName, default=None)

returns an array contained by given Node :type rootNode: :class:~`etree.Element` :param rootNode: root node :param nodeName: the name of node to find :param default: returned value if node is None or contains empty string

getConfigFilePrefix()
getPages()
getProjectWarnings()
static getValueFromNode(rootNode, nodeName, default=None)

returns a value from given Node :type rootNode: :class:~`etree.Element` :param rootNode: root node :param nodeName: the name of node to find :param default: returned value if node is None or contains empty string

getXml()
getXmlConfigFileName()
loadXml(fname)

parses xml code and sets all pages according to its contents. It raises an exception if something could not be processed

Parameters:fname (:class:~`unicode`) – path to file containing xml code
setPage(id, page)
substitutionName(src)