Changeset 69
- Timestamp:
- Oct 19, 2010, 7:19:53 AM (14 years ago)
- Location:
- branches/Transpascal
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Transpascal/Compiler/Analyze/UParser.pas
r68 r69 365 365 Parser.SourceCodeText := TStringList.Create; 366 366 Parser.ProgramCode := ProgramCode; 367 Parser.OnGetSource := OnGetSource; 367 368 if Assigned(FOnGetSource) then begin 368 369 if FOnGetSource(Name, Parser.SourceCodeText) then begin -
branches/Transpascal/Forms/UMainForm.pas
r67 r69 59 59 ReopenLastOpenedFile: Boolean; 60 60 procedure OpenRecentClick(Sender: TObject); 61 procedure LoadErrorMessages;62 61 procedure DockInit; 63 62 procedure LoadFromRegistry; … … 112 111 113 112 ProjectManager.TreeViewProjectChange(Self, ProjectManager.TreeViewProject.Selected); 114 LoadErrorMessages; 115 end; 116 117 procedure TMainForm.LoadErrorMessages; 118 var 119 I: Integer; 120 begin 121 with MessagesForm do begin 122 ListBoxMessages.Clear; 123 for I := 0 to Compiler.ErrorMessages.Count - 1 do 124 with TErrorMessage(Compiler.ErrorMessages[I]) do 125 ListBoxMessages.Items.Add(FileName + '(' + IntToStr(Position.X) + 126 ',' + IntToStr(Position.Y) + ') ' + Text); 127 end; 113 MessagesForm.Reload; 128 114 end; 129 115 -
branches/Transpascal/Forms/UMessagesForm.lfm
r64 r69 8 8 ClientWidth = 320 9 9 LCLVersion = '0.9.29' 10 object List BoxMessages: TListBox10 object ListView1: TListView 11 11 Left = 0 12 12 Height = 240 … … 14 14 Width = 320 15 15 Align = alClient 16 ItemHeight = 0 17 OnSelectionChange = ListBoxMessagesSelectionChange 16 Columns = < 17 item 18 Caption = 'File' 19 Width = 80 20 end 21 item 22 Caption = 'Position' 23 end 24 item 25 Caption = 'Message' 26 Width = 500 27 end> 28 ItemIndex = -1 29 OwnerData = True 30 ReadOnly = True 31 RowSelect = True 18 32 TabOrder = 0 33 ViewStyle = vsReport 34 OnClick = ListView1Click 35 OnData = ListView1Data 36 OnSelectItem = ListView1SelectItem 19 37 end 20 38 object CoolDockClient1: TCoolDockClient -
branches/Transpascal/Forms/UMessagesForm.pas
r67 r69 7 7 uses 8 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, 9 UCoolDocking, UProject, UCompiler;9 ComCtrls, UCoolDocking, UProject, UCompiler; 10 10 11 11 type … … 15 15 TMessagesForm = class(TForm) 16 16 CoolDockClient1: TCoolDockClient; 17 List BoxMessages: TListBox;17 ListView1: TListView; 18 18 procedure ListBoxMessagesSelectionChange(Sender: TObject; User: boolean); 19 procedure ListView1Click(Sender: TObject); 20 procedure ListView1Data(Sender: TObject; Item: TListItem); 21 procedure ListView1SelectItem(Sender: TObject; Item: TListItem; 22 Selected: Boolean); 19 23 private 20 24 { private declarations } 21 25 public 22 { public declarations }26 procedure Reload; 23 27 end; 24 28 … … 37 41 procedure TMessagesForm.ListBoxMessagesSelectionChange(Sender: TObject; 38 42 User: boolean); 43 begin 44 45 end; 46 47 procedure TMessagesForm.ListView1Click(Sender: TObject); 48 begin 49 ListView1SelectItem(Self, ListView1.Selected, ListView1.Selected.Selected); 50 end; 51 52 procedure TMessagesForm.ListView1Data(Sender: TObject; Item: TListItem); 53 begin 54 with MainForm, CodeForm do 55 with TErrorMessage(Compiler.ErrorMessages[Item.Index]) do begin 56 Item.Caption := FileName; 57 Item.Data := Compiler.ErrorMessages[Item.Index]; 58 Item.SubItems.Add(IntToStr(Position.X) + ',' + IntToStr(Position.Y)); 59 Item.SubItems.Add(Text); 60 end; 61 end; 62 63 procedure TMessagesForm.ListView1SelectItem(Sender: TObject; Item: TListItem; 64 Selected: Boolean); 39 65 var 40 66 ProjectFile: TProjectFile; 41 67 begin 42 68 with MainForm, CodeForm do 43 if ListBoxMessages.ItemIndex <> -1then44 with TErrorMessage( Compiler.ErrorMessages[ListBoxMessages.ItemIndex]) do begin69 if Assigned(ListView1.Selected) then 70 with TErrorMessage(ListView1.Selected.Data) do begin 45 71 ProjectFile := Project.SearchFile(FileName); 46 72 if Assigned(ProjectFile) then … … 52 78 end; 53 79 80 procedure TMessagesForm.Reload; 81 begin 82 ListView1.Items.Count := MainForm.Compiler.ErrorMessages.Count; 83 ListView1.Refresh; 84 end; 85 54 86 end. 55 87 -
branches/Transpascal/Transpascal.lpi
r68 r69 46 46 </Item4> 47 47 </RequiredPackages> 48 <Units Count=" 40">48 <Units Count="39"> 49 49 <Unit0> 50 50 <Filename Value="Transpascal.lpr"/> … … 55 55 <TopLine Value="4"/> 56 56 <CursorPos X="22" Y="22"/> 57 <UsageCount Value=" 182"/>57 <UsageCount Value="215"/> 58 58 <Loaded Value="True"/> 59 59 <DefaultSyntaxHighlighter Value="Delphi"/> … … 68 68 <EditorIndex Value="13"/> 69 69 <WindowIndex Value="0"/> 70 <TopLine Value=" 96"/>71 <CursorPos X=" 35" Y="115"/>72 <UsageCount Value=" 182"/>70 <TopLine Value="100"/> 71 <CursorPos X="23" Y="113"/> 72 <UsageCount Value="215"/> 73 73 <Loaded Value="True"/> 74 74 <LoadedDesigner Value="True"/> … … 82 82 <TopLine Value="1"/> 83 83 <CursorPos X="1" Y="6"/> 84 <UsageCount Value=" 182"/>84 <UsageCount Value="215"/> 85 85 <DefaultSyntaxHighlighter Value="Delphi"/> 86 86 </Unit2> … … 91 91 <TopLine Value="745"/> 92 92 <CursorPos X="46" Y="759"/> 93 <UsageCount Value="16 3"/>93 <UsageCount Value="160"/> 94 94 <DefaultSyntaxHighlighter Value="Delphi"/> 95 95 </Unit3> … … 100 100 <TopLine Value="1"/> 101 101 <CursorPos X="40" Y="11"/> 102 <UsageCount Value="16 3"/>102 <UsageCount Value="160"/> 103 103 <DefaultSyntaxHighlighter Value="Delphi"/> 104 104 </Unit4> … … 109 109 <TopLine Value="187"/> 110 110 <CursorPos X="34" Y="201"/> 111 <UsageCount Value="16 3"/>111 <UsageCount Value="160"/> 112 112 </Unit5> 113 113 <Unit6> … … 117 117 <TopLine Value="1"/> 118 118 <CursorPos X="1" Y="14"/> 119 <UsageCount Value="16 3"/>119 <UsageCount Value="160"/> 120 120 </Unit6> 121 121 <Unit7> … … 125 125 <TopLine Value="124"/> 126 126 <CursorPos X="42" Y="136"/> 127 <UsageCount Value="16 3"/>127 <UsageCount Value="160"/> 128 128 </Unit7> 129 129 <Unit8> … … 133 133 <TopLine Value="442"/> 134 134 <CursorPos X="47" Y="455"/> 135 <UsageCount Value="16 3"/>135 <UsageCount Value="160"/> 136 136 </Unit8> 137 137 <Unit9> … … 141 141 <TopLine Value="78"/> 142 142 <CursorPos X="27" Y="86"/> 143 <UsageCount Value="5 5"/>143 <UsageCount Value="52"/> 144 144 </Unit9> 145 145 <Unit10> … … 149 149 <TopLine Value="936"/> 150 150 <CursorPos X="35" Y="948"/> 151 <UsageCount Value="1 3"/>151 <UsageCount Value="10"/> 152 152 </Unit10> 153 153 <Unit11> … … 156 156 <TopLine Value="61"/> 157 157 <CursorPos X="7" Y="68"/> 158 <UsageCount Value="6 5"/>158 <UsageCount Value="62"/> 159 159 </Unit11> 160 160 <Unit12> … … 163 163 <TopLine Value="139"/> 164 164 <CursorPos X="16" Y="146"/> 165 <UsageCount Value="6 5"/>165 <UsageCount Value="62"/> 166 166 </Unit12> 167 167 <Unit13> 168 <Filename Value="E:\Programy\Lazarus\fpc\2.4.0\source\rtl\ objpas\sysutils\sysstr.inc"/>169 <WindowIndex Value="0"/> 170 <TopLine Value=" 934"/>171 <CursorPos X=" 10" Y="947"/>172 <UsageCount Value=" 3"/>168 <Filename Value="E:\Programy\Lazarus\fpc\2.4.0\source\rtl\inc\objpash.inc"/> 169 <WindowIndex Value="0"/> 170 <TopLine Value="153"/> 171 <CursorPos X="8" Y="166"/> 172 <UsageCount Value="5"/> 173 173 </Unit13> 174 174 <Unit14> 175 <Filename Value="E:\Programy\Lazarus\fpc\2.4.0\source\rtl\inc\objpash.inc"/> 176 <WindowIndex Value="0"/> 177 <TopLine Value="153"/> 178 <CursorPos X="8" Y="166"/> 179 <UsageCount Value="8"/> 175 <Filename Value="Produce\UProducerTreeView.pas"/> 176 <UnitName Value="UProducerTreeView"/> 177 <WindowIndex Value="0"/> 178 <TopLine Value="69"/> 179 <CursorPos X="1" Y="82"/> 180 <UsageCount Value="122"/> 180 181 </Unit14> 181 182 <Unit15> 182 <Filename Value=" Produce\UProducerTreeView.pas"/>183 <UnitName Value=" UProducerTreeView"/>184 <WindowIndex Value="0"/> 185 <TopLine Value=" 69"/>186 <CursorPos X="1 " Y="82"/>187 <UsageCount Value=" 125"/>183 <Filename Value="E:\Programy\Lazarus\lcl\comctrls.pp"/> 184 <UnitName Value="ComCtrls"/> 185 <WindowIndex Value="0"/> 186 <TopLine Value="2159"/> 187 <CursorPos X="14" Y="2178"/> 188 <UsageCount Value="8"/> 188 189 </Unit15> 189 190 <Unit16> 190 <Filename Value="E:\Programy\Lazarus\lcl\comctrls.pp"/> 191 <UnitName Value="ComCtrls"/> 192 <WindowIndex Value="0"/> 193 <TopLine Value="2159"/> 194 <CursorPos X="14" Y="2178"/> 195 <UsageCount Value="11"/> 191 <Filename Value="E:\Programy\Lazarus\fpc\2.4.0\source\rtl\objpas\classes\classesh.inc"/> 192 <WindowIndex Value="0"/> 193 <TopLine Value="559"/> 194 <CursorPos X="57" Y="571"/> 195 <UsageCount Value="5"/> 196 196 </Unit16> 197 197 <Unit17> 198 <Filename Value="E:\Programy\Lazarus\fpc\2.4.0\source\rtl\objpas\classes\classesh.inc"/> 199 <WindowIndex Value="0"/> 200 <TopLine Value="559"/> 201 <CursorPos X="57" Y="571"/> 202 <UsageCount Value="8"/> 198 <Filename Value="Produce\UProducerPascal.pas"/> 199 <UnitName Value="UProducerPascal"/> 200 <WindowIndex Value="0"/> 201 <TopLine Value="320"/> 202 <CursorPos X="1" Y="327"/> 203 <UsageCount Value="76"/> 203 204 </Unit17> 204 205 <Unit18> 205 <Filename Value="Produce\UProducerPascal.pas"/> 206 <UnitName Value="UProducerPascal"/> 207 <WindowIndex Value="0"/> 208 <TopLine Value="320"/> 209 <CursorPos X="1" Y="327"/> 210 <UsageCount Value="79"/> 206 <Filename Value="UProject.pas"/> 207 <IsPartOfProject Value="True"/> 208 <UnitName Value="UProject"/> 209 <IsVisibleTab Value="True"/> 210 <EditorIndex Value="9"/> 211 <WindowIndex Value="0"/> 212 <TopLine Value="1"/> 213 <CursorPos X="72" Y="8"/> 214 <UsageCount Value="88"/> 215 <Loaded Value="True"/> 216 <DefaultSyntaxHighlighter Value="Delphi"/> 211 217 </Unit18> 212 218 <Unit19> 213 <Filename Value="UProject.pas"/> 214 <IsPartOfProject Value="True"/> 215 <UnitName Value="UProject"/> 216 <EditorIndex Value="9"/> 217 <WindowIndex Value="0"/> 218 <TopLine Value="227"/> 219 <CursorPos X="1" Y="241"/> 220 <UsageCount Value="54"/> 221 <Loaded Value="True"/> 222 <DefaultSyntaxHighlighter Value="Delphi"/> 219 <Filename Value="E:\Programy\Lazarus\fpc\2.4.0\source\rtl\inc\wstringh.inc"/> 220 <WindowIndex Value="0"/> 221 <TopLine Value="17"/> 222 <CursorPos X="11" Y="30"/> 223 <UsageCount Value="15"/> 223 224 </Unit19> 224 225 <Unit20> 225 <Filename Value="E:\Programy\Lazarus\fpc\2.4.0\source\rtl\inc\wstringh.inc"/>226 <WindowIndex Value="0"/>227 <TopLine Value="17"/>228 <CursorPos X="11" Y="30"/>229 <UsageCount Value="18"/>230 </Unit20>231 <Unit21>232 226 <Filename Value="Compiler\TranspascalCompiler.pas"/> 233 227 <UnitName Value="TranspascalCompiler"/> … … 236 230 <TopLine Value="1"/> 237 231 <CursorPos X="33" Y="1"/> 238 <UsageCount Value=" 19"/>239 <Loaded Value="True"/> 240 </Unit2 1>241 <Unit2 2>232 <UsageCount Value="36"/> 233 <Loaded Value="True"/> 234 </Unit20> 235 <Unit21> 242 236 <Filename Value="Compiler\UCompiler.pas"/> 243 237 <UnitName Value="UCompiler"/> … … 246 240 <TopLine Value="34"/> 247 241 <CursorPos X="62" Y="47"/> 248 <UsageCount Value=" 17"/>249 <Loaded Value="True"/> 250 </Unit2 2>251 <Unit2 3>242 <UsageCount Value="34"/> 243 <Loaded Value="True"/> 244 </Unit21> 245 <Unit22> 252 246 <Filename Value="Compiler\USourceCode.pas"/> 253 247 <UnitName Value="USourceCode"/> … … 256 250 <TopLine Value="711"/> 257 251 <CursorPos X="1" Y="725"/> 258 <UsageCount Value="16"/> 252 <UsageCount Value="33"/> 253 <Loaded Value="True"/> 254 </Unit22> 255 <Unit23> 256 <Filename Value="Compiler\Analyze\UParser.pas"/> 257 <UnitName Value="UParser"/> 258 <EditorIndex Value="6"/> 259 <WindowIndex Value="0"/> 260 <TopLine Value="357"/> 261 <CursorPos X="38" Y="367"/> 262 <UsageCount Value="34"/> 259 263 <Loaded Value="True"/> 260 264 </Unit23> 261 265 <Unit24> 262 <Filename Value="Compiler\Analyze\UParser.pas"/> 263 <UnitName Value="UParser"/> 264 <IsVisibleTab Value="True"/> 265 <EditorIndex Value="6"/> 266 <WindowIndex Value="0"/> 267 <TopLine Value="680"/> 268 <CursorPos X="3" Y="684"/> 269 <UsageCount Value="17"/> 270 <Loaded Value="True"/> 266 <Filename Value="Compiler\Produce\UProducer.pas"/> 267 <UnitName Value="UProducer"/> 268 <WindowIndex Value="0"/> 269 <TopLine Value="1"/> 270 <CursorPos X="15" Y="4"/> 271 <UsageCount Value="6"/> 271 272 </Unit24> 272 273 <Unit25> 273 <Filename Value="Compiler\Produce\UProducer.pas"/>274 <UnitName Value="UProducer"/>275 <WindowIndex Value="0"/>276 <TopLine Value="1"/>277 <CursorPos X="15" Y="4"/>278 <UsageCount Value="9"/>279 </Unit25>280 <Unit26>281 274 <Filename Value="Forms\UProjectManager.pas"/> 282 275 <IsPartOfProject Value="True"/> … … 288 281 <TopLine Value="71"/> 289 282 <CursorPos X="20" Y="76"/> 290 <UsageCount Value=" 38"/>283 <UsageCount Value="72"/> 291 284 <Loaded Value="True"/> 292 285 <LoadedDesigner Value="True"/> 293 286 <DefaultSyntaxHighlighter Value="Delphi"/> 294 </Unit2 6>295 <Unit2 7>287 </Unit25> 288 <Unit26> 296 289 <Filename Value="Forms\UCodeForm.pas"/> 297 290 <IsPartOfProject Value="True"/> … … 303 296 <TopLine Value="7"/> 304 297 <CursorPos X="32" Y="16"/> 305 <UsageCount Value=" 38"/>298 <UsageCount Value="72"/> 306 299 <Loaded Value="True"/> 307 300 <LoadedDesigner Value="True"/> 308 301 <DefaultSyntaxHighlighter Value="Delphi"/> 309 </Unit2 7>310 <Unit2 8>302 </Unit26> 303 <Unit27> 311 304 <Filename Value="Forms\UMessagesForm.pas"/> 312 305 <IsPartOfProject Value="True"/> … … 316 309 <EditorIndex Value="15"/> 317 310 <WindowIndex Value="0"/> 318 <TopLine Value=" 28"/>319 <CursorPos X=" 23" Y="46"/>320 <UsageCount Value=" 38"/>311 <TopLine Value="56"/> 312 <CursorPos X="1" Y="71"/> 313 <UsageCount Value="72"/> 321 314 <Loaded Value="True"/> 322 315 <LoadedDesigner Value="True"/> 323 316 <DefaultSyntaxHighlighter Value="Delphi"/> 324 </Unit2 8>325 <Unit2 9>317 </Unit27> 318 <Unit28> 326 319 <Filename Value="Forms\UCompiledForm.pas"/> 327 320 <IsPartOfProject Value="True"/> … … 334 327 <TopLine Value="5"/> 335 328 <CursorPos X="28" Y="21"/> 336 <UsageCount Value=" 37"/>329 <UsageCount Value="71"/> 337 330 <Loaded Value="True"/> 338 331 <LoadedDesigner Value="True"/> 339 332 <DefaultSyntaxHighlighter Value="Delphi"/> 340 </Unit2 9>341 <Unit 30>333 </Unit28> 334 <Unit29> 342 335 <Filename Value="Forms\UCodeTreeForm.pas"/> 343 336 <IsPartOfProject Value="True"/> … … 349 342 <TopLine Value="1"/> 350 343 <CursorPos X="1" Y="1"/> 351 <UsageCount Value=" 37"/>344 <UsageCount Value="71"/> 352 345 <Loaded Value="True"/> 353 346 <LoadedDesigner Value="True"/> 354 347 <DefaultSyntaxHighlighter Value="Delphi"/> 355 </Unit 30>356 <Unit3 1>348 </Unit29> 349 <Unit30> 357 350 <Filename Value="Compiler\Produce\UProducerTreeView.pas"/> 358 351 <UnitName Value="UProducerTreeView"/> … … 361 354 <TopLine Value="291"/> 362 355 <CursorPos X="54" Y="304"/> 363 <UsageCount Value=" 17"/>364 <Loaded Value="True"/> 365 </Unit3 1>366 <Unit3 2>356 <UsageCount Value="34"/> 357 <Loaded Value="True"/> 358 </Unit30> 359 <Unit31> 367 360 <Filename Value="E:\Programy\Lazarus\components\synedit\synhighlightermulti.pas"/> 368 361 <UnitName Value="SynHighlighterMulti"/> … … 371 364 <TopLine Value="316"/> 372 365 <CursorPos X="14" Y="329"/> 373 <UsageCount Value="17"/> 366 <UsageCount Value="34"/> 367 <Loaded Value="True"/> 368 </Unit31> 369 <Unit32> 370 <Filename Value="E:\Programy\Lazarus\lcl\include\customform.inc"/> 371 <EditorIndex Value="14"/> 372 <WindowIndex Value="0"/> 373 <TopLine Value="1756"/> 374 <CursorPos X="31" Y="1770"/> 375 <UsageCount Value="32"/> 374 376 <Loaded Value="True"/> 375 377 </Unit32> 376 378 <Unit33> 377 <Filename Value="E:\Programy\Lazarus\lcl\include\customform.inc"/> 378 <EditorIndex Value="14"/> 379 <WindowIndex Value="0"/> 380 <TopLine Value="1756"/> 381 <CursorPos X="31" Y="1770"/> 382 <UsageCount Value="15"/> 383 <Loaded Value="True"/> 379 <Filename Value="Common\URegistry.pas"/> 380 <IsPartOfProject Value="True"/> 381 <UnitName Value="URegistry"/> 382 <UsageCount Value="63"/> 384 383 </Unit33> 385 384 <Unit34> 386 <Filename Value="Common\URegistry.pas"/> 387 <IsPartOfProject Value="True"/> 388 <UnitName Value="URegistry"/> 389 <UsageCount Value="29"/> 385 <Filename Value="Common\ULastOpenedList.pas"/> 386 <IsPartOfProject Value="True"/> 387 <UnitName Value="ULastOpenedList"/> 388 <UsageCount Value="63"/> 389 <DefaultSyntaxHighlighter Value="Delphi"/> 390 390 </Unit34> 391 391 <Unit35> 392 <Filename Value=" Common\ULastOpenedList.pas"/>393 <IsPartOfProject Value="True"/> 394 <UnitName Value="U LastOpenedList"/>395 <UsageCount Value=" 29"/>392 <Filename Value="UApplicationInfo.pas"/> 393 <IsPartOfProject Value="True"/> 394 <UnitName Value="UApplicationInfo"/> 395 <UsageCount Value="63"/> 396 396 <DefaultSyntaxHighlighter Value="Delphi"/> 397 397 </Unit35> 398 398 <Unit36> 399 <Filename Value="UApplicationInfo.pas"/>400 <IsPartOfProject Value="True"/>401 <UnitName Value="UApplicationInfo"/>402 <UsageCount Value="29"/>403 <DefaultSyntaxHighlighter Value="Delphi"/>404 </Unit36>405 <Unit37>406 399 <Filename Value="Compiler\Produce\UProducerC.pas"/> 407 400 <UnitName Value="UProducerC"/> … … 410 403 <TopLine Value="288"/> 411 404 <CursorPos X="57" Y="302"/> 412 <UsageCount Value=" 14"/>413 <Loaded Value="True"/> 414 </Unit3 7>415 <Unit3 8>405 <UsageCount Value="31"/> 406 <Loaded Value="True"/> 407 </Unit36> 408 <Unit37> 416 409 <Filename Value="Compiler\Produce\UProducerAsm8051.pas"/> 417 410 <UnitName Value="UProducerAsm8051"/> … … 420 413 <TopLine Value="1"/> 421 414 <CursorPos X="1" Y="1"/> 422 <UsageCount Value=" 13"/>423 <Loaded Value="True"/> 424 </Unit3 8>425 <Unit3 9>415 <UsageCount Value="30"/> 416 <Loaded Value="True"/> 417 </Unit37> 418 <Unit38> 426 419 <Filename Value="Compiler\Produce\UProducerPascal.pas"/> 427 420 <UnitName Value="UProducerPascal"/> … … 430 423 <TopLine Value="99"/> 431 424 <CursorPos X="57" Y="112"/> 432 <UsageCount Value=" 10"/>433 <Loaded Value="True"/> 434 </Unit3 9>425 <UsageCount Value="27"/> 426 <Loaded Value="True"/> 427 </Unit38> 435 428 </Units> 436 429 <JumpHistory Count="30" HistoryIndex="29"> 437 430 <Position1> 438 431 <Filename Value="Compiler\Analyze\UParser.pas"/> 439 <Caret Line=" 814" Column="1" TopLine="799"/>432 <Caret Line="748" Column="78" TopLine="739"/> 440 433 </Position1> 441 434 <Position2> 442 435 <Filename Value="Compiler\Analyze\UParser.pas"/> 443 <Caret Line=" 816" Column="1" TopLine="799"/>436 <Caret Line="690" Column="1" TopLine="677"/> 444 437 </Position2> 445 438 <Position3> 446 439 <Filename Value="Compiler\Analyze\UParser.pas"/> 447 <Caret Line=" 817" Column="1" TopLine="799"/>440 <Caret Line="691" Column="1" TopLine="677"/> 448 441 </Position3> 449 442 <Position4> 450 443 <Filename Value="Compiler\Analyze\UParser.pas"/> 451 <Caret Line=" 820" Column="1" TopLine="799"/>444 <Caret Line="690" Column="1" TopLine="677"/> 452 445 </Position4> 453 446 <Position5> 454 447 <Filename Value="Compiler\Analyze\UParser.pas"/> 455 <Caret Line=" 822" Column="1" TopLine="801"/>448 <Caret Line="695" Column="34" TopLine="677"/> 456 449 </Position5> 457 450 <Position6> 458 451 <Filename Value="Compiler\Analyze\UParser.pas"/> 459 <Caret Line=" 823" Column="1" TopLine="802"/>452 <Caret Line="372" Column="47" TopLine="358"/> 460 453 </Position6> 461 454 <Position7> 462 455 <Filename Value="Compiler\Analyze\UParser.pas"/> 463 <Caret Line=" 824" Column="1" TopLine="803"/>456 <Caret Line="362" Column="1" TopLine="357"/> 464 457 </Position7> 465 458 <Position8> 466 459 <Filename Value="Compiler\Analyze\UParser.pas"/> 467 <Caret Line=" 826" Column="1" TopLine="805"/>460 <Caret Line="363" Column="1" TopLine="357"/> 468 461 </Position8> 469 462 <Position9> 470 463 <Filename Value="Compiler\Analyze\UParser.pas"/> 471 <Caret Line=" 827" Column="1" TopLine="806"/>464 <Caret Line="364" Column="1" TopLine="357"/> 472 465 </Position9> 473 466 <Position10> 474 467 <Filename Value="Compiler\Analyze\UParser.pas"/> 475 <Caret Line=" 835" Column="1" TopLine="822"/>468 <Caret Line="365" Column="1" TopLine="357"/> 476 469 </Position10> 477 470 <Position11> 478 471 <Filename Value="Compiler\Analyze\UParser.pas"/> 479 <Caret Line=" 836" Column="1" TopLine="822"/>472 <Caret Line="366" Column="1" TopLine="357"/> 480 473 </Position11> 481 474 <Position12> 482 475 <Filename Value="Compiler\Analyze\UParser.pas"/> 483 <Caret Line=" 837" Column="1" TopLine="822"/>476 <Caret Line="367" Column="19" TopLine="357"/> 484 477 </Position12> 485 478 <Position13> 486 <Filename Value=" Compiler\Analyze\UParser.pas"/>487 <Caret Line=" 838" Column="1" TopLine="822"/>479 <Filename Value="Forms\UMessagesForm.pas"/> 480 <Caret Line="42" Column="50" TopLine="28"/> 488 481 </Position13> 489 482 <Position14> 490 <Filename Value=" Compiler\Analyze\UParser.pas"/>491 <Caret Line=" 841" Column="1" TopLine="822"/>483 <Filename Value="Forms\UMessagesForm.pas"/> 484 <Caret Line="41" Column="50" TopLine="27"/> 492 485 </Position14> 493 486 <Position15> 494 <Filename Value=" Compiler\Analyze\UParser.pas"/>495 <Caret Line=" 842" Column="1" TopLine="822"/>487 <Filename Value="Forms\UMessagesForm.pas"/> 488 <Caret Line="44" Column="50" TopLine="30"/> 496 489 </Position15> 497 490 <Position16> 498 <Filename Value=" Compiler\Analyze\UParser.pas"/>499 <Caret Line=" 844" Column="1" TopLine="823"/>491 <Filename Value="Forms\UMessagesForm.pas"/> 492 <Caret Line="54" Column="1" TopLine="29"/> 500 493 </Position16> 501 494 <Position17> 502 <Filename Value=" Compiler\Analyze\UParser.pas"/>503 <Caret Line=" 845" Column="1" TopLine="824"/>495 <Filename Value="Forms\UMessagesForm.pas"/> 496 <Caret Line="58" Column="22" TopLine="33"/> 504 497 </Position17> 505 498 <Position18> 506 <Filename Value=" Compiler\Analyze\UParser.pas"/>507 <Caret Line=" 849" Column="1" TopLine="828"/>499 <Filename Value="Forms\UMessagesForm.pas"/> 500 <Caret Line="48" Column="12" TopLine="44"/> 508 501 </Position18> 509 502 <Position19> 510 <Filename Value=" Compiler\Analyze\UParser.pas"/>511 <Caret Line=" 852" Column="1" TopLine="831"/>503 <Filename Value="Forms\UMainForm.pas"/> 504 <Caret Line="116" Column="1" TopLine="115"/> 512 505 </Position19> 513 506 <Position20> 514 <Filename Value=" Compiler\Analyze\UParser.pas"/>515 <Caret Line=" 871" Column="1" TopLine="858"/>507 <Filename Value="Forms\UMainForm.pas"/> 508 <Caret Line="61" Column="1" TopLine="48"/> 516 509 </Position20> 517 510 <Position21> 518 <Filename Value=" Compiler\Analyze\UParser.pas"/>519 <Caret Line=" 874" Column="1" TopLine="858"/>511 <Filename Value="Forms\UMessagesForm.pas"/> 512 <Caret Line="25" Column="22" TopLine="5"/> 520 513 </Position21> 521 514 <Position22> 522 <Filename Value=" Compiler\Analyze\UParser.pas"/>523 <Caret Line=" 875" Column="1" TopLine="858"/>515 <Filename Value="Forms\UMessagesForm.pas"/> 516 <Caret Line="70" Column="23" TopLine="53"/> 524 517 </Position22> 525 518 <Position23> 526 <Filename Value=" Compiler\Analyze\UParser.pas"/>527 <Caret Line=" 876" Column="1" TopLine="858"/>519 <Filename Value="Forms\UMessagesForm.pas"/> 520 <Caret Line="71" Column="1" TopLine="56"/> 528 521 </Position23> 529 522 <Position24> 530 <Filename Value=" Compiler\Analyze\UParser.pas"/>531 <Caret Line=" 877" Column="1" TopLine="858"/>523 <Filename Value="UProject.pas"/> 524 <Caret Line="103" Column="1" TopLine="90"/> 532 525 </Position24> 533 526 <Position25> 534 <Filename Value=" Compiler\Analyze\UParser.pas"/>535 <Caret Line=" 881" Column="1" TopLine="860"/>527 <Filename Value="UProject.pas"/> 528 <Caret Line="104" Column="1" TopLine="90"/> 536 529 </Position25> 537 530 <Position26> 538 <Filename Value=" Compiler\Analyze\UParser.pas"/>539 <Caret Line=" 883" Column="1" TopLine="862"/>531 <Filename Value="UProject.pas"/> 532 <Caret Line="106" Column="1" TopLine="90"/> 540 533 </Position26> 541 534 <Position27> 542 <Filename Value=" Compiler\Analyze\UParser.pas"/>543 <Caret Line=" 884" Column="1" TopLine="863"/>535 <Filename Value="UProject.pas"/> 536 <Caret Line="107" Column="1" TopLine="93"/> 544 537 </Position27> 545 538 <Position28> 546 <Filename Value=" Compiler\Analyze\UParser.pas"/>547 <Caret Line=" 747" Column="15" TopLine="736"/>539 <Filename Value="UProject.pas"/> 540 <Caret Line="108" Column="1" TopLine="93"/> 548 541 </Position28> 549 542 <Position29> 550 <Filename Value=" Compiler\Analyze\UParser.pas"/>551 <Caret Line="1 187" Column="1" TopLine="1174"/>543 <Filename Value="UProject.pas"/> 544 <Caret Line="109" Column="1" TopLine="93"/> 552 545 </Position29> 553 546 <Position30> 554 <Filename Value=" Compiler\Analyze\UParser.pas"/>555 <Caret Line=" 653" Column="11" TopLine="647"/>547 <Filename Value="UProject.pas"/> 548 <Caret Line="111" Column="7" TopLine="94"/> 556 549 </Position30> 557 550 </JumpHistory> … … 601 594 <BreakPoints Count="1"> 602 595 <Item1> 603 <Source Value=" Compiler\Analyze\UParser.pas"/>604 <Line Value=" 690"/>596 <Source Value="Forms\UMessagesForm.pas"/> 597 <Line Value="71"/> 605 598 </Item1> 606 599 </BreakPoints> -
branches/Transpascal/UProject.pas
r66 r69 6 6 7 7 uses 8 Classes, SysUtils, Contnrs, Dialogs, DOM, XMLWrite, XMLRead ;8 Classes, SysUtils, Contnrs, Dialogs, DOM, XMLWrite, XMLRead, FileUtil; 9 9 10 10 type … … 106 106 else NamePart := FileName; 107 107 I := 0; 108 while (I < Items.Count) and ( TProjectNode(Items[I]).Name<> NamePart) do Inc(I);108 while (I < Items.Count) and (ExtractFileNameOnly(TProjectNode(Items[I]).Name) <> NamePart) do Inc(I); 109 109 if I < Items.Count then begin 110 if TProjectNode(Items[I]) is TProjectFile then Result := TProjectFile(Items[I]) 110 if TProjectNode(Items[I]) is TProjectFile then 111 Result := TProjectFile(Items[I]) 111 112 else begin 112 113 Delete(FileName, 1, Length(FileName) + 1);
Note:
See TracChangeset
for help on using the changeset viewer.