forked from ieatlint/MagRead
-
Notifications
You must be signed in to change notification settings - Fork 0
/
aamvacard.h
60 lines (43 loc) · 983 Bytes
/
aamvacard.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
#ifndef AAMVACARD_H
#define AAMVACARD_H
#include <QWidget>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QLabel>
#include <QEvent>
#include <QApplication>
#include <QDesktopWidget>
#include "magcard.h"
class AAMVACard : public QWidget {
Q_OBJECT
public:
explicit AAMVACard( MagCard *_card = 0 );
void setCard( MagCard *_card );
private:
void showData();
void reorient();
enum {
LANDSCAPE,
PORTRAIT
} orientation;
MagCard *card;
QVBoxLayout *layout;
QLabel *aamvaIssuerName;
QLabel *accountNumber;
QLabel *aamvaAge;
QWidget *vFlexWidget;
QVBoxLayout *vFlexBox;
QWidget *hFlexWidget;
QHBoxLayout *hFlexBox;
QLabel *expirationDate;
QVBoxLayout *vboxExpirationDate;
QWidget *vWidgetExpirationDate;
QLabel *aamvaBirthday;
QVBoxLayout *vboxaamvaBirthday;
QWidget *vWidgetaamvaBirthday;
QFont smallFont;
QFont medFont;
protected:
bool eventFilter( QObject *obj, QEvent *event );
};
#endif // AAMVACARD_H