Class: Cosmos::StatusTab
- Defined in:
- lib/cosmos/tools/cmd_tlm_server/gui/status_tab.rb
Overview
Implements the status tab in the Command and Telemetry Server GUI
Instance Method Summary collapse
-
#populate(tab_widget) ⇒ Object
Create the status tab and add it to the tab_widget.
-
#update ⇒ Object
Update the status tab in the GUI.
Instance Method Details
#populate(tab_widget) ⇒ Object
Create the status tab and add it to the tab_widget
22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/cosmos/tools/cmd_tlm_server/gui/status_tab.rb', line 22 def populate() scroll = Qt::ScrollArea.new = Qt::Widget.new layout = Qt::VBoxLayout.new() populate_limits_status(layout) populate_api_status(layout) populate_system_status(layout) populate_background_status(layout) # Set the scroll area widget last now that all the items have been layed out scroll.setWidget() .addTab(scroll, "Status") end |
#update ⇒ Object
Update the status tab in the GUI
38 39 40 41 42 43 |
# File 'lib/cosmos/tools/cmd_tlm_server/gui/status_tab.rb', line 38 def update update_limits_set() update_api_status() update_system_status() update_background_task_status() end |