-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomplicationsmenudialog.h
53 lines (42 loc) · 1.27 KB
/
complicationsmenudialog.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
47
48
49
50
51
52
53
#ifndef COMPLICATIONSMENUDIALOG_H
#define COMPLICATIONSMENUDIALOG_H
#include <QDialog>
namespace Ui {
class ComplicationsMenuDialog;
}
class ComplicationsMenuDialog : public QDialog
{
Q_OBJECT
public:
explicit ComplicationsMenuDialog(QWidget *parent = nullptr);
~ComplicationsMenuDialog();
void setEdit(bool x) { _showEdit = x; }
void setDelete(bool x) { _showDelete = x; }
void setCut(bool x) { _showCut = x; }
void setCopy(bool x) { _showCopy = x; }
void setPaste(bool x) { _showPaste = x; }
void setMoveUp(bool x) { _showMoveUp = x; }
void setMoveDown(bool x) { _showMoveDown = x; }
void setPos(QPoint pos) { _pos = pos; }
void showEvent(QShowEvent*) override;
private:
Ui::ComplicationsMenuDialog *ui;
QPoint _pos;
bool _showEdit = false;
bool _showDelete = false;
bool _showCut = false;
bool _showCopy = false;
bool _showPaste = false;
bool _showMoveUp = false;
bool _showMoveDown = false;
public slots:
void newButton();
void editButton();
void deleteButton();
void cutButton();
void copyButton();
void pasteButton();
void moveUpButton();
void moveDownButtons();
};
#endif // COMPLICATIONSMENUDIALOG_H