Class: MethodsView

Inherits:
Shirka::Qt::TreeView show all
Defined in:
lib/troshka/methods/view.rb

Instance Attribute Summary

Attributes inherited from Shirka::View

#controller, #data

Instance Method Summary collapse

Methods inherited from Shirka::Qt::TreeView

#build, #on_view_adding, #widget_class

Methods inherited from Shirka::View

#build, #init, #initialize, #on_component_added, #on_view_added, #on_view_adding, #widget, #widget_class

Methods included from Shirka::Eventalk

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

Constructor Details

This class inherits a constructor from Shirka::View

Instance Method Details

#clearObject



6
7
8
# File 'lib/troshka/methods/view.rb', line 6

def clear
  widget.clear
end

#labelObject



2
3
4
# File 'lib/troshka/methods/view.rb', line 2

def label
  "Methods"
end

#style(widget) ⇒ Object



10
11
12
# File 'lib/troshka/methods/view.rb', line 10

def style(widget)
  widget.setHeaderLabels ["Property", "Value"] 
end