dhb Added joblist to the stack and the page selector. Joblist starts in an all
jobs by default and can be repopulated. If a list of jobs is gotten from
a context sensitive query, it can be closed.
kes Simplify locking in the reservations system.
kes Add more debug code in reservations.
kes Make sure error condition on reserving a volume is handled correctly.
kes Correct handling of volume_in_use.
kes Correct handling of initializing a device.
kes Move handling of broadcasting releasing a device into release_device().
kes Correct attaching dcr to dev so that it is only done if device
is properly initiated.
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.