Method: AimsProject::GeometryEditor#unit_cell=

Defined in:
lib/aims_project/geometry_editor.rb

#unit_cell=(uc) ⇒ Object



72
73
74
75
76
77
78
79
80
81
82
83
84
85
# File 'lib/aims_project/geometry_editor.rb', line 72

def unit_cell=(uc)
  @unit_cell = uc
  if @toggle_source.is_checked
    @text_ctrl.set_read_only(false)
    @text_ctrl.set_text(@unit_cell.raw_input)
    @text_ctrl.set_read_only(false)
    
  else
    @text_ctrl.set_read_only(false)
    @text_ctrl.set_text(@unit_cell.input_geometry)
    @text_ctrl.set_read_only(true)
    
  end
end