Isis 3 Programmer Reference
SaveAsDialog.h
1#ifndef SaveAsDialog_h
2#define SaveAsDialog_h
3
10/* SPDX-License-Identifier: CC0-1.0 */
11
12#include <QCheckBox>
13#include <QRadioButton>
14#include "FileDialog.h"
15
16namespace Isis {
17
38 class SaveAsDialog : public FileDialog {
39 Q_OBJECT
40 public:
41 SaveAsDialog(QString pTitle, QStringList &pFilterList, QDir &pDir, QWidget *pParent = 0);
45 enum saveAsType {FullImage, ExportAsIs, ExportFullRes};
46 int getSaveAsType();
47
48 public slots:
49 void setFullImage(bool);
50 void setAsIs(bool);
51 void setFullResolution(bool);
52
53 private:
54 QDir &p_dir;
55 QRadioButton *p_fullImage;
56 QRadioButton *p_exportAsIs;
57 QRadioButton *p_exportFullRes;
59 };
60};
61
62#endif
Class for browsing cubes.
Definition FileDialog.h:32
Widget to save(Save As) Isis cubes(used in qview) to display the FileDialog to select the output cube...
QRadioButton * p_exportFullRes
ExportFullRes Button.
int getSaveAsType()
Get user chosen save type.
QRadioButton * p_exportAsIs
ExportAsIs Button.
SaveAsDialog(QString pTitle, QStringList &pFilterList, QDir &pDir, QWidget *pParent=0)
Constructor - Displays FileDialog with different save options.
saveAsType p_saveAsType
Current Save Type.
void setAsIs(bool)
Check ExportAsIs radio button and if checked set the saveAsType to ExportAsIs.
QDir & p_dir
The directory to open the dialog with.
QRadioButton * p_fullImage
FullImage Button.
void setFullResolution(bool)
Check ExportFullRes radio button and if checked set the saveAsType to ExportFullRes.
void setFullImage(bool)
Check FullImage radio button and if checked set the saveAsType to FullImage.
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16