mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 04:37:44 +00:00
Presenter: Support multiple frames per slide
This commit is contained in:
parent
7c312980b0
commit
fcda397136
8 changed files with 84 additions and 37 deletions
|
@ -14,17 +14,17 @@
|
|||
// A single slide of a presentation.
|
||||
class Slide final {
|
||||
public:
|
||||
static ErrorOr<Slide> parse_slide(JsonObject const& slide_json);
|
||||
static ErrorOr<Slide> parse_slide(JsonObject const& slide_json, unsigned slide_index);
|
||||
|
||||
// FIXME: shouldn't be hard-coded to 1.
|
||||
unsigned frame_count() const { return 1; }
|
||||
unsigned frame_count() const { return m_frame_count; }
|
||||
StringView title() const { return m_title; }
|
||||
|
||||
ErrorOr<HTMLElement> render(Presentation const&) const;
|
||||
|
||||
private:
|
||||
Slide(Vector<NonnullRefPtr<SlideObject>> slide_objects, DeprecatedString title);
|
||||
Slide(unsigned frame_count, Vector<NonnullRefPtr<SlideObject>> slide_objects, DeprecatedString title);
|
||||
|
||||
unsigned m_frame_count;
|
||||
Vector<NonnullRefPtr<SlideObject>> m_slide_objects;
|
||||
DeprecatedString m_title;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue