-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathGuiNavigation.h
51 lines (38 loc) · 1.08 KB
/
GuiNavigation.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
/*
* Copyright (C) 2013 Rajendran Thirupugalsamy
* See LICENSE for full copyright and license information.
* See COPYING for distribution information.
*/
#ifndef GUINAVIGATION_H
#define GUINAVIGATION_H
#include <map>
#include <stdint.h>
#include <QListWidget>
using namespace std;
class GuiMainWindow;
class GuiTerminalWindow;
class GuiTabNavigation : public QListWidget {
GuiMainWindow *mainWindow;
public:
GuiTabNavigation(GuiMainWindow *p);
void navigateToTab(bool next);
void acceptNavigation();
protected:
void focusOutEvent(QFocusEvent *e);
void keyPressEvent(QKeyEvent *e);
void keyReleaseEvent(QKeyEvent *e);
};
class GuiPaneNavigation : public QWidget {
GuiMainWindow *mainWindow;
map<uint32_t, GuiTerminalWindow *> mrupanemap;
uint32_t curr_sel;
public:
GuiPaneNavigation(GuiMainWindow *p, bool is_direction_mode = false);
void navigateToDirectionPane(Qt::Key key);
void navigateToMRUPane(bool next);
void acceptNavigation();
protected:
void focusOutEvent(QFocusEvent *e);
void keyReleaseEvent(QKeyEvent *e);
};
#endif // GUINAVIGATION_H