Class: Ui::NotificationsConfig

Inherits:
BasicDisplayConfig show all
Defined in:
lib/roby/log/gui/notifications.rb

Instance Attribute Summary collapse

Attributes inherited from Ui_BasicDisplayConfig

#close, #gridLayout, #gridLayout1, #label, #spacerItem, #stream

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Ui_BasicDisplayConfig

#retranslateUi, #retranslate_ui, #setup_ui

Instance Attribute Details

#streams_modelObject (readonly)

Returns the value of attribute streams_model.



6
7
8
# File 'lib/roby/log/gui/notifications.rb', line 6

def streams_model
  @streams_model
end

Class Method Details

.setup_optparse(opt, replay) ⇒ Object



19
20
21
22
23
# File 'lib/roby/log/gui/notifications.rb', line 19

def self.setup_optparse(opt, replay)
    opt.on("--notifications") do
  replay.add_display('Notifications')
    end
end

Instance Method Details

#setupUi(streams_model, widget) ⇒ Object



8
9
10
11
12
13
14
15
16
17
# File 'lib/roby/log/gui/notifications.rb', line 8

def setupUi(streams_model, widget)
    super(widget)

    display = Roby::Log::NotificationsDisplay.new
    @streams_model = FilteredDataStreamListModel.new(stream, display, 'roby-events', streams_model.streams)
    Qt::Object.connect(stream, SIGNAL("currentIndexChanged(int)"), @streams_model, SLOT("selectedStream()"))
    @streams_model.source_model = streams_model
    stream.model    = @streams_model
    display
end