Skip to content

Commit bc95487

Browse files
authored
Merge pull request #458 from Sharpe49/timetable-editor-file-extension
Added .timetable-or file extension in the timetable editor Partially linked to this old issue: https://bugs.launchpad.net/or/+bug/1889011
2 parents 0836626 + 6ed6b84 commit bc95487

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

Source/Contrib/TimetableEditor/unit1.lfm

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ object Form1: TForm1
1010
OnCreate = FormCreate
1111
Position = poScreenCenter
1212
ShowHint = True
13-
LCLVersion = '1.2.2.0'
13+
LCLVersion = '2.0.12.0'
1414
object Panel1: TPanel
1515
Left = 0
1616
Height = 56
@@ -2182,15 +2182,15 @@ object Form1: TForm1
21822182
OnSelectCell = gridSelectCell
21832183
end
21842184
object OpenDialog1: TOpenDialog
2185-
left = 792
2186-
top = 16
2185+
Left = 792
2186+
Top = 16
21872187
end
21882188
object SaveDialog1: TSaveDialog
2189-
left = 792
2189+
Left = 792
21902190
end
21912191
object gridpopup: TPopupMenu
2192-
left = 552
2193-
top = 88
2192+
Left = 552
2193+
Top = 88
21942194
object MenuItem1: TMenuItem
21952195
Caption = 'automatic column width'
21962196
OnClick = MenuItem1Click
@@ -2223,7 +2223,7 @@ object Form1: TForm1
22232223
end
22242224
end
22252225
object SaveDialog2: TSaveDialog
2226-
left = 758
2227-
top = 76
2226+
Left = 758
2227+
Top = 76
22282228
end
22292229
end

Source/Contrib/TimetableEditor/unit1.pas

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -516,10 +516,10 @@ procedure TForm1.SpeedButton3Click(Sender: TObject); // speichern
516516
//savedialog1.Title:='Zeitplan speichern';
517517
savedialog1.Title:=DLGsave;
518518
savedialog1.InitialDir:=UTF8ToSys(getroutepath+'Activities\Openrails');
519-
//savedialog1.Filter:='Openrails Zeitplan|*.timetable_or';
520-
savedialog1.Filter:='Openrails timetable (*.timetable_or)|*.timetable_or';
519+
//savedialog1.Filter:='Open Rails Zeitplan|*.timetable-or';
520+
savedialog1.Filter:='Open Rails timetable|*.timetable-or;*.timetable_or';
521521
if ttfilename <> '' then savedialog1.filename:=ttfilename
522-
else savedialog1.filename:=title+'.timetable_or';
522+
else savedialog1.filename:=title+'.timetable-or';
523523
save:=true;
524524
but:=1;
525525
if (savedialog1.Execute) and (savedialog1.FileName<>'') then begin
@@ -598,8 +598,8 @@ procedure TForm1.SpeedButton2Click(Sender: TObject); // öffnen
598598
cols:=tstringlist.create;
599599
//opendialog1.Title:='Zeitplan öffnen';
600600
opendialog1.Title:=DLGopenTT;
601-
//opendialog1.Filter:='Openrails Zeitplan|*.timetable_or';
602-
opendialog1.Filter:='Openrails timetable (*.timetable_or)|*.timetable_or';
601+
//opendialog1.Filter:='Open Rails Zeitplan|*.timetable-or';
602+
opendialog1.Filter:='Open Rails timetable|*.timetable-or;*.timetable_or';
603603
opendialog1.filename:='';
604604
if (opendialog1.execute) and (opendialog1.FileName<>'') then begin
605605
resetgrid;
@@ -842,7 +842,7 @@ procedure TForm1.SpeedButton15Click(Sender: TObject);
842842
slist:=tstringlist.create;
843843
cols:=tstringlist.create;
844844
opendialog1.Title:=DLGImportTT;
845-
opendialog1.Filter:='Openrails timetable|*.timetable_or';
845+
opendialog1.Filter:='Open Rails timetable|*.timetable-or;*.timetable_or';
846846
if (opendialog1.execute) and (opendialog1.FileName<>'') then begin
847847
fces:=tcharencStream.create;
848848
fces.reset;

0 commit comments

Comments
 (0)