- Timestamp:
- Nov 24, 2011, 10:31:04 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 1 deleted
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UItemList.pas
r31 r32 67 67 with ListView1 do begin 68 68 Visible := True; 69 SelectedObject.Load(SelectedObject.Id);69 //SelectedObject.Load(SelectedObject.Id); 70 70 Report.Load(SelectedObject); 71 71 … … 86 86 NewItemViewForm.SelectedObject.Assign(SelectedObject); 87 87 NewItemViewForm.SelectedItemId := Integer(ListView1.Selected.Data); 88 NewItemViewForm.Caption := NewItemViewForm.Caption + ' ' + SelectedObject.Name; 88 89 MainForm.AddTabForm(NewItemViewForm); 89 90 end; … … 118 119 NewItemEditForm.SelectedObject.Assign(SelectedObject); 119 120 NewItemEditForm.SelectedItemId := Integer(ListView1.Selected.Data); 121 NewItemEditForm.Caption := NewItemEditForm.Caption + ' ' + SelectedObject.Name; 120 122 MainForm.AddTabForm(NewItemEditForm); 121 123 end; … … 129 131 NewItemAddForm.SelectedObject.Assign(SelectedObject); 130 132 NewItemAddForm.SelectedItemId := Integer(ListView1.Selected.Data); 133 NewItemAddForm.Caption := NewItemAddForm.Caption + ' ' + SelectedObject.Name; 131 134 MainForm.AddTabForm(NewItemAddForm); 132 135 end; -
trunk/Forms/UItemView.pas
r31 r32 110 110 NewItemEditForm.SelectedObject.Assign(SelectedObject); 111 111 NewItemEditForm.SelectedItemId := SelectedItemId; 112 NewItemEditForm.Caption := NewItemEditForm.Caption + ' ' + SelectedObject.Name; 112 113 MainForm.AddTabForm(NewItemEditForm); 113 114 end; -
trunk/Forms/UMainForm.pas
r31 r32 326 326 if Assigned(TreeView1.Selected) then begin 327 327 NewItemListForm := TItemListForm.Create(Self); 328 NewItemListForm.SelectedObject.Id := Integer(TreeView1.Selected.Data); 328 NewItemListForm.SelectedObject.Load(Integer(TreeView1.Selected.Data)); 329 NewItemListForm.Caption := NewItemListForm.Caption + ' ' + NewItemListForm.SelectedObject.Name; 329 330 AddTabForm(NewItemListForm); 330 331 end; … … 384 385 NewTabSheet.UseDockManager := True; 385 386 NewTabSheet.Caption := Form.Caption; 387 PageControl1.TabIndex := PageControl1.PageCount - 1; 386 388 Form.DragKind := dkDock; 387 389 Form.DragMode := dmAutomatic; 390 Form.ManualDock(NewTabSheet); 388 391 Form.Show; 389 Form.ManualDock(NewTabSheet); 390 PageControl1.TabIndex := PageControl1.PageCount - 1; 392 393 // Workaround for not showing content of first tab after docking 394 NewTabSheet.Visible := False; 395 NewTabSheet.Visible := True; 391 396 end; 392 397 -
trunk/Languages/chronis.cs.po
r31 r32 125 125 #: TITEMLISTFORM.CAPTION 126 126 msgid "Item list" 127 msgstr " "127 msgstr "Seznam položek" 128 128 129 129 #: TITEMSELECTFORM.BUTTONCANCEL.CAPTION -
trunk/chronis.lpi
r31 r32 105 105 </Item6> 106 106 </RequiredPackages> 107 <Units Count="5 6">107 <Units Count="58"> 108 108 <Unit0> 109 109 <Filename Value="chronis.lpr"/> … … 153 153 <IsPartOfProject Value="True"/> 154 154 <UnitName Value="UPersistentForm"/> 155 <IsVisibleTab Value="True"/> 156 <EditorIndex Value="5"/> 155 <EditorIndex Value="6"/> 157 156 <WindowIndex Value="0"/> 158 157 <TopLine Value="21"/> 159 <CursorPos X=" 14" Y="34"/>158 <CursorPos X="63" Y="37"/> 160 159 <UsageCount Value="264"/> 161 160 <Loaded Value="True"/> … … 190 189 <WindowIndex Value="0"/> 191 190 <TopLine Value="104"/> 192 <CursorPos X=" 20" Y="112"/>191 <CursorPos X="5" Y="117"/> 193 192 <UsageCount Value="327"/> 194 193 <Loaded Value="True"/> … … 202 201 <ResourceBaseClass Value="Form"/> 203 202 <UnitName Value="UItemEdit"/> 204 <EditorIndex Value=" 1"/>203 <EditorIndex Value="2"/> 205 204 <WindowIndex Value="0"/> 206 205 <TopLine Value="27"/> … … 218 217 <ResourceBaseClass Value="Form"/> 219 218 <UnitName Value="ULoginForm"/> 220 <EditorIndex Value=" 6"/>219 <EditorIndex Value="11"/> 221 220 <WindowIndex Value="0"/> 222 221 <TopLine Value="43"/> … … 234 233 <ResourceBaseClass Value="Form"/> 235 234 <UnitName Value="UMainForm"/> 236 <EditorIndex Value=" 3"/>237 <WindowIndex Value="0"/> 238 <TopLine Value="3 69"/>239 <CursorPos X=" 21" Y="389"/>235 <EditorIndex Value="4"/> 236 <WindowIndex Value="0"/> 237 <TopLine Value="316"/> 238 <CursorPos X="94" Y="329"/> 240 239 <UsageCount Value="317"/> 241 240 <Loaded Value="True"/> … … 259 258 <ResourceBaseClass Value="Form"/> 260 259 <UnitName Value="UItemAdd"/> 261 <EditorIndex Value=" 2"/>260 <EditorIndex Value="3"/> 262 261 <WindowIndex Value="0"/> 263 262 <TopLine Value="14"/> … … 272 271 <IsPartOfProject Value="True"/> 273 272 <UnitName Value="USystem"/> 274 <EditorIndex Value=" 9"/>273 <EditorIndex Value="14"/> 275 274 <WindowIndex Value="0"/> 276 275 <TopLine Value="70"/> … … 286 285 <ResourceBaseClass Value="DataModule"/> 287 286 <UnitName Value="UCore"/> 288 <EditorIndex Value=" 8"/>287 <EditorIndex Value="13"/> 289 288 <WindowIndex Value="0"/> 290 289 <TopLine Value="42"/> … … 331 330 <TopLine Value="1241"/> 332 331 <CursorPos X="14" Y="1254"/> 333 <UsageCount Value="1 1"/>332 <UsageCount Value="10"/> 334 333 </Unit18> 335 334 <Unit19> … … 337 336 <IsPartOfProject Value="True"/> 338 337 <UnitName Value="UDataTypes"/> 339 <EditorIndex Value="1 1"/>338 <EditorIndex Value="16"/> 340 339 <WindowIndex Value="0"/> 341 340 <TopLine Value="5"/> … … 369 368 <TopLine Value="149"/> 370 369 <CursorPos X="44" Y="164"/> 371 <UsageCount Value="15 1"/>370 <UsageCount Value="152"/> 372 371 <DefaultSyntaxHighlighter Value="Delphi"/> 373 372 </Unit22> … … 435 434 <TopLine Value="40"/> 436 435 <CursorPos X="29" Y="54"/> 437 <UsageCount Value="10 0"/>436 <UsageCount Value="101"/> 438 437 <DefaultSyntaxHighlighter Value="Delphi"/> 439 438 </Unit30> … … 448 447 <Unit32> 449 448 <Filename Value="../../../Lazarus/0.9.31_2.5.1/lcl/include/customform.inc"/> 450 <EditorIndex Value="1 0"/>449 <EditorIndex Value="15"/> 451 450 <WindowIndex Value="0"/> 452 451 <TopLine Value="2102"/> 453 <CursorPos X=" 21" Y="2107"/>454 <UsageCount Value="3 1"/>452 <CursorPos X="18" Y="2113"/> 453 <UsageCount Value="32"/> 455 454 <Loaded Value="True"/> 456 455 </Unit32> … … 474 473 <Filename Value="../../PascalClassLibrary/Network/CoolWeb/Persistence/USqlDatabase.pas"/> 475 474 <UnitName Value="USqlDatabase"/> 476 <WindowIndex Value="0"/> 477 <TopLine Value="233"/> 478 <CursorPos X="1" Y="246"/> 475 <EditorIndex Value="1"/> 476 <WindowIndex Value="0"/> 477 <TopLine Value="140"/> 478 <CursorPos X="1" Y="159"/> 479 479 <UsageCount Value="20"/> 480 <Loaded Value="True"/> 480 481 </Unit35> 481 482 <Unit36> … … 488 489 <TopLine Value="175"/> 489 490 <CursorPos X="3" Y="183"/> 490 <UsageCount Value="5 0"/>491 <UsageCount Value="51"/> 491 492 <DefaultSyntaxHighlighter Value="Delphi"/> 492 493 </Unit36> … … 530 531 <TopLine Value="4"/> 531 532 <CursorPos X="33" Y="19"/> 532 <UsageCount Value="4 4"/>533 <UsageCount Value="45"/> 533 534 <DefaultSyntaxHighlighter Value="Delphi"/> 534 535 </Unit41> … … 567 568 <IsPartOfProject Value="True"/> 568 569 <UnitName Value="UChronisClient"/> 569 <EditorIndex Value=" 7"/>570 <EditorIndex Value="12"/> 570 571 <WindowIndex Value="0"/> 571 572 <TopLine Value="11"/> 572 573 <CursorPos X="26" Y="40"/> 573 <UsageCount Value="4 0"/>574 <UsageCount Value="41"/> 574 575 <Loaded Value="True"/> 575 576 <DefaultSyntaxHighlighter Value="Delphi"/> … … 579 580 <IsPartOfProject Value="True"/> 580 581 <UnitName Value="UChronisServer"/> 582 <EditorIndex Value="10"/> 581 583 <WindowIndex Value="0"/> 582 584 <TopLine Value="1"/> 583 585 <CursorPos X="1" Y="14"/> 584 <UsageCount Value="40"/> 586 <UsageCount Value="41"/> 587 <Loaded Value="True"/> 585 588 <DefaultSyntaxHighlighter Value="Delphi"/> 586 589 </Unit47> 587 590 <Unit48> 588 <Filename Value="Application/ UChronisClientDirect.pas"/>591 <Filename Value="Application/Clients/UChronisClientDirect.pas"/> 589 592 <IsPartOfProject Value="True"/> 590 593 <UnitName Value="UChronisClientDirect"/> 594 <IsVisibleTab Value="True"/> 595 <EditorIndex Value="9"/> 591 596 <WindowIndex Value="0"/> 592 597 <TopLine Value="8"/> 593 <CursorPos X="53" Y="32"/> 594 <UsageCount Value="39"/> 598 <CursorPos X="53" Y="18"/> 599 <UsageCount Value="40"/> 600 <Loaded Value="True"/> 595 601 <DefaultSyntaxHighlighter Value="Delphi"/> 596 602 </Unit48> … … 599 605 <IsPartOfProject Value="True"/> 600 606 <UnitName Value="UChronisModule"/> 601 <EditorIndex Value="1 2"/>607 <EditorIndex Value="17"/> 602 608 <WindowIndex Value="0"/> 603 609 <TopLine Value="1"/> 604 610 <CursorPos X="5" Y="15"/> 605 <UsageCount Value="3 0"/>611 <UsageCount Value="31"/> 606 612 <Loaded Value="True"/> 607 613 <DefaultSyntaxHighlighter Value="Delphi"/> … … 611 617 <IsPartOfProject Value="True"/> 612 618 <UnitName Value="UModuleSystem"/> 613 <EditorIndex Value="1 3"/>619 <EditorIndex Value="18"/> 614 620 <WindowIndex Value="0"/> 615 621 <TopLine Value="54"/> 616 622 <CursorPos X="42" Y="66"/> 617 <UsageCount Value="3 0"/>623 <UsageCount Value="31"/> 618 624 <Loaded Value="True"/> 619 625 <DefaultSyntaxHighlighter Value="Delphi"/> … … 647 653 <ResourceBaseClass Value="Form"/> 648 654 <UnitName Value="UItemList"/> 649 <EditorIndex Value=" 4"/>650 <WindowIndex Value="0"/> 651 <TopLine Value=" 162"/>652 <CursorPos X=" 3" Y="181"/>653 <UsageCount Value="2 2"/>655 <EditorIndex Value="5"/> 656 <WindowIndex Value="0"/> 657 <TopLine Value="62"/> 658 <CursorPos X="56" Y="79"/> 659 <UsageCount Value="23"/> 654 660 <Loaded Value="True"/> 655 661 <LoadedDesigner Value="True"/> … … 664 670 <UsageCount Value="10"/> 665 671 </Unit55> 672 <Unit56> 673 <Filename Value="Application/Clients/UChronisClientXMLRPC.pas"/> 674 <IsPartOfProject Value="True"/> 675 <UnitName Value="UChronisClientXMLRPC"/> 676 <EditorIndex Value="7"/> 677 <WindowIndex Value="0"/> 678 <TopLine Value="1"/> 679 <CursorPos X="1" Y="1"/> 680 <UsageCount Value="20"/> 681 <Loaded Value="True"/> 682 <DefaultSyntaxHighlighter Value="Delphi"/> 683 </Unit56> 684 <Unit57> 685 <Filename Value="Application/Clients/UChronisMySQL.pas"/> 686 <IsPartOfProject Value="True"/> 687 <UnitName Value="UChronisMySQL"/> 688 <EditorIndex Value="8"/> 689 <WindowIndex Value="0"/> 690 <TopLine Value="1"/> 691 <CursorPos X="1" Y="1"/> 692 <UsageCount Value="20"/> 693 <Loaded Value="True"/> 694 <DefaultSyntaxHighlighter Value="Delphi"/> 695 </Unit57> 666 696 </Units> 667 697 <JumpHistory Count="30" HistoryIndex="29"> 668 698 <Position1> 669 <Filename Value=" Forms/UItemList.pas"/>670 <Caret Line=" 119" Column="13" TopLine="105"/>699 <Filename Value="USystem.pas"/> 700 <Caret Line="226" Column="28" TopLine="212"/> 671 701 </Position1> 672 702 <Position2> 673 <Filename Value=" Forms/UItemList.pas"/>674 <Caret Line=" 116" Column="1" TopLine="105"/>703 <Filename Value="USystem.pas"/> 704 <Caret Line="223" Column="1" TopLine="197"/> 675 705 </Position2> 676 706 <Position3> 677 <Filename Value="Forms/UItem List.pas"/>678 <Caret Line="1 12" Column="1" TopLine="92"/>707 <Filename Value="Forms/UItemView.pas"/> 708 <Caret Line="143" Column="14" TopLine="131"/> 679 709 </Position3> 680 710 <Position4> 681 <Filename Value="Forms/UItem List.pas"/>682 <Caret Line=" 85" Column="42" TopLine="72"/>711 <Filename Value="Forms/UItemView.pas"/> 712 <Caret Line="44" Column="10" TopLine="33"/> 683 713 </Position4> 684 714 <Position5> 685 <Filename Value=" Forms/UMainForm.pas"/>686 <Caret Line=" 389" Column="1" TopLine="367"/>715 <Filename Value="USystem.pas"/> 716 <Caret Line="223" Column="1" TopLine="210"/> 687 717 </Position5> 688 718 <Position6> 689 <Filename Value=" USystem.pas"/>690 <Caret Line=" 226" Column="28" TopLine="212"/>719 <Filename Value="Forms/UItemView.pas"/> 720 <Caret Line="113" Column="1" TopLine="100"/> 691 721 </Position6> 692 722 <Position7> 693 <Filename Value=" USystem.pas"/>694 <Caret Line=" 223" Column="1" TopLine="197"/>723 <Filename Value="Forms/UItemView.pas"/> 724 <Caret Line="143" Column="1" TopLine="130"/> 695 725 </Position7> 696 726 <Position8> 697 727 <Filename Value="Forms/UItemView.pas"/> 698 <Caret Line=" 143" Column="14" TopLine="131"/>728 <Caret Line="44" Column="15" TopLine="31"/> 699 729 </Position8> 700 730 <Position9> 701 <Filename Value=" Forms/UItemView.pas"/>702 <Caret Line=" 44" Column="10" TopLine="33"/>731 <Filename Value="USystem.pas"/> 732 <Caret Line="223" Column="1" TopLine="210"/> 703 733 </Position9> 704 734 <Position10> 705 <Filename Value=" USystem.pas"/>706 <Caret Line=" 223" Column="1" TopLine="210"/>735 <Filename Value="Forms/UItemList.pas"/> 736 <Caret Line="86" Column="33" TopLine="80"/> 707 737 </Position10> 708 738 <Position11> 709 739 <Filename Value="Forms/UItemView.pas"/> 710 <Caret Line=" 113" Column="1" TopLine="100"/>740 <Caret Line="42" Column="24" TopLine="29"/> 711 741 </Position11> 712 742 <Position12> 713 <Filename Value=" Forms/UItemView.pas"/>714 <Caret Line=" 143" Column="1" TopLine="130"/>743 <Filename Value="USystem.pas"/> 744 <Caret Line="84" Column="46" TopLine="62"/> 715 745 </Position12> 716 746 <Position13> 717 <Filename Value=" Forms/UItemView.pas"/>718 <Caret Line=" 44" Column="15" TopLine="31"/>747 <Filename Value="USystem.pas"/> 748 <Caret Line="91" Column="9" TopLine="70"/> 719 749 </Position13> 720 750 <Position14> 721 <Filename Value=" USystem.pas"/>722 <Caret Line=" 223" Column="1" TopLine="210"/>751 <Filename Value="Forms/UItemList.pas"/> 752 <Caret Line="129" Column="30" TopLine="124"/> 723 753 </Position14> 724 754 <Position15> 725 <Filename Value="Forms/UItem List.pas"/>726 <Caret Line=" 86" Column="33" TopLine="80"/>755 <Filename Value="Forms/UItemView.pas"/> 756 <Caret Line="42" Column="24" TopLine="29"/> 727 757 </Position15> 728 758 <Position16> 729 <Filename Value="Forms/UItem View.pas"/>730 <Caret Line=" 42" Column="24" TopLine="29"/>759 <Filename Value="Forms/UItemEdit.pas"/> 760 <Caret Line="54" Column="19" TopLine="35"/> 731 761 </Position16> 732 762 <Position17> 733 <Filename Value=" USystem.pas"/>734 <Caret Line=" 84" Column="46" TopLine="62"/>763 <Filename Value="Forms/UItemAdd.pas"/> 764 <Caret Line="31" Column="1" TopLine="17"/> 735 765 </Position17> 736 766 <Position18> 737 <Filename Value=" USystem.pas"/>738 <Caret Line=" 91" Column="9" TopLine="70"/>767 <Filename Value="Forms/UItemAdd.pas"/> 768 <Caret Line="120" Column="28" TopLine="107"/> 739 769 </Position18> 740 770 <Position19> 741 <Filename Value="Forms/UItem List.pas"/>742 <Caret Line=" 129" Column="30" TopLine="124"/>771 <Filename Value="Forms/UItemEdit.pas"/> 772 <Caret Line="203" Column="28" TopLine="191"/> 743 773 </Position19> 744 774 <Position20> 745 <Filename Value="Forms/UItem View.pas"/>746 <Caret Line=" 42" Column="24" TopLine="29"/>775 <Filename Value="Forms/UItemEdit.pas"/> 776 <Caret Line="135" Column="73" TopLine="122"/> 747 777 </Position20> 748 778 <Position21> 749 779 <Filename Value="Forms/UItemEdit.pas"/> 750 <Caret Line=" 54" Column="19" TopLine="35"/>780 <Caret Line="220" Column="41" TopLine="207"/> 751 781 </Position21> 752 782 <Position22> 753 <Filename Value="Forms/UItem Add.pas"/>754 <Caret Line=" 31" Column="1" TopLine="17"/>783 <Filename Value="Forms/UItemEdit.pas"/> 784 <Caret Line="276" Column="19" TopLine="263"/> 755 785 </Position22> 756 786 <Position23> 757 <Filename Value="Forms/UItem Add.pas"/>758 <Caret Line="1 20" Column="28" TopLine="107"/>787 <Filename Value="Forms/UItemView.pas"/> 788 <Caret Line="112" Column="20" TopLine="104"/> 759 789 </Position23> 760 790 <Position24> 761 <Filename Value="Forms/UItem Edit.pas"/>762 <Caret Line=" 203" Column="28" TopLine="191"/>791 <Filename Value="Forms/UItemList.pas"/> 792 <Caret Line="119" Column="15" TopLine="112"/> 763 793 </Position24> 764 794 <Position25> 765 <Filename Value="Forms/UItem Edit.pas"/>766 <Caret Line="1 35" Column="73" TopLine="122"/>795 <Filename Value="Forms/UItemList.pas"/> 796 <Caret Line="181" Column="3" TopLine="162"/> 767 797 </Position25> 768 798 <Position26> 769 <Filename Value="Forms/UItem Edit.pas"/>770 <Caret Line=" 220" Column="41" TopLine="207"/>799 <Filename Value="Forms/UItemList.pas"/> 800 <Caret Line="110" Column="6" TopLine="108"/> 771 801 </Position26> 772 802 <Position27> 773 <Filename Value="Forms/U ItemEdit.pas"/>774 <Caret Line=" 276" Column="19" TopLine="263"/>803 <Filename Value="Forms/UMainForm.pas"/> 804 <Caret Line="328" Column="74" TopLine="322"/> 775 805 </Position27> 776 806 <Position28> 777 <Filename Value="Forms/U ItemView.pas"/>778 <Caret Line=" 112" Column="20" TopLine="104"/>807 <Filename Value="Forms/UMainForm.pas"/> 808 <Caret Line="329" Column="94" TopLine="316"/> 779 809 </Position28> 780 810 <Position29> 781 <Filename Value="Forms/UItem List.pas"/>782 <Caret Line="11 9" Column="15" TopLine="112"/>811 <Filename Value="Forms/UItemView.pas"/> 812 <Caret Line="117" Column="5" TopLine="104"/> 783 813 </Position29> 784 814 <Position30> 785 <Filename Value=" Forms/UItemList.pas"/>786 <Caret Line="1 81" Column="3" TopLine="162"/>815 <Filename Value="../../PascalClassLibrary/Network/CoolWeb/Persistence/USqlDatabase.pas"/> 816 <Caret Line="159" Column="1" TopLine="140"/> 787 817 </Position30> 788 818 </JumpHistory> … … 796 826 <IncludeFiles Value="$(ProjOutDir)"/> 797 827 <Libraries Value="/usr/lib/mysql;/usr/lib64/mysql"/> 798 <OtherUnitFiles Value="Common;Forms;Application;Module "/>828 <OtherUnitFiles Value="Common;Forms;Application;Module;Application/Clients"/> 799 829 <UnitOutputDirectory Value="lib/$(TargetCPU)-$(TargetOS)"/> 800 830 </SearchPaths> -
trunk/chronis.lpr
r31 r32 13 13 UImportStructureForm, UItemSelect, ULoginProfileForm, UAboutForm, 14 14 UChronisClient, UChronisServer, UChronisClientDirect, UChronisModule, 15 UModuleSystem, UItemList, LDockTree 15 UModuleSystem, UItemList, LDockTree, UChronisClientXMLRPC, UChronisMySQL 16 16 { you can add units after this }; 17 17
Note:
See TracChangeset
for help on using the changeset viewer.