3 #include "pool/pool.hpp"
4 #include "pool/symbol.hpp"
13 bool has_object_type(ObjectType ty)
const override;
14 Symbol *get_symbol(
bool work =
true);
16 Junction *get_junction(
const UUID &uu,
bool work =
true)
override;
17 Line *get_line(
const UUID &uu,
bool work =
true)
override;
19 Arc *get_arc(
const UUID &uu,
bool work =
true)
override;
21 Junction *insert_junction(
const UUID &uu,
bool work =
true)
override;
22 void delete_junction(
const UUID &uu,
bool work =
true)
override;
23 Line *insert_line(
const UUID &uu,
bool work =
true)
override;
24 void delete_line(
const UUID &uu,
bool work =
true)
override;
25 Arc *insert_arc(
const UUID &uu,
bool work =
true)
override;
26 void delete_arc(
const UUID &uu,
bool work =
true)
override;
28 SymbolPin *insert_symbol_pin(
const UUID &uu,
bool work =
true);
29 void delete_symbol_pin(
const UUID &uu,
bool work =
true);
33 std::vector<Line *> get_lines(
bool work =
true)
override;
34 std::vector<Arc *> get_arcs(
bool work =
true)
override;
35 std::vector<const Pin *> get_pins(
bool work =
true);
37 void rebuild(
bool from_undo =
false)
override;
38 void commit()
override;
39 void revert()
override;
41 bool set_property(ObjectType type,
const UUID &uu, ObjectProperty::ID property,
43 bool get_property(ObjectType type,
const UUID &uu, ObjectProperty::ID property,
45 bool get_property_meta(ObjectType type,
const UUID &uu, ObjectProperty::ID property,
48 std::string get_display_name(ObjectType type,
const UUID &uu)
override;
50 const Symbol *get_canvas_data();
51 std::pair<Coordi, Coordi> get_bbox()
override;
53 bool can_search_for_object_type(ObjectType type)
const override;
54 std::list<SearchResult> search(
const SearchQuery &q)
override;
56 void reload_pool()
override;
60 const std::string &get_filename()
const override;
63 std::map<UUID, Text> *get_text_map(
bool work =
true)
override;
64 std::map<UUID, Polygon> *get_polygon_map(
bool work =
true)
override;
67 std::string m_filename;
72 HistoryItem(
const Symbol &s) : sym(s)
77 void history_push()
override;
78 void history_load(
unsigned int i)
override;
79 void save(
const std::string &suffix)
override;
80 void delete_autosave()
override;