Changeset 37 for branches/topdown
- Timestamp:
- Jun 30, 2023, 3:29:14 PM (17 months ago)
- Location:
- branches/topdown
- Files:
-
- 2 edited
- 12 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/topdown/Apps.pas
r36 r37 1 unit UApps;1 unit Apps; 2 2 3 3 interface 4 4 5 5 uses 6 Classes, SysUtils, USystem;6 Classes, SysUtils, OsSystem; 7 7 8 8 type -
branches/topdown/Apps/AppCalc.lfm
r36 r37 1 1 object FormCalculator: TFormCalculator 2 2 Left = 591 3 Height = 2753 Height = 330 4 4 Top = 511 5 Width = 3925 Width = 470 6 6 Caption = 'Calculator' 7 ClientHeight = 2758 ClientWidth = 3929 DesignTimePPI = 1 207 ClientHeight = 330 8 ClientWidth = 470 9 DesignTimePPI = 144 10 10 FormStyle = fsStayOnTop 11 11 OnClose = FormClose 12 LCLVersion = '2. 0.2.0'12 LCLVersion = '2.2.6.0' 13 13 object ButtonCompute: TButton 14 Left = 3 2815 Height = 5516 Top = 2 0817 Width = 5414 Left = 394 15 Height = 66 16 Top = 250 17 Width = 65 18 18 Caption = '=' 19 19 OnClick = ButtonComputeClick … … 21 21 end 22 22 object ButtonAdd: TButton 23 Left = 3 2824 Height = 5525 Top = 1 2826 Width = 5423 Left = 394 24 Height = 66 25 Top = 154 26 Width = 65 27 27 Caption = '+' 28 28 OnClick = ButtonAddClick … … 30 30 end 31 31 object EditInput: TEdit 32 Left = 1 433 Height = 2834 Top = 1 435 Width = 26832 Left = 17 33 Height = 43 34 Top = 17 35 Width = 322 36 36 TabOrder = 2 37 37 end 38 38 object ButtonMultiply: TButton 39 Left = 3 2840 Height = 5541 Top = 5642 Width = 5439 Left = 394 40 Height = 66 41 Top = 67 42 Width = 65 43 43 Caption = '*' 44 44 OnClick = ButtonMultiplyClick -
branches/topdown/Apps/AppCalc.pas
r36 r37 1 unit UAppCalc;1 unit AppCalc; 2 2 3 3 interface 4 4 5 5 uses 6 Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls, USystem;6 Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls, OsSystem; 7 7 8 8 type … … 28 28 end; 29 29 30 var31 FormCalculator: TFormCalculator;32 30 33 31 implementation -
branches/topdown/Apps/AppFileManager.pas
r36 r37 1 unit UAppFileManager;1 unit AppFileManager; 2 2 3 3 interface 4 4 5 5 uses 6 Classes, SysUtils, Forms, Controls, Graphics, Dialogs, USystem;6 Classes, SysUtils, Forms, Controls, Graphics, Dialogs, OsSystem; 7 7 8 8 type … … 12 12 TFormFileManager = class(TFormTask) 13 13 procedure FormClose(Sender: TObject; var CloseAction: TCloseAction); 14 private15 16 public17 18 14 end; 19 15 20 var21 FormFileManager: TFormFileManager;22 16 23 17 implementation -
branches/topdown/Apps/AppTextEditor.pas
r36 r37 1 unit UAppTextEditor;1 unit AppTextEditor; 2 2 3 3 interface 4 4 5 5 uses 6 Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls, USystem;6 Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls, OsSystem; 7 7 8 8 type … … 12 12 TFormTextEditor = class(TFormTask) 13 13 Memo1: TMemo; 14 private15 16 public17 18 14 end; 19 15 20 var21 FormTextEditor: TFormTextEditor;22 16 23 17 implementation -
branches/topdown/FormMain.pas
r36 r37 1 unit UFormMain;1 unit FormMain; 2 2 3 3 interface … … 5 5 uses 6 6 Classes, SysUtils, Forms, Controls, Graphics, Dialogs, ExtCtrls, StdCtrls, 7 USystem;7 OsSystem, FormMenu; 8 8 9 9 type … … 20 20 procedure FormShow(Sender: TObject); 21 21 private 22 FormMenu: TFormMenu; 22 23 procedure TaskButtonClick(Sender: TObject); 23 24 procedure TasksChange(Sender: TObject); 24 25 procedure ReloadTasks; 25 public26 26 end; 27 27 … … 35 35 36 36 uses 37 UAppCalc, UAppFileManager, UAppTextEditor, 38 UFormMenu; 37 AppCalc, AppFileManager, AppTextEditor; 39 38 40 39 { TFormMain } … … 95 94 BaseSystem.Apps.AddNew('Text editor', TFormTextEditor); 96 95 BaseSystem.Tasks.OnChange := TasksChange; 96 97 FormMenu := TFormMenu.Create(nil); 97 98 end; 98 99 99 100 procedure TFormMain.FormDestroy(Sender: TObject); 100 101 begin 102 FreeAndNil(FormMenu); 101 103 end; 102 104 -
branches/topdown/FormMenu.pas
r36 r37 1 unit UFormMenu;1 unit FormMenu; 2 2 3 3 interface … … 22 22 procedure MenuItemRebootClick(Sender: TObject); 23 23 procedure ToolButton1Click(Sender: TObject); 24 private25 26 24 public 27 25 procedure ReloadList; 28 26 end; 29 30 var31 FormMenu: TFormMenu;32 27 33 28 … … 37 32 38 33 uses 39 USystem;34 OsSystem; 40 35 41 36 { TFormMenu } -
branches/topdown/OS.lpi
r36 r37 79 79 </Unit0> 80 80 <Unit1> 81 <Filename Value=" UFormMain.pas"/>81 <Filename Value="FormMain.pas"/> 82 82 <IsPartOfProject Value="True"/> 83 83 <ComponentName Value="FormMain"/> … … 86 86 </Unit1> 87 87 <Unit2> 88 <Filename Value=" UApps.pas"/>88 <Filename Value="Apps.pas"/> 89 89 <IsPartOfProject Value="True"/> 90 90 </Unit2> 91 91 <Unit3> 92 <Filename Value=" USystem.pas"/>92 <Filename Value="OsSystem.pas"/> 93 93 <IsPartOfProject Value="True"/> 94 94 </Unit3> 95 95 <Unit4> 96 <Filename Value="Apps\ UAppCalc.pas"/>96 <Filename Value="Apps\AppCalc.pas"/> 97 97 <IsPartOfProject Value="True"/> 98 98 <ComponentName Value="FormCalculator"/> … … 101 101 </Unit4> 102 102 <Unit5> 103 <Filename Value=" UFormMenu.pas"/>103 <Filename Value="FormMenu.pas"/> 104 104 <IsPartOfProject Value="True"/> 105 105 <ComponentName Value="FormMenu"/> … … 108 108 </Unit5> 109 109 <Unit6> 110 <Filename Value="Apps\ UAppFileManager.pas"/>110 <Filename Value="Apps\AppFileManager.pas"/> 111 111 <IsPartOfProject Value="True"/> 112 112 <ComponentName Value="FormFileManager"/> … … 114 114 </Unit6> 115 115 <Unit7> 116 <Filename Value="Apps\ UAppTextEditor.pas"/>116 <Filename Value="Apps\AppTextEditor.pas"/> 117 117 <IsPartOfProject Value="True"/> 118 118 <ComponentName Value="FormTextEditor"/> -
branches/topdown/OS.lpr
r28 r37 8 8 {$ENDIF}{$ENDIF} 9 9 Interfaces, // this includes the LCL widgetset 10 Forms, SysUtils, UFormMain, UApps, USystem, UAppCalc, UFormMenu,11 UAppFileManager, UAppTextEditor10 Forms, SysUtils, FormMain, Apps, OsSystem, AppCalc, FormMenu, 11 AppFileManager, AppTextEditor 12 12 { you can add units after this }; 13 13 … … 28 28 Application.Scaled:=True; 29 29 Application.Initialize; 30 Application.CreateForm(TFormMain, FormMain); 31 Application.CreateForm(TFormMenu, FormMenu); 30 Application.CreateForm(TFormMain, FormMain.FormMain); 32 31 Application.Run; 33 32 end. -
branches/topdown/OsSystem.pas
r36 r37 1 unit USystem;1 unit OsSystem; 2 2 3 3 interface
Note:
See TracChangeset
for help on using the changeset viewer.