cleanup image save dialog aesthetics
[mussa.git] / qui / ImageSaveDialog.hpp
index beda6ee95e2107e8c64e3e89447880b00f888a28..411bfe97d5951176539d6f4a4df505f0f134d7bf 100644 (file)
@@ -19,25 +19,22 @@ public:
 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