2 #include "core/core_board.hpp"
3 #include "imp_layer.hpp"
8 ImpBoard(
const std::string &board_filename,
const std::string &block_filename,
const std::string &via_dir,
11 const std::map<int, Layer> &get_layers();
12 void update_highlights()
override;
14 std::map<ObjectType, SelectionFilterInfo> get_selection_filter_info()
const override;
17 void construct()
override;
18 bool handle_broadcast(
const json &j)
override;
19 void handle_maybe_drag()
override;
20 void update_action_sensitivity()
override;
21 void apply_preferences()
override;
23 ActionCatalogItem::Availability get_editor_type_for_action()
const override
25 return ActionCatalogItem::AVAILABLE_IN_BOARD;
27 ObjectType get_editor_type()
const override
29 return ObjectType::BOARD;
32 std::string get_hud_text(std::set<SelectableRef> &sel)
override;
33 std::pair<ActionID, ToolID> get_doubleclick_action(ObjectType type,
const UUID &uu)
override;
36 void canvas_update()
override;
37 void handle_selection_cross_probe();
40 const std::string project_dir;
47 bool cross_probing_enabled =
false;
49 Coordf cursor_pos_drag_begin;
56 std::map<UUID, UUID> text_owners;
57 void update_text_owners();
58 void update_text_owner_annotation();
62 int get_schematic_pid();