Describe user-friendly information about an instruction (action or condition), its parameters and the function name as well as other information for code generation.
More...
|
| | InstructionMetadata (const gd::String &extensionNamespace, const gd::String &name, const gd::String &fullname, const gd::String &description, const gd::String &sentence, const gd::String &group, const gd::String &icon, const gd::String &smallIcon) |
| |
| | InstructionMetadata () |
| |
|
const gd::String & | GetFullName () const |
| |
|
const gd::String & | GetDescription () const |
| |
|
const gd::String & | GetSentence () const |
| |
|
const gd::String & | GetGroup () const |
| |
|
ParameterMetadata & | GetParameter (size_t i) |
| |
|
const ParameterMetadata & | GetParameter (size_t i) const |
| |
|
size_t | GetParametersCount () const |
| |
|
const ParameterMetadataContainer & | GetParameters () const |
| |
|
const gd::String & | GetIconFilename () const |
| |
|
const gd::String & | GetSmallIconFilename () const |
| |
|
bool | CanHaveSubInstructions () const |
| |
| const gd::String & | GetHelpPath () const |
| |
| InstructionMetadata & | SetHelpPath (const gd::String &path) |
| |
| bool | IsPrivate () const |
| |
| InstructionMetadata & | SetPrivate () override |
| |
| bool | IsRelevantForLayoutEvents () const |
| |
| bool | IsRelevantForFunctionEvents () const |
| |
| bool | IsRelevantForAsynchronousFunctionEvents () const |
| |
| bool | IsRelevantForCustomObjectEvents () const |
| |
| InstructionMetadata & | SetRelevantForLayoutEventsOnly () override |
| |
| InstructionMetadata & | SetRelevantForFunctionEventsOnly () override |
| |
| InstructionMetadata & | SetRelevantForAsynchronousFunctionEventsOnly () override |
| |
| InstructionMetadata & | SetRelevantForCustomObjectEventsOnly () override |
| |
| bool | IsAsync () const |
| |
| bool | IsOptionallyAsync () const |
| |
| InstructionMetadata & | SetCanHaveSubInstructions () |
| |
| InstructionMetadata & | SetHidden () override |
| | Set the instruction to be hidden in the IDE. More...
|
| |
|
InstructionMetadata & | SetGroup (const gd::String &str) |
| | Set the group of the instruction in the IDE.
|
| |
|
bool | IsHidden () const |
| | Return true if the instruction must be hidden in the IDE.
|
| |
| InstructionMetadata & | AddParameter (const gd::String &type, const gd::String &label, const gd::String &supplementaryInformation="", bool parameterIsOptional=false) override |
| | Add a parameter to the instruction metadata. More...
|
| |
| InstructionMetadata & | AddCodeOnlyParameter (const gd::String &type, const gd::String &supplementaryInformation) override |
| | Add a parameter not displayed in editor. More...
|
| |
| InstructionMetadata & | SetDefaultValue (const gd::String &defaultValue_) override |
| | Set the default value used in editor (or if an optional parameter is empty during code generation) for the last added parameter. More...
|
| |
| InstructionMetadata & | SetParameterLongDescription (const gd::String &longDescription) override |
| | Set the long description shown in the editor for the last added parameter. More...
|
| |
| InstructionMetadata & | SetParameterExtraInfo (const gd::String &extraInfo) override |
| | Set the additional information, used for some parameters with special type (for example, it can contains the type of object accepted by the parameter), for the last added parameter. More...
|
| |
| InstructionMetadata & | UseStandardOperatorParameters (const gd::String &type, const ParameterOptions &options) |
| | Add the default parameters for an instruction manipulating the specified type ("string", "number") with the default operators. More...
|
| |
| InstructionMetadata & | UseStandardRelationalOperatorParameters (const gd::String &type, const ParameterOptions &options) |
| | Add the default parameters for an instruction comparing the specified type ("string", "number") with the default relational operators. More...
|
| |
|
InstructionMetadata & | SetIsObjectInstruction () |
| | Mark the instruction as an object instruction. Automatically called when using AddAction/AddCondition on an ObjectMetadata.
|
| |
|
InstructionMetadata & | SetIsBehaviorInstruction () |
| | Mark the instruction as a behavior instruction. Automatically called when using AddAction/AddCondition on a BehaviorMetadata.
|
| |
|
bool | IsObjectInstruction () const |
| | Check if the instruction is an object instruction.
|
| |
|
bool | IsBehaviorInstruction () const |
| | Check if the instruction is a behavior instruction.
|
| |
|
InstructionMetadata & | SetRequiresBaseObjectCapability (const gd::String &capability) |
| | Mark this (object) instruction as requiring the specified capability, offered by the base object. This is useful for some objects that don't support this capability, so that the editor can hide the instruction as it does not apply to them.
|
| |
|
const gd::String & | GetRequiredBaseObjectCapability () const |
| | Get the required specified capability for this (object) instruction, or an empty string if there is nothing specific required.
|
| |
|
InstructionMetadata & | MarkAsSimple () |
| | Consider that the instruction is easy for a user to understand.
|
| |
|
InstructionMetadata & | MarkAsAdvanced () |
| | Consider that the instruction is harder for a user to understand than a normal instruction.
|
| |
|
InstructionMetadata & | MarkAsComplex () |
| | Consider that the instruction is complex for a user to understand.
|
| |
|
int | GetUsageComplexity () const |
| | Return the usage complexity of this instruction for the user, from 0 (simple&easy to use) to 10 (complex to understand).
|
| |
| InstructionMetadata & | SetFunctionName (const gd::String &functionName_) override |
| |
| InstructionMetadata & | SetAsyncFunctionName (const gd::String &functionName_) |
| |
| const gd::String & | GetFunctionName () |
| |
| const gd::String & | GetAsyncFunctionName () |
| |
| InstructionMetadata & | SetManipulatedType (const gd::String &type_) |
| | Declare if the instruction being declared is somewhat manipulating in a standard way. More...
|
| |
| const gd::String & | GetManipulatedType () const |
| | Return the type manipulated in a standard way by the instruction. More...
|
| |
| InstructionMetadata & | SetGetter (const gd::String &getter) |
| |
|
InstructionMetadata & | SetMutators (const std::map< gd::String, gd::String > &mutators) |
| |
| InstructionMetadata & | SetIncludeFile (const gd::String &includeFile) override |
| | Erase any existing include file and add the specified include. More...
|
| |
|
InstructionMetadata & | AddIncludeFile (const gd::String &includeFile) override |
| | Add a file to the already existing include files.
|
| |
|
const std::vector< gd::String > & | GetIncludeFiles () const override |
| | Get the files that must be included to use the instruction.
|
| |
|
InstructionMetadata & | SetCustomCodeGenerator (std::function< gd::String(Instruction &instruction, gd::EventsCodeGenerator &codeGenerator, gd::EventsCodeGenerationContext &context)> codeGenerator) |
| |
|
InstructionMetadata & | RemoveCustomCodeGenerator () |
| |
|
bool | HasCustomCodeGenerator () const |
| |
| InstructionMetadata & | GetCodeExtraInformation () |
| | Return the structure containing the information about code generation for the instruction. More...
|
| |
Describe user-friendly information about an instruction (action or condition), its parameters and the function name as well as other information for code generation.