/*
Bacula® - The Network Backup Solution
- Copyright (C) 2007-2010 Free Software Foundation Europe e.V.
+ Copyright (C) 2007-2011 Free Software Foundation Europe e.V.
The main author of Bacula is Kern Sibbald, with contributions from
many others, a complete list can be found in the file AUTHORS.
Switzerland, email:ftf@fsfeurope.org.
*/
/*
- * Version $Id$
- *
* Dirk Bartley, March 2007
*/
}
/* Need to initialize variables here */
-Pages::Pages()
+Pages::Pages() : QWidget()
{
m_docked = false;
m_onceDocked = false;
m_closeable = true;
m_dockOnFirstUse = true;
+ m_console = NULL;
+ m_parent = NULL;
}
/* first Use Dock */
return m_closeable;
}
+void Pages::hidePage()
+{
+ if (!m_parent || (m_parent->indexOf(this) <= 0)) {
+ return;
+ }
+ /* Remove any tab that may exist */
+ m_parent->removeTab(m_parent->indexOf(this));
+ hide();
+ /* Clear docked flag */
+ m_docked = false;
+ /* The window has been undocked, lets change the context menu */
+ setContextMenuDockText();
+}
+
/*
* When a window is closed, this slot is called. The idea is to put it back in the
* stack here, and it works. I wanted to get it to the top of the stack so that the