qt/LedOK/program/pageeditor.h
2023-04-18 14:14:46 +08:00

51 lines
1.1 KiB
C++

#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:
void onScaleUp();
void onScaleDown();
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