mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJClient.git
synced 2026-03-28 05:25:39 +03:00
feat: add scenario conflict resolver
This commit is contained in:
10
mainwindow.h
10
mainwindow.h
@@ -4,6 +4,7 @@
|
||||
#include <QMainWindow>
|
||||
#include <QDebug>
|
||||
#include <QHBoxLayout>
|
||||
#include <QPushButton>
|
||||
|
||||
#include <Widgets/commonbuttongroupwidget.h>
|
||||
#include <Widgets/updatenotifywidget.h>
|
||||
@@ -43,14 +44,13 @@ public:
|
||||
void setNeedUpdateState(const QString ¬ifyText);
|
||||
void setLastVersionState();
|
||||
void showConnectionEmpty();
|
||||
void showOfflineButton(bool flag);
|
||||
void setStartOfflineButton(bool isAvailable);
|
||||
void setStartState();
|
||||
void serverNotifyShow(QString text, int durationMS = 3000);
|
||||
void showError(ErrorsEnum errorNum);
|
||||
|
||||
QHBoxLayout *getDisplayLayout() const;
|
||||
void serverBlockedState();
|
||||
QPushButton *getStartOfflineButton() const;
|
||||
|
||||
public slots:
|
||||
void slotShowUpdateInfo();
|
||||
void slotConnectionState(bool flag);
|
||||
@@ -66,6 +66,8 @@ signals:
|
||||
void sigExit();
|
||||
void sigTryLogin();
|
||||
void sigStartOffline();
|
||||
bool sigAppAvailable();
|
||||
|
||||
|
||||
private slots:
|
||||
void on_settingsButton_clicked();
|
||||
@@ -84,11 +86,13 @@ private:
|
||||
QPixmap background;
|
||||
QRect bottomRightPosition;
|
||||
QRect offlinePosition;
|
||||
QPushButton startOfflineButton;
|
||||
void bindClient();
|
||||
void bindConnection();
|
||||
void setUpUi();
|
||||
|
||||
void paintEvent(QPaintEvent *event);
|
||||
void checkApp();
|
||||
protected:
|
||||
virtual void keyPressEvent(QKeyEvent *event);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user