====================================================
joblist cancel a running job.
-Set default for replace in run restore job to "always"??????
-
Fixes to final restore widgets.
+ all but messages done.
Add context sensitive options for most commands
status dir on page select director item
A window showing a list of schedule resources.
+A list of message resources??
+
Kern discussed windows showing statistics like web based interfaces.
========================================================
Future Releases :
============================================================
DONE:
============================================================
+Set default for replace in run restore job to "always"??????
+
Option in joblist like with restore from jobid but restore populating timestamp
of the selected job.
*/
void prerestorePage::buildPage()
{
- m_dtformat = "yyyy-MM-dd HH:mm:ss";
m_name = "Restore";
setupUi(this);
pgInitialize();
storageCombo->addItems(m_console->storage_list);
/* current or before . . Start out with current checked */
recentCheckBox->setCheckState(Qt::Checked);
- beforeDateTime->setDisplayFormat(m_dtformat);
+ beforeDateTime->setDisplayFormat(mainWin->m_dtformat);
beforeDateTime->setDateTime(QDateTime::currentDateTime());
beforeDateTime->setEnabled(false);
selectFilesRadio->setChecked(true);
filesetCombo->setCurrentIndex(filesetCombo->findText(fieldlist[2], Qt::MatchExactly));
clientCombo->setCurrentIndex(clientCombo->findText(fieldlist[1], Qt::MatchExactly));
jobCombo->setCurrentIndex(jobCombo->findText(fieldlist[0], Qt::MatchExactly));
- beforeDateTime->setDateTime(QDateTime::fromString(fieldlist[3], m_dtformat));
+ beforeDateTime->setDateTime(QDateTime::fromString(fieldlist[3], mainWin->m_dtformat));
}
}
job_name_change(0);
cmd += " current";
} else {
QDateTime stamp = beforeDateTime->dateTime();
- QString before = stamp.toString(m_dtformat);
+ QString before = stamp.toString(mainWin->m_dtformat);
cmd += " before=\"" + before + "\"";
}
} else {
int jobdefsFromJob(QStringList &, QString &);
void buildPage();
bool checkJobIdList();
- QString m_dtformat;
QString m_dataIn;
unsigned int m_dataInType;
};
private:
void fill();
- QString m_dtformat;
};
*/
runCmdPage::runCmdPage()
{
- m_dtformat = "yyyy-MM-dd HH:mm:ss";
m_name = "Restore Run";
pgInitialize();
setupUi(this);
replaceCombo->addItems(QStringList() << "never" << "always" << "ifnewer" << "ifolder");
replaceCombo->setCurrentIndex(replaceCombo->findText("never", Qt::MatchExactly));
storageCombo->addItems(m_console->storage_list);
- dateTimeEdit->setDisplayFormat(m_dtformat);
+ dateTimeEdit->setDisplayFormat(mainWin->m_dtformat);
m_console->read();
item = m_console->msg();
continue;
}
if (item.startsWith("When:")) {
- dateTimeEdit->setDateTime(QDateTime::fromString(val,m_dtformat));
+ dateTimeEdit->setDateTime(QDateTime::fromString(val,mainWin->m_dtformat));
continue;
}
if (item.startsWith("Catalog:")) {
cmd += " fileset=\"" + filesetCombo->currentText() + "\"";
cmd += " storage=\"" + storageCombo->currentText() + "\"";
cmd += " replace=\"" + replaceCombo->currentText() + "\"";
- cmd += " when=\"" + dateTimeEdit->dateTime().toString(m_dtformat) + "\"";
+ cmd += " when=\"" + dateTimeEdit->dateTime().toString(mainWin->m_dtformat) + "\"";
cmd += " bootstrap=\"" + bootstrap->text() + "\"";
cmd += " where=\"" + where->text() + "\"";
QString pri;