forked from tiantian180/MilesEdgeworth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPicViewer.h
46 lines (37 loc) · 934 Bytes
/
PicViewer.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#pragma once
#include <QWidget>
#include <QMenu>
#include <QActionGroup>
#include "MyGraphicsView.h"
#include "ui_PicViewer.h"
class PicViewer : public QWidget
{
Q_OBJECT
public:
PicViewer(QWidget *parent = nullptr);
~PicViewer();
virtual void closeEvent(QCloseEvent* event) override;
virtual void dragEnterEvent(QDragEnterEvent* event) override;
virtual void dropEvent(QDropEvent* event) override;
void createGraphicViewMenu();
PicViewer* next = nullptr;
PicViewer* prev = nullptr;
signals:
void isClosing(bool prevIsNull, PicViewer* nextPtr);
private:
Ui::PicViewerClass ui;
QMenu* menu;
QMenu* opacityMenu;
QActionGroup* opacityGroup;
QAction* zeroOpacity;
QAction* tenOpacity;
QAction* twentyOpacity;
QAction* thirtyOpacity;
QAction* fortyOpacity;
QAction* fiftyOpacity;
QAction* sixtyOpacity;
QAction* seventyOpacity;
QAction* eightyOpacity;
QAction* ninetyOpacity;
QAction* hundredOpacity;
};