2 #include "frame/frame.hpp" 6 #include "nlohmann/json.hpp" 11 CoreFrame(
const std::string &frame_filename);
12 bool has_object_type(ObjectType ty)
override;
15 const Frame *get_canvas_data()
const;
18 void rebuild(
bool from_undo =
false)
override;
19 void commit()
override;
20 void revert()
override;
23 std::pair<Coordi, Coordi> get_bbox()
override;
26 std::map<UUID, Polygon> *get_polygon_map(
bool work =
true)
override;
27 std::map<UUID, Junction> *get_junction_map(
bool work =
true)
override;
28 std::map<UUID, Text> *get_text_map(
bool work =
true)
override;
29 std::map<UUID, Line> *get_line_map(
bool work =
true)
override;
30 std::map<UUID, Arc> *get_arc_map(
bool work =
true)
override;
34 std::string m_frame_filename;
38 HistoryItem(
const Frame &r);
41 void history_push()
override;
42 void history_load(
unsigned int i)
override;
Where Tools and and documents meet.
Definition: core.hpp:232
Definition: layer_provider.hpp:7
Definition: core_frame.hpp:9
void rebuild(bool from_undo=false) override
Expands the non-working document.
Definition: core_frame.cpp:55