new_alterator/include/alterator_loader.h
2022-07-11 20:12:12 +04:00

43 lines
1013 B
C++

#ifndef ALTERATORLOADER_H
#define ALTERATORLOADER_H
#include <QObject>
#include <QQuickWidget>
#include <QHash>
#include <QUuid>
#include <QVector>
#include <QProcess>
#include <QQmlApplicationEngine>
namespace Alterator{
class Loader: public QObject
{
Q_OBJECT
public:
Loader(QObject *p);
signals:
void move(QString windowId, QString targetUrl);
void windowHistory(QString windiwId, QHash<QString, QVector<QString>> data);
public slots:
void openReq(QString targetUrl);
void moveReq(QString senderId, QString targetUrl);
void closed(QString senderId);
void back(QString senderId);
void forvard(QString senderId);
private:
const QString windowUrl = "../shared/AlteratorWindow.qml";
void open(QString targetUrl);
void justMove(QString senderId, QString targetUrl);
QHash<QString, QVector<QString>> past;
QHash<QString, QVector<QString>> future;
QHash<QString, QObject*> widgets;
QQmlApplicationEngine *engine;
};
}
#endif // ALTERATORLOADER_H