Class: OutputController

Inherits:
Shirka::Qt::TreeController show all
Defined in:
lib/troshka/output/controller.rb

Instance Attribute Summary

Attributes inherited from Shirka::Controller

#app, #components, #data, #parent, #view

Instance Method Summary collapse

Methods inherited from Shirka::Qt::TreeController

#add_item, #init, #item_controller_class, #on_component_added, #on_double_clicked, #view_class

Methods inherited from Shirka::Controller

#add_component, #add_item, #init, #initialize, #item_controller_class, #on_component_added, #on_component_adding, #view_class

Methods included from Shirka::Eventalk

#add_watcher, #fire, #forward, #watch, #watchers

Constructor Details

This class inherits a constructor from Shirka::Controller

Instance Method Details

#on_code_evaluated(e) ⇒ Object



6
7
8
# File 'lib/troshka/output/controller.rb', line 6

def on_code_evaluated(e)
  add_item e.msg
end

#on_code_selected(e) ⇒ Object



10
11
12
# File 'lib/troshka/output/controller.rb', line 10

def on_code_selected(e)
  forward e
end

#on_starting(e) ⇒ Object



2
3
4
# File 'lib/troshka/output/controller.rb', line 2

def on_starting(e)
  watch app.components[:editor]
end