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-11-21Squashed commit of the following:Bastien Montagne
commit b8b7180760b7c57f15b9930c29207febcf5fefb3 Author: Bastien Montagne <montagne29@wanadoo.fr> Date: Thu Nov 21 16:31:16 2013 +0100 Code cleanup: replace "LISTLABEL" button type by an "UI_BUT_LIST_ITEM" button flag. Summary: Rationals: I) I was never that happy to have a full button type just to set custom colors to labels inside listitems! II) If we use (as planned) TEX buttons instead of labels to allow listitems click-rename, I'd like to be able to use listitems' theme color here as well, much easier witha flag than adding yet another button type! Note: related to D8 Reviewers: brecht Differential Revision: http://developer.blender.org/D25
2013-11-21Squashed commit of the following:Bastien Montagne
commit 6f97e194e58aab38d351c796bf7bb6abca33f5f9 Author: Bastien Montagne <montagne29@wanadoo.fr> Date: Wed Nov 20 21:18:20 2013 +0100 Code cleanup: Move some uiBut->flag to uiBut->drawflag, make those flags anonymous enums. Summary: Make some room in but->flag (I did not add another flag, we already have drawflag, which was nearly not used up till now). Note: I’m not sure whether REDALERT (and perhaps even DISABLED?) should not go to but->drawflag as well... Related to D8 Reviewers: brecht Differential Revision: http://developer.blender.org/D22
2013-11-18Patch T37363: Highlight bone layers with active bones (as for Object Layers)Joshua Leung
Patch by Jose Molina Garcia (sentinel), with style fixes by myself.
2013-11-18Code cleanup - Reduce duplication of layer number calculations hereJoshua Leung
2013-11-09uiList: fix another bug, where active item labels in sublayouts would not ↵Bastien Montagne
get colored as active (need recursion in sublayouts!). Was affecting e.g. Group node inputs/outputs lists.
2013-11-07Fix [#34675] *AFTER 2.69* Info view shows duplicate operators with incorrect ↵Bastien Montagne
values of args Refactored a bit WM api to generate operator's pystring, now it can also handle correctly macro operators. Thanks to Campbell for the review!
2013-10-12Revert both own r60700 and r60702. API behavior for expanded enums is ↵Bastien Montagne
completly inconsistent, but again, better to do such changes (soft-breaking API) in bulk...
2013-10-12Followup to own r60700, fix was not correct... In fact, beahivor of expanded ↵Bastien Montagne
enums is not consistent with other properties, as there labels are never shown. Keep it for now, though, as this would break many scripts and ui file, better to do this in bulk! Thanks to DingTo and plasmasolutions for notifying the issue.
2013-10-12Fix obvious error in expanded enum layout code, given uiname would never be ↵Bastien Montagne
use...
2013-10-09re-enable activating the text input field for new popup dialog boxes,Campbell Barton
I'd disabled this for 2.68 since it caused bug [#36109]. This fix now only enabled text activation for popups. (so the toolbar textboxes are skipped)
2013-09-03display angle in axis/angle buttons as degrees as with euler rotations.Campbell Barton
2013-08-27uiLists enhacements: dragresize and better GRID layout.Bastien Montagne
Many thanks to Brecht for the review! * You can now drag-resize uiLists (in default or grid layouts). ** Note about "default" size: when you drag below minimal size of the uiList, it will automatically reset to automatic sizing (i.e. size between rows and maxrows, depending on the number of items to show). This often means (e.g. in Materials list with many mat slots) that the list will grow again to maxrows! * Grid uiLists now have a customizable number of columns (previously it was a fixed value of 9), and they will respect the rows/maxrows settings as well (i.e. show a scrollbar when needed), instead of growing indefinitly!
2013-08-23UI layout: Fix the fact that children layouts were implicitely ↵Bastien Montagne
inconditionnaly aligned when the parent was. E.g.in col = layout.column(True) row = col.row(False) Items in row would be 'aligned' in the same group as those in col. Now to get this happening, you have to set row as aligned as well. Please note that fixes for py UI scripts will follow in another commit. Also fixed labels of RNA pointers searchboxes, which were missing the colon!
2013-08-04avoid runtime overflow (1 << 31), for RNA and armature layer UI.Campbell Barton
2013-07-12fix [#36109] UI softlock when first property of an operator is StringCampbell Barton
disable editing a string on operator UI popups, causes feedback loop
2013-07-10fix [#36073] Changing list items misses undo pushCampbell Barton
2013-06-26Fix [#35750] list items in properties editor (text colors not following list ↵Bastien Montagne
item theme). Issue goes back since we stopped using LISTROW button to draw item's name (i.e. since we have custom buttons in list items!). This commit: * Adds a new flag to uiBlock, UI_BLOCK_LIST_ITEM, to mark blocks used for each list item. * Adds a new button type, LISTLABEL, which basically behaves exactly as LABEL, but uses wcol_list_item color set. * When uiItemL is called, it checks whether current block has UI_BLOCK_LIST_ITEM set, and if so, switch produced button to LISTLABEL type. * Adds a new helper func, ui_layout_list_set_labels_active, called after the active list item has been "drawn", to set all LISTLABEL buttons as UI_SELECT. Note custom widget_state_label() was removed, in interface_widgets.c, as it did nothing more than default widget_state(). Thanks to Brecht for the review and advices.
2013-06-25Fix #35715: graph editor > channels > move.. menu item showed wrong keyboard ↵Brecht Van Lommel
shortcut.
2013-06-19Fix for expanded enums with icon_only enabled, name of each item was still ↵Bastien Montagne
used to compute its button's size!
2013-06-13Fix #35715: incorrect shortcut shown for some menus after recent code ↵Brecht Van Lommel
refactoring.
2013-06-01style cleanupCampbell Barton
2013-05-30fix for incorrect use of strncat in uiItemMenuEnumOCampbell Barton
2013-05-23Fix stack corruptions in special casesSergey Sharybin
Issue was caused by wrong array length used for result of name_uiprefix_id, which shall actually be 1 byte bugger than MAX_ID_NAME. Reported by Sebastian Koenig in IRC.
2013-05-12Fix for [#35224] Transform Orientation - order inconsistencyBastien Montagne
Fix turned out to remove as much "manual UI" from 3D view header as possible. Mode selector and all transform manipulators/orientations stuff are now RNA-based UI (leaving basically only edit mesh select modes with custom handlers, as they have some quite specific features). To achieve this, four main modifications were done: * enum-operator-generated menus are now MENU (i.e. dropdown lists) in headers too. * All bit-flag enums expanded in ROW buttons now have a handling consistent with e.g. layers, or what we already have for transform manipulators, i.e. clicking select only one element, shift-click to select multiple ones. * Consequently, the three RNA booleans manipulators flags are merged into a single bit-flag enum (yes, this is also an API change, though I doubt many scripts use it). * Now the width of enum-based dropdown lists is computed from longest item name in enum, no more from a dummy place holder string (when no label/name is given). All this allows to remove some code from 3DView/transform areas, that was actually mostly duplicating RNA/operator one. Also done a few optimizations here and there (among others, do not pass &numitems to RNA_property_enum_items() when you do not need it, saves at least an iteration over enum items to count them). Many thanks to Brecht for the reviews!
2013-05-11style cleanupCampbell Barton
2013-05-11Fix #35262: assiging shortcuts from e.g. delete or selection mode menus did notBrecht Van Lommel
work anymore. This was due to a bugfix to show missing shortcut keys for e.g. the mesh > vertices > separate menu. Both should work now.
2013-05-08code cleanup: use 'const float[2]' where possible.Campbell Barton
2013-05-03adjustment to own commit r56463.Campbell Barton
when strings use 'PROP_NEVER_NULL' we still want them to show an unlink button.
2013-05-02don't show an 'X' next to never-null pointer search menus.Campbell Barton
also set ShapeKey.relative_key to never-null.
2013-04-08Fix #34875: 0 digits of precision was not supported for FloatProperty, nowBrecht Van Lommel
you can specify precision=0 for this, and use -1 for the default 2.
2013-04-04code cleanup: use bools in UI and WM code, quiet some shadow warnings, ↵Campbell Barton
remove unused function uiEmboss()
2013-03-21Fix for extra string width padding in ui_text_icon_width, causing labels in ↵Lukas Toenne
right-aligned layouts show an annoying gap. If the layout is right-aligned, make the text button align right as well, so text is drawn at the right side of the alloted rect.
2013-03-20code cleanup: use booleans for mesh and selection code.Campbell Barton
2013-03-16Any ID Selector Template: ID Type dropdown now shows icon only as originallyJoshua Leung
intended Finally, I've figured out a way to get the ID Selector Template to only show the icon for the type of ID block (i.e. the intended design), instead of icon+text. This improves the layout a bit, as previously the type selector and ID-block pointer and label would all be the same sizes (roughly 1/3rd of the overall width each), which meant that there wasn't much room left to actually see which datablock had been selected. Additionally, I've fixed a few more layout types which still didn't correctly propagate the red-alert flags.
2013-03-15Add the possibility to define the translation context for py rna classes ↵Bastien Montagne
(operators, panels and menus). Thanks to Campell and Brecht for the reviews!
2013-02-28Invalid Driver Targets are now indicated appropriately (using Red Backgrounds)Joshua Leung
in the UI This is the second part of the fixes for [#32492], making it easier to identify which part of a driver (i.e. which of its targets) is causing problems A number of additional/related changes needed to be made: * Red-alert status for layouts is now propagated down to child layouts when they are created. This is needed as otherwise some of the templates used in the Graph Editor driver settings won't actually get the red-alert status flushed down to them. Also, note that this status needs to be set before any widgets are added to the layout, or else the settings aren't applied when the relevant widgets get created. * "Single Property" RNA-Paths resulting in out of bounds array access will now trigger an error status and appropriate warnings TODO: * The error tagging doesn't get applied immediately after variables are created, or their types changed * There was also some other weirdness involved when a higher-value flag (1<<10) was used for this setting, which needs further attention
2013-02-05fix [#34113] operator_menu_enum() - Tooltip not showing descriptionsCampbell Barton
second fix from this report which makes the menu show tips even when 'bl_property' isn't set.
2013-02-01style cleanupCampbell Barton
2013-01-31Fix #33874: active UV map chooser in uv editor should not have X button as youBrecht Van Lommel
can't not have an active UV map.
2013-01-24New 'X' icon in search buttons sometimes overlapped text, needs extra space.Ton Roosendaal
2013-01-17fix for arrow keys being reversed in the snap menu (Ctrl+Shift+Tab)Campbell Barton
also - when expanding rna enums into existing menus - don't nest inside a row/column.
2013-01-09Usability fix: Ton Roosendaal
Blender's data link button (typically with menu and searching options) now has a X icon to clear its contents. Before you had to click, delete text, enter. For example: - Object Parent - Modifier objects or vertexgroups This fix saves each user 100 clicks per day, with 100k users that's 3 billion clicks per year!
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-24fix possible bug with ui_item_fit() causing uninitialized variable use.Campbell Barton
2012-12-23style cleanup: wrap long lines (>200)Campbell Barton
2012-12-18Various minor fixes to i18n code (mostly, translation of enum items' ↵Bastien Montagne
tooltips was wrongly bound to iface option, not tooltips one, and recent changes in r53119 were incorectly using BLF_pgettext, made them simpler by using CTX_IFACE_ macro). Also fixed CTX_FOO_ macros when building without i18n, those were kinda wrong. And hid i18n ui section in userpreferences when built without its support too.
2012-12-18some speedup by avoiding translation on entire enum arrays, and just ↵Campbell Barton
translate the single name that ends up being used.
2012-12-13style cleanup: changes from recent commitsCampbell Barton
2012-12-12Holiday coding log :)Ton Roosendaal
Nice formatted version (pictures soon): http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.66/Usability Short list of main changes: - Transparent region option (over main region), added code to blend in/out such panels. - Min size window now 640 x 480 - Fixed DPI for ui - lots of cleanup and changes everywhere. Icon image need correct size still, layer-in-use icon needs remake. - Macbook retina support, use command line --no-native-pixels to disable it - Timeline Marker label was drawing wrong - Trackpad and magic mouse: supports zoom (hold ctrl) - Fix for splash position: removed ghost function and made window size update after creation immediate - Fast undo buffer save now adds UI as well. Could be checked for regular file save even... Quit.blend and temp file saving use this now. - Dixed filename in window on reading quit.blend or temp saves, and they now add a warning in window title: "(Recovered)" - New Userpref option "Keep Session" - this always saves quit.blend, and loads on start. This allows keeping UI and data without actual saves, until you actually save. When you load startup.blend and quit, it recognises the quit.blend as a startup (no file name in header) - Added 3D view copy/paste buffers (selected objects). Shortcuts ctrl-c, ctrl-v (OSX, cmd-c, cmd-v). Coded partial file saving for it. Could be used for other purposes. Todo: use OS clipboards. - User preferences (themes, keymaps, user settings) now can be saved as a separate file. Old option is called "Save Startup File" the new one "Save User Settings". To visualise this difference, the 'save startup file' button has been removed from user preferences window. That option is available as CTRL+U and in File menu still. - OSX: fixed bug that stopped giving mouse events outside window. This also fixes "Continuous Grab" for OSX. (error since 2009)