qt/LedOK/program/emultiwin.h

28 lines
679 B
C
Raw Permalink Normal View History

2022-08-25 18:37:24 +08:00
#ifndef EMULTIWIN_H
#define EMULTIWIN_H
#include "ebase.h"
#include "pagelistitem.h"
class EMultiWin : public EBase {
Q_OBJECT
public:
explicit EMultiWin(PageListItem *pageItem);
2023-10-23 14:58:29 +08:00
explicit EMultiWin(const JObj &json, PageListItem *pageItem);
2022-08-25 18:37:24 +08:00
~EMultiWin();
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override;
int type() const override { return EBase::Window; }
QWidget* attrWgt() override;
bool save(const QString &) override;
2023-10-23 14:58:29 +08:00
JObj attrJson() const override;
2022-08-25 18:37:24 +08:00
void setCur(EBase *);
2023-10-23 14:58:29 +08:00
PageListItem *mPageItem = 0;
std::vector<EBase*> inners;
2022-08-25 18:37:24 +08:00
int index{-1};
};
#endif // EMULTIWIN_H