forked from tomojitakasu/RTKLIB
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RTKLIB 2.4.2
- Loading branch information
0 parents
commit c033e62
Showing
789 changed files
with
549,531 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Auto detect text files and perform LF normalization | ||
* text=auto | ||
|
||
# Custom for Visual Studio | ||
*.cs diff=csharp | ||
*.sln merge=union | ||
*.csproj merge=union | ||
*.vbproj merge=union | ||
*.fsproj merge=union | ||
*.dbproj merge=union | ||
|
||
# Standard to msysgit | ||
*.doc diff=astextplain | ||
*.DOC diff=astextplain | ||
*.docx diff=astextplain | ||
*.DOCX diff=astextplain | ||
*.dot diff=astextplain | ||
*.DOT diff=astextplain | ||
*.pdf diff=astextplain | ||
*.PDF diff=astextplain | ||
*.rtf diff=astextplain | ||
*.RTF diff=astextplain |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
//--------------------------------------------------------------------------- | ||
#include <vcl.h> | ||
#pragma hdrstop | ||
|
||
#include "rtklib.h" | ||
#include "aboutdlg.h" | ||
//--------------------------------------------------------------------------- | ||
#pragma package(smart_init) | ||
#pragma resource "*.dfm" | ||
TAboutDialog *AboutDialog; | ||
//--------------------------------------------------------------------------- | ||
__fastcall TAboutDialog::TAboutDialog(TComponent* Owner) | ||
: TForm(Owner) | ||
{ | ||
} | ||
//--------------------------------------------------------------------------- | ||
void __fastcall TAboutDialog::FormShow(TObject *Sender) | ||
{ | ||
TImage *icon[]={Icon1,Icon2,Icon3,Icon4,Icon5,Icon6,Icon7,Icon8}; | ||
AnsiString s; | ||
if (IconIndex>0) icon[IconIndex-1]->Visible=true; | ||
LabelAbout->Caption=About; | ||
LabelVer->Caption=s.sprintf("with RTKLIB ver.%s",VER_RTKLIB); | ||
LabelCopyright->Caption=COPYRIGHT_RTKLIB; | ||
} | ||
//--------------------------------------------------------------------------- |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
//--------------------------------------------------------------------------- | ||
#ifndef aboutdlgH | ||
#define aboutdlgH | ||
//--------------------------------------------------------------------------- | ||
#include <Classes.hpp> | ||
#include <Controls.hpp> | ||
#include <StdCtrls.hpp> | ||
#include <Forms.hpp> | ||
#include <ExtCtrls.hpp> | ||
#include <Graphics.hpp> | ||
//--------------------------------------------------------------------------- | ||
class TAboutDialog : public TForm | ||
{ | ||
__published: | ||
TLabel *LabelVer; | ||
TLabel *LabelAbout; | ||
TLabel *LabelCopyright; | ||
TImage *Icon4; | ||
TImage *Icon1; | ||
TImage *Icon2; | ||
TImage *Icon3; | ||
TImage *Icon5; | ||
TImage *Icon6; | ||
TImage *Icon7; | ||
TPanel *Panel1; | ||
TButton *BtnOk; | ||
TImage *Icon8; | ||
void __fastcall FormShow(TObject *Sender); | ||
private: | ||
public: | ||
int IconIndex; | ||
AnsiString About; | ||
__fastcall TAboutDialog(TComponent* Owner); | ||
}; | ||
//--------------------------------------------------------------------------- | ||
extern PACKAGE TAboutDialog *AboutDialog; | ||
//--------------------------------------------------------------------------- | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
//--------------------------------------------------------------------------- | ||
#include <vcl.h> | ||
#include <stdio.h> | ||
#pragma hdrstop | ||
|
||
#include "cmdoptdlg.h" | ||
|
||
//--------------------------------------------------------------------------- | ||
#pragma package(smart_init) | ||
#pragma resource "*.dfm" | ||
TCmdOptDialog *CmdOptDialog; | ||
//--------------------------------------------------------------------------- | ||
__fastcall TCmdOptDialog::TCmdOptDialog(TComponent* Owner) | ||
: TForm(Owner) | ||
{ | ||
CmdEna[0]=CmdEna[1]=1; | ||
} | ||
//--------------------------------------------------------------------------- | ||
void __fastcall TCmdOptDialog::FormShow(TObject *Sender) | ||
{ | ||
OpenCmd->Text=Cmds[0]; | ||
CloseCmd->Text=Cmds[1]; | ||
ChkOpenCmd->Checked=CmdEna[0];; | ||
ChkCloseCmd->Checked=CmdEna[1];; | ||
UpdateEnable(); | ||
} | ||
//--------------------------------------------------------------------------- | ||
void __fastcall TCmdOptDialog::BtnOkClick(TObject *Sender) | ||
{ | ||
Cmds[0]=OpenCmd->Text; | ||
Cmds[1]=CloseCmd->Text; | ||
CmdEna[0]=ChkOpenCmd->Checked; | ||
CmdEna[1]=ChkCloseCmd->Checked; | ||
} | ||
//--------------------------------------------------------------------------- | ||
void __fastcall TCmdOptDialog::BtnLoadClick(TObject *Sender) | ||
{ | ||
AnsiString OpenDialog_FileName; | ||
TMemo *cmd[]={OpenCmd,CloseCmd}; | ||
FILE *fp; | ||
char buff[1024]; | ||
int n=0; | ||
if (!OpenDialog->Execute()) return; | ||
OpenDialog_FileName=OpenDialog->FileName; | ||
if (!(fp=fopen(OpenDialog_FileName.c_str(),"r"))) return; | ||
cmd[0]->Text=""; | ||
cmd[1]->Text=""; | ||
while (fgets(buff,sizeof(buff),fp)) { | ||
if (buff[0]=='@') {n=1; continue;} | ||
if (buff[strlen(buff)-1]=='\n') buff[strlen(buff)-1]='\0'; | ||
cmd[n]->Text=cmd[n]->Text+buff+"\r\n"; | ||
} | ||
fclose(fp); | ||
} | ||
//--------------------------------------------------------------------------- | ||
void __fastcall TCmdOptDialog::BtnSaveClick(TObject *Sender) | ||
{ | ||
AnsiString SaveDialog_FileName; | ||
AnsiString OpenCmd_Text=OpenCmd->Text,CloseCmd_Text=CloseCmd->Text; | ||
FILE *fp; | ||
if (!SaveDialog->Execute()) return; | ||
SaveDialog_FileName=SaveDialog->FileName; | ||
if (!(fp=fopen(SaveDialog_FileName.c_str(),"w"))) return; | ||
fprintf(fp,"%s",OpenCmd_Text.c_str()); | ||
fprintf(fp,"\n@\n"); | ||
fprintf(fp,"%s",CloseCmd_Text.c_str()); | ||
fclose(fp); | ||
} | ||
//--------------------------------------------------------------------------- | ||
void __fastcall TCmdOptDialog::ChkCloseCmdClick(TObject *Sender) | ||
{ | ||
UpdateEnable(); | ||
} | ||
//--------------------------------------------------------------------------- | ||
void __fastcall TCmdOptDialog::ChkOpenCmdClick(TObject *Sender) | ||
{ | ||
UpdateEnable(); | ||
} | ||
//--------------------------------------------------------------------------- | ||
void __fastcall TCmdOptDialog::UpdateEnable(void) | ||
{ | ||
OpenCmd->Enabled=ChkOpenCmd->Checked; | ||
CloseCmd->Enabled=ChkCloseCmd->Checked; | ||
} | ||
//--------------------------------------------------------------------------- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
object CmdOptDialog: TCmdOptDialog | ||
Left = 0 | ||
Top = 0 | ||
BorderIcons = [biSystemMenu] | ||
BorderStyle = bsDialog | ||
Caption = 'Serial/TCP Commands' | ||
ClientHeight = 264 | ||
ClientWidth = 318 | ||
Color = clBtnFace | ||
Font.Charset = DEFAULT_CHARSET | ||
Font.Color = clWindowText | ||
Font.Height = -11 | ||
Font.Name = 'Tahoma' | ||
Font.Style = [] | ||
OldCreateOrder = False | ||
Position = poMainFormCenter | ||
OnShow = FormShow | ||
PixelsPerInch = 96 | ||
TextHeight = 13 | ||
object BtnOk: TButton | ||
Left = 150 | ||
Top = 240 | ||
Width = 81 | ||
Height = 23 | ||
Caption = '&OK' | ||
ModalResult = 1 | ||
TabOrder = 1 | ||
OnClick = BtnOkClick | ||
end | ||
object BtnCancel: TButton | ||
Left = 234 | ||
Top = 240 | ||
Width = 81 | ||
Height = 23 | ||
Caption = '&Cancel' | ||
ModalResult = 2 | ||
TabOrder = 0 | ||
end | ||
object ChkOpenCmd: TCheckBox | ||
Left = 2 | ||
Top = 2 | ||
Width = 151 | ||
Height = 17 | ||
Caption = 'Commands at startup' | ||
TabOrder = 2 | ||
OnClick = ChkOpenCmdClick | ||
end | ||
object ChkCloseCmd: TCheckBox | ||
Left = 2 | ||
Top = 120 | ||
Width = 157 | ||
Height = 17 | ||
Caption = 'Commands at shutdown' | ||
TabOrder = 4 | ||
OnClick = ChkCloseCmdClick | ||
end | ||
object CloseCmd: TMemo | ||
Left = 2 | ||
Top = 136 | ||
Width = 311 | ||
Height = 101 | ||
ScrollBars = ssVertical | ||
TabOrder = 5 | ||
WordWrap = False | ||
end | ||
object OpenCmd: TMemo | ||
Left = 2 | ||
Top = 18 | ||
Width = 311 | ||
Height = 101 | ||
ScrollBars = ssVertical | ||
TabOrder = 3 | ||
WordWrap = False | ||
end | ||
object BtnLoad: TButton | ||
Left = 4 | ||
Top = 240 | ||
Width = 65 | ||
Height = 23 | ||
Caption = '&Load...' | ||
TabOrder = 6 | ||
OnClick = BtnLoadClick | ||
end | ||
object BtnSave: TButton | ||
Left = 72 | ||
Top = 240 | ||
Width = 65 | ||
Height = 23 | ||
Caption = '&Save...' | ||
TabOrder = 7 | ||
OnClick = BtnSaveClick | ||
end | ||
object SaveDialog: TSaveDialog | ||
Filter = 'Command File (*.cmd)|*.cmd|All File (*.*)|*.*' | ||
Options = [ofHideReadOnly, ofNoChangeDir, ofEnableSizing] | ||
Title = 'Save Serial Commands' | ||
Left = 264 | ||
Top = 204 | ||
end | ||
object OpenDialog: TOpenDialog | ||
Filter = 'Command File (*.cmd)|*.cmd|All File (*.*)|*.*' | ||
Options = [ofHideReadOnly, ofNoChangeDir, ofEnableSizing] | ||
Title = 'Load Serial Commands' | ||
Left = 236 | ||
Top = 204 | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
//--------------------------------------------------------------------------- | ||
#ifndef cmdoptdlgH | ||
#define cmdoptdlgH | ||
//--------------------------------------------------------------------------- | ||
#include <Classes.hpp> | ||
#include <Controls.hpp> | ||
#include <StdCtrls.hpp> | ||
#include <Forms.hpp> | ||
#include <Dialogs.hpp> | ||
//--------------------------------------------------------------------------- | ||
class TCmdOptDialog : public TForm | ||
{ | ||
__published: | ||
TButton *BtnOk; | ||
TButton *BtnCancel; | ||
TMemo *OpenCmd; | ||
TMemo *CloseCmd; | ||
TCheckBox *ChkOpenCmd; | ||
TCheckBox *ChkCloseCmd; | ||
TButton *BtnLoad; | ||
TButton *BtnSave; | ||
TSaveDialog *SaveDialog; | ||
TOpenDialog *OpenDialog; | ||
void __fastcall FormShow(TObject *Sender); | ||
void __fastcall BtnOkClick(TObject *Sender); | ||
void __fastcall ChkCloseCmdClick(TObject *Sender); | ||
void __fastcall ChkOpenCmdClick(TObject *Sender); | ||
void __fastcall UpdateEnable(void); | ||
void __fastcall BtnLoadClick(TObject *Sender); | ||
void __fastcall BtnSaveClick(TObject *Sender); | ||
private: | ||
public: | ||
AnsiString Cmds[2]; | ||
int CmdEna[2]; | ||
__fastcall TCmdOptDialog(TComponent* Owner); | ||
}; | ||
//--------------------------------------------------------------------------- | ||
extern PACKAGE TCmdOptDialog *CmdOptDialog; | ||
//--------------------------------------------------------------------------- | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
//--------------------------------------------------------------------------- | ||
#include <vcl.h> | ||
#pragma hdrstop | ||
|
||
#include "confdlg.h" | ||
//--------------------------------------------------------------------------- | ||
#pragma package(smart_init) | ||
#pragma resource "*.dfm" | ||
TConfDialog *ConfDialog; | ||
//--------------------------------------------------------------------------- | ||
__fastcall TConfDialog::TConfDialog(TComponent* Owner) | ||
: TForm(Owner) | ||
{ | ||
} | ||
//--------------------------------------------------------------------------- |
Oops, something went wrong.