-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 8a96ef7
Showing
1,003 changed files
with
659,403 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,6 @@ | ||
|
||
DEFINES += _RTLDLL NO_STRICT TRACE ENAGLO ENAQZS ENAGAL ENACMP ENAIRN NFREQ=3 NEXOBS=3 EXTLEX | ||
|
||
win32{ | ||
DEFINES += WIN32 | ||
} |
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,4 @@ | ||
TEMPLATE = subdirs | ||
|
||
SUBDIRS= src \ | ||
app |
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,10 @@ | ||
TEMPLATE = subdirs | ||
|
||
SUBDIRS= rtknavi_qt \ | ||
rtkget_qt \ | ||
rtkplot_qt \ | ||
rtkpost_qt \ | ||
rtklaunch_qt \ | ||
srctblbrows_qt \ | ||
strsvr_qt \ | ||
rtkconv_qt |
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,32 @@ | ||
//--------------------------------------------------------------------------- | ||
#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 %s",VER_RTKLIB,PATCH_LEVEL); | ||
LabelCopyright->Caption=COPYRIGHT_RTKLIB; | ||
} | ||
//--------------------------------------------------------------------------- | ||
void __fastcall TAboutDialog::BtnOkClick(TObject *Sender) | ||
{ | ||
Close(); | ||
} | ||
//--------------------------------------------------------------------------- | ||
|
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,40 @@ | ||
//--------------------------------------------------------------------------- | ||
#ifndef aboutdlgH | ||
#define aboutdlgH | ||
//--------------------------------------------------------------------------- | ||
#include <Classes.hpp> | ||
#include <Controls.hpp> | ||
#include <StdCtrls.hpp> | ||
#include <Forms.hpp> | ||
#include <ExtCtrls.hpp> | ||
#include <Graphics.hpp> | ||
#include <Vcl.Buttons.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; | ||
TImage *Icon8; | ||
TSpeedButton *BtnOk; | ||
void __fastcall FormShow(TObject *Sender); | ||
void __fastcall BtnOkClick(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,95 @@ | ||
//--------------------------------------------------------------------------- | ||
#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]; | ||
PeriodicCmd->Text=Cmds[2]; | ||
ChkOpenCmd->Checked=CmdEna[0];; | ||
ChkCloseCmd->Checked=CmdEna[1];; | ||
ChkPeriodicCmd->Checked=CmdEna[2];; | ||
UpdateEnable(); | ||
} | ||
//--------------------------------------------------------------------------- | ||
void __fastcall TCmdOptDialog::BtnOkClick(TObject *Sender) | ||
{ | ||
Cmds[0]=OpenCmd->Text; | ||
Cmds[1]=CloseCmd->Text; | ||
Cmds[2]=PeriodicCmd->Text; | ||
CmdEna[0]=ChkOpenCmd->Checked; | ||
CmdEna[1]=ChkCloseCmd->Checked; | ||
CmdEna[2]=ChkPeriodicCmd->Checked; | ||
} | ||
//--------------------------------------------------------------------------- | ||
void __fastcall TCmdOptDialog::BtnLoadClick(TObject *Sender) | ||
{ | ||
AnsiString OpenDialog_FileName; | ||
TMemo *cmd[]={OpenCmd,CloseCmd,PeriodicCmd}; | ||
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=""; | ||
cmd[2]->Text=""; | ||
for (n=0;fgets(buff,sizeof(buff),fp)&&n<3;) { | ||
if (buff[0]=='@') {n++; 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; | ||
AnsiString PeriodicCmd_Text=PeriodicCmd->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()); | ||
fprintf(fp,"\n@\n"); | ||
fprintf(fp,"%s",PeriodicCmd_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; | ||
PeriodicCmd->Enabled=ChkPeriodicCmd->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,125 @@ | ||
object CmdOptDialog: TCmdOptDialog | ||
Left = 0 | ||
Top = 0 | ||
BorderIcons = [biSystemMenu] | ||
BorderStyle = bsDialog | ||
Caption = 'Serial/TCP Commands' | ||
ClientHeight = 391 | ||
ClientWidth = 318 | ||
Color = clWhite | ||
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 = 148 | ||
Top = 358 | ||
Width = 81 | ||
Height = 29 | ||
Caption = '&OK' | ||
ModalResult = 1 | ||
TabOrder = 1 | ||
OnClick = BtnOkClick | ||
end | ||
object BtnCancel: TButton | ||
Left = 232 | ||
Top = 358 | ||
Width = 81 | ||
Height = 29 | ||
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 = 2 | ||
Top = 358 | ||
Width = 65 | ||
Height = 29 | ||
Caption = '&Load...' | ||
TabOrder = 6 | ||
OnClick = BtnLoadClick | ||
end | ||
object BtnSave: TButton | ||
Left = 70 | ||
Top = 358 | ||
Width = 65 | ||
Height = 29 | ||
Caption = '&Save...' | ||
TabOrder = 7 | ||
OnClick = BtnSaveClick | ||
end | ||
object ChkPeriodicCmd: TCheckBox | ||
Left = 2 | ||
Top = 238 | ||
Width = 251 | ||
Height = 17 | ||
Caption = 'Periodic Commands : <command> # cycle (ms)' | ||
TabOrder = 8 | ||
OnClick = ChkCloseCmdClick | ||
end | ||
object PeriodicCmd: TMemo | ||
Left = 2 | ||
Top = 254 | ||
Width = 311 | ||
Height = 101 | ||
ScrollBars = ssVertical | ||
TabOrder = 9 | ||
WordWrap = False | ||
end | ||
object SaveDialog: TSaveDialog | ||
Filter = 'Command File (*.cmd)|*.cmd|All File (*.*)|*.*' | ||
Options = [ofHideReadOnly, ofNoChangeDir, ofEnableSizing] | ||
Title = 'Save Serial Commands' | ||
Left = 232 | ||
Top = 306 | ||
end | ||
object OpenDialog: TOpenDialog | ||
Filter = 'Command File (*.cmd)|*.cmd|All File (*.*)|*.*' | ||
Options = [ofHideReadOnly, ofNoChangeDir, ofEnableSizing] | ||
Title = 'Load Serial Commands' | ||
Left = 202 | ||
Top = 306 | ||
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,42 @@ | ||
//--------------------------------------------------------------------------- | ||
#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; | ||
TCheckBox *ChkPeriodicCmd; | ||
TMemo *PeriodicCmd; | ||
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[3]; | ||
int CmdEna[3]; | ||
__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.