make save as msr-file path more transparent for the user.
This commit is contained in:
parent
b76d88cb2a
commit
9374f18d54
@ -1769,15 +1769,23 @@ PConclusionPage::PConclusionPage(PAdmin *admin, PMsrData *data, QString *msrFile
|
|||||||
fAdmin(admin),
|
fAdmin(admin),
|
||||||
fMsrData(data)
|
fMsrData(data)
|
||||||
{
|
{
|
||||||
|
QDir ddir = QDir(*fMsrFilePath);
|
||||||
|
|
||||||
setTitle("<h2>Create</h2>");
|
setTitle("<h2>Create</h2>");
|
||||||
setSubTitle("Now we create the msr-file.");
|
setSubTitle("Now we create the msr-file.");
|
||||||
|
|
||||||
QVBoxLayout *vLayout = new QVBoxLayout;
|
QVBoxLayout *vLayout = new QVBoxLayout;
|
||||||
|
|
||||||
|
fMsrPathFileLabel = new QLabel("Current msr-File Path:");
|
||||||
|
fMsrFilePathLineEdit = new QLineEdit(ddir.absolutePath());
|
||||||
|
fMsrFilePathLineEdit->setReadOnly(true);
|
||||||
fSaveAsMsrFile = new QPushButton("Save As (msr-file path)");
|
fSaveAsMsrFile = new QPushButton("Save As (msr-file path)");
|
||||||
fSaveAsTemplate = new QPushButton("Save As (template)");
|
fSaveAsTemplate = new QPushButton("Save As (template)");
|
||||||
|
|
||||||
|
vLayout->addWidget(fMsrPathFileLabel);
|
||||||
|
vLayout->addWidget(fMsrFilePathLineEdit);
|
||||||
vLayout->addWidget(fSaveAsMsrFile);
|
vLayout->addWidget(fSaveAsMsrFile);
|
||||||
|
vLayout->addStretch(1);
|
||||||
vLayout->addWidget(fSaveAsTemplate);
|
vLayout->addWidget(fSaveAsTemplate);
|
||||||
|
|
||||||
setLayout(vLayout);
|
setLayout(vLayout);
|
||||||
@ -1791,8 +1799,10 @@ void PConclusionPage::saveAsMsrFile()
|
|||||||
{
|
{
|
||||||
QString str = QFileDialog::getExistingDirectory(this, tr("Save in Directory"), "./",
|
QString str = QFileDialog::getExistingDirectory(this, tr("Save in Directory"), "./",
|
||||||
QFileDialog::ShowDirsOnly | QFileDialog::DontResolveSymlinks);
|
QFileDialog::ShowDirsOnly | QFileDialog::DontResolveSymlinks);
|
||||||
if (!str.isEmpty())
|
if (!str.isEmpty()) {
|
||||||
*fMsrFilePath = str;
|
*fMsrFilePath = str;
|
||||||
|
fMsrFilePathLineEdit->setText(str);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
|
@ -370,6 +370,8 @@ class PConclusionPage : public QWizardPage
|
|||||||
PAdmin *fAdmin;
|
PAdmin *fAdmin;
|
||||||
PMsrData *fMsrData;
|
PMsrData *fMsrData;
|
||||||
|
|
||||||
|
QLabel *fMsrPathFileLabel;
|
||||||
|
QLineEdit *fMsrFilePathLineEdit;
|
||||||
QPushButton *fSaveAsMsrFile;
|
QPushButton *fSaveAsMsrFile;
|
||||||
QPushButton *fSaveAsTemplate;
|
QPushButton *fSaveAsTemplate;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user