This repository has been archived by the owner on Mar 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglobals.h
73 lines (60 loc) · 2.01 KB
/
globals.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#ifndef MAIN_H
#define MAIN_H
#include <QString>
#include <QStringList>
#include <QDateTime>
#define ORG_NAME "ZHILAB"
#define APP_NAME "ESTester"
#define MAJOR_VERSION 1
#define MINOR_VERSION 41
const QString appTitle = "Испытатель " + QString::number(MAJOR_VERSION) + "." + QString::number(MINOR_VERSION);
enum filter_t {noFilter = 0, onlyInProgress, willDoneToday, onlyNoDone, onlyDone};
typedef struct {
QString chipName;
QString map;
int count;
qint64 startTime;
qint64 duration;
qint64 endTime;
QString device;
QString comment;
bool isDone;
int id;
} ChipInfo_t;
typedef enum {ASK, MINIMIZE, EXIT} closeAction_t;
const QStringList closeActionItems = {"Спросить о действии", "Свернуть", "Выйти из программы"};
#define TABLE_COL_CHIP 0
#define TABLE_COL_MAP 1
#define TABLE_COL_COUNT 2
#define TABLE_COL_START_TIME 3
#define TABLE_COL_DURATION 4
#define TABLE_COL_END_TIME 5
#define TABLE_COL_DEVICE 6
#define TABLE_COL_COMMENT 7
#define TABLE_COL_ISDONE 8
#define TABLE_COL_TESTER 9
#define TABLE_COL_ID 10
#define TABLE_CHIP 1
#define TABLE_MAP 2
#define TABLE_COUNT 3
#define TABLE_DURATION 4
#define TABLE_START_TIME 5
#define TABLE_END_TIME 6
#define TABLE_DEVICE 7
#define TABLE_COMMENT 8
#define TABLE_ISDONE 9
#define TABLE_TESTER 10
#define TABLE_ID 11
#define TESTER_NAME qsettings->value("userSettings/userName", "NoName").toString()
const QString DB_TABLE_NAME = "chipList";
const QString EDIT_DATE_FORMAT = "dd MMM yyyy ddd HH:mm";
const QString CURRENT_DATE_FORMAT = "dd MMM yyyy ddd HH:mm:ss";
const QString DATE_FORMAT = "dd MMM yyyy (ddd) HH:mm";
const QString ONLY_DAY_OF_WEEK = "ddd";
#define TIMER_DEFAULT_PERIOD 600 // sec
#define IMPORT_EXPORT_DATA_SEPARATOR "|||"
#define CLOSE_PROGRAM 0
#define HIDE_PROGRAM 1
#define DUMP_IMPORT_HEADERS_LINE 0
#define DUMP_IMPORT_DATA_LINE 1
#endif // MAIN_H