maverig.views¶
maverig.views.abstractView
maverig.views.attributePanelView
maverig.views.modePanelView
maverig.views.componentWizardView
maverig.views.consolePanelView
maverig.views.dialogs
maverig.views.mainWindow
maverig.views.menuBarView
maverig.views.progressView
maverig.views.propertyPanelView
maverig.views.scenarioPanelView
maverig.views.settingsView
maverig.views.statusBarView
maverig.views.toolbarView
maverig.views.abstractView
¶
-
class
maverig.views.abstractView.
AbstractView
¶ Bases:
object
maverig.views.attributePanelView
¶
-
class
maverig.views.attributePanelView.
AttributePanelView
¶ Bases:
PySide.QtGui.QScrollArea
,maverig.views.abstractView.AbstractView
Represents the attribute panel.
-
init_ui
()¶ Init the ui structure for the attribute panel.
-
create_attribute_panel
()¶ Initially create the container layout of the attribute panel.
-
create_attribute_cell
(name, caption, unit, step_size, lines_labels, lines_values, lines_colors, graph_available)¶ Create an attribute cell for every attribute of a selected element.
-
clear_container
()¶
-
update_info_label
(value)¶
-
translate
()¶
-
-
class
maverig.views.attributePanelView.
AttributeCell
(name, caption, unit, sim_step_size, lines_labels, lines_values, lines_colors, graph_available, view)¶ Bases:
PySide.QtGui.QGroupBox
,maverig.views.abstractView.AbstractView
Represents one cell which is stored in the container for one attribute.
-
translate
()¶
-
start_scoll_to_center_anim
()¶
-
set_graph_visibility
(value)¶
-
create_graph
()¶
-
resizeEvent
(event)¶ adjust graph labels after resize with single shot timer
-
on_draw_graph
()¶ auto-adjust padding to lables Taken from http://matplotlib.org/faq/howto_faq.html#automatically-make-room-for-tick-labels. Workaround for pyplot.tight_layout() due to unpredictable ValueErrors and slowness issues. return True if graph has been redrawed on canvas.
-
draw_canvas
()¶ draw matplotlib graph on canvas. return True if drawing has been successful
-
change_content
(current_value, multivalue, lines_values)¶ Change and update the dynamic content of the attribute cell without recreating the ui.
-
maverig.views.modePanelView
¶
-
class
maverig.views.modePanelView.
ModePanelView
¶ Bases:
PySide.QtGui.QScrollArea
,maverig.views.abstractView.AbstractView
Represents the mode panel. A component can be added by activating the necessary comp mode in the scenarioPanel. A comp mode can be activated by clicking on the appropriate button.
-
init_ui
()¶
-
create_components_grid
(published_components)¶ return a grid layout with components according to component configuration
-
create_category_layout
(category)¶
uncheck all buttons
Parameters: - icon_path – complete icon path
- tool_tip – description of the button
- btn_w – button width
- btn_h – button high
- icn_w – icon widht
- icn_h – icon high
Returns: qpushbutton
-
static
set_svg_icon
(btn, icon_path, width, height)¶ draws an svg icon on button btn
if a component button has been selected it will increase its size
if a component button has been deselected it will get a smaller size
-
contextMenuEvent
(event)¶
-
maverig.views.componentWizardView
¶
-
maverig.views.componentWizardView.
is_acceptable
(l_edit)¶
-
class
maverig.views.componentWizardView.
IntroPage
(pres, parent=None)¶ Bases:
PySide.QtGui.QWizardPage
initializes the first dialog to add general component information
-
icon_update
= <MagicMock id='140678358220752'>¶
-
add_new_icon
()¶
-
simulator_update
()¶
-
category_update
()¶
-
new_category_dialog
()¶ Open a dialog to enter the new for a new component category.
-
check_state
(*args, **kwargs)¶
-
isComplete
()¶
-
-
class
maverig.views.componentWizardView.
AttributeParameterPage
(pres, parent=None)¶ Bases:
PySide.QtGui.QWizardPage
-
add_new_parameter_tab
()¶ If the button in the corner of the tab container is pushed there has to be a new tab for an individual parameter
-
add_new_attribute_tab
()¶ If the button in the corner of the tab container is pushed there has to be a new tab for an individual attribute
-
isComplete
()¶
-
-
class
maverig.views.componentWizardView.
ConclusionPage
(parent=None)¶ Bases:
PySide.QtGui.QWizardPage
-
initializePage
()¶
-
-
class
maverig.views.componentWizardView.
Tabs
(tab_factory_method)¶ Bases:
PySide.QtGui.QTabWidget
-
tabInserted
(index)¶
-
tabRemoved
(index)¶
-
-
class
maverig.views.componentWizardView.
ParameterTab
¶ Bases:
PySide.QtGui.QWidget
-
state_checked
= <PySide.QtCore.Signal object>¶
-
check_state
()¶
-
is_ok
()¶
-
maverig.views.consolePanelView
¶
-
class
maverig.views.consolePanelView.
ConsolePanelView
¶ Bases:
PySide.QtGui.QScrollArea
,maverig.views.abstractView.AbstractView
Represents console output. Every action triggered by the user is documented in the console output. This helps the user to follow his triggered actions.
-
init_ui
()¶
-
translate
()¶
-
maverig.views.dialogs
¶
-
class
maverig.views.dialogs.
SimulationTimeDialog
¶ Bases:
object
Represents the simulation time dialog.
-
show
(sim_start, sim_end, sim_step_size, vid_speed)¶
-
convert_slider_value
(val)¶
-
-
maverig.views.dialogs.
go_to_time_dialog
(sim_time_instances, sim_index)¶ Shows a dialog to go to an specific simulation time
-
maverig.views.dialogs.
inform_dialog
()¶
-
maverig.views.dialogs.
error_dialog
(title, text, info_text)¶
-
maverig.views.dialogs.
about_dialog
()¶
-
maverig.views.dialogs.
participant
()¶
-
maverig.views.dialogs.
show_license
()¶
-
maverig.views.dialogs.
element_already_exist
(string)¶
maverig.views.progressView
¶
-
class
maverig.views.progressView.
ProgressView
¶ Bases:
PySide.QtGui.QWidget
,maverig.views.abstractView.AbstractView
Represents the progress bar.
-
init_ui
()¶
-
translate
()¶
-
maverig.views.propertyPanelView
¶
-
class
maverig.views.propertyPanelView.
PropertyPanelView
¶ Bases:
PySide.QtGui.QScrollArea
,maverig.views.abstractView.AbstractView
Represents the property panel. Every component has specific properties which are displayed within this panel. The user can change the properties of every single component within this panel.
-
init_ui
()¶
-
create_property_label
(label, row)¶
-
create_property_icon
(icon_path, row)¶
-
delete_grid_widget
(index)¶
-
clear_prop_grid
()¶
-
create_integer_property_cell
(label, value, row, accepted_values)¶
-
create_float_property_cell
(label, value, row, accepted_values)¶
-
create_str_property_cell
(label, value, row, accepted_values)¶
-
create_household_cell
(row, num_hh)¶
-
change_household_cell
(row, num_hh)¶
-
alter_integer_property_cell
(value, row)¶
-
create_boolean_property_cell
(label, state, row)¶
-
alter_boolean_property_cell
(row, state)¶
-
create_file_property_cell
(label, value, row)¶
-
alter_file_property_cell
(row)¶
-
add_property_value_object
(l_edit)¶
-
open_file_dialog
(l_edit)¶
-
init_selection_counter
(count)¶
-
change_color
(widget, color)¶
-
set_new_accepted_value
(widget, new_value)¶
-
set_parameter_style
(widget, multivalue)¶ if multiple selected components have different values give a hint
-
property_grid
¶
-
property_value_objects
¶
-
static
set_svg_icon
(btn, icon_path, width, height)¶ draws an svg icon on button btn
-
maverig.views.scenarioPanelView
¶
-
class
maverig.views.scenarioPanelView.
ScenarioPanelView
¶ Bases:
PySide.QtGui.QGraphicsView
,maverig.views.abstractView.AbstractView
Represents the scenario panel.
-
init_ui
()¶
-
drawBackground
(painter, rect)¶
-
paint_datetime
(bgcolor_from, bgcolor_to)¶
-
refreshBg
()¶
-
draw_raster
(cell_size, painter)¶ draws a raster depending on the chosen cell size on the given painter device
-
mouseDoubleClickEvent
(event)¶
-
mousePressEvent
(event)¶
-
mouseMoveEvent
(event)¶ allow dragging newly created elements
-
mouseReleaseEvent
(event)¶
-
wheelEvent
(wheel_event)¶
-
dragEnterEvent
(event)¶
-
dragMoveEvent
(event)¶
-
dropEvent
(event)¶
-
contextMenuEvent
(event)¶
-
maverig.views.settingsView
¶
-
class
maverig.views.settingsView.
SettingsView
¶ Bases:
maverig.views.abstractView.AbstractView
Represents the settings dialog.
-
show
(cfg)¶ Shows a dialog to change the settings
-
maverig.views.statusBarView
¶
-
class
maverig.views.statusBarView.
StatusBarView
¶ Bases:
PySide.QtGui.QScrollArea
,maverig.views.abstractView.AbstractView
Represents the status bar.
-
init_ui
()¶
-
maverig.views.toolbarView
¶
-
class
maverig.views.toolbarView.
ToolbarView
¶ Bases:
PySide.QtGui.QToolBar
,maverig.views.abstractView.AbstractView
Represents the toolbar.
-
init_ui
()¶
-