| Line | |
|---|
| 1 | unit UMainOptions;
|
|---|
| 2 |
|
|---|
| 3 | {$mode objfpc}{$H+}
|
|---|
| 4 |
|
|---|
| 5 | interface
|
|---|
| 6 |
|
|---|
| 7 | uses
|
|---|
| 8 | Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls;
|
|---|
| 9 |
|
|---|
| 10 | type
|
|---|
| 11 |
|
|---|
| 12 | { TMainOptionsForm }
|
|---|
| 13 |
|
|---|
| 14 | TMainOptionsForm = class(TForm)
|
|---|
| 15 | Button1: TButton;
|
|---|
| 16 | Button2: TButton;
|
|---|
| 17 | Edit1: TEdit;
|
|---|
| 18 | Edit2: TEdit;
|
|---|
| 19 | Edit3: TEdit;
|
|---|
| 20 | Edit4: TEdit;
|
|---|
| 21 | Label1: TLabel;
|
|---|
| 22 | Label2: TLabel;
|
|---|
| 23 | Label3: TLabel;
|
|---|
| 24 | Label4: TLabel;
|
|---|
| 25 | procedure Button1Click(Sender: TObject);
|
|---|
| 26 | procedure Button2Click(Sender: TObject);
|
|---|
| 27 | procedure FormShow(Sender: TObject);
|
|---|
| 28 | private
|
|---|
| 29 | { private declarations }
|
|---|
| 30 | public
|
|---|
| 31 | { public declarations }
|
|---|
| 32 | end;
|
|---|
| 33 |
|
|---|
| 34 | var
|
|---|
| 35 | MainOptionsForm: TMainOptionsForm;
|
|---|
| 36 |
|
|---|
| 37 | implementation
|
|---|
| 38 |
|
|---|
| 39 | {$R *.lfm}
|
|---|
| 40 |
|
|---|
| 41 | uses
|
|---|
| 42 | UMainForm;
|
|---|
| 43 |
|
|---|
| 44 | { TMainOptionsForm }
|
|---|
| 45 |
|
|---|
| 46 | procedure TMainOptionsForm.FormShow(Sender: TObject);
|
|---|
| 47 | begin
|
|---|
| 48 | Edit1.Text := MainForm.BinUtilsDir;
|
|---|
| 49 | Edit2.Text := MainForm.Platform;
|
|---|
| 50 | Edit3.Text := MainForm.SourceURL;
|
|---|
| 51 | Edit4.Text := MainForm.SubversionDir;
|
|---|
| 52 | end;
|
|---|
| 53 |
|
|---|
| 54 | procedure TMainOptionsForm.Button2Click(Sender: TObject);
|
|---|
| 55 | begin
|
|---|
| 56 | MainForm.BinUtilsDir := Edit1.Text;
|
|---|
| 57 | MainForm.Platform := Edit2.Text;
|
|---|
| 58 | MainForm.SourceURL := Edit3.Text;
|
|---|
| 59 | MainForm.SubversionDir := Edit4.Text;
|
|---|
| 60 | end;
|
|---|
| 61 |
|
|---|
| 62 | procedure TMainOptionsForm.Button1Click(Sender: TObject);
|
|---|
| 63 | begin
|
|---|
| 64 |
|
|---|
| 65 | end;
|
|---|
| 66 |
|
|---|
| 67 | end.
|
|---|
| 68 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.