Changeset 12 for trunk/Forms
- Timestamp:
- Mar 15, 2013, 11:42:38 PM (12 years ago)
- Location:
- trunk/Forms
- Files:
-
- 3 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormMain.lfm
r10 r12 22 22 end 23 23 object GroupBox1: TGroupBox 24 Left = 824 Left = 16 25 25 Height = 57 26 Top = 826 Top = 120 27 27 Width = 498 28 28 Anchors = [akTop, akLeft, akRight] … … 42 42 end 43 43 object GroupBox2: TGroupBox 44 Left = 844 Left = 17 45 45 Height = 72 46 Top = 8046 Top = 184 47 47 Width = 498 48 48 Anchors = [akTop, akLeft, akRight] … … 108 108 end 109 109 object GroupBox3: TGroupBox 110 Left = 8110 Left = 16 111 111 Height = 65 112 Top = 168112 Top = 280 113 113 Width = 499 114 114 Anchors = [akTop, akLeft, akRight] … … 181 181 TabOrder = 5 182 182 end 183 object Label5: TLabel 184 Left = 16 185 Height = 17 186 Top = 12 187 Width = 56 188 Caption = 'Account:' 189 ParentColor = False 190 end 191 object ComboBoxAccounts: TComboBox 192 Left = 96 193 Height = 29 194 Top = 8 195 Width = 312 196 Anchors = [akTop, akLeft, akRight] 197 ItemHeight = 0 198 OnChange = ComboBoxAccountsChange 199 Style = csDropDownList 200 TabOrder = 6 201 end 202 object ButtonNew1: TButton 203 Left = 416 204 Height = 25 205 Top = 8 206 Width = 88 207 Anchors = [akTop, akRight] 208 Caption = 'Edit' 209 OnClick = ButtonNew1Click 210 TabOrder = 7 211 end 212 object GroupBox4: TGroupBox 213 Left = 16 214 Height = 65 215 Top = 48 216 Width = 498 217 Anchors = [akTop, akLeft, akRight] 218 Caption = 'Account state' 219 ClientHeight = 46 220 ClientWidth = 494 221 TabOrder = 8 222 object Label6: TLabel 223 Left = 14 224 Height = 17 225 Top = 7 226 Width = 56 227 Caption = 'Balance:' 228 ParentColor = False 229 end 230 object LabelBalance: TLabel 231 Left = 110 232 Height = 17 233 Top = 7 234 Width = 12 235 Caption = ' ' 236 ParentColor = False 237 end 238 end 183 239 end -
trunk/Forms/UFormMain.lrt
r9 r12 14 14 TFORMMAIN.LABEL2.CAPTION=Year: 15 15 TFORMMAIN.LABEL3.CAPTION=Number: 16 TFORMMAIN.LABEL5.CAPTION=Account: 17 TFORMMAIN.BUTTONNEW1.CAPTION=Edit 18 TFORMMAIN.GROUPBOX4.CAPTION=Account state 19 TFORMMAIN.LABEL6.CAPTION=Balance: 20 TFORMMAIN.LABELBALANCE.CAPTION= -
trunk/Forms/UFormMain.pas
r9 r12 16 16 TFormMain = class(TForm) 17 17 ButtonNew: TButton; 18 ButtonNew1: TButton; 18 19 ButtonSettings: TButton; 19 20 ButtonInterval: TButton; … … 21 22 ButtonExit: TButton; 22 23 ButtonAbout: TButton; 24 ComboBoxAccounts: TComboBox; 23 25 DateEditStart: TDateEdit; 24 26 DateEditTo: TDateEdit; … … 26 28 GroupBox2: TGroupBox; 27 29 GroupBox3: TGroupBox; 30 GroupBox4: TGroupBox; 28 31 Label1: TLabel; 29 32 Label2: TLabel; 30 33 Label3: TLabel; 31 34 Label4: TLabel; 35 Label5: TLabel; 36 Label6: TLabel; 37 LabelBalance: TLabel; 32 38 SpinEditYear: TSpinEdit; 33 39 SpinEditId: TSpinEdit; 34 40 procedure ButtonIntervalClick(Sender: TObject); 35 41 procedure ButtonMonthlyClick(Sender: TObject); 42 procedure ButtonNew1Click(Sender: TObject); 36 43 procedure ButtonNewClick(Sender: TObject); 44 procedure ComboBoxAccountsChange(Sender: TObject); 37 45 procedure FormClose(Sender: TObject; var CloseAction: TCloseAction); 38 46 procedure FormCreate(Sender: TObject); … … 68 76 end; 69 77 78 procedure TFormMain.ComboBoxAccountsChange(Sender: TObject); 79 begin 80 if ComboBoxAccounts.ItemIndex <> -1 then 81 Core.CurrentAccount := TAccount(Core.Accounts[ComboBoxAccounts.ItemIndex]) 82 else Core.CurrentAccount := nil; 83 end; 84 70 85 procedure TFormMain.ButtonIntervalClick(Sender: TObject); 71 86 begin … … 78 93 SaveInterface; 79 94 Core.ADownloadMonthly.Execute; 95 end; 96 97 procedure TFormMain.ButtonNew1Click(Sender: TObject); 98 begin 99 Core.AAccounts.Execute; 100 LoadInterface; 80 101 end; 81 102 … … 92 113 procedure TFormMain.LoadInterface; 93 114 begin 115 Core.Accounts.LoadToStrings(ComboBoxAccounts.Items); 94 116 DateEditStart.Date := Core.ReportTimeFrom; 95 117 DateEditTo.Date := Core.ReportTimeTo; 96 118 SpinEditYear.Value := Core.ReportYear; 97 119 SpinEditId.Value := Core.ReportId; 120 ButtonInterval.Enabled := Assigned(Core.CurrentAccount); 121 ButtonMonthly.Enabled := Assigned(Core.CurrentAccount); 122 ButtonNew.Enabled := Assigned(Core.CurrentAccount); 98 123 end; 99 124 -
trunk/Forms/UFormSettings.lfm
r9 r12 10 10 Position = poScreenCenter 11 11 LCLVersion = '1.1' 12 object LabeledEditToken: TLabeledEdit13 Left = 814 Height = 2715 Top = 2516 Width = 52817 Anchors = [akTop, akLeft, akRight]18 EditLabel.AnchorSideLeft.Control = LabeledEditToken19 EditLabel.AnchorSideRight.Control = LabeledEditToken20 EditLabel.AnchorSideRight.Side = asrBottom21 EditLabel.AnchorSideBottom.Control = LabeledEditToken22 EditLabel.Left = 823 EditLabel.Height = 1724 EditLabel.Top = 525 EditLabel.Width = 52826 EditLabel.Caption = 'Token'27 EditLabel.ParentColor = False28 TabOrder = 029 end30 12 object ButtonCancel: TButton 31 13 Left = 376 … … 36 18 Caption = 'Cancel' 37 19 ModalResult = 2 38 TabOrder = 120 TabOrder = 0 39 21 end 40 22 object ButtonOk: TButton … … 47 29 Default = True 48 30 ModalResult = 1 49 TabOrder = 231 TabOrder = 1 50 32 end 51 33 object ComboBox1: TComboBox 52 Left = 834 Left = 11 53 35 Height = 29 54 Top = 8036 Top = 32 55 37 Width = 236 56 38 ItemHeight = 0 57 39 Style = csDropDownList 58 TabOrder = 340 TabOrder = 2 59 41 end 60 42 object Label1: TLabel 61 Left = 843 Left = 11 62 44 Height = 17 63 Top = 6445 Top = 16 64 46 Width = 83 65 47 Caption = 'Data format:' … … 67 49 end 68 50 object LabeledEditFolder: TLabeledEdit 69 Left = 851 Left = 11 70 52 Height = 27 71 Top = 13653 Top = 88 72 54 Width = 440 73 55 Anchors = [akTop, akLeft, akRight] … … 76 58 EditLabel.AnchorSideRight.Side = asrBottom 77 59 EditLabel.AnchorSideBottom.Control = LabeledEditFolder 78 EditLabel.Left = 860 EditLabel.Left = 11 79 61 EditLabel.Height = 17 80 EditLabel.Top = 11662 EditLabel.Top = 68 81 63 EditLabel.Width = 440 82 64 EditLabel.Caption = 'Destination folder:' 83 65 EditLabel.ParentColor = False 84 TabOrder = 466 TabOrder = 3 85 67 end 86 68 object Button1: TButton 87 Left = 46 169 Left = 464 88 70 Height = 25 89 Top = 13671 Top = 88 90 72 Width = 75 91 73 Anchors = [akTop, akRight] 92 74 Caption = 'Select' 93 75 OnClick = Button1Click 94 TabOrder = 576 TabOrder = 4 95 77 end 96 78 end -
trunk/Forms/UFormSettings.lrt
r9 r12 1 1 TFORMSETTINGS.CAPTION=Settings 2 TFORMSETTINGS.LABELEDEDITTOKEN.EDITLABEL.CAPTION=Token3 2 TFORMSETTINGS.BUTTONCANCEL.CAPTION=Cancel 4 3 TFORMSETTINGS.BUTTONOK.CAPTION=Ok -
trunk/Forms/UFormSettings.pas
r10 r12 19 19 ComboBox1: TComboBox; 20 20 Label1: TLabel; 21 LabeledEditToken: TLabeledEdit;22 21 LabeledEditFolder: TLabeledEdit; 23 22 procedure Button1Click(Sender: TObject); … … 67 66 procedure TFormSettings.Load; 68 67 begin 69 LabeledEditToken.Text := Core.Token;70 68 ComboBox1.ItemIndex := Integer(Core.DataFormat); 71 69 LabeledEditFolder.Text := Core.TargetDirectory; … … 74 72 procedure TFormSettings.Save; 75 73 begin 76 Core.Token := LabeledEditToken.Text;77 74 Core.DataFormat := TFioDataFormat(ComboBox1.ItemIndex); 78 75 Core.TargetDirectory := LabeledEditFolder.Text;
Note:
See TracChangeset
for help on using the changeset viewer.