forked from OpenPanzerProject/OP-Config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
getopqmaps.h
55 lines (45 loc) · 1.91 KB
/
getopqmaps.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
#ifndef GET_OP_QMAPS_H
#define GET_OP_QMAPS_H
#include <QMap>
#include <QString>
#include <op_defines.h>
class OP_QMaps
{
public:
OP_QMaps();
// Special functions
QMap<_special_function, QString> getAllSpecialFunctionsQMap();
QMap<_special_function, QString> getDigitalSpecialFunctionsQMap();
QMap<_special_function, QString> getAnalogSpecialFunctionsQMap();
QMap<_special_function, QString> getEmptySpecialFunctionsQMap();
QList<_special_function> getAllSpecialFunctionsSortOrder();
boolean isSpecialFunctionDigital(_special_function sf);
uint8_t GetSpecialFunctionExternalPortNum(_special_function sf);
// Trigger sources
QMap<_trigger_source, QString> getAllTriggerSourcesQMap();
QMap<_trigger_source, QString> getDigitalTriggerSourcesQMap();
QMap<_trigger_source, QString> getAnalogTriggerSourcesQMap();
QMap<_trigger_source, QString> getAuxChannelTriggerSourcesQMap();
QMap<_trigger_source, QString> getEmptyTriggerSourcesQMap();
boolean isTriggerSourceAuxChannel(_trigger_source);
QString getTriggerDescription(_trigger_source);
// Trigger actions
QMap<turretStick_positions, QString> getTurretStickSpecialPositionsQMap();
private:
// Special functions
QMap<_special_function, QString> _SF_ALL_QMAP;
QMap<_special_function, QString> _SF_DIGITAL_QMAP;
QMap<_special_function, QString> _SF_ANALOG_QMAP;
QMap<_special_function, QString> _SF_PORTS_QMAP;
QMap<_special_function, QString> _SF_EMPTY_QMAP;
QList<_special_function> _SF_ALL_QMAP_SORT;
// Trigger sources
QMap<_trigger_source, QString> _OPT_ALL_QMAP;
QMap<_trigger_source, QString> _OPT_DIGITAL_QMAP;
QMap<_trigger_source, QString> _OPT_ANALOG_QMAP;
QMap<_trigger_source, QString> _OPT_AUX_QMAP;
QMap<_trigger_source, QString> _OPT_EMPTY_QMAP;
// Turret stick special positions
QMap<turretStick_positions, QString> _SP_TURRET_STICK;
};
#endif