/*
Bacula® - The Network Backup Solution
- Copyright (C) 2007-2007 Free Software Foundation Europe e.V.
+ Copyright (C) 2007-2008 Free Software Foundation Europe e.V.
The main author of Bacula is Kern Sibbald, with contributions from
many others, a complete list can be found in the file AUTHORS.
DirStat::DirStat()
{
setupUi(this);
- m_name = "Director Status";
+ m_name = tr("Director Status");
m_closeable = true;
pgInitialize();
QTreeWidgetItem* thisitem = mainWin->getFromHash(this);
dockPage();
m_timer = new QTimer(this);
QWidget::connect(m_timer, SIGNAL(timeout()), this, SLOT(timerTriggered()));
- //m_timer->start(mainWin->m_checkMessagesInterval*1000);
- m_timer->start(10*1000);
+ m_timer->start(mainWin->m_refreshStatusDirInterval*1000);
}
void DirStat::getFont()
void DirStat::timerTriggered()
{
bool iscurrent = mainWin->stackedWidget->currentIndex() == mainWin->stackedWidget->indexOf(this);
- if ((isDocked() && iscurrent) || (!isDocked())) {
+ if (((isDocked() && iscurrent) || (!isDocked())) && mainWin->m_refreshStatusDir) {
if (m_console->is_ready())
populateAll();
}
terminatedTable->clear();
QStringList headerlist = (QStringList()
- << "Job Id" << "Job Level" << "Job Files" << "Job Bytes" << "Job Status"
- << "Job Time" << "Job Name");
+ << tr("Job Id") << tr("Job Level") << tr("Job Files")
+ << tr("Job Bytes") << tr("Job Status") << tr("Job Time")
+ << tr("Job Name"));
QStringList flaglist = (QStringList()
<< "R" << "L" << "R" << "R" << "LC"
<< "L" << "L");
scheduledTable->clear();
QStringList headerlist = (QStringList()
- << "Job Level" << "Job Type" << "Priority" << "Job Time" << "Job Name" << "Volume");
+ << tr("Job Level") << tr("Job Type") << tr("Priority") << tr("Job Time")
+ << tr("Job Name") << tr("Volume"));
QStringList flaglist = (QStringList()
<< "L" << "L" << "R" << "L" << "L" << "L");
runningTable->clear();
QStringList headerlist = (QStringList()
- << "Job Id" << "Job Level" << "Job Data" << "Job Info");
+ << tr("Job Id") << tr("Job Level") << tr("Job Data") << tr("Job Info"));
runningTable->setColumnCount(headerlist.size());
runningTable->setHorizontalHeaderLabels(headerlist);