Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-01-28Fix [#34023] r54146 breaks name-display of default "UI_UL_list"Bastien Montagne
draw_item *is* optional (it then uses default C function), even though there is not much sense to register a class without it, except for our default UI_UL_list!
2013-01-28Fix for errors caused by fixing RNA function register flags. Default UIList ↵Lukas Toenne
class now has a dummy draw_item callback. Panel draw_header is now optional (most panel classes don't define it).
2013-01-20Python i18n API. Many thanks to Campbell and Brecht for the reviews and ↵Bastien Montagne
suggestions! This commit adds: * A new bpy.app.translations module giving some info about locales/translation stuff (current active locale, all locales currently known by blender, all translation contexts currently defined, etc.). * The ability for addons to feature translations, using the (un)register functions of above module. * Also cleans up "translate py string when storing into RNA prop" by removing "PROP_TRANSLATE" string's subtype, and adding a PROP_STRING_PY_TRANSLATE flag instead (this way it is no more exposed to python...). Addon translations work with py dictionaries: each addon features a dict {lang: {(context, message): translation, ...}, ...}, which is registered when the addon is enabled (and unregistered when disabled). Then, when a key (context, message) is not found in regular mo catalog, a cache dict for current locale is built from all registered addon translations, and key is searched in it. Note: currently addons writers have to do all the work by hand, will add something (probably extend "edit translation" addon) to automate messages extraction from addons soon(ish)! To get a look to expected behavior from addons, have a look at render_copy_settings/__init__.py and render_copy_settings/translations.py (rather stupid example currently, but...). Once we have a complete process, I'll also update relevant wiki pages.
2013-01-09remove uiPanelClearType(), instead redraw all windows when ↵Campbell Barton
registering/unregistering.
2013-01-09avoid having dangling panel pointers in the interface, unregistering addons ↵Campbell Barton
could leave the interface pointing to freed memory.
2013-01-09add RNA_def_struct_ptr(...) to use for runtime struct registration, saves ↵Campbell Barton
over 2000 string lookups on startup and gives overall ~10% speedup for starting blender on my system.
2013-01-05Remove some uneeded/irrelevant "PROP_TRANSLATE".Bastien Montagne
This sub-type is actually *only* needed for the "text" property of UI rna api (maybe we should rename it to "PROP_PY_TRANSLATE", as it is anyway only 'active' during conversion from py string to RNA string property...). In fact, I think it should only be used in RNA func properties anyway, as it stores the translated string into the property, it should only be used with "one time" RNA stuff...
2012-12-28style cleanup: var naming for ui listCampbell Barton
2012-12-28This commit frees list ui items from their dependencies to Panel, and hence ↵Bastien Montagne
from all the limitations this implied (mostly, the "only one list per panel" one). It introduces a new (py-extendable and registrable) RNA type, UIList (roughly similar to Panel one), which currently contains only "standard" list's scroll pos and size (but may be expended to include e.g. some filtering data, etc.). This now makes lists completely independent from Panels! This UIList has a draw_item callback which allows to customize items' drawing from python, that all addons can now use. Incidentally, this also greatly simplifies the C code of this widget, as we do not code any "special case" here anymore! To make all this work, other changes were also necessary: * Now all buttons (uiBut struct) have a 'custom_data' void pointer, used currently to store the uiList struct associated with a given uiLayoutListBox. * DynamicPaintSurface now exposes a new bool, use_color_preview (readonly), saying whether that surface has some 3D view preview data or not. * UILayout class has now four new (static) functions, to get the actual icon of any RNA object (important e.g. with materials or textures), and to get an enum item's UI name, description and icon. * UILayout's label() func now takes an optional 'icon_value' integer parameter, which if not zero will override the 'icon' one (mandatory to use "custom" icons as generated for material/texture/... previews). Note: not sure whether we should add that one to all UILayout's prop funcs? Note: will update addons using template list asap.
2012-12-12Fix for misleading doc string of panel header options.Lukas Toenne
2012-10-21A final bunch of UI messages fixes and tweaks, and some ↵Bastien Montagne
BKE_report()<->BKE_reportf() fixes.
2012-10-13And more UI messages spell check.Bastien Montagne
2012-07-03More spell and typo fixes (mostly visualise->visualize, grey->gray, ↵Bastien Montagne
normalise->normalize).
2012-05-12style cleanup: mostly whitespace in rnaCampbell Barton
2012-04-28Plugin system:Thomas Dinges
* Remove RNA, Operator and UI for Texture and Sequence plugins. Since 2.5x no effort has been done to bring that back, so there is simply no reason in keeping that code and the UI for that ;-) * Low Level code still exists and is unchanged.
2012-04-09fix [#30865] Crash when browsing last operators in outliner (or by Python API)Campbell Barton
Operator descriptions can be NULL pointers, fix this by making use of PROP_NEVER_NULL flag, when its not set, generated string funcs will test for NULL.
2012-03-18Code style edits (mostly spliting long lines, and removing trailing spaces).Bastien Montagne
Note about long lines: I did not touch to two pieces of code (because I don’t see any way to keep a nicely formated, compact code, with shorter lines): * The node types definitions into rna_nodetree_types.h * The vgroup name functions into rna_particle.c
2012-03-09style cleanup: spelling.Campbell Barton
also remove large, duplicate comments from sunsky.h
2012-03-06Code cleanup in rna files (huge, higly automated with py script).Bastien Montagne
Addresses: * C++ comments. * Spaces after if/for/while/switch statements. * Spaces around assignment operators.
2012-02-16Reverting changes in commit r43458.Sergey Sharybin
That was intended change to clear PROP_TRANSLATE flag from bl_label property of operators, panels and menus (see rev40570) If this flag leads to another issues it should be fixed in another way. This fixes #30210: International Font Problem
2012-01-17Poor menu labels were not translated!Bastien Montagne
2011-11-15replace rna description string limits with rna define RNA_DYN_DESCR_MAXCampbell Barton
2011-11-15add support for python __doc__ comments in menu classes showing in the ↵Campbell Barton
tooltip, since menus are used as buttons too.
2011-10-23remove $Id: tags after discussion on the mailign list: ↵Campbell Barton
http://markmail.org/message/fp7ozcywxum3ar7n
2011-10-20replace RNA function string lookups with direct assignments, currently the ↵Campbell Barton
lookup returns the same pointer every time. some of these functions - panel/operator poll for eg, are called many times per redraw so while not a bottleneck its unnecessary.
2011-10-02Minor: Other UI strings typos and tweaks. Also updated french po & mo.Bastien Montagne
2011-09-29Minor: Other UI strings typos and tweaks. Also updated french po & mo.Bastien Montagne
(grrr... That update created tons of new things... back to ~40% done...)
2011-09-26Remove PROP_TRANSLATE flag from labels for operators, menus and panels.Sergey Sharybin
This flag lead to storing translated label for templates and instant language switching became impossible. This labels are display-time translated.
2011-09-21add missing define for last commit and tag bl_label & bl_descriptions for ↵Campbell Barton
translating too
2011-09-19/blender/makesrna: Removed final points in UI strings and messages.Bastien Montagne
Plus a few splits of very long lines…
2011-05-31tag unused rna args.Campbell Barton
2011-05-18RNA: make mechanism used by operators to keep python instance alive more ↵Brecht Van Lommel
generic, to be used by render engine later.
2011-05-18RNA: pass Main rather than Context to register/unregister callbacks.Brecht Van Lommel
2011-05-15remove redundant (and confusing) register flag.Campbell Barton
2011-03-03replace 0 with NULL when used as a pointerCampbell Barton
2011-02-27doxygen: blender/makesrna tagged.Nathan Letwory
2011-02-23doxygen: prevent GPL license block from being parsed as doxygen comment.Nathan Letwory
2011-02-16enum-flag arguments were incorrectly documented.Campbell Barton
2011-01-24Raise an exception when registering classes with ID names which are too ↵Campbell Barton
long. (related to bug ), found while looking into bug [#25776].
2011-01-23Panels that have the "no header" flag set are now always drawn first in a ↵Janne Karhu
tab regardless of the order they were registered. * This is a quick and simple workaround until we can define proper ordering for the panels.
2011-01-07remove references to BKE_utildefines where its not needed.Campbell Barton
- move GS() define into DNA_ID.h - add BLI_utildefines as an automatic include with makesrna generated files.
2011-01-07split BKE_utildefines.h, now it only has blender specific defines like GS() ↵Campbell Barton
MAKE_ID, FILE_MAXDIR, moved the generic defines to BLI_utildefines.h. no functional changes.
2011-01-03rename layout.red_alert to alert, may be themeable some day.Campbell Barton
2011-01-03"Red-Alert" flags can now be set on UI layouts via the RNA API tooJoshua Leung
2010-12-07pass along the context to extension functions, this was already being done ↵Campbell Barton
in all cases except for the render engine. this allows python to NULL its internal context while scripts are not running.
2010-12-04Give functions that use printf style formatting GCC format attributes so if ↵Campbell Barton
incorrect formatting is used the compiler will warn of this. found & fixed 2x incorrect formatting args.
2010-08-26rna api - replace panel properties bl_default_closed and bl_show_header with ↵Campbell Barton
bl_options which has 2 flags: 'DEFAULT_CLOSED' and 'HIDE_HEADER'. this matches operators which also uses bl_options like this
2010-08-19- Properties from base classes are now registered too, this allows class ↵Campbell Barton
mix-in's to define properties. An example of how this is useful - an importer mixin could define the filepath properties and a generic invoke function which can run the subclasses exec for each selected file. - Panels and Menus now skip the property check when registering. - renamed _idproperties_ to _idprops_ in function names, function names were getting very long.
2010-08-17document rna functions that have the no_self flag set as classmethodsCampbell Barton
2010-08-07== docs ==Luca Bonavita
Added some docs mainly in bpy.types.UILayout.html, descriptions by Florian Meyer (testscreenings), thanks.