1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218
|
//---------------------------------------------------------------------------
#ifndef postmainH
#define postmainH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#include <Dialogs.hpp>
#include <ComCtrls.hpp>
#include <Buttons.hpp>
#include <FileCtrl.hpp>
#ifdef TCPP
#include <vcl\inifiles.hpp>
#else
#include <inifiles.hpp>
#endif
#include "rtklib.h"
//---------------------------------------------------------------------------
class TMainForm : public TForm
{
__published:
TPanel *Panel1;
TPanel *Panel2;
TPanel *Panel3;
TPanel *Panel4;
TPanel *Panel5;
TPanel *Message;
TButton *BtnPlot;
TButton *BtnView;
TButton *BtnToKML;
TButton *BtnOption;
TButton *BtnExec;
TButton *BtnExit;
TButton *BtnInputFile1;
TButton *BtnInputFile3;
TButton *BtnInputFile2;
TButton *BtnInputFile4;
TButton *BtnInputFile5;
TButton *BtnOutputFile;
TSpeedButton *BtnTime1;
TSpeedButton *BtnTime2;
TSpeedButton *BtnInputPlot1;
TSpeedButton *BtnInputView1;
TSpeedButton *BtnInputView3;
TSpeedButton *BtnInputPlot2;
TSpeedButton *BtnInputView2;
TSpeedButton *BtnInputView4;
TSpeedButton *BtnInputView5;
TSpeedButton *BtnAbout;
TSpeedButton *BtnKeyword;
TCheckBox *TimeStart;
TCheckBox *TimeEnd;
TCheckBox *TimeIntF;
TCheckBox *TimeUnitF;
TEdit *TimeY1;
TEdit *TimeH1;
TEdit *TimeY2;
TEdit *TimeH2;
TEdit *TimeUnit;
TUpDown *TimeY1UD;
TUpDown *TimeH1UD;
TUpDown *TimeY2UD;
TUpDown *TimeH2UD;
TComboBox *TimeInt;
TComboBox *InputFile1;
TComboBox *InputFile3;
TComboBox *InputFile2;
TComboBox *InputFile4;
TComboBox *InputFile5;
TComboBox *OutputFile;
TOpenDialog *OpenDialog;
TSaveDialog *SaveDialog;
TProgressBar *Progress;
TLabel *Label1;
TLabel *LabelInputFile1;
TLabel *LabelInputFile2;
TLabel *LabelInputFile3;
TLabel *LabelTimeInt;
TLabel *LabelTimeUnit;
TEdit *OutDir;
TCheckBox *OutDirEna;
TButton *BtnOutDir;
TSpeedButton *BtnOutputView2;
TSpeedButton *BtnOutputView1;
TLabel *LabelOutDir;
TComboBox *InputFile6;
TButton *BtnInputFile6;
TSpeedButton *BtnInputView6;
void __fastcall FormCreate (TObject *Sender);
void __fastcall FormShow (TObject *Sender);
void __fastcall FormClose (TObject *Sender, TCloseAction &Action);
void __fastcall BtnPlotClick (TObject *Sender);
void __fastcall BtnViewClick (TObject *Sender);
void __fastcall BtnToKMLClick (TObject *Sender);
void __fastcall BtnOptionClick (TObject *Sender);
void __fastcall BtnExecClick (TObject *Sender);
void __fastcall BtnStopClick (TObject *Sender);
void __fastcall BtnExitClick (TObject *Sender);
void __fastcall BtnAboutClick (TObject *Sender);
void __fastcall BtnTime1Click (TObject *Sender);
void __fastcall BtnTime2Click (TObject *Sender);
void __fastcall BtnInputFile1Click (TObject *Sender);
void __fastcall BtnInputFile3Click (TObject *Sender);
void __fastcall BtnInputFile2Click (TObject *Sender);
void __fastcall BtnInputFile4Click (TObject *Sender);
void __fastcall BtnInputFile5Click (TObject *Sender);
void __fastcall BtnOutputFileClick (TObject *Sender);
void __fastcall BtnInputView1Click (TObject *Sender);
void __fastcall BtnInputView3Click (TObject *Sender);
void __fastcall BtnInputView2Click (TObject *Sender);
void __fastcall BtnInputView4Click (TObject *Sender);
void __fastcall BtnInputView5Click (TObject *Sender);
void __fastcall BtnOutputView1Click(TObject *Sender);
void __fastcall BtnOutputView2Click(TObject *Sender);
void __fastcall BtnInputPlot1Click (TObject *Sender);
void __fastcall BtnInputPlot2Click (TObject *Sender);
void __fastcall BtnKeywordClick (TObject *Sender);
void __fastcall TimeStartClick (TObject *Sender);
void __fastcall TimeIntFClick (TObject *Sender);
void __fastcall TimeUnitFClick (TObject *Sender);
void __fastcall TimeH1UDChangingEx (TObject *Sender, bool &AllowChange,
short NewValue, TUpDownDirection Direction);
void __fastcall TimeY1UDChangingEx (TObject *Sender, bool &AllowChange,
short NewValue, TUpDownDirection Direction);
void __fastcall TimeY2UDChangingEx (TObject *Sender, bool &AllowChange,
short NewValue, TUpDownDirection Direction);
void __fastcall TimeH2UDChangingEx (TObject *Sender, bool &AllowChange,
short NewValue, TUpDownDirection Direction);
void __fastcall InputFile1Change (TObject *Sender);
void __fastcall OutDirEnaClick(TObject *Sender);
void __fastcall BtnOutDirClick(TObject *Sender);
void __fastcall OutDirChange(TObject *Sender);
void __fastcall BtnInputFile6Click(TObject *Sender);
void __fastcall BtnInputView6Click(TObject *Sender);
private:
void __fastcall DropFiles (TWMDropFiles msg); // for files drop
int __fastcall ExecProc (void);
int __fastcall GetOption(prcopt_t &prcopt, solopt_t &solopt, filopt_t &filopt);
int __fastcall ObsToNav (const char *obsfile, char *navfile);
AnsiString __fastcall FilePath(AnsiString file);
TStringList * __fastcall ReadList(TIniFile *ini, AnsiString cat,
AnsiString key);
void __fastcall WriteList(TIniFile *ini, AnsiString cat,
AnsiString key, TStrings *list);
void __fastcall AddHist (TComboBox *combo);
int __fastcall ExecCmd(AnsiString cmd, int show);
gtime_t __fastcall GetTime1(void);
gtime_t __fastcall GetTime2(void);
void __fastcall SetOutFile(void);
void __fastcall SetTime1(gtime_t time);
void __fastcall SetTime2(gtime_t time);
void __fastcall UpdateEnable(void);
void __fastcall LoadOpt(void);
void __fastcall SaveOpt(void);
BEGIN_MESSAGE_MAP
MESSAGE_HANDLER(WM_DROPFILES,TWMDropFiles,DropFiles);
END_MESSAGE_MAP(TForm);
public:
AnsiString IniFile;
// options
int PosMode,Freq,Solution,DynamicModel,IonoOpt,TropOpt,RcvBiasEst;
int ARIter,NumIter,CodeSmooth,TideCorr;
int OutCntResetAmb,FixCntHoldAmb,LockCntFixAmb,RovPosType,RefPosType;
int SatEphem,NavSys;
int RovAntPcv,RefAntPcv,AmbRes,GloAmbRes,BdsAmbRes;
int OutputHead,OutputOpt,OutputDatum;
int OutputHeight,OutputGeoid,DebugTrace,DebugStatus,BaseLineConst;
int SolFormat,TimeFormat,LatLonFormat,IntpRefObs,NetRSCorr,SatClkCorr;
int SbasCorr,SbasCorr1,SbasCorr2,SbasCorr3,SbasCorr4,TimeDecimal;
int SolStatic,SbasSat,MapFunc;
int PosOpt[6];
double ElMask,MaxAgeDiff,RejectThres,RejectGdop;
double MeasErrR1,MeasErrR2,MeasErr2,MeasErr3,MeasErr4,MeasErr5;
double SatClkStab,RovAntE,RovAntN,RovAntU,RefAntE,RefAntN,RefAntU;
double PrNoise1,PrNoise2,PrNoise3,PrNoise4,PrNoise5;
double ValidThresAR,ElMaskAR,ElMaskHold,SlipThres;
double ThresAR2,ThresAR3;
double RovPos[3],RefPos[3],BaseLine[2];
snrmask_t SnrMask;
exterr_t ExtErr;
AnsiString RnxOpts1,RnxOpts2,PPPOpts;
AnsiString FieldSep,RovAnt,RefAnt,AntPcvFile,StaPosFile,PrecEphFile;
AnsiString NetRSCorrFile1,NetRSCorrFile2,SatClkCorrFile,GoogleEarthFile;
AnsiString GeoidDataFile,IonoFile,DCBFile,EOPFile,BLQFile;
AnsiString SbasCorrFile,SatPcvFile,ExSats;
AnsiString RovList,BaseList;
void __fastcall ViewFile(AnsiString file);
void __fastcall ShowMsg(char *msg);
__fastcall TMainForm(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TMainForm *MainForm;
//---------------------------------------------------------------------------
#endif
|