Develop and Download Open Source Software

Browse Subversion Repository

Contents of /basicAcc.lpr

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (show annotations) (download)
Mon Nov 7 12:03:00 2011 UTC (12 years, 4 months ago) by shiraishikazuo
File size: 4338 byte(s)


1 program basicAcc;
2 {$MODE Delphi}
3 {$MINSTACKSIZE $00100000}
4 {$MAXSTACKSIZE $01400000}
5
6 (*************************************************************************
7 Copyright 2010, SHIRAISHI Kazuo
8
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2 of the License, or
12 (at your option) any later version.
13
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17 See the GNU General Public License for more details.
18 *************************************************************************)
19
20 uses
21 {$IFDEF unix}
22 cthreads,
23 {$ENDIF}
24 Interfaces, // this includes the LCL widgetset
25 Forms,
26 {$IFDEF LclCarbon} {$DEFINE TimerDraw} {$ENDIF}
27 {$IFDEF LclQt} {$DEFINE TimerDraw} {$ENDIF}
28
29 base in 'base.pas',
30 MainFrm in 'MainFrm.pas' {frameform},
31 codefrm in 'codefrm.pas' {codeform},
32 paintfrm in 'paintfrm.pas' {paintform},
33 convdlg in 'convdlg.pas' {convtdlg},
34 numberdg in 'numberdg.pas' {numberdlg},
35 toolfrm in 'toolfrm.pas' {toolbox},
36 inputdlg in 'inputdlg.pas' {inputdialog},
37 sizedlg in 'sizedlg.pas' {optionsizedlg},
38 colordlg in 'colordlg.pas' {colorindexdlg},
39 optiondg in 'optiondg.pas' {optiondlg},
40 syntaxdg in 'syntaxdg.pas' {syntaxdlg},
41 optina in 'optina.pas' {optionac},
42 afdg in 'afdg.pas' {autoformatdlg},
43 fkeydlg in 'fkeydlg.pas' {fkeysdlg},
44 moddlg in 'moddlg.pas' {moddialog},
45 compadlg in 'compadlg.pas' {compatibilityDialog},
46 compiler in 'compiler.pas',
47 supplied in 'supplied.pas',
48 suppliedc in 'suppliedc.pas',
49 {suppliedr in 'suppliedr.pas',}
50 supplieds in 'supplieds.pas',
51 extensio in 'extensio.pas',
52 openclos in 'openclos.pas',
53 chain in 'chain.pas',
54 charinp in 'charinp.pas' {CharInput},
55 locatefrm in 'locatefrm.pas' {LocateForm},
56 RepoForm in 'repoform.pas'{Reportform},
57 about in 'about.pas' {AboutBox},
58 base0, SetPath, SetupOp, vstack,
59 arrays , base2, datalist, baslib,
60 mathc,arraysc, baslibc, graphlibc
61 {$IFDEF Win32} ,ExtDll,winlib {$ENDIF};
62 {$IFNDEF Darwin}{$R basicAcc.res}{$ENDIF}
63
64 begin
65 Application.Title:='BASIC Acc';
66 Application.Initialize;
67 Application.HelpFile := '';
68 Application.CreateForm(TFrameForm, FrameForm);
69 Application.CreateForm(TCodeForm, CodeForm);
70 Application.CreateForm(TOptionSizeDlg, OptionSizeDlg);
71 Application.CreateForm(TPaintForm, PaintForm);
72 Application.CreateForm(TColorIndexDlg, ColorIndexDlg);
73 Application.CreateForm(TOptionDlg, OptionDlg);
74 Application.CreateForm(TInputDialog, InputDialog);
75 Application.CreateForm(TOptionAC, OptionAC);
76 Application.CreateForm(TAutoFormatDlg, AutoFormatDlg);
77 Application.CreateForm(TFkeysDlg, FkeysDlg);
78 Application.CreateForm(TMODDialog, MODDialog);
79 Application.CreateForm(TToolBox, ToolBox);
80 Application.CreateForm(TConvtDlg, ConvtDlg);
81 Application.CreateForm(TNumberDlg, NumberDlg);
82 Application.CreateForm(TSyntaxDlg, SyntaxDlg);
83 Application.CreateForm(TcompatibilityDialog, compatibilityDialog);
84 Application.CreateForm(TAboutBox, AboutBox);
85 Application.CreateForm(TLocateForm, LocateForm);
86 Application.CreateForm(TCharInput, CharInput);
87 Application.CreateForm(TReportForm, ReportForm);
88 Application.CreateForm(TPathDialog, PathDialog);
89 Application.CreateForm(TSetUpOptionsDlg, SetUpOptionsDlg);
90
91 initVirtualStack($10000000{256MB});
92
93 if (ParamIndex<=ParamCount) then
94 if NoRun then
95 begin
96 FrameForm.OpenTextFile(ParamStr(paramIndex));
97 Application.run
98 end
99 else if OpenAndRun then
100 begin
101 NoBackUp:=true;
102 FrameForm.OpenTextFile(ParamStr(paramIndex));
103 FrameForm.Run2Click(nil);
104 Application.Run
105 end
106 else
107 begin
108 NoBackUp:=true;
109 FrameForm.OpenTextFile(ParamStr(paramIndex));
110 FrameForm.Run2Click(nil);
111 ToTerminate:=true;
112 FrameForm.Visible:=false;
113 Application.Run
114 end
115 else
116 begin
117 ToOpen:=true;
118 Application.Run;
119 end;
120
121
122
123 end.

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26