1 #ifndef _IMAGESAVEDIALOG_H_
2 #define _IMAGESAVEDIALOG_H_
4 #include <boost/shared_ptr.hpp>
15 class ImageSaveDialog : public QDialog
20 ImageSaveDialog(boost::shared_ptr<QDir> default_dir_, QGLWidget *qlwidget = 0, QWidget *parent = 0);
21 QDir defaultDir() const;
26 void setSize(int width, int height);
29 //! prompt user for file name and save image, if (endDialog) close dialog
30 /** if endDialog is true, we should close the dialog box,
31 * otherwise, keep the dialog box. (In case the user canceled out
34 void savePixmap(bool &endDialog);
35 QSize getOpenGlPixmapSize();
36 QPixmap renderOpenGlPixmap();
38 boost::shared_ptr<QDir> default_dir;
39 ImageScaler *imageScaler;
40 QPushButton *saveButton;
41 QPushButton *cancelButton;