forked from zfteam/rs97-commander-sdl2
-
Notifications
You must be signed in to change notification settings - Fork 4
/
commander.h
executable file
·53 lines (38 loc) · 1.07 KB
/
commander.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
#ifndef _COMMANDER_H_
#define _COMMANDER_H_
#include <SDL.h>
#include "panel.h"
#include "window.h"
class CCommander : public CWindow
{
public:
// Constructor
CCommander(const std::string &p_pathL, const std::string &p_pathR);
// Destructor
virtual ~CCommander(void);
private:
// Forbidden
CCommander(void);
CCommander(const CCommander &p_source);
const CCommander &operator =(const CCommander &p_source);
// Key press management
virtual const bool keyPress(const SDL_Event &p_event);
// Key hold management
virtual const bool keyHold(void);
// Draw
virtual void render(const bool p_focus) const;
// Is window full screen?
virtual bool isFullScreen(void) const;
// Open the file operation menus
const bool openCopyMenu(void) const;
void openExecuteMenu(void) const;
// Open the selection menu
const bool openSystemMenu(void);
// The two panels
CPanel m_panelLeft;
CPanel m_panelRight;
CPanel* m_panelSource;
CPanel* m_panelTarget;
SDL_Surface *m_background;
};
#endif