add updateTitle
[mussa.git] / qui / ImageSaveDialog.hpp
1 #ifndef _IMAGESAVEDIALOG_H_
2 #define _IMAGESAVEDIALOG_H_
3  
4 #include <QDialog>
5
6 class ImageScaler;
7 class QLabel;
8 class QPixmap;
9 class QPushButton;
10 class QGLWidget;
11
12 class ImageSaveDialog : public QDialog
13 {
14   Q_OBJECT
15
16 public:
17   ImageSaveDialog(QGLWidget *qlwidget = 0, QWidget *parent = 0);
18
19 public slots:
20   void accept();
21   void reject();
22   //  int exec();
23   void promptFileDialog();
24   void setSize(int width, int height);
25
26 signals:
27
28 private:
29   void savePixmap();
30   QSize getOpenGlPixmapSize();
31   QPixmap renderOpenGlPixmap();
32
33   ImageScaler *imageScaler;
34   //QPixmap *pixmap;
35   QLabel *filePathLabel;
36   QPushButton *browseButton;
37   QPushButton *saveButton;
38   QPushButton *cancelButton;
39   QGLWidget *glwidget;
40   
41 };
42
43 #endif