A Qt::ToolBox-based widget that has some convenience functions to display Roby::Plan objects using the PlanDisplay widget
# File lib/orocos/roby/gui/stacked_display.rb, line 8 def initialize(parent = nil) super @task_mappings = Hash.new end
Removes all existing displays
# File lib/orocos/roby/gui/stacked_display.rb, line 15 def clear while count > 0 removeItem(0) end end
Adds a plain Qt::Widget with the given title
# File lib/orocos/roby/gui/stacked_display.rb, line 38 def push(title, widget) add_item(widget, title) end
Adds a PlanDisplay widget with the given title and parameters
# File lib/orocos/roby/gui/stacked_display.rb, line 22 def push_plan(title, mode, plan, engine, options) display = Ui::PlanDisplay.new(self) display.connect(SIGNAL('updated(QVariant&)')) do |error| emit updated(title, error) end display.plan = Roby::Plan.new task_mappings[display] = plan.deep_copy_to(display.plan) display.mode = mode display.options = options display.display add_item(display, title) display end