#include <lib_browser.h>
Interface for browser plugins.
Public Member Functions | |
SDKBrowserPluginInterfaceInfo () | |
SDKBrowserPluginRef | GetPlugin (void) const |
Private Attributes | |
SDKBrowserPluginRef | plugin |
Friends | |
class | SDKBrowser |
SDKBrowserTab | |
enum | { PreviewTab, InfoTab, PrivateTab0, PrivateTab1, PrivateTab2, PrivateTab3, PrivateTab4, PrivateTab5, PrivateTab6, PrivateTab7 } |
SDKBrowserItemType | |
enum | { BasicItemType, SpecificItemType, HierarchicalItemType } |
SDKBrowserIdentification | |
enum | { SlowIdentification } |
SDKBrowserOpen | |
enum | { Merge } |
Plugin ID | |
virtual Int32 | GetPluginID (String *plugin_name=0)=0 |
Identify | |
virtual Bool | Identify (const SDKBrowserURL &url, UChar *probe, Int32 size, UInt32 flags)=0 |
Types | |
virtual String | GetTypeName (const SDKBrowserContentNodeRef node, const SDKBrowserURL *url, Int32 mode)=0 |
virtual void | GetTypeNames (Int32 mode, maxon::BaseArray< String > &strings)=0 |
Preview Bitmap | |
virtual SDKBrowserPreviewData * | OpenPreviewBitmap (BaseThread *thread, const SDKBrowserContentNodeRef node, const SDKBrowserURL *url, SDKBrowserPreviewInfo *info)=0 |
virtual void | ClosePreviewBitmap (SDKBrowserPreviewData *data)=0 |
virtual BaseBitmap * | GetPreviewBitmap (SDKBrowserPreviewData *data, Int32 w, Int32 h, Int32 quality)=0 |
Preview Dialog | |
virtual SubDialog * | OpenPreviewDialog (SDKBrowserContentNodeRef node, Int32 tab_id)=0 |
virtual Int32 | ClosePreviewDialog (SDKBrowserContentNodeRef node, SubDialog *s)=0 |
virtual Int32 | UpdatePreviewDialog (SDKBrowserContentNodeRef node, SubDialog *s)=0 |
Open | |
virtual Bool | Open (SDKBrowserContentNodeRef node, const SDKBrowserURL *url, Int32 flags)=0 |
Icon | |
virtual SDKBrowserIcon * | GetIcon (const SDKBrowserURL &url, Int32 pref_wh=0)=0 |
anonymous enum |
anonymous enum |
anonymous enum |
Constructor.
SDKBrowserPluginRef GetPlugin | ( | void | ) | const |
Retrieves the corresponding plugin.
Called to retrieve the ID and name of the plugin.
[in] | plugin_name | Assigned the name of the plugin, unless the pointer is nullptr. |
|
pure virtual |
Called to identify a file.
[in] | url | The file URL. |
[in] | probe | The start of a small chunk of data from the start of the file for testing this file type. Usually the probe size is 1024 bytes. |
[in] | size | The probe size. |
[in] | flags | The identification flags. See SDKBrowserIdentification above. |
|
pure virtual |
Called to retrieve the kind of data that is handled by the plugin. For example "Image", "Scene", "Material" etc.
[in] | node | A browser node. Can be nullptr. |
[in] | url | A URL. Can be nullptr. |
[in] | mode | The mode. See SDKBrowserItemType above. |
|
pure virtual |
Called to retrieve the descriptions for all kinds of data that will be handled by the plugin.
[in] | mode | The mode. See SDKBrowserItemType above. |
[out] | strings | Strings to fill. |
|
pure virtual |
Called to open a preview bitmap.
[in] | thread | The current thread. |
[in] | node | A node. |
[in] | url | A URL. |
[in] | info | The preview information. |
|
pure virtual |
Called to close the preview bitmap in data.
[in] | data | A preview handle. |
|
pure virtual |
Called to retrieve the preview bitmap from a handle.
[in] | data | The preview handle. |
[in] | w | The width in pixels. |
[in] | h | The height in pixels. |
[in] | quality | The quality. See SDKBrowserPreviewQuality above. |
|
pure virtual |
Called to retrieve a plugin specific preview sub-dialog for the content node preview.
[in] | node | A node. |
[in] | tab_id | The tab ID. See SDKBrowserTab above. |
|
pure virtual |
Called when the preview sub-dialog is not used anymore.
[in] | node | A node. |
[in] | s | The sub-dialog to close. |
|
pure virtual |
Called to update the current preview sub-dialog.
[in] | node | A node. |
[in] | s | The sub-dialog to update. |
|
pure virtual |
Called to open a content node.
[in] | node | A node. |
[in] | url | A URL. |
[in] | flags | The flags. See SDKBrowserOpen above. |
|
pure virtual |
Called to retrieve an icon for a kind of file (does not have to be a preview for this specific file).
[in] | url | A URL. |
[in] | pref_wh | The preferred width/height of the icon. |
|
friend |
|
private |