forked from Mdashdotdashn/LittleGPTracker
-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathSelectProjectDialog.h
More file actions
39 lines (31 loc) · 961 Bytes
/
SelectProjectDialog.h
File metadata and controls
39 lines (31 loc) · 961 Bytes
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
#ifndef _SELECT_PROJECT_DIALOG_H_
#define _SELECT_PROJECT_DIALOG_H_
#include "Application/Views/BaseClasses/ModalView.h"
#include "System/FileSystem/FileSystem.h"
#include "System/Errors/Result.h"
class SelectProjectDialog:public ModalView {
public:
SelectProjectDialog(View &view) ;
~SelectProjectDialog() ;
virtual void DrawView() ;
virtual void OnPlayerUpdate(PlayerEventType ,unsigned int currentTick) ;
virtual void OnFocus() ;
virtual void ProcessButtonMask(unsigned short mask,bool pressed) ;
Result OnNewProject(std::string &name) ;
Result OnDeleteProject(const Path &projectPath);
Path GetSelection();
Path GetCurrentProjectPath();
protected:
void warpToNextProject(int amount) ;
void setCurrentFolder(Path &path) ;
private:
T_SimpleList<Path> content_;
int topIndex_;
int currentProject_;
int selected_;
Path currentPath_;
Path selection_;
static Path lastFolder_;
static int lastProject_;
} ;
#endif