-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainWindow.h
57 lines (47 loc) · 1.17 KB
/
MainWindow.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
#pragma once
#include <QtWidgets>
#include <QSettings>
#include "SystemTray.h"
#include "TableModel.h"
class SystemTray;
class MainWindow : public QWidget
{
Q_OBJECT
private:
friend SystemTray;
static const int columnTable = 2;
QList<QPair<QString, QStringList> > keyword;
QVBoxLayout* pvbx;
QHBoxLayout* phbx;
QPushButton* pbtn, *pAC, *pBAT, *pbtnTab;
QMenuBar* pbar;
TableModel* ptab;
QTableView* ptable;
SystemTray* st;
QSettings m_sett;
bool state;
QString curProf;
QString pathToProf;
void readSettings();
void writeSettings();
void createQMenuBar();
void createQMenuFile(QMenu*);
void createQMenuHelp(QMenu*);
//void fillTable();
void loadTempFile(QMap<QString, QStringList>&);//TODO : Only for studying and testing
public :
MainWindow(QWidget* parent = 0);
~MainWindow();
public slots:
//void slotSaveTable();
void slotOpenFile();
void slotSaveFile();
void slotSaveTable();
void slotCallEditor();
void slotSwitchMode(QString mode);
void slotSettings();
void slotAC();
void slotBAT();
void slotAboutProgram();
void slotActivateProfile();
};