Logo Search packages:      
Sourcecode: nautic version File versions  Download package

void MainDialog::GetData (  ) [protected, virtual]

tempo tm e local///////////////////////////// calcolo la data e l'ora utc

Definition at line 762 of file main.cpp.

{
      ////////////////////posizione////////////////////////////////////////

      long deg,min,sec,deglon,minlon,seclon;
      deg = 0;
      min = 0;
      sec = 0;
      deglon = 0;
      minlon = 0;
      seclon = 0;
      wxString strDeg=m_textCtrl11->GetValue();
      wxString strMin=m_textCtrl12->GetValue();
      wxString strSec=m_textCtrl1->GetValue();
      wxString strDeglon=m_textCtrl13->GetValue();
      wxString strMinlon=m_textCtrl14->GetValue();
      wxString strSeclon=m_textCtrl15->GetValue();
      strDeg.ToLong(&deg);
      strMin.ToLong(&min);
      strSec.ToLong(&sec);
      strDeglon.ToLong(&deglon);
      strMinlon.ToLong(&minlon);
      strSeclon.ToLong(&seclon);
      latitude =  deg+(min+(sec/60.0000))/60.0000;
      longitude =  deglon+(minlon+(seclon/60.0000))/60.0000;


      if(m_choice1->GetSelection()==1)
            latitude=  -latitude;
      else
            latitude= +latitude;
      if(m_choice11->GetSelection()==1)
            longitude= -longitude;
      else
            longitude= +longitude;
      ////////////////////////fatto latitudine longitudine/////////////////////////////////////////
      //////////////////////tempo tm e local/////////////////////////////
      ///calcolo la data e l'ora utc

      wxString strYear=m_choice6->GetStringSelection();
      strYear.ToDouble(&iYear);
      iMonth=m_choice5->GetSelection()+1;

      wxString strDay=m_choice4->GetStringSelection();
      strDay.ToDouble(&iDay);
      wxString strHour=m_textCtrl111->GetValue();

      strHour.ToDouble(&iHour);
      wxString strMinute=m_textCtrl112->GetValue();
      strMinute.ToDouble(&iMinute);

      wxString strSeconds=m_textCtrl113->GetValue();
      strSeconds.ToDouble(&iSeconds);
}

Generated by  Doxygen 1.6.0   Back to index