#include <Window.h>

Public Member Functions | |
| virtual void | setName (const std::string &windowName)=0 |
| virtual WindowType | getWindowType () const =0 |
| virtual void | enableSessionItemDrops (SessionItemDropFilter *pFilter=NULL)=0 |
Static Public Member Functions | |
| static const std::string & | signalSessionItemDropped () |
| static const std::string & | signalSessionItemsDropped () |
Protected Member Functions | |
| virtual | ~Window () |
Classes | |
| class | SessionItemDropFilter |
| This interface is implemented by objects wishing to selectively accept drop events. More... | |
This class is a base class for displaying data to the user. The main application can create and manage several types of windows. Every window has a name and a type that is used to uniquely identify itself within the application.
This subclass of Subject will notify upon the following conditions:
Definition at line 33 of file Window.h.
| virtual Window::~Window | ( | ) | [protected, virtual] |
This should be destroyed by calling DesktopServices::deleteWindow.
| static const std::string& Window::signalSessionItemDropped | ( | ) | [static] |
Emitted with any<SessionItem*> for each SessionItem dropped onto the window.
If a single signal with all SessionItems involved in a dropEvent() is needed, see signalSessionItemsDropped().
| static const std::string& Window::signalSessionItemsDropped | ( | ) | [static] |
Emitted with any<vector<SessionItem*> > when one or more SessionItems are dropped onto the window.
All SessionItems are included in this signal. See signalSessionItemDropped() if a separate signal for each SessionItem is needed.
| virtual void Window::setName | ( | const std::string & | windowName | ) | [pure virtual] |
Sets the window name.
| windowName | The new name for the window. Cannot be empty. |
| virtual WindowType Window::getWindowType | ( | ) | const [pure virtual] |
| virtual void Window::enableSessionItemDrops | ( | SessionItemDropFilter * | pFilter = NULL |
) | [pure virtual] |
Enable dropping of SessionItems via drag and drop.
Windows can accept drag and drop events by calling this method. Once enabled signalSessionItemDropped() is emmitted for each SessionItem dropped into this Window. If the caller wishes to selectively accept drops, the SessionItemDropFilter parameter should be non-null.
| pFilter | If this is NULL, all SessionItems will be accepted. If non-NULL, the filter will be added to the filter list. Each filter registered will be checked for acceptance of the drop until one accepts. The caller maintains ownership of the filter. |