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;
42 bool set_property(ObjectType type,
const UUID &uu, ObjectProperty::ID property,
44 bool get_property(ObjectType type,
const UUID &uu, ObjectProperty::ID property,
46 bool get_property_meta(ObjectType type,
const UUID &uu, ObjectProperty::ID property,
49 std::string get_display_name(ObjectType type,
const UUID &uu)
override;
51 const Symbol *get_canvas_data();
52 std::pair<Coordi, Coordi> get_bbox()
override;
54 bool can_search_for_object_type(ObjectType type)
const override;
55 std::list<SearchResult> search(
const SearchQuery &q)
override;
57 void reload_pool()
override;
61 const std::string &get_filename()
const override;
64 std::map<UUID, Text> *get_text_map(
bool work =
true)
override;
65 std::map<UUID, Polygon> *get_polygon_map(
bool work =
true)
override;
68 std::string m_filename;
73 HistoryItem(
const Symbol &s) : sym(s)
78 void history_push()
override;
79 void history_load(
unsigned int i)
override;
Definition: symbol.hpp:22
Graphical line.
Definition: line.hpp:19
Definition: core_properties.hpp:7
void rebuild(bool from_undo=false) override
Expands the non-working document.
Definition: core_symbol.cpp:256
PinDisplayMode
fills in information from the referenced unit
Definition: symbol.hpp:88
Where Tools and and documents meet.
Definition: core.hpp:240
Definition: core_symbol.hpp:10
Definition: layer_provider.hpp:7
This class encapsulates a UUID and allows it to be uses as a value type.
Definition: uuid.hpp:16
Definition: symbol.hpp:74
Stores objects (Unit, Entity, Symbol, Part, etc.) from the pool.
Definition: pool.hpp:21
A Junction is a point in 2D-Space.
Definition: junction.hpp:25
Graphical arc.
Definition: arc.hpp:20