1 #ifndef _IMAGESAVEDIALOG_H_
2 #define _IMAGESAVEDIALOG_H_
4 #include <boost/shared_ptr.hpp>
9 #include "qui/seqbrowser/SequenceBrowser.hpp"
10 #include "qui/seqbrowser/SequenceBrowserWidget.hpp"
11 #include "qui/seqbrowser/ScrollableSequenceBrowser.hpp"
19 class ImageSaveDialog : public QDialog
24 ImageSaveDialog(boost::shared_ptr<QDir> default_dir_,
25 ScrollableSequenceBrowser *scrollSeqBrowser = 0,
27 QDir defaultDir() const;
32 void setSize(int width, int height);
35 //! prompt user for file name and save image, if (endDialog) close dialog
36 /** if endDialog is true, we should close the dialog box,
37 * otherwise, keep the dialog box. (In case the user canceled out
40 void savePixmap(bool &endDialog);
41 QSize getOpenGlPixmapSize();
42 QPixmap renderOpenGlPixmap();
44 boost::shared_ptr<QDir> default_dir;
45 ImageScaler *imageScaler;
46 QPushButton *saveButton;
47 QPushButton *cancelButton;
49 SequenceBrowser glwidget;