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 *****
|
|
|
|
|
|
|
|
|
|
set(INC
|
2010-06-05 23:27:49 +00:00
|
|
|
../include
|
|
|
|
|
../../blenfont
|
|
|
|
|
../../blenkernel
|
|
|
|
|
../../blenlib
|
2018-09-12 18:22:00 +10:00
|
|
|
../../blenloader
|
2015-08-16 17:32:01 +10:00
|
|
|
../../blentranslation
|
2017-06-08 10:14:53 +02:00
|
|
|
../../depsgraph
|
2018-05-03 15:31:03 +02:00
|
|
|
../../draw
|
2010-06-05 23:27:49 +00:00
|
|
|
../../gpu
|
|
|
|
|
../../imbuf
|
|
|
|
|
../../makesdna
|
|
|
|
|
../../makesrna
|
|
|
|
|
../../python
|
2010-06-04 11:34:57 +00:00
|
|
|
../../windowmanager
|
2014-10-07 15:46:19 -05:00
|
|
|
../../../../intern/glew-mx
|
2019-04-24 14:39:31 +10:00
|
|
|
../../../../intern/guardedalloc
|
2011-05-31 01:15:44 +00:00
|
|
|
)
|
|
|
|
|
|
2010-10-23 04:05:55 +00:00
|
|
|
set(SRC
|
|
|
|
|
interface.c
|
2015-11-06 18:39:56 +01:00
|
|
|
interface_align.c
|
2010-10-23 04:05:55 +00:00
|
|
|
interface_anim.c
|
2020-10-02 17:00:41 -05:00
|
|
|
interface_button_group.c
|
2018-06-24 10:01:13 +02:00
|
|
|
interface_context_menu.c
|
2010-10-23 04:05:55 +00:00
|
|
|
interface_draw.c
|
2013-10-08 15:07:52 +00:00
|
|
|
interface_eyedropper.c
|
2017-12-12 15:16:13 +11:00
|
|
|
interface_eyedropper_color.c
|
|
|
|
|
interface_eyedropper_colorband.c
|
|
|
|
|
interface_eyedropper_datablock.c
|
|
|
|
|
interface_eyedropper_depth.c
|
|
|
|
|
interface_eyedropper_driver.c
|
2019-10-11 13:28:22 +02:00
|
|
|
interface_eyedropper_gpencil_color.c
|
2010-10-23 04:05:55 +00:00
|
|
|
interface_handlers.c
|
|
|
|
|
interface_icons.c
|
2018-07-08 11:57:59 +02:00
|
|
|
interface_icons_event.c
|
2010-10-23 04:05:55 +00:00
|
|
|
interface_layout.c
|
|
|
|
|
interface_ops.c
|
|
|
|
|
interface_panel.c
|
2018-06-30 10:36:40 +02:00
|
|
|
interface_query.c
|
2017-11-03 20:26:35 +11:00
|
|
|
interface_region_color_picker.c
|
2018-06-12 10:11:32 +02:00
|
|
|
interface_region_hud.c
|
2017-11-03 20:26:35 +11:00
|
|
|
interface_region_menu_pie.c
|
|
|
|
|
interface_region_menu_popup.c
|
2018-04-22 17:16:39 +02:00
|
|
|
interface_region_popover.c
|
2017-11-03 20:26:35 +11:00
|
|
|
interface_region_popup.c
|
|
|
|
|
interface_region_search.c
|
|
|
|
|
interface_region_tooltip.c
|
2018-06-24 10:01:13 +02:00
|
|
|
interface_regions.c
|
2010-10-23 04:05:55 +00:00
|
|
|
interface_style.c
|
2020-05-06 15:51:23 +10:00
|
|
|
interface_template_search_menu.c
|
|
|
|
|
interface_template_search_operator.c
|
2020-05-27 10:52:07 +10:00
|
|
|
interface_templates.c
|
2020-05-12 10:55:46 +10:00
|
|
|
interface_undo.c
|
2010-10-23 04:05:55 +00:00
|
|
|
interface_utils.c
|
|
|
|
|
interface_widgets.c
|
|
|
|
|
resources.c
|
|
|
|
|
view2d.c
|
Refactor grid and scale indicator text drawing
This affects the timeline, dopesheet, graph editor, sequencer,
clip editor and nla editor.
Removed structs and enums: `V2D_ARG_DUMMY`, `eView2D_Units`,
`eView2D_Clamp`, `eView2D_Gridlines`, `View2DGrid`.
A main goal of this refactor is to get rid of the very generic
`View2DGrid` struct. The drawing code became very complex
because there were many different combinations of settings.
This refactor implements a different approach.
Instead of one very generic API, there are many slighly
different functions that do exactly, what we need in the
different editors. Only very little code is duplicated,
because the API functions compose some shared low level code.
This structure makes the code much easier to debug and change,
because every function has much fewer responsibilities.
Additionally, this refactor fixes some long standing bugs.
E.g. when `Show Seconds` is enabled, you zoom in and pan the view.
Or that the step size between displayed frame numbers was
always `>= 2`, no matter how close you zoom in.
Reviewers: brecht
Differential Revision: https://developer.blender.org/D4776
2019-05-02 12:00:12 +02:00
|
|
|
view2d_draw.c
|
2019-05-31 21:45:28 +10:00
|
|
|
view2d_gizmo_navigate.c
|
2010-10-23 04:05:55 +00:00
|
|
|
view2d_ops.c
|
2010-11-29 04:35:56 +00:00
|
|
|
|
2018-02-09 13:48:34 +11:00
|
|
|
interface_eyedropper_intern.h
|
2010-11-29 04:35:56 +00:00
|
|
|
interface_intern.h
|
2018-02-09 13:48:34 +11:00
|
|
|
interface_regions_intern.h
|
2010-10-23 04:05:55 +00:00
|
|
|
)
|
|
|
|
|
|
2019-04-14 15:18:44 +02:00
|
|
|
set(LIB
|
2019-04-16 06:18:52 +02:00
|
|
|
bf_blenkernel
|
|
|
|
|
bf_blenlib
|
|
|
|
|
bf_editor_datafiles
|
2019-04-14 15:18:44 +02:00
|
|
|
)
|
|
|
|
|
|
2010-06-04 11:34:57 +00:00
|
|
|
if(WITH_INTERNATIONAL)
|
2011-09-26 10:35:47 +00:00
|
|
|
add_definitions(-DWITH_INTERNATIONAL)
|
2010-06-04 11:34:57 +00:00
|
|
|
endif()
|
|
|
|
|
|
2011-06-05 07:55:18 +00:00
|
|
|
if(WITH_HEADLESS)
|
|
|
|
|
add_definitions(-DWITH_HEADLESS)
|
|
|
|
|
endif()
|
|
|
|
|
|
2010-10-31 04:11:39 +00:00
|
|
|
if(WITH_PYTHON)
|
|
|
|
|
add_definitions(-DWITH_PYTHON)
|
|
|
|
|
endif()
|
2010-06-04 11:34:57 +00:00
|
|
|
|
2014-12-07 00:58:17 +01:00
|
|
|
if(WIN32)
|
|
|
|
|
if(WITH_INPUT_IME)
|
|
|
|
|
add_definitions(-DWITH_INPUT_IME)
|
|
|
|
|
endif()
|
|
|
|
|
endif()
|
|
|
|
|
|
2014-10-07 15:46:19 -05:00
|
|
|
|
2019-04-14 15:18:44 +02:00
|
|
|
blender_add_lib(bf_editor_interface "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")
|