#include <ViewWindow.h>

Public Member Functions | |
| virtual View * | createView (const std::string &viewName, const ViewType &viewType)=0 |
| virtual View * | getView () const =0 |
| virtual void | setWidget (QWidget *pWidget)=0 |
| virtual QWidget * | getWidget () const =0 |
| virtual void | print (bool bSetupDialog=false)=0 |
Static Public Member Functions | |
| static const std::string & | signalAboutToSetWidget () |
| static const std::string & | signalWidgetSet () |
Protected Member Functions | |
| virtual | ~ViewWindow () |
A view window is an abstract base class for windows to display a single widget that can be either a View object or a generic QWidget. Since the window contains a single widget, the current image can be printed as well.
This subclass of Subject will notify upon the following conditions:
Definition at line 35 of file ViewWindow.h.
| virtual ViewWindow::~ViewWindow | ( | ) | [protected, virtual] |
This should be destroyed by calling DesktopServices::deleteWindow.
Definition at line 128 of file ViewWindow.h.
| static const std::string& ViewWindow::signalAboutToSetWidget | ( | ) | [static] |
Emitted just before the widget is set into the window.
Definition at line 43 of file ViewWindow.h.
| static const std::string& ViewWindow::signalWidgetSet | ( | ) | [static] |
Emitted after the widget is set into the window with boost::any<QWidget*> containing a pointer to the widget that was set.
Definition at line 51 of file ViewWindow.h.
| virtual View* ViewWindow::createView | ( | const std::string & | viewName, | |
| const ViewType & | viewType | |||
| ) | [pure virtual] |
Creates the view based on a given type.
This method creates a view and sets it as the display widget in the window. This method does nothing for SpatialDataWindow and ProductWindow objects since a view is already created by default.
| viewName | The name for the view. Depending on the view type, the name may appear in the view's title bar. | |
| viewType | The type of the view to be created. |
| virtual View* ViewWindow::getView | ( | ) | const [pure virtual] |
Returns a pointer to the view.
| virtual void ViewWindow::setWidget | ( | QWidget * | pWidget | ) | [pure virtual] |
Sets the widget to be displayed in the window.
This method sets the view window to display a custom Qt widget instead of a View. This method does nothing for SpatialDataWindow and ProductWindow objects since by default, they contain a view.
| pWidget | The Qt widget to set in the view window. Cannot be NULL. |
| virtual QWidget* ViewWindow::getWidget | ( | ) | const [pure virtual] |
Returns the current widget in the window.
| virtual void ViewWindow::print | ( | bool | bSetupDialog = false |
) | [pure virtual] |
Sends the current image displayed in the window to the printer.
| bSetupDialog | Set this value to TRUE to display the print options dialog before printing. |