Method: Ruber::StatusBar#initialize
- Defined in:
- lib/ruber/main_window/status_bar.rb
#initialize(parent) ⇒ StatusBar
Creates a new StatusBar. parent is the status bar’s parent widget
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/ruber/main_window/status_bar.rb', line 35 def initialize parent super parent @view = nil @cursor_position_label = Qt::Label.new(self){self.margin = 3} @status_label = Qt::Label.new self @mode_label = Qt::Label.new(self){self.margin = 3} @selection_mode_label = Qt::Label.new(self){self.margin = 3} # @cursor_position_label.margin = 3 # @status_label.margin = 3 # @mode_label.margin = 3 # @selection_mode_label.margin = 3 # @status_label.margin = 3 @cursor_position_label @status_label @mode_label @selection_mode_label update end |