- Timestamp:
- Jun 9, 2011, 9:33:21 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 7 added
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 3 3 chronis 4 4 heaptrclog.trc 5 chronis.exe
-
- Property svn:ignore
-
trunk/Forms/ULoginForm.lfm
r7 r10 9 9 ClientHeight = 177 10 10 ClientWidth = 405 11 LCLVersion = '0.9. 29'11 LCLVersion = '0.9.31' 12 12 object Label1: TLabel 13 13 Left = 16 14 14 Height = 14 15 15 Top = 48 16 Width = 6116 Width = 53 17 17 Caption = 'Username:' 18 18 ParentColor = False … … 22 22 Height = 14 23 23 Top = 80 24 Width = 5 724 Width = 51 25 25 Caption = 'Password:' 26 26 ParentColor = False … … 44 44 object Edit1: TEdit 45 45 Left = 88 46 Height = 2 346 Height = 21 47 47 Top = 40 48 48 Width = 104 … … 51 51 object MaskEdit1: TMaskEdit 52 52 Left = 88 53 Height = 2 353 Height = 21 54 54 Top = 71 55 55 Width = 104 -
trunk/Forms/ULoginForm.lrt
r7 r10 1 TLOGINFORM. LOGINFORM.CAPTION=Login1 TLOGINFORM.CAPTION=Login 2 2 TLOGINFORM.LABEL1.CAPTION=Username: 3 3 TLOGINFORM.LABEL2.CAPTION=Password: 4 4 TLOGINFORM.BUTTONCANCEL.CAPTION=Close 5 5 TLOGINFORM.BUTTONLOGIN.CAPTION=Login 6 TLOGINFORM.MASKEDIT1.TEXT=* -
trunk/Forms/UMainForm.lfm
r9 r10 1 1 object MainForm: TMainForm 2 Left = 2 553 Height = 4 454 Top = 755 Width = 64 92 Left = 268 3 Height = 451 4 Top = 156 5 Width = 646 6 6 ActiveControl = Panel1 7 7 Caption = 'ChronIS' 8 ClientHeight = 4 189 ClientWidth = 64 98 ClientHeight = 432 9 ClientWidth = 646 10 10 Menu = MainMenu1 11 11 OnClose = FormClose … … 13 13 OnDestroy = FormDestroy 14 14 OnShow = FormShow 15 LCLVersion = '0.9. 29'15 LCLVersion = '0.9.31' 16 16 object Panel1: TPanel 17 17 Left = 0 18 Height = 4 1818 Height = 432 19 19 Top = 0 20 20 Width = 184 21 21 Align = alLeft 22 22 BevelOuter = bvNone 23 ClientHeight = 4 1823 ClientHeight = 432 24 24 ClientWidth = 184 25 25 TabOrder = 0 26 26 object Label1: TLabel 27 27 Left = 7 28 Height = 1 828 Height = 14 29 29 Top = 4 30 Width = 5130 Width = 39 31 31 Caption = 'Groups:' 32 32 ParentColor = False … … 34 34 object TreeView1: TTreeView 35 35 Left = 4 36 Height = 39436 Height = 408 37 37 Top = 19 38 38 Width = 180 39 39 Anchors = [akTop, akLeft, akRight, akBottom] 40 DefaultItemHeight = 1 940 DefaultItemHeight = 16 41 41 Images = ImageListActions 42 42 ReadOnly = True … … 48 48 object Panel2: TPanel 49 49 Left = 189 50 Height = 4 1850 Height = 432 51 51 Top = 0 52 Width = 4 6052 Width = 457 53 53 Align = alClient 54 54 BevelOuter = bvNone 55 ClientHeight = 4 1856 ClientWidth = 4 6055 ClientHeight = 432 56 ClientWidth = 457 57 57 TabOrder = 1 58 58 object Label2: TLabel 59 59 Left = 2 60 Height = 1 860 Height = 14 61 61 Top = 4 62 Width = 5462 Width = 43 63 63 Caption = 'Reports:' 64 64 ParentColor = False … … 66 66 object ListView1: TListView 67 67 Left = 2 68 Height = 3 6268 Height = 376 69 69 Top = 19 70 Width = 45 670 Width = 453 71 71 Anchors = [akTop, akLeft, akRight, akBottom] 72 72 Columns = <> … … 86 86 Left = 3 87 87 Height = 25 88 Top = 38988 Top = 403 89 89 Width = 75 90 90 Action = AItemAdd … … 95 95 Left = 83 96 96 Height = 25 97 Top = 38997 Top = 403 98 98 Width = 75 99 99 Action = AItemDelete … … 104 104 object Splitter1: TSplitter 105 105 Left = 184 106 Height = 4 18106 Height = 432 107 107 Top = 0 108 108 Width = 5 … … 166 166 OnExecute = AToggleFullscreenExecute 167 167 ShortCut = 122 168 end 169 object AConnect: TAction 170 Caption = 'Connect' 171 Hint = 'Connect' 172 OnExecute = AConnectExecute 173 end 174 object ASettings: TAction 175 Caption = 'Settings' 176 Hint = 'Settings' 177 OnExecute = ASettingsExecute 168 178 end 169 179 end … … 296 306 object MenuItem13: TMenuItem 297 307 Caption = 'Server' 308 object MenuItem17: TMenuItem 309 Action = AConnect 310 end 298 311 object MenuItem14: TMenuItem 299 312 Action = AExit … … 305 318 Action = AToggleFullscreen 306 319 end 320 object MenuItem16: TMenuItem 321 Action = ASettings 322 end 307 323 end 308 324 object MenuItem12: TMenuItem -
trunk/Forms/UMainForm.lrt
r7 r10 1 TMAINFORM. MAINFORM.CAPTION=ChronIS1 TMAINFORM.CAPTION=ChronIS 2 2 TMAINFORM.LABEL1.CAPTION=Groups: 3 3 TMAINFORM.LABEL2.CAPTION=Reports: … … 14 14 TMAINFORM.AEXIT.CAPTION=Exit 15 15 TMAINFORM.ATOGGLEFULLSCREEN.CAPTION=Fullscreen mode 16 TMAINFORM.ACONNECT.CAPTION=Connect 17 TMAINFORM.ACONNECT.HINT=Connect 18 TMAINFORM.ASETTINGS.CAPTION=Settings 19 TMAINFORM.ASETTINGS.HINT=Settings 16 20 TMAINFORM.MENUITEM13.CAPTION=Server 17 21 TMAINFORM.MENUITEM11.CAPTION=View -
trunk/Forms/UMainForm.pas
r9 r10 17 17 18 18 TMainForm = class(TForm) 19 AConnect: TAction; 20 ASettings: TAction; 19 21 AToggleFullscreen: TAction; 20 22 AExit: TAction; … … 44 46 MenuItem14: TMenuItem; 45 47 MenuItem15: TMenuItem; 48 MenuItem16: TMenuItem; 49 MenuItem17: TMenuItem; 46 50 MenuItem2: TMenuItem; 47 51 MenuItem3: TMenuItem; … … 59 63 Splitter1: TSplitter; 60 64 TreeView1: TTreeView; 65 procedure AConnectExecute(Sender: TObject); 61 66 procedure AExitExecute(Sender: TObject); 62 67 procedure AItemAddExecute(Sender: TObject); … … 66 71 procedure AObjectGroupAddGroupExecute(Sender: TObject); 67 72 procedure AObjectGroupEditExecute(Sender: TObject); 73 procedure ASettingsExecute(Sender: TObject); 68 74 procedure AToggleFullscreenExecute(Sender: TObject); 69 75 procedure ButtonAddClick(Sender: TObject); … … 85 91 RegistryKey: string; 86 92 RegistryRootKey: HKEY; 87 procedure LoadConfiguration;88 93 procedure LoadFromRegistry; 89 94 procedure SaveToRegistry; 95 procedure InitStructure; 90 96 public 91 97 SelectedObjectId: Integer; … … 112 118 113 119 uses 114 UItemView, UItemEdit, UItemAdd ;120 UItemView, UItemEdit, UItemAdd, ULoginForm, USettingForm, UApplicationInfo; 115 121 116 122 {$R *.lfm} 117 123 118 124 { TMainForm } 119 120 procedure TMainForm.LoadConfiguration;121 var122 Config: TXMLDocument;123 I1: Integer;124 I2: Integer;125 I3: Integer;126 begin127 if FileExists(ConfigFileName) then try128 ReadXMLFile(Config, ConfigFileName);129 for I1 := 0 to Config.ChildNodes.Count - 1 do130 with Config.ChildNodes[I1] do begin131 if NodeName = 'configuration' then132 for I2 := 0 to ChildNodes.Count - 1 do133 with ChildNodes[I2] do begin134 if NodeName = 'database' then135 for I3 := 0 to ChildNodes.Count - 1 do136 with ChildNodes[I3] do begin137 if NodeName = 'hostname' then138 System.Database.HostName := TextContent;139 if NodeName = 'schema' then140 System.Database.Database := TextContent;141 if NodeName = 'username' then142 System.Database.UserName := TextContent;143 if NodeName = 'password' then144 System.Database.Password := TextContent;145 end;146 end;147 end;148 finally149 Config.Free;150 end;151 end;152 125 153 126 procedure TMainForm.LoadFromRegistry; … … 158 131 OpenKey(RegistryKey, True); 159 132 Panel1.Width := ReadIntegerWithDefault('GroupTreeWidth', 200); 133 System.Database.Database := ReadStringWithDefault('DatabaseSchema', 'chronis'); 134 System.Database.Hostname := ReadStringWithDefault('DatabaseHostName', 'localhost'); 135 System.Database.UserName := ReadStringWithDefault('DatabaseUserName', 'chronis'); 136 System.Database.Password := ReadStringWithDefault('DatabasePassword', ''); 160 137 finally 161 138 Free; … … 170 147 OpenKey(RegistryKey, True); 171 148 WriteInteger('GroupTreeWidth', Panel1.Width); 149 WriteString('DatabaseSchema', System.Database.Database); 150 WriteString('DatabaseHostName', System.Database.Hostname); 151 WriteString('DatabaseUserName', System.Database.UserName); 152 WriteString('DatabasePassword', System.Database.Password); 172 153 finally 173 154 Free; … … 175 156 end; 176 157 158 procedure TMainForm.InitStructure; 159 begin 160 161 end; 162 177 163 procedure TMainForm.FormCreate(Sender: TObject); 178 164 begin 179 165 System := TChronisBase.Create; 180 166 System.Database := TSqlDatabase.Create; 181 LoadConfiguration;182 System.Database.Connect;183 167 TreeState := TTreeState.Create; 184 168 Report := TReport.Create; … … 187 171 SelectedObject.Base := System; 188 172 RegistryRootKey := HKEY_CURRENT_USER; 189 RegistryKey := '\Software\Chronosoft\Chronis'; 173 RegistryKey := '\Software\' + ApplicationInfo.CompanyName + '\' + 174 ApplicationInfo.Name; 190 175 PersistentForm := TPersistentForm.Create; 191 176 PersistentForm.RegistryKey := RegistryKey; … … 237 222 ItemEditForm.Show; 238 223 end; 224 end; 225 226 procedure TMainForm.ASettingsExecute(Sender: TObject); 227 begin 228 SettingForm.ShowModal; 239 229 end; 240 230 … … 281 271 end; 282 272 273 procedure TMainForm.AConnectExecute(Sender: TObject); 274 begin 275 LoginForm.ShowModal; 276 end; 277 283 278 procedure TMainForm.FormShow(Sender: TObject); 284 279 begin 285 280 PersistentForm.Load(Self); 281 LoadFromRegistry; 282 System.Database.Connect; 283 InitStructure; 286 284 LoadTree; 287 LoadFromRegistry;288 285 end; 289 286 -
trunk/chronis.lpi
r9 r10 20 20 <StringTable ProductVersion=""/> 21 21 </VersionInfo> 22 <BuildModes Count="1"> 23 <Item1 Name="default" Default="True"/> 22 <BuildModes Count="2" Active="Debug"> 23 <Item1 Name="Debug" Default="True"/> 24 <Item2 Name="Release"> 25 <CompilerOptions> 26 <Version Value="10"/> 27 <Target> 28 <Filename Value="chronis"/> 29 </Target> 30 <SearchPaths> 31 <IncludeFiles Value="$(ProjOutDir)"/> 32 <Libraries Value="/usr/lib/mysql;/usr/lib64/mysql"/> 33 <OtherUnitFiles Value="Common;Forms"/> 34 <UnitOutputDirectory Value="lib/$(TargetCPU)-$(TargetOS)"/> 35 </SearchPaths> 36 <Parsing> 37 <SyntaxOptions> 38 <SyntaxMode Value="Delphi"/> 39 <CStyleOperator Value="False"/> 40 <AllowLabel Value="False"/> 41 <CPPInline Value="False"/> 42 </SyntaxOptions> 43 </Parsing> 44 <CodeGeneration> 45 <Checks> 46 <IOChecks Value="True"/> 47 <RangeChecks Value="True"/> 48 <OverflowChecks Value="True"/> 49 <StackChecks Value="True"/> 50 </Checks> 51 </CodeGeneration> 52 <Linking> 53 <Debugging> 54 <UseLineInfoUnit Value="False"/> 55 </Debugging> 56 <Options> 57 <Win32> 58 <GraphicApplication Value="True"/> 59 </Win32> 60 </Options> 61 </Linking> 62 <Other> 63 <CompilerMessages> 64 <UseMsgFile Value="True"/> 65 </CompilerMessages> 66 <CompilerPath Value="$(CompPath)"/> 67 </Other> 68 </CompilerOptions> 69 </Item2> 24 70 </BuildModes> 25 71 <PublishOptions> … … 35 81 </local> 36 82 </RunParams> 37 <RequiredPackages Count=" 2">83 <RequiredPackages Count="3"> 38 84 <Item1> 39 <PackageName Value="TemplateGenerics"/> 85 <PackageName Value="LCLBase"/> 86 <MinVersion Valid="True"/> 40 87 </Item1> 41 88 <Item2> 89 <PackageName Value="TemplateGenerics"/> 90 </Item2> 91 <Item3> 42 92 <PackageName Value="LCL"/> 43 </Item 2>93 </Item3> 44 94 </RequiredPackages> 45 <Units Count="2 4">95 <Units Count="27"> 46 96 <Unit0> 47 97 <Filename Value="chronis.lpr"/> 48 98 <IsPartOfProject Value="True"/> 49 99 <UnitName Value="chronis"/> 50 <EditorIndex Value=" 10"/>51 <WindowIndex Value="0"/> 52 <TopLine Value="1 "/>53 <CursorPos X=" 21" Y="5"/>100 <EditorIndex Value="8"/> 101 <WindowIndex Value="0"/> 102 <TopLine Value="14"/> 103 <CursorPos X="1" Y="33"/> 54 104 <UsageCount Value="274"/> 55 105 <Loaded Value="True"/> … … 94 144 <IsPartOfProject Value="True"/> 95 145 <UnitName Value="UPersistentForm"/> 96 <EditorIndex Value="1 4"/>146 <EditorIndex Value="10"/> 97 147 <WindowIndex Value="0"/> 98 148 <TopLine Value="55"/> … … 107 157 <UnitName Value="USqlDatabase"/> 108 158 <IsVisibleTab Value="True"/> 109 <EditorIndex Value=" 8"/>110 <WindowIndex Value="0"/> 111 <TopLine Value="20 4"/>112 <CursorPos X=" 43" Y="225"/>159 <EditorIndex Value="7"/> 160 <WindowIndex Value="0"/> 161 <TopLine Value="209"/> 162 <CursorPos X="25" Y="225"/> 113 163 <UsageCount Value="264"/> 114 164 <Loaded Value="True"/> … … 119 169 <IsPartOfProject Value="True"/> 120 170 <UnitName Value="URegistry"/> 121 <EditorIndex Value=" 11"/>122 <WindowIndex Value="0"/> 123 <TopLine Value="1 "/>124 <CursorPos X="1 0" Y="8"/>171 <EditorIndex Value="9"/> 172 <WindowIndex Value="0"/> 173 <TopLine Value="19"/> 174 <CursorPos X="1" Y="31"/> 125 175 <UsageCount Value="264"/> 126 176 <Loaded Value="True"/> … … 164 214 <ResourceBaseClass Value="Form"/> 165 215 <UnitName Value="ULoginForm"/> 166 <EditorIndex Value="1 6"/>167 <WindowIndex Value="0"/> 168 <TopLine Value="1 "/>169 <CursorPos X=" 1" Y="1"/>216 <EditorIndex Value="12"/> 217 <WindowIndex Value="0"/> 218 <TopLine Value="14"/> 219 <CursorPos X="54" Y="24"/> 170 220 <UsageCount Value="317"/> 171 221 <Loaded Value="True"/> … … 180 230 <ResourceBaseClass Value="Form"/> 181 231 <UnitName Value="UMainForm"/> 182 <EditorIndex Value=" 3"/>183 <WindowIndex Value="0"/> 184 <TopLine Value="1 "/>185 <CursorPos X=" 47" Y="17"/>232 <EditorIndex Value="2"/> 233 <WindowIndex Value="0"/> 234 <TopLine Value="168"/> 235 <CursorPos X="3" Y="174"/> 186 236 <UsageCount Value="317"/> 187 237 <Loaded Value="True"/> … … 202 252 <ResourceBaseClass Value="Form"/> 203 253 <UnitName Value="UItemAdd"/> 204 <EditorIndex Value="1 5"/>254 <EditorIndex Value="11"/> 205 255 <WindowIndex Value="0"/> 206 256 <TopLine Value="1"/> … … 221 271 <Unit14> 222 272 <Filename Value="../../PascalClassLibrary/Generics/TemplateGenerics/Generic/GenericDictionary.inc"/> 223 <EditorIndex Value="2"/>224 273 <WindowIndex Value="0"/> 225 274 <TopLine Value="43"/> 226 275 <CursorPos X="1" Y="60"/> 227 276 <UsageCount Value="16"/> 228 <Loaded Value="True"/>229 277 </Unit14> 230 278 <Unit15> 231 279 <Filename Value="../../PascalClassLibrary/Generics/TemplateGenerics/Generic/GenericList.inc"/> 232 <EditorIndex Value="5"/>233 280 <WindowIndex Value="0"/> 234 281 <TopLine Value="68"/> 235 282 <CursorPos X="1" Y="85"/> 236 283 <UsageCount Value="13"/> 237 <Loaded Value="True"/>238 284 </Unit15> 239 285 <Unit16> … … 255 301 <Filename Value="/usr/share/fpcsrc/2.4.0/packages/fcl-registry/src/registry.pp"/> 256 302 <UnitName Value="registry"/> 257 <EditorIndex Value="12"/>258 303 <WindowIndex Value="0"/> 259 304 <TopLine Value="1"/> 260 305 <CursorPos X="6" Y="1"/> 261 306 <UsageCount Value="19"/> 262 <Loaded Value="True"/>263 307 <DefaultSyntaxHighlighter Value="Delphi"/> 264 308 </Unit18> 265 309 <Unit19> 266 310 <Filename Value="/usr/share/fpcsrc/2.4.0/packages/fcl-registry/src/regdef.inc"/> 267 <EditorIndex Value="13"/>268 311 <WindowIndex Value="0"/> 269 312 <TopLine Value="1"/> 270 313 <CursorPos X="3" Y="21"/> 271 314 <UsageCount Value="19"/> 272 <Loaded Value="True"/>273 315 <DefaultSyntaxHighlighter Value="Delphi"/> 274 316 </Unit19> 275 317 <Unit20> 276 <Filename Value=" usystem.pas"/>318 <Filename Value="USystem.pas"/> 277 319 <IsPartOfProject Value="True"/> 278 320 <UnitName Value="USystem"/> 279 <EditorIndex Value=" 7"/>280 <WindowIndex Value="0"/> 281 <TopLine Value=" 21"/>282 <CursorPos X=" 15" Y="38"/>283 <UsageCount Value="3 6"/>321 <EditorIndex Value="6"/> 322 <WindowIndex Value="0"/> 323 <TopLine Value="58"/> 324 <CursorPos X="3" Y="70"/> 325 <UsageCount Value="37"/> 284 326 <Loaded Value="True"/> 285 327 <DefaultSyntaxHighlighter Value="Delphi"/> … … 288 330 <Filename Value="../../../lazarus/lcl/comctrls.pp"/> 289 331 <UnitName Value="ComCtrls"/> 290 <EditorIndex Value="6"/>291 332 <WindowIndex Value="0"/> 292 333 <TopLine Value="912"/> 293 334 <CursorPos X="14" Y="929"/> 294 335 <UsageCount Value="16"/> 295 <Loaded Value="True"/>296 336 </Unit21> 297 337 <Unit22> 298 338 <Filename Value="../../PascalClassLibrary/Generics/TemplateGenerics/Generic/GenericListObject.inc"/> 299 <EditorIndex Value="9"/>300 339 <WindowIndex Value="0"/> 301 340 <TopLine Value="1"/> 302 341 <CursorPos X="15" Y="18"/> 303 342 <UsageCount Value="14"/> 304 <Loaded Value="True"/>305 343 </Unit22> 306 344 <Unit23> 307 345 <Filename Value="/usr/share/fpcsrc/2.4.0/rtl/inc/ustringh.inc"/> 308 <EditorIndex Value="4"/>309 346 <WindowIndex Value="0"/> 310 347 <TopLine Value="1"/> 311 348 <CursorPos X="11" Y="30"/> 312 349 <UsageCount Value="11"/> 313 <Loaded Value="True"/>314 350 <DefaultSyntaxHighlighter Value="Delphi"/> 315 351 </Unit23> 352 <Unit24> 353 <Filename Value="UCore.pas"/> 354 <IsPartOfProject Value="True"/> 355 <ComponentName Value="Core"/> 356 <ResourceBaseClass Value="DataModule"/> 357 <UnitName Value="UCore"/> 358 <EditorIndex Value="5"/> 359 <WindowIndex Value="0"/> 360 <TopLine Value="3"/> 361 <CursorPos X="28" Y="15"/> 362 <UsageCount Value="21"/> 363 <Loaded Value="True"/> 364 <LoadedDesigner Value="True"/> 365 <DefaultSyntaxHighlighter Value="Delphi"/> 366 </Unit24> 367 <Unit25> 368 <Filename Value="Forms/USettingForm.pas"/> 369 <IsPartOfProject Value="True"/> 370 <ComponentName Value="SettingForm"/> 371 <ResourceBaseClass Value="Form"/> 372 <UnitName Value="USettingForm"/> 373 <EditorIndex Value="4"/> 374 <WindowIndex Value="0"/> 375 <TopLine Value="1"/> 376 <CursorPos X="1" Y="1"/> 377 <UsageCount Value="21"/> 378 <Loaded Value="True"/> 379 <LoadedDesigner Value="True"/> 380 <DefaultSyntaxHighlighter Value="Delphi"/> 381 </Unit25> 382 <Unit26> 383 <Filename Value="Application/UApplicationInfo.pas"/> 384 <IsPartOfProject Value="True"/> 385 <UnitName Value="UApplicationInfo"/> 386 <EditorIndex Value="3"/> 387 <WindowIndex Value="0"/> 388 <TopLine Value="37"/> 389 <CursorPos X="48" Y="56"/> 390 <UsageCount Value="20"/> 391 <Loaded Value="True"/> 392 <DefaultSyntaxHighlighter Value="Delphi"/> 393 </Unit26> 316 394 </Units> 317 395 <JumpHistory Count="30" HistoryIndex="29"> 318 396 <Position1> 319 <Filename Value=" usystem.pas"/>320 <Caret Line="1 16" Column="45" TopLine="99"/>397 <Filename Value="Common/USqlDatabase.pas"/> 398 <Caret Line="179" Column="40" TopLine="159"/> 321 399 </Position1> 322 400 <Position2> 323 <Filename Value=" usystem.pas"/>324 <Caret Line=" 131" Column="10" TopLine="114"/>401 <Filename Value="Common/USqlDatabase.pas"/> 402 <Caret Line="224" Column="26" TopLine="209"/> 325 403 </Position2> 326 404 <Position3> 327 <Filename Value=" usystem.pas"/>328 <Caret Line=" 203" Column="1" TopLine="170"/>405 <Filename Value="Forms/UMainForm.pas"/> 406 <Caret Line="17" Column="47" TopLine="1"/> 329 407 </Position3> 330 408 <Position4> 331 <Filename Value=" usystem.pas"/>332 <Caret Line="2 5" Column="31" TopLine="18"/>409 <Filename Value="Forms/UMainForm.pas"/> 410 <Caret Line="240" Column="46" TopLine="232"/> 333 411 </Position4> 334 412 <Position5> 335 <Filename Value=" usystem.pas"/>336 <Caret Line=" 131" Column="15" TopLine="111"/>413 <Filename Value="Forms/UMainForm.pas"/> 414 <Caret Line="242" Column="46" TopLine="234"/> 337 415 </Position5> 338 416 <Position6> 339 417 <Filename Value="Forms/UMainForm.pas"/> 340 <Caret Line=" 128" Column="7" TopLine="111"/>418 <Caret Line="287" Column="23" TopLine="285"/> 341 419 </Position6> 342 420 <Position7> 343 <Filename Value=" usystem.pas"/>344 <Caret Line=" 132" Column="16" TopLine="114"/>421 <Filename Value="chronis.lpr"/> 422 <Caret Line="26" Column="73" TopLine="15"/> 345 423 </Position7> 346 424 <Position8> 347 <Filename Value=" usystem.pas"/>348 <Caret Line=" 8" Column="60" TopLine="1"/>425 <Filename Value="Common/USqlDatabase.pas"/> 426 <Caret Line="218" Column="30" TopLine="209"/> 349 427 </Position8> 350 428 <Position9> 351 <Filename Value=" usystem.pas"/>352 <Caret Line=" 131" Column="10" TopLine="114"/>429 <Filename Value="Common/USqlDatabase.pas"/> 430 <Caret Line="87" Column="3" TopLine="75"/> 353 431 </Position9> 354 432 <Position10> 355 <Filename Value=" usystem.pas"/>356 <Caret Line=" 70" Column="7" TopLine="47"/>433 <Filename Value="Forms/ULoginForm.pas"/> 434 <Caret Line="12" Column="43" TopLine="14"/> 357 435 </Position10> 358 436 <Position11> 359 <Filename Value=" usystem.pas"/>360 <Caret Line=" 54" Column="6" TopLine="43"/>437 <Filename Value="Forms/USettingForm.pas"/> 438 <Caret Line="1" Column="1" TopLine="1"/> 361 439 </Position11> 362 440 <Position12> 363 <Filename Value=" usystem.pas"/>364 <Caret Line=" 34" Column="9" TopLine="17"/>441 <Filename Value="Forms/UMainForm.pas"/> 442 <Caret Line="135" Column="5" TopLine="128"/> 365 443 </Position12> 366 444 <Position13> 367 <Filename Value=" usystem.pas"/>368 <Caret Line="1 7" Column="15" TopLine="7"/>445 <Filename Value="Forms/UMainForm.pas"/> 446 <Caret Line="137" Column="5" TopLine="130"/> 369 447 </Position13> 370 448 <Position14> 371 <Filename Value=" usystem.pas"/>372 <Caret Line=" 134" Column="21" TopLine="114"/>449 <Filename Value="Forms/UMainForm.pas"/> 450 <Caret Line="247" Column="25" TopLine="245"/> 373 451 </Position14> 374 452 <Position15> 375 <Filename Value="Forms/U ItemAdd.pas"/>376 <Caret Line=" 23" Column="67" TopLine="27"/>453 <Filename Value="Forms/UMainForm.pas"/> 454 <Caret Line="122" Column="62" TopLine="113"/> 377 455 </Position15> 378 456 <Position16> 379 <Filename Value="Forms/U ItemAdd.pas"/>380 <Caret Line="1 51" Column="1" TopLine="122"/>457 <Filename Value="Forms/UMainForm.pas"/> 458 <Caret Line="123" Column="62" TopLine="114"/> 381 459 </Position16> 382 460 <Position17> 383 <Filename Value="Forms/U ItemAdd.pas"/>384 <Caret Line=" 84" Column="1" TopLine="78"/>461 <Filename Value="Forms/UMainForm.pas"/> 462 <Caret Line="144" Column="16" TopLine="126"/> 385 463 </Position17> 386 464 <Position18> 387 <Filename Value="Forms/U ItemAdd.pas"/>388 <Caret Line=" 76" Column="20" TopLine="60"/>465 <Filename Value="Forms/UMainForm.pas"/> 466 <Caret Line="102" Column="20" TopLine="90"/> 389 467 </Position18> 390 468 <Position19> 391 <Filename Value="Forms/U ItemEdit.pas"/>392 <Caret Line="9 2" Column="12" TopLine="85"/>469 <Filename Value="Forms/UMainForm.pas"/> 470 <Caret Line="93" Column="1" TopLine="81"/> 393 471 </Position19> 394 472 <Position20> 395 <Filename Value="Forms/U ItemAdd.pas"/>396 <Caret Line=" 95" Column="15" TopLine="76"/>473 <Filename Value="Forms/UMainForm.pas"/> 474 <Caret Line="124" Column="1" TopLine="103"/> 397 475 </Position20> 398 476 <Position21> 399 <Filename Value="Forms/U ItemAdd.pas"/>400 <Caret Line=" 94" Column="1" TopLine="80"/>477 <Filename Value="Forms/UMainForm.pas"/> 478 <Caret Line="7" Column="48" TopLine="1"/> 401 479 </Position21> 402 480 <Position22> 403 <Filename Value="Forms/U ItemAdd.pas"/>404 <Caret Line=" 101" Column="21" TopLine="84"/>481 <Filename Value="Forms/UMainForm.pas"/> 482 <Caret Line="93" Column="27" TopLine="81"/> 405 483 </Position22> 406 484 <Position23> 407 <Filename Value="Forms/U ItemAdd.pas"/>408 <Caret Line=" 79" Column="1" TopLine="72"/>485 <Filename Value="Forms/UMainForm.pas"/> 486 <Caret Line="125" Column="33" TopLine="105"/> 409 487 </Position23> 410 488 <Position24> 411 <Filename Value="Forms/U ItemAdd.pas"/>412 <Caret Line=" 97" Column="33" TopLine="80"/>489 <Filename Value="Forms/UMainForm.pas"/> 490 <Caret Line="162" Column="1" TopLine="157"/> 413 491 </Position24> 414 492 <Position25> 415 <Filename Value="Forms/U ItemAdd.pas"/>416 <Caret Line="1 02" Column="77" TopLine="85"/>493 <Filename Value="Forms/UMainForm.pas"/> 494 <Caret Line="161" Column="15" TopLine="157"/> 417 495 </Position25> 418 496 <Position26> 419 <Filename Value="Forms/U ItemAdd.pas"/>420 <Caret Line=" 92" Column="40" TopLine="67"/>497 <Filename Value="Forms/UMainForm.pas"/> 498 <Caret Line="276" Column="1" TopLine="271"/> 421 499 </Position26> 422 500 <Position27> 423 <Filename Value=" Forms/UMainForm.pas"/>424 <Caret Line="1 59" Column="63" TopLine="131"/>501 <Filename Value="Common/USqlDatabase.pas"/> 502 <Caret Line="172" Column="28" TopLine="159"/> 425 503 </Position27> 426 504 <Position28> 427 <Filename Value=" Forms/UMainForm.pas"/>428 <Caret Line=" 1" Column="1" TopLine="1"/>505 <Filename Value="Common/USqlDatabase.pas"/> 506 <Caret Line="221" Column="32" TopLine="209"/> 429 507 </Position28> 430 508 <Position29> 431 509 <Filename Value="Forms/UMainForm.pas"/> 432 <Caret Line=" 401" Column="25" TopLine="383"/>510 <Caret Line="95" Column="29" TopLine="91"/> 433 511 </Position29> 434 512 <Position30> 435 513 <Filename Value="Forms/UMainForm.pas"/> 436 <Caret Line="17 " Column="47" TopLine="1"/>514 <Caret Line="174" Column="3" TopLine="168"/> 437 515 </Position30> 438 516 </JumpHistory> 439 517 </ProjectOptions> 440 518 <CompilerOptions> 441 <Version Value=" 9"/>519 <Version Value="10"/> 442 520 <Target> 443 521 <Filename Value="chronis"/> … … 445 523 <SearchPaths> 446 524 <IncludeFiles Value="$(ProjOutDir)"/> 447 <Libraries Value="/usr/lib/mysql /;/usr/lib64/mysql/"/>448 <OtherUnitFiles Value="Common;Forms "/>525 <Libraries Value="/usr/lib/mysql;/usr/lib64/mysql"/> 526 <OtherUnitFiles Value="Common;Forms;Application"/> 449 527 <UnitOutputDirectory Value="lib/$(TargetCPU)-$(TargetOS)"/> 450 528 </SearchPaths> … … 477 555 </Linking> 478 556 <Other> 557 <CompilerMessages> 558 <UseMsgFile Value="True"/> 559 </CompilerMessages> 560 <CustomOptions Value="-dDEBUG"/> 479 561 <CompilerPath Value="$(CompPath)"/> 480 562 </Other> … … 483 565 <BreakPoints Count="1"> 484 566 <Item1> 567 <Kind Value="bpkSource"/> 485 568 <Source Value="../../PascalClassLibrary/Generics/TemplateGenerics/Generic/GenericListObject.inc"/> 486 569 <Line Value="52"/> -
trunk/chronis.lpr
r9 r10 9 9 Interfaces, // this includes the LCL widgetset 10 10 Forms, UPersistentForm, URegistry, USqlDatabase, UTreeState, SysUtils, 11 UItemView, UItemEdit, ULoginForm, UMainForm, UItemAdd, TemplateGenerics, USystem 11 UItemView, UItemEdit, ULoginForm, UMainForm, UItemAdd, TemplateGenerics, 12 USystem, UCore, UApplicationInfo, USettingForm 12 13 { you can add units after this }; 13 14 14 15 {$R *.res} 15 16 17 {$IFDEF DEBUG} 16 18 const 17 19 HeapTraceLog = 'heaptrclog.trc'; 20 {$ENDIF} 21 18 22 begin 23 {$IFDEF DEBUG} 19 24 // Heap trace 20 25 DeleteFile(ExtractFilePath(ParamStr(0)) + HeapTraceLog); 21 26 SetHeapTraceOutput(ExtractFilePath(ParamStr(0)) + HeapTraceLog); 27 {$ENDIF} 28 22 29 Application.Initialize; 30 Application.CreateForm(TCore, Core); 23 31 Application.CreateForm(TMainForm, MainForm); 32 Application.CreateForm(TLoginForm, LoginForm); 24 33 Application.CreateForm(TItemViewForm, ItemViewForm); 25 34 Application.CreateForm(TItemEditForm, ItemEditForm); 26 35 Application.CreateForm(TItemAddForm, ItemAddForm); 36 Application.CreateForm(TSettingForm, SettingForm); 27 37 Application.Run; 28 38 end. -
trunk/languages/chronis.cs.po
r8 r10 5 5 "POT-Creation-Date: \n" 6 6 "PO-Revision-Date: \n" 7 "Last-Translator: Chronos <robie@centrum.cz>\n"7 "Last-Translator: Jiří Hajda <software@mezservis.cz>\n" 8 8 "Language-Team: \n" 9 9 "MIME-Version: 1.0\n" … … 35 35 #: TITEMEDITFORM.BUTTONSAVE.CAPTION 36 36 #| msgid "Uložit" 37 msgctxt "TITEMEDITFORM.BUTTONSAVE.CAPTION" 37 38 msgid "Save" 38 39 msgstr "Uložit" … … 70 71 msgstr "Přihlášení" 71 72 73 #: TLOGINFORM.CAPTION 74 msgctxt "TLOGINFORM.CAPTION" 75 msgid "Login" 76 msgstr "Přihásit" 77 72 78 #: TLOGINFORM.LABEL1.CAPTION 73 79 msgid "Username:" … … 78 84 msgstr "Heslo:" 79 85 80 #: TLOGINFORM.LOGINFORM.CAPTION 81 msgctxt "TLOGINFORM.LOGINFORM.CAPTION" 82 msgid "Login" 83 msgstr "Přihásit" 86 #: TLOGINFORM.MASKEDIT1.TEXT 87 msgid "*" 88 msgstr "*" 89 90 #: TMAINFORM.ACONNECT.CAPTION 91 msgctxt "TMAINFORM.ACONNECT.CAPTION" 92 msgid "Connect" 93 msgstr "Připojit" 94 95 #: TMAINFORM.ACONNECT.HINT 96 msgctxt "TMAINFORM.ACONNECT.HINT" 97 msgid "Connect" 98 msgstr "Připojit" 84 99 85 100 #: TMAINFORM.AEXIT.CAPTION … … 145 160 msgstr "Upravit" 146 161 162 #: TMAINFORM.ASETTINGS.CAPTION 163 msgctxt "TMAINFORM.ASETTINGS.CAPTION" 164 msgid "Settings" 165 msgstr "Nastavení" 166 167 #: TMAINFORM.ASETTINGS.HINT 168 msgctxt "TMAINFORM.ASETTINGS.HINT" 169 msgid "Settings" 170 msgstr "Nastavení" 171 147 172 #: TMAINFORM.ATOGGLEFULLSCREEN.CAPTION 148 173 #| msgid "Fullscreen mode F11" … … 150 175 msgstr "Režim celé obrazovky" 151 176 177 #: TMAINFORM.CAPTION 178 msgctxt "TMAINFORM.CAPTION" 179 msgid "ChronIS" 180 msgstr "ChronIS" 181 152 182 #: TMAINFORM.LABEL1.CAPTION 153 183 #| msgid "Skupiny:" … … 160 190 msgstr "Výpisy:" 161 191 162 #: TMAINFORM.MAINFORM.CAPTION163 msgid "ChronIS"164 msgstr "ChronIS"165 166 192 #: TMAINFORM.MENUITEM11.CAPTION 167 193 msgctxt "TMAINFORM.MENUITEM11.CAPTION" … … 177 203 msgstr "Server" 178 204 205 #: TSETTINGFORM.BUTTONCANCEL.CAPTION 206 msgctxt "TSETTINGFORM.BUTTONCANCEL.CAPTION" 207 msgid "Cancel" 208 msgstr "Zrušit" 209 210 #: TSETTINGFORM.BUTTONSAVE.CAPTION 211 msgctxt "TSETTINGFORM.BUTTONSAVE.CAPTION" 212 msgid "Save" 213 msgstr "Uložit" 214 215 #: TSETTINGFORM.CAPTION 216 msgctxt "TSETTINGFORM.CAPTION" 217 msgid "Settings" 218 msgstr "Nastavení" 219 220 #: TSETTINGFORM.LABEL1.CAPTION 221 msgid "Server address:" 222 msgstr "Adresa serveru:" 223 179 224 #: umainform.sgroup 180 225 msgid "Groups" 181 msgstr " "226 msgstr "Skupiny" 182 227 183 228 #: umainform.sitemnotfound … … 191 236 #: usqldatabase.sdatabasequeryerror 192 237 msgid "Database query error: \"%s\"" 193 msgstr " "194 238 msgstr "Chyba databázového dotazu: \"%s\"" 239 -
trunk/languages/chronis.po
r8 r10 22 22 23 23 #: TITEMEDITFORM.BUTTONSAVE.CAPTION 24 msgctxt "TITEMEDITFORM.BUTTONSAVE.CAPTION" 24 25 msgid "Save" 25 26 msgstr "" … … 53 54 msgstr "" 54 55 56 #: TLOGINFORM.CAPTION 57 msgctxt "TLOGINFORM.CAPTION" 58 msgid "Login" 59 msgstr "" 60 55 61 #: TLOGINFORM.LABEL1.CAPTION 56 62 msgid "Username:" … … 61 67 msgstr "" 62 68 63 #: TLOGINFORM.LOGINFORM.CAPTION 64 msgctxt "TLOGINFORM.LOGINFORM.CAPTION" 65 msgid "Login" 69 #: TLOGINFORM.MASKEDIT1.TEXT 70 msgid "*" 71 msgstr "" 72 73 #: TMAINFORM.ACONNECT.CAPTION 74 msgctxt "TMAINFORM.ACONNECT.CAPTION" 75 msgid "Connect" 76 msgstr "" 77 78 #: TMAINFORM.ACONNECT.HINT 79 msgctxt "TMAINFORM.ACONNECT.HINT" 80 msgid "Connect" 66 81 msgstr "" 67 82 … … 118 133 msgstr "" 119 134 135 #: TMAINFORM.ASETTINGS.CAPTION 136 msgctxt "TMAINFORM.ASETTINGS.CAPTION" 137 msgid "Settings" 138 msgstr "" 139 140 #: TMAINFORM.ASETTINGS.HINT 141 msgctxt "TMAINFORM.ASETTINGS.HINT" 142 msgid "Settings" 143 msgstr "" 144 120 145 #: TMAINFORM.ATOGGLEFULLSCREEN.CAPTION 121 146 msgid "Fullscreen mode" 122 147 msgstr "" 123 148 149 #: TMAINFORM.CAPTION 150 msgctxt "TMAINFORM.CAPTION" 151 msgid "ChronIS" 152 msgstr "" 153 124 154 #: TMAINFORM.LABEL1.CAPTION 125 155 msgid "Groups:" … … 128 158 #: TMAINFORM.LABEL2.CAPTION 129 159 msgid "Reports:" 130 msgstr ""131 132 #: TMAINFORM.MAINFORM.CAPTION133 msgid "ChronIS"134 160 msgstr "" 135 161 … … 147 173 msgstr "" 148 174 175 #: TSETTINGFORM.BUTTONCANCEL.CAPTION 176 msgctxt "TSETTINGFORM.BUTTONCANCEL.CAPTION" 177 msgid "Cancel" 178 msgstr "" 179 180 #: TSETTINGFORM.BUTTONSAVE.CAPTION 181 msgctxt "TSETTINGFORM.BUTTONSAVE.CAPTION" 182 msgid "Save" 183 msgstr "" 184 185 #: TSETTINGFORM.CAPTION 186 msgctxt "TSETTINGFORM.CAPTION" 187 msgid "Settings" 188 msgstr "" 189 190 #: TSETTINGFORM.LABEL1.CAPTION 191 msgid "Server address:" 192 msgstr "" 193 149 194 #: umainform.sgroup 150 195 msgid "Groups"
Note:
See TracChangeset
for help on using the changeset viewer.