qt/LedOK/program/pageeditor.h

50 lines
1.0 KiB
C
Raw Normal View History

2022-08-25 18:37:24 +08:00
#ifndef PAGEEDITOR_H
#define PAGEEDITOR_H
#include <QLabel>
#include <QGraphicsView>
class EBase;
class PageListItem;
class PageEditor : public QWidget {
Q_OBJECT
public:
explicit PageEditor(QWidget *parent = nullptr);
virtual void keyReleaseEvent(QKeyEvent *event) override;
virtual void wheelEvent(QWheelEvent*event) override;
QList<EBase*> sortedEles();
EBase* getElementSelected();
QGraphicsView *graphicsView;
QLabel *fdScale;
int curScale = 100;
signals:
void scaleChanged(int);
public slots:
2023-04-23 10:04:49 +08:00
void onScale(int);
2022-08-25 18:37:24 +08:00
void onDelete();
void onClean();
void onLayerUp();
void onLayerDown();
void onSelectionLeft();
void onSelectionRight();
void onSelectionTop();
void onSelectionBottom();
void onLayerTop();
void onLayerBottom();
void onTileFull();
void onTileH();
void onTileV();
void onArrayBottom();
void onArrayHCenter();
void onArrayTop();
void onArrayRight();
void onArrayVCenter();
void onArrayLeft();
};
#endif // PAGEEDITOR_H