#ifndef PROGEDITORWIN_H #define PROGEDITORWIN_H #include "basewin.h" #include "program/pageeditor.h" #include class ProgPanel; class ProgItem; class ProgEditorWin : public BaseWin { Q_OBJECT public: explicit ProgEditorWin(ProgItem *progItem, QWidget *parent = nullptr); public slots: void onSave(); void onAddPage(); protected: void closeEvent(QCloseEvent *event) override; private: bool isProgChanged(); void save(); void UdpSendJson(QJsonObject json); QListWidget *listPage; PageListItem *mPageItem = nullptr; PageEditor *progEditorMid; QTabWidget *mTabsAttr; QList mPageJsons; ProgItem *mProgItem; int mNewEleX = 0; int mNewEleY = 0; }; #endif // PROGEDITORWIN_H