dhb Succeeded at fixing the FIXME that gave me heartache. When an undocked
window is closed, it will be visible on the top of the stack and the page
selector item that represents it will become active.
If a page selector item becomes active and the window is not docked, it
will be raised to the front.
11Apr07
kes Add exec external-command [wait-seconds] to bconsole. This
executes the external-command. Note! normally external-command
should be enclosed in double quotes.
kes Turn the .die command on only if DEVELOPER is defined -- i.e.
it should normally be off in a production system.
10Apr07
kes Implement die command for SD so that we can force it to dump.
kes Implement SD lock debug code.
kes Implement new algorithm for keeping Volume list in SD. It
is now owned by the device.
dhb Create a class to be a two way hash. This way it is easy to insert a
QTreeWidget* and Pages* combination and then get the item associated with
any item easily.
Use a hash QHash<QTreeWidgetItem*,Pages*> instead of QHash<int,Pages*> m_pagehash
This way, the integer stored in QT::UserRole is not needed at all. The hash
directly allows for conversion from a known treeWidgetItem to a page. Since
the integer is not required to be passed and held in subclasses of the pages
class, clean up the constructors of Subclasses to not get the integer value
and set back to nearly like they were before.
dhb move functions that were not slots from the slots part of mainwin.h
Add code to set the color of undocked treeWidgetItems in the page
selector window to blue if undocked.
dhb use the stack widget signal currentChanged to trigger function
stackItemChanged to call pages virtual function currentStackItem.
This prevents a window becoming the top visible window without getting
the chance to populate it's screen.
dhb The changes in this commit are to make the right click in the page selector
more context sensitive. The intent is to have a menu popup describing the
window that will be docked or undocked and whether it will be docked or
undocked. This works by using treeItemChanged as a slot from the signal
currentItemChanged from the treeWidget. After this, we now have the choice
of removing the virtual functions in the pages class for click and double
click.
dhb Medialist : created context menu function and moved lines which create
the context menu function there. Call this function from
MediaList::PgSeltreeWidgetClicked() so that the menu items only get added
once instead of every time the tree gets repopulated. Otherwise the popup
menu ends up with repeats.
Joblist : Set all flags of the table items to 0 so that the defaults of
editable are not active.
kes Implement new code for freeing in use volumes that should
resolve if not all, some of the problems of multiple drive
tape conflicts described in bug 801.
dhb Fix of a segfault. The clear() function would execute triggering
a treeItemChanged when no tree item exits because of the clear. There
is probably a cleaner way to accomplish this prevent of segfault.
kes Modify job report to include director name and Build OS.
kes Move drop and check_catalog() before fork.
kes Add update database scripts (version 9 to 10) to updatedb directory
Dirk H Bartley [Sat, 31 Mar 2007 12:40:15 +0000 (12:40 +0000)]
dhb removed regex which is no longer needed.
renamed m_popuptext to m_currently selected
set m_currentlyselected in new treeItemChanged member function.
renamed memeber pointers to mp_ prefix
mp_treewidget was an inherited member, renamed in ui and removed from .h
Dirk H Bartley [Sat, 31 Mar 2007 03:06:44 +0000 (03:06 +0000)]
dhb Added comments for each function. There are questions above
a couple of them. Added treeItemChanged signal and slot for the sake
of the context sensitive menu.
Kern Sibbald [Fri, 30 Mar 2007 10:07:33 +0000 (10:07 +0000)]
kes Implement dir_sql() which issues an SQL query.
kes Modify bat medialist to use dir_sql() and do some minor C++
formatting as well as eliminating a number of pointers, simplifing
the code.
Kern Sibbald [Thu, 29 Mar 2007 09:27:54 +0000 (09:27 +0000)]
kes Fix some of the mtx-changer grep commands for tape label readers.
kes Convert a number of bsendmsg into the appropriate send/warning/error
message class calls.
kes Suppress the using database message in the .sql command.
kes Correct an incorrect bnet_tls_client prototype -- patch from Martin.
Dirk H Bartley [Wed, 28 Mar 2007 02:42:58 +0000 (02:42 +0000)]
dhb Added lots of comments to batstack.cpp and .h
Re-added virtual functions. Removing them broke the ability
for medialist, and any future class that populates on click
to populate. Could find another way if needed.
Kern Sibbald [Tue, 27 Mar 2007 20:32:38 +0000 (20:32 +0000)]
kes Add context menu for floating a window.
kes Some minor cleanup and name changes in qt-console
kes Add doing mt setblk 0 in Win32 mtx-changer.
kes Apply Martin's bug fix to move definition of ENODATA for
FreeBSD to bsock.c