1 #include "SaveAsDialog.h"
5 #include <QButtonGroup>
24 SaveAsDialog::SaveAsDialog(QString pTitle,
QStringList &pFilterList, QDir &pDir,
QWidget *pParent) :
25 FileDialog(pTitle, pFilterList, pDir, pParent), p_dir(pDir) {
27 this->setFileMode(QFileDialog::AnyFile);
32 allPButtons[0]->setText(
"&Save");
35 allPButtons[1]->setText(
"Close");
38 QHBoxLayout *hBoxLayout =
new QHBoxLayout;
39 hBoxLayout->setAlignment(Qt::AlignLeft);
40 hBoxLayout->setSpacing(25);
41 hBoxLayout->setContentsMargins (25, 11, 25, 11 );
44 QButtonGroup *exportOptionsGrp =
new QButtonGroup();
45 exportOptionsGrp->setExclusive(
true);
47 p_fullImage =
new QRadioButton(
"Full &Image",
this);
60 p_exportFullRes->setWhatsThis(
"Save the Image As Viewed with Full Resoultion");
71 QLayout *dialogLayout = layout();
73 dialogLayout->addItem(hBoxLayout);
74 dialogLayout->setAlignment(hBoxLayout, Qt::AlignLeft );
75 setLayout(dialogLayout);
QRadioButton * p_fullImage
FullImage Button.
void setAsIs(bool)
Check ExportAsIs radio button and if checked set the saveAsType to ExportAsIs.
void setFullImage(bool)
Check FullImage radio button and if checked set the saveAsType to FullImage.
Class for browsing cubes.
void setFullResolution(bool)
Check ExportFullRes radio button and if checked set the saveAsType to ExportFullRes.
QRadioButton * p_exportAsIs
ExportAsIs Button.
saveAsType p_saveAsType
Current Save Type.
int getSaveAsType()
Get user chosen save type.
QRadioButton * p_exportFullRes
ExportFullRes Button.