2010-06-04 11:34:57 +00:00
|
|
|
# ***** BEGIN GPL LICENSE BLOCK *****
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU General Public License
|
|
|
|
# as published by the Free Software Foundation; either version 2
|
|
|
|
# of the License, or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software Foundation,
|
|
|
|
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
# ***** END GPL LICENSE BLOCK *****
|
|
|
|
|
2010-12-08 08:43:06 +00:00
|
|
|
set(INC
|
2010-09-18 03:55:56 +00:00
|
|
|
../include
|
2010-06-04 20:56:56 +00:00
|
|
|
../../blenkernel
|
|
|
|
../../blenlib
|
2015-08-16 17:32:01 +10:00
|
|
|
../../blentranslation
|
2011-02-27 06:19:40 +00:00
|
|
|
../../bmesh
|
2017-06-08 10:14:53 +02:00
|
|
|
../../depsgraph
|
2015-04-20 19:57:57 +02:00
|
|
|
../../imbuf
|
2014-10-07 15:46:19 -05:00
|
|
|
../../gpu
|
2010-06-04 20:56:56 +00:00
|
|
|
../../makesdna
|
|
|
|
../../makesrna
|
|
|
|
../../windowmanager
|
2010-09-18 03:55:56 +00:00
|
|
|
../../../../intern/guardedalloc
|
2018-03-29 20:38:32 +02:00
|
|
|
../../../../intern/clog
|
2014-10-07 15:46:19 -05:00
|
|
|
../../../../intern/glew-mx
|
2010-06-04 11:34:57 +00:00
|
|
|
)
|
|
|
|
|
2011-05-31 01:15:44 +00:00
|
|
|
set(INC_SYS
|
2013-04-02 12:54:47 +00:00
|
|
|
${GLEW_INCLUDE_PATH}
|
2011-05-31 01:15:44 +00:00
|
|
|
)
|
|
|
|
|
2010-12-08 08:43:06 +00:00
|
|
|
set(SRC
|
2013-11-20 02:40:29 +11:00
|
|
|
ed_transverts.c
|
2010-10-23 04:05:55 +00:00
|
|
|
ed_util.c
|
2018-09-18 16:10:07 +10:00
|
|
|
gizmo_utils.c
|
2010-10-23 04:05:55 +00:00
|
|
|
numinput.c
|
2018-08-14 10:28:41 +10:00
|
|
|
select_utils.c
|
2010-11-29 04:35:56 +00:00
|
|
|
|
|
|
|
# general includes
|
|
|
|
../include/BIF_gl.h
|
|
|
|
../include/BIF_glutil.h
|
|
|
|
../include/ED_anim_api.h
|
|
|
|
../include/ED_armature.h
|
2013-07-20 03:51:49 +00:00
|
|
|
../include/ED_buttons.h
|
2011-11-07 12:55:18 +00:00
|
|
|
../include/ED_clip.h
|
2010-11-29 04:35:56 +00:00
|
|
|
../include/ED_curve.h
|
|
|
|
../include/ED_datafiles.h
|
|
|
|
../include/ED_fileselect.h
|
2018-08-14 10:28:41 +10:00
|
|
|
../include/ED_gizmo_library.h
|
2018-09-18 16:10:07 +10:00
|
|
|
../include/ED_gizmo_utils.h
|
2010-11-29 04:35:56 +00:00
|
|
|
../include/ED_gpencil.h
|
|
|
|
../include/ED_image.h
|
|
|
|
../include/ED_info.h
|
|
|
|
../include/ED_keyframes_draw.h
|
|
|
|
../include/ED_keyframes_edit.h
|
|
|
|
../include/ED_keyframing.h
|
|
|
|
../include/ED_lattice.h
|
|
|
|
../include/ED_logic.h
|
|
|
|
../include/ED_markers.h
|
2012-09-05 00:52:35 +00:00
|
|
|
../include/ED_mask.h
|
2010-11-29 04:35:56 +00:00
|
|
|
../include/ED_mball.h
|
|
|
|
../include/ED_mesh.h
|
|
|
|
../include/ED_node.h
|
|
|
|
../include/ED_numinput.h
|
|
|
|
../include/ED_object.h
|
2015-05-17 16:09:15 +10:00
|
|
|
../include/ED_outliner.h
|
2014-06-23 21:59:34 +10:00
|
|
|
../include/ED_paint.h
|
2016-12-28 17:30:58 +01:00
|
|
|
../include/ED_particle.h
|
2010-11-29 04:35:56 +00:00
|
|
|
../include/ED_physics.h
|
|
|
|
../include/ED_render.h
|
Main Workspace Integration
This commit does the main integration of workspaces, which is a design we agreed on during the 2.8 UI workshop (see https://wiki.blender.org/index.php/Dev:2.8/UI/Workshop_Writeup)
Workspaces should generally be stable, I'm not aware of any remaining bugs (or I've forgotten them :) ). If you find any, let me know!
(Exception: mode switching button might get out of sync with actual mode in some cases, would consider that a limitation/ToDo. Needs to be resolved at some point.)
== Main Changes/Features
* Introduces the new Workspaces as data-blocks.
* Allow storing a number of custom workspaces as part of the user configuration. Needs further work to allow adding and deleting individual workspaces.
* Bundle a default workspace configuration with Blender (current screen-layouts converted to workspaces).
* Pressing button to add a workspace spawns a menu to select between "Duplicate Current" and the workspaces from the user configuration. If no workspaces are stored in the user configuration, the default workspaces are listed instead.
* Store screen-layouts (`bScreen`) per workspace.
* Store an active screen-layout per workspace. Changing the workspace will enable this layout.
* Store active mode in workspace. Changing the workspace will also enter the mode of the new workspace. (Note that we still store the active mode in the object, moving this completely to workspaces is a separate project.)
* Store an active render layer per workspace.
* Moved mode switch from 3D View header to Info Editor header.
* Store active scene in window (not directly workspace related, but overlaps quite a bit).
* Removed 'Use Global Scene' User Preference option.
* Compatibility with old files - a new workspace is created for every screen-layout of old files. Old Blender versions should be able to read files saved with workspace support as well.
* Default .blend only contains one workspace ("General").
* Support appending workspaces.
Opening files without UI and commandline rendering should work fine.
Note that the UI is temporary! We plan to introduce a new global topbar
that contains the workspace options and tabs for switching workspaces.
== Technical Notes
* Workspaces are data-blocks.
* Adding and removing `bScreen`s should be done through `ED_workspace_layout` API now.
* A workspace can be active in multiple windows at the same time.
* The mode menu (which is now in the Info Editor header) doesn't display "Grease Pencil Edit" mode anymore since its availability depends on the active editor. Will be fixed by making Grease Pencil an own object type (as planned).
* The button to change the active workspace object mode may get out of sync with the mode of the active object. Will either be resolved by moving mode out of object data, or we'll disable workspace modes again (there's a `#define USE_WORKSPACE_MODE` for that).
* Screen-layouts (`bScreen`) are IDs and thus stored in a main list-base. Had to add a wrapper `WorkSpaceLayout` so we can store them in a list-base within workspaces, too. On the long run we could completely replace `bScreen` by workspace structs.
* `WorkSpace` types use some special compiler trickery to allow marking structs and struct members as private. BKE_workspace API should be used for accessing those.
* Added scene operators `SCENE_OT_`. Was previously done through screen operators.
== BPY API Changes
* Removed `Screen.scene`, added `Window.scene`
* Removed `UserPreferencesView.use_global_scene`
* Added `Context.workspace`, `Window.workspace` and `BlendData.workspaces`
* Added `bpy.types.WorkSpace` containing `screens`, `object_mode` and `render_layer`
* Added Screen.layout_name for the layout name that'll be displayed in the UI (may differ from internal name)
== What's left?
* There are a few open design questions (T50521). We should find the needed answers and implement them.
* Allow adding and removing individual workspaces from workspace configuration (needs UI design).
* Get the override system ready and support overrides per workspace.
* Support custom UI setups as part of workspaces (hidden panels, hidden buttons, customizable toolbars, etc).
* Allow enabling add-ons per workspace.
* Support custom workspace keymaps.
* Remove special exception for workspaces in linking code (so they're always appended, never linked). Depends on a few things, so best to solve later.
* Get the topbar done.
* Workspaces need a proper icon, current one is just a placeholder :)
Reviewed By: campbellbarton, mont29
Tags: #user_interface, #bf_blender_2.8
Maniphest Tasks: T50521
Differential Revision: https://developer.blender.org/D2451
2017-06-01 19:56:58 +02:00
|
|
|
../include/ED_scene.h
|
2010-11-29 04:35:56 +00:00
|
|
|
../include/ED_screen.h
|
|
|
|
../include/ED_screen_types.h
|
|
|
|
../include/ED_sculpt.h
|
2018-08-14 10:28:41 +10:00
|
|
|
../include/ED_select_utils.h
|
2010-11-29 04:35:56 +00:00
|
|
|
../include/ED_sequencer.h
|
|
|
|
../include/ED_sound.h
|
|
|
|
../include/ED_space_api.h
|
|
|
|
../include/ED_text.h
|
|
|
|
../include/ED_transform.h
|
2016-05-06 04:49:21 +10:00
|
|
|
../include/ED_transform_snap_object_context.h
|
2013-11-20 02:40:29 +11:00
|
|
|
../include/ED_transverts.h
|
2010-11-29 04:35:56 +00:00
|
|
|
../include/ED_types.h
|
2018-06-17 11:56:20 +02:00
|
|
|
../include/ED_undo.h
|
2010-11-29 04:35:56 +00:00
|
|
|
../include/ED_util.h
|
|
|
|
../include/ED_uvedit.h
|
|
|
|
../include/ED_view3d.h
|
|
|
|
../include/UI_icons.h
|
|
|
|
../include/UI_interface.h
|
|
|
|
../include/UI_interface_icons.h
|
|
|
|
../include/UI_resources.h
|
|
|
|
../include/UI_view2d.h
|
2010-06-04 11:34:57 +00:00
|
|
|
)
|
|
|
|
|
2019-04-14 15:18:44 +02:00
|
|
|
set(LIB
|
|
|
|
)
|
|
|
|
|
2014-10-07 15:46:19 -05:00
|
|
|
add_definitions(${GL_DEFINITIONS})
|
2013-04-02 13:07:01 +00:00
|
|
|
|
Fixed another bunch of i18n bugs (thx to Leon Cheung for spotting them), among which:
* Drag'n'drop translation in Outliner
* "Execute" button in file window
* "Labels" of spacing elements, in multi-column enums
* A glitch with nodes "Value to RGB", they where called "ColorRamp" in node_type_base() call. This is not definitive, though, as it appears that UI node names are determined by this call, while it should be by "defines" in rna_nodetrre_types.h, I guess... Anyway, not good to have such things in two different places!
Also moved default context name under BLF_translation.h, much better to have those all in one place, accessible from whole Blender code!
2012-04-14 15:06:41 +00:00
|
|
|
if(WITH_INTERNATIONAL)
|
|
|
|
add_definitions(-DWITH_INTERNATIONAL)
|
|
|
|
endif()
|
|
|
|
|
Support units in modal numinput
Summary:
This completly changes the way modal numinput is handled. Now, edited expression is a string, which then gets unit- and py-evaluated to get a float value.
We gain many power and flexibility, but lose a few "shortcuts" like '-' to negate, or '/' to inverse (if they are really needed, we still can add them with modifiers, like e.g. ctrl-/ or so).
Features:
- units (cm, ", deg, etc.).
- basic operations from python/BKE_unit (+, *, **, etc.), and math constants and functions (pi, sin, etc.).
- you can navigate in edited value (left/right key, ctrl to move by block) and insert/delete chars, e.g. to fix a typo without having to rewrite everything.
- you can go to next/previous value with (ctrl-)TAB key.
- As before, hitting backspace after having deleted all leading chars will first reset the edited value to init state, and on second press, the whole "modal numinput" editing will be cancelled, going back to usual transform with mouse.
Notes:
- Did not touch to how values are shown in header when modal numinput is not enabled (would do that in another commit), so this is still quite inconsistent.
- Added back radian support in BKE_unit.
- Added arcminute/arcsecond to BKE_unit.
(those unit changes affect all angle UI controls, btw, so you can now enter radians or longitude/latitude values when in degrees units).
Related to T37600.
Reviewers: brecht, campbellbarton, carter2422
Reviewed By: brecht, campbellbarton, carter2422
Thanks everybody!
Differential Revision: http://developer.blender.org/D61
2013-12-21 17:11:43 +01:00
|
|
|
if(WITH_PYTHON)
|
|
|
|
add_definitions(-DWITH_PYTHON)
|
2014-01-04 13:13:29 +11:00
|
|
|
list(APPEND INC
|
|
|
|
../../python
|
|
|
|
)
|
Support units in modal numinput
Summary:
This completly changes the way modal numinput is handled. Now, edited expression is a string, which then gets unit- and py-evaluated to get a float value.
We gain many power and flexibility, but lose a few "shortcuts" like '-' to negate, or '/' to inverse (if they are really needed, we still can add them with modifiers, like e.g. ctrl-/ or so).
Features:
- units (cm, ", deg, etc.).
- basic operations from python/BKE_unit (+, *, **, etc.), and math constants and functions (pi, sin, etc.).
- you can navigate in edited value (left/right key, ctrl to move by block) and insert/delete chars, e.g. to fix a typo without having to rewrite everything.
- you can go to next/previous value with (ctrl-)TAB key.
- As before, hitting backspace after having deleted all leading chars will first reset the edited value to init state, and on second press, the whole "modal numinput" editing will be cancelled, going back to usual transform with mouse.
Notes:
- Did not touch to how values are shown in header when modal numinput is not enabled (would do that in another commit), so this is still quite inconsistent.
- Added back radian support in BKE_unit.
- Added arcminute/arcsecond to BKE_unit.
(those unit changes affect all angle UI controls, btw, so you can now enter radians or longitude/latitude values when in degrees units).
Related to T37600.
Reviewers: brecht, campbellbarton, carter2422
Reviewed By: brecht, campbellbarton, carter2422
Thanks everybody!
Differential Revision: http://developer.blender.org/D61
2013-12-21 17:11:43 +01:00
|
|
|
endif()
|
|
|
|
|
2019-04-14 15:18:44 +02:00
|
|
|
blender_add_lib(bf_editor_util "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")
|