Skip to content

Commit 3952a9c

Browse files
committed
CHANGE: use aprsmap via external mode.
1 parent 9efe637 commit 3952a9c

File tree

5 files changed

+56
-54
lines changed

5 files changed

+56
-54
lines changed

src/flexpacket.lps

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@
1818
<HasResources Value="True"/>
1919
<ResourceBaseClass Value="Form"/>
2020
<UnitName Value="UMain"/>
21+
<IsVisibleTab Value="True"/>
2122
<EditorIndex Value="15"/>
22-
<TopLine Value="1528"/>
23-
<CursorPos X="42" Y="1536"/>
23+
<TopLine Value="1582"/>
24+
<CursorPos Y="1582"/>
2425
<UsageCount Value="210"/>
2526
<Loaded Value="True"/>
2627
<LoadedDesigner Value="True"/>
@@ -172,10 +173,9 @@
172173
<Unit>
173174
<Filename Value="upipes.pas"/>
174175
<IsPartOfProject Value="True"/>
175-
<IsVisibleTab Value="True"/>
176176
<EditorIndex Value="16"/>
177-
<TopLine Value="118"/>
178-
<CursorPos Y="121"/>
177+
<TopLine Value="16"/>
178+
<CursorPos X="24" Y="21"/>
179179
<UsageCount Value="200"/>
180180
<Loaded Value="True"/>
181181
</Unit>
@@ -269,34 +269,6 @@
269269
</Unit>
270270
</Units>
271271
<JumpHistory HistoryIndex="29">
272-
<Position>
273-
<Filename Value="uconvers.pas"/>
274-
<Caret Line="40" TopLine="28"/>
275-
</Position>
276-
<Position>
277-
<Filename Value="umain.pas"/>
278-
<Caret Line="5" Column="67"/>
279-
</Position>
280-
<Position>
281-
<Filename Value="umain.pas"/>
282-
<Caret Line="185" Column="32" TopLine="163"/>
283-
</Position>
284-
<Position>
285-
<Filename Value="umain.pas"/>
286-
<Caret Line="1141" Column="24" TopLine="1119"/>
287-
</Position>
288-
<Position>
289-
<Filename Value="umain.pas"/>
290-
<Caret Line="1889" Column="41" TopLine="1879"/>
291-
</Position>
292-
<Position>
293-
<Filename Value="umain.pas"/>
294-
<Caret Line="1922" Column="46" TopLine="1899"/>
295-
</Position>
296-
<Position>
297-
<Filename Value="uhostmode.pas"/>
298-
<Caret Line="28" Column="91" TopLine="25"/>
299-
</Position>
300272
<Position>
301273
<Filename Value="ukissmode.pas"/>
302274
<Caret Line="100" TopLine="86"/>
@@ -373,10 +345,6 @@
373345
<Filename Value="umain.pas"/>
374346
<Caret Line="1591" Column="43" TopLine="1585"/>
375347
</Position>
376-
<Position>
377-
<Filename Value="umain.pas"/>
378-
<Caret Line="1705" Column="32" TopLine="1802"/>
379-
</Position>
380348
<Position>
381349
<Filename Value="umain.pas"/>
382350
<Caret Line="1702" Column="34" TopLine="1696"/>
@@ -389,6 +357,38 @@
389357
<Filename Value="umain.pas"/>
390358
<Caret Line="640" Column="34" TopLine="627"/>
391359
</Position>
360+
<Position>
361+
<Filename Value="umain.pas"/>
362+
<Caret Line="1536" Column="42" TopLine="1528"/>
363+
</Position>
364+
<Position>
365+
<Filename Value="umain.pas"/>
366+
<Caret Line="1072" Column="11" TopLine="1069"/>
367+
</Position>
368+
<Position>
369+
<Filename Value="umain.pas"/>
370+
<Caret Line="38" Column="23" TopLine="18"/>
371+
</Position>
372+
<Position>
373+
<Filename Value="umain.pas"/>
374+
<Caret Line="133" Column="33" TopLine="101"/>
375+
</Position>
376+
<Position>
377+
<Filename Value="umain.pas"/>
378+
<Caret Line="1072" Column="21" TopLine="1051"/>
379+
</Position>
380+
<Position>
381+
<Filename Value="umain.pas"/>
382+
<Caret Line="1697" TopLine="1674"/>
383+
</Position>
384+
<Position>
385+
<Filename Value="umain.pas"/>
386+
<Caret Line="1080" TopLine="1069"/>
387+
</Position>
388+
<Position>
389+
<Filename Value="umain.pas"/>
390+
<Caret Line="1165" Column="23" TopLine="1138"/>
391+
</Position>
392392
</JumpHistory>
393393
<RunParams>
394394
<FormatVersion Value="2"/>

src/i18n/flexpacket.pot

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,7 @@ msgid "My Callsign"
349349
msgstr ""
350350

351351
#: tfmain.actsetexternalmode.caption
352+
msgctxt "tfmain.actsetexternalmode.caption"
352353
msgid "Enable External Mode"
353354
msgstr ""
354355

@@ -405,11 +406,8 @@ msgid "Send/Receive Formular Data"
405406
msgstr ""
406407

407408
#: tfmain.tbmap.caption
408-
msgid "&APRS"
409-
msgstr ""
410-
411-
#: tfmain.tbmap.hint
412-
msgid "Start External APRS Map"
409+
msgctxt "tfmain.tbmap.caption"
410+
msgid "Enable External Mode"
413411
msgstr ""
414412

415413
#: ttfadressbook.adeleteshortcut.caption

src/umain.lfm

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ object FMain: TFMain
66
BorderIcons = [biSystemMenu, biMinimize]
77
BorderWidth = 1
88
Caption = 'FlexPacket'
9-
ClientHeight = 699
9+
ClientHeight = 665
1010
ClientWidth = 1135
1111
DoubleBuffered = True
1212
Icon.Data = {
@@ -2098,10 +2098,9 @@ object FMain: TFMain
20982098
end
20992099
object TBMap: TToolButton
21002100
Left = 226
2101-
Hint = 'Start External APRS Map'
21022101
Top = 0
21032102
AutoSize = True
2104-
Caption = '&APRS'
2103+
Caption = 'Enable External Mode'
21052104
ImageIndex = 3
21062105
ParentShowHint = False
21072106
ShowCaption = False
@@ -2161,7 +2160,7 @@ object FMain: TFMain
21612160
AnchorSideTop.Control = PSChannelSplitter
21622161
Left = 1
21632162
Height = 23
2164-
Top = 675
2163+
Top = 641
21652164
Width = 1133
21662165
AutoSize = False
21672166
Font.CharSet = ANSI_CHARSET
@@ -2789,7 +2788,7 @@ object FMain: TFMain
27892788
AnchorSideBottom.Control = SBStatus
27902789
Cursor = crDefault
27912790
Left = 1
2792-
Height = 529
2791+
Height = 495
27932792
Top = 146
27942793
Width = 1133
27952794
Anchors = [akTop, akLeft, akRight, akBottom]
@@ -2809,7 +2808,7 @@ object FMain: TFMain
28092808
object PSSMTx: TPairSplitterSide
28102809
Cursor = crArrow
28112810
Left = 0
2812-
Height = 224
2811+
Height = 190
28132812
Top = 305
28142813
Width = 1133
28152814
end

src/umain.lrj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
{"version":1,"strings":[
22
{"hash":224613124,"name":"tfmain.caption","sourcebytes":[70,108,101,120,80,97,99,107,101,116],"value":"FlexPacket"},
33
{"hash":53766881,"name":"tfmain.tbformular.hint","sourcebytes":[83,101,110,100,47,82,101,99,101,105,118,101,32,70,111,114,109,117,108,97,114,32,68,97,116,97],"value":"Send/Receive Formular Data"},
4-
{"hash":170198448,"name":"tfmain.tbmap.hint","sourcebytes":[83,116,97,114,116,32,69,120,116,101,114,110,97,108,32,65,80,82,83,32,77,97,112],"value":"Start External APRS Map"},
5-
{"hash":2778483,"name":"tfmain.tbmap.caption","sourcebytes":[38,65,80,82,83],"value":"&APRS"},
4+
{"hash":258533733,"name":"tfmain.tbmap.caption","sourcebytes":[69,110,97,98,108,101,32,69,120,116,101,114,110,97,108,32,77,111,100,101],"value":"Enable External Mode"},
65
{"hash":2805797,"name":"tfmain.mainmenuitemfile.caption","sourcebytes":[38,70,105,108,101],"value":"&File"},
76
{"hash":213577587,"name":"tfmain.mainmenuitemsettings.caption","sourcebytes":[38,83,101,116,116,105,110,103,115],"value":"&Settings"},
87
{"hash":79984933,"name":"tfmain.menuitem6.caption","sourcebytes":[69,110,97,98,108,101],"value":"Enable"},

src/umain.pas

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1069,8 +1069,14 @@ procedure TFMain.actFileUploadClick(Sender: TObject);
10691069
procedure TFMain.TBMapClick(Sender: TObject);
10701070
var run: TProcess;
10711071
begin
1072-
if not IsPipeExisting('flexpacketaprspipe') then
1073-
CreatePipe('flexpacketaprspipe');
1072+
1073+
actSetExternalMode.Checked := True;
1074+
ExternalMode := True;
1075+
1076+
if not IsPipeExisting('flexpacketwritepipe') then
1077+
CreatePipe('flexpacketwritepipe');
1078+
if not IsPipeExisting('flexpacketreadpipe') then
1079+
CreatePipe('flexpacketreadpipe');
10741080

10751081
run := TProcess.Create(nil);
10761082
try
@@ -1155,8 +1161,8 @@ procedure TFMain.TMainTimer(Sender: TObject);
11551161
end;
11561162

11571163
// handle aprs messages. APRS Messages can only be at the Monitoring Channel.
1158-
if i = 0 then
1159-
GetAPRSMessage(Data);
1164+
// if i = 0 then
1165+
// GetAPRSMessage(Data);
11601166

11611167
// colorize text if channel is in convers mode
11621168
if FPConfig.IsConvers[i] then

0 commit comments

Comments
 (0)