Class: AGInspector

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

Direct Known Subclasses

AGTkInspector

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Inspector

add_wrapper_class, iclass

Constructor Details

#initialize(_host, _agobj) ⇒ AGInspector

Returns a new instance of AGInspector.



1443
1444
1445
1446
1447
1448
1449
1450
1451
# File 'ext/ae-rad/ae-rad-inspector.rb', line 1443

def initialize(_host, _agobj)
  @@instance = self
  @tabs = Hash.new
  @code = Hash.new
  @ag_signature_obj = _agobj
  @ojts_p = _host.insert('end','props','text'=>'Properties')
  _host.raise('props')
  @tabs['Properties'] = InspectList.new('property', @ojts_p)
end

Instance Attribute Details

#tabsObject (readonly)

Returns the value of attribute tabs.



1441
1442
1443
# File 'ext/ae-rad/ae-rad-inspector.rb', line 1441

def tabs
  @tabs
end

Class Method Details

.class_inspector_rendererObject



1457
1458
1459
# File 'ext/ae-rad/ae-rad-inspector.rb', line 1457

def AGInspector.class_inspector_renderer
  ObjiRenderer
end

.instanceObject



1453
1454
1455
# File 'ext/ae-rad/ae-rad-inspector.rb', line 1453

def AGInspector.instance
  @@instance
end

Instance Method Details

#activateObject



1471
1472
1473
# File 'ext/ae-rad/ae-rad-inspector.rb', line 1471

def activate

end

#clearObject



1475
1476
1477
# File 'ext/ae-rad/ae-rad-inspector.rb', line 1475

def clear
  @tabs['Properties'].clear
end

#recicle_inspects(_agobj) ⇒ Object



1461
1462
1463
# File 'ext/ae-rad/ae-rad-inspector.rb', line 1461

def recicle_inspects(_agobj)
  tabs['Properties'].updatelines(_agobj, _agobj.props['property'])
end

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



1465
1466
1467
1468
1469
# File 'ext/ae-rad/ae-rad-inspector.rb', line 1465

def update_property(obj, _fam, _name, _value)
  if _fam == 'property' 
    tabs['Properties'].modProp(_name, _value)
  end
end