Changeset 50 for trunk/Client/Forms
- Timestamp:
- Mar 21, 2012, 6:18:39 PM (13 years ago)
- Location:
- trunk/Client/Forms
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Client/Forms/UFormLogin.lfm
r46 r50 1 1 object LoginForm: TLoginForm 2 Left = 2 883 Height = 1 774 Top = 2 435 Width = 4 512 Left = 262 3 Height = 182 4 Top = 238 5 Width = 477 6 6 BorderIcons = [biSystemMenu] 7 7 BorderStyle = bsDialog 8 8 Caption = 'Login' 9 ClientHeight = 1 7710 ClientWidth = 4 519 ClientHeight = 182 10 ClientWidth = 477 11 11 OnClose = FormClose 12 12 OnShow = FormShow … … 15 15 object Label1: TLabel 16 16 Left = 16 17 Height = 1 418 Top = 6 419 Width = 5317 Height = 18 18 Top = 60 19 Width = 72 20 20 Caption = 'Username:' 21 21 ParentColor = False … … 23 23 object Label2: TLabel 24 24 Left = 16 25 Height = 1 426 Top = 9 627 Width = 5125 Height = 18 26 Top = 92 27 Width = 66 28 28 Caption = 'Password:' 29 29 ParentColor = False 30 30 end 31 31 object ButtonCancel: TButton 32 Left = 1 1232 Left = 144 33 33 Height = 25 34 Top = 14 434 Top = 143 35 35 Width = 75 36 36 Caption = 'Close' … … 40 40 end 41 41 object ButtonLogin: TButton 42 Left = 1642 Left = 40 43 43 Height = 25 44 44 Top = 144 … … 51 51 end 52 52 object EditUserName: TEdit 53 Left = 8854 Height = 2 155 Top = 6453 Left = 104 54 Height = 27 55 Top = 56 56 56 Width = 104 57 57 TabOrder = 2 … … 59 59 object Label3: TLabel 60 60 Left = 16 61 Height = 1 461 Height = 18 62 62 Top = 12 63 Width = 5963 Width = 78 64 64 Caption = 'Connection:' 65 65 ParentColor = False 66 66 end 67 67 object ComboBoxConnection: TComboBox 68 Left = 8869 Height = 2 170 Top = 1268 Left = 104 69 Height = 27 70 Top = 7 71 71 Width = 105 72 ItemHeight = 1372 ItemHeight = 0 73 73 Style = csDropDownList 74 74 TabOrder = 0 75 75 end 76 76 object ButtonChange: TButton 77 Left = 19877 Left = 216 78 78 Height = 25 79 Top = 979 Top = 7 80 80 Width = 67 81 81 Caption = 'Change' … … 84 84 end 85 85 object Image1: TImage 86 Left = 2 7286 Left = 296 87 87 Height = 156 88 88 Top = 12 … … 90 90 end 91 91 object EditPassword: TEdit 92 Left = 8993 Height = 2 194 Top = 9692 Left = 105 93 Height = 27 94 Top = 88 95 95 Width = 104 96 96 EchoMode = emPassword … … 100 100 object CheckBoxRememberPassword: TCheckBox 101 101 Left = 16 102 Height = 1 7102 Height = 19 103 103 Top = 121 104 Width = 1 20104 Width = 157 105 105 Caption = 'Remember password' 106 106 TabOrder = 4 -
trunk/Client/Forms/UFormLogin.pas
r46 r50 32 32 private 33 33 public 34 procedure UpdateInterface; 34 35 end; 35 36 … … 70 71 if (ComboBoxConnection.Items.Count > 0) and 71 72 (ComboBoxConnection.ItemIndex = -1) then ComboBoxConnection.ItemIndex := 0; 73 UpdateInterface; 74 end; 75 76 procedure TLoginForm.UpdateInterface; 77 begin 78 ButtonLogin.Enabled := ComboBoxConnection.ItemIndex >= 0; 72 79 end; 73 80 … … 81 88 try 82 89 LoginProfileForm := TLoginProfileForm.Create(MainForm); 90 Core.CoolTranslator1.TranslateComponentRecursive(LoginProfileForm); 83 91 if LoginProfileForm.ShowModal = mrOk then begin 84 92 Core.Profiles.FillStrings(ComboBoxConnection.Items); … … 91 99 LoginProfileForm.Free; 92 100 end; 101 UpdateInterface; 93 102 end; 94 103 -
trunk/Client/Forms/UFormLoginProfile.lfm
r46 r50 14 14 LCLVersion = '0.9.31' 15 15 object LabelServer: TLabel 16 Left = 2 7817 Height = 1 416 Left = 262 17 Height = 18 18 18 Top = 63 19 Width = 3719 Width = 47 20 20 Anchors = [akTop, akRight] 21 21 Caption = 'Server:' … … 24 24 object EditServer: TEdit 25 25 Left = 345 26 Height = 2 126 Height = 27 27 27 Top = 56 28 28 Width = 178 … … 35 35 Height = 289 36 36 Top = 25 37 Width = 2 5637 Width = 240 38 38 Anchors = [akTop, akLeft, akRight, akBottom] 39 39 ItemHeight = 0 40 40 OnSelectionChange = ListBoxProfilesSelectionChange 41 ScrollWidth = 2 4641 ScrollWidth = 236 42 42 TabOrder = 1 43 TopIndex = -1 43 44 end 44 45 object ButtonOk: TButton … … 55 56 object Label1: TLabel 56 57 Left = 10 57 Height = 1 458 Height = 18 58 59 Top = 9 59 Width = 4060 Width = 53 60 61 Caption = 'Profiles:' 61 62 ParentColor = False … … 73 74 object SpinEditPort: TSpinEdit 74 75 Left = 345 75 Height = 2 176 Height = 27 76 77 Top = 84 77 78 Width = 178 … … 82 83 end 83 84 object Label2: TLabel 84 Left = 2 7885 Height = 1 485 Left = 262 86 Height = 18 86 87 Top = 91 87 Width = 2588 Width = 31 88 89 Anchors = [akTop, akRight] 89 90 Caption = 'Port:' … … 91 92 end 92 93 object Label3: TLabel 93 Left = 2 7894 Height = 1 495 Top = 1 2096 Width = 4494 Left = 262 95 Height = 18 96 Top = 117 97 Width = 58 97 98 Anchors = [akTop, akRight] 98 99 Caption = 'Protocol:' … … 101 102 object ComboBoxProtocol: TComboBox 102 103 Left = 345 103 Height = 2 1104 Height = 27 104 105 Top = 113 105 106 Width = 178 106 107 Anchors = [akTop, akRight] 107 ItemHeight = 13108 ItemHeight = 0 108 109 OnChange = ComboBoxProtocolChange 109 110 Style = csDropDownList … … 111 112 end 112 113 object Label4: TLabel 113 Left = 2 78114 Height = 1 4114 Left = 262 115 Height = 18 115 116 Top = 152 116 Width = 51117 Width = 67 117 118 Anchors = [akTop, akRight] 118 119 Caption = 'Database:' … … 121 122 object EditDatabase: TEdit 122 123 Left = 345 123 Height = 2 1124 Height = 27 124 125 Top = 145 125 126 Width = 178 … … 159 160 end 160 161 object EditName: TEdit 161 Left = 34 4162 Height = 2 1162 Left = 343 163 Height = 27 163 164 Top = 26 164 165 Width = 179 … … 168 169 end 169 170 object Label5: TLabel 170 Left = 2 78171 Height = 1 4172 Top = 3 3173 Width = 32171 Left = 262 172 Height = 18 173 Top = 30 174 Width = 44 174 175 Anchors = [akTop, akRight] 175 176 Caption = 'Name:' -
trunk/Client/Forms/UFormLoginProfile.pas
r46 r50 71 71 ProfileList: TProfileList; 72 72 public 73 procedure UpdateInterface; 73 74 end; 74 75 … … 157 158 begin 158 159 MainForm.PersistentForm.Save(Self); 160 Core.Profiles.SaveToRegistry(Core.RegistryRootKey, Core.RegistryKey); 159 161 end; 160 162 … … 195 197 if (ListBoxProfiles.Items.Count > 0) and 196 198 (ListBoxProfiles.ItemIndex = -1) then ListBoxProfiles.ItemIndex := 0; 199 UpdateInterface; 197 200 end; 198 201 … … 209 212 EditName.Text := Name; 210 213 SelectedProfile := TConnectProfile(ProfileList[ListBoxProfiles.ItemIndex]); 214 UpdateInterface; 211 215 end; 212 216 end; … … 216 220 if Assigned(SelectedProfile) then 217 221 SelectedProfile.Port := SpinEditPort.Value; 222 end; 223 224 procedure TLoginProfileForm.UpdateInterface; 225 begin 226 EditName.Enabled := ListBoxProfiles.ItemIndex <> -1; 227 EditServer.Enabled := ListBoxProfiles.ItemIndex <> -1; 228 EditDatabase.Enabled := ListBoxProfiles.ItemIndex <> -1; 229 SpinEditPort.Enabled := ListBoxProfiles.ItemIndex <> -1; 230 ComboBoxProtocol.Enabled := ListBoxProfiles.ItemIndex <> -1; 218 231 end; 219 232 -
trunk/Client/Forms/UFormMain.lfm
r49 r50 6 6 ActiveControl = PanelMenu 7 7 Caption = 'ChronIS' 8 ClientHeight = 42 78 ClientHeight = 421 9 9 ClientWidth = 640 10 10 Icon.Data = { … … 153 153 object PanelMenu: TPanel 154 154 Left = 0 155 Height = 3 81155 Height = 374 156 156 Top = 26 157 157 Width = 184 … … 162 162 object PanelData: TPanel 163 163 Left = 189 164 Height = 3 81164 Height = 374 165 165 Top = 26 166 166 Width = 451 … … 171 171 object Splitter1: TSplitter 172 172 Left = 184 173 Height = 3 81173 Height = 374 174 174 Top = 26 175 175 Width = 5 … … 177 177 object StatusBar1: TStatusBar 178 178 Left = 0 179 Height = 2 0180 Top = 40 7179 Height = 21 180 Top = 400 181 181 Width = 640 182 182 Panels = < -
trunk/Client/Forms/UFormMain.pas
r49 r50 182 182 try 183 183 SettingForm := TSettingForm.Create(nil); 184 Core.CoolTranslator1.TranslateComponentRecursive(SettingForm); 184 185 SettingForm.ShowModal; 185 186 finally … … 224 225 try 225 226 ImportStructureForm := TImportStructureForm.Create(MainForm); 227 Core.CoolTranslator1.TranslateComponentRecursive(ImportStructureForm); 226 228 ImportStructureForm.ShowModal; 227 229 finally … … 234 236 try 235 237 LoginForm := TLoginForm.Create(MainForm); 238 Core.CoolTranslator1.TranslateComponentRecursive(LoginForm); 236 239 Core.Profiles.LoadFromRegistry(Core.RegistryRootKey, Core.RegistryKey); 237 240 if LoginForm.ShowModal = mrOK then begin … … 274 277 try 275 278 AboutForm := TAboutForm.Create(nil); 279 Core.CoolTranslator1.TranslateComponentRecursive(AboutForm); 276 280 AboutForm.ShowModal; 277 281 finally
Note:
See TracChangeset
for help on using the changeset viewer.