2 #include "frame/frame.hpp"
6 #include "nlohmann/json.hpp"
11 CoreFrame(
const std::string &frame_filename);
12 bool has_object_type(ObjectType ty)
const override;
15 const Frame *get_canvas_data()
const;
18 void rebuild(
bool from_undo =
false)
override;
19 void commit()
override;
20 void revert()
override;
22 std::pair<Coordi, Coordi> get_bbox()
override;
24 const std::string &get_filename()
const override;
27 std::map<UUID, Polygon> *get_polygon_map(
bool work =
true)
override;
28 std::map<UUID, Junction> *get_junction_map(
bool work =
true)
override;
29 std::map<UUID, Text> *get_text_map(
bool work =
true)
override;
30 std::map<UUID, Line> *get_line_map(
bool work =
true)
override;
31 std::map<UUID, Arc> *get_arc_map(
bool work =
true)
override;
35 std::string m_frame_filename;
39 HistoryItem(
const Frame &r);
42 void history_push()
override;
43 void history_load(
unsigned int i)
override;
44 void save(
const std::string &suffix)
override;
45 void delete_autosave()
override;