-
Notifications
You must be signed in to change notification settings - Fork 0
/
FileList.h
62 lines (53 loc) · 1.37 KB
/
FileList.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
/*
* File: FileList.h
* Author: scribble
*
* Created on February 11, 2013, 4:07 AM
*/
#ifndef FILELIST_H
#define FILELIST_H
#include <string>
#include "FileListButton.h"
#include "FileListCell.h"
#include <vector>
#include "defines.h"
class ScreenInterpreter;
class FileList {
public:
FileList();
FileList(int x_, int y_, int w_, int h_);
FileList(const FileList& orig);
virtual ~FileList();
int getX();
int getY();
int getWidth();
int getHeight();
std::string getImagePath();
void screenPressEvent(Point* point);
void screenMoveEvent(Point* point);
void screenReleaseEvent();
void callAction(int action);
void setScreenInterpreter(ScreenInterpreter *s);
std::vector <FileListButton *> * getButtonArray();
std::vector <std::string> getFileList();
void setFileList(std::vector <std::string> fl);
std::vector <FileListCell *> *getFileListTable();
std::string getNumberOfPages();
std::string getCurrentPage();
private:
int x;
int y;
int width;
int height;
std::string imagePath;
std::vector<FileListButton *> *buttonArray;
ScreenInterpreter *screenInterpreter;
std::vector <std::string> fileList;
std::vector <FileListCell *> *fileTable;
uint start;
uint size;
uint numberOfPages;
uint page;
void createTable();
};
#endif /* FILELIST_H */