void ClientStat::populateHeader()
{
QString command = QString(".status client=\"" + m_client + "\" header");
+ if (mainWin->m_commandDebug)
+ Pmsg1(000, "sending command : %s\n",command.toUtf8().data());
QStringList results;
textEditHeader->clear();
void ClientStat::populateTerminated()
{
QString command = QString(".status client=\"" + m_client + "\" terminated");
+ if (mainWin->m_commandDebug)
+ Pmsg1(000, "sending command : %s\n",command.toUtf8().data());
QStringList results;
QBrush blackBrush(Qt::black);
void ClientStat::populateRunning()
{
QString command = QString(".status client=\"" + m_client + "\" running");
- Pmsg1(100, "Clients running cmd : %s\n",command.toUtf8().data());
+ if (mainWin->m_commandDebug)
+ Pmsg1(000, "sending command : %s\n",command.toUtf8().data());
QStringList results;
textEditRunning->clear();
void DirStat::populateHeader()
{
QString command = QString(".status dir header");
+ if (mainWin->m_commandDebug)
+ Pmsg1(000, "sending command : %s\n",command.toUtf8().data());
QStringList results;
textEdit->clear();
void DirStat::populateTerminated()
{
QString command = QString(".status dir terminated");
+ if (mainWin->m_commandDebug)
+ Pmsg1(000, "sending command : %s\n",command.toUtf8().data());
QStringList results;
QBrush blackBrush(Qt::black);
void DirStat::populateScheduled()
{
QString command = QString(".status dir scheduled");
+ if (mainWin->m_commandDebug)
+ Pmsg1(000, "sending command : %s\n",command.toUtf8().data());
QStringList results;
QBrush blackBrush(Qt::black);
void DirStat::populateRunning()
{
QString command = QString(".status dir running");
+ if (mainWin->m_commandDebug)
+ Pmsg1(000, "sending command : %s\n",command.toUtf8().data());
QStringList results;
QBrush blackBrush(Qt::black);
{
if (!m_console->preventInUseConnect())
return;
- populateHeader();
populateTerminated();
populateRunning();
- populateWaitReservation();
- populateDevices();
- populateVolumes();
- populateSpooling();
+ populateCurrentTab(tabWidget->currentIndex());
}
/*
void StorStat::populateHeader()
{
QString command = QString(".status storage=\"" + m_storage + "\" header");
+ if (mainWin->m_commandDebug)
+ Pmsg1(000, "sending command : %s\n",command.toUtf8().data());
QStringList results;
textEditHeader->clear();
void StorStat::populateWaitReservation()
{
QString command = QString(".status storage=\"" + m_storage + "\" waitreservation");
+ if (mainWin->m_commandDebug)
+ Pmsg1(000, "sending command : %s\n",command.toUtf8().data());
QStringList results;
textEditWaitReservation->clear();
void StorStat::populateDevices()
{
QString command = QString(".status storage=\"" + m_storage + "\" devices");
+ if (mainWin->m_commandDebug)
+ Pmsg1(000, "sending command : %s\n",command.toUtf8().data());
QStringList results;
textEditDevices->clear();
void StorStat::populateVolumes()
{
QString command = QString(".status storage=\"" + m_storage + "\" volumes");
+ if (mainWin->m_commandDebug)
+ Pmsg1(000, "sending command : %s\n",command.toUtf8().data());
QStringList results;
textEditVolumes->clear();
void StorStat::populateSpooling()
{
QString command = QString(".status storage=\"" + m_storage + "\" spooling");
+ if (mainWin->m_commandDebug)
+ Pmsg1(000, "sending command : %s\n",command.toUtf8().data());
QStringList results;
textEditSpooling->clear();
void StorStat::populateTerminated()
{
QString command = QString(".status storage=\"" + m_storage + "\" terminated");
+ if (mainWin->m_commandDebug)
+ Pmsg1(000, "sending command : %s\n",command.toUtf8().data());
QStringList results;
QBrush blackBrush(Qt::black);
*/
void StorStat::populateRunning()
{
- QString command = QString(".status dir running");
+ QString command = QString(".status storage=\"" + m_storage + "\" running");
+ if (mainWin->m_commandDebug)
+ Pmsg1(000, "sending command : %s\n",command.toUtf8().data());
QStringList results;
QBrush blackBrush(Qt::black);
SLOT(populateAll()));
connect(actionCancelRunning, SIGNAL(triggered()), this,
SLOT(consoleCancelJob()));
+ connect(tabWidget, SIGNAL(currentChanged(int)), this,
+ SLOT(populateCurrentTab(int)));
terminatedTable->setContextMenuPolicy(Qt::ActionsContextMenu);
terminatedTable->addAction(actionRefresh);
runningTable->setContextMenuPolicy(Qt::ActionsContextMenu);
consoleCommand(cmd);
}
}
+
+/*
+ * Populate the text edit window in the current tab
+ */
+void StorStat::populateCurrentTab(int index)
+{
+ if (index == 0)
+ populateHeader();
+ if (index == 1)
+ populateWaitReservation();
+ if (index == 2)
+ populateDevices();
+ if (index == 3)
+ populateVolumes();
+ if (index == 4)
+ populateSpooling();
+}
private slots:
void timerTriggered();
void consoleCancelJob();
+ void populateCurrentTab(int);
private:
void createConnections();
<rect>
<x>0</x>
<y>0</y>
- <width>560</width>
- <height>477</height>
+ <width>502</width>
+ <height>466</height>
</rect>
</property>
<property name="windowTitle" >
<property name="currentIndex" >
<number>0</number>
</property>
- <widget class="QWidget" name="tab" >
+ <widget class="QWidget" name="headerTab" >
<attribute name="title" >
<string>Header</string>
</attribute>
</item>
</layout>
</widget>
- <widget class="QWidget" name="tab_2" >
+ <widget class="QWidget" name="waitReservationTab" >
<attribute name="title" >
<string>Waitreservation</string>
</attribute>
</item>
</layout>
</widget>
- <widget class="QWidget" name="tab_3" >
+ <widget class="QWidget" name="devicesTab" >
<attribute name="title" >
<string>Devices</string>
</attribute>
</item>
</layout>
</widget>
- <widget class="QWidget" name="tab_4" >
+ <widget class="QWidget" name="volumesTab" >
<attribute name="title" >
<string>Volumes</string>
</attribute>
</item>
</layout>
</widget>
- <widget class="QWidget" name="tab_5" >
+ <widget class="QWidget" name="spoolingTab" >
<attribute name="title" >
<string>Spooling</string>
</attribute>
</layout>
</widget>
</widget>
- <widget class="QWidget" name="" >
+ <widget class="QWidget" name="layoutWidget" >
<layout class="QVBoxLayout" >
<item>
<widget class="QLabel" name="runningLabel" >
</item>
</layout>
</widget>
- <widget class="QWidget" name="" >
+ <widget class="QWidget" name="layoutWidget" >
<layout class="QVBoxLayout" >
<item>
<widget class="QLabel" name="terminatedLabel" >