void
 Visit(LineSectorZone& oz)
 {
   fixed line_length =
     Units::ToSysDistance(GetFormValueFixed(*wf, _T("prpOZLineLength")));
   if (fabs(line_length - oz.getLength()) > fixed(49)) {
     oz.setLength(line_length);
     task_modified = true;
   }
 }
  void
  Visit(const LineSectorZone& oz)
  {
    hide_all();
    WndFrame* wp = ((WndFrame *)wf->FindByName(_T("frmOZLine")));
    if (wp)
      wp->show();

    LoadFormProperty(*wf, _T("prpOZLineLength"),
                     ugDistance, oz.getLength());
  }
Example #3
0
 void
 Visit(const LineSectorZone& oz)
 {
   ozUserSize = oz.getLength();
 }
Example #4
0
void 
Serialiser::Visit(const LineSectorZone& data)
{
  m_node.set_attribute(_T("type"), _T("Line"));
  m_node.set_attribute(_T("length"), data.getLength());
}