3 #include "core/core_schematic.hpp"
10 ImpSchematic(
const std::string &schematic_filename,
const std::string &block_filename,
const PoolParams ¶ms);
11 void update_highlights()
override;
14 void construct()
override;
15 bool handle_broadcast(
const json &j)
override;
16 void handle_maybe_drag()
override;
17 void update_action_sensitivity()
override;
19 ActionCatalogItem::Availability get_editor_type_for_action()
const override
21 return ActionCatalogItem::AVAILABLE_IN_SCHEMATIC;
23 ObjectType get_editor_type()
const override
25 return ObjectType::SCHEMATIC;
28 std::string get_hud_text(std::set<SelectableRef> &sel)
override;
30 std::pair<ActionID, ToolID> get_doubleclick_action(ObjectType type,
const UUID &uu)
override;
33 void canvas_update()
override;
35 const std::string project_dir;
37 int handle_ask_net_merge(
class Net *net,
class Net *into);
38 int handle_ask_delete_component(
class Component *comp);
39 void handle_select_sheet(
Sheet *sh);
40 void handle_remove_sheet(
Sheet *sh);
41 void handle_core_rebuilt();
42 void handle_tool_change(ToolID
id)
override;
45 std::string last_pdf_filename;
47 std::map<UUID, std::pair<float, Coordf>> sheet_views;
49 void handle_selection_cross_probe();
50 bool cross_probing_enabled =
false;
52 Coordf cursor_pos_drag_begin;