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
diff options
context:
space:
mode:
authorNathan Craddock <nzcraddock@gmail.com>2020-12-22 00:27:09 +0300
committerNathan Craddock <nzcraddock@gmail.com>2020-12-22 00:31:32 +0300
commitffacce5be41df68658f8478fee73e74701d2b545 (patch)
tree71981b37cedbb77b002ae27511471c96c63597b8 /source/blender/editors/include/ED_buttons.h
parent2d6e6d035b664d6244fd48090cb8545145032f9f (diff)
UI: Properties editor popover and outliner sync
This adds a popover to the properties editor. Currently the only setting is for controlling outliner to properties syncing. Because we cannot define a perfect heuristic to determine when properties editors should change tabs based on outliner icon selection, we need an option to enable or disable this behavior per properties editor. There are 3 options for controlling the syncing. Auto uses the heuristic to only allow tab switching when a properties editor and outliner share a border. On and off enable and disable syncing respectively. Differential Revision: https://developer.blender.org/D9758
Diffstat (limited to 'source/blender/editors/include/ED_buttons.h')
-rw-r--r--source/blender/editors/include/ED_buttons.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/source/blender/editors/include/ED_buttons.h b/source/blender/editors/include/ED_buttons.h
index 1ff160b2ca8..af0643f0d64 100644
--- a/source/blender/editors/include/ED_buttons.h
+++ b/source/blender/editors/include/ED_buttons.h
@@ -26,6 +26,7 @@
extern "C" {
#endif
+struct ScrArea;
struct SpaceProperties;
struct bContext;
@@ -36,7 +37,13 @@ void ED_buttons_search_string_set(struct SpaceProperties *sbuts, const char *val
int ED_buttons_search_string_length(struct SpaceProperties *sbuts);
const char *ED_buttons_search_string_get(struct SpaceProperties *sbuts);
-void ED_buttons_set_context(const struct bContext *C, PointerRNA *ptr, const int context);
+bool ED_buttons_should_sync_with_outliner(const struct bContext *C,
+ const struct SpaceProperties *sbuts,
+ struct ScrArea *area);
+void ED_buttons_set_context(const struct bContext *C,
+ struct SpaceProperties *sbuts,
+ PointerRNA *ptr,
+ const int context);
#ifdef __cplusplus
}