-
Notifications
You must be signed in to change notification settings - Fork 0
/
maindlg.h
86 lines (68 loc) · 1.81 KB
/
maindlg.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
74
75
76
77
78
79
80
81
82
83
84
85
86
#ifndef MAINDLG_H
#define MAINDLG_H
#include <QDialog>
#include <QRect>
#include <QLabel>
#include <QPropertyAnimation>
#include <QEasingCurve>
#include <QString>
#include <QList>
#include <QMap>
#include <QMessageBox>
#include <QVBoxLayout>
#include <QMouseEvent>
#include <QSystemTrayIcon>
#include <QGraphicsBlurEffect>
#include <QPainter>
#include <QProgressBar>
#include <QFontDatabase>
#include "downloadqueuehandler.h"
#include "downloadFileHandler.h"
#include "xmlparser.h"
#include "catalog.h"
#include "tabentry.h"
#include "md5.h"
#include "msgdlg.h"
#include "filetools.h"
#include "stringdictionnary.h"
namespace Ui {
class MainDlg;
}
class MainDlg : public QDialog {
Q_OBJECT
public:
explicit MainDlg(QWidget *parent = 0);
~MainDlg();
bool isMinimized() {return minimized;}
public slots:
void parseListDotXml();
void addSoftwareEntry(SoftwareEntry *s);
void installSoftwareEntries();
void showWaitLayer(bool activate);
void downloadError(QString);
void buildTabContent();
void go();
void closeApp();
void minimizeApp();
void showApp();
void hideApp();
void about();
protected:
void mouseMoveEvent(QMouseEvent* event);
void mousePressEvent(QMouseEvent* event);
private:
Ui::MainDlg *ui;
QDir tmpDir;
QSystemTrayIcon *trayIcon;
QLabel *waitLayer;
bool minimized;
const QString listDotZipPath = "http://localhost/list.zip";
QMap<QString, SoftwareEntry*> list;
QMap<QString, QWidget*> tabs;
const QString toolTip = "<table width='200'><tr><td colspan='2'><b><center>%1 %2</center></b></td></tr><tr><td>Size</td><td>%3</td></tr><tr><td>URL</td><td><nobr>%4</nobr></td></tr></table>";
DownloadFileHandler *dfh;
DownloadQueueHandler *dqh;
bool hasError = false;
QPoint mpos;
};
#endif // MAINDLG_H