class RUI::XmlGuiBuilder
Public Class Methods
new()
click to toggle source
Calls superclass method
# File lib/rui/toolkits/kde/kde.rb, line 217 def initialize super @action_opts = { } end
Public Instance Methods
action(name, opts = {})
click to toggle source
# File lib/rui/toolkits/kde/kde.rb, line 233 def action(name, opts = {}) Action(opts.merge(@action_opts).merge(:name => name)) end
action_list(name)
click to toggle source
# File lib/rui/toolkits/kde/kde.rb, line 248 def action_list(name) ActionList(:name => name) end
group(name, &blk)
click to toggle source
# File lib/rui/toolkits/kde/kde.rb, line 252 def group(name, &blk) if block_given? @action_opts = { :group => name } blk[self] @action_opts = { } else DefineGroup(:name => name) end end
separator()
click to toggle source
# File lib/rui/toolkits/kde/kde.rb, line 237 def separator self.Separator end
tool_bar(name, opts = { }, &blk)
click to toggle source
# File lib/rui/toolkits/kde/kde.rb, line 241 def tool_bar(name, opts = { }, &blk) ToolBar(:name => name) do |tb| tb.text(opts[:text]) if opts[:text] blk[tb] if block_given? end end