mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
refact1
This commit is contained in:
77
LibInstructorsAndTrainees/settings/dialogversioncontrol.h
Normal file
77
LibInstructorsAndTrainees/settings/dialogversioncontrol.h
Normal file
@@ -0,0 +1,77 @@
|
||||
#ifndef VERSIONSELECTWIDGET_H
|
||||
#define VERSIONSELECTWIDGET_H
|
||||
|
||||
#include <QListWidget>
|
||||
#include <QWidget>
|
||||
#include <QDialog>
|
||||
|
||||
#include "versioncontainer.h"
|
||||
#include "streamingversiondata.h"
|
||||
#include "dialognewversion.h"
|
||||
#include "waitanimationwidget.h"
|
||||
#include "connectortoserver.h"
|
||||
|
||||
namespace Ui {
|
||||
class DialogVersionControl;
|
||||
}
|
||||
|
||||
class DialogVersionControl : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit DialogVersionControl(ConnectorToServer* connectorToServer, QWidget *parent = nullptr);
|
||||
~DialogVersionControl();
|
||||
|
||||
void initialize(QString authorName);
|
||||
|
||||
public:
|
||||
void resizeEvent(QResizeEvent *event) override;
|
||||
|
||||
private slots:
|
||||
void on_createDuplicateButton_clicked();
|
||||
void on_deleteVersionButton_clicked();
|
||||
void on_switchServerVersionButton_clicked();
|
||||
|
||||
void on_verListView_itemClicked(QListWidgetItem *item);
|
||||
|
||||
private slots:
|
||||
void slot_activateLoadAnimation(bool flag);
|
||||
void slot_showServerList(QList<StreamingVersionData*> *serverList);
|
||||
void slot_SetVersion(StreamingVersionData* serverVersion);
|
||||
void slot_NotifyVersionControl(QString text);
|
||||
|
||||
signals:
|
||||
void sigSendDeleteVersion(StreamingVersionData *streaming);
|
||||
void sigSendSwitchVersion(StreamingVersionData *selectVersion);
|
||||
void sigSendCopyVersion(QString versionPair);
|
||||
|
||||
void signal_getVersion();
|
||||
|
||||
private:
|
||||
QString changableText(bool flag);
|
||||
void fillView(QList<StreamingVersionData*> *serverData);
|
||||
void sendCopyEmit(QString newName);
|
||||
|
||||
private:
|
||||
|
||||
Ui::DialogVersionControl *ui;
|
||||
|
||||
ConnectorToServer* connectorToServer;
|
||||
|
||||
QList<StreamingVersionData*> *serverDataList;
|
||||
|
||||
StreamingVersionData *selectedVersion;
|
||||
|
||||
VersionContainer *versionContainer;
|
||||
|
||||
WaitAnimationWidget *waitAnimationWidget;
|
||||
|
||||
DialogNewVersion *dlgNewVersion;
|
||||
|
||||
QString authorName;
|
||||
|
||||
bool flGetVersion;
|
||||
};
|
||||
|
||||
#endif // VERSIONSELECTWIDGET_H
|
||||
Reference in New Issue
Block a user