Changeset 61 for branches/Transpascal
- Timestamp:
- Oct 14, 2010, 2:30:40 PM (15 years ago)
- Location:
- branches/Transpascal
- Files:
-
- 6 added
- 2 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Transpascal/Forms/UMainForm.lfm
r60 r61 5 5 Width = 861 6 6 Caption = 'Transpascal IDE' 7 ClientHeight = 4857 ClientHeight = 504 8 8 ClientWidth = 861 9 9 Font.Height = -11 … … 16 16 Position = poDesktopCenter 17 17 LCLVersion = '0.9.29' 18 object Panel2: TPanel19 Left = 020 Height = 32021 Top = 022 Width = 86123 Align = alClient24 BevelOuter = bvNone25 ClientHeight = 32026 ClientWidth = 86127 TabOrder = 028 object TreeViewProject: TTreeView29 Left = 030 Height = 32031 Top = 032 Width = 23333 Align = alLeft34 DefaultItemHeight = 1535 ReadOnly = True36 TabOrder = 037 OnChange = TreeViewProjectChange38 Options = [tvoAutoItemHeight, tvoHideSelection, tvoKeepCollapsedNodes, tvoReadOnly, tvoShowButtons, tvoShowLines, tvoShowRoot, tvoToolTips, tvoThemedDraw]39 end40 object Splitter1: TSplitter41 Left = 23342 Height = 32043 Top = 044 Width = 545 end46 inline SynEditSource: TSynEdit47 Left = 23848 Height = 32049 Top = 050 Width = 36451 Align = alLeft52 Font.Height = -1353 Font.Name = 'Courier New'54 Font.Pitch = fpFixed55 Font.Quality = fqNonAntialiased56 ParentColor = False57 ParentFont = False58 TabOrder = 259 Gutter.Width = 5760 Gutter.MouseActions = <61 item62 Shift = []63 ShiftMask = []64 Button = mbLeft65 ClickCount = ccAny66 ClickDir = cdDown67 Command = 1368 MoveCaret = False69 Option = 070 Priority = 071 end72 item73 Shift = []74 ShiftMask = []75 Button = mbRight76 ClickCount = ccSingle77 ClickDir = cdUp78 Command = 1279 MoveCaret = False80 Option = 081 Priority = 082 end>83 RightGutter.Width = 084 RightGutter.MouseActions = <85 item86 Shift = []87 ShiftMask = []88 Button = mbLeft89 ClickCount = ccAny90 ClickDir = cdDown91 Command = 1392 MoveCaret = False93 Option = 094 Priority = 095 end96 item97 Shift = []98 ShiftMask = []99 Button = mbRight100 ClickCount = ccSingle101 ClickDir = cdUp102 Command = 12103 MoveCaret = False104 Option = 0105 Priority = 0106 end>107 Highlighter = SynPasSyn1108 Keystrokes = <109 item110 Command = ecUp111 ShortCut = 38112 end113 item114 Command = ecSelUp115 ShortCut = 8230116 end117 item118 Command = ecScrollUp119 ShortCut = 16422120 end121 item122 Command = ecDown123 ShortCut = 40124 end125 item126 Command = ecSelDown127 ShortCut = 8232128 end129 item130 Command = ecScrollDown131 ShortCut = 16424132 end133 item134 Command = ecLeft135 ShortCut = 37136 end137 item138 Command = ecSelLeft139 ShortCut = 8229140 end141 item142 Command = ecWordLeft143 ShortCut = 16421144 end145 item146 Command = ecSelWordLeft147 ShortCut = 24613148 end149 item150 Command = ecRight151 ShortCut = 39152 end153 item154 Command = ecSelRight155 ShortCut = 8231156 end157 item158 Command = ecWordRight159 ShortCut = 16423160 end161 item162 Command = ecSelWordRight163 ShortCut = 24615164 end165 item166 Command = ecPageDown167 ShortCut = 34168 end169 item170 Command = ecSelPageDown171 ShortCut = 8226172 end173 item174 Command = ecPageBottom175 ShortCut = 16418176 end177 item178 Command = ecSelPageBottom179 ShortCut = 24610180 end181 item182 Command = ecPageUp183 ShortCut = 33184 end185 item186 Command = ecSelPageUp187 ShortCut = 8225188 end189 item190 Command = ecPageTop191 ShortCut = 16417192 end193 item194 Command = ecSelPageTop195 ShortCut = 24609196 end197 item198 Command = ecLineStart199 ShortCut = 36200 end201 item202 Command = ecSelLineStart203 ShortCut = 8228204 end205 item206 Command = ecEditorTop207 ShortCut = 16420208 end209 item210 Command = ecSelEditorTop211 ShortCut = 24612212 end213 item214 Command = ecLineEnd215 ShortCut = 35216 end217 item218 Command = ecSelLineEnd219 ShortCut = 8227220 end221 item222 Command = ecEditorBottom223 ShortCut = 16419224 end225 item226 Command = ecSelEditorBottom227 ShortCut = 24611228 end229 item230 Command = ecToggleMode231 ShortCut = 45232 end233 item234 Command = ecCopy235 ShortCut = 16429236 end237 item238 Command = ecPaste239 ShortCut = 8237240 end241 item242 Command = ecDeleteChar243 ShortCut = 46244 end245 item246 Command = ecCut247 ShortCut = 8238248 end249 item250 Command = ecDeleteLastChar251 ShortCut = 8252 end253 item254 Command = ecDeleteLastChar255 ShortCut = 8200256 end257 item258 Command = ecDeleteLastWord259 ShortCut = 16392260 end261 item262 Command = ecUndo263 ShortCut = 32776264 end265 item266 Command = ecRedo267 ShortCut = 40968268 end269 item270 Command = ecLineBreak271 ShortCut = 13272 end273 item274 Command = ecSelectAll275 ShortCut = 16449276 end277 item278 Command = ecCopy279 ShortCut = 16451280 end281 item282 Command = ecBlockIndent283 ShortCut = 24649284 end285 item286 Command = ecLineBreak287 ShortCut = 16461288 end289 item290 Command = ecInsertLine291 ShortCut = 16462292 end293 item294 Command = ecDeleteWord295 ShortCut = 16468296 end297 item298 Command = ecBlockUnindent299 ShortCut = 24661300 end301 item302 Command = ecPaste303 ShortCut = 16470304 end305 item306 Command = ecCut307 ShortCut = 16472308 end309 item310 Command = ecDeleteLine311 ShortCut = 16473312 end313 item314 Command = ecDeleteEOL315 ShortCut = 24665316 end317 item318 Command = ecUndo319 ShortCut = 16474320 end321 item322 Command = ecRedo323 ShortCut = 24666324 end325 item326 Command = ecGotoMarker0327 ShortCut = 16432328 end329 item330 Command = ecGotoMarker1331 ShortCut = 16433332 end333 item334 Command = ecGotoMarker2335 ShortCut = 16434336 end337 item338 Command = ecGotoMarker3339 ShortCut = 16435340 end341 item342 Command = ecGotoMarker4343 ShortCut = 16436344 end345 item346 Command = ecGotoMarker5347 ShortCut = 16437348 end349 item350 Command = ecGotoMarker6351 ShortCut = 16438352 end353 item354 Command = ecGotoMarker7355 ShortCut = 16439356 end357 item358 Command = ecGotoMarker8359 ShortCut = 16440360 end361 item362 Command = ecGotoMarker9363 ShortCut = 16441364 end365 item366 Command = ecSetMarker0367 ShortCut = 24624368 end369 item370 Command = ecSetMarker1371 ShortCut = 24625372 end373 item374 Command = ecSetMarker2375 ShortCut = 24626376 end377 item378 Command = ecSetMarker3379 ShortCut = 24627380 end381 item382 Command = ecSetMarker4383 ShortCut = 24628384 end385 item386 Command = ecSetMarker5387 ShortCut = 24629388 end389 item390 Command = ecSetMarker6391 ShortCut = 24630392 end393 item394 Command = ecSetMarker7395 ShortCut = 24631396 end397 item398 Command = ecSetMarker8399 ShortCut = 24632400 end401 item402 Command = ecSetMarker9403 ShortCut = 24633404 end405 item406 Command = EcFoldLevel1407 ShortCut = 41009408 end409 item410 Command = EcFoldLevel2411 ShortCut = 41010412 end413 item414 Command = EcFoldLevel1415 ShortCut = 41011416 end417 item418 Command = EcFoldLevel1419 ShortCut = 41012420 end421 item422 Command = EcFoldLevel1423 ShortCut = 41013424 end425 item426 Command = EcFoldLevel6427 ShortCut = 41014428 end429 item430 Command = EcFoldLevel7431 ShortCut = 41015432 end433 item434 Command = EcFoldLevel8435 ShortCut = 41016436 end437 item438 Command = EcFoldLevel9439 ShortCut = 41017440 end441 item442 Command = EcFoldLevel0443 ShortCut = 41008444 end445 item446 Command = EcFoldCurrent447 ShortCut = 41005448 end449 item450 Command = EcUnFoldCurrent451 ShortCut = 41003452 end453 item454 Command = EcToggleMarkupWord455 ShortCut = 32845456 end457 item458 Command = ecNormalSelect459 ShortCut = 24654460 end461 item462 Command = ecColumnSelect463 ShortCut = 24643464 end465 item466 Command = ecLineSelect467 ShortCut = 24652468 end469 item470 Command = ecTab471 ShortCut = 9472 end473 item474 Command = ecShiftTab475 ShortCut = 8201476 end477 item478 Command = ecMatchBracket479 ShortCut = 24642480 end481 item482 Command = ecColSelUp483 ShortCut = 40998484 end485 item486 Command = ecColSelDown487 ShortCut = 41000488 end489 item490 Command = ecColSelLeft491 ShortCut = 40997492 end493 item494 Command = ecColSelRight495 ShortCut = 40999496 end497 item498 Command = ecColSelPageDown499 ShortCut = 40994500 end501 item502 Command = ecColSelPageBottom503 ShortCut = 57378504 end505 item506 Command = ecColSelPageUp507 ShortCut = 40993508 end509 item510 Command = ecColSelPageTop511 ShortCut = 57377512 end513 item514 Command = ecColSelLineStart515 ShortCut = 40996516 end517 item518 Command = ecColSelLineEnd519 ShortCut = 40995520 end521 item522 Command = ecColSelEditorTop523 ShortCut = 57380524 end525 item526 Command = ecColSelEditorBottom527 ShortCut = 57379528 end>529 MouseActions = <530 item531 Shift = []532 ShiftMask = [ssShift, ssAlt]533 Button = mbLeft534 ClickCount = ccSingle535 ClickDir = cdDown536 Command = 1537 MoveCaret = True538 Option = 0539 Priority = 0540 end541 item542 Shift = [ssShift]543 ShiftMask = [ssShift, ssAlt]544 Button = mbLeft545 ClickCount = ccSingle546 ClickDir = cdDown547 Command = 1548 MoveCaret = True549 Option = 1550 Priority = 0551 end552 item553 Shift = [ssAlt]554 ShiftMask = [ssShift, ssAlt]555 Button = mbLeft556 ClickCount = ccSingle557 ClickDir = cdDown558 Command = 3559 MoveCaret = True560 Option = 0561 Priority = 0562 end563 item564 Shift = [ssShift, ssAlt]565 ShiftMask = [ssShift, ssAlt]566 Button = mbLeft567 ClickCount = ccSingle568 ClickDir = cdDown569 Command = 3570 MoveCaret = True571 Option = 1572 Priority = 0573 end574 item575 Shift = []576 ShiftMask = []577 Button = mbRight578 ClickCount = ccSingle579 ClickDir = cdUp580 Command = 12581 MoveCaret = False582 Option = 0583 Priority = 0584 end585 item586 Shift = []587 ShiftMask = []588 Button = mbLeft589 ClickCount = ccDouble590 ClickDir = cdDown591 Command = 6592 MoveCaret = True593 Option = 0594 Priority = 0595 end596 item597 Shift = []598 ShiftMask = []599 Button = mbLeft600 ClickCount = ccTriple601 ClickDir = cdDown602 Command = 7603 MoveCaret = True604 Option = 0605 Priority = 0606 end607 item608 Shift = []609 ShiftMask = []610 Button = mbLeft611 ClickCount = ccQuad612 ClickDir = cdDown613 Command = 8614 MoveCaret = True615 Option = 0616 Priority = 0617 end618 item619 Shift = []620 ShiftMask = []621 Button = mbMiddle622 ClickCount = ccSingle623 ClickDir = cdDown624 Command = 10625 MoveCaret = True626 Option = 0627 Priority = 0628 end629 item630 Shift = [ssCtrl]631 ShiftMask = [ssShift, ssAlt, ssCtrl]632 Button = mbLeft633 ClickCount = ccSingle634 ClickDir = cdUp635 Command = 11636 MoveCaret = False637 Option = 0638 Priority = 0639 end>640 MouseSelActions = <641 item642 Shift = []643 ShiftMask = []644 Button = mbLeft645 ClickCount = ccSingle646 ClickDir = cdDown647 Command = 9648 MoveCaret = False649 Option = 0650 Priority = 0651 end>652 Lines.Strings = (653 'SynEditSource'654 )655 BracketHighlightStyle = sbhsBoth656 inline SynGutterPartList1: TSynGutterPartList657 object SynGutterMarks1: TSynGutterMarks658 Width = 24659 end660 object SynGutterLineNumber1: TSynGutterLineNumber661 Width = 17662 MouseActions = <>663 MarkupInfo.Background = clBtnFace664 MarkupInfo.Foreground = clNone665 DigitCount = 2666 ShowOnlyLineNumbersMultiplesOf = 1667 ZeroStart = False668 LeadingZeros = False669 end670 object SynGutterChanges1: TSynGutterChanges671 Width = 4672 ModifiedColor = 59900673 SavedColor = clGreen674 end675 object SynGutterSeparator1: TSynGutterSeparator676 Width = 2677 end678 object SynGutterCodeFolding1: TSynGutterCodeFolding679 MouseActions = <680 item681 Shift = []682 ShiftMask = []683 Button = mbRight684 ClickCount = ccSingle685 ClickDir = cdUp686 Command = 16687 MoveCaret = False688 Option = 0689 Priority = 0690 end691 item692 Shift = []693 ShiftMask = [ssShift]694 Button = mbMiddle695 ClickCount = ccAny696 ClickDir = cdDown697 Command = 14698 MoveCaret = False699 Option = 0700 Priority = 0701 end702 item703 Shift = [ssShift]704 ShiftMask = [ssShift]705 Button = mbMiddle706 ClickCount = ccAny707 ClickDir = cdDown708 Command = 14709 MoveCaret = False710 Option = 1711 Priority = 0712 end713 item714 Shift = []715 ShiftMask = []716 Button = mbLeft717 ClickCount = ccAny718 ClickDir = cdDown719 Command = 0720 MoveCaret = False721 Option = 0722 Priority = 0723 end>724 MarkupInfo.Background = clNone725 MarkupInfo.Foreground = clGray726 MouseActionsExpanded = <727 item728 Shift = []729 ShiftMask = []730 Button = mbLeft731 ClickCount = ccAny732 ClickDir = cdDown733 Command = 14734 MoveCaret = False735 Option = 0736 Priority = 0737 end>738 MouseActionsCollapsed = <739 item740 Shift = [ssCtrl]741 ShiftMask = [ssCtrl]742 Button = mbLeft743 ClickCount = ccAny744 ClickDir = cdDown745 Command = 15746 MoveCaret = False747 Option = 0748 Priority = 0749 end750 item751 Shift = []752 ShiftMask = [ssCtrl]753 Button = mbLeft754 ClickCount = ccAny755 ClickDir = cdDown756 Command = 15757 MoveCaret = False758 Option = 1759 Priority = 0760 end>761 end762 end763 inline SynRightGutterPartList1: TSynRightGutterPartList764 end765 end766 object Splitter2: TSplitter767 Left = 602768 Height = 320769 Top = 0770 Width = 5771 OnCanResize = Splitter2CanResize772 end773 object Panel1: TPanel774 Left = 607775 Height = 320776 Top = 0777 Width = 254778 Align = alClient779 BevelOuter = bvNone780 TabOrder = 4781 end782 end783 object Panel3: TPanel784 Left = 0785 Height = 160786 Top = 325787 Width = 861788 Align = alBottom789 BevelOuter = bvSpace790 ClientHeight = 160791 ClientWidth = 861792 TabOrder = 1793 object ListBoxMessages: TListBox794 Left = 8795 Height = 146796 Top = 8797 Width = 694798 Anchors = [akTop, akLeft, akRight, akBottom]799 ItemHeight = 0800 OnClick = ListBoxMessagesClick801 TabOrder = 0802 end803 object ButtonCompile: TButton804 Left = 709805 Height = 22806 Top = 32807 Width = 144808 Anchors = [akTop, akRight]809 Caption = 'Build'810 Font.Height = -11811 Font.Name = 'Tahoma'812 OnClick = ButtonCompileClick813 ParentFont = False814 TabOrder = 1815 end816 object ComboBox1: TComboBox817 Left = 709818 Height = 21819 Top = 8820 Width = 144821 Anchors = [akTop, akRight]822 ItemHeight = 13823 ItemIndex = 0824 Items.Strings = (825 'Pascal'826 'C'827 'i8051'828 'TreeView'829 )830 OnChange = ComboBox1Change831 Style = csDropDownList832 TabOrder = 2833 Text = 'Pascal'834 end835 end836 18 object Splitter3: TSplitter 837 19 Cursor = crVSplit 838 20 Left = 0 839 21 Height = 5 840 Top = 32022 Top = 480 841 23 Width = 861 842 24 Align = alBottom 843 25 ResizeAnchor = akBottom 844 26 end 845 object SynPasSyn1: TSynPasSyn 846 Enabled = False 847 CompilerMode = pcmDelphi 848 NestedComments = False 849 left = 328 850 top = 32 27 object DockPanel: TPanel 28 Left = 0 29 Height = 454 30 Top = 26 31 Width = 861 32 Align = alClient 33 BevelOuter = bvNone 34 TabOrder = 1 35 end 36 object ToolBar1: TToolBar 37 Left = 0 38 Height = 26 39 Top = 0 40 Width = 861 41 Caption = 'ToolBar1' 42 TabOrder = 2 43 object ComboBox1: TComboBox 44 Left = 1 45 Height = 21 46 Top = 2 47 Width = 100 48 ItemHeight = 13 49 TabOrder = 0 50 Text = 'ComboBox1' 51 end 52 object Button1: TButton 53 Left = 101 54 Height = 22 55 Top = 2 56 Width = 59 57 Action = ABuild 58 TabOrder = 1 59 end 851 60 end 852 61 object MainMenu1: TMainMenu … … 869 78 object MenuItem3: TMenuItem 870 79 Action = AProjectClose 80 end 81 end 82 object MenuItem7: TMenuItem 83 Caption = 'Run' 84 object MenuItem8: TMenuItem 85 Action = ABuild 871 86 end 872 87 end … … 899 114 Caption = 'Close' 900 115 end 116 object ABuild: TAction 117 Category = 'Build' 118 Caption = 'Build' 119 OnExecute = ButtonCompileClick 120 end 121 end 122 object CoolDockMaster1: TCoolDockMaster 123 TabsEnabled = True 124 DefaultTabsPos = hpAuto 125 DefaultHeaderPos = hpAuto 126 ShowIcons = False 127 left = 428 128 top = 56 129 end 130 object CoolDockClient1: TCoolDockClient 131 Dockable = False 132 Floatable = False 133 Master = CoolDockMaster1 134 Panel = DockPanel 135 left = 504 136 top = 56 901 137 end 902 138 end -
branches/Transpascal/Forms/UMainForm.pas
r60 r61 7 7 uses 8 8 SysUtils, Variants, Classes, Graphics, Controls, Forms, 9 Dialogs, StdCtrls, U SourceCode, UCompiler, UProducerAsm8051,9 Dialogs, StdCtrls, UCompiler, UProducerAsm8051, 10 10 UProducerC, ComCtrls, ExtCtrls, SynEdit, SynHighlighterPas, UProducerTreeView, 11 UProducerPascal, Contnrs, UProject, FileUtil, Menus, ActnList ;11 UProducerPascal, Contnrs, UProject, FileUtil, Menus, ActnList, UCoolDocking; 12 12 13 13 const … … 18 18 19 19 TMainForm = class(TForm) 20 ABuild: TAction; 20 21 AProjectNew: TAction; 21 22 AProjectOpen: TAction; … … 24 25 AProjectClose: TAction; 25 26 ActionList1: TActionList; 26 Button Compile: TButton;27 Button1: TButton; 27 28 ComboBox1: TComboBox; 28 ListBoxMessages: TListBox; 29 CoolDockClient1: TCoolDockClient; 30 CoolDockMaster1: TCoolDockMaster; 29 31 MainMenu1: TMainMenu; 30 32 MenuItem1: TMenuItem; … … 34 36 MenuItem5: TMenuItem; 35 37 MenuItem6: TMenuItem; 36 Panel1: TPanel; 37 Panel2: TPanel; 38 Panel3: TPanel; 39 Splitter1: TSplitter; 40 Splitter2: TSplitter; 38 MenuItem7: TMenuItem; 39 MenuItem8: TMenuItem; 40 DockPanel: TPanel; 41 41 Splitter3: TSplitter; 42 SynEditSource: TSynEdit; 43 SynPasSyn1: TSynPasSyn; 44 TreeViewProject: TTreeView; 42 ToolBar1: TToolBar; 45 43 procedure ComboBox1Change(Sender: TObject); 46 44 procedure FormShow(Sender: TObject); … … 59 57 procedure UpdateProjectGroup(Node: TTreeNode; Group: TProjectGroup); 60 58 function GetSource(Name: string; Source: TStringList): Boolean; 59 procedure DockInit; 61 60 public 62 61 Project: TProject; … … 72 71 {$R *.lfm} 73 72 73 uses 74 UMessagesForm, UCodeForm, UProjectManager; 75 74 76 { TMainForm } 75 77 … … 95 97 Compiler.Producer := TProducerTreeView.Create; 96 98 ProducerControl := TTreeView.Create(Self); 97 ProducerControl.Parent := Panel1;99 ProducerControl.Parent := DockPanel; 98 100 ProducerControl.Align := alClient; 99 101 // TProducerTreeView(Compiler.Producer).TreeView := TTreeView(ProducerControl); … … 109 111 if ComboBox1.ItemIndex = 0 then begin 110 112 ProducerControl := TMemo.Create(Self); 111 ProducerControl.Parent := Panel1;113 ProducerControl.Parent := DockPanel; 112 114 ProducerControl.Align := alClient; 113 115 ProducerControl.Font.Name := 'Courier New'; … … 116 118 if ComboBox1.ItemIndex = 1 then begin 117 119 ProducerControl := TMemo.Create(Self); 118 ProducerControl.Parent := Panel1;120 ProducerControl.Parent := DockPanel; 119 121 ProducerControl.Align := alClient; 120 122 ProducerControl.Font.Name := 'Courier New'; … … 123 125 if ComboBox1.ItemIndex = 2 then begin 124 126 ProducerControl := TMemo.Create(Self); 125 ProducerControl.Parent := Panel1;127 ProducerControl.Parent := DockPanel; 126 128 ProducerControl.Align := alClient; 127 129 ProducerControl.Font.Name := 'Courier New'; … … 138 140 ProjectFile: TProjectFile; 139 141 begin 142 with MessagesForm, CodeForm do 140 143 if ListBoxMessages.ItemIndex <> -1 then 141 144 with TErrorMessage(Compiler.ErrorMessages[ListBoxMessages.ItemIndex]) do begin … … 163 166 I: Integer; 164 167 begin 165 ListBoxMessages.Clear; 166 for I := 0 to Compiler.ErrorMessages.Count - 1 do 167 with TErrorMessage(Compiler.ErrorMessages[I]) do 168 MainForm.ListBoxMessages.Items.Add(FileName + '(' + IntToStr(Position.X) + 169 ',' + IntToStr(Position.Y) + ') ' + Text); 170 end; 171 172 procedure TMainForm.TreeViewProjectChange(Sender: TObject; Node: TTreeNode); 173 var 174 FileName: string; 175 begin 176 if Assigned(Node) then begin 177 if TProjectNode(Node.Data) is TProjectFile then begin 178 SynEditSource.Lines.Assign(TProjectFile(Node.Data).Source); 179 FileName := Compiler.CompiledFolder + DirectorySeparator + 180 Compiler.Producer.ClassName + DirectorySeparator + ExtractFileNameOnly(TProjectFile(Node.Data).Name) + Compiler.Producer.FileExtension; 181 if ProducerControl is TMemo then 182 if FileExists(FileName) then 183 TMemo(ProducerControl).Lines.LoadFromFile(FileName) else 184 TMemo(ProducerControl).Lines.Clear; 185 //if ProducerControl is TTreeView then 186 // TTreeView(ProducerControl).Assign(TProjectFile(Node.Data).ProducedCode); 187 end; 168 with MessagesForm do begin 169 ListBoxMessages.Clear; 170 for I := 0 to Compiler.ErrorMessages.Count - 1 do 171 with TErrorMessage(Compiler.ErrorMessages[I]) do 172 ListBoxMessages.Items.Add(FileName + '(' + IntToStr(Position.X) + 173 ',' + IntToStr(Position.Y) + ') ' + Text); 188 174 end; 189 175 end; … … 193 179 NewNode: TTreeNode; 194 180 begin 195 with TreeViewProject, Items do begin181 with ProjectManager, TreeViewProject, Items do begin 196 182 BeginUpdate; 197 183 Clear; … … 200 186 NewNode.Expand(True); 201 187 EndUpdate; 202 end;203 TreeViewProject.TopItem.Items[0].Selected := True;188 TreeViewProject.TopItem.Items[0].Selected := True; 189 end; 204 190 end; 205 191 … … 209 195 NewNode: TTreeNode; 210 196 begin 197 with ProjectManager do 211 198 for I := 0 to Group.Items.Count - 1 do begin 212 199 NewNode := TreeViewProject.Items.AddChild(Node, … … 229 216 end; 230 217 218 procedure TMainForm.DockInit; 219 var 220 Container1: TCoolDockConjoinForm; 221 begin 222 ProjectManager.ManualDock(DockPanel, nil, alLeft); 223 ProjectManager.Show; 224 225 Container1 := TCoolDockManager(DockPanel.DockManager).CreateContainer(alRight); 226 Container1.Caption := 'Tools'; 227 Container1.Name := 'Tools'; 228 Container1.ManualDock(DockPanel, nil, alRight); 229 230 CodeForm.ManualDock(Container1.Panel, nil, alTop); 231 CodeForm.Show; 232 MessagesForm.ManualDock(Container1.Panel, nil, alBottom); 233 MessagesForm.Show; 234 235 ProjectManager.Parent.Parent.Width := 200; 236 CodeForm.Parent.Parent.Height := MainForm.Height; 237 end; 238 231 239 procedure TMainForm.FormClose(Sender: TObject; var Action: TCloseAction); 232 240 begin … … 250 258 NewProjectFile: TProjectFile; 251 259 begin 260 DockInit; 261 252 262 Project.RootDir := '../../Project/'; 253 263 Project.Name := 'Project'; -
branches/Transpascal/Transpascal.lpi
r60 r61 46 46 </Item4> 47 47 </RequiredPackages> 48 <Units Count="2 7">48 <Units Count="29"> 49 49 <Unit0> 50 50 <Filename Value="Transpascal.lpr"/> … … 53 53 <EditorIndex Value="4"/> 54 54 <WindowIndex Value="0"/> 55 <TopLine Value=" 1"/>56 <CursorPos X="35" Y=" 9"/>57 <UsageCount Value="16 4"/>55 <TopLine Value="2"/> 56 <CursorPos X="35" Y="24"/> 57 <UsageCount Value="165"/> 58 58 <Loaded Value="True"/> 59 59 </Unit0> … … 65 65 <ResourceBaseClass Value="Form"/> 66 66 <UnitName Value="UMainForm"/> 67 <EditorIndex Value=" 0"/>68 <WindowIndex Value="0"/> 69 <TopLine Value="1 "/>70 <CursorPos X=" 34" Y="9"/>71 <UsageCount Value="16 4"/>67 <EditorIndex Value="3"/> 68 <WindowIndex Value="0"/> 69 <TopLine Value="175"/> 70 <CursorPos X="1" Y="176"/> 71 <UsageCount Value="165"/> 72 72 <Loaded Value="True"/> 73 <LoadedDesigner Value="True"/>74 73 </Unit1> 75 74 <Unit2> … … 77 76 <IsPartOfProject Value="True"/> 78 77 <UnitName Value="UTextSource"/> 79 <EditorIndex Value="2"/>80 78 <WindowIndex Value="0"/> 81 79 <TopLine Value="1"/> 82 80 <CursorPos X="1" Y="6"/> 83 <UsageCount Value="164"/> 84 <Loaded Value="True"/> 81 <UsageCount Value="165"/> 85 82 </Unit2> 86 83 <Unit3> … … 211 208 <IsPartOfProject Value="True"/> 212 209 <UnitName Value="UProject"/> 213 <EditorIndex Value="3"/> 214 <WindowIndex Value="0"/> 215 <TopLine Value="97"/> 216 <CursorPos X="1" Y="110"/> 217 <UsageCount Value="36"/> 218 <Loaded Value="True"/> 210 <WindowIndex Value="0"/> 211 <TopLine Value="1"/> 212 <CursorPos X="6" Y="1"/> 213 <UsageCount Value="37"/> 219 214 </Unit19> 220 215 <Unit20> … … 228 223 <Filename Value="Compiler\TranspascalCompiler.pas"/> 229 224 <UnitName Value="TranspascalCompiler"/> 230 <EditorIndex Value=" 5"/>225 <EditorIndex Value="0"/> 231 226 <WindowIndex Value="0"/> 232 227 <TopLine Value="1"/> 233 228 <CursorPos X="33" Y="1"/> 234 <UsageCount Value="1 0"/>229 <UsageCount Value="11"/> 235 230 <Loaded Value="True"/> 236 231 </Unit21> … … 246 241 <Filename Value="Compiler\USourceCode.pas"/> 247 242 <UnitName Value="USourceCode"/> 248 <EditorIndex Value="6"/>249 243 <WindowIndex Value="0"/> 250 244 <TopLine Value="307"/> 251 245 <CursorPos X="65" Y="308"/> 252 246 <UsageCount Value="10"/> 253 <Loaded Value="True"/>254 247 </Unit23> 255 248 <Unit24> 256 249 <Filename Value="Compiler\Analyze\UParser.pas"/> 257 250 <UnitName Value="UParser"/> 258 <EditorIndex Value="7"/>259 251 <WindowIndex Value="0"/> 260 252 <TopLine Value="1"/> 261 253 <CursorPos X="1" Y="1"/> 262 254 <UsageCount Value="10"/> 263 <Loaded Value="True"/>264 255 </Unit24> 265 256 <Unit25> 266 257 <Filename Value="Compiler\Produce\UProducer.pas"/> 267 258 <UnitName Value="UProducer"/> 268 <EditorIndex Value="8"/> 269 <WindowIndex Value="0"/> 270 <TopLine Value="1"/> 271 <CursorPos X="35" Y="5"/> 259 <WindowIndex Value="0"/> 260 <TopLine Value="1"/> 261 <CursorPos X="15" Y="4"/> 272 262 <UsageCount Value="10"/> 273 <Loaded Value="True"/>274 263 </Unit25> 275 264 <Unit26> 276 <Filename Value="Forms\UProjec Manager.pas"/>277 <IsPartOfProject Value="True"/> 278 <ComponentName Value=" Form1"/>265 <Filename Value="Forms\UProjectManager.pas"/> 266 <IsPartOfProject Value="True"/> 267 <ComponentName Value="ProjectManager"/> 279 268 <ResourceBaseClass Value="Form"/> 280 <UnitName Value="UProjecManager"/> 281 <EditorIndex Value="1"/> 282 <WindowIndex Value="0"/> 283 <TopLine Value="1"/> 284 <CursorPos X="1" Y="1"/> 285 <UsageCount Value="20"/> 269 <UnitName Value="UProjectManager"/> 270 <IsVisibleTab Value="True"/> 271 <EditorIndex Value="2"/> 272 <WindowIndex Value="0"/> 273 <TopLine Value="22"/> 274 <CursorPos X="18" Y="41"/> 275 <UsageCount Value="21"/> 286 276 <Loaded Value="True"/> 287 277 <LoadedDesigner Value="True"/> 288 278 </Unit26> 279 <Unit27> 280 <Filename Value="Forms\UCodeForm.pas"/> 281 <IsPartOfProject Value="True"/> 282 <ComponentName Value="CodeForm"/> 283 <ResourceBaseClass Value="Form"/> 284 <UnitName Value="UCodeForm"/> 285 <EditorIndex Value="1"/> 286 <WindowIndex Value="0"/> 287 <TopLine Value="7"/> 288 <CursorPos X="32" Y="16"/> 289 <UsageCount Value="21"/> 290 <Loaded Value="True"/> 291 <LoadedDesigner Value="True"/> 292 </Unit27> 293 <Unit28> 294 <Filename Value="Forms\UMessagesForm.pas"/> 295 <IsPartOfProject Value="True"/> 296 <ComponentName Value="MessagesForm"/> 297 <ResourceBaseClass Value="Form"/> 298 <UnitName Value="UMessagesForm"/> 299 <WindowIndex Value="0"/> 300 <TopLine Value="1"/> 301 <CursorPos X="1" Y="1"/> 302 <UsageCount Value="21"/> 303 </Unit28> 289 304 </Units> 290 <JumpHistory Count="1 6" HistoryIndex="15">305 <JumpHistory Count="10" HistoryIndex="9"> 291 306 <Position1> 292 <Filename Value="Forms\U MainForm.pas"/>293 <Caret Line=" 82" Column="41" TopLine="71"/>307 <Filename Value="Forms\UCodeForm.pas"/> 308 <Caret Line="16" Column="10" TopLine="1"/> 294 309 </Position1> 295 310 <Position2> 296 <Filename Value=" Forms\UMainForm.pas"/>297 <Caret Line=" 83" Column="41" TopLine="72"/>311 <Filename Value="Transpascal.lpr"/> 312 <Caret Line="9" Column="35" TopLine="1"/> 298 313 </Position2> 299 314 <Position3> 300 <Filename Value="Forms\U MainForm.pas"/>301 <Caret Line=" 84" Column="41" TopLine="73"/>315 <Filename Value="Forms\UProjectManager.pas"/> 316 <Caret Line="13" Column="9" TopLine="1"/> 302 317 </Position3> 303 318 <Position4> 304 <Filename Value=" Forms\UMainForm.pas"/>305 <Caret Line=" 85" Column="41" TopLine="74"/>319 <Filename Value="Transpascal.lpr"/> 320 <Caret Line="27" Column="1" TopLine="2"/> 306 321 </Position4> 307 322 <Position5> 308 <Filename Value="Forms\U MainForm.pas"/>309 <Caret Line=" 86" Column="41" TopLine="75"/>323 <Filename Value="Forms\UProjectManager.pas"/> 324 <Caret Line="34" Column="1" TopLine="29"/> 310 325 </Position5> 311 326 <Position6> 312 <Filename Value="Forms\U MainForm.pas"/>313 <Caret Line=" 87" Column="41" TopLine="76"/>327 <Filename Value="Forms\UProjectManager.pas"/> 328 <Caret Line="31" Column="13" TopLine="24"/> 314 329 </Position6> 315 330 <Position7> 316 <Filename Value="Forms\U MainForm.pas"/>317 <Caret Line=" 88" Column="41" TopLine="77"/>331 <Filename Value="Forms\UProjectManager.pas"/> 332 <Caret Line="9" Column="11" TopLine="1"/> 318 333 </Position7> 319 334 <Position8> 320 <Filename Value="Forms\U MainForm.pas"/>321 <Caret Line=" 89" Column="41" TopLine="78"/>335 <Filename Value="Forms\UProjectManager.pas"/> 336 <Caret Line="32" Column="23" TopLine="21"/> 322 337 </Position8> 323 338 <Position9> 324 <Filename Value="Forms\U MainForm.pas"/>325 <Caret Line=" 90" Column="41" TopLine="79"/>339 <Filename Value="Forms\UProjectManager.pas"/> 340 <Caret Line="43" Column="16" TopLine="30"/> 326 341 </Position9> 327 342 <Position10> 328 <Filename Value="Forms\U MainForm.pas"/>329 <Caret Line=" 91" Column="41" TopLine="80"/>343 <Filename Value="Forms\UProjectManager.pas"/> 344 <Caret Line="41" Column="19" TopLine="21"/> 330 345 </Position10> 331 <Position11>332 <Filename Value="Forms\UMainForm.pas"/>333 <Caret Line="92" Column="41" TopLine="81"/>334 </Position11>335 <Position12>336 <Filename Value="Forms\UMainForm.pas"/>337 <Caret Line="93" Column="41" TopLine="82"/>338 </Position12>339 <Position13>340 <Filename Value="Forms\UMainForm.pas"/>341 <Caret Line="94" Column="41" TopLine="83"/>342 </Position13>343 <Position14>344 <Filename Value="Forms\UMainForm.pas"/>345 <Caret Line="89" Column="88" TopLine="1"/>346 </Position14>347 <Position15>348 <Filename Value="Compiler\TranspascalCompiler.pas"/>349 <Caret Line="12" Column="34" TopLine="1"/>350 </Position15>351 <Position16>352 <Filename Value="Compiler\TranspascalCompiler.pas"/>353 <Caret Line="10" Column="24" TopLine="1"/>354 </Position16>355 346 </JumpHistory> 356 347 </ProjectOptions> -
branches/Transpascal/Transpascal.lpr
r60 r61 10 10 UMainForm in 'UMainForm.pas' {MainForm}, 11 11 UTextSource in 'UTextSource.pas', UProject, TranspascalCompiler, 12 UProjec Manager;12 UProjectManager, UCodeForm, UMessagesForm; 13 13 14 14 {$R *.res} … … 21 21 Application.Initialize; 22 22 Application.CreateForm(TMainForm, MainForm); 23 Application.CreateForm(TForm1, Form1); 23 Application.CreateForm(TProjectManager, ProjectManager); 24 Application.CreateForm(TCodeForm, CodeForm); 25 Application.CreateForm(TMessagesForm, MessagesForm); 24 26 Application.Run; 25 27 end.
Note:
See TracChangeset
for help on using the changeset viewer.