1 #ifndef _IMAGESAVEDIALOG_H_
2 #define _IMAGESAVEDIALOG_H_
12 class ImageSaveDialog : public QDialog
17 ImageSaveDialog(QGLWidget *qlwidget = 0, QWidget *parent = 0);
22 void setSize(int width, int height);
25 //! prompt user for file name and save image, if (endDialog) close dialog
26 /** if endDialog is true, we should close the dialog box,
27 * otherwise, keep the dialog box. (In case the user canceled out
30 void savePixmap(bool &endDialog);
31 QSize getOpenGlPixmapSize();
32 QPixmap renderOpenGlPixmap();
34 ImageScaler *imageScaler;
35 QPushButton *saveButton;
36 QPushButton *cancelButton;