LEFT | RIGHT |
1 /* | 1 /* |
2 * ***** BEGIN GPL LICENSE BLOCK ***** | 2 * ***** BEGIN GPL LICENSE BLOCK ***** |
3 * | 3 * |
4 * This program is free software; you can redistribute it and/or | 4 * This program is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU General Public License | 5 * modify it under the terms of the GNU General Public License |
6 * as published by the Free Software Foundation; either version 2 | 6 * as published by the Free Software Foundation; either version 2 |
7 * of the License, or (at your option) any later version. | 7 * of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
387 { | 387 { |
388 PropertyRNA *parm; | 388 PropertyRNA *parm; |
389 parm = RNA_def_string(func, "operator", "", 0, "", "Identifier of the op
erator"); | 389 parm = RNA_def_string(func, "operator", "", 0, "", "Identifier of the op
erator"); |
390 RNA_def_property_flag(parm, PROP_REQUIRED); | 390 RNA_def_property_flag(parm, PROP_REQUIRED); |
391 } | 391 } |
392 | 392 |
393 static void api_ui_item_op_common(FunctionRNA *func) | 393 static void api_ui_item_op_common(FunctionRNA *func) |
394 { | 394 { |
395 api_ui_item_op(func); | 395 api_ui_item_op(func); |
396 api_ui_item_common(func); | 396 api_ui_item_common(func); |
397 } | |
398 | |
399 RNA_def_property_flag(parm, PROP_REQUIRED|PROP_RNAPTR|PROP_NEVER_NULL); | 397 RNA_def_property_flag(parm, PROP_REQUIRED|PROP_RNAPTR|PROP_NEVER_NULL); |
400 RNA_def_boolean(func, "compact", 0, "", "Use more compact layout"); | 398 RNA_def_boolean(func, "compact", 0, "", "Use more compact layout"); |
401 | 399 |
402 func= RNA_def_function(srna, "template_list", "uiTemplateList"); | 400 func= RNA_def_function(srna, "template_list", "uiTemplateList"); |
403 RNA_def_function_ui_description(func, "Item. A list widget to display da
ta. e.g. vertexgroups"); | 401 RNA_def_function_ui_description(func, "Item. A list widget to display da
ta. e.g. vertexgroups"); |
404 RNA_def_function_flag(func, FUNC_USE_CONTEXT); | 402 RNA_def_function_flag(func, FUNC_USE_CONTEXT); |
LEFT | RIGHT |