-
Notifications
You must be signed in to change notification settings - Fork 1
/
Hid.hpp
39 lines (26 loc) · 896 Bytes
/
Hid.hpp
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
#pragma once
#include "decl.hxx"
#include "gui/decl.hxx"
#include "err.hpp"
#include <QSet>
#include <QVector>
namespace cornus {
class Hid {
public:
Hid(App *app);
virtual ~Hid();
void HandleKeySelect(gui::Tab *tab, const VDirection vdir, const int key, const Qt::KeyboardModifiers modifiers);
void HandleKeyShiftSelect(gui::Tab *tab, const VDirection vdir, const int key);
void HandleMouseSelectionShift(gui::Tab *tab, const QPoint &pos,
QSet<int> &indices);
void HandleMouseSelectionCtrl(gui::Tab *tab, const QPoint &pos,
QSet<int> *indices);
void HandleMouseSelectionNoModif(gui::Tab *tab, const QPoint &pos,
QSet<int> &indices, bool mouse_pressed,
gui::ShiftSelect *shift_select = nullptr);
void SelectFileByIndex(gui::Tab *tab, const int file_index, const DeselectOthers des);
private:
NO_ASSIGN_COPY_MOVE(Hid);
App *app_ = nullptr;
};
} // namespace