Class TCatalogItem

Unit

Declaration

type TCatalogItem = class(TCleanCatalogItem)

Description

No description available, ancestor TCleanCatalogItem description follows

TCleanCatalogItem

Hierarchy

Overview

Methods

Public procedure AfterConstruction; override;
Public procedure BeforeDestruction; override;
Public procedure Assign (ASource: TObject); override;
Public procedure BaseAssign (ASource: TObject; AssignClasses: Boolean); override;
Public procedure StoreToDataSet (ADataSet: TDBXOMDataSet); override;
Public procedure FillFromDataSet (ADataSet: TDBXOMDataSet); override;
Public procedure WriteToJson(AObject: TlkJSONobject; AWithClasses: Boolean); override;
Public function LongFileName (const AFileName: WideString; ADriveSerial: Integer): WideString;
Public procedure CleanExifCache;
Public function ExifFileName: WideString;
Public function XMPFileName: WideString;
Public function XMPFileNameSave: WideString;
Public function XMPSyncFileName: WideString;
Public function CanUpdateExif: Boolean;
Public function _CanUpdateExif: Boolean;
Public procedure UpdateFileInfo;
Public function HasXMP: Boolean;
Public function HasGPS: Boolean;
Public procedure UpdateFileInfoBase;
Public function FileNameOnScreen (const AMaxLen: Integer = 50): WideString;
Public procedure GenerateSignature(var ASignature: AnsiString; var AFileSignature: AnsiString);
Public function TiffOrientationFromXMP(AXmp: TXmp): TTifOrientation;
Public function ParseMacros(const AMacroString: WideString; ACustomValues: TMacroValues = nil; ACustomVars: TidElement = nil): WideString;
Public function IsSameItemAs (const AFilename: WideString; const AMediumType: TMediumType; const AMediumName: WideString; const AMediumSerial: Integer): Boolean;
Public function IsSameFileAs (AItem: TCatalogItem): Boolean;
Public procedure PushToImage (AImg: TImageItem; AWithThumb: Boolean = True);
Public procedure PopFromImage (AImageItem: TImageItem; WithThumb: Boolean = True);
Public function IsFileChanged: Boolean;
Public function IsGEOTagged: Boolean;
Public function IsMainVersion: Boolean;
Public function IsVersionType_ (AType: TCatalogVersionPlaceHolderType): Boolean;
Public function AddVersionType_ (AType: TCatalogVersionPlaceHolderType): Boolean;
Public function RemoveVersionType_ (AType: TCatalogVersionPlaceHolderType): Boolean;
Public procedure CreateThumb (ASettings: TResizeSettings; AQuality: Integer; AMediumSettings: TResizeSettings = nil; AMediumQuality: Integer = 85);
Public function MediumLoaded: Boolean;
Public function MediumReadOnly: Boolean;
Public function IsJpeg: Boolean;
Public function ImageDimensions: WideString;

Properties

Public property _MainVersionGUID: String read F_MainVersionGUID write F_MainVersionGUID;
Public property _FixedGUID: Boolean read F_FixedGUID write F_FixedGUID;
Public property FileType: WideString read GetFileType;
Public property MetaFileStamp: TDateTime read GetMetaFileStamp;
Public property MetaFileSize: Int64 read GetMetaFileSize;
Public property IsVideo: Boolean read GetIsVideo;
Public property MediumSerialHex: String read GetMediumSerialHex;
Public property CatalogMatchLevel: TCatalogMatchLevel read FCatalogMatchLevel write FCatalogMatchLevel;
Public property Tag: PtrInt read FTag write FTag;
Public property TagObject: TObject read FTagObject write FTagObject;
Public property OwnedTagObject: TObject read FOwnedTagObject write FOwnedTagObject;
Published property PathGUID : String read FPathGUID write FPathGUID;
Published property GroupGUID : String read FGroupGUID write FGroupGUID;
Published property GroupOrder : Integer read FGroupOrder write FGroupOrder;
Published property GroupMarkers : TStackMarkers read FGroupMarkers write FGroupMarkers;
Published property DateTimeStamp: TDateTime read FDateTimeStamp write FDateTimeStamp;
Published property Rating : Integer read FRating write FRating;
Published property ColorLabel : WideString read FColorLabel write FColorLabel;
Published property FileSize : Int64 read FFileSize write FFileSize;
Published property FileStamp : TDateTime read FFileStamp write FFileStamp;
Published property UDF1 : WideString read FUDF1 write FUDF1;
Published property UDF2 : WideString read FUDF2 write FUDF2;
Published property UDF3 : WideString read FUDF3 write FUDF3;
Published property UDF4 : WideString read FUDF4 write FUDF4;
Published property UDF5 : WideString read FUDF5 write FUDF5;
Published property PlaceHolders: TCatalogVersionPlaceHolderTypes read FPlaceHolders write FPlaceHolders;
Published property UserGUID : String read FUserGUID write FUserGUID;
Published property VersionCount : Integer read FVersionCount write FVersionCount;
Published property IsVersion : Boolean read FIsVersion write FIsVersion;
Published property PropCount : Integer read FPropCount write FPropCount;
Published property AttCount : Integer read FAttCount write FAttCount;
Published property InSync : TSyncState read FInSync write FInSync;
Published property Bookmark : TBookmarker read FBookmark write FBookmark;
Published property Signature : AnsiString read FSignature write FSignature;
Published property FileSignature : AnsiString read FFileSignature write FFileSignature;
Published property SimilarityCode : String read FSimilarityCode write FSimilarityCode;
Published property AvgColor : String read FAvgColor write FAvgColor;
Published property ColorChannel : TColorChannel read FColorChannel write FColorChannel;
Published property Ratio : Double read FRatio write FRatio;
Published property Sharpness : Double read FSharpness write FSharpness;
Published property NormalizedRatio: Double read GetNormalizedRatio stored false;
Published property LastUpdate : TDateTime read FModifiedAt write FModifiedAt stored false;
Published property ImportDate : TDateTime read FCreatedAt write FCreatedAt stored false;
Published property Remark : WideString read FRemark write FRemark;
Published property _Latitude: Double read F_Latitude write F_Latitude;
Published property _Longitude: Double read F_Longitude write F_Longitude;
Published property _Altitude: Double read F_Altitude write F_Altitude;
Published property _HasRecipe: Boolean read F_HasRecipe write F_HasRecipe;
Published property _SyncCommand: TXMPSyncCommand read F_SyncCommand write F_SyncCommand;
Published property Definition : TCatalogItemProps read GetDefinition write SetDefinition;
Published property Data : TObject read FData write FData;

Description

Methods

Public procedure AfterConstruction; override;

also check a customized BaseAssign procedure!

Public procedure BeforeDestruction; override;
 
Public procedure Assign (ASource: TObject); override;
 
Public procedure BaseAssign (ASource: TObject; AssignClasses: Boolean); override;
 
Public procedure StoreToDataSet (ADataSet: TDBXOMDataSet); override;
 
Public procedure FillFromDataSet (ADataSet: TDBXOMDataSet); override;
 
Public procedure WriteToJson(AObject: TlkJSONobject; AWithClasses: Boolean); override;
 
Public function LongFileName (const AFileName: WideString; ADriveSerial: Integer): WideString;
 
Public procedure CleanExifCache;
 
Public function ExifFileName: WideString;
 
Public function XMPFileName: WideString;
 
Public function XMPFileNameSave: WideString;
 
Public function XMPSyncFileName: WideString;
 
Public function CanUpdateExif: Boolean;
 
Public function _CanUpdateExif: Boolean;
 
Public procedure UpdateFileInfo;
 
Public function HasXMP: Boolean;
 
Public function HasGPS: Boolean;
 
Public procedure UpdateFileInfoBase;
 
Public function FileNameOnScreen (const AMaxLen: Integer = 50): WideString;
 
Public procedure GenerateSignature(var ASignature: AnsiString; var AFileSignature: AnsiString);
 
Public function TiffOrientationFromXMP(AXmp: TXmp): TTifOrientation;
 
Public function ParseMacros(const AMacroString: WideString; ACustomValues: TMacroValues = nil; ACustomVars: TidElement = nil): WideString;
 
Public function IsSameItemAs (const AFilename: WideString; const AMediumType: TMediumType; const AMediumName: WideString; const AMediumSerial: Integer): Boolean;
 
Public function IsSameFileAs (AItem: TCatalogItem): Boolean;
 
Public procedure PushToImage (AImg: TImageItem; AWithThumb: Boolean = True);
 
Public procedure PopFromImage (AImageItem: TImageItem; WithThumb: Boolean = True);
 
Public function IsFileChanged: Boolean;
 
Public function IsGEOTagged: Boolean;

returns if there is cached GPS coordinates (_Latitude, _Longitude, _Altitude) for this image

Public function IsMainVersion: Boolean;
 
Public function IsVersionType_ (AType: TCatalogVersionPlaceHolderType): Boolean;
 
Public function AddVersionType_ (AType: TCatalogVersionPlaceHolderType): Boolean;
 
Public function RemoveVersionType_ (AType: TCatalogVersionPlaceHolderType): Boolean;
 
Public procedure CreateThumb (ASettings: TResizeSettings; AQuality: Integer; AMediumSettings: TResizeSettings = nil; AMediumQuality: Integer = 85);
 
Public function MediumLoaded: Boolean;
 
Public function MediumReadOnly: Boolean;
 
Public function IsJpeg: Boolean;
 
Public function ImageDimensions: WideString;
 

Properties

Public property _MainVersionGUID: String read F_MainVersionGUID write F_MainVersionGUID;
 
Public property _FixedGUID: Boolean read F_FixedGUID write F_FixedGUID;
 
Public property FileType: WideString read GetFileType;
 
Public property MetaFileStamp: TDateTime read GetMetaFileStamp;
 
Public property MetaFileSize: Int64 read GetMetaFileSize;
 
Public property IsVideo: Boolean read GetIsVideo;
 
Public property MediumSerialHex: String read GetMediumSerialHex;
 
Public property CatalogMatchLevel: TCatalogMatchLevel read FCatalogMatchLevel write FCatalogMatchLevel;
 
Public property Tag: PtrInt read FTag write FTag;
 
Public property TagObject: TObject read FTagObject write FTagObject;
 
Public property OwnedTagObject: TObject read FOwnedTagObject write FOwnedTagObject;
 
Published property PathGUID : String read FPathGUID write FPathGUID;
 
Published property GroupGUID : String read FGroupGUID write FGroupGUID;
 
Published property GroupOrder : Integer read FGroupOrder write FGroupOrder;
 
Published property GroupMarkers : TStackMarkers read FGroupMarkers write FGroupMarkers;
 
Published property DateTimeStamp: TDateTime read FDateTimeStamp write FDateTimeStamp;
 
Published property Rating : Integer read FRating write FRating;
 
Published property ColorLabel : WideString read FColorLabel write FColorLabel;
 
Published property FileSize : Int64 read FFileSize write FFileSize;
 
Published property FileStamp : TDateTime read FFileStamp write FFileStamp;
 
Published property UDF1 : WideString read FUDF1 write FUDF1;
 
Published property UDF2 : WideString read FUDF2 write FUDF2;

copyright info

Published property UDF3 : WideString read FUDF3 write FUDF3;

store the image size, not taken from imageitem (see PushImageItem and PopImageItem

Published property UDF4 : WideString read FUDF4 write FUDF4;

store the artist info (see PushImageItem and PopImageItem

Published property UDF5 : WideString read FUDF5 write FUDF5;
 
Published property PlaceHolders: TCatalogVersionPlaceHolderTypes read FPlaceHolders write FPlaceHolders;
 
Published property UserGUID : String read FUserGUID write FUserGUID;
 
Published property VersionCount : Integer read FVersionCount write FVersionCount;
 
Published property IsVersion : Boolean read FIsVersion write FIsVersion;
 
Published property PropCount : Integer read FPropCount write FPropCount;
 
Published property AttCount : Integer read FAttCount write FAttCount;
 
Published property InSync : TSyncState read FInSync write FInSync;
 
Published property Bookmark : TBookmarker read FBookmark write FBookmark;
 
Published property Signature : AnsiString read FSignature write FSignature;
 
Published property FileSignature : AnsiString read FFileSignature write FFileSignature;
 
Published property SimilarityCode : String read FSimilarityCode write FSimilarityCode;
 
Published property AvgColor : String read FAvgColor write FAvgColor;
 
Published property ColorChannel : TColorChannel read FColorChannel write FColorChannel;
 
Published property Ratio : Double read FRatio write FRatio;
 
Published property Sharpness : Double read FSharpness write FSharpness;
 
Published property NormalizedRatio: Double read GetNormalizedRatio stored false;
 
Published property LastUpdate : TDateTime read FModifiedAt write FModifiedAt stored false;
 
Published property ImportDate : TDateTime read FCreatedAt write FCreatedAt stored false;
 
Published property Remark : WideString read FRemark write FRemark;
 
Published property _Latitude: Double read F_Latitude write F_Latitude;
 
Published property _Longitude: Double read F_Longitude write F_Longitude;
 
Published property _Altitude: Double read F_Altitude write F_Altitude;
 
Published property _HasRecipe: Boolean read F_HasRecipe write F_HasRecipe;
 
Published property _SyncCommand: TXMPSyncCommand read F_SyncCommand write F_SyncCommand;
 
Published property Definition : TCatalogItemProps read GetDefinition write SetDefinition;
 
Published property Data : TObject read FData write FData;
 

Generated by PasDoc 0.15.0.