jedidotnet-commits Mailing List for JEDI.NET (Page 12)
Status: Pre-Alpha
Brought to you by:
jedi_mbe
You can subscribe to this list here.
2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(81) |
Jul
(7) |
Aug
(8) |
Sep
(2) |
Oct
|
Nov
(47) |
Dec
(30) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
(32) |
Feb
|
Mar
(86) |
Apr
|
May
(1) |
Jun
(24) |
Jul
(4) |
Aug
(5) |
Sep
(4) |
Oct
|
Nov
|
Dec
(9) |
From: Marcel B. <jed...@us...> - 2004-06-16 14:30:02
|
Update of /cvsroot/jedidotnet/main/run In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24089/main/run Added Files: Jedi.Collections.pas Jedi.Drawing.pas Jedi.System.pas Jedi.Windows.Forms.Hmi.Leds.pas Log Message: Final location and structure --- NEW FILE: Jedi.System.pas --- {--------------------------------------------------------------------------------------------------- The contents of this file are subject to the Mozilla Public License Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.mozilla.org/MPL/MPL-1.1.html Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either expressed or implied. See the License for the specific language governing rights and limitations under the License. The Original Code is: Jedi.System.pas, released on 2004-06-13. The Initial Developer of the Original Code is Marcel Bestebroer Portions created by Marcel Bestebroer are Copyright (C) 2004 Marcel Bestebroer All Rights Reserved. Contributor(s): You may retrieve the latest version of this file at the JEDI.NET home page, located at http://sf.net/projects/jedidotnet Known Issues: ---------------------------------------------------------------------------------------------------} // $Id: Jedi.System.pas,v 1.1 2004/06/16 14:29:53 jedi_mbe Exp $ unit Jedi.System; interface {$REGION 'interface uses'} uses System.Collections, System.ComponentModel; {$ENDREGION} {$REGION 'Attributes'} type AttributeArray = array of Attribute; type AttributeUtils = class (System.Object) strict protected class function IndexOf(attrList: ArrayList; attr: System.Object): Integer; static; class function OverrideAttrList(attrList, overrideList: ArrayList; mustExist: Boolean): ArrayList; static; public class function OverrideAttributes(attributes, overrides, replacements: AttributeArray): AttributeArray; overload; static; class function OverrideAttributes(attributes: AttributeCollection; overrides, replacements: AttributeArray): AttributeCollection; overload; static; end; {$ENDREGION} implementation {$REGION 'AttributeUtils'} class function AttributeUtils.IndexOf(attrList: ArrayList; attr: System.Object): Integer; var attrType: System.Type; begin if attr is System.Type then attrType := System.Type(attr) else attrType := attr.GetType; Result := attrList.Count - 1; while (Result >= 0) and not attrType.IsAssignableFrom(attrList[Result].GetType) do Dec(Result); end; class function AttributeUtils.OverrideAttrList(attrList, overrideList: ArrayList; mustExist: Boolean): ArrayList; var i: Integer; attrIndex: Integer; begin Result := attrList; for i := 0 to overrideList.Count - 1 do begin attrIndex := AttributeUtils.IndexOf(Result, overrideList[i]); if attrIndex > -1 then Result[attrIndex] := overrideList[i] else if not mustExist then Result.Add(overrideList[i]); end; end; class function AttributeUtils.OverrideAttributes(attributes, overrides, replacements: AttributeArray): AttributeArray; var attrList: ArrayList; overrideList: ArrayList; replaceList: ArrayList; begin attrList := ArrayList.Create(System.Array(attributes)); if Assigned(overrides) then overrideList := ArrayList.Create(System.Array(overrides)) else overrideList := ArrayList.Create; if Assigned(replacements) then replaceList := ArrayList.Create(System.Array(replacements)) else replaceList := ArrayList.Create; Result := AttributeArray(OverrideAttrList(OverrideAttrList(attrList, replaceList, True), overrideList, False).ToArray(TypeOf(Attribute))); end; class function AttributeUtils.OverrideAttributes(attributes: AttributeCollection; overrides, replacements: AttributeArray): AttributeCollection; var attrList: ArrayList; overrideList: ArrayList; replaceList: ArrayList; begin attrList := ArrayList.Create(attributes); if Assigned(overrides) then overrideList := ArrayList.Create(System.Array(overrides)) else overrideList := ArrayList.Create; if Assigned(replacements) then replaceList := ArrayList.Create(System.Array(replacements)) else replaceList := ArrayList.Create; Result := AttributeCollection.Create(AttributeArray(OverrideAttrList(OverrideAttrList(attrList, replaceList, True), overrideList, False).ToArray(TypeOf(Attribute)))); end; {$ENDREGION} end. --- NEW FILE: Jedi.Drawing.pas --- {--------------------------------------------------------------------------------------------------- The contents of this file are subject to the Mozilla Public License Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.mozilla.org/MPL/MPL-1.1.html Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either expressed or implied. See the License for the specific language governing rights and limitations under the License. The Original Code is: Jedi.Drawing.pas, released on 2004-05-16. The Initial Developer of the Original Code is Marcel Bestebroer Portions created by Marcel Bestebroer are Copyright (C) 2004 Marcel Bestebroer All Rights Reserved. Contributor(s): You may retrieve the latest version of this file at the JEDI.NET home page, located at http://sf.net/projects/jedidotnet Known Issues: ---------------------------------------------------------------------------------------------------} // $Id: Jedi.Drawing.pas,v 1.1 2004/06/16 14:29:53 jedi_mbe Exp $ unit Jedi.Drawing; interface {$REGION 'interface uses'} uses System.Drawing; {$ENDREGION} {$REGION 'Color related'} type ColorUtils = class sealed (System.Object) public { Blends two colors. The resulting color will be a mix of the two colors. The percentage parameter determines how much of the second color will be present. } class function Blend(firstColor, secondColor: Color; percentage: Integer): Color; static; { Brightens a color. The resulting color will be a mix of the base color and pure white. The percentage parameter determines how much white will be present. } class function Brighten(baseColor: Color; percentage: Integer): Color; static; { Darkens a color. The resulting color will be a mix of the base color and pure black. The percentage parameter determines how much black will be present. } class function Darken(baseColor: Color; percentage: Integer): Color; static; end; {$ENDREGION} implementation {$REGION 'ColorUtils'} class function ColorUtils.Blend(firstColor, secondColor: Color; percentage: Integer): Color; begin Result := Color.FromArgb( firstColor.R + (secondColor.R - firstColor.R) * percentage div 100, firstColor.G + (secondColor.G - firstColor.G) * percentage div 100, firstColor.B + (secondColor.B - firstColor.B) * percentage div 100 ); end; class function ColorUtils.Brighten(baseColor: Color; percentage: Integer): Color; begin Result := ColorUtils.Blend(baseColor, Color.White, percentage); end; class function ColorUtils.Darken(baseColor: Color; percentage: Integer): Color; begin Result := ColorUtils.Blend(baseColor, Color.Black, percentage); end; {$ENDREGION} end. --- NEW FILE: Jedi.Windows.Forms.Hmi.Leds.pas --- {--------------------------------------------------------------------------------------------------- The contents of this file are subject to the Mozilla Public License Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.mozilla.org/MPL/MPL-1.1.html Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either expressed or implied. See the License for the specific language governing rights and limitations under the License. The Original Code is: Jedi.Windows.Forms.Hmi.Leds.pas, released on 2004-05-16. The Initial Developer of the Original Code is Marcel Bestebroer Portions created by Marcel Bestebroer are Copyright (C) 2004 Marcel Bestebroer All Rights Reserved. Contributor(s): You may retrieve the latest version of this file at the JEDI.NET home page, located at http://sf.net/projects/jedidotnet [...1494 lines suppressed...] i: Integer; begin if not ReferenceEquals(FLedStyle, value) then begin FLedStyle.Free; FLedStyle := value; Include(FLedStyle.SettingsChanged, Style_SettingsChanged); Include(FLedStyle.SizeChanged, Style_SizeChanged); Include(FLedStyle.StateAdded, Style_StateAdded); Include(FLedStyle.StateRemoved, Style_StateRemoved); for i := 0 to FInitializeCount - 1 do FLedStyle.BeginInit; if not IsInitializing and (FLedStateIdx >= FLedStyle.States.Count) then FLedStateIdx := FLedStyle.States.Count - 1; FLedStyle.InvalidateSize; end; end; {$ENDREGION} end. --- NEW FILE: Jedi.Collections.pas --- {--------------------------------------------------------------------------------------------------- The contents of this file are subject to the Mozilla Public License Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.mozilla.org/MPL/MPL-1.1.html Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either expressed or implied. See the License for the specific language governing rights and limitations under the License. The Original Code is: Jedi.Collections.pas, released on 2004-06-13. The Initial Developer of the Original Code is Marcel Bestebroer Portions created by Marcel Bestebroer are Copyright (C) 2004 Marcel Bestebroer All Rights Reserved. Contributor(s): You may retrieve the latest version of this file at the JEDI.NET home page, located at http://sf.net/projects/jedidotnet [...1121 lines suppressed...] end; function InlineDictionaryBase.GetItemDescription(key: System.Object): string; begin Result := ''; end; function InlineDictionaryBase.GetItemEmptyValue(key: System.Object): System.Object; begin Result := nil; end; function InlineDictionaryBase.GetItemProperty(key, value: System.Object): PropertyDescriptor; begin Result := InlineCollectionUtils.CreateItemProperty(value.GetType, AttributeArray.Create(), Self, key.ToString, GetItemDescription(key), key, GetItemEmptyValue(key)); end; {$ENDREGION} end. |
From: Marcel B. <jed...@us...> - 2004-06-16 14:30:01
|
Update of /cvsroot/jedidotnet/main/resources In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24089/main/resources Added Files: Jedi.Windows.Forms.Hmi.Leds.SingleLed.bmp Log Message: Final location and structure --- NEW FILE: Jedi.Windows.Forms.Hmi.Leds.SingleLed.bmp --- (This appears to be a binary file; contents omitted.) |
Update of /cvsroot/jedidotnet/main/assemblies In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24089/main/assemblies Added Files: Jedi.Core.bdsproj Jedi.Core.dpk Jedi.Drawing.bdsproj Jedi.Drawing.dpk Jedi.Windows.Forms.Hmi.bdsproj Jedi.Windows.Forms.Hmi.dpk Log Message: Final location and structure --- NEW FILE: Jedi.Windows.Forms.Hmi.bdsproj --- (This appears to be a binary file; contents omitted.) --- NEW FILE: Jedi.Drawing.dpk --- package Jedi.Drawing; {$ALIGN 0} {$ASSERTIONS ON} {$BOOLEVAL OFF} {$DEBUGINFO ON} {$EXTENDEDSYNTAX ON} {$IMPORTEDDATA ON} {$IOCHECKS ON} {$LOCALSYMBOLS ON} {$LONGSTRINGS ON} {$OPENSTRINGS ON} {$OPTIMIZATION ON} {$OVERFLOWCHECKS OFF} {$RANGECHECKS OFF} {$REFERENCEINFO ON} {$SAFEDIVIDE OFF} {$STACKFRAMES OFF} {$TYPEDADDRESS OFF} {$VARSTRINGCHECKS ON} {$WRITEABLECONST OFF} {$MINENUMSIZE 1} {$IMAGEBASE $400000} {$IMPLICITBUILD OFF} requires Borland.Delphi, System.Drawing; contains Jedi.Drawing in '..\run\Jedi.Drawing.pas'; [assembly: AssemblyTitle('Jedi.Drawing')] [assembly: AssemblyDescription('.NET drawing classes.')] [assembly: AssemblyCompany('Project JEDI')] [assembly: AssemblyProduct('JEDI.NET Framework Class Library')] [assembly: AssemblyCopyright('Copyright © 2004 Project JEDI.')] [assembly: AssemblyCulture('')] [assembly: AssemblyVersion('1.0.0.0')] [assembly: AssemblyDelaySign(false)] [assembly: AssemblyKeyFile('')] [assembly: AssemblyKeyName('')] end. --- NEW FILE: Jedi.Core.bdsproj --- (This appears to be a binary file; contents omitted.) --- NEW FILE: Jedi.Windows.Forms.Hmi.dpk --- package Jedi.Windows.Forms.Hmi; {$ALIGN 0} {$ASSERTIONS ON} {$BOOLEVAL OFF} {$DEBUGINFO ON} {$EXTENDEDSYNTAX ON} {$IMPORTEDDATA ON} {$IOCHECKS ON} {$LOCALSYMBOLS ON} {$LONGSTRINGS ON} {$OPENSTRINGS ON} {$OPTIMIZATION ON} {$OVERFLOWCHECKS OFF} {$RANGECHECKS OFF} {$REFERENCEINFO OFF} {$SAFEDIVIDE OFF} {$STACKFRAMES OFF} {$TYPEDADDRESS OFF} {$VARSTRINGCHECKS ON} {$WRITEABLECONST OFF} {$MINENUMSIZE 1} {$IMAGEBASE $400000} {$IMPLICITBUILD OFF} requires Borland.Delphi, System, System.Drawing, System.Windows.Forms, mscorlib, Jedi.Drawing, Jedi.Core; contains Jedi.Windows.Forms.Hmi.Leds in '..\run\Jedi.Windows.Forms.Hmi.Leds.pas'; [assembly: AssemblyTitle('Jedi.Windows.Forms.Hmi')] [assembly: AssemblyDescription('.NET WinForms HMI controls.')] [assembly: AssemblyCompany('Project JEDI')] [assembly: AssemblyProduct('JEDI.NET Framework Class Library')] [assembly: AssemblyCopyright('Copyright © 2004 Project JEDI.')] [assembly: AssemblyCulture('')] [assembly: AssemblyVersion('1.0.0.0')] [assembly: AssemblyDelaySign(false)] [assembly: AssemblyKeyFile('')] [assembly: AssemblyKeyName('')] end. --- NEW FILE: Jedi.Drawing.bdsproj --- (This appears to be a binary file; contents omitted.) --- NEW FILE: Jedi.Core.dpk --- package Jedi.Core; {$ALIGN 0} {$ASSERTIONS ON} {$BOOLEVAL OFF} {$DEBUGINFO ON} {$EXTENDEDSYNTAX ON} {$IMPORTEDDATA ON} {$IOCHECKS ON} {$LOCALSYMBOLS ON} {$LONGSTRINGS ON} {$OPENSTRINGS ON} {$OPTIMIZATION ON} {$OVERFLOWCHECKS OFF} {$RANGECHECKS OFF} {$REFERENCEINFO ON} {$SAFEDIVIDE OFF} {$STACKFRAMES OFF} {$TYPEDADDRESS OFF} {$VARSTRINGCHECKS ON} {$WRITEABLECONST OFF} {$MINENUMSIZE 1} {$IMAGEBASE $400000} {$IMPLICITBUILD OFF} requires Borland.Delphi, mscorlib, System, System.Drawing; contains Jedi.Collections in '..\run\Jedi.Collections.pas', Jedi.System in '..\run\Jedi.System.pas'; [assembly: AssemblyTitle('Jedi.Core')] [assembly: AssemblyDescription('.NET core classes.')] [assembly: AssemblyCompany('Project JEDI')] [assembly: AssemblyProduct('JEDI.NET Framework Class Library')] [assembly: AssemblyCopyright('Copyright © 2004 Project JEDI.')] [assembly: AssemblyCulture('')] [assembly: AssemblyVersion('1.0.0.0')] [assembly: AssemblyDelaySign(false)] [assembly: AssemblyKeyFile('')] [assembly: AssemblyKeyName('')] end. |
From: Marcel B. <jed...@us...> - 2004-06-16 14:27:29
|
Update of /cvsroot/jedidotnet/main/resources In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22031/main/resources Added Files: resources.txt Log Message: --- NEW FILE: resources.txt --- |
From: Marcel B. <jed...@us...> - 2004-06-16 14:26:58
|
Update of /cvsroot/jedidotnet/main/resources In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21532/resources Log Message: Directory /cvsroot/jedidotnet/main/resources added to the repository |
From: Marcel B. <jed...@us...> - 2004-06-16 14:00:15
|
Update of /cvsroot/jedidotnet/tools/lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31986/tools/lib Added Files: lib.txt Log Message: --- NEW FILE: lib.txt --- |
From: Marcel B. <jed...@us...> - 2004-06-16 14:00:15
|
Update of /cvsroot/jedidotnet/tools/bin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31986/tools/bin Added Files: bin.txt Log Message: --- NEW FILE: bin.txt --- |
From: Marcel B. <jed...@us...> - 2004-06-16 14:00:00
|
Update of /cvsroot/jedidotnet/main/lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31986/main/lib Added Files: lib.txt Log Message: --- NEW FILE: lib.txt --- |
From: Marcel B. <jed...@us...> - 2004-06-16 14:00:00
|
Update of /cvsroot/jedidotnet/main/run In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31986/main/run Added Files: run.txt Log Message: --- NEW FILE: run.txt --- |
From: Marcel B. <jed...@us...> - 2004-06-16 13:59:59
|
Update of /cvsroot/jedidotnet/main/help In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31986/main/help Added Files: help.txt Log Message: --- NEW FILE: help.txt --- |
From: Marcel B. <jed...@us...> - 2004-06-16 13:59:59
|
Update of /cvsroot/jedidotnet/main/examples/lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31986/main/examples/lib Added Files: lib.txt Log Message: --- NEW FILE: lib.txt --- |
From: Marcel B. <jed...@us...> - 2004-06-16 13:59:59
|
Update of /cvsroot/jedidotnet/main/bin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31986/main/bin Added Files: bin.txt Log Message: --- NEW FILE: bin.txt --- |
From: Marcel B. <jed...@us...> - 2004-06-16 13:59:59
|
Update of /cvsroot/jedidotnet/main/assemblies In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31986/main/assemblies Added Files: assemblies.txt Log Message: --- NEW FILE: assemblies.txt --- |
From: Marcel B. <jed...@us...> - 2004-06-16 13:59:58
|
Update of /cvsroot/jedidotnet/main/design In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31986/main/design Added Files: design.txt Log Message: --- NEW FILE: design.txt --- |
From: Marcel B. <jed...@us...> - 2004-06-16 13:59:58
|
Update of /cvsroot/jedidotnet/main/examples/bin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31986/main/examples/bin Added Files: bin.txt Log Message: --- NEW FILE: bin.txt --- |
From: Marcel B. <jed...@us...> - 2004-06-16 13:59:55
|
Update of /cvsroot/jedidotnet/docs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31986/docs Added Files: docs.txt Log Message: --- NEW FILE: docs.txt --- |
From: Marcel B. <jed...@us...> - 2004-06-16 13:59:15
|
Update of /cvsroot/jedidotnet/tools/lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31369/lib Log Message: Directory /cvsroot/jedidotnet/tools/lib added to the repository |
From: Marcel B. <jed...@us...> - 2004-06-16 13:59:15
|
Update of /cvsroot/jedidotnet/tools/bin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31369/bin Log Message: Directory /cvsroot/jedidotnet/tools/bin added to the repository |
From: Marcel B. <jed...@us...> - 2004-06-16 13:58:24
|
Update of /cvsroot/jedidotnet/main/examples/bin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30583/bin Log Message: Directory /cvsroot/jedidotnet/main/examples/bin added to the repository |
From: Marcel B. <jed...@us...> - 2004-06-16 13:58:23
|
Update of /cvsroot/jedidotnet/main/examples/lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30583/lib Log Message: Directory /cvsroot/jedidotnet/main/examples/lib added to the repository |
From: Marcel B. <jed...@us...> - 2004-06-16 13:57:51
|
Update of /cvsroot/jedidotnet/main/run In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29881/run Log Message: Directory /cvsroot/jedidotnet/main/run added to the repository |
From: Marcel B. <jed...@us...> - 2004-06-16 13:57:51
|
Update of /cvsroot/jedidotnet/main/help In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29881/help Log Message: Directory /cvsroot/jedidotnet/main/help added to the repository |
From: Marcel B. <jed...@us...> - 2004-06-16 13:57:51
|
Update of /cvsroot/jedidotnet/main/lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29881/lib Log Message: Directory /cvsroot/jedidotnet/main/lib added to the repository |
From: Marcel B. <jed...@us...> - 2004-06-16 13:57:51
|
Update of /cvsroot/jedidotnet/main/examples In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29881/examples Log Message: Directory /cvsroot/jedidotnet/main/examples added to the repository |
From: Marcel B. <jed...@us...> - 2004-06-16 13:57:51
|
Update of /cvsroot/jedidotnet/main/design In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29881/design Log Message: Directory /cvsroot/jedidotnet/main/design added to the repository |