new_alterator/include/alterator_loader.h

50 lines
1.0 KiB
C++

#ifndef ALTERATORLOADER_H
#define ALTERATORLOADER_H
#include <QObject>
#include <QQuickWidget>
#include <QHash>
#include <QUuid>
#include <QVector>
#include <QProcess>
#include <QQmlApplicationEngine>
class AlteratorLoader: public QObject
{
Q_OBJECT
public:
AlteratorLoader(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 = "../new_alterator/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