2 #include "core/core_board.hpp"
3 #include "imp_layer.hpp"
4 #include "airwire_filter.hpp"
5 #include "search/searcher_board.hpp"
10 ImpBoard(
const std::string &board_filename,
const std::string &block_filename,
const std::string &via_dir,
13 const std::map<int, Layer> &get_layers();
14 void update_highlights()
override;
16 std::map<ObjectType, SelectionFilterInfo> get_selection_filter_info()
const override;
19 void construct()
override;
20 bool handle_broadcast(
const json &j)
override;
21 void handle_maybe_drag()
override;
22 void update_action_sensitivity()
override;
23 void apply_preferences()
override;
25 ActionCatalogItem::Availability get_editor_type_for_action()
const override
27 return ActionCatalogItem::AVAILABLE_IN_BOARD;
29 ObjectType get_editor_type()
const override
31 return ObjectType::BOARD;
34 std::string get_hud_text(std::set<SelectableRef> &sel)
override;
35 std::pair<ActionID, ToolID> get_doubleclick_action(ObjectType type,
const UUID &uu)
override;
37 void get_save_meta(
json &j)
override;
38 std::vector<std::string> get_view_hints()
override;
40 Searcher *get_searcher_ptr()
override
46 void canvas_update()
override;
47 void handle_selection_cross_probe();
50 const std::string project_dir;
61 bool cross_probing_enabled =
false;
63 Coordf cursor_pos_drag_begin;
70 std::map<UUID, UUID> text_owners;
71 void update_text_owners();
72 void update_text_owner_annotation();
77 void update_unplaced();
79 void update_airwires();
81 int get_schematic_pid();