casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Slots | Public Member Functions | Static Public Member Functions | Protected Attributes | Private Types | Private Slots | Private Attributes | Static Private Attributes
casa::QtViewer Class Reference

Qt implementation of main viewer supervisory object -- Gui level. More...

#include <QtViewer.qo.h>

Inheritance diagram for casa::QtViewer:
casa::QtViewerBase

List of all members.

Public Slots

virtual QtDisplayPanelGuicreateDPG ()
 create a main display panel Gui
virtual QtCleanPanelGuicreateInteractiveCleanGui ()
virtual void quit ()
 Exits Qt loop.

Public Member Functions

 QtViewer (const std::list< std::string > &args, bool is_server=false, const char *dbus_name=0)
 ~QtViewer ()
void activate (bool)
 Called from casaviewer.cc, true indicates that this application has been activated, false indicates that it has been deactivated.

Static Public Member Functions

static const QString & name ()
 name used to initialize connection to dbus

Protected Attributes

QtDBusViewerAdaptordbus_
std::list< std::string > args_

Private Types

typedef vector
< QtDisplayPanelGui * > 
panel_list_t

Private Slots

void dpgDestroyed (QObject *)

Private Attributes

QString dbus_name_
bool is_server_
panel_list_t panels

Static Private Attributes

static QString name_

Detailed Description

Qt implementation of main viewer supervisory object -- Gui level.

Synopsis

A QtViewer app should use just one QtViewer object, in all Probability; the rest of the objects will coordinate through it.

The viewer is structured with a functional layer and a gui layer. In principle the former can operate without the latter. This class contains and manages various gui objects associated with the viewer. Its base manages the corresponding functional objects.

Functional objects Related Gui objects


QtViewerBase QtViewer, QtDataManager, print dialog QtDisplayData QtDataOptionsPanel QtDisplayPanel QtDisplayPanelGui, panel options dialog

QtDisplayPanel is also a display widget, but minimal, without surrounding graphical interface (animator, menus, etc.) to operate it.

Definition at line 70 of file QtViewer.qo.h.


Member Typedef Documentation

typedef vector<QtDisplayPanelGui*> casa::QtViewer::panel_list_t [private]

Definition at line 118 of file QtViewer.qo.h.


Constructor & Destructor Documentation

casa::QtViewer::QtViewer ( const std::list< std::string > &  args,
bool  is_server = false,
const char *  dbus_name = 0 
)

Member Function Documentation

void casa::QtViewer::activate ( bool  )

Called from casaviewer.cc, true indicates that this application has been activated, false indicates that it has been deactivated.

The application (with OSX anyway) becomes deactivated when it looses application focus, e.g. when the user moves to "mission control" etc. This is useful for signaling that the mouse has left the display window... (in these cases where it leaves without dragging out)

virtual QtDisplayPanelGui* casa::QtViewer::createDPG ( ) [virtual, slot]

create a main display panel Gui

void casa::QtViewer::dpgDestroyed ( QObject *  ) [private, slot]
static const QString& casa::QtViewer::name ( ) [static]

name used to initialize connection to dbus

Referenced by casa::QtDBusViewerAdaptor::dbusName().

virtual void casa::QtViewer::quit ( ) [virtual, slot]

Exits Qt loop.

(Note that the loop can be restarted (and is, in interactive clean, e.g.), with existing widgets intact. This does not in itself delete objects or exit the process, although the driver program might do that). Also, some of the panels may have WA_DeleteOnClose set, which would cause their deletion (see, e.g., createDPG()).

Reimplemented from casa::QtViewerBase.


Member Data Documentation

std::list<std::string> casa::QtViewer::args_ [protected]

Definition at line 112 of file QtViewer.qo.h.

Definition at line 111 of file QtViewer.qo.h.

QString casa::QtViewer::dbus_name_ [private]

Definition at line 116 of file QtViewer.qo.h.

Definition at line 117 of file QtViewer.qo.h.

QString casa::QtViewer::name_ [static, private]

Definition at line 115 of file QtViewer.qo.h.

Definition at line 119 of file QtViewer.qo.h.


The documentation for this class was generated from the following file: