This repository has been archived by the owner on Apr 9, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmanagerwindow.h
65 lines (51 loc) · 1.73 KB
/
managerwindow.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
// GPLv3 License
// Copyright (c) 2019 Danny Angelo Carminati Grein
#pragma once
#include <QMainWindow>
#include <QCloseEvent>
#include <QKeyEvent>
#include "updater/updatemanager.h"
#include <QTimer>
namespace Ui
{
class ManagerWindow;
}
class ManagerWindow : public QMainWindow
{
Q_OBJECT
public:
explicit ManagerWindow(QWidget *parent = nullptr);
~ManagerWindow();
protected:
void closeEvent(QCloseEvent *event);
void keyPressEvent(QKeyEvent *event);
private slots:
void on_lw_XUOAFeaturesOptions_clicked(const QModelIndex &index);
void on_lw_XUOAFeaturesScripts_clicked(const QModelIndex &index);
void on_rb_XUOAFeaturesSphere_clicked();
void on_rb_XUOAFeaturesRunUO_clicked();
void on_rb_XUOAFeaturesPOL_clicked();
void on_lw_XuoFeaturesOptions_clicked(const QModelIndex &index);
void on_rb_XuoFeaturesSphere_clicked();
void on_rb_XuoFeaturesRunUO_clicked();
void on_rb_XuoFeaturesPOL_clicked();
void on_pb_Process_clicked();
void on_tb_SetReleasePath_clicked();
void on_tw_Main_currentChanged(int index);
void onUpdatesListReceived(const QList<CFileInfo> &list);
void onPackageListReceived(const QMap<QString, QMap<QString, CReleaseInfo>> &packages);
signals:
void updatesListReceived(const QList<CFileInfo> &);
void packageListReceived(const QMap<QString, QMap<QString, CReleaseInfo>> &);
void fileReceived(const QDir &);
void autoUpdateProgress(int);
void autoUpdateNotification();
private:
Ui::ManagerWindow *ui = nullptr;
UpdateManager *m_UpdateManager = nullptr;
QString boolToText(const bool &value);
bool rawStringToBool(QString value);
void refreshUpdates();
void updateXUOAFeaturesCode();
void updateXuoFeaturesCode();
};