mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-27 06:01:14 +01:00
Move
Updated submodule client/qwt
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
#ifndef MAINWINDOW_H
|
||||
#define MAINWINDOW_H
|
||||
|
||||
#include <map>
|
||||
#include <QMainWindow>
|
||||
#include "web_socket_wrapper.h"
|
||||
#include "networkerror.h"
|
||||
#include "simulator_base.h"
|
||||
|
||||
namespace Ui {
|
||||
class MainWindow;
|
||||
}
|
||||
|
||||
class MainWindow : public QMainWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit MainWindow(QString host, uint16_t port, QWidget *parent = nullptr);
|
||||
~MainWindow();
|
||||
|
||||
void defaultSim(QString name);
|
||||
void pase_sim_names(json& sims);
|
||||
void open_sim_window(void);
|
||||
void check_active_sim(QString name);
|
||||
void open_sim(QString sim_name);
|
||||
void setup_cb(void);
|
||||
|
||||
signals:
|
||||
void quit(void);
|
||||
private:
|
||||
void showEvent(QShowEvent* event);
|
||||
void hideEvent(QHideEvent* event);
|
||||
|
||||
void on_cmd_cb(json& j);
|
||||
|
||||
bool m_default_sim = false;
|
||||
QString m_selected_sim_name;
|
||||
QMainWindow* m_selected_sim;
|
||||
Ui::MainWindow* ui;
|
||||
Web_socket_wrapper *m_web_socket;
|
||||
NetworkError* m_error_dialog;
|
||||
|
||||
std::map<QString, SimulatorBase*> m_sims;
|
||||
};
|
||||
|
||||
#endif // MAINWINDOW_H
|
||||
Reference in New Issue
Block a user