class Ui::StackedDisplay

A Qt::ToolBox-based widget that has some convenience functions to display Roby::Plan objects using the PlanDisplay widget

Attributes

task_mappings[R]

Public Class Methods

new(parent = nil) click to toggle source
Calls superclass method
# File lib/orocos/roby/gui/stacked_display.rb, line 8
def initialize(parent = nil)
    super

    @task_mappings = Hash.new
end

Public Instance Methods

clear() click to toggle source

Removes all existing displays

# File lib/orocos/roby/gui/stacked_display.rb, line 15
def clear
    while count > 0
        removeItem(0)
    end
end
push(title, widget) click to toggle source

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
push_plan(title, mode, plan, engine, options) click to toggle source

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