Class: Ruber::State::ConfigWidget
- Inherits:
-
Qt::Widget
- Object
- Qt::Widget
- Ruber::State::ConfigWidget
- Defined in:
- plugins/state/state.rb
Overview
Configuration widget for the State plugin
Constant Summary
- STARTUP_BEHAVIOURS =
A list of different behaviour the plugin can have at startup
[ [:default_environment, :projects], [:projects], [:default_environment], [] ]
Instance Method Summary (collapse)
-
- (ConfigWidget) initialize(parent = nil)
constructor
A new instance of ConfigWidget.
-
- (Symbol) startup_behaviour
Returns the symbol associated with the startup behaviour selected in the widget entry in the Startup behaviour widget.
-
- (Object) startup_behaviour(val)
Selects the correct startup behaviour in the associated widget.
Constructor Details
- (ConfigWidget) initialize(parent = nil)
A new instance of ConfigWidget
524 525 526 527 528 |
# File 'plugins/state/state.rb', line 524 def initialize parent = nil super @ui = Ui::StateConfigWidget.new @ui.setup_ui self end |
Instance Method Details
- (Symbol) startup_behaviour
Returns the symbol associated with the startup behaviour selected in the widget entry in the Startup behaviour widget
546 547 548 |
# File 'plugins/state/state.rb', line 546 def startup_behaviour STARTUP_BEHAVIOURS[@ui._state__startup_behaviour.current_index] end |
- (Object) startup_behaviour=(val)
Selects the correct startup behaviour in the associated widget
of the entries in STARTUP_BEHAVIOURS
536 537 538 539 |
# File 'plugins/state/state.rb', line 536 def startup_behaviour= val @ui._state__startup_behaviour.current_index = STARTUP_BEHAVIOURS.index val nil end |