blob: 4811ae54b5a0dc1e827f74f29be643e9e9094396 (
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
|
#ifndef __LAYOUTSCROLLSELECT_H__
#define __LAYOUTSCROLLSELECT_H__
#include "Layout.h"
#include <vector>
typedef std::vector<std::string> Items;
class LayoutScrollSelect : public Layout {
public:
LayoutScrollSelect(DOGS102* lcd, Items items, std::string info1 = "", std::string info2 = "");
~LayoutScrollSelect();
void display();
void scroll();
std::string select();
private:
void increment(size_t& index);
void decrement(size_t& index);
Label _lSw1;
Label _lSw2;
Label _lInfo1;
Label _lInfo2;
Label _lCursor;
Field _fItem1;
Field _fItem2;
Field _fItem3;
Field _fItem4;
Field _fItem5;
Items _items;
size_t _selected;
size_t _size;
};
#endif
|