Classes | |
class | GeResource |
Variables | |
GeResource | g_resource |
Loads a string from the plugins global resource file.
[in] | id | The ID of the string to get. |
String GeLoadString | ( | Int32 | id, |
const maxon::String & | p1 | ||
) |
Loads a string and replace the '#' with the placeholder string.
[in] | id | The ID of the string to get. |
[in] | p1 | The string to insert into the placeholder. |
String GeLoadString | ( | Int32 | id, |
const maxon::String & | p1, | ||
const maxon::String & | p2 | ||
) |
Loads a string and replace the '#' placeholders with the appropriate string.
[in] | id | The ID of the string to get. |
[in] | p1 | The string to insert into the first placeholder. |
[in] | p2 | The string to insert into the second placeholder. |
String GeLoadString | ( | Int32 | id, |
const maxon::String & | p1, | ||
const maxon::String & | p2, | ||
const maxon::String & | p3 | ||
) |
Loads a string and replace the '#' placeholders with the appropriate string.
[in] | id | The ID of the string to get. |
[in] | p1 | The string to insert into the first placeholder. |
[in] | p2 | The string to insert into the second placeholder. |
[in] | p3 | The string to insert into the third placeholder. |
String GeLoadString | ( | Int32 | id, |
const maxon::String & | p1, | ||
const maxon::String & | p2, | ||
const maxon::String & | p3, | ||
const maxon::String & | p4 | ||
) |
Loads a string and replace the '#' placeholders with the appropriate string.
[in] | id | The ID of the string to get. |
[in] | p1 | The string to insert into the first placeholder. |
[in] | p2 | The string to insert into the second placeholder. |
[in] | p3 | The string to insert into the third placeholder. |
[in] | p4 | The string to insert into the fourth placeholder. |
String GeLoadString | ( | Int32 | id, |
const maxon::String & | p1, | ||
const maxon::String & | p2, | ||
const maxon::String & | p3, | ||
const maxon::String & | p4, | ||
const maxon::String & | p5 | ||
) |
Loads a string and replace the '#' placeholders with the appropriate string.
[in] | id | The ID of the string to get. |
[in] | p1 | The string to insert into the first placeholder. |
[in] | p2 | The string to insert into the second placeholder. |
[in] | p3 | The string to insert into the third placeholder. |
[in] | p4 | The string to insert into the fourth placeholder. |
[in] | p5 | The string to insert into the fifth placeholder. |
Bool RegisterDescription | ( | Int32 | id, |
const maxon::String & | idstr, | ||
LocalResource * | res = nullptr |
||
) |
Registers a description for a plugin ID. This is not needed for plugin types whose Register()
functions have a description
parameter.
[in] | id | The plugin ID. If this is a standalone description, use a unique ID. |
[in] | idstr | The name of the description resource file to use for the plugin without .res extension, for example "registered". The name has to be unique, i.e. "Tdisplay" cannot be used for 2 different descriptions. See Description Resource for more information. |
[in] | res | Pass this to search in a specific resource class. Otherwise the default path is used. |
BaseContainer* GetMenuResource | ( | const maxon::String & | menuname | ) |
Gets the menu container of a main menu.
[in] | menuname | The main menu name, e.g. "M_EDITOR" (the same name as on disk or that can be seen in the Menu Editor). |
Bool SearchMenuResource | ( | const BaseContainer * | bc, |
const maxon::String & | searchstr | ||
) |
Searches a menu container for a certain plugin command (which is a string identifier, for example "PLUGIN_CMD_1000472").
[in] | bc | The menu container to search. The caller owns the pointed container. |
[in] | searchstr | The search string. |
const GeData* SearchPluginMenuResource | ( | const maxon::String & | identifier = "IDS_EDITOR_PIPELINE"_s | ) |
Searches for the "Extensions" main menu category in "M_EDITOR".
[in] | identifier | The menu identifier. |
const GeData* SearchPluginSubMenuResource | ( | const maxon::String & | identifier = "IDS_EDITOR_PIPELINE"_s , |
BaseContainer * | bc = nullptr |
||
) |
Searches for the "Extensions" main menu category in "M_EDITOR" or optionally a sub-menu specified by bc.
[in] | identifier | The menu identifier. |
[in] | bc | The sub-menu container. |
Filename GeGetPluginResourcePath | ( | ) |
Gets a plugin's resource path.
void UpdateMenus | ( | ) |
Forces a menu update.
void FreeResource | ( | ) |
Private.
|
extern |
Global resources for Cinema 4D.