summaryrefslogtreecommitdiff
path: root/src/ui/include/screen_onboarding.hpp
blob: 0c3c61fbe57d85ef4853b3023575276809a1d0ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/*
 * Copyright 2023 jacqueline <me@jacqueline.id.au>
 *
 * SPDX-License-Identifier: GPL-3.0-only
 */

#pragma once

#include <memory>
#include <vector>

#include "lvgl.h"

#include "screen.hpp"

namespace ui {
namespace screens {

class Onboarding : public Screen {
 public:
  Onboarding(const std::pmr::string& title, bool show_prev, bool show_next);

 private:
  lv_obj_t* window_;
  lv_obj_t* title_;
  lv_obj_t* next_button_;
  lv_obj_t* prev_button_;

 protected:
  lv_obj_t* content_;
};

namespace onboarding {

class LinkToManual : public Onboarding {
 public:
  LinkToManual();
};

class Controls : public Onboarding {
 public:
  Controls();
};

class MissingSdCard : public Onboarding {
 public:
  MissingSdCard();
};

class FormatSdCard : public Onboarding {
 public:
  FormatSdCard();
};

class InitDatabase : public Onboarding {
 public:
  InitDatabase();
};

}  // namespace onboarding

}  // namespace screens
}  // namespace ui