Cleanup: Move interface_intern.hh

The entire interface directory is now compiled as C++ files.
This commit is contained in:
Hans Goudey 2022-11-26 00:21:17 -06:00
parent e47c75aa6e
commit 4ecc7cf14a
51 changed files with 346 additions and 430 deletions

View File

@ -82,7 +82,7 @@ set(SRC
views/tree_view.cc
eyedroppers/eyedropper_intern.hh
interface_intern.h
interface_intern.hh
interface_regions_intern.hh
)

View File

@ -41,7 +41,7 @@
#include "RNA_define.h"
#include "interface_intern.h"
#include "interface_intern.hh"
#include "ED_clip.h"
#include "ED_image.h"

View File

@ -33,7 +33,7 @@
#include "WM_api.h"
#include "WM_types.h"
#include "interface_intern.h"
#include "interface_intern.hh"
#include "eyedropper_intern.hh"

View File

@ -39,7 +39,7 @@
#include "ED_view3d.h"
#include "eyedropper_intern.hh"
#include "interface_intern.h"
#include "interface_intern.hh"
/**
* \note #DataDropper is only internal name to avoid confusion with other kinds of eye-droppers.

View File

@ -39,7 +39,7 @@
#include "ED_view3d.h"
#include "eyedropper_intern.hh"
#include "interface_intern.h"
#include "interface_intern.hh"
/**
* \note #DepthDropper is only internal name to avoid confusion with other kinds of eye-droppers.

View File

@ -34,7 +34,7 @@
#include "ED_keyframing.h"
#include "eyedropper_intern.hh"
#include "interface_intern.h"
#include "interface_intern.hh"
struct DriverDropper {
/* Destination property (i.e. where we'll add a driver) */
@ -156,7 +156,7 @@ static int driverdropper_modal(bContext *C, wmOperator *op, const wmEvent *event
}
/* Modal Operator init */
static int driverdropper_invoke(bContext *C, wmOperator *op, const wmEvent */*event*/)
static int driverdropper_invoke(bContext *C, wmOperator *op, const wmEvent * /*event*/)
{
/* init */
if (driverdropper_init(C, op)) {

View File

@ -47,7 +47,7 @@
#include "DEG_depsgraph_build.h"
#include "eyedropper_intern.hh"
#include "interface_intern.h"
#include "interface_intern.hh"
struct EyedropperGPencil {
struct ColorManagedDisplay *display;

View File

@ -19,7 +19,7 @@
#include "WM_api.h"
#include "WM_types.h"
#include "interface_intern.h"
#include "interface_intern.hh"
#include "eyedropper_intern.hh" /* own include */

View File

@ -73,7 +73,7 @@
#include "DEG_depsgraph_query.h"
#include "interface_intern.h"
#include "interface_intern.hh"
using blender::Vector;

View File

@ -14,7 +14,7 @@
#include "UI_interface.h"
#include "interface_intern.h"
#include "interface_intern.hh"
#include "MEM_guardedalloc.h"

View File

@ -40,7 +40,7 @@
#include "WM_api.h"
#include "WM_types.h"
#include "interface_intern.h"
#include "interface_intern.hh"
static FCurve *ui_but_get_fcurve(
uiBut *but, AnimData **adt, bAction **action, bool *r_driven, bool *r_special)

View File

@ -8,7 +8,7 @@
#include "MEM_guardedalloc.h"
#include "interface_intern.h"
#include "interface_intern.hh"
/* -------------------------------------------------------------------- */
/** \name Button Groups

View File

@ -30,7 +30,7 @@
#include "UI_interface.h"
#include "interface_intern.h"
#include "interface_intern.hh"
#include "RNA_access.h"
#include "RNA_prototypes.h"

View File

@ -8,7 +8,7 @@
#include "WM_api.h"
#include "interface_intern.h"
#include "interface_intern.hh"
void UI_but_drag_set_id(uiBut *but, ID *id)
{

View File

@ -48,7 +48,7 @@
#include "UI_interface.h"
/* own include */
#include "interface_intern.h"
#include "interface_intern.hh"
static int roundboxtype = UI_CNR_ALL;

View File

@ -57,7 +57,7 @@
#include "BLF_api.h"
#include "interface_intern.h"
#include "interface_intern.hh"
#include "RNA_access.h"
#include "RNA_prototypes.h"

View File

@ -62,7 +62,7 @@
#include "WM_api.h"
#include "WM_types.h"
#include "interface_intern.h"
#include "interface_intern.hh"
#ifndef WITH_HEADLESS
# define ICON_GRID_COLS 26

View File

@ -18,7 +18,7 @@
#include "UI_interface.h"
#include "interface_intern.h"
#include "interface_intern.hh"
static void icon_draw_rect_input_text(
const rctf *rect, const float color[4], const char *str, float font_size, float v_offset)

View File

@ -40,7 +40,7 @@
#include "WM_api.h"
#include "WM_types.h"
#include "interface_intern.h"
#include "interface_intern.hh"
/* Show an icon button after each RNA button to use to quickly set keyframes,
* this is a way to display animation/driven/override status, see T54951. */

View File

@ -48,7 +48,7 @@
#include "UI_interface.h"
#include "interface_intern.h"
#include "interface_intern.hh"
#include "WM_api.h"
#include "WM_types.h"

View File

@ -48,7 +48,7 @@
#include "GPU_matrix.h"
#include "GPU_state.h"
#include "interface_intern.h"
#include "interface_intern.hh"
/* -------------------------------------------------------------------- */
/** \name Defines & Structs

View File

@ -19,7 +19,7 @@
#include "RNA_access.h"
#include "interface_intern.h"
#include "interface_intern.hh"
#include "WM_api.h"
#include "WM_types.h"

View File

@ -34,7 +34,7 @@
#include "IMB_colormanagement.h"
#include "interface_intern.h"
#include "interface_intern.hh"
enum ePickerType {
PICKER_TYPE_RGB = 0,

View File

@ -36,7 +36,7 @@
#include "ED_undo.h"
#include "GPU_framebuffer.h"
#include "interface_intern.h"
#include "interface_intern.hh"
/* -------------------------------------------------------------------- */
/** \name Utilities

View File

@ -36,7 +36,7 @@
#include "ED_screen.h"
#include "interface_intern.h"
#include "interface_intern.hh"
#include "interface_regions_intern.hh"
/* -------------------------------------------------------------------- */

View File

@ -39,7 +39,7 @@
#include "ED_screen.h"
#include "interface_intern.h"
#include "interface_intern.hh"
#include "interface_regions_intern.hh"
/* -------------------------------------------------------------------- */

View File

@ -45,7 +45,7 @@
#include "UI_interface.h"
#include "interface_intern.h"
#include "interface_intern.hh"
#include "interface_regions_intern.hh"
/* -------------------------------------------------------------------- */

View File

@ -30,7 +30,7 @@
#include "ED_screen.h"
#include "interface_intern.h"
#include "interface_intern.hh"
#include "interface_regions_intern.hh"
/* -------------------------------------------------------------------- */

View File

@ -41,7 +41,7 @@
#include "ED_screen.h"
#include "GPU_state.h"
#include "interface_intern.h"
#include "interface_intern.hh"
#include "interface_regions_intern.hh"
#define MENU_BORDER int(0.3f * U.widget_unit)

View File

@ -52,7 +52,7 @@
#include "ED_screen.h"
#include "interface_intern.h"
#include "interface_intern.hh"
#include "interface_regions_intern.hh"
#define UI_TIP_PAD_FAC 1.3f

View File

@ -30,7 +30,7 @@
#include "ED_datafiles.h"
#include "interface_intern.h"
#include "interface_intern.hh"
#ifdef WIN32
# include "BLI_math_base.h" /* M_PI */

View File

@ -28,7 +28,7 @@
#include "WM_api.h"
#include "WM_types.h"
#include "interface_intern.h"
#include "interface_intern.hh"
struct AssetViewListData {
AssetLibraryReference asset_library_ref;

View File

@ -30,7 +30,7 @@
#include "WM_api.h"
#include "interface_intern.h"
#include "interface_intern.hh"
/**
* The validated data that was passed to #uiTemplateList (typically through Python).

View File

@ -47,7 +47,7 @@
#include "WM_types.h"
#include "UI_interface.h"
#include "interface_intern.h"
#include "interface_intern.hh"
/* For key-map item access. */
#include "wm_event_system.h"

View File

@ -28,7 +28,7 @@
#include "WM_types.h"
#include "UI_interface.h"
#include "interface_intern.h"
#include "interface_intern.hh"
/* -------------------------------------------------------------------- */
/** \name Operator Search Template Implementation

View File

@ -84,7 +84,7 @@
#include "UI_interface.h"
#include "UI_interface_icons.h"
#include "UI_view2d.h"
#include "interface_intern.h"
#include "interface_intern.hh"
#include "PIL_time.h"

View File

@ -15,7 +15,7 @@
#include "MEM_guardedalloc.h"
#include "interface_intern.h"
#include "interface_intern.hh"
/* -------------------------------------------------------------------- */
/** \name Text Field Undo Stack

View File

@ -40,7 +40,7 @@
#include "WM_api.h"
#include "WM_types.h"
#include "interface_intern.h"
#include "interface_intern.hh"
/*************************** RNA Utilities ******************************/

View File

@ -32,7 +32,7 @@
#include "UI_interface_icons.h"
#include "UI_view2d.h"
#include "interface_intern.h"
#include "interface_intern.hh"
#include "GPU_batch.h"
#include "GPU_batch_presets.h"

View File

@ -34,7 +34,7 @@
#include "UI_interface_icons.h"
#include "GPU_framebuffer.h"
#include "interface_intern.h"
#include "interface_intern.hh"
/* be sure to keep 'bThemeState' in sync */
static bThemeState g_theme_state = {

View File

@ -43,7 +43,7 @@
#include "UI_interface.h"
#include "UI_view2d.h"
#include "interface_intern.h"
#include "interface_intern.hh"
static void ui_view2d_curRect_validate_resize(View2D *v2d, bool resize);

View File

@ -33,7 +33,7 @@
#include "UI_interface.h"
#include "UI_view2d.h"
#include "interface_intern.h"
#include "interface_intern.hh"
/* Compute display grid resolution
********************************************************/

View File

@ -4,7 +4,7 @@
* \ingroup edinterface
*/
#include "interface_intern.h"
#include "interface_intern.hh"
#include "UI_abstract_view.hh"

View File

@ -12,7 +12,7 @@
#include "WM_api.h"
#include "UI_interface.h"
#include "interface_intern.h"
#include "interface_intern.hh"
#include "UI_abstract_view.hh"

View File

@ -12,7 +12,7 @@
#include "WM_types.h"
#include "UI_interface.h"
#include "interface_intern.h"
#include "interface_intern.hh"
#include "UI_grid_view.hh"

View File

@ -27,7 +27,7 @@
#include "ED_screen.h"
#include "interface_intern.h"
#include "interface_intern.hh"
#include "UI_interface.hh"

View File

@ -11,7 +11,7 @@
#include "BLT_translation.h"
#include "interface_intern.h"
#include "interface_intern.hh"
#include "UI_interface.h"

View File

@ -51,7 +51,7 @@
#include "WM_api.h"
#include "WM_types.h"
#include "../interface/interface_intern.h"
#include "../interface/interface_intern.hh"
#include "buttons_intern.h" /* own include */

View File

@ -77,6 +77,8 @@
#include "FN_field.hh"
#include "FN_field_cpp_type.hh"
#include "../interface/interface_intern.hh" /* TODO: Remove */
#include "node_intern.hh" /* own include */
namespace geo_log = blender::nodes::geo_eval_log;
@ -84,12 +86,6 @@ namespace geo_log = blender::nodes::geo_eval_log;
using blender::GPointer;
using blender::Vector;
extern "C" {
/* XXX interface.h */
extern void ui_draw_dropshadow(
const rctf *rct, float radius, float aspect, float alpha, int select);
}
/**
* This is passed to many functions which draw the node editor.
*/

View File

@ -32,7 +32,7 @@
#include "NOD_socket.h"
#include "NOD_socket_declarations.hh"
#include "../interface/interface_intern.h" /* XXX bad level */
#include "../interface/interface_intern.hh" /* XXX bad level */
#include "UI_interface.h"
#include "ED_node.h" /* own include */