runmanager.__main__.GroupTab

class runmanager.__main__.GroupTab(tabWidget, globals_file, group_name)[source]

Bases: object

__init__(tabWidget, globals_file, group_name)[source]

Methods

__init__(tabWidget, globals_file, group_name)

change_global_expansion(global_name, ...)

change_global_units(global_name, ...)

change_global_value(global_name, ...[, ...])

check_for_boolean_values(item)

Checks if the value is 'True' or 'False'.

close()

complete_change_global_value(global_name, ...)

connect_signals()

delete_global(global_name[, confirm])

do_model_sort()

get_global_item_by_name(global_name, column)

Returns an item from the row representing a global in the globals model.

globals_changed()

Called whenever something about a global has changed.

make_global_row(name[, value, units, expansion])

new_global(global_name)

on_globals_delete_selected_triggered()

on_globals_model_expansion_changed(item)

on_globals_model_item_changed(item)

on_globals_model_name_changed(item)

Handles global renaming and creation of new globals due to the user editing the <click to add global> item

on_globals_model_units_changed(item)

on_globals_model_value_changed(item)

on_globals_set_selected_bools_triggered(state)

on_tableView_globals_context_menu_requested(point)

on_tableView_globals_leftClicked(index)

populate_model()

rename_global(previous_global_name, ...)

set_file_and_group_name(globals_file, group_name)

Provided as a separate method so the main app can call it if the group gets renamed

set_tab_icon(icon_string)

update_parse_indication(active_groups, ...)

Attributes

COLOR_BOOL_OFF

COLOR_BOOL_ON

COLOR_ERROR

COLOR_OK

GLOBALS_COL_DELETE

GLOBALS_COL_EXPANSION

GLOBALS_COL_NAME

GLOBALS_COL_UNITS

GLOBALS_COL_VALUE

GLOBALS_DUMMY_ROW_TEXT

GLOBALS_ROLE_IS_BOOL

GLOBALS_ROLE_IS_DUMMY_ROW

GLOBALS_ROLE_PREVIOUS_TEXT

GLOBALS_ROLE_SORT_DATA

COLOR_BOOL_OFF = '#608060'
COLOR_BOOL_ON = '#63F731'
COLOR_ERROR = '#F79494'
COLOR_OK = '#A5F7C6'
GLOBALS_COL_DELETE = 0
GLOBALS_COL_EXPANSION = 4
GLOBALS_COL_NAME = 1
GLOBALS_COL_UNITS = 3
GLOBALS_COL_VALUE = 2
GLOBALS_DUMMY_ROW_TEXT = '<Click to add global>'
GLOBALS_ROLE_IS_BOOL = 260
GLOBALS_ROLE_IS_DUMMY_ROW = 257
GLOBALS_ROLE_PREVIOUS_TEXT = 259
GLOBALS_ROLE_SORT_DATA = 258
change_global_expansion(global_name, previous_expansion, new_expansion)[source]
change_global_units(global_name, previous_units, new_units)[source]
change_global_value(global_name, previous_value, new_value, interactive=True)[source]
check_for_boolean_values(item)[source]

Checks if the value is ‘True’ or ‘False’. If either, makes the units cell checkable, uneditable, and coloured to indicate the state. The units cell can then be clicked to toggle the value.

close()[source]
complete_change_global_value(global_name, previous_value, new_value, item, previous_background, previous_icon, interactive=True)[source]
connect_signals()[source]
delete_global(global_name, confirm=True)[source]
do_model_sort()[source]
get_global_item_by_name(global_name, column, previous_name=None)[source]

Returns an item from the row representing a global in the globals model. Which item is returned is set by the column argument.

globals_changed()[source]

Called whenever something about a global has changed. call app.globals_changed to inform the main application that it needs to parse globals again. self.update_parse_indication will be called by the main app when parsing is done, and will set the colours and tooltips appropriately

make_global_row(name, value='', units='', expansion='')[source]
new_global(global_name)[source]
on_globals_delete_selected_triggered()[source]
on_globals_model_expansion_changed(item)[source]
on_globals_model_item_changed(item)[source]
on_globals_model_name_changed(item)[source]

Handles global renaming and creation of new globals due to the user editing the <click to add global> item

on_globals_model_units_changed(item)[source]
on_globals_model_value_changed(item)[source]
on_globals_set_selected_bools_triggered(state)[source]
on_tableView_globals_context_menu_requested(point)[source]
on_tableView_globals_leftClicked(index)[source]
populate_model()[source]
rename_global(previous_global_name, new_global_name)[source]
set_file_and_group_name(globals_file, group_name)[source]

Provided as a separate method so the main app can call it if the group gets renamed

set_tab_icon(icon_string)[source]
update_parse_indication(active_groups, sequence_globals, evaled_globals)[source]