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.
|
|
|
|
|
#
|
|
|
|
|
# Contributor(s): Jacques Beaurain.
|
|
|
|
|
#
|
|
|
|
|
# ***** 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
|
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
|
|
|
|
|
numinput.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
|
|
|
|
|
../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
|
2010-11-29 04:35:56 +00:00
|
|
|
../include/ED_particle.h
|
|
|
|
|
../include/ED_physics.h
|
|
|
|
|
../include/ED_render.h
|
|
|
|
|
../include/ED_screen.h
|
|
|
|
|
../include/ED_screen_types.h
|
|
|
|
|
../include/ED_sculpt.h
|
|
|
|
|
../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
|
|
|
|
|
../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
|
|
|
)
|
|
|
|
|
|
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()
|
|
|
|
|
|
2011-05-31 01:15:44 +00:00
|
|
|
blender_add_lib(bf_editor_util "${SRC}" "${INC}" "${INC_SYS}")
|