Attention!
struct PluginPanelItem
{
#ifndef _FAR_USE_WIN32_FIND_DATA
struct FAR_FIND_DATA FindData;
#else
WIN32_FIND_DATA FindData;
#endif
DWORD PackSizeHigh;
DWORD PackSize;
DWORD Flags;
DWORD NumberOfLinks;
char *Description;
char *Owner;
char **CustomColumnData;
int CustomColumnNumber;
DWORD_PTR UserData;
DWORD CRC32;
DWORD Reserved[2];
};
| Flag | Description |
|---|---|
| PPIF_PROCESSDESCR | Use FAR's internal description processing. This flag can be set for processed files in the DeleteFiles, GetFiles and PutFiles functions. If set, FAR will update the description file contents using file names returned from the GetOpenPluginInfo function. |
| PPIF_SELECTED | In Control functions FCTL_GETPANELINFO,
FCTL_GETANOTHERPANELINFO, FCTL_SETSELECTION and FCTL_SETANOTHERSELECTION this flag allows
to check and set item selection. In PutFiles, GetFiles and ProcessHostFile functions, if an operation has failed, but some of the files were successfully processed, the plugin can remove selection only from the processed files. To perform this, the plugin should clear the PPIF_SELECTED flag in processed items in the
PluginPanelItem list passed to the function.
|
| PPIF_USERDATA | If this flag is set, FAR considers the UserData field a pointer to a user data structure.
Cf. the description of the UserData field.
The low order word of the Flags parameter can be used by a plugin for its own flags. |
NULL. If a plugin uses
standard FAR description processing and has passed description file names to FAR in the
GetOpenPluginInfo function,
this field also must be NULL.
NULL.C0 column type, the second - for C1 and so on.
Up to 10 additional column types from C0 to C9 can be defined.
If not used, set this field to NULL.PPIF_USERDATA in the Flags field. This allows FAR to copy the structure
correctly to FAR internal buffers and later pass it to the plugin in PluginPanelItem
lists. In the FreeFindData function the plugin
must free the memory occupied by this additional structure.
NULL.