From c7b0dae432caf02dda6e1bcc348cd13e73c2d51e Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sat, 27 Nov 2010 19:07:47 +0100 Subject: [PATCH] xPut debug code on test + fix focus on Volume in label dialog box --- bacula/src/qt-console/console/console.cpp | 2 +- bacula/src/qt-console/label/label.ui | 199 ++++++++++++---------- 2 files changed, 107 insertions(+), 94 deletions(-) diff --git a/bacula/src/qt-console/console/console.cpp b/bacula/src/qt-console/console/console.cpp index 81fce7c02c..dad9a32d91 100644 --- a/bacula/src/qt-console/console/console.cpp +++ b/bacula/src/qt-console/console/console.cpp @@ -614,7 +614,7 @@ void Console::beginNewCommand(int conn) for (int i=0; i < 3; i++) { dircomm->write("."); while (dircomm->read() > 0) { - Pmsg2(000, "begin new command loop %i %s\n", i, m_dir->name()); + if (mainWin->m_commDebug) Pmsg2(000, "begin new command loop %i %s\n", i, m_dir->name()); if (mainWin->m_displayAll) display_text(dircomm->msg()); } if (dircomm->m_at_main_prompt) { diff --git a/bacula/src/qt-console/label/label.ui b/bacula/src/qt-console/label/label.ui index c0fe5741ce..49db6e4c78 100644 --- a/bacula/src/qt-console/label/label.ui +++ b/bacula/src/qt-console/label/label.ui @@ -1,7 +1,8 @@ - + + labelForm - - + + 0 0 @@ -9,25 +10,28 @@ 357 - + + Qt::NoFocus + + Form - - + + 9 - + 6 - + - + Qt::Vertical - + QSizePolicy::Expanding - + 421 48 @@ -35,15 +39,15 @@ - + - + Qt::Vertical - + QSizePolicy::Expanding - + 431 48 @@ -51,28 +55,28 @@ - - - + + + 0 - + 6 - - - - 0 - - + + + 6 + + 0 + - + Qt::Horizontal - + 40 20 @@ -81,106 +85,115 @@ - - + + OK + + true + - - + + Cancel - - - + + + Volume Name: - + volumeName - - + + - - - + + + Storage: - + storageCombo - - - + + + 200 0 + + Qt::StrongFocus + + + Enter Name of Volume to create + - - - + + + 10000 - - - + + + Slot: - + slotSpin - - - - 0 - - + + + 6 + + 0 + - - + + Execute Automount - - + + On - - + + Off - + Qt::Vertical - + 20 61 @@ -190,33 +203,33 @@ - - + + - - - + + + Pool: - + poolCombo - - - - 0 - - + + + 6 + + 0 + - + Qt::Horizontal - + 71 21 @@ -225,27 +238,27 @@ - - + + 16777215 30 - - <html><head><meta name="qrichtext" content="1" /><style type="text/css"> + + <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } -</style></head><body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal; text-decoration:none;"> -<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:12pt; font-weight:600;">Label a Volume</span></p></body></html> +</style></head><body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal; text-decoration:none;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:12pt; font-weight:600;">Label a Volume</span></p></body></html> - + Qt::Horizontal - + 81 20 @@ -257,12 +270,12 @@ p, li { white-space: pre-wrap; } - + - + Qt::Horizontal - + 40 131 @@ -270,12 +283,12 @@ p, li { white-space: pre-wrap; } - + - + Qt::Horizontal - + 40 121 -- 2.39.5