From 26872b53fcb71189436a7d42d1d1cb2c6a5b9034 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sat, 25 Dec 2010 13:41:01 +0100 Subject: [PATCH] Add Slot to Media View table --- bacula/src/qt-console/medialist/mediaview.cpp | 6 +- bacula/src/qt-console/medialist/mediaview.ui | 223 +++++++++--------- 2 files changed, 109 insertions(+), 120 deletions(-) diff --git a/bacula/src/qt-console/medialist/mediaview.cpp b/bacula/src/qt-console/medialist/mediaview.cpp index 1c44df8f5f..3e3c7ffe6f 100644 --- a/bacula/src/qt-console/medialist/mediaview.cpp +++ b/bacula/src/qt-console/medialist/mediaview.cpp @@ -324,7 +324,7 @@ void MediaView::populateTable() foreach (resultline, results) { // should have only one result int index = 0; - QString VolBytes, MediaType, LastWritten, VolStatus; + QString Slot, VolBytes, MediaType, LastWritten, VolStatus; fieldlist = resultline.split("\t"); if (fieldlist.size() != 10) { continue; @@ -337,7 +337,9 @@ void MediaView::populateTable() /* Online */ mediaitem.setInChanger(index++, fld.next()); - fld.next(); // Slot + + Slot = fld.next(); // Slot + mediaitem.setTextFld(index++, Slot); MediaType = fld.next(); VolStatus = fld.next(); diff --git a/bacula/src/qt-console/medialist/mediaview.ui b/bacula/src/qt-console/medialist/mediaview.ui index a13e6f31f5..1fe5418088 100644 --- a/bacula/src/qt-console/medialist/mediaview.ui +++ b/bacula/src/qt-console/medialist/mediaview.ui @@ -1,7 +1,8 @@ - + + MediaViewForm - - + + 0 0 @@ -9,70 +10,74 @@ 638 - + Form - + - + - - + + Edit - - :/images/edit.png + + + :/images/edit.png:/images/edit.png - + true - - + + Purge - - :/images/purge.png + + + :/images/purge.png:/images/purge.png - + true - - + + Delete - - :/images/purge.png + + + :/images/purge.png:/images/purge.png - + true - - + + Prune - - :/images/edit-cut.png + + + :/images/edit-cut.png:/images/edit-cut.png - + true - + Qt::Horizontal - + 40 20 @@ -83,74 +88,74 @@ - - + + Filter - - - - + + + + Media Type: - - + + - - - + + + Status: - - + + - - - + + + Limit: - - - + + + 1 - + 1000 - + 100 - - - + + + Name: - - - - + + + + 0 0 - + - + Qt::Horizontal - + 40 20 @@ -158,39 +163,39 @@ - - - + + + Pool: - - + + - - - + + + Location: - - + + - - - + + + Expired - + - + Qt::Horizontal - + 40 20 @@ -198,13 +203,14 @@ - - - + + + Apply - - :/images/view-refresh.png + + + :/images/view-refresh.png:/images/view-refresh.png @@ -212,82 +218,63 @@ - - + + QAbstractItemView::ExtendedSelection - + QAbstractItemView::SelectRows - + true - + Volume Name - - true - - + Online - - true - - + + Slot + + + + Vol Bytes - - true - - + Vol Usage - - true - - + Vol Status - - true - - + Pool - - true - - + Media Type - - true - - + Last Written - - true - - + When expire? @@ -296,7 +283,7 @@ - + -- 2.39.5