Class: AGTkInspector

Inherits:
AGInspector show all
Defined in:
ext/ae-rad/ae-rad-inspector.rb

Instance Attribute Summary

Attributes inherited from AGInspector

#tabs

Instance Method Summary collapse

Methods inherited from AGInspector

#activate, class_inspector_renderer, instance

Methods inherited from Inspector

add_wrapper_class, iclass

Constructor Details

#initialize(_host, _agobj) ⇒ AGTkInspector

Returns a new instance of AGTkInspector.



1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
# File 'ext/ae-rad/ae-rad-inspector.rb', line 1485

def initialize( _host, _agobj)
  super( _host, _agobj)
  @ojts_layout = _host.insert('end','layout','text'=>'Layout')
  @top_panel = TkFrame.new(@ojts_layout, Arcadia.style('panel')){
    place('x'=>0, 'y'=>0, 'relheight'=>1, 'relwidth'=>1)
  }
  @tabs['LayoutType'] = InspectList.new('layout_man', @top_panel,85,false)
  @mid_panel = TkFrame.new(@ojts_layout, Arcadia.style('panel')){
    place('x'=>0, 'y'=>20,'relheight'=>1, 'relwidth'=>1)
  }
  @tabs['Layout'] = InspectList.new('...',@mid_panel, 85)
  
  @ojts_winfo = _host.insert('end','winfo','text'=>'Winfo')
  @tabs['Winfo'] = InspectList.new('winfo', @ojts_winfo)
  
  
  #@ojts_bind = _host.insert('end','bind','text'=>'Binding')
  #@tabs['Binding'] =  InspectMultiList.new('bind',@ojts_bind)
end

Instance Method Details

#clearObject



1505
1506
1507
1508
# File 'ext/ae-rad/ae-rad-inspector.rb', line 1505

def clear
  super
  @tabs['LayoutType'].clear
end

#recicle_inspects(_agobj) ⇒ Object



1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
# File 'ext/ae-rad/ae-rad-inspector.rb', line 1510

def recicle_inspects(_agobj)
  super(_agobj)
  if _agobj.props['layout_man'] != nil
    _fam = _agobj.props['layout_man']['manager']['get'].call
    @tabs['Layout'].family=_fam
    @tabs['Layout'].updatelines(_agobj, _agobj.props[_fam])
  end
  @tabs['LayoutType'].updatelines(_agobj, _agobj.props['layout_man'])
  @tabs['Winfo'].updatelines(_agobj, _agobj.props['winfo'])
  #@tabs['Binding'].update(_agobj)
end

#update_property(obj, _fam, _name, _value) ⇒ Object



1522
1523
1524
1525
1526
1527
1528
1529
1530
# File 'ext/ae-rad/ae-rad-inspector.rb', line 1522

def update_property(obj, _fam, _name, _value)
  if ['place','pack','grid'].include?(_fam)
    @tabs['Layout'].modProp(_name, _value)
  elsif ['layout_man'].include?(_fam)
    @tabs['LayoutType'].modProp(_name, _value)
  else
    super(obj, _fam, _name, _value)
  end
end