panic.gui.gui module

Classes

AlarmGUI

class panic.gui.gui.AlarmGUI(parent=None, filters='*', options=None, mainwindow=None)[source]
AcknowledgeAlarm(alarm=None)[source]

THIS METHOD IS NEVER CALLED!?!?!?!?!?!?!

alarmSorter(obj)[source]

obj is a panic.Alarm object

hurry()[source]

on ValueChanged event a refresh will be scheduled in 1 second time (so all events received in a single second will be summarized)

onFilter(*args, **kwargs)[source]

Forces an update of alarm list order and applies filters (do not reload database).

onRefresh(*args, **kwargs)[source]

Just checks order, no reload, no filters

showList(*args, **kwargs)[source]

This method just redraws the list keeping the currently selected items

Functions

main_gui

panic.gui.gui.main_gui()[source]

main

panic.gui.gui.main(args=[])[source]

raw autodoc

class panic.gui.gui.AlarmGUI(parent=None, filters='*', options=None, mainwindow=None)[source]

Bases: PyQt4.QtGui.QWidget, panic.gui.widgets.iValidatedWidget

AcknowledgeAlarm(alarm=None)[source]

THIS METHOD IS NEVER CALLED!?!?!?!?!?!?!

MAX_ALARMS = 30
MAX_REFRESH = 3
REFRESH_TIME = 5000
RELOAD_TIME = 60000
ResetAlarm(alarm=None)[source]
USE_EVENT_REFRESH = False
alarmSorter(obj)[source]

obj is a panic.Alarm object

buildList(*args, **kwargs)[source]
checkBoxMultiSel()[source]
close()[source]
connectAll()[source]
editFile()[source]
emitValueChanged()[source]
enableDelete(tmp)[source]
filterByState(source)[source]
findListSource(dev=None)[source]
getAlarms()[source]
getCurrentAlarm()[source]
getCurrentTag()[source]
getCurrents()[source]
getSelectedRows(extend=False)[source]
getSeverities()[source]
hurry()[source]

on ValueChanged event a refresh will be scheduled in 1 second time (so all events received in a single second will be summarized)

loadFromFile(default='*.csv', ask=True)[source]
onAckStateChanged(checked=False)[source]
onClone()[source]
onConfig()[source]
onContextMenu(*args, **kwargs)[source]
onDelete(tag=None, ask=True)[source]
onDisStateChanged(checked=False)[source]
onEdit(edit=True)[source]
onFilter(*args, **kwargs)[source]

Forces an update of alarm list order and applies filters (do not reload database).

onItemSelected()[source]
onNew()[source]
onRefresh(*args, **kwargs)[source]

Just checks order, no reload, no filters

onRegExUpdate()[source]
onReload(*args, **kwargs)[source]
onSelectAllNone()[source]
onSevFilter()[source]
onView()[source]
printRows()[source]
regExFiltering(*args, **kwargs)[source]
removeAlarmRow(alarm_tag)[source]
saveToFile()[source]
setAlarmRowModel(nr, obj, alarm, use_list)[source]
setComboBox(comboBox, values, sort=False)[source]
setExpertView(checked=None)[source]
setFirstCombo()[source]
setModel(model)[source]
setRowModels()[source]
setSecondCombo()[source]
setSeverity(tag, severity)[source]
setViewMenu(action=None)[source]
showAlarmPreview()[source]
showList(*args, **kwargs)[source]

This method just redraws the list keeping the currently selected items

updateStatusLabel()[source]
viewHistory()[source]
panic.gui.gui.main(args=[])[source]
panic.gui.gui.main_gui()[source]