[go: up one dir, main page]

Menu

[r338]: / trunk / unewqso.pas  Maximize  Restore  History

Download this file

153 lines (133 with data), 5.5 kB

  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
{********************************************************************************
*** AlarmeJT ***
*** AlarmeJT is designed to work with exellent WSJT -X Joe Taylor, K1JT ***
*** running on JT65A modes and JT9. ***
*** ------------------------------------------------------------------- ***
*** version : 0.6 UDP beta ***
*** ------------------------------------------------------------------- ***
*** Copyright 2015 Alain Thébault (F5JMH) ***
*** ***
*** This file is part of AlarmeJT. ***
*** ***
*** AlarmeJT is free software: you can redistribute it and/or modify ***
*** it under the terms of the GNU General Public License as published by ***
*** the Free Software Foundation, either version 2.0 of the License, or ***
*** any later version. ***
*** ***
*** AlarmeJT is distributed in the hope that it will be useful, ***
*** but WITHOUT ANY WARRANTY; without even the implied warranty of ***
*** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ***
*** GNU General Public License for more details. ***
*** ***
*** You should have received a copy of the GNU General Public License ***
*** along with AlarmeJT. If not, see <http://www.gnu.org/licenses/>. ***
*** ***
*** ------------------------------------------------------------------- ***
********************************************************************************}
unit unewqso;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, DbCtrls,
StdCtrls, ufonction, Inifiles, ulog;
type
{ Tnewqso }
Tnewqso = class(TForm)
BCancel: TButton;
BValid: TButton;
DBCheckBox1: TDBCheckBox;
DBCheckBox2: TDBCheckBox;
DBEcall: TDBEdit;
DBEdate: TDBEdit;
DBEbande: TDBEdit;
DBEdxcc: TDBEdit;
DBEdit2: TDBEdit;
DBEdit3: TDBEdit;
DBEdit4: TDBEdit;
DBEdit5: TDBEdit;
DBEmode: TDBEdit;
DBEitu: TDBEdit;
DBElocator: TDBEdit;
DBErstsent: TDBEdit;
DBErstrcvd: TDBEdit;
DBEheuredeb: TDBEdit;
DBEheurefin: TDBEdit;
DBEfreq: TDBEdit;
DBNavigator1: TDBNavigator;
LItu: TLabel;
LCqz: TLabel;
LCont: TLabel;
LRegion: TLabel;
LCountry: TLabel;
LDxcc: TLabel;
LLocator: TLabel;
LRstr: TLabel;
LRsts: TLabel;
LMode: TLabel;
LFreq: TLabel;
LBande: TLabel;
LTimeOff: TLabel;
LTimeOn: TLabel;
LCall: TLabel;
LDate: TLabel;
procedure BCancelClick(Sender: TObject);
procedure BValidClick(Sender: TObject);
procedure FormClose(Sender: TObject; var CloseAction: TCloseAction);
procedure FormCreate(Sender: TObject);
procedure FormShow(Sender: TObject);
private
{ private declarations }
public
{ public declarations }
end;
var
newqso: Tnewqso;
implementation
{$R *.lfm}
{ Tnewqso }
procedure Tnewqso.BValidClick(Sender: TObject);
begin
DBNavigator1.BtnClick(nbPost);
log.BLogEntierClick(self);
Close;
end;
procedure Tnewqso.BCancelClick(Sender: TObject);
begin
DBNavigator1.BtnClick(nbCancel);
close;
end;
procedure Tnewqso.FormClose(Sender: TObject; var CloseAction: TCloseAction);
begin
WritePositionFenetre(Self, 'NewQSO','AFenNewQSO');
newqso:=nil;
newqso.Free;
end;
procedure Tnewqso.FormCreate(Sender: TObject);
begin
ReadPositionFenetre(self, 'NewQSO','AFenNewQSO');
FConfigLang := TIniFile.Create(ExtractFilePath(Application.ExeName)+'lang/'+langue()+'/lang.jmh');
BValid.Caption:=FConfigLang.ReadString('Generale', 'BValid', '');
Caption:=FConfigLang.ReadString('NewQSO', 'FenCap', '');
LCall.Caption:=FConfigLang.ReadString('NewQso', 'LCall', '');
LDate.Caption:=FConfigLang.ReadString('NewQSO', 'LDate', '');
LTimeON.Caption:=FConfigLang.ReadString('NewQSO', 'LTimeOn', '');
LTimeOff.Caption:=FConfig.ReadString('NewQSO', 'LTimeOff', '');
LFreq.Caption:=FConfig.ReadString('NewQSO', 'LFreq', '');
LMode.Caption:=FConfig.ReadString('NewQSO', 'LMode', '');
LBande.Caption:=FConfig.ReadString('NewQSO', 'LBande', '');
LRsts.Caption:=FConfig.ReadString('NewQSO', 'LRsts', '');
LRstr.Caption:=FConfig.ReadString('NewQSO', 'LRstr', '');
LLocator.Caption:=FConfig.ReadString('NewQSO', 'LLocator', '');
LDxcc.Caption:=FConfig.ReadString('NewQSO', 'LDxcc', '');
LCountry.Caption:=FConfig.ReadString('NewQSO', 'LCountry', '');
LRegion.Caption:=FConfig.ReadString('NewQSO', 'LRegion', '');
LCont.Caption:=FConfig.ReadString('NewQSO', 'LCont', '');
LItu.Caption:=FConfig.ReadString('NewQSO', 'LItu', '');
LCqz.Caption:=FConfig.ReadString('NewQSO', 'LCqz', '');
FConfigLang.Free;
end;
procedure Tnewqso.FormShow(Sender: TObject);
begin
DBNavigator1.BtnClick(nbInsert);
end;
end.