Forum > Editor
[solved] file projectintf.pas does not work anymore like it did.
KodeZwerg:
Good day, with help of PascalDragon I've managed to patch some Lazarus files for my own needs.
As of today I got Lazarus 2.3.0 (rev main-2_3-2889-g1b9d3d4cbf) FPC 3.2.2 x86_64-win64-win32/win64 installed.
In above mentioned file I did modified source to this:
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---function TFileDescPascalUnitWithResource.GetInterfaceSource(const Filename, SourceName, ResourceName: string): string;const LE = LineEnding;begin Result:= 'type'+LE +' T'+ResourceName+' = class('+ResourceClass.ClassName+')'+LE +' strict private'+LE +' private'+LE +LE +' public'+LE +LE +' end;'+LE +LE; if DeclareClassVariable then Result := Result + 'var'+LE +' '+ResourceName+': T'+ResourceName+';'+LE +LE;end;After I rebuild the IDE it does not apply my patch anymore, what is needed that it work again please?
(I wanted to have "strict private" line added by default, nothing more nothing less)
KodeZwerg:
suggestions, anyone?
GetMem:
--- Quote from: KodeZwerg on March 05, 2023, 08:55:38 pm ---suggestions, anyone?
--- End quote ---
What is the exact issue? After I made the necessary adjustments to projectintf.pas and rebuild the IDE, the following line is inserted:
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} --- //... TForm1 = class(TForm) strict private //<- this one private public end;
Is not what are you after?
JuhaManninen:
--- Quote from: KodeZwerg on February 27, 2023, 12:02:16 pm ---After I rebuild the IDE it does not apply my patch anymore, what is needed that it work again please?
--- End quote ---
Does not apply your patch anymore?
Do you mean it does not work as expected after your change + rebuild?
I just tested and here it works. The modified contents show when I create a new form (File -> New Form).
KodeZwerg:
--- Quote from: GetMem on March 05, 2023, 09:39:10 pm ---What is the exact issue?
--- End quote ---
I guess I was not clear enough.
My issue is:
--- Quote from: KodeZwerg on February 27, 2023, 12:02:16 pm ---After I rebuild the IDE it does not apply my patch anymore, what is needed that it work again please?
--- End quote ---
Before I did updated my Lazarus to current (or above mentioned) trunk version, when I pressed on new project, selected "Application (LCL)", it added by default the "strict private" line.
Now is doesnt do that anymore and I do wonder why or what I've did wrong, or did Lazarus changed that I need to patch it somewhere else?
Navigation
[0] Message Index
[#] Next page