-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathWidget.h
51 lines (40 loc) · 852 Bytes
/
Widget.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
#ifndef WIDGET_H
#define WIDGET_H
#include "ColorLog.h"
#include <QWidget>
#include <QPaintEvent>
class Patcher;
class Filer;
namespace Ui {
class Widget;
}
class Widget : public QWidget
{
Q_OBJECT
public:
explicit Widget(QWidget *parent = 0);
~Widget();
private slots:
void openCG45File();
void appendToLog(ColError err, QString aString);
void clearLog();
void disableButtons();
void enableButtons();
void startPatchThread();
void setProgress(int aValue);
void initPatcher(const QString &aFilePath);
void showAbout();
private:
void disableGUIButtons(bool disable);
void initLogArea();
protected:
void paintEvent(QPaintEvent *);
private:
QPixmap zn5pix;
QPixmap header;
int zn5pixWidth;
Patcher *patcher;
Filer *filer;
Ui::Widget *ui;
};
#endif // WIDGET_H