-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathimenubar.h
73 lines (64 loc) · 1.68 KB
/
imenubar.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
#ifndef IMENUBAR
#define IMENUBAR
#include <QMenuBar>
//#include "dialog.h"
#include "translator.h"
class IMenuBar : public QMenuBar {
Q_OBJECT
public:
explicit IMenuBar(QFont f, QWidget* parent = NULL, Translator* trans = NULL);
Translator* mTranslator;
QFont font;
void changeLanguage();
public slots:
void newFile();
void loadFile();
void save();
void saveAs();
void printInventory();
void printHistory();
void printTransactions();
void changeToEnglish();
void changeToChinese();
void changeToDarkMode();
void changeToLightMode();
void showPreferences();
void addVegetable();
void addCompany();
void addPerson();
void addUnit();
void removeCompany();
void removePerson();
void removeVegetable();
void removeUnit();
private:
QAction *undoAction;
QAction *undoHistoryAction;
QAction *exitAction;
QAction *printAction;
QAction *printAction2;
QAction *printAction3;
QAction *newAction;
QAction *saveAction;
QAction *saveAsAction;
QAction *loadAction;
QAction *addPersonAction;
QAction *addCompanyAction;
QAction *addVegetableAction;
QAction *addUnitAction;
QAction *removePersonAction;
QAction *removeCompanyAction;
QAction *removeVegetableAction;
QAction *removeUnitAction;
QAction *deleteVegeAction;
QAction *deleteHistoryAction;
QAction *deleteRemainingAction;
QAction *deleteReturnAction;
QAction *changeToChineseAction;
QAction *changeToEnglishAction;
QAction *mShowPreferencesAction;
QAction *changeToDarkModeAction;
QAction *changeToLightModeAction;
QWidget* parent;
};
#endif // IMENUBAR