noeska
22-05-2007, 08:40 PM
On rewriting gl3ds i got the suggestion to make it work like timage.
Looking at the vcl sources i got with delphi2005 i see i uses a global var Fileformats.
For keeping track of different fileformat it uses this:
TFileFormatsList = class(TList)
which is a list of:
TFileFormat = record
GraphicClass: TGraphicClass;
.....
Changing TGraphicClass to TModelClass it get a working system for my use, but am i allowed to copy from the vcl sources? Or should i write my own on TList based class for this? Or are there better ways of keeping track of extension and class info for an x number of fileformats? Or is there a generic TList to be used for this?
Questions, questions ....
But the main one is, am i allowed to copy the TFileFormatsList from the vcl and adopt it for my purposes?
Next: Is there a generic TList that takes an record, and allows easy and fast access to the fields in the record (under an mpl license)?
Looking at the vcl sources i got with delphi2005 i see i uses a global var Fileformats.
For keeping track of different fileformat it uses this:
TFileFormatsList = class(TList)
which is a list of:
TFileFormat = record
GraphicClass: TGraphicClass;
.....
Changing TGraphicClass to TModelClass it get a working system for my use, but am i allowed to copy from the vcl sources? Or should i write my own on TList based class for this? Or are there better ways of keeping track of extension and class info for an x number of fileformats? Or is there a generic TList to be used for this?
Questions, questions ....
But the main one is, am i allowed to copy the TFileFormatsList from the vcl and adopt it for my purposes?
Next: Is there a generic TList that takes an record, and allows easy and fast access to the fields in the record (under an mpl license)?