class Vizkit::LogTaskItem

Public Class Methods

new(task,options = Hash.new) click to toggle source
Calls superclass method Vizkit::VizkitItem.new
# File lib/vizkit/vizkit_items.rb, line 1102
def initialize(task,options = Hash.new)
    super()
    @task = task
    @options = Kernel.validate_options options,:item_type => :label
    if @options[:item_type] == :label
        setText task.name
        @props = PropertiesItem.new(task,:editable => false)
        @props2 = PropertiesItem.new(task,:item_type => :value,:editable => false)
        @ports = LogOutputPortsItem.new(task)
        @ports2 = LogOutputPortsItem.new(task,:item_type => :value)
        appendRow [@props,@props2]
        appendRow [@ports,@ports2]
    else
        setText task.file_path
    end
end

Public Instance Methods

context_menu(pos,parent_widget,items = []) click to toggle source
# File lib/vizkit/vizkit_items.rb, line 1119
def context_menu(pos,parent_widget,items = [])
    ContextMenu.log_task(@task,parent_widget,pos)
end