3 #include "pool/symbol.hpp"
7 #include "document/idocument_symbol.hpp"
13 bool has_object_type(ObjectType ty)
const override;
14 Symbol &get_symbol()
override;
17 Line *get_line(
const UUID &uu)
override;
19 Arc *get_arc(
const UUID &uu)
override;
22 void delete_junction(
const UUID &uu)
override;
23 Line *insert_line(
const UUID &uu)
override;
24 void delete_line(
const UUID &uu)
override;
25 Arc *insert_arc(
const UUID &uu)
override;
26 void delete_arc(
const UUID &uu)
override;
29 void delete_symbol_pin(
const UUID &uu)
override;
33 std::vector<Line *> get_lines()
override;
34 std::vector<Arc *> get_arcs()
override;
36 bool set_property(ObjectType type,
const UUID &uu, ObjectProperty::ID property,
38 bool get_property(ObjectType type,
const UUID &uu, ObjectProperty::ID property,
40 bool get_property_meta(ObjectType type,
const UUID &uu, ObjectProperty::ID property,
43 std::string get_display_name(ObjectType type,
const UUID &uu)
override;
45 const Symbol &get_canvas_data();
46 std::pair<Coordi, Coordi> get_bbox()
override;
48 void reload_pool()
override;
52 const std::string &get_filename()
const override;
54 ObjectType get_object_type()
const override
56 return ObjectType::SYMBOL;
59 class Rules *get_rules()
override;
68 std::map<UUID, Text> *get_text_map()
override;
69 std::map<UUID, Polygon> *get_polygon_map()
override;
72 std::string m_filename;
84 void rebuild_internal(
bool from_undo,
const std::string &comment)
override;
85 void history_push(
const std::string &comment)
override;
86 void history_load(
unsigned int i)
override;
87 void save(
const std::string &suffix)
override;
88 void delete_autosave()
override;
Graphical arc.
Definition: arc.hpp:20
Definition: core_symbol.hpp:10
Where Tools and and documents meet.
Definition: core.hpp:42
Definition: file_version.hpp:9
Definition: idocument_symbol.hpp:5
A Junction is a point in 2D-Space.
Definition: junction.hpp:20
Definition: layer_provider.hpp:7
Graphical line.
Definition: line.hpp:19
Definition: core_properties.hpp:7
Definition: symbol.hpp:20
Definition: symbol_rules.hpp:10
Definition: symbol.hpp:72
PinDisplayMode
fills in information from the referenced unit
Definition: symbol.hpp:86
This class encapsulates a UUID and allows it to be uses as a value type.
Definition: uuid.hpp:16