-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathfList.h
125 lines (84 loc) · 2.28 KB
/
fList.h
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
#ifndef fList_h
#define fList_h
#include <Adafruit_GFX.h>
#include <timeObj.h>
#include <bmpLabel.h>
#include <mapper.h>
#include <drawObj.h>
#include "bmpDrawObj.h"
#include "pushPotGUI.h"
#define FL_X 10
#define FL_Y 10
#define FL_H 110
#define FL_W 100
#define FLI_X 0
#define FLI_Y 0
#define FLI_H 12
#define FLI_W 100
#define NUM_FLI FL_H/FLI_H
#define POT_MS 100
void startEditor(void);
void drawBackground(void);
extern colorObj pencil;
class fListItem;
// First we have the list itself..
class fList : public drawList, public pushPotGUI {
public:
fList(void);
virtual ~fList(void);
virtual void reset(void);
virtual void drawSelf(void);
void chooseItem(int index);
virtual void doPotVal(int aVal);
virtual void gainControl(void);
void scroll(int ydist);
void makeVisable(fListItem* theItem);
bool visible(fListItem* theItem);
void currentSongRefresh();
};
// And here the list items..
class marker;
class DBSelector;
class playFile;
class fListItem : public drawGroup, public pushPotGUI {
public:
fListItem(char* fileName);
virtual ~fListItem(void);
virtual void setFocus(bool onOff);
virtual void gainControl(void);
virtual void doAction(void);
virtual void doPotVal(int aVal);
virtual bool wantRefresh(void);
virtual void drawSelf(void);
bmpLabel* mText;
marker* mMarker;
DBSelector* mSelector;
playFile* mPlayFile;
};
class marker : public bmpDrawObj {
public:
marker(int x,int y, word width, word height);
virtual ~marker(void);
void setColor(colorObj* aColor);
virtual void doAction(void);
virtual void drawSelf(void);
colorObj mColor;
bool pointIn;
};
class playFile : public bmpDrawObj {
public:
playFile(label* inLabel);
virtual ~playFile(void);
virtual void doAction(void);
virtual void drawSelf(void);
label* mText;
};
class DBSelector : public bmpDrawObj {
public:
DBSelector(label* inLabel);
virtual ~DBSelector(void);
virtual void doAction(void);
virtual void drawSelf(void);
label* mText;
};
#endif