mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJClient.git
synced 2026-03-28 05:25:39 +03:00
54 lines
1.3 KiB
C++
54 lines
1.3 KiB
C++
#ifndef UPDATENOTIFYWIDGET_H
|
|
#define UPDATENOTIFYWIDGET_H
|
|
|
|
#include <QDialog>
|
|
#include <QWidget>
|
|
#include <QLabel>
|
|
|
|
#include <Data/FileData.h>
|
|
#include <Core/versioncontainer.h>
|
|
#include <Widgets/updatefileslot.h>
|
|
|
|
namespace Ui {
|
|
class UpdateNotifyWidget;
|
|
}
|
|
|
|
|
|
class UpdateNotifyWidget : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit UpdateNotifyWidget(QWidget *parent = nullptr);
|
|
~UpdateNotifyWidget();
|
|
void initialize(QPoint startPos);
|
|
void addToList(FileData localFileData,FileData serverFileData);
|
|
void showWithFill();
|
|
void showTryChangeBase();
|
|
void setVersionContainer(VersionContainer *versionContainer);
|
|
void closeWindow();
|
|
QList<FileData> *getUpdateList();
|
|
signals:
|
|
void sigLoadToServerBehaviour();
|
|
void sigUndoCurrentChanges();
|
|
void sigStartUnityClient();
|
|
void sigShowMainFrame(bool flag);
|
|
|
|
private slots:
|
|
void on_closeButton_clicked();
|
|
void on_loadToServerButton_clicked();
|
|
void on_undoChangesButton_clicked();
|
|
void on_startWithCurrentChangesButton_clicked();
|
|
|
|
private:
|
|
Ui::UpdateNotifyWidget *ui;
|
|
VersionContainer *versionContainer;
|
|
int currentLoadingCount;
|
|
QLabel* createLabel(QString text);
|
|
void clearList();
|
|
void setUpdateState();
|
|
void setCantUpdateState();
|
|
};
|
|
|
|
#endif // UPDATENOTIFYWIDGET_H
|