//--------------------------------------------------------------------------- #ifndef Unit1H #define Unit1H //--------------------------------------------------------------------------- #include #include #include #include #include #include #include #include #include #include #include #include "CPort.hpp" //--------------------------------------------------------------------------- class TForm1 : public TForm { __published: // IDE-managed Components TOpenDialog *OpenDialog1; TMainMenu *MainMenu1; TMenuItem *FileMenu; TMenuItem *About1; TMenuItem *FileExit; TMenuItem *FileOpen; TPanel *SpeedPanel; TSpeedButton *FileOpenSpeedButton; TSpeedButton *FileExitSpeedButton; TLabel *kmText; TTimer *Timer1; TTrackBar *PlaybackSpeedSelector; TLabel *PlaybackSpeed; TLabel *GPGGADataOutputLabel; TEdit *GPGGADataOutput; TGroupBox *GroupBox1; TLabel *GMTTimeLabel; TLabel *LocalTime; TEdit *GMTTimeData; TEdit *LocalTimeData; TComPort *ComPort; TMenuItem *ComPortMenu; TMenuItem *ComPortMenuCom1; TMenuItem *ComPortMenuCom2; TMenuItem *ComPortMenuCom3; TMenuItem *ComPortMenuCom4; TMenuItem *ComPortMenuOff; TLabel *testLabel; TLabel *SatsInViewLabel; TEdit *SatsInView; TLabel *AltitudeLabel; TEdit *Altitude; TLabel *GPRMCDataOutputLabel; TEdit *GPRMCDataOutput; TLabel *SpeedLabel; TEdit *Speed; void __fastcall FileOpenClick(TObject *Sender); void __fastcall FileExitClick(TObject *Sender); void __fastcall SpeedButton1Click(TObject *Sender); void __fastcall Timer1Timer(TObject *Sender); void __fastcall PlaybackSpeedSelectorChange(TObject *Sender); void __fastcall ComPortMenuOffClick(TObject *Sender); void __fastcall ComPortMenuCom1Click(TObject *Sender); void __fastcall ComPortMenuCom2Click(TObject *Sender); void __fastcall ComPortMenuCom3Click(TObject *Sender); void __fastcall ComPortMenuCom4Click(TObject *Sender); private: // User declarations FILE *inputFile; int timerCounter; void __fastcall TForm1::ProcGPSData(); bool __fastcall TForm1::contains (char *line, char* search); int __fastcall TForm1::lengthOf (char* line); void __fastcall TForm1::GPS_get_word_time (char *time, int index, char *sentence); void __fastcall TForm1::conv_GMT_to_local (char *gmttime, char *localtime); void __fastcall TForm1::fix_newline (char *temp); int __fastcall TForm1::GPS_get_word_int (int index, char *sentence); float __fastcall TForm1::GPS_get_word_float (int index, char *sentence); public: // User declarations __fastcall TForm1(TComponent* Owner); }; //--------------------------------------------------------------------------- extern PACKAGE TForm1 *Form1; //--------------------------------------------------------------------------- #endif