<gh_stars>10-100
# Default POWTEX GUI config
"""NICOS GUI configuration for POWTEX."""

main_window = docked(
    hsplit(
        vsplit(
            # panel('nicos.clients.gui.panels.generic.GenericPanel',
            #       uifile = 'nicos_mlz/jcns/gui/jcnslogo.ui'),
            panel('nicos.clients.gui.panels.expinfo.ExpInfoPanel'),
        ),
        vsplit(
            panel('nicos.clients.gui.panels.status.ScriptStatusPanel'),
            panel('nicos.clients.gui.panels.console.ConsolePanel'),
        ),
        vsplit(
            panel('nicos.clients.gui.panels.devices.DevicesPanel'),
        ),
    ),
)

windows = [
    window('Setup', 'setup',
        tabbed(('Experiment', panel('nicos.clients.gui.panels.setup_panel.ExpPanel')),
               ('Setups', panel('nicos.clients.gui.panels.setup_panel.SetupsPanel')),
        ),
    ),
    window('Editor', 'editor',
        vsplit(
            panel('nicos.clients.gui.panels.scriptbuilder.CommandsPanel'),
            panel('nicos.clients.gui.panels.editor.EditorPanel'),
        ),
    ),
    window('Scans', 'plotter',
            panel('nicos.clients.gui.panels.scans.ScansPanel'),
    ),
    window('History', 'find',
            panel('nicos.clients.gui.panels.history.HistoryPanel'),
    ),
    window('Logbook', 'table',
            panel('nicos.clients.gui.panels.elog.ELogPanel'),
    ),
    window('Errors', 'errors',
            panel('nicos.clients.gui.panels.errors.ErrorPanel'),
    ),
]

tools = [
    tool('Downtime report', 'nicos.clients.gui.tools.downtime.DownTimeTool',
         sender='<EMAIL>'),
    tool('Sample environment logbooks',
         'nicos.clients.gui.tools.website.WebsiteTool',
         url='https://wiki.frm2.tum.de/se:jcns:log:index'),
    tool('Calculator', 'nicos.clients.gui.tools.calculator.CalculatorTool'),
    tool('Emergency stop button',
         'nicos.clients.gui.tools.estop.EmergencyStopTool',
         runatstartup=True),
]

# Default POWTEX GUI config
"""NICOS GUI configuration for POWTEX."""

main_window = docked(
    hsplit(
        vsplit(
            # panel('nicos.clients.gui.panels.generic.GenericPanel',
            #       uifile = 'nicos_mlz/jcns/gui/jcnslogo.ui'),
            panel('nicos.clients.gui.panels.expinfo.ExpInfoPanel'),
        ),
        vsplit(
            panel('nicos.clients.gui.panels.status.ScriptStatusPanel'),
            panel('nicos.clients.gui.panels.console.ConsolePanel'),
        ),
        vsplit(
            panel('nicos.clients.gui.panels.devices.DevicesPanel'),
        ),
    ),
)

windows = [
    window('Setup', 'setup',
        tabbed(('Experiment', panel('nicos.clients.gui.panels.setup_panel.ExpPanel')),
               ('Setups', panel('nicos.clients.gui.panels.setup_panel.SetupsPanel')),
        ),
    ),
    window('Editor', 'editor',
        vsplit(
            panel('nicos.clients.gui.panels.scriptbuilder.CommandsPanel'),
            panel('nicos.clients.gui.panels.editor.EditorPanel'),
        ),
    ),
    window('Scans', 'plotter',
            panel('nicos.clients.gui.panels.scans.ScansPanel'),
    ),
    window('History', 'find',
            panel('nicos.clients.gui.panels.history.HistoryPanel'),
    ),
    window('Logbook', 'table',
            panel('nicos.clients.gui.panels.elog.ELogPanel'),
    ),
    window('Errors', 'errors',
            panel('nicos.clients.gui.panels.errors.ErrorPanel'),
    ),
]

tools = [
    tool('Downtime report', 'nicos.clients.gui.tools.downtime.DownTimeTool',
         sender='<EMAIL>'),
    tool('Sample environment logbooks',
         'nicos.clients.gui.tools.website.WebsiteTool',
         url='https://wiki.frm2.tum.de/se:jcns:log:index'),
    tool('Calculator', 'nicos.clients.gui.tools.calculator.CalculatorTool'),
    tool('Emergency stop button',
         'nicos.clients.gui.tools.estop.EmergencyStopTool',
         runatstartup=True),
]
# Default POWTEX GUI config NICOS GUI configuration for POWTEX. # panel('nicos.clients.gui.panels.generic.GenericPanel', #       uifile = 'nicos_mlz/jcns/gui/jcnslogo.ui'),