17class Timeline :
public QObject
23 getEditorSettings CONSTANT FINAL)
28 const structure::arrangement::ArrangerObjectRegistry ®istry,
29 QObject * parent =
nullptr);
35 auto getEditorSettings ()
const {
return editor_settings_.get (); }
40 friend void init_from (
42 const Timeline &other,
46 static constexpr auto kEditorSettingsKey =
"editorSettings"sv;
48 static constexpr auto kTracksWidthKey =
"tracksWidth";
49 friend void to_json (nlohmann::json &j,
const Timeline &p)
51 j[kEditorSettingsKey] = p.editor_settings_;
52 j[kTracksWidthKey] = p.tracks_width_;
54 friend void from_json (
const nlohmann::json &j, Timeline &p)
56 j.at (kEditorSettingsKey).get_to (p.editor_settings_);
57 j.at (kTracksWidthKey).get_to (p.tracks_width_);
64 int tracks_width_ = 0;