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-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-19fix for filesel autocomplete, it had the annoying behavior if you entered in ↵Campbell Barton
a non-existing name, of executing it and then asking to add the dir.
2013-06-13fix [#35346] Python: still UI issue with popup and dropdown listCampbell Barton
2013-06-09Code cleanup: removed some unused UI button typesBrecht Van Lommel
* CHARTAB: not needed anymore with improved copy/paste support and text input. * IDPOIN: replaced by SEARCH_MENU. * ICONROW/ICONTEXTROW: replaced by RNA enums. * NUMABS: can use min/max limits instead. * BUT_TOGDUAL, TOG3, TOGR, SLI: not used in 2.5 interface.
2013-06-07add support for storing text styles in themes.Campbell Barton
also reset text styles when resetting to the default theme.
2013-05-02fix [#35178] Autoselect-in-list for Vertex Group selection doesn't work.Campbell Barton
disallow assigning values that don't exist into a text field with a search-box.
2013-04-30use const vars for UI arrays.Campbell Barton
2013-04-27"Bug" & usability fix, own collection.Ton Roosendaal
Color Pickers in Blender support precision editing with holding Shift key. Unfortunately, on first click the picker cursor moves to the mouse position, making the precision dragging quite useless. Now, if you hold Shift, the picker editing will only apply the delta motion of your mouse drags, making it much nicer for fine tuning of color grades in Sequencer or Compositor.
2013-04-23fix [#35055] Crash in Edit Source feature for multilevel menusCampbell Barton
dont show the option when operating on a menu since its not supported.
2013-04-15Fix: when using a search menu with an operator's enum prop, the operator was ↵Bastien Montagne
previously always executed with default options (appart from the search-set enum, of course). Now we store the op's properties in search button, so that you can specify non-default options (as it was already possible with e.g. pop-up menu from an operator's enum prop). To achieve this, some code (callbacks and search button creation) was moved from wm_operators.c to interface/interface.c, and a new UI function was added, uiDefSearchButO_ptr. Note: This new code uses the fact that uiButHandleFunc callbacks get executed before operator when one of its arg is the button itself! Many thanks to Campbell who helped me a lot with this patch! Cleanup: also removed two unused pointers from uiBut struct.
2013-04-11fix [#34936] Unable to select items using only the arrow keysCampbell Barton
ignore small mouse motions for menu/search-box after using the keyboard to navigate.
2013-04-04code cleanup: use bools in interface handlers, dont show translation menu ↵Campbell Barton
when right clicking on splash, use less confusing args for copy/paste function.
2013-04-04code cleanup: use bools in UI and WM code, quiet some shadow warnings, ↵Campbell Barton
remove unused function uiEmboss()
2013-03-26style cleanup:Campbell Barton
also rename mesh_getVertexCos() --> BKE_mesh_vertexCos_get() to match curve function.
2013-03-23Code cleanuo:Thomas Dinges
* Remove already commented "use_radiosity" flag from RNA. * Remove some commented exceptions for old 2.4x 3D View preview region. * Remove empty and commented function declarations from 2.4x UI times
2013-03-18Merge of the PyNodes branch (aka "custom nodes") into trunk.Lukas Toenne
PyNodes opens up the node system in Blender to scripters and adds a number of UI-level improvements. === Dynamic node type registration === Node types can now be added at runtime, using the RNA registration mechanism from python. This enables addons such as render engines to create a complete user interface with nodes. Examples of how such nodes can be defined can be found in my personal wiki docs atm [1] and as a script template in release/scripts/templates_py/custom_nodes.py [2]. === Node group improvements === Each node editor now has a tree history of edited node groups, which allows opening and editing nested node groups. The node editor also supports pinning now, so that different spaces can be used to edit different node groups simultaneously. For more ramblings and rationale see (really old) blog post on code.blender.org [3]. The interface of node groups has been overhauled. Sockets of a node group are no longer displayed in columns on either side, but instead special input/output nodes are used to mirror group sockets inside a node tree. This solves the problem of long node lines in groups and allows more adaptable node layout. Internal sockets can be exposed from a group by either connecting to the extension sockets in input/output nodes (shown as empty circle) or by adding sockets from the node property bar in the "Interface" panel. Further details such as the socket name can also be changed there. [1] http://wiki.blender.org/index.php/User:Phonybone/Python_Nodes [2] http://projects.blender.org/scm/viewvc.php/trunk/blender/release/scripts/templates_py/custom_nodes.py?view=markup&root=bf-blender [3] http://code.blender.org/index.php/2012/01/improving-node-group-interface-editing/
2013-03-07avoid calling glGetFloatv() twice when UI_RB_ALPHA is enabled with uiRoundBox()Campbell Barton
2013-03-06fix for bug where array buttons would use -1 index, causing an out-of-bounds ↵Campbell Barton
check on an array. added assert so this wont happen again.
2013-03-04fix [#34490] Copy and paste floating point number fields losses precisionCampbell Barton
- copy now gets up to 6 decimal places - copy and UI float button editing now strip zeros: 1.000 -> 1.0
2013-03-01code cleanup: minor refactor of button pressed state checking, needed for ↵Campbell Barton
drag toggle fix.
2013-02-26simplify drag toggle operator, use BLI_rctf_isect_segment between mouse ↵Campbell Barton
events rather then many calls to ui_but_find_mouse_over().
2013-02-22Toggle-Drag UI FeatureCampbell Barton
Dragging on toggle buttons can now be used to press multiple buttons at once, especially useful for layer and outliner buttons. notes: - automatically enabled for all toggle buttons (may change this if it becomes a problem). - only buttons of the same type are pressed (helps avoid annoyances eg; dragging past layer buttons onto other 3d header buttons and pressing by accident). - automatic axis locking - dragging will lock to X/Y depending on the initial drag direction, makes swipe motions work better, especially with the outliner. implementation details: - may re-implement as a region handler (currently its a modal operator). - checking buttons in-between cursor motion events could be more efficient (but currently works ok). - button execution needs to be improved (currently executing a button thats not under the mouse needed a workaround for passing uiHandleButtonData), requires further changes to UI code, will do next.
2013-02-19Fix #34315: memory leak cancelling move to layer operator, after change to makeBrecht Van Lommel
it not execute immediately when opening the popup.
2013-02-01code cleanup: make wmEvent's 'const' in interface code (reduces manual ↵Campbell Barton
checking that they are not modified).
2013-01-17use define for text offset & seletion.Campbell Barton
and no need to calloc memory for string selection.
2013-01-01Further trackpad work:Ton Roosendaal
When trackpad swipes don't convert to ScrollWheel steps anymore, several hardcoded wheel events need to support swipe too. This adds swipe support to: - Menu item scroll - Search item scroll - ALT + number/slider/swatch values The amount of old style scroll "clicks" is calculated based on how trackad is being mapped to move a mouse pointer. Move it one widget unit = 1 click. The swatch option applies trackpad swipe motion in analog way.
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-13minor editsCampbell Barton
- add BLENDER_QUIT_FILE define. - use const for passing rcti's in widget drawing.
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)
2012-12-11use const char for display deviceCampbell Barton
2012-11-12code cleanup: spelling,Campbell Barton
also initialize bmesh-bevel settings struct to zero to avoid possible uninitialized memory later.
2012-11-06add comments for uiBut a1 and a2 values.Campbell Barton
2012-10-31Fix #31482: menu with scrollers when window is too small, didn't auto scrollBrecht Van Lommel
when using the arrow keys or mouse wheel to activate the next item.
2012-10-26* New string property subtype: PASSWORDJiri Hnidek
When this new subtypes is used, then string of property is hidden using asterisks, e.g.: mysecretpassword -> **************** This code was reviewed and modified by Brecht. Thanks very much: - https://codereview.appspot.com/6713044/ This new subtype of string property is intended mostly for Add-on developers writing Add-on which communicates with some server (http, sql, ftp, verse, etc.). When this server requires user authentication and user has to type username and password, then current API didn't allow to type 'hidden' password, e.g. when you want to demonstrate this script, then everybody can see this security password. Some examples of Add-on which could use this new subtype: - On-line database of textures - Integration of render farm - Integration of Verse Security Notes: - You can copy paste hiddent string of property from text input using (Ctrl-C, Ctrl-V), but you can do this in other GUI toolkits too (this behavior it is widely used). - Text of string property is stored in plain text, but it is widely used in other GUI toolkits (Qt, Gtk, etc.). Simple examples: - https://dl.dropbox.com/u/369894/draw_op_passwd.py - https://dl.dropbox.com/u/369894/blender-password.png
2012-10-05UI: buttons that open menus now align to the menu rather than looking ↵Brecht Van Lommel
disconnected. Also fixed some cases where the menu was offset 1 or 2 pixels wrong, though not quite all of them, still off by 1 pixel sometimes. http://www.pasteall.org/pic/show.php?id=38478
2012-10-04avoid a sqrtf call in ui_hsvcircle_vals_from_pos() for values outside the ↵Campbell Barton
circle.
2012-09-22revert own commit r50501 (have a better way to implement this same feature)Campbell Barton
2012-09-19code cleanup: marker transform was doing some redundant/misleading ↵Campbell Barton
assignments & checks, remove unused cruft. also remove some other redundant checks.
2012-09-15code cleanup: replace macro for BLI_rect size/center with inline functions.Campbell Barton
2012-09-15Color Management, Stage 2: Switch color pipeline to use OpenColorIOSergey Sharybin
Replace old color pipeline which was supporting linear/sRGB color spaces only with OpenColorIO-based pipeline. This introduces two configurable color spaces: - Input color space for images and movie clips. This space is used to convert images/movies from color space in which file is saved to Blender's linear space (for float images, byte images are not internally converted, only input space is stored for such images and used later). This setting could be found in image/clip data block settings. - Display color space which defines space in which particular display is working. This settings could be found in scene's Color Management panel. When render result is being displayed on the screen, apart from converting image to display space, some additional conversions could happen. This conversions are: - View, which defines tone curve applying before display transformation. These are different ways to view the image on the same display device. For example it could be used to emulate film view on sRGB display. - Exposure affects on image exposure before tone map is applied. - Gamma is post-display gamma correction, could be used to match particular display gamma. - RGB curves are user-defined curves which are applying before display transformation, could be used for different purposes. All this settings by default are only applying on render result and does not affect on other images. If some particular image needs to be affected by this transformation, "View as Render" setting of image data block should be set to truth. Movie clips are always affected by all display transformations. This commit also introduces configurable color space in which sequencer is working. This setting could be found in scene's Color Management panel and it should be used if such stuff as grading needs to be done in color space different from sRGB (i.e. when Film view on sRGB display is use, using VD16 space as sequencer's internal space would make grading working in space which is close to the space using for display). Some technical notes: - Image buffer's float buffer is now always in linear space, even if it was created from 16bit byte images. - Space of byte buffer is stored in image buffer's rect_colorspace property. - Profile of image buffer was removed since it's not longer meaningful. - OpenGL and GLSL is supposed to always work in sRGB space. It is possible to support other spaces, but it's quite large project which isn't so much important. - Legacy Color Management option disabled is emulated by using None display. It could have some regressions, but there's no clear way to avoid them. - If OpenColorIO is disabled on build time, it should make blender behaving in the same way as previous release with color management enabled. More details could be found at this page (more details would be added soon): http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.64/Color_Management -- Thanks to Xavier Thomas, Lukas Toene for initial work on OpenColorIO integration and to Brecht van Lommel for some further development and code/ usecase review!
2012-09-12code cleanup: use an enum for uiBut->pointype (more useful debug display of ↵Campbell Barton
members), and rename COL -> COLOR --- less confusing since the layout engine has row/col's.
2012-09-10change to auto-opening menus so the first menu item in popup menu wont auto ↵Campbell Barton
open. This way we can do predictable key-shortcut-chaining. Eg. Shift+A, M, O --- adds a metaball cone. In editmode Ctrl+V, X, A --- Assign new vertex group.
2012-09-10code cleanup: use typedef'd enum for block bounds types.Campbell Barton
2012-09-10code cleanup:Campbell Barton
use an enum typedef for button types. it was quite annoying debugging UI code since the defines are bit-shifted. GDB would show but->type as 13824 and blender define was (27 << 9). Now but->type shows as a humanly readable names.
2012-09-09fix [#29072] Color pickers don't close properly when moving the mouse awayCampbell Barton
instead of checking if the mouse is over another button to exit the popup. Just check if the mouse is outside the rect-union between the button and the popup.
2012-09-03code cleanup: split out defines in BKE_utildefines.h into BLO_blend_defs.h ↵Campbell Barton
and ui defines in interface_intern.h
2012-08-26code cleanup: comments and some minor edits to interface code.Campbell Barton
2012-08-18use rctf struct for UI buttons and blocks, easier to read and means we can ↵Campbell Barton
use BLI_rctf functions.
2012-08-17fix for crash showing tooltip for NODE_OT_add_search()Campbell Barton
2012-07-17option to clear all keys from a button, so you dont have to hunt about for ↵Campbell Barton
the keys inserted.