class ArcadiaMainToolbar
Constants
- SUF
Attributes
frame[R]
Public Class Methods
new(_arcadia, _frame)
click to toggle source
# File lib/a-core.rb, line 1601 def initialize(_arcadia, _frame) @arcadia = _arcadia @frame = _frame @frame.borderwidth(Arcadia.conf('panel.borderwidth')) #@frame.highlightbackground(Arcadia.conf('panel.highlightbackground')) @frame.relief(Arcadia.conf('panel.relief')) @context_frames = Hash.new @last_context = nil @last_item_for_context = Hash.new end
Public Instance Methods
new_item(_sender, _args= nil)
click to toggle source
Calls superclass method
ArcadiaUserControl#new_item
# File lib/a-core.rb, line 1613 def new_item(_sender, _args= nil) _context = _args['context'] _context_path = _args['context_path'] if @last_context && _context != @last_context && _context_path.nil? new_separator end @last_context = _context _args['frame']=@frame if _context_path && @last_item_for_context[_context_path] _args['last_item_for_context']=@last_item_for_context[_context_path] end super(_sender, _args) if _context_path && items[_args['name']] @last_item_for_context[_context_path] = items[_args['name']] end if _context && items[_args['name']] @last_item_for_context[_context] = items[_args['name']] end end
new_separator()
click to toggle source
# File lib/a-core.rb, line 1634 def new_separator Tk::BWidget::Separator.new(@frame, :orient=>'vertical', :background=>Arcadia.conf('button.highlightbackground') ).pack('side' =>'left', :padx=>2, :pady=>2, :fill=>'y',:anchor=> 'w') end