forked from picciau-g/superfacets-2d
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdialogs.h
executable file
·53 lines (45 loc) · 1.15 KB
/
dialogs.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
/*
*
* 2014
* Author: Giulia Picciau - DIBRIS, Università degli studi di Genova
* Supervisors: Leila De Floriani - DIBRIS, Università degli studi di Genova
* Patricio Simari - Department of Electrical Engineering and Computer Science, The Catholic University of America
*
* Title: Fast and scalable mesh superfacets
* Submission to Pacific Graphics 2014
*
*
**/
#ifndef DIALOGS_H
#define DIALOGS_H
#include <QWidget>
#include <QLabel>
#include <QPushButton>
#include <QTextEdit>
#include <QImage>
/**
* @brief The dialogS class opens a popup dialog to save the current framebuffer to an image
*/
class dialogS : public QWidget
{
Q_OBJECT
public:
explicit dialogS(QWidget *parent = 0);
QString nameI;
QImage outIm;
//returns the chosen name for the screenshot
inline QString getNameI(){
return this->nameI;
}
signals:
public slots:
//name chosen
void nameGiven();
//action when the save button is clicked (saves the image)
void buttonSaveClicked();
private:
QLabel *nameToGive;
QTextEdit *imgName;
QPushButton *bSave;
};
#endif // DIALOGS_H