You can subscribe to this list here.
2001 |
Jan
|
Feb
(32) |
Mar
(98) |
Apr
(26) |
May
(33) |
Jun
(50) |
Jul
(82) |
Aug
(197) |
Sep
(187) |
Oct
(186) |
Nov
(99) |
Dec
(70) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(31) |
Feb
(32) |
Mar
(16) |
Apr
(7) |
May
(10) |
Jun
(6) |
Jul
(11) |
Aug
(39) |
Sep
(24) |
Oct
(54) |
Nov
(13) |
Dec
(135) |
2003 |
Jan
(22) |
Feb
(9) |
Mar
(29) |
Apr
(4) |
May
(40) |
Jun
(52) |
Jul
(8) |
Aug
(33) |
Sep
(111) |
Oct
(25) |
Nov
(40) |
Dec
(47) |
2004 |
Jan
(19) |
Feb
(87) |
Mar
(105) |
Apr
(30) |
May
(40) |
Jun
(11) |
Jul
(88) |
Aug
(23) |
Sep
(16) |
Oct
(16) |
Nov
(13) |
Dec
(13) |
2005 |
Jan
(42) |
Feb
(3) |
Mar
(55) |
Apr
(46) |
May
(74) |
Jun
(23) |
Jul
(10) |
Aug
(69) |
Sep
(15) |
Oct
(49) |
Nov
(148) |
Dec
(168) |
2006 |
Jan
(64) |
Feb
(14) |
Mar
(26) |
Apr
(25) |
May
(26) |
Jun
(9) |
Jul
(21) |
Aug
(5) |
Sep
(11) |
Oct
(25) |
Nov
(8) |
Dec
|
2007 |
Jan
(5) |
Feb
(4) |
Mar
(50) |
Apr
(22) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Thomas M. <tw...@us...> - 2006-05-01 12:12:56
|
Update of /cvsroot/gexperts/gexperts/unstable/Src/Formatter/engine In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6527/unstable/Src/Formatter/engine Modified Files: GX_CodeFormatterSettings.pas Log Message: new feature: You can now specify which settings to use in the first line of the source file: {GXFormatter.config=NameOfConfig} This will temporary change your settrings for this particular file. I found this very usefull when working with a mix of files from different sources with different formatting styles. Index: GX_CodeFormatterSettings.pas =================================================================== RCS file: /cvsroot/gexperts/gexperts/unstable/Src/Formatter/engine/GX_CodeFormatterSettings.pas,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- GX_CodeFormatterSettings.pas 27 Dec 2005 18:38:45 -0000 1.8 +++ GX_CodeFormatterSettings.pas 1 May 2006 12:12:41 -0000 1.9 @@ -159,7 +159,7 @@ SysUtils, GX_CodeFormatterDefaultSettings; -{ TDelForSettings } +{ TCodeFormatterSettings } constructor TCodeFormatterSettings.Create; begin |
From: Thomas M. <tw...@us...> - 2006-05-01 12:12:56
|
Update of /cvsroot/gexperts/gexperts/unstable/Src/Formatter In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6527/unstable/Src/Formatter Modified Files: GX_Formatter.pas Log Message: new feature: You can now specify which settings to use in the first line of the source file: {GXFormatter.config=NameOfConfig} This will temporary change your settrings for this particular file. I found this very usefull when working with a mix of files from different sources with different formatting styles. Index: GX_Formatter.pas =================================================================== RCS file: /cvsroot/gexperts/gexperts/unstable/Src/Formatter/GX_Formatter.pas,v retrieving revision 1.22 retrieving revision 1.23 diff -u -d -r1.22 -r1.23 --- GX_Formatter.pas 7 Jan 2006 19:03:35 -0000 1.22 +++ GX_Formatter.pas 1 May 2006 12:12:41 -0000 1.23 @@ -55,6 +55,9 @@ Breakpoints: ICodeFormatterSaveList; WasBinary: Boolean; i: integer; + TempSettings: TCodeFormatterSettings; + OrigSettings: TCodeFormatterEngineSettings; + FirstLine: string; begin SourceEditor := GxOtaGetCurrentSourceEditor; if not Assigned(SourceEditor) then @@ -63,14 +66,28 @@ if not (IsPascalSourceFile(FileName) or IsDelphiPackage(FileName)) then raise ECodeFormatter.CreateFmt(str_UnsupportedFileTypeS, [ExtractFileName(FileName)]); + TempSettings := nil; FullText := TStringList.Create; try if not GxOtaGetFileAsText(Filename, FullText, WasBinary) then raise ECodeFormatter.CreateFmt(str_UnableToGetContentsS, [FileName]); + if FullText.Count = 0 then + exit; Bookmarks := TBookmarkHandler.Create; Breakpoints := TBreakpointHandler.Create; + FirstLine := FullText[0]; + if SameText(Copy(FirstLine, 1, 20), '{GXFormatter.config=') then begin + FirstLine := Trim(Copy(FirstLine, 21, Length(FirstLine)-21)); + TempSettings := TCodeFormatterSettings.Create; + if TCodeFormatterConfigHandler.GetDefaultConfig(FirstLine, TempSettings) then begin + OrigSettings := FFormatter.Settings.Settings; + FFormatter.Settings.Settings := TempSettings.Settings; + end else + FreeAndNil(TempSettings); + end; + FFormatter.Sourcecode := FullText.Text; if FFormatter.Execute then begin if FullText.Text <> FFormatter.Sourcecode then begin @@ -87,7 +104,12 @@ end; finally - FreeAndNil(FullText) + FreeAndNil(FullText); + if Assigned(TempSettings) then + begin + FreeAndNil(TempSettings); + FFormatter.Settings.Settings := OrigSettings; + end; end; end; |
From: Thomas M. <tw...@us...> - 2006-05-01 12:12:56
|
Update of /cvsroot/gexperts/gexperts/unstable/Src/Formatter/unittests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6527/unstable/Src/Formatter/unittests Modified Files: DelForExTestFiles.pas Log Message: new feature: You can now specify which settings to use in the first line of the source file: {GXFormatter.config=NameOfConfig} This will temporary change your settrings for this particular file. I found this very usefull when working with a mix of files from different sources with different formatting styles. Index: DelForExTestFiles.pas =================================================================== RCS file: /cvsroot/gexperts/gexperts/unstable/Src/Formatter/unittests/DelForExTestFiles.pas,v retrieving revision 1.29 retrieving revision 1.30 diff -u -d -r1.29 -r1.30 --- DelForExTestFiles.pas 1 May 2006 11:23:18 -0000 1.29 +++ DelForExTestFiles.pas 1 May 2006 12:12:41 -0000 1.30 @@ -16,7 +16,6 @@ type TTestTestfiles = class(TTestCase) private - FSettings: TCodeFormatterEngineSettings; FFormatter: TCodeFormatterEngine; procedure TestFile(const _Filename: string; _AllowFaiure: boolean = false); protected @@ -68,7 +67,6 @@ procedure testConstSet; procedure testConstSetWithComment; procedure testConstSetWithCommentAtEnd; - // procedure testGXConfig; end; type @@ -109,11 +107,13 @@ { TTestTestfiles } procedure TTestTestfiles.SetUp; +var + Settings: TCodeFormatterEngineSettings; begin inherited; - FSettings := GetFormatSettings; + Settings := GetFormatSettings; FFormatter := TCodeFormatterEngine.Create; - FFormatter.Settings.Settings := FSettings; + FFormatter.Settings.Settings := Settings; end; procedure TTestTestfiles.TearDown; @@ -346,11 +346,6 @@ TestFile('Formula'); end; -//procedure TTestTestfiles.testGXConfig; -//begin -// TestFile('GXConfig'); -//end; - procedure TTestTestfiles.testAbstractSealedClass; begin TestFile('AbstractSealedClass'); |
From: Thomas M. <tw...@us...> - 2006-05-01 12:03:36
|
Update of /cvsroot/gexperts/gexperts/unstable/Src/Formatter/packagewiz In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32324/unstable/Src/Formatter/packagewiz Modified Files: DelForExOptions-borland.ini Log Message: * removed unsupported settings * set commentfunction to false (not implemented correctly) Index: DelForExOptions-borland.ini =================================================================== RCS file: /cvsroot/gexperts/gexperts/unstable/Src/Formatter/packagewiz/DelForExOptions-borland.ini,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- DelForExOptions-borland.ini 27 Dec 2005 18:38:45 -0000 1.2 +++ DelForExOptions-borland.ini 1 May 2006 12:03:34 -0000 1.3 @@ -1,9 +1,5 @@ [settings] ShowDoneDialog=0 -CapFileName=C:\Program Files\GExperts for Delphi 9\Capitalization.txt -ToolPosition=13948296 -ShortCutFirst=61536 -ShortCutSecond=18 SpaceOperators=3 SpaceColon=2 SpaceSemiColon=2 @@ -17,7 +13,7 @@ UpperNumbers=1 ReservedCase=0 StandDirectivesCase=0 -ChangeIndent=14 +ChangeIndent=1 NoIndentElseIf=0 indentBegin=0 IndentTry=1 @@ -41,7 +37,7 @@ FeedAfterSemiColon=1 StartCommentOut={(*} EndCommentOut={*)} -CommentFunction=1 +CommentFunction=0 CommentUnit=0 WrapLines=1 WrapPosition=81 @@ -50,3 +46,7 @@ AlignVarPos=20 AlignVar=0 FeedRoundTry=2 + +[Capitalization] +Count=0 + |
From: Thomas M. <tw...@us...> - 2006-05-01 11:23:28
|
Update of /cvsroot/gexperts/gexperts/unstable/Src/Formatter/unittests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2012/unstable/Src/Formatter/unittests Modified Files: DelForExTestFiles.pas Log Message: Unit tests now allow for the known failing tests to fail silently. I don't like it that way but unfortunately DUnit does not allow for a "I know it fails but I currently don't care" setting without disabling the tests. Index: DelForExTestFiles.pas =================================================================== RCS file: /cvsroot/gexperts/gexperts/unstable/Src/Formatter/unittests/DelForExTestFiles.pas,v retrieving revision 1.28 retrieving revision 1.29 diff -u -d -r1.28 -r1.29 --- DelForExTestFiles.pas 30 Apr 2006 19:58:46 -0000 1.28 +++ DelForExTestFiles.pas 1 May 2006 11:23:18 -0000 1.29 @@ -18,7 +18,7 @@ private FSettings: TCodeFormatterEngineSettings; FFormatter: TCodeFormatterEngine; - procedure TestFile(const _Filename: string); + procedure TestFile(const _Filename: string; _AllowFaiure: boolean = false); protected function GetFormatSettings: TCodeFormatterEngineSettings; virtual; abstract; function GetResultDir: string; virtual; abstract; @@ -55,7 +55,7 @@ procedure testFormula; procedure testAsmProblem1; procedure testCommentEnd; - procedure testCurlyHalfCommentEnd; + procedure testCurlyHalfCommentEndCurrentlyFails; procedure testIfThenTry; procedure testIfThenElse; procedure testStarCommentAtEol; @@ -68,7 +68,7 @@ procedure testConstSet; procedure testConstSetWithComment; procedure testConstSetWithCommentAtEnd; -// procedure testGXConfig; + // procedure testGXConfig; end; type @@ -122,7 +122,7 @@ FFormatter.Free; end; -procedure TTestTestfiles.TestFile(const _Filename: string); +procedure TTestTestfiles.TestFile(const _Filename: string; _AllowFaiure: boolean); var Filename: string; InFile: string; @@ -150,7 +150,8 @@ except st.Text := OutString; st.SaveToFile('unittests\testcases\output-' + GetResultDir + '\' + Filename); - raise; + if not _AllowFaiure then + raise; end; finally st.Free; @@ -224,7 +225,7 @@ procedure TTestTestfiles.testNestedClassCurrentlyFails; begin - Testfile('NestedClass'); + Testfile('NestedClass', true); end; procedure TTestTestfiles.testOperatorOverloading; @@ -367,7 +368,7 @@ procedure TTestTestfiles.testClassPropertiesCurrentlyFails; begin - TestFile('ClassProperties'); + TestFile('ClassProperties', true); end; procedure TTestTestfiles.testCommentEnd; @@ -375,9 +376,9 @@ TestFile('CommentEnd'); end; -procedure TTestTestfiles.testCurlyHalfCommentEnd; +procedure TTestTestfiles.testCurlyHalfCommentEndCurrentlyFails; begin - TestFile('CurlyHalfCommentEnd'); + TestFile('CurlyHalfCommentEnd', true); end; { TTestFilesHeadworkFormatting } |
From: Thomas M. <tw...@us...> - 2006-05-01 11:23:28
|
Update of /cvsroot/gexperts/gexperts/unstable/Src/Formatter/engine In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2012/unstable/Src/Formatter/engine Modified Files: GX_CodeFormatterFormatter.pas Log Message: Unit tests now allow for the known failing tests to fail silently. I don't like it that way but unfortunately DUnit does not allow for a "I know it fails but I currently don't care" setting without disabling the tests. Index: GX_CodeFormatterFormatter.pas =================================================================== RCS file: /cvsroot/gexperts/gexperts/unstable/Src/Formatter/engine/GX_CodeFormatterFormatter.pas,v retrieving revision 1.18 retrieving revision 1.19 diff -u -d -r1.18 -r1.19 --- GX_CodeFormatterFormatter.pas 1 May 2006 10:54:20 -0000 1.18 +++ GX_CodeFormatterFormatter.pas 1 May 2006 11:23:18 -0000 1.19 @@ -40,7 +40,6 @@ procedure CheckBlankLinesAroundProc; procedure PutCommentBefore(aComment: PChar); procedure FormatAsm(NTmp: integer); - property Settings: TCodeFormatterSettings read FSettings write FSettings; procedure AdjustSpacing(_CurrentToken, _PrevToken: TPascalToken; _TokenIdx: Integer); {: return token with index Idx or nil if out of bounds } @@ -61,6 +60,8 @@ function AssertLineFeedAfter(StartPos: Integer): TLineFeed; {: This function does the actual formatting } procedure doExecute(ATokens: TOCollection); + + property Settings: TCodeFormatterSettings read FSettings write FSettings; public constructor Create(ASettings: TCodeFormatterSettings); destructor Destroy; override; @@ -1063,8 +1064,7 @@ // the StackStack is used to preserve indenting over IFDEF/ELSE/ENDIF statments StackStack := TCodeFormatterStackStack.Create; FTokenIdx := 0; - while FTokenIdx < FTokens.Count do begin - FCurrentToken := GetToken(FTokenIdx); + while GetToken(FTokenIdx, FCurrentToken) do begin CheckIndent; Inc(FTokenIdx); end; |
From: Thomas M. <tw...@us...> - 2006-05-01 10:54:27
|
Update of /cvsroot/gexperts/gexperts/unstable/Src/Formatter/engine In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12537/unstable/Src/Formatter/engine Modified Files: GX_CodeFormatterFormatter.pas GX_CodeFormatterTokens.pas Log Message: For now giving up on the asm testcase. It apparently hasn't caused any problems so far anyway. Index: GX_CodeFormatterFormatter.pas =================================================================== RCS file: /cvsroot/gexperts/gexperts/unstable/Src/Formatter/engine/GX_CodeFormatterFormatter.pas,v retrieving revision 1.17 retrieving revision 1.18 diff -u -d -r1.17 -r1.18 --- GX_CodeFormatterFormatter.pas 30 Apr 2006 19:58:46 -0000 1.17 +++ GX_CodeFormatterFormatter.pas 1 May 2006 10:54:20 -0000 1.18 @@ -373,6 +373,8 @@ end; end; +// When we enter this method FCurrentToken is 'asm' and FCurrentRType os rtAsm + procedure TCodeFormatterFormatter.FormatAsm(NTmp: integer); begin // remove var / type stuff @@ -385,8 +387,8 @@ FStack.Pop; DecPrevLineIndent; end; - // twm: Why push it on the stack? FStack.Push(FCurrentRType, 0); + // twm: now we handle all asm statements until we hit an 'end' // rather ugly FCurrentToken := GetToken(FTokenIdx); Index: GX_CodeFormatterTokens.pas =================================================================== RCS file: /cvsroot/gexperts/gexperts/unstable/Src/Formatter/engine/GX_CodeFormatterTokens.pas,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- GX_CodeFormatterTokens.pas 30 Apr 2006 19:58:46 -0000 1.6 +++ GX_CodeFormatterTokens.pas 1 May 2006 10:54:21 -0000 1.7 @@ -17,12 +17,12 @@ TPascalToken = class public constructor Create; - function WordType: TWordType; virtual; abstract; + function GetWordType: TWordType; virtual; abstract; procedure GetLength(var ALength: Integer); virtual; abstract; function Space(ASpace: TSpace): Boolean; virtual; - function ReservedType: TReservedType; virtual; abstract; - procedure SetSpace(ASpace: TSpaceSet; AState: Boolean); virtual; + function GetReservedType: TReservedType; virtual; abstract; procedure SetReservedType(AReservedType: TReservedType); virtual; + procedure SetSpace(ASpace: TSpaceSet; AState: Boolean); virtual; {: @returns the object's content } function GetString: string; virtual; abstract; (*: changes "// <comment>" to "{//<comment>}" used for preventing a @@ -34,7 +34,11 @@ procedure SetExpression(const AExpression: string); virtual; procedure SetCase(ACase: TCase); virtual; function GetCase: TCase; virtual; + property ExpressionCase: TCase read GetCase write SetCase; + property ReservedType: TReservedType read GetReservedType write SetReservedType; + property WordType: TWordType read GetWordType; + property Content: string read GetString; end; TLineFeed = class(TPascalToken) @@ -45,11 +49,11 @@ FOldNoOfSpaces: Integer; FWrapped: Boolean; constructor Create(AOldnSpaces: Integer; ASpacePerIndent: Integer); - function WordType: TWordType; override; + function GetWordType: TWordType; override; procedure SetIndent(Value: Integer); procedure IncIndent(Value: Integer); procedure GetLength(var ALength: Integer); override; - function ReservedType: TReservedType; override; + function GetReservedType: TReservedType; override; {: @returns a string with FNoOfSpaces spaces } function GetString: string; override; end; @@ -70,8 +74,8 @@ {: @returns <spaces><the expression><spaces> } function GetString: string; override; procedure GetLength(var ALength: Integer); override; - function WordType: TWordType; override; - function ReservedType: TReservedType; override; + function GetWordType: TWordType; override; + function GetReservedType: TReservedType; override; function GetExpression(out AExpression: string): Boolean; override; procedure SetExpression(const AExpression: string); override; procedure SetCase(ACase: TCase); override; @@ -265,7 +269,7 @@ FExpression := AExpression end; -function TExpression.WordType: TWordType; +function TExpression.GetWordType: TWordType; begin Result := FWordType; end; @@ -281,7 +285,7 @@ Result := (ASpace in FSpaceType); end; -function TExpression.ReservedType: TReservedType; +function TExpression.GetReservedType: TReservedType; begin Result := FReservedType; end; @@ -366,12 +370,12 @@ ALength := 0; end; -function TLineFeed.WordType: TWordType; +function TLineFeed.GetWordType: TWordType; begin Result := wtLineFeed; end; -function TLineFeed.ReservedType: TReservedType; +function TLineFeed.GetReservedType: TReservedType; begin Result := rtLineFeed; end; |
From: Thomas M. <tw...@us...> - 2006-05-01 10:54:26
|
Update of /cvsroot/gexperts/gexperts/unstable/Src/Formatter/unittests/testcases/expected-borland In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12537/unstable/Src/Formatter/unittests/testcases/expected-borland Modified Files: testfile_asm.pas Log Message: For now giving up on the asm testcase. It apparently hasn't caused any problems so far anyway. Index: testfile_asm.pas =================================================================== RCS file: /cvsroot/gexperts/gexperts/unstable/Src/Formatter/unittests/testcases/expected-borland/testfile_asm.pas,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- testfile_asm.pas 11 Mar 2006 13:23:55 -0000 1.2 +++ testfile_asm.pas 1 May 2006 10:54:21 -0000 1.3 @@ -6,13 +6,11 @@ procedure Test; begin - asm - nop + asm nop end; end; initialization - asm - nop + asm nop end; end. |
From: Thomas M. <tw...@us...> - 2006-05-01 10:54:24
|
Update of /cvsroot/gexperts/gexperts/unstable/Src/Formatter/unittests/testcases/expected-default In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12537/unstable/Src/Formatter/unittests/testcases/expected-default Modified Files: testfile_asm.pas Log Message: For now giving up on the asm testcase. It apparently hasn't caused any problems so far anyway. Index: testfile_asm.pas =================================================================== RCS file: /cvsroot/gexperts/gexperts/unstable/Src/Formatter/unittests/testcases/expected-default/testfile_asm.pas,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- testfile_asm.pas 11 Mar 2006 13:23:55 -0000 1.2 +++ testfile_asm.pas 1 May 2006 10:54:21 -0000 1.3 @@ -6,13 +6,9 @@ procedure Test; begin - asm - nop - end; + asm nop end; end; initialization - asm - nop - end; + asm nop end; end. |
From: Thomas M. <tw...@us...> - 2006-05-01 10:54:24
|
Update of /cvsroot/gexperts/gexperts/unstable/Src/Formatter/unittests/testcases/expected-headwork In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12537/unstable/Src/Formatter/unittests/testcases/expected-headwork Modified Files: testfile_asm.pas Log Message: For now giving up on the asm testcase. It apparently hasn't caused any problems so far anyway. Index: testfile_asm.pas =================================================================== RCS file: /cvsroot/gexperts/gexperts/unstable/Src/Formatter/unittests/testcases/expected-headwork/testfile_asm.pas,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- testfile_asm.pas 11 Mar 2006 13:23:56 -0000 1.2 +++ testfile_asm.pas 1 May 2006 10:54:21 -0000 1.3 @@ -6,13 +6,11 @@ procedure Test; begin - asm - nop + asm nop end; end; initialization - asm - nop + asm nop end; end. |
From: Thomas M. <tw...@us...> - 2006-05-01 10:54:24
|
Update of /cvsroot/gexperts/gexperts/unstable/Src/Formatter/unittests/testcases/expected-twm In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12537/unstable/Src/Formatter/unittests/testcases/expected-twm Modified Files: testfile_asm.pas Log Message: For now giving up on the asm testcase. It apparently hasn't caused any problems so far anyway. Index: testfile_asm.pas =================================================================== RCS file: /cvsroot/gexperts/gexperts/unstable/Src/Formatter/unittests/testcases/expected-twm/testfile_asm.pas,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- testfile_asm.pas 11 Mar 2006 13:23:56 -0000 1.1 +++ testfile_asm.pas 1 May 2006 10:54:21 -0000 1.2 @@ -6,13 +6,9 @@ procedure Test; begin - asm - nop - end; + asm nop end; end; initialization - asm - nop - end; + asm nop end; end. |
From: Thomas M. <tw...@us...> - 2006-04-30 19:58:54
|
Update of /cvsroot/gexperts/gexperts/unstable/Src/Formatter/engine In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27732/unstable/Src/Formatter/engine Modified Files: GX_CodeFormatterFormatter.pas GX_CodeFormatterTokens.pas Log Message: some refactoring to get rid of all these nested procedures that access variables of the outer procedure Index: GX_CodeFormatterFormatter.pas =================================================================== RCS file: /cvsroot/gexperts/gexperts/unstable/Src/Formatter/engine/GX_CodeFormatterFormatter.pas,v retrieving revision 1.16 retrieving revision 1.17 diff -u -d -r1.16 -r1.17 --- GX_CodeFormatterFormatter.pas 12 Mar 2006 21:02:59 -0000 1.16 +++ GX_CodeFormatterFormatter.pas 30 Apr 2006 19:58:46 -0000 1.17 @@ -22,9 +22,13 @@ FSettings: TCodeFormatterSettings; FTokens: TOCollection; FTokenIdx: Integer; + FPrevToken: TPascalToken; + FCurrentToken: TPascalToken; + FCurrentRType: TReservedType; FPrevLine: TLineFeed; FHasAligned: Boolean; FStack: TCodeFormatterStack; + FLastPopResType: TReservedType; procedure UppercaseCompilerDirective(_Token: TPascalToken); [...1558 lines suppressed...] @@ -1125,14 +1135,14 @@ K2 := 0; HasInserted := False; while (k >= J) and not HasInserted do begin - if (TPascalToken(FTokens.Items[k]).ReservedType in [rtThen, rtDo]) - or ((TPascalToken(FTokens.Items[k]).ReservedType = rtElse) - and (TPascalToken(FTokens.Items[k + 1]).ReservedType <> rtIf)) then begin + if (GetToken(k).ReservedType in [rtThen, rtDo]) + or (GetToken(k).ReservedType = rtElse) + and (GetToken(k + 1).ReservedType <> rtIf) then begin InsertLinefeed(k + 1); TokenIdx := J; end; - if (K2 = 0) and (TPascalToken(FTokens.Items[k]).Space(spAfter) or - TPascalToken(FTokens.Items[k + 1]).Space(spBefore)) then + if (K2 = 0) and (GetToken(k).Space(spAfter) or + GetToken(k + 1).Space(spBefore)) then K2 := k + 1; Dec(k); end; Index: GX_CodeFormatterTokens.pas =================================================================== RCS file: /cvsroot/gexperts/gexperts/unstable/Src/Formatter/engine/GX_CodeFormatterTokens.pas,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- GX_CodeFormatterTokens.pas 19 Feb 2006 21:26:50 -0000 1.5 +++ GX_CodeFormatterTokens.pas 30 Apr 2006 19:58:46 -0000 1.6 @@ -26,7 +26,9 @@ {: @returns the object's content } function GetString: string; virtual; abstract; (*: changes "// <comment>" to "{//<comment>}" used for preventing a - begin moved from the next line to become commented out *) + begin moved from the next line to become commented out + @param ACommChar is one of '{', '(' or '/' specifying the new comment type + @returs true if token is a comment, false otherwise *) function ChangeComment(ACommChar: char): Boolean; function GetExpression(out AExpression: string): Boolean; virtual; procedure SetExpression(const AExpression: string); virtual; |
From: Thomas M. <tw...@us...> - 2006-04-30 19:58:54
|
Update of /cvsroot/gexperts/gexperts/unstable/Src/Formatter/unittests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27732/unstable/Src/Formatter/unittests Modified Files: DelForExTestFiles.pas Log Message: some refactoring to get rid of all these nested procedures that access variables of the outer procedure Index: DelForExTestFiles.pas =================================================================== RCS file: /cvsroot/gexperts/gexperts/unstable/Src/Formatter/unittests/DelForExTestFiles.pas,v retrieving revision 1.27 retrieving revision 1.28 diff -u -d -r1.27 -r1.28 --- DelForExTestFiles.pas 12 Mar 2006 21:03:05 -0000 1.27 +++ DelForExTestFiles.pas 30 Apr 2006 19:58:46 -0000 1.28 @@ -68,6 +68,7 @@ procedure testConstSet; procedure testConstSetWithComment; procedure testConstSetWithCommentAtEnd; +// procedure testGXConfig; end; type @@ -344,6 +345,11 @@ TestFile('Formula'); end; +//procedure TTestTestfiles.testGXConfig; +//begin +// TestFile('GXConfig'); +//end; + procedure TTestTestfiles.testAbstractSealedClass; begin TestFile('AbstractSealedClass'); |
From: Erik B. <eb...@us...> - 2006-04-25 22:41:44
|
Update of /cvsroot/gexperts/gexperts/unstable/Src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19554/Src Modified Files: GX_About.dfm Log Message: Release version 1.30 non-beta tweaks Index: GX_About.dfm =================================================================== RCS file: /cvsroot/gexperts/gexperts/unstable/Src/GX_About.dfm,v retrieving revision 1.17 retrieving revision 1.18 diff -u -d -r1.17 -r1.18 --- GX_About.dfm 10 Aug 2005 06:44:32 -0000 1.17 +++ GX_About.dfm 25 Apr 2006 22:41:29 -0000 1.18 @@ -140,6 +140,7 @@ Font.Style = [] ParentColor = False ParentFont = False + Visible = False end object lblPreRelease2: TLabel Left = 460 @@ -157,6 +158,7 @@ Font.Style = [] ParentColor = False ParentFont = False + Visible = False end object pnlContributors: TPanel Left = 350 |
From: Erik B. <eb...@us...> - 2006-04-25 22:41:34
|
Update of /cvsroot/gexperts/gexperts/unstable In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19554 Modified Files: Readme.txt Log Message: Release version 1.30 non-beta tweaks Index: Readme.txt =================================================================== RCS file: /cvsroot/gexperts/gexperts/unstable/Readme.txt,v retrieving revision 1.104 retrieving revision 1.105 diff -u -d -r1.104 -r1.105 --- Readme.txt 7 Apr 2006 21:31:26 -0000 1.104 +++ Readme.txt 25 Apr 2006 22:41:28 -0000 1.105 @@ -1,4 +1,4 @@ -GExperts 1.30 Beta 4 +GExperts 1.30 Open Source Programming Tools for Delphi and C++Builder Source code, the FAQ, and the latest news are available at: @@ -105,7 +105,7 @@ CHANGE LOG ---------------------- -VERSION 1.30 (April 2006?) +VERSION 1.30 (April 2006) - General: Added support for Delphi 2006. Better syntax highlighting support for C#, HTML, and XML (Erik) - Open File: New tool to quickly search for and open files in the project, |
From: Erik B. <eb...@us...> - 2006-04-17 06:13:44
|
Update of /cvsroot/gexperts/gexperts/unstable/Src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10207/Src Modified Files: GX_ActionBroker.pas GX_Backup.pas GX_CompRename.pas GX_CompsToCode.pas GX_EditorChangeServices.pas GX_ExpertManager.pas GX_FeedbackWizard.pas GX_FileScanner.pas Log Message: Remove some unused code Fix a couple of code paths Index: GX_ActionBroker.pas =================================================================== RCS file: /cvsroot/gexperts/gexperts/unstable/Src/GX_ActionBroker.pas,v retrieving revision 1.23 retrieving revision 1.24 diff -u -d -r1.23 -r1.24 --- GX_ActionBroker.pas 14 Feb 2006 12:29:34 -0000 1.23 +++ GX_ActionBroker.pas 17 Apr 2006 06:13:41 -0000 1.24 @@ -217,6 +217,7 @@ function TGxActionBroker.RegisterAction(Action: TContainedAction): IGxAction; begin + Result := nil; Assert(False, 'Unimplemented function: TGxActionBroker.RegisterAction'); end; Index: GX_CompRename.pas =================================================================== RCS file: /cvsroot/gexperts/gexperts/unstable/Src/GX_CompRename.pas,v retrieving revision 1.26 retrieving revision 1.27 diff -u -d -r1.26 -r1.27 --- GX_CompRename.pas 5 Feb 2006 01:28:13 -0000 1.26 +++ GX_CompRename.pas 17 Apr 2006 06:13:41 -0000 1.27 @@ -212,7 +212,9 @@ function TfmCompRename.GetComponentProperty(Index: Integer): WideString; begin if (Index >=0) and (Index < FProperties.Count) then - Result := (FProperties[Index] as TEdit).Text; + Result := (FProperties[Index] as TEdit).Text + else + raise Exception.Create('Invalid property index in TfmCompRename.GetComponentProperty'); end; constructor TfmCompRename.Create(Owner: TComponent); @@ -749,6 +751,7 @@ FoundName: WideString; begin Reason := ''; + FoundName := ''; Result := IsValidIdent(NewName); if not Result then Reason := InalidIdent; Index: GX_ExpertManager.pas =================================================================== RCS file: /cvsroot/gexperts/gexperts/unstable/Src/GX_ExpertManager.pas,v retrieving revision 1.30 retrieving revision 1.31 diff -u -d -r1.30 -r1.31 --- GX_ExpertManager.pas 21 Jan 2006 21:05:58 -0000 1.30 +++ GX_ExpertManager.pas 17 Apr 2006 06:13:41 -0000 1.31 @@ -129,12 +129,6 @@ GX_GExperts, GX_GxUtils, GX_GenericUtils, GX_OtaUtils, GX_ConfigurationInfo, GX_MessageBox, GX_SharedImages, GX_IdeUtils; -const - // Do not localize any of the lines below. - UnknownExpertName = 'Unknown Expert'; - UnknownExpertFileName = 'Unknown'; - UnknownExpert = UnknownExpertName + ',' + UnknownExpertFileName + ',0'; - type TGxExpertState = (gesCurrentlyEnabled, gesNextTimeEnabled, gesCurrentlyDisabled, gesNextTimeDisabled, @@ -173,8 +167,6 @@ end; procedure TfmExpertManager.actExpertDisableExecute(Sender: TObject); -resourcestring - SCouldNotDisable = 'The expert could not be disabled.'; begin Assert(lvExperts.Selected <> nil); Index: GX_CompsToCode.pas =================================================================== RCS file: /cvsroot/gexperts/gexperts/unstable/Src/GX_CompsToCode.pas,v retrieving revision 1.31 retrieving revision 1.32 diff -u -d -r1.31 -r1.32 --- GX_CompsToCode.pas 12 Nov 2005 11:42:26 -0000 1.31 +++ GX_CompsToCode.pas 17 Apr 2006 06:13:41 -0000 1.32 @@ -126,7 +126,6 @@ CFmtCPPClear = '%s->Clear();'; CFmtCPPAssign = '%s = %s;'; CFmtCPPEnd = ''; - CFmtCPPActivePage = '%s->%s = %s;'; CFmtCPPWithAdd = ''; CFmtCPPPointerDeclaration = ' %s *%s = %s->%s->Add();'; CFmtCPPSelf = 'this'; @@ -146,7 +145,6 @@ CFmtPasAdd = ' %s.Add(%s);'; CFmtPasAssign = ' %s := %s;'; CFmtPasEnd = ' end;'; - CFmtPasActivePage = ' %s.%s := %s;'; CFmtPasWithAdd = ' with %s.Add do begin '; CFmtPasPointerDeclaration = ''; CFmtPasSelf = 'Self'; @@ -166,7 +164,6 @@ CFmtClear: string; CFmtAssign: string; CFmtEnd: string; - CFmtActivePage: string; CFmtWithAdd: string; CFmtPointerDeclaration: string; CFmtSelf: string; @@ -343,7 +340,6 @@ CFmtClear := CFmtPasClear; CFmtAssign := CFmtPasAssign; CFmtEnd := CFmtPasEnd; - CFmtActivePage := CFmtPasActivePage; CFmtWithAdd := CFmtPasWithAdd; CFmtPointerDeclaration := CFmtPasPointerDeclaration; CFmtSelf := CFmtPasSelf; @@ -364,7 +360,6 @@ CFmtClear := CFmtCPPClear; CFmtAssign := CFmtCPPAssign; CFmtEnd := CFmtCPPEnd; - CFmtActivePage := CFmtCPPActivePage; CFmtWithAdd := CFmtCPPWithAdd; CFmtPointerDeclaration := CFmtCPPPointerDeclaration; CFmtSelf := CFmtCPPSelf; Index: GX_FileScanner.pas =================================================================== RCS file: /cvsroot/gexperts/gexperts/unstable/Src/GX_FileScanner.pas,v retrieving revision 1.13 retrieving revision 1.14 diff -u -d -r1.13 -r1.14 --- GX_FileScanner.pas 8 Mar 2006 20:46:46 -0000 1.13 +++ GX_FileScanner.pas 17 Apr 2006 06:13:41 -0000 1.14 @@ -124,8 +124,6 @@ uses SysUtils, Contnrs, GX_GenericUtils; resourcestring - SAllString = '<All>'; - SNoneString = '<None>'; SUnknown = 'Unknown'; SImplementationNotFound = 'Implementation section not found.'; @@ -482,7 +480,6 @@ i, j: Integer; NewName, TmpName, ProcClassAdd, ClassName: string; BraceCountDelta: Integer; - TemplateArgs: string; BeginProcHeaderPosition: Longint; ProcLine: string; ProcName, ProcReturnType: string; @@ -619,7 +616,7 @@ // what we have in front of the :: is the end of a specialization: // ClassName<x, y, z>::Function if FCParser.RunID = ctkGreater then - TemplateArgs := SearchForTemplateArgs; + SearchForTemplateArgs; ProcClass := FCParser.RunToken + ProcClass; if ClassName = '' then ClassName := FCParser.RunToken; @@ -650,7 +647,7 @@ // Handle the possibility of template specifications and // do not include them in the return type if FCParser.RunID = ctkGreater then - TemplateArgs := SearchForTemplateArgs; + SearchForTemplateArgs; if FCParser.RunID = ctktemplate then Continue; if FCParser.RunID in [ctkcrlf, ctkspace] then Index: GX_EditorChangeServices.pas =================================================================== RCS file: /cvsroot/gexperts/gexperts/unstable/Src/GX_EditorChangeServices.pas,v retrieving revision 1.46 retrieving revision 1.47 diff -u -d -r1.46 -r1.47 --- GX_EditorChangeServices.pas 29 Aug 2005 00:24:22 -0000 1.46 +++ GX_EditorChangeServices.pas 17 Apr 2006 06:13:41 -0000 1.47 @@ -177,14 +177,11 @@ procedure BeforeSave; procedure Destroyed; procedure Modified; - protected // IOTAModuleNotifier function CheckOverwrite: Boolean; procedure ModuleRenamed(const NewName: string); - protected // IGxModuleNotifier function GetAssociatedModule: IOTAModule; - protected // IGxNotifierUninstallation procedure UninstallNotifier; public Index: GX_Backup.pas =================================================================== RCS file: /cvsroot/gexperts/gexperts/unstable/Src/GX_Backup.pas,v retrieving revision 1.64 retrieving revision 1.65 diff -u -d -r1.64 -r1.65 --- GX_Backup.pas 21 Jan 2006 21:07:00 -0000 1.64 +++ GX_Backup.pas 17 Apr 2006 06:13:41 -0000 1.65 @@ -652,7 +652,6 @@ resourcestring SFileExists = 'File %s already exists, do you want to overwrite this file?'; SDirectoryDoesNotExist = 'Directory %s does not exist, do you want to create this directory?'; - SBackupComplete = 'The backup operation is complete.'; const ZipExtension = '.zip'; // Do not localize. var Index: GX_FeedbackWizard.pas =================================================================== RCS file: /cvsroot/gexperts/gexperts/unstable/Src/GX_FeedbackWizard.pas,v retrieving revision 1.24 retrieving revision 1.25 diff -u -d -r1.24 -r1.25 --- GX_FeedbackWizard.pas 26 Jan 2006 05:17:34 -0000 1.24 +++ GX_FeedbackWizard.pas 17 Apr 2006 06:13:41 -0000 1.25 @@ -263,8 +263,6 @@ 'to Visual Basic so I can write Outlook email viruses. I would '+ 'also like to offer you a job that includes a huge salary and lots of ' + 'paid vacation time.'; - DetailsExample = - ''; StepsExample = '1. Open %s from the start menu' + sLineBreak + '2. Turn on the GExperts editor toolbar from the GExperts Configuration dialog' + sLineBreak + @@ -274,10 +272,6 @@ '6. Save the GExperts settings and look at the editor window' + sLineBreak + '7. The separators are missing from the toolbar' + sLineBreak + '8. Re-align the toolbar to the Top, and the separators appear again'; - ConfigurationExample = - ''; - ReportExample = - ''; var Lines: TStrings; begin |
From: Erik B. <eb...@us...> - 2006-04-17 06:10:33
|
Update of /cvsroot/gexperts/gexperts/unstable/Src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7878/Src Modified Files: GX_GetIdeVersion.pas GX_MacroLibrary.pas GX_MacroParser.pas GX_MessageDialog.pas GX_PeInfo.pas GX_PeInformation.pas GX_ProcedureList.pas GX_SourceExportOptions.pas Log Message: Remove some unused code Fix a couple of code paths Index: GX_MacroLibrary.pas =================================================================== RCS file: /cvsroot/gexperts/gexperts/unstable/Src/GX_MacroLibrary.pas,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- GX_MacroLibrary.pas 26 Jan 2006 10:34:10 -0000 1.9 +++ GX_MacroLibrary.pas 17 Apr 2006 06:10:26 -0000 1.10 @@ -478,9 +478,6 @@ end; end; -const - InvalidIndex = -1; - constructor TfmMacroLibrary.Create(AOwner: TComponent); resourcestring SLoadingFailed = 'Loading of stored macros failed.'; Index: GX_PeInfo.pas =================================================================== RCS file: /cvsroot/gexperts/gexperts/unstable/Src/GX_PeInfo.pas,v retrieving revision 1.15 retrieving revision 1.16 diff -u -d -r1.15 -r1.16 --- GX_PeInfo.pas 31 May 2005 18:46:45 -0000 1.15 +++ GX_PeInfo.pas 17 Apr 2006 06:10:26 -0000 1.16 @@ -284,41 +284,13 @@ end; function TPEFileInfo.IntToNum(Num: Integer): string; - - function IntToHex(IntVal: Integer): AnsiString; - type - TIntegerCast = packed array[0..SizeOf(Integer)-1] of Byte; - const - HexTransform: array[$0..$F] of Char = - ('0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'); - Width = 16; - var - i: Integer; - SIndex: Integer; - begin - SetLength(Result, Width); - FillChar(PChar(Result)^, Width, '0'); - SIndex := Length(Result); - for i := 0 to SizeOf(Integer)-1 do - begin - Result[SIndex] := HexTransform[TIntegerCast(IntVal)[i] and $0F]; - Dec(SIndex); - Result[SIndex] := HexTransform[(TIntegerCast(IntVal)[i] shr 4) and $0F]; - Dec(SIndex); - end; - end; - const // Duplicated here for use outside of GExperts GXHexPrefix = {$IFDEF GX_BCB}'0x'{$ELSE}'$'{$ENDIF}; begin try case FNumberType of ntDecimal: Result := IntToStr(Num); - {$IFDEF LEADING0} - ntHex: Result := IntToHex(Num); - {$ELSE} ntHex: Result := Format(GXHexPrefix+'%x', [Num]); - {$ENDIF LEADING0} end; except on E: EConvertError do @@ -787,7 +759,6 @@ SSubWinConsole = 'Windows console subsystem required'; SSubOS2Console = 'OS/2 console subsystem required'; SSubPosix = 'POSIX console subsystem required'; - SSubNativeDriver = 'Native Windows (Win9X driver)'; SSubCEGui = 'Windows CE GUI'; SSubEfiApp = 'EFI application'; SSubEBSDriver = 'EFI boot service driver'; Index: GX_PeInformation.pas =================================================================== RCS file: /cvsroot/gexperts/gexperts/unstable/Src/GX_PeInformation.pas,v retrieving revision 1.39 retrieving revision 1.40 diff -u -d -r1.39 -r1.40 --- GX_PeInformation.pas 8 Dec 2005 05:39:42 -0000 1.39 +++ GX_PeInformation.pas 17 Apr 2006 06:10:26 -0000 1.40 @@ -440,7 +440,6 @@ procedure TfmPeInformation.actFilePrintExecute(Sender: TObject); resourcestring SPeInfoFor = 'PE Information for '; - SFile = 'File: '; SMsDosHeader = 'MS-DOS Header'; SPeHeader = 'PE Header'; SPeOptionalHeader = 'PE Optional Header'; Index: GX_MacroParser.pas =================================================================== RCS file: /cvsroot/gexperts/gexperts/unstable/Src/GX_MacroParser.pas,v retrieving revision 1.25 retrieving revision 1.26 diff -u -d -r1.25 -r1.26 --- GX_MacroParser.pas 29 Dec 2005 06:42:53 -0000 1.25 +++ GX_MacroParser.pas 17 Apr 2006 06:10:26 -0000 1.26 @@ -67,7 +67,6 @@ constructor Create; destructor Destroy; override; procedure InitSource(AScope: TSourceScope); virtual; - procedure ResetPos; virtual; // Lexer methods procedure Next; procedure NextNoJunk; @@ -232,11 +231,6 @@ FLexer.Origin := FMemStream.Memory; end; -procedure TBasicSourceParser.ResetPos; -begin - FLexer.Origin := FMemStream.Memory; -end; - function TBasicSourceParser.GetToken: string; begin Result := FLexer.Token; @@ -661,7 +655,6 @@ i: Integer; Lines: TStringList; MinIndex, MinSpaceCount: Integer; - MinIndentText: string; begin Result := AText; @@ -676,13 +669,8 @@ GxOtaExpandTabsInList(Lines); FindMinIndent(Lines, MinIndex, MinSpaceCount); - if MinIndex >= 0 then - MinIndentText := Copy(Lines[MinIndex], 1, MinSpaceCount) - else - begin - MinIndentText := ''; + if MinIndex < 0 then MinSpaceCount := 0; - end; for i := 0 to Lines.Count-1 do begin Index: GX_SourceExportOptions.pas =================================================================== RCS file: /cvsroot/gexperts/gexperts/unstable/Src/GX_SourceExportOptions.pas,v retrieving revision 1.23 retrieving revision 1.24 diff -u -d -r1.23 -r1.24 --- GX_SourceExportOptions.pas 23 Jun 2005 21:30:11 -0000 1.23 +++ GX_SourceExportOptions.pas 17 Apr 2006 06:10:27 -0000 1.24 @@ -53,8 +53,6 @@ {$R *.dfm} procedure TfmSourceExportOptions.FormCreate(Sender: TObject); -resourcestring - SUnknownFileType = 'Unknown File Type'; var i: Integer; GXHighlighter: TGXSyntaxHighlighter; Index: GX_GetIdeVersion.pas =================================================================== RCS file: /cvsroot/gexperts/gexperts/unstable/Src/GX_GetIdeVersion.pas,v retrieving revision 1.36 retrieving revision 1.37 diff -u -d -r1.36 -r1.37 --- GX_GetIdeVersion.pas 9 Nov 2005 22:31:47 -0000 1.36 +++ GX_GetIdeVersion.pas 17 Apr 2006 06:10:26 -0000 1.37 @@ -276,8 +276,6 @@ const Dcc800: TVersionNumber = (Minor: 1; Major: 7; Build: 610; Release: 1446); - Dcc801: TVersionNumber = - (Minor: 1; Major: 7; Build: 25464; Release: 1490); BdsExe800: TVersionNumber = (Minor: 1; Major: 7; Build: 610; Release: 1446); var Index: GX_MessageDialog.pas =================================================================== RCS file: /cvsroot/gexperts/gexperts/unstable/Src/GX_MessageDialog.pas,v retrieving revision 1.59 retrieving revision 1.60 diff -u -d -r1.59 -r1.60 --- GX_MessageDialog.pas 16 Apr 2006 20:08:03 -0000 1.59 +++ GX_MessageDialog.pas 17 Apr 2006 06:10:26 -0000 1.60 @@ -263,7 +263,6 @@ public constructor Create(Parent: TCustomForm); destructor Destroy; override; - function GetMsgBoxButtons: Integer; function ButtonValue: Integer; procedure ShowModal; override; function GetCode: string; override; @@ -1227,11 +1226,6 @@ FBoxButtonsList.Add('MB_DEFBUTTON4=' + IntToStr(MB_DEFBUTTON4)); end; -function TMessageBoxType.GetMsgBoxButtons: Integer; -begin - Result := 0; -end; - destructor TMessageBoxType.Destroy; begin FreeAndNil(FBoxButtonsList); Index: GX_ProcedureList.pas =================================================================== RCS file: /cvsroot/gexperts/gexperts/unstable/Src/GX_ProcedureList.pas,v retrieving revision 1.67 retrieving revision 1.68 diff -u -d -r1.67 -r1.68 --- GX_ProcedureList.pas 8 Dec 2005 05:39:42 -0000 1.67 +++ GX_ProcedureList.pas 17 Apr 2006 06:10:27 -0000 1.68 @@ -124,7 +124,6 @@ resourcestring SAllString = '<All>'; SNoneString = '<None>'; - SUnknown = 'Unknown'; type TProcedureExpert = class(TGX_Expert) |
From: Erik B. <eb...@us...> - 2006-04-17 06:06:46
|
Update of /cvsroot/gexperts/gexperts/unstable/Src/FavFiles In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5051/Src/FavFiles Modified Files: GX_FavFiles.pas Log Message: Remove some unused code Fix a couple of code paths Index: GX_FavFiles.pas =================================================================== RCS file: /cvsroot/gexperts/gexperts/unstable/Src/FavFiles/GX_FavFiles.pas,v retrieving revision 1.54 retrieving revision 1.55 diff -u -d -r1.54 -r1.55 --- GX_FavFiles.pas 21 Jan 2006 21:03:41 -0000 1.54 +++ GX_FavFiles.pas 17 Apr 2006 06:06:37 -0000 1.55 @@ -1183,8 +1183,6 @@ mFile: TGXFile; Ext: string; resourcestring - SSaveWarning = 'You did not save the current project.' + sLineBreak + - 'Do you want to load the new project, anyway?'; SFileDoesNotExist = 'Could not find the file %s to execute it.'; SCouldNotOpen = 'Could not open file %s'; begin |
From: Erik B. <eb...@us...> - 2006-04-17 06:06:42
|
Update of /cvsroot/gexperts/gexperts/unstable/Src/ReplaceComponents In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5051/Src/ReplaceComponents Modified Files: GX_ReplaceComp.pas Log Message: Remove some unused code Fix a couple of code paths Index: GX_ReplaceComp.pas =================================================================== RCS file: /cvsroot/gexperts/gexperts/unstable/Src/ReplaceComponents/GX_ReplaceComp.pas,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- GX_ReplaceComp.pas 21 Jan 2006 21:00:30 -0000 1.11 +++ GX_ReplaceComp.pas 17 Apr 2006 06:06:38 -0000 1.12 @@ -166,12 +166,9 @@ end; TMapScoreList = class(TGxObjectDictionary) - private - function GetItem(Index: Integer): TMapScore; public procedure AddScore(const APropName: string; ASourceDepth, ADestDepth: Integer; MapItem: TCompRepMapItem); procedure GetScore(const APropName: string; var SourceDepth, DestDepth: Integer; var MapItem: TCompRepMapItem); - property Items[Index: Integer]: TMapScore read GetItem; default; end; var @@ -398,7 +395,7 @@ end; except on e: Exception do - FController.HandleException(E, SFileProc); + FController.HandleException(E, Context); end; finally FController.SignalFileEnd(FileName); @@ -1059,11 +1056,6 @@ NewScore.Item := MapItem; end; -function TMapScoreList.GetItem(Index: Integer): TMapScore; -begin - Result := inherited Items[Index] as TMapScore; -end; - procedure TMapScoreList.GetScore(const APropName: string; var SourceDepth, DestDepth: Integer; var MapItem: TCompRepMapItem); var |
From: Erik B. <eb...@us...> - 2006-04-17 06:06:42
|
Update of /cvsroot/gexperts/gexperts/unstable/Src/SetComponentProps In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5051/Src/SetComponentProps Modified Files: GX_SetComponentPropsConfig.pas Log Message: Remove some unused code Fix a couple of code paths Index: GX_SetComponentPropsConfig.pas =================================================================== RCS file: /cvsroot/gexperts/gexperts/unstable/Src/SetComponentProps/GX_SetComponentPropsConfig.pas,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- GX_SetComponentPropsConfig.pas 7 Apr 2006 21:29:46 -0000 1.5 +++ GX_SetComponentPropsConfig.pas 17 Apr 2006 06:06:38 -0000 1.6 @@ -168,11 +168,10 @@ procedure TfmSetComponentPropsConfig.actnDeleteRuleExecute(Sender: TObject); var RowIndex: Integer; - ComponentName, ComponentProperty, ComponentValue: string; + ComponentName, ComponentProperty: string; begin ComponentName := Copy(cbxComponents.Text + #$20, 1, Pos(#$20, cbxComponents.Text + #$20) - 1); ComponentProperty := Copy(cbxProperty.Text + #$20, 1, Pos(#$20, cbxProperty.Text + #$20) - 1); - ComponentValue := edtValue.Text; // look for component name and property in grid RowIndex := GetRowIndex(ComponentName, ComponentProperty); |
From: Erik B. <eb...@us...> - 2006-04-17 06:06:42
|
Update of /cvsroot/gexperts/gexperts/unstable/Src/Proofreader In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5051/Src/Proofreader Modified Files: GX_ProofreaderConfig.pas GX_ProofreaderCorrection.pas GX_ProofreaderData.pas Log Message: Remove some unused code Fix a couple of code paths Index: GX_ProofreaderCorrection.pas =================================================================== RCS file: /cvsroot/gexperts/gexperts/unstable/Src/Proofreader/GX_ProofreaderCorrection.pas,v retrieving revision 1.40 retrieving revision 1.41 diff -u -d -r1.40 -r1.41 --- GX_ProofreaderCorrection.pas 8 Mar 2006 20:47:50 -0000 1.40 +++ GX_ProofreaderCorrection.pas 17 Apr 2006 06:06:38 -0000 1.41 @@ -70,9 +70,6 @@ public constructor Create(const EditView: IOTAEditView); destructor Destroy; override; - property CursorPos: TOTAEditPos read GetCursorPos write SetCursorPos; - property CharPos: TOTACharPos read GetCharPos write SetCharPos; - property BufferCharIndex: Longint read GetBufferCharIndex write SetBufferCharIndex; end; type Index: GX_ProofreaderConfig.pas =================================================================== RCS file: /cvsroot/gexperts/gexperts/unstable/Src/Proofreader/GX_ProofreaderConfig.pas,v retrieving revision 1.26 retrieving revision 1.27 diff -u -d -r1.26 -r1.27 --- GX_ProofreaderConfig.pas 8 Dec 2005 05:39:41 -0000 1.26 +++ GX_ProofreaderConfig.pas 17 Apr 2006 06:06:38 -0000 1.27 @@ -479,11 +479,6 @@ EditDict; end; -function CompareAsReversedIntegers(Item1, Item2: Pointer): Integer; -begin - Result := Integer(Item2) - Integer(Item1); -end; - procedure TfmProofreaderConfig.actListDeleteExecute(Sender: TObject); procedure DeleteReplace; Index: GX_ProofreaderData.pas =================================================================== RCS file: /cvsroot/gexperts/gexperts/unstable/Src/Proofreader/GX_ProofreaderData.pas,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- GX_ProofreaderData.pas 21 Jan 2006 21:03:42 -0000 1.8 +++ GX_ProofreaderData.pas 17 Apr 2006 06:06:38 -0000 1.9 @@ -116,20 +116,6 @@ cXmlNodeDictionaryEntry = 'Entry'; cXmlNodeDictionaryEntryOld = 'DictionaryEntry'; // This was too long for large dictionaries -function IsWord(const s: string): Boolean; -var - i: Integer; -begin - Result := True; - - for i := 1 to Length(s) do - begin - Result := (s[i] in LocaleIdentifierChars); - if not Result then - Break; - end; -end; - function BinaryCaseSensitiveSearch(const Strings: TStrings; const AWord: string): Integer; var i: Integer; @@ -417,9 +403,6 @@ end; procedure TProofreaderData.ReloadData; -resourcestring - SDefaultTablesCreated = 'Data file "%s" could not be found.' + sLineBreak + - 'The default word replacement and dictionary tables have been created.'; var Doc: IXMLDocument; RulesNodes: IXMLNodeList; |
From: Erik B. <eb...@us...> - 2006-04-17 06:06:41
|
Update of /cvsroot/gexperts/gexperts/unstable/Src/Utils In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5051/Src/Utils Modified Files: GX_GenericUtils.pas GX_OtaUtils.pas Log Message: Remove some unused code Fix a couple of code paths Index: GX_OtaUtils.pas =================================================================== RCS file: /cvsroot/gexperts/gexperts/unstable/Src/Utils/GX_OtaUtils.pas,v retrieving revision 1.189 retrieving revision 1.190 diff -u -d -r1.189 -r1.190 --- GX_OtaUtils.pas 7 Apr 2006 21:29:30 -0000 1.189 +++ GX_OtaUtils.pas 17 Apr 2006 06:06:38 -0000 1.190 @@ -228,9 +228,6 @@ // Refresh the object inspector's view into a designer function GxOtaRefreshCurrentDesigner: Boolean; -// Set the position of non-visual components based on the DesignInfo property -procedure GxOtaRefreshNonVisualPositionsForForm(Form: TCustomForm); - // Write a simple (bold) title message to the IDE Messages window procedure GxOtaWriteTitleMessage(const Title: string); // Write a tool message to the IDE Messages window @@ -802,33 +799,6 @@ end; end; -procedure GxOtaRefreshNonVisualPositionsForForm(Form: TCustomForm); -var - WinHandle: THandle; - AStr: array[0..255] of Char; - //Top, Left: Integer; -begin - Assert(False, 'GxOtaRefreshNonVisualPositionsForForm is Incomplete!'); - Assert(Assigned(Form)); - Form.Refresh; - Form.Repaint; - - WinHandle := GetWindow(Form.Handle, GW_CHILD); - WinHandle := GetWindow(WinHandle, GW_HWNDLAST); - - while (WinHandle <> 0) do - begin - GetClassName(WinHandle, AStr, 254); - if (StrComp(AStr, 'TContainer') = 0) then - begin - //Top := ??? from DesignInfo - //Left := ??? from DesignInfo - //SetWindowPos(WinHandle, 0, Left, Top, 0, 0, SWP_NOSIZE or SWP_NOZORDER); - end; - WinHandle := GetWindow(WinHandle, GW_HWNDPREV); - end; -end; - procedure GxOtaWriteTitleMessage(const Title: string); var IMessageServices: IOTAMessageServices; @@ -1251,7 +1221,6 @@ function GetCurrentSourceAndPos(var CursorPosition: Integer; var CursorLine: Integer): string; var - SourceEditor: IOTASourceEditor; EditView: IOTAEditView; EditPos: TOTAEditPos; CharPos: TOTACharPos; @@ -1259,7 +1228,6 @@ Result := ''; CursorPosition := 0; - SourceEditor := GxOtaGetCurrentSourceEditor; EditView := GxOtaGetTopMostEditView; if Assigned(EditView) then begin @@ -2539,8 +2507,6 @@ function GxOtaSetComponentPropertyAsString(const AComponent: IOTAComponent; const PropertyName: string; const Value: WideString): Boolean; -const - PropError = 'Invalid value %s for property %s'; var PropertyType : TTypeKind; PropertyTypeName : string; Index: GX_GenericUtils.pas =================================================================== RCS file: /cvsroot/gexperts/gexperts/unstable/Src/Utils/GX_GenericUtils.pas,v retrieving revision 1.147 retrieving revision 1.148 diff -u -d -r1.147 -r1.148 --- GX_GenericUtils.pas 6 Feb 2006 23:52:35 -0000 1.147 +++ GX_GenericUtils.pas 17 Apr 2006 06:06:38 -0000 1.148 @@ -2031,7 +2031,6 @@ const ChangeString: string; PropInfo: PPropInfo): Integer; var Prefix: string; - Suffix: string; vTypeInfo: PTypeInfo; Value: Integer; Members: TStringList; @@ -2039,7 +2038,6 @@ Result := -1; Prefix := LeftStr(ChangeString, 1); - Suffix := RightStr(ChangeString, 1); vTypeInfo := GetTypeData(PropInfo^.PropType^)^.CompType^; Members := TStringList.Create; |
From: Erik B. <eb...@us...> - 2006-04-17 06:06:41
|
Update of /cvsroot/gexperts/gexperts/unstable/Src/ProjOptionSets In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5051/Src/ProjOptionSets Modified Files: GX_ProjOptionSets.pas Log Message: Remove some unused code Fix a couple of code paths Index: GX_ProjOptionSets.pas =================================================================== RCS file: /cvsroot/gexperts/gexperts/unstable/Src/ProjOptionSets/GX_ProjOptionSets.pas,v retrieving revision 1.52 retrieving revision 1.53 diff -u -d -r1.52 -r1.53 --- GX_ProjOptionSets.pas 21 Jan 2006 21:03:42 -0000 1.52 +++ GX_ProjOptionSets.pas 17 Apr 2006 06:06:37 -0000 1.53 @@ -242,7 +242,6 @@ property SortAscending: Boolean read FSortAscend write SetSortAscend; property SortByString: Boolean read FSortByString write SetSortByString; property OnGetHint: TGetHintEvent read FOnGetHint write FOnGetHint; - property MouseDownIndex: Integer read FMouseDownIndex; end; { TCheckListBoxWithHints } |
From: Erik B. <eb...@us...> - 2006-04-17 06:06:41
|
Update of /cvsroot/gexperts/gexperts/unstable/Src/MacroTemplates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5051/Src/MacroTemplates Modified Files: GX_MacroExpandNotifier.pas GX_MacroTemplatesExpert.pas Log Message: Remove some unused code Fix a couple of code paths Index: GX_MacroTemplatesExpert.pas =================================================================== RCS file: /cvsroot/gexperts/gexperts/unstable/Src/MacroTemplates/GX_MacroTemplatesExpert.pas,v retrieving revision 1.40 retrieving revision 1.41 diff -u -d -r1.40 -r1.41 --- GX_MacroTemplatesExpert.pas 16 Apr 2006 20:06:31 -0000 1.40 +++ GX_MacroTemplatesExpert.pas 17 Apr 2006 06:06:37 -0000 1.41 @@ -595,7 +595,7 @@ begin EditView := GxOtaGetTopMostEditView; if not Assigned(EditView)then - Exit; + raise Exception.Create('No edit view present'); CharPos := GxOtaGetCharPosFromPos(AOffset, EditView); EditView.ConvertPos(False, Result, CharPos); Index: GX_MacroExpandNotifier.pas =================================================================== RCS file: /cvsroot/gexperts/gexperts/unstable/Src/MacroTemplates/GX_MacroExpandNotifier.pas,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- GX_MacroExpandNotifier.pas 26 Jan 2006 06:20:19 -0000 1.7 +++ GX_MacroExpandNotifier.pas 17 Apr 2006 06:06:37 -0000 1.8 @@ -72,7 +72,6 @@ procedure Detach; procedure SetExpandDelay(Value: Integer); - property OnProcessMacro: TProcessMacroEvent read FOnProcessMacro; property ExpandChar: Char read FExpandChar; property ExpandDelay: Integer read FExpandDelay; end; |
From: Erik B. <eb...@us...> - 2006-04-17 06:06:41
|
Update of /cvsroot/gexperts/gexperts/unstable/Src/EditorExperts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5051/Src/EditorExperts Modified Files: GX_eComment.pas Log Message: Remove some unused code Fix a couple of code paths Index: GX_eComment.pas =================================================================== RCS file: /cvsroot/gexperts/gexperts/unstable/Src/EditorExperts/GX_eComment.pas,v retrieving revision 1.36 retrieving revision 1.37 diff -u -d -r1.36 -r1.37 --- GX_eComment.pas 5 Apr 2005 08:47:34 -0000 1.36 +++ GX_eComment.pas 17 Apr 2006 06:06:37 -0000 1.37 @@ -42,7 +42,6 @@ class function GetName: string; override; function ProcessSelected(Lines: TStrings): Boolean; override; public - constructor Create; override; procedure GetHelpString(List: TStrings); override; function HasConfigOptions: Boolean; override; end; @@ -71,10 +70,6 @@ CommentType: TCommentType = ctSlash; InsertRemoveSpace: Boolean = False; -const - CommentStyle: array[TCommentType] of string = - ('//', '(* *)', '{ }', '/* */'); - { TCommentExpert } procedure TCommentExpert.Configure; @@ -357,16 +352,6 @@ { TSortExpert } -constructor TSortExpert.Create; -const - VK_OEM_2 = $BF; // '/?' for US, '#' for German, ? for others -begin - inherited; - // Disabled because this interferes the '}' character on some Spanish - // keyboards (because it shares a key with ç) - //ShortCut := scCtrl + scAlt + VK_OEM_2; -end; - function TSortExpert.GetDisplayName: string; resourcestring SSortName = 'Sort Selected Lines'; |