Description | Hierarchy | Fields | Methods | Properties |
type TAdPluginPropertyList = class(TObject)
List used to store the plugin properties. TAdPluginPropertyList permits acces on available properties in the plugin and allows the user to set them. An instance of TAdPluginPropertyList is held by TAdDraw by default.
constructor Create; |
|
destructor Destroy; override; |
|
procedure Clear; |
|
procedure ReadProperties(ADllLoader: TAdDllLoader); |
|
procedure WriteProperties(AAppl: TAd2DApplication); |
|
procedure SetProp(AName: AnsiString; AValue: boolean); overload; |
|
procedure SetProp(AName: AnsiString; AValue: integer); overload; |
|
procedure SetProp(AName: AnsiString; AValue: TAd2dResolution); overload; |
|
function PropertyExists(AName: AnsiString): boolean; |
property Items[Index: integer]: TAd2dProperty read GetProperty; |
|
property Count: integer read FCount; |
constructor Create; |
|
Creates an instance of TAdPluginPropertyList. Properties from the plugin are read via the "ReadProperties" method. |
destructor Destroy; override; |
|
Destroys the instance of TAdPluginPropertyList. |
procedure Clear; |
|
Clears all read properties and all settings that have been made. |
procedure ReadProperties(ADllLoader: TAdDllLoader); |
|
Reads the available properties from a loaded plugin library. After this properties may be accesed by the "Items" property of TAdPluginPropertyList. |
procedure WriteProperties(AAppl: TAd2DApplication); |
|
Writes all set properties into a created Andorra 2D application. If a property does not exists, nothing will happen. The WriteProperties is normally automatically be called by TAdDraw. |
procedure SetProp(AName: AnsiString; AValue: boolean); overload; |
|
Sets a boolean property. Properties are stored when the "WriteProperties" method is called. |
procedure SetProp(AName: AnsiString; AValue: integer); overload; |
|
Sets a integer property. Properties are stored when the "WriteProperties" method is called. |
procedure SetProp(AName: AnsiString; AValue: TAd2dResolution); overload; |
|
Sets a resolution property. Properties are stored when the "WriteProperties" method is called. |
function PropertyExists(AName: AnsiString): boolean; |
|
Returns whether a certain property exists. |
property Items[Index: integer]: TAd2dProperty read GetProperty; |
|
Allows to read plugin the properties directly. |
property Count: integer read FCount; |
|
Returns the current property count. |