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
2011-10-23remove $Id: tags after discussion on the mailign list: ↵Campbell Barton
http://markmail.org/message/fp7ozcywxum3ar7n
2011-10-22- use defines for wmKeyMapItem & wmEvent alt/shift/ctrl/oskeyCampbell Barton
- clear utf8_buf on key up & complain if its set (should never happen)
2011-09-08Fix #28310: import of key configuration with modal keymap not working.Brecht Van Lommel
2011-08-28- use static vars and functions where possible.Campbell Barton
- use NULL rather than 0 when used as pointers.
2011-08-15Fix #28202: deactivating keymap items not saving properly.Brecht Van Lommel
2011-08-11Fix #28180: crash running wm.keyconfigs.user.keymaps.new("My Keymap").Brecht Van Lommel
There isn't much point in doing this at the moment, but shouldn't crash.
2011-08-07Fix #28169: keymap bug when using a preset configuration, e.g. object mode ↵Brecht Van Lommel
keymap was also being used in edit mode.
2011-08-06KEYMAP REFACTORINGBrecht Van Lommel
Diff Keymaps User edited keymaps now no longer override the builtin keymaps entirely, but rather save only the difference and reapply those changes. This means they can stay better in sync when the builtin keymaps change. The diff/patch algorithm is not perfect, but better for the common case where only a few items are changed rather than entire keymaps The main weakness is that if a builtin keymap item changes, user modification of that item may need to be redone in some cases. Keymap Editor The most noticeable change here is that there is no longer an "Edit" button for keymaps, all are editable immediately, but a "Restore" buttons shows for keymaps and items that have been edited. Shortcuts for addons can also be edited in the keymap editor. Addons Addons now should only modify the new addon keyconfiguration, the keymap items there will be added to the builtin ones for handling events, and not get lost when starting new files. Example code of register/unregister: km = wm.keyconfigs.addon.keymaps.new("3D View", space_type="VIEW_3D") km.keymap_items.new('my.operator', 'ESC', 'PRESS') km = wm.keyconfigs.addon.keymaps["3D View"] km.keymap_items.remove(km.keymap_items["my.operator"]) Compatibility The changes made are not forward compatible, i.e. if you save user preferences with newer versions, older versions will not have key configuration changes that were made.
2011-05-20use BKE_area_find_region_type in place of inline loops (no functional changes).Campbell Barton
2011-04-06fix [#26803] Libs paths are case sensitive in windowsCampbell Barton
use case insensitive path comparison on windows: BLI_path_cmp
2011-02-25Bugfix #26174Ton Roosendaal
Shift+A "add primitive" menu didn't allow to set shortcuts on the sublevels.
2011-02-25doxygen: blender/windowmanager tagged.Nathan Letwory
2011-02-23doxygen: prevent GPL license block from being parsed as doxygen comment.Nathan Letwory
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.
2010-12-15Bugfix, own collectionTon Roosendaal
Using RMB on menus to change hotkeys was broken. - the input button was on a weird place outside menu, assign would close pulldown, so you had to reopen to check - ESC didn't close the button, but assigned ESC as hotkey. This key is a protected key, and always should be escaping. - Worst bug: if you used this on a 'user keymap' it removed all entries from the map...
2010-12-06[#25047] Deletion of any custom key map item remove always first oneMartin Poirier
keymap item id for user defined keymaps wasn't defined properly. This is really old, I'm surprised with didn't catch this before.
2010-12-03Enabled GCC -Wwrite-strings warning for CMake and replaced many 'char's for ↵Campbell Barton
'const char's,. Only one functional change where Transform orientations passed "" to BIF_createTransformOrientation() which could then have the value written into.
2010-11-17use 'const char *' by default with RNA functions except when the value is ↵Campbell Barton
flagged as PROP_THICK_WRAP. Also use const char in many other parts of blenders code. Currently this gives warnings for setting operator id, label and description since these are an exception and allocated beforehand.
2010-11-11move report/operator view out of the 'Console' into the 'Info' space (file ↵Campbell Barton
menu). Ton will work on moving the File menu out of the Info space before release. notes. - reply Operator isn't working anymore. - UI for reports is commented out so its not mixed with the file menu.
2010-11-10bugfix [#24635] "Add Shortcut"Campbell Barton
2010-10-16- UNUSED macro wasn't throwing an error with GCC if a var become used.Campbell Barton
- made interface, windowmanager, readfile build without unused warnings. - re-arranged CMake's source/blender build order so less changed libs are build later, eg: IK, avi
2010-09-06revert keymap name commit, matt says everything should be '2D View', '3D ↵Campbell Barton
View...' etc, so for now just go back to what we had. reverse merge: svn merge -r31774:31773 .
2010-09-06rename '3D View' keymap, since its know as 'View 3D' for other areas of the ↵Campbell Barton
keymap editor.
2010-08-30- keymap import/export works again (broke with own api changes)Campbell Barton
- function renames, move WM functions into collections wm.add_keymap() --> wm.keymaps.new() note: new is used for named items in a collection, which return the result. - Action.get_frame_range() is now a readonly property 'frame_range', floats rather then ints.
2010-06-28[#22682] some missing keymapsMatt Ebb
Added proportional influence up/down to transform modal keymap. Also fixed a crash in restoring to previous key map item after edits.
2010-03-24remove unused rna includesCampbell Barton
2010-03-21Fix syntax for ID keyword.Guillermo S. Romero
2010-02-15Fix #21116: wrong shortcut key in view navigation menu.Brecht Van Lommel
2010-02-12correct fsf addressCampbell Barton
2010-02-08Operator Execution Contexts Bugfix:Joshua Leung
This commit adds a few more execution contexts for operators, given the increasing tendency for some special regiontypes to exist within areas that must have their own set of special operators. Examples of these include the "channel" operators in the Animation Editors (i.e. those in the 'Channels' menu), and the "Fit to Preview Window" operator for the Sequencer. Previously, operators such as these would not function when clicked on from the menus, and they would not show the hotkeys they were mapped to. Also, fixed a few operator definitions in the Animation Editors which were missing ot->prop defines. This meant that some hotkeys (mainly selection) were shown incorrectly in the menus.
2010-02-01Remove NO_CONTEXT flag from enum when copying operator properties to the ↵Martin Poirier
operator itself.
2010-01-31Fix snap to grid not taking the current grid resolution intoBrecht Van Lommel
account in quad split 3d view. Now WM_OP_EXEC/INVOKE_REGION_WIN context stays in the current region if it is already a region of type window, so the operator gets executed in the right context.
2010-01-29Speed up keymap editor a bit (less context changes)Martin Poirier
2010-01-28Keyconfig import and removeMartin Poirier
- Keyconfig are now marked as user_defined when it is the case - Import keyconfig operator: select an exported keyconfig .py file, copies it to the scripts folder (keep the original copy if wanted, default True), imports and select as active config. The active keyconfig is stored in the user default file, so that still has to be saved after import. - Remove keyconfig operator and button next to the keyconfig name (poll False if not user_defined). Removes the keyconfig from the list and deletes the file from the folder. Remaining bug: The file is copied in the user defined script folder (if present) or the /scripts/ui folder. The problem is that it might be imported before operators defined in python are imported themselves. One solution would be to use a separate folder for keyconfigs that is imported after all others.
2010-01-28PROP_ENUM_NO_CONTEXT flag for rna properties, forcing enum item functions to ↵Martin Poirier
be passed a null context (to return non-contextual items). This is set on keymap item operator properties and macro definition operator properties to make them non-contextual (since the context at definition time is most likely not the same then at execution time, it's better to have all options visible). This removes some more errors in keymap export and import. This commit also sanitize some enum item function, making sure they can cope with null context and have usable defaults in that case.
2010-01-26set the keymap to NULL if its not found so as not to use it un-initializes.Campbell Barton
2010-01-26Fix [#20798] - Add/change/remove shortcut options dissapearing from buttons ↵Matt Ebb
@ Tool Shelf Made the RMB menus for manipulating shortcuts a bit more robust (only dealing with mouse clicks/key events, rather than all tweaks/timers/etc) and added ability to add key shortcuts for transform tools from the RMB menu.
2009-12-24Key map related things:Matt Ebb
* Moved 'change shortcut' (previously directly RMB on menu items) to a context-menu item, and added Remove Shortcut and Add Shortcut. This is all available now in a RMB context menu for operator buttons and menu entries. * Renamed a bunch of key maps to be consistent with UI names, and human-readable. Since these key map names are now being directly used in the UI for people to find things, they should be understandable and in plain language. This renaming may break some older saved key map setups - though previously saved .b25.blends should convert over ok. Exported .py files may need some find/replacing - in this commit check the changes in resources.c to see what's changed.
2009-12-21Missing id assignment for kmi creation function (2 out of 3 isn't good enough).Martin Poirier
2009-12-18Keymap conflict detection operator.Martin Poirier
Takes into account the hierarchical structures of keymaps as well as wildcards (KM_ANY) in event definitions, user remaps (emulate numpad, action/select mouse buttons, ...) and event values that overlap (click, press and release) For now, doesn't do anything other than print conflicts in the console. As a result, I cleaned up a lot of keymaps that had double definitions, moved some keymap items in more appropriate places, fixed wrong definitions and removed kmi that were added for testing a long long time ago. Out of all the remaining conflicts, after removing obvious non-issues, here's what remains: http://www.pasteall.org/9898
2009-12-17keymap editorMartin Poirier
New unique ID per keymap item (unique inside their keymap) for default and configuration keymaps. This allows restoring a single user defined kmi to its previous (default or config) values instead of having to restore the whole keymap. The restore item button is disabled for kmi added by the users (they don't have an ID). Also fixes a bug in the rna function for add keymap item (parameter order was incorrect, messing adding back saved configurations).
2009-12-08RNA functions to find keymaps in a keyconfig (from the usual idname + space ↵Martin Poirier
or modal keymaps from operator id)
2009-12-02Reset operator properties for keymap items when operator idname is changed.Martin Poirier
This means added operators in the keymap editor will now show options correctly (maybe not for old .B25.blend)
2009-11-17new function WM_keymap_add_menu(), similar to WM_keymap_add_item() except it ↵Campbell Barton
takes a registered menu. the key will then trigger this menu.
2009-11-16Fixing keymap export:Martin Poirier
- Didn't support new userdef keymaps (new "active" rna function to get the active version of a keymap) - Didn't support modal keymaps (new "modal" param to add_keymap function, new "add_modal_item" function on keymaps (both functions now make sure the keymap is of the right type))
2009-11-15=== Better support for user defined modal keymaps ===Martin Poirier
Fixing/Missing RNA properties: - "virtual" property for "ANY" modifier for keymapitem - modal property for keymap - Look up modal_items in usermaps too Lazy init usermaps needs to init modal_items too. New function to initialize a user keymap (fill in modal_item and poll pointers). Operator modal keymaps now look up if there's a user defined keymap that overwrites it. Full Event UI buttons now show "Any" when modifier is set to that (instead of listing all of them). Note: Having the modifiers as boolean still doesn't express the full breath of values possible for them. There is commented code in this commit to represent them as enum, which would solve this, but make the keymap editor more cryptic.
2009-10-25Toolbar Fixes:Joshua Leung
* Restored the Grease Pencil tools to the toolbar Probably, if the reason they were commented out before was so that the repeat stuff is visible, we can swap the order of those two. Otherwise, it's good to have somewhere for the operators now (so that the hotkeys can be found) * Hotkey displays in the tooltips now show the keymodifier too For example, "D LeftMouse" or "Ctrl D LeftMouse" for the Grease Pencil operators, instead of just "LeftMouse" or "Ctrl LeftMouse".
2009-10-19Fix #19640: user defined keymaps did not use poll function.Brecht Van Lommel
2009-10-12macro's can set options for the operators they executeCampbell Barton
changed extrude, rip and duplicate to disable proportional editing however this gives a different problem now. Commented in transform.c // XXX If modal, save settings back in scene this changes disables the option whenever the macro used used.