Changeset 6
- Timestamp:
- Nov 14, 2012, 10:35:10 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 39 added
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Dochazka.lpi
r5 r6 72 72 </local> 73 73 </RunParams> 74 <RequiredPackages Count=" 3">74 <RequiredPackages Count="4"> 75 75 <Item1> 76 <PackageName Value="Common"/> 76 <PackageName Value="CoolTranslator"/> 77 <DefaultFilename Value="Packages/CoolTranslator/CoolTranslator.lpk" Prefer="True"/> 77 78 </Item1> 78 79 <Item2> 80 <PackageName Value="Common"/> 81 <DefaultFilename Value="Packages/Common/Common.lpk" Prefer="True"/> 82 </Item2> 83 <Item3> 79 84 <PackageName Value="CoolWeb"/> 80 85 <DefaultFilename Value="Packages/CoolWeb/CoolWeb.lpk" Prefer="True"/> 81 </Item 2>82 <Item 3>86 </Item3> 87 <Item4> 83 88 <PackageName Value="LCL"/> 84 </Item 3>89 </Item4> 85 90 </RequiredPackages> 86 <Units Count=" 6">91 <Units Count="8"> 87 92 <Unit0> 88 93 <Filename Value="Dochazka.lpr"/> … … 123 128 <UnitName Value="UFormSetting"/> 124 129 </Unit5> 130 <Unit6> 131 <Filename Value="Forms/UFormList.pas"/> 132 <IsPartOfProject Value="True"/> 133 <ComponentName Value="FormList"/> 134 <HasResources Value="True"/> 135 <ResourceBaseClass Value="Form"/> 136 <UnitName Value="UFormList"/> 137 </Unit6> 138 <Unit7> 139 <Filename Value="Common/UPersistentForm.pas"/> 140 <IsPartOfProject Value="True"/> 141 <UnitName Value="UPersistentForm"/> 142 </Unit7> 125 143 </Units> 126 144 </ProjectOptions> … … 132 150 <SearchPaths> 133 151 <IncludeFiles Value="$(ProjOutDir)"/> 134 <OtherUnitFiles Value="Forms "/>152 <OtherUnitFiles Value="Forms;Common"/> 135 153 <UnitOutputDirectory Value="lib/$(TargetCPU)-$(TargetOS)"/> 136 154 </SearchPaths> -
trunk/Dochazka.lpr
r5 r6 8 8 {$ENDIF}{$ENDIF} 9 9 Interfaces, // this includes the LCL widgetset 10 Forms, UFormMain, UCore, UAttendance, CoolWeb, Common, UFormSetting, SysUtils 10 Forms, UFormMain, UCore, UAttendance, UPersistentForm, CoolWeb, Common, 11 CoolTranslator, UFormSetting, SysUtils, UFormList 11 12 { you can add units after this }; 12 13 … … 30 31 Application.CreateForm(TFormMain, FormMain); 31 32 Application.CreateForm(TFormSetting, FormSetting); 33 Application.CreateForm(TFormList, FormList); 32 34 Application.Run; 33 35 end. -
trunk/Forms/UFormMain.lfm
r5 r6 9 9 Menu = MainMenu1 10 10 OnClose = FormClose 11 OnCreate = FormCreate 12 OnDestroy = FormDestroy 11 13 OnShow = FormShow 12 14 LCLVersion = '1.1' 15 WindowState = wsMaximized 13 16 object PageControl1: TPageControl 14 17 Left = 0 … … 16 19 Top = 26 17 20 Width = 733 18 ActivePage = TabSheet Users21 ActivePage = TabSheetTerminals 19 22 Align = alClient 20 TabIndex = 0 23 Images = ImageList1 24 TabIndex = 2 21 25 TabOrder = 0 22 26 object TabSheetUsers: TTabSheet 23 27 Caption = 'Users' 28 OnHide = TabSheetUsersHide 29 OnShow = TabSheetUsersShow 24 30 end 25 31 object TabSheetAttendance: TTabSheet … … 28 34 object TabSheetTerminals: TTabSheet 29 35 Caption = 'Terminals' 36 OnShow = TabSheetTerminalsShow 30 37 end 31 38 object TabSheetHolidays: TTabSheet … … 53 60 TabOrder = 2 54 61 Visible = False 62 object ToolButton1: TToolButton 63 Left = 1 64 Top = 2 65 Action = ASetting 66 end 55 67 end 56 68 object MainMenu1: TMainMenu … … 59 71 object MenuItemSystem: TMenuItem 60 72 Caption = 'System' 73 object MenuItem1: TMenuItem 74 Action = ASetting 75 end 61 76 object MenuItem2: TMenuItem 62 Action = A ctionExit77 Action = AExit 63 78 end 64 79 end … … 68 83 left = 472 69 84 top = 112 70 object A ctionExit: TAction85 object AExit: TAction 71 86 Caption = 'Exit' 87 Hint = 'Close application' 88 OnExecute = AExitExecute 89 end 90 object ASetting: TAction 91 Caption = 'Setting' 92 Hint = 'Show global setting' 93 OnExecute = ASettingExecute 72 94 end 73 95 end … … 75 97 left = 472 76 98 top = 168 99 Bitmap = { 100 4C69060000001000000010000000000000000000000000000000000000000000 101 0000000000000000000000000000000000000000000000000000000000000000 102 000000000000000000000000000000000000000000008C8CBBFF000088FF8C8C 103 BBFF00000000000000000000000000000000000000008C8CBBFF000075FF8C8C 104 BBFF000000000000000000000000000000008C8CBBFF000088FF619BFFFF0000 105 86FF7979A8FF0000000000000000000000008C8CBBFF000075FF619BFFFF0000 106 6EFF7979A8FF000000000000000000000000000088FF619BFFFF0057FFFF0054 107 FFFF000082FF7979A8FF000000008C8CBBFF000075FF619BFFFF003AFFFF0035 108 FFFF000068FFDCDCDCFF00000000000000008C8CBBFF000086FF0054FFFF0052 109 FFFF004EFFFF00007CFF7979A8FF000075FF619BFFFF003AFFFF0035FFFF0000 110 67FF626291FFB2B2B2FF0000000000000000000000007979A8FF000082FF004E 111 FFFF004BFFFF0047FFFF000075FF619BFFFF003AFFFF0035FFFF000068FF6262 112 91FFB2B2B2FFDCDCDCFF000000000000000000000000000000007979A8FF0000 113 7CFF0047FFFF0042FFFF003EFFFF003AFFFF0035FFFF000068FF626291FFB2B2 114 B2FFDCDCDCFF0000000000000000000000000000000000000000000000007979 115 A8FF000075FF003EFFFF003AFFFF0035FFFF000068FF626291FFB2B2B2FFDCDC 116 DCFF0000000000000000000000000000000000000000000000008C8CBBFF0000 117 75FF619BFFFF003AFFFF0035FFFF0030FFFF002BFFFF000061FF7979A8FF0000 118 000000000000000000000000000000000000000000008C8CBBFF000075FF619B 119 FFFF003AFFFF0035FFFF000067FF002CFFFF0027FFFF0023FFFF000059FF7979 120 A8FF000000000000000000000000000000008C8CBBFF000075FF619BFFFF003A 121 FFFF0035FFFF000067FF626291FF000061FF0023FFFF001FFFFF001BFFFF0000 122 54FF7979A8FF000000000000000000000000000072FF619BFFFF003AFFFF0035 123 FFFF000067FF626291FFB2B2B2FF7979A8FF000059FF001BFFFF0018FFFF0015 124 FFFF000050FFDCDCDCFF00000000000000008C8CBBFF00006EFF0035FFFF0000 125 68FF626291FFB2B2B2FFDCDCDCFF000000007979A8FF000054FF0015FFFF0000 126 50FF626291FFB2B2B2FF0000000000000000000000007979A8FF000067FF6262 127 91FFB2B2B2FFDCDCDCFF0000000000000000000000007979A8FF000050FF6262 128 91FFB2B2B2FFDCDCDCFF00000000000000000000000000000000DCDCDCFFB2B2 129 B2FFDCDCDCFF0000000000000000000000000000000000000000DCDCDCFFB2B2 130 B2FFDCDCDCFF0000000000000000000000000000000000000000000000000000 131 0000000000000000000000000000000000000000000000000000000000000000 132 0000000000000000000000000000000000000000000000000000000000000000 133 000070A970FF006400FF006200FF70A670FF0000000000000000000000000000 134 0000000000000000000000000000000000000000000000000000000000000000 135 0000006400FFECFFECFF8CFE8CFF006000FFD4D4D4FF00000000000000000000 136 0000000000000000000000000000000000000000000000000000000000000000 137 0000006400FF8CFE8CFF00E800FF005E00FFB2B2B2FF00000000000000000000 138 0000000000000000000000000000000000000000000000000000000000000000 139 0000006200FF8CFE8CFF00E500FF005C00FFB2B2B2FF00000000000000000000 140 0000000000000000000000000000000000000000000000000000000000000000 141 0000006000FF8CFE8CFF00E000FF005A00FFB2B2B2FF00000000000000000000 142 000000000000000000000000000070A970FF006400FF006400FF006200FF0060 143 00FF006000FF8CFE8CFF00DD00FF005800FF005600FF005400FF005300FF0050 144 00FF709C70FF0000000000000000006400FFECFFECFF8CFE8CFF8CFE8CFF8CFE 145 8CFF8CFE8CFF00DE00FF00D900FF00D400FF00D000FF00CC00FF00C800FF00C4 146 00FF004A00FFD4D4D4FF00000000006200FF8CFE8CFF00EA00FF00E600FF00E2 147 00FF00DE00FF00DA00FF00D400FF00D000FF00CC00FF00C800FF00C400FF00C2 148 00FF004800FFB2B2B2FF0000000070A670FF005E00FF005C00FF005A00FF0058 149 00FF005600FF00D600FF00D000FF005000FF004E00FF004C00FF004A00FF004A 150 00FF4E764EFFB2B2B2FF0000000000000000D4D4D4FFB2B2B2FFB2B2B2FFB2B2 151 B2FF005400FF00D200FF00CE00FF004E00FFB2B2B2FFB2B2B2FFB2B2B2FFB2B2 152 B2FFB2B2B2FFD4D4D4FF00000000000000000000000000000000000000000000 153 0000005300FF00CE00FF00CA00FF004C00FFB2B2B2FF00000000000000000000 154 0000000000000000000000000000000000000000000000000000000000000000 155 0000005000FF00CA00FF00C600FF004A00FFB2B2B2FF00000000000000000000 156 0000000000000000000000000000000000000000000000000000000000000000 157 0000004E00FF00C800FF00C400FF004800FFB2B2B2FF00000000000000000000 158 0000000000000000000000000000000000000000000000000000000000000000 159 0000709B70FF004A00FF004800FF4E764EFFB2B2B2FF00000000000000000000 160 0000000000000000000000000000000000000000000000000000000000000000 161 000000000000D4D4D4FFB2B2B2FFB2B2B2FFD4D4D4FF00000000000000000000 162 0000000000000000000000000000000000000000000000000000000000000000 163 0000000000000000000000000000000000000000000000000000000000000000 164 0000000000000000000000000000000000000000000000000000000000000000 165 0000000000000000000000000000000000000000000000000000000000000000 166 0000000000000000000000000000000000000000000000000000000000000000 167 00000000000000000000D69562FFD69562FFD69562FFD1925FFFD1925FFFD192 168 5FFFD1925FFFD1925FFF875735FF000000000000000000000000000000000000 169 00000000000000000000D69562FFF5F5F5FFF5F5F5FFF5F5F5FFF5F5F5FFF5F5 170 F5FFF5F5F5FFF5F5F5FF875735FF000000000000000000000000000000000000 171 00000000000000000000D69562FFFAFAFAFFFFEDE0FFFFEDE0FFFFEDE0FFFFED 172 E0FFFFEDE0FFFFFFFFFF875735FF000000000000000000000000000000000000 173 00000000000000000000EED4BFFFFFFFFFFFE0D5BFFFE4D9C3FFCCB27EFFFFED 174 E0FFFFEDE0FFFFFFFFFF875735FF00000000D69562FFD69562FFD69562FFD192 175 5FFFD1925FFFD1925FFFD1925FFFD1925FFF875735FFFFF7F2FFFFECDEFFFFEC 176 DEFFFFECDDFFFFFFFFFF875735FF00000000D69562FFF5F5F5FFF5F5F5FFF5F5 177 F5FFF5F5F5FFF5F5F5FFF5F5F5FFF5F5F5FF875735FFE4D9C3FFCCB27EFFD5BC 178 87FFDDC490FFFFFFFFFF875735FF00000000D69562FFFAFAFAFFFFEDE0FFFFED 179 E0FFFFEDE0FFFFEDE0FFFFEDE0FFFFFFFFFF875735FFFFF6EFFFFFE8D7FFFFE8 180 D7FFFFE8D7FFFFFFFFFF875735FF00000000D49360FFFFFFFFFFB2955FFFBB9F 181 69FFCCB27EFFFFEDE0FFFFEDE0FFFFFFFFFF875735FFE4D9C3FFCCB27EFFD5BC 182 87FFDDC490FFFFFFFFFF875735FF00000000D0905EFFFFFFFFFFFFECDEFFFFEC 183 DEFFFFECDEFFFFECDEFFFFECDDFFFFFFFFFF875735FFFFF6EFFFFFE8D7FFFFE8 184 D7FFFFE8D7FFFFFFFFFF875735FF00000000CC8D5CFFFFFFFFFFB2955FFFBB9F 185 69FFCCB27EFFD5BC87FFDDC490FFFFFFFFFF875735FFFFFFFFFFFFFFFFFFFFFF 186 FFFFFFFFFFFFFFFFFFFF875735FF00000000C18556FFFFFFFFFFFFE8D7FFFFE8 187 D7FFFFE8D7FFFFE8D7FFFFE8D7FFFFFFFFFF875735FFCFBCAEFF875735FF8757 188 35FF875735FF875735FF875735FF00000000C18556FFFFFFFFFFB2955FFFBB9F 189 69FFCCB27EFFD5BC87FFDDC490FFFFFFFFFF875735FF00000000000000000000 190 000000000000000000000000000000000000C18556FFFFFFFFFFFFE8D7FFFFE8 191 D7FFFFE8D7FFFFE8D7FFFFE8D7FFFFFFFFFF875735FF00000000000000000000 192 000000000000000000000000000000000000C18556FFFFFFFFFFFFFFFFFFFFFF 193 FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF875735FF00000000000000000000 194 000000000000000000000000000000000000875735FF875735FF875735FF8757 195 35FF875735FF875735FF875735FF875735FF875735FF00000000000000000000 196 0000000000000000000000000000000000000000000000000000000000000000 197 0000000000000000000000000000000000000000000000000000000000000000 198 000000000000000000000000000000000000000000FF000000FF000000FF0000 199 00FF000000FF000000FF000000FF000000FF0000000000000000000000000000 200 000000000000000000000000000000000000000000FF000000FFFFFFFFFFFFFF 201 FFFFFFFFFFFFFFFFFFFFFFFFFFFF000000FF0000000000000000000000000000 202 000000000000000000000000000000000000000000FF008484FF000000FFFFFF 203 FFFFFFFFFFFFFFFFFFFFFFFFFFFF000000FF0000000000000000000000000000 204 0000840000FF000000000000000000000000000000FF008484FF008484FF0000 205 00FFFFFFFFFFFFFFFFFFFFFFFFFF000000FF0000000000000000000000008400 206 00FF840000FF000000000000000000000000000000FF008484FF008484FF0084 207 84FF000000FFFFFFFFFFFFFFFFFF000000FF0000000000000000840000FF8400 208 00FF840000FF840000FF840000FF00000000000000FF008484FF008484FF0084 209 84FF000000FFFFFFFFFFFFFFFFFF000000FF00000000840000FF840000FF8400 210 00FF840000FF840000FF840000FF00000000000000FF008484FF008484FF0084 211 84FF000000FFFFFFFFFFFFFFFFFF000000FF0000000000000000840000FF8400 212 00FF840000FF840000FF840000FF00000000000000FF008484FF008484FF0084 213 84FF000000FFFFFFFFFFFFFFFFFF000000FF0000000000000000000000008400 214 00FF840000FF000000000000000000000000000000FF008484FF008484FF0000 215 00FF000000FFFFFFFFFFFFFFFFFF000000FF0000000000000000000000000000 216 0000840000FF000000000000000000000000000000FF008484FF008484FF0084 217 84FF000000FFFFFFFFFFFFFFFFFF000000FF0000000000000000000000000000 218 0000000000000000000000000000000000FF000000FF008484FF008484FF0084 219 84FF000000FF000000FF000000FF000000FF000000FF000000FF000000FF0000 220 00FF0000000000000000000000000000000000000000000000FF008484FF0084 221 84FF000000FF0000000000000000000000000000000000000000000000000000 222 0000000000000000000000000000000000000000000000000000000000FF0084 223 84FF000000FF0000000000000000000000000000000000000000000000000000 224 0000000000000000000000000000000000000000000000000000000000000000 225 00FF000000FF0000000000000000000000000000000000000000000000000000 226 0000000000000000000000000000000000000000000000000000000000000000 227 0000000000FF0000000000000000000000000000000000000000000000000000 228 0000000000000000000000000000A37B48FFA37B48FFA27A47FFA27946FFA178 229 45FFA07744FFA07643FF9F7542FF9E7441FF9E7340FF9D723FFF9C713EFF9C70 230 3DFF9B6F3CFF9A6E3BFF9A6D3AFFA37B48FFBEA27FFFBEA17EFFBDA17DFFBDA0 231 7CFFBD9F7CFFBC9F7BFFBB9E7AFFBB9D7AFFBB9D79FFBA9C78FFB99B78FFB99A 232 77FFB89A76FFB89975FF996C39FFA27A47FFFFFFFFFFFFFFFFFFFEFEFEFFFEFE 233 FEFFFDFDFDFFFDFDFCFFFCFCFBFFFCFBFBFFFBFBFAFFFBFAF9FFFAFAF9FFFAF9 234 F8FFF9F9F7FFF9F8F7FF986B37FFA17946FFFFFFFFFF878787FF5D5D5DFFA0A0 235 A0FFFDFCFCFFFCFCFBFFFCFBFBFFFBFBFAFFFBFAF9FFFAFAF9FFFAF9F8FFF9F8 236 F7FFF8F8F7FFF8F7F6FF976A36FFA17844FFFEFEFEFF5F5F5FFF949494FF5353 237 53FFFCFCFBFF7B7B7BFF797979FF757575FF727272FF6E6E6EFF6A6A69FF6666 238 66FF626262FFF7F7F5FF966935FFA07643FFFEFDFDFF8C8C8CFF525252FFA4A4 239 A4FFFBFBFAFFFBFBFAFFFAFAF9FFFAF9F8FFF9F9F8FFF9F8F7FFF8F8F6FFF8F7 240 F6FFF7F7F5FFF7F6F4FF966734FF9F7542FFFDFDFCFFFCFCFCFFFCFCFBFFFBFB 241 FAFFFBFAFAFFFAFAF9FFFAF9F8FFF9F9F8FFF9F8F7FFF8F8F6FFF8F7F6FFF7F6 242 F5FFF7F6F4FFF6F5F4FF956633FF9E7441FFFCFCFCFFB5B5B5FF848484FFBEBD 243 BDFFFAFAF9FFFAF9F8FFF9F9F7FFF9F8F7FFF8F8F6FFF8F7F5FFF7F6F5FFF7F6 244 F4FFF6F5F3FFF6F5F3FF946531FF9D7340FFFCFBFBFF818181FFC4C4C4FF8F8F 245 8FFFFAF9F8FF7B7B7AFF797979FF757574FF727171FF6D6D6DFF696969FF6666 246 65FF626261FFF5F4F2FF936430FF9D723EFFFBFBFAFF9F9F9EFF7F7F7FFFAEAE 247 ADFFF9F8F7FFF8F8F7FFF8F7F6FFF7F7F5FFF7F6F5FFF6F6F4FFF6F5F3FFF5F4 248 F3FFF5F4F2FFF4F3F1FF92622FFF9C703DFFFAFAF9FFFAF9F9FFF9F9F8FFF9F8 249 F7FFF8F8F7FFF8F7F6FFF7F7F5FFF7F6F5FFF6F5F4FFF6F5F3FFF5F4F3FFF5F4 250 F2FFF4F3F1FFF4F3F0FF92612EFF9B6F3CFFFAF9F8FFBEBEBDFF929292FFBCBC 251 BBFFF8F7F6FFF7F7F5FFF7F6F4FFF6F5F4FFF6F5F3FFF5F4F2FFF5F4F2FFF4F3 252 F1FFF4F2F0FFF3F2F0FF91602DFF9A6E3BFFF9F9F8FF7C7C7CFFC4C4C4FF8787 253 87FFF7F6F5FF7A7A7AFF787878FF747474FF717170FF6D6D6CFF696968FF6565 254 65FF616161FFF2F1EFFF905F2BFF996D3AFFF9F8F7FF959594FF878787FF9B9A 255 9AFFF7F6F4FFF6F5F3FFF6F5F3FFF5F4F2FFF4F3F1FFF4F3F1FFF3F2F0FFF3F2 256 EFFFF2F1EFFFF2F1EEFF8F5E2AFF996C38FFF8F7F6FFF8F7F5FFF7F6F5FFF6F6 257 F4FFF6F5F3FFF5F5F3FFF5F4F2FFF4F3F1FFF4F3F1FFF3F2F0FFF3F2EFFFF2F1 258 EFFFF2F0EEFFF1F0EDFF8E5D29FF986B37FF976A36FF966935FF966734FF9566 259 33FF946532FF946531FF936430FF92622FFF92612EFF91602DFF90602CFF905F 260 2BFF8F5D2AFF8E5C29FF8D5B28FF000000000000000000000000000000000000 261 0000000000000000000000000000000000000000000000000000000000000000 262 0000000000000000000000000000000000000000000000000000000000000000 263 0000000000000000000000000000000000000000000000000000000000000000 264 0000000000000000000000000000000000000000000000000000000000000000 265 0000000000000000000000000000000000000000000000000000000000000000 266 0000000000000000000000000000000000000000000000000000339966FF0000 267 00000000000066CC99FF009933FF009933FF009933FF339966FF000000000000 268 0000000000000000000000000000000000000000000000000000009933FF3399 269 66FF009933FF009933FF009933FF009933FF009933FF339966FF339966FF0000 270 0000000000000000000000000000000000000000000000000000009933FF0099 271 33FF009933FF009933FF66CC99FF000000000000000066CC99FF009933FF66CC 272 99FF000000000000000000000000000000000000000000000000009933FF0099 273 33FF009933FF339966FF0000000000000000000000000000000066CC99FF0099 274 33FF000000000000000000000000000000000000000000000000009933FF0099 275 33FF009933FF009933FF339966FF000000000000000000000000000000000000 276 0000000000000000000000000000000000000000000000000000000000000000 277 0000000000000000000000000000000000000000000000000000000000000000 278 0000000000000000000000000000000000000000000000000000000000000000 279 0000000000000000000000000000339966FF009933FF009933FF009933FF0099 280 33FF000000000000000000000000000000000000000000000000009933FF66CC 281 99FF00000000000000000000000000000000339966FF009933FF009933FF0099 282 33FF00000000000000000000000000000000000000000000000066CC99FF0099 283 33FF66CC99FF000000000000000066CC99FF009933FF009933FF009933FF0099 284 33FF000000000000000000000000000000000000000000000000000000003399 285 66FF339966FF009933FF009933FF009933FF009933FF009933FF339966FF0099 286 33FF000000000000000000000000000000000000000000000000000000000000 287 0000339966FF009933FF009933FF009933FF66CC99FF00000000000000003399 288 66FF000000000000000000000000000000000000000000000000000000000000 289 0000000000000000000000000000000000000000000000000000000000000000 290 0000000000000000000000000000000000000000000000000000000000000000 291 0000000000000000000000000000000000000000000000000000000000000000 292 0000000000000000000000000000 293 } 77 294 end 78 295 end -
trunk/Forms/UFormMain.lrt
r5 r6 6 6 TFORMMAIN.TABSHEETOPERATIONS.CAPTION=Operations 7 7 TFORMMAIN.MENUITEMSYSTEM.CAPTION=System 8 TFORMMAIN.ACTIONEXIT.CAPTION=Exit 8 TFORMMAIN.AEXIT.CAPTION=Exit 9 TFORMMAIN.AEXIT.HINT=Close application 10 TFORMMAIN.ASETTING.CAPTION=Setting 11 TFORMMAIN.ASETTING.HINT=Show global setting -
trunk/Forms/UFormMain.pas
r5 r6 14 14 15 15 TFormMain = class(TForm) 16 ActionExit: TAction; 16 ASetting: TAction; 17 AExit: TAction; 17 18 ActionList1: TActionList; 18 19 ImageList1: TImageList; 19 20 MainMenu1: TMainMenu; 21 MenuItem1: TMenuItem; 20 22 MenuItemSystem: TMenuItem; 21 23 MenuItem2: TMenuItem; … … 28 30 TabSheetTerminals: TTabSheet; 29 31 ToolBar1: TToolBar; 32 ToolButton1: TToolButton; 33 procedure AExitExecute(Sender: TObject); 34 procedure ASettingExecute(Sender: TObject); 30 35 procedure FormClose(Sender: TObject; var CloseAction: TCloseAction); 36 procedure FormCreate(Sender: TObject); 37 procedure FormDestroy(Sender: TObject); 31 38 procedure FormShow(Sender: TObject); 39 procedure TabSheetTerminalsShow(Sender: TObject); 40 procedure TabSheetUsersHide(Sender: TObject); 41 procedure TabSheetUsersShow(Sender: TObject); 32 42 private 33 43 { private declarations } … … 42 52 43 53 uses 44 UCore ;54 UCore, UFormList, UFormSetting; 45 55 46 56 {$R *.lfm} 57 58 resourcestring 59 SPersonalId = 'Personal Id'; 60 SFirstName = 'First name'; 61 SSecondName = 'Second name'; 62 SEnabled = 'Enabled'; 63 SAddress = 'Address'; 64 SPort = 'Port'; 65 SType = 'Type'; 66 SName = 'Name'; 67 SFingerPrint = 'Fingerprint'; 68 SCardCode = 'Card code'; 69 SNote = 'Note'; 70 SLogin = 'Login'; 71 SPassword = 'Password'; 47 72 48 73 { TFormMain } … … 50 75 procedure TFormMain.FormClose(Sender: TObject; var CloseAction: TCloseAction); 51 76 begin 77 end; 78 79 procedure TFormMain.FormCreate(Sender: TObject); 80 begin 81 Core.Init; 82 Core.PersistentForm.Load(Self); 83 end; 84 85 procedure TFormMain.FormDestroy(Sender: TObject); 86 begin 87 Core.PersistentForm.Save(Self); 52 88 Core.Done; 89 end; 90 91 procedure TFormMain.AExitExecute(Sender: TObject); 92 begin 93 Exit; 94 end; 95 96 procedure TFormMain.ASettingExecute(Sender: TObject); 97 begin 98 FormSetting.ShowModal; 53 99 end; 54 100 55 101 procedure TFormMain.FormShow(Sender: TObject); 56 102 begin 57 Core.Init; 103 end; 104 105 procedure TFormMain.TabSheetTerminalsShow(Sender: TObject); 106 begin 107 Core.FormTerminals := TFormList.Create(Self); 108 with TFormList(Core.FormTerminals) do begin 109 ManualDock(TTabSheet(Sender)); 110 Align := alClient; 111 Show; 112 with Columns do begin 113 AddItem(SName, 'Name', True, 80); 114 AddItem(SEnabled, 'Enabled', True, 80); 115 AddItem(SAddress, 'Address', True, 80); 116 AddItem(SPort, 'Port', True, 80); 117 AddItem(SType, 'Type', True, 80); 118 AddItem(SNote, 'Note', True, 80); 119 end; 120 Table := 'Terminal'; 121 UpdateData; 122 end; 123 end; 124 125 procedure TFormMain.TabSheetUsersHide(Sender: TObject); 126 begin 127 FreeAndNil(Core.FormUsers); 128 end; 129 130 procedure TFormMain.TabSheetUsersShow(Sender: TObject); 131 begin 132 Core.FormUsers := TFormList.Create(Self); 133 with TFormList(Core.FormUsers) do begin 134 ManualDock(TTabSheet(Sender)); 135 Align := alClient; 136 Show; 137 with Columns do begin 138 AddItem(SEnabled, 'Enabled', True, 80); 139 AddItem(SPersonalId, 'PersonalId', True, 80); 140 AddItem(SLogin, 'Login', False, 80); 141 AddItem(SPassword, 'Password', False, 80); 142 AddItem(SFirstName, 'FirstName', True, 80); 143 AddItem(SSecondName, 'SecondName', True, 80); 144 AddItem(SCardCode, 'CardCode', True, 80); 145 AddItem(SFingerPrint, 'FingerPrint', True, 80); 146 AddItem(SNote, 'Note', False, 80); 147 end; 148 Table := 'User'; 149 UpdateData; 150 end; 58 151 end; 59 152 -
trunk/Forms/UFormSetting.lfm
r5 r6 1 1 object FormSetting: TFormSetting 2 Left = 47 62 Left = 475 3 3 Height = 367 4 Top = 2184 Top = 142 5 5 Width = 532 6 6 Caption = 'Setting' 7 OnClose = FormClose 8 OnCreate = FormCreate 9 OnDestroy = FormDestroy 10 OnShow = FormShow 7 11 LCLVersion = '1.1' 8 12 end -
trunk/Forms/UFormSetting.pas
r5 r6 13 13 14 14 TFormSetting = class(TForm) 15 procedure FormClose(Sender: TObject; var CloseAction: TCloseAction); 16 procedure FormCreate(Sender: TObject); 17 procedure FormDestroy(Sender: TObject); 18 procedure FormShow(Sender: TObject); 15 19 private 16 20 { private declarations } … … 26 30 {$R *.lfm} 27 31 32 uses 33 UCore; 34 35 { TFormSetting } 36 37 procedure TFormSetting.FormClose(Sender: TObject; var CloseAction: TCloseAction 38 ); 39 begin 40 end; 41 42 procedure TFormSetting.FormCreate(Sender: TObject); 43 begin 44 Core.PersistentForm.Load(Self); 45 end; 46 47 procedure TFormSetting.FormDestroy(Sender: TObject); 48 begin 49 Core.PersistentForm.Save(Self); 50 end; 51 52 procedure TFormSetting.FormShow(Sender: TObject); 53 begin 54 end; 55 28 56 end. 29 57 -
trunk/Languages/Dochazka.cs.po
r5 r6 56 56 msgstr "NastavenÃ" 57 57 58 #: tformmain.actionexit.caption 59 msgctxt "tformmain.actionexit.caption" 58 #: tformlist.aadd.caption 59 msgid "Add" 60 msgstr "PÅidat" 61 62 #: tformlist.aadd.hint 63 msgid "Add new item" 64 msgstr "PÅidat novou poloÅŸku" 65 66 #: tformlist.adelete.caption 67 msgid "Delete" 68 msgstr "Odstranit" 69 70 #: tformlist.adelete.hint 71 msgid "Delete item" 72 msgstr "Odstranit poloÅŸku" 73 74 #: tformlist.aduplicate.caption 75 msgid "Duplicate" 76 msgstr "KopÃrovat" 77 78 #: tformlist.aduplicate.hint 79 msgid "Duplicate item" 80 msgstr "VytvoÅit kopii" 81 82 #: tformlist.amodify.caption 83 msgid "Modify" 84 msgstr "Upravit" 85 86 #: tformlist.amodify.hint 87 msgid "Modify item" 88 msgstr "Upravit poloÅŸku" 89 90 #: tformlist.areload.caption 91 msgid "Reload" 92 msgstr "Obnovit" 93 94 #: tformlist.areload.hint 95 msgid "Reload data" 96 msgstr "Obnovit data" 97 98 #: tformlist.caption 99 msgid "List" 100 msgstr "Seznam" 101 102 #: tformmain.aexit.caption 103 msgctxt "tformmain.aexit.caption" 60 104 msgid "Exit" 61 105 msgstr "UkonÄit" 106 107 #: tformmain.aexit.hint 108 msgid "Close application" 109 msgstr "" 110 111 #: tformmain.asetting.caption 112 msgctxt "tformmain.asetting.caption" 113 msgid "Setting" 114 msgstr "NastavenÃ" 115 116 #: tformmain.asetting.hint 117 msgid "Show global setting" 118 msgstr "" 62 119 63 120 #: tformmain.caption … … 101 158 msgstr "NastavenÃ" 102 159 160 #: uformmain.saddress 161 msgid "Address" 162 msgstr "" 163 164 #: uformmain.scardcode 165 msgid "Card code" 166 msgstr "" 167 168 #: uformmain.senabled 169 msgid "Enabled" 170 msgstr "" 171 172 #: uformmain.sfingerprint 173 msgid "Fingerprint" 174 msgstr "" 175 176 #: uformmain.sfirstname 177 msgid "First name" 178 msgstr "Jméno" 179 180 #: uformmain.slogin 181 msgid "Login" 182 msgstr "" 183 184 #: uformmain.sname 185 msgid "Name" 186 msgstr "" 187 188 #: uformmain.snote 189 msgid "Note" 190 msgstr "" 191 192 #: uformmain.spassword 193 msgid "Password" 194 msgstr "" 195 196 #: uformmain.spersonalid 197 msgid "Personal Id" 198 msgstr "Osobnà ÄÃslo" 199 200 #: uformmain.sport 201 msgid "Port" 202 msgstr "" 203 204 #: uformmain.ssecondname 205 msgid "Second name" 206 msgstr "PÅÃjmenÃ" 207 208 #: uformmain.stype 209 msgid "Type" 210 msgstr "" 211 -
trunk/Languages/Dochazka.po
r5 r6 47 47 msgstr "" 48 48 49 #: tformmain.actionexit.caption 50 msgctxt "TFORMMAIN.ACTIONEXIT.CAPTION" 49 #: tformlist.aadd.caption 50 msgid "Add" 51 msgstr "" 52 53 #: tformlist.aadd.hint 54 msgid "Add new item" 55 msgstr "" 56 57 #: tformlist.adelete.caption 58 msgid "Delete" 59 msgstr "" 60 61 #: tformlist.adelete.hint 62 msgid "Delete item" 63 msgstr "" 64 65 #: tformlist.aduplicate.caption 66 msgid "Duplicate" 67 msgstr "" 68 69 #: tformlist.aduplicate.hint 70 msgid "Duplicate item" 71 msgstr "" 72 73 #: tformlist.amodify.caption 74 msgid "Modify" 75 msgstr "" 76 77 #: tformlist.amodify.hint 78 msgid "Modify item" 79 msgstr "" 80 81 #: tformlist.areload.caption 82 msgid "Reload" 83 msgstr "" 84 85 #: tformlist.areload.hint 86 msgid "Reload data" 87 msgstr "" 88 89 #: tformlist.caption 90 msgid "List" 91 msgstr "" 92 93 #: tformmain.aexit.caption 94 msgctxt "TFORMMAIN.AEXIT.CAPTION" 51 95 msgid "Exit" 96 msgstr "" 97 98 #: tformmain.aexit.hint 99 msgid "Close application" 100 msgstr "" 101 102 #: tformmain.asetting.caption 103 msgctxt "TFORMMAIN.ASETTING.CAPTION" 104 msgid "Setting" 105 msgstr "" 106 107 #: tformmain.asetting.hint 108 msgid "Show global setting" 52 109 msgstr "" 53 110 … … 92 149 msgstr "" 93 150 151 #: uformmain.saddress 152 msgid "Address" 153 msgstr "" 154 155 #: uformmain.scardcode 156 msgid "Card code" 157 msgstr "" 158 159 #: uformmain.senabled 160 msgid "Enabled" 161 msgstr "" 162 163 #: uformmain.sfingerprint 164 msgid "Fingerprint" 165 msgstr "" 166 167 #: uformmain.sfirstname 168 msgid "First name" 169 msgstr "" 170 171 #: uformmain.slogin 172 msgid "Login" 173 msgstr "" 174 175 #: uformmain.sname 176 msgid "Name" 177 msgstr "" 178 179 #: uformmain.snote 180 msgid "Note" 181 msgstr "" 182 183 #: uformmain.spassword 184 msgid "Password" 185 msgstr "" 186 187 #: uformmain.spersonalid 188 msgid "Personal Id" 189 msgstr "" 190 191 #: uformmain.sport 192 msgid "Port" 193 msgstr "" 194 195 #: uformmain.ssecondname 196 msgid "Second name" 197 msgstr "" 198 199 #: uformmain.stype 200 msgid "Type" 201 msgstr "" 202 -
trunk/UCore.lfm
r5 r6 1 1 object Core: TCore 2 2 OnCreate = DataModuleCreate 3 OnDestroy = DataModuleDestroy 3 4 OldCreateOrder = False 4 5 Height = 323 … … 29 30 top = 71 30 31 end 32 object CoolTranslator1: TCoolTranslator 33 POFilesFolder = 'Languages' 34 left = 88 35 top = 128 36 end 31 37 end -
trunk/UCore.pas
r5 r6 6 6 7 7 uses 8 Registry, Classes, SysUtils, FileUtil, USqlDatabase, URegistry, UApplicationInfo; 8 Registry, Classes, SysUtils, FileUtil, USqlDatabase, URegistry, Forms, 9 UApplicationInfo, UCoolTranslator, UPersistentForm; 9 10 10 11 type … … 14 15 TCore = class(TDataModule) 15 16 ApplicationInfo1: TApplicationInfo; 17 CoolTranslator1: TCoolTranslator; 16 18 Database: TSqlDatabase; 17 19 procedure DataModuleCreate(Sender: TObject); 20 procedure DataModuleDestroy(Sender: TObject); 18 21 private 19 22 public 23 FormUsers: TForm; 24 FormTerminals: TForm; 25 PersistentForm: TPersistentForm; 20 26 procedure Init; 21 27 procedure Done; … … 33 39 {$R *.lfm} 34 40 41 35 42 { TCore } 36 43 37 44 procedure TCore.DataModuleCreate(Sender: TObject); 38 45 begin 46 PersistentForm := TPersistentForm.Create; 47 PersistentForm.RegistryContext := RegContext(HKEY(ApplicationInfo1.RegistryRoot), 48 ApplicationInfo1.RegistryKey + '\Forms'); 49 end; 50 51 procedure TCore.DataModuleDestroy(Sender: TObject); 52 begin 53 FreeAndNil(PersistentForm); 39 54 end; 40 55 … … 42 57 begin 43 58 LoadFromRegistry(RegContext(HKEY(ApplicationInfo1.RegistryRoot), ApplicationInfo1.RegistryKey)); 59 // LoadFromRegistry(RegContext(HKEY_CURRENT_USER, '\Software\Chronosoft\Dochazka')); 60 44 61 Connect; 45 62 end; … … 72 89 try 73 90 RootKey := Context.RootKey; 74 OpenKey(Context.Key, True); 91 OpenKey('\Software\Chronosoft\Dochazka', True); 92 //OpenKey(Context.Key, True); 75 93 Database.HostName := ReadStringWithDefault('HostName', 'localhost'); 76 94 Database.Database := ReadStringWithDefault('Schema', 'dochazka'); 77 95 Database.UserName := ReadStringWithDefault('UserName', 'dochazka'); 78 96 Database.Password := ReadStringWithDefault('Password', ''); 97 CoolTranslator1.Language := CoolTranslator1.Languages.SearchByCode(ReadStringWithDefault('Language', '')); 79 98 finally 80 99 Free; … … 92 111 WriteString('UserName', Database.UserName); 93 112 WriteString('Password', Database.Password); 113 WriteString('Language', CoolTranslator1.Language.Code); 94 114 finally 95 115 Free;
Note:
See TracChangeset
for help on using the changeset viewer.