#include <DockWindow.h>

Public Member Functions | |
| virtual void | setIcon (const QIcon &icon)=0 |
| virtual std::list < ContextMenuAction > | getContextMenuActions () const =0 |
| virtual void | dock ()=0 |
| virtual void | undock ()=0 |
| virtual void | show ()=0 |
| virtual void | hide ()=0 |
| virtual bool | isShown () const =0 |
Static Public Member Functions | |
| static const std::string & | signalDocked () |
| static const std::string & | signalUndocked () |
| static const std::string & | signalShown () |
| static const std::string & | signalHidden () |
| static const std::string & | signalAboutToShowContextMenu () |
Protected Member Functions | |
| virtual | ~DockWindow () |
This class defines all of the services available to dock windows. A dock window can attach to an edge of the main application window,or can float independently on the desktop. When the user right-clicks in the window's context, a context menu is invoked allowing the user to change the display characteristics of the window. The window also contains a button to hide itself.
This subclass of Subject will notify upon the following conditions:
Definition at line 34 of file DockWindow.h.
| virtual DockWindow::~DockWindow | ( | ) | [protected, virtual] |
This should be destroyed by calling DesktopServices::deleteWindow.
Definition at line 172 of file DockWindow.h.
| static const std::string& DockWindow::signalDocked | ( | ) | [static] |
| static const std::string& DockWindow::signalUndocked | ( | ) | [static] |
| static const std::string& DockWindow::signalShown | ( | ) | [static] |
| static const std::string& DockWindow::signalHidden | ( | ) | [static] |
| static const std::string& DockWindow::signalAboutToShowContextMenu | ( | ) | [static] |
Emitted with boost::any<ContextMenu*> when the user right-clicks to invoke a context menu.
This signal provides a means by which an object can be notified when a context menu is invoked by the user clicking inside a dock window. To receive notification for when a context menu is invoked when the user clicks on any session item, attach to the DesktopServices::signalAboutToShowContextMenu() signal instead.
This signal is emitted after getContextMenuActions() is called and after the DesktopServices::signalAboutToShowContextMenu() signal is emitted, but before the context menu is shown to give attached objects a chance to add or modify the context menu that will be displayed to the user.
The ContextMenu pointer value is guaranteed to be non-NULL. The session items vector in the context menu contains the dock window.
Definition at line 78 of file DockWindow.h.
| virtual void DockWindow::setIcon | ( | const QIcon & | icon | ) | [pure virtual] |
Associates an icon with the dock window.
The icon associated with the dock window will appear in the session explorer.
| icon | The icon to associate with the dock window. |
| virtual std::list<ContextMenuAction> DockWindow::getContextMenuActions | ( | ) | const [pure virtual] |
Returns the context menu actions available for this session item.
Implements SessionItem.
Implemented in SessionExplorer.
| virtual void DockWindow::dock | ( | ) | [pure virtual] |
Attaches the view to the edge of the main application window.
A docked window is fixed to an adge of the application window and can be resized in one direction only. The title bar is replaced by a gripper bar with small buttons to hide the window or maximize available space if other views are docked along the same wdge of the application window. A docked window cannot be minimized or maximized.
| virtual void DockWindow::undock | ( | ) | [pure virtual] |
Floats a docked window over the desktop.
This method detaches a docked window from the main application window and floats it over the desktop. The title bar reappears, and the window can be minimized and maximized.
| virtual void DockWindow::show | ( | ) | [pure virtual] |
Shows the dock window.
This method displays the dock window in its former state, docked or floating. If the dock window is already displayed, this method does nothing.
| virtual void DockWindow::hide | ( | ) | [pure virtual] |
Hides the dock window.
This method hides the dock window but does not delete it. A hidden dock window can be displayed again from the main application right-click menu. If the dock window is already hidden, this method does nothing.
| virtual bool DockWindow::isShown | ( | ) | const [pure virtual] |
Returns the current visiblity state of the dock window.
true if the dock window is shown or false if the dock window is hidden.