public slots:
void accept();
void reject();
- // int exec();
- void promptFileDialog();
void setSize(int width, int height);
-signals:
-
private:
- void savePixmap();
+ //! prompt user for file name and save image, if (endDialog) close dialog
+ /** if endDialog is true, we should close the dialog box,
+ * otherwise, keep the dialog box. (In case the user canceled out
+ * of save as.
+ */
+ void savePixmap(bool &endDialog);
QSize getOpenGlPixmapSize();
QPixmap renderOpenGlPixmap();
ImageScaler *imageScaler;
- //QPixmap *pixmap;
- QLabel *filePathLabel;
- QPushButton *browseButton;
QPushButton *saveButton;
QPushButton *cancelButton;
- QGLWidget *glwidget;
-
+ QGLWidget *glwidget;
};
#endif