-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathalphabetconstants.h
More file actions
46 lines (35 loc) · 1.56 KB
/
alphabetconstants.h
File metadata and controls
46 lines (35 loc) · 1.56 KB
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
#ifndef ALPHABETCONSTANTS_H
#define ALPHABETCONSTANTS_H
#include <QWidget>
class QString;
class QStringList;
namespace alpha
{
const int N_EXISTANTS = 5;
const QString UPPERCASE = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
const QString LOWERCASE = "abcdefghijklmnopqrstuvwxyz";
const QString NUMBERS = "0123456789";
const QString DEFAULT_SPECHAR = "&-@_";
const int D_SPECHAR_COUNT = DEFAULT_SPECHAR.size();
}
namespace chBox {
const QStringList LABEL = { "Capital letters",
"Small letters",
"Numbers",
"Special Characters",
"Words"};
const QStringList INFOBULLE = { "A-Z",
"a-z",
"0-9",
"Customisable set of special characters (by default, includes &-@_)",
"Customisable groups of characters"};
const Qt::CheckState InitialState [alpha::N_EXISTANTS] = {
Qt::Checked,
Qt::Checked,
Qt::Checked,
Qt::Checked,
Qt::Unchecked };
const int gridRowPos [alpha::N_EXISTANTS] = {2, 3, 4, 5, 6};
}
enum atype {cap, small, nb, speChar, words}; // types d'alphabets
#endif // ALPHABETCONSTANTS_H