Files
frelay/Gui/frelayGUI.h
2025-06-18 08:49:29 +08:00

48 lines
908 B
C++

#ifndef FRELAYGUI_H
#define FRELAYGUI_H
#include <ClientCore.h>
#include <QFile>
#include <QMainWindow>
#include <QTabWidget>
#include <thread>
#include "Control/ConnectControl.h"
#include "Control/FileControl.h"
#include "Control/LogControl.h"
QT_BEGIN_NAMESPACE
namespace Ui {
class frelayGUI;
}
QT_END_NAMESPACE
class frelayGUI : public QMainWindow
{
Q_OBJECT
public:
frelayGUI(QWidget* parent = nullptr);
~frelayGUI();
private:
void InitControl();
void ControlSignal();
void ControlLayout();
public:
static void ControlMsgHander(QtMsgType type, const QMessageLogContext& context, const QString& msg);
protected:
void closeEvent(QCloseEvent* event) override;
private:
Ui::frelayGUI* ui;
QTabWidget* tabWidget_;
Connecter* connecter_;
FileManager* localFile_;
FileManager* remoteFile_;
ClientCore* clientCore_;
};
#endif // FRELAYGUI_H