mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJClient.git
synced 2026-03-28 05:25:39 +03:00
ref: draft
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#include "updatenotifywidget.h"
|
||||
#include "ui_updatenotifywidget.h"
|
||||
#include "mainwindow.h"
|
||||
#include "Core/tools.h"
|
||||
|
||||
#include <QMessageBox>
|
||||
|
||||
@@ -12,14 +12,13 @@ UpdateNotifyWidget::UpdateNotifyWidget(QWidget *) :
|
||||
// setAttribute(Qt::WA_ShowModal,true);
|
||||
}
|
||||
|
||||
void UpdateNotifyWidget::initialize(MainWindow *mainWindow,VersionContainer *verContainer)
|
||||
void UpdateNotifyWidget::initialize(VersionContainer *verContainer,QPoint startPos)
|
||||
{
|
||||
this->mainWindow = mainWindow;
|
||||
this->versionContainer = verContainer;
|
||||
currentLoadingCount = 0;
|
||||
hide();
|
||||
|
||||
auto pos = mainWindow->pos();
|
||||
QPoint pos = startPos;
|
||||
pos.setY(pos.y() + 40);
|
||||
move(pos);
|
||||
}
|
||||
@@ -101,17 +100,17 @@ QLabel* UpdateNotifyWidget::createLabel(QString text)
|
||||
}
|
||||
void UpdateNotifyWidget::on_loadToServerButton_clicked()
|
||||
{
|
||||
mainWindow->loadToServer();
|
||||
emit sigLoadToServerBehaviour();
|
||||
}
|
||||
|
||||
void UpdateNotifyWidget::on_undoChangesButton_clicked()
|
||||
{
|
||||
mainWindow->undoCurrentChanges();
|
||||
emit sigUndoCurrentChanges();
|
||||
}
|
||||
|
||||
void UpdateNotifyWidget::on_startWithCurrentChangesButton_clicked()
|
||||
{
|
||||
mainWindow->startUnityClient();
|
||||
emit sigStartUnityClient();
|
||||
}
|
||||
|
||||
void UpdateNotifyWidget::setUpdateState()
|
||||
@@ -136,11 +135,6 @@ UpdateNotifyWidget::~UpdateNotifyWidget()
|
||||
|
||||
void UpdateNotifyWidget::on_closeButton_clicked()
|
||||
{
|
||||
mainWindow->showMainFrame(true);
|
||||
emit sigShowMainFrame(true);
|
||||
close();
|
||||
}
|
||||
|
||||
void UpdateNotifyWidget::on_updateActionListLabel_linkActivated(const QString &link)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user