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 QtDisplayPanelGuicreateDPG (const QtDisplayPanelGui *)
virtual QtCleanPanelGuicreateInteractiveCleanGui ()
virtual QtCleanPanelGui2createInteractiveCleanGui2 ()
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 Member Functions

void dpgDeleted (QtDisplayPanelGui *)

Private Attributes

QString dbus_name_
bool is_server_
panel_list_t panels

Static Private Attributes

static QString name_

Friends

class QtDisplayPanelGui

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 71 of file QtViewer.qo.h.


Member Typedef Documentation

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

Definition at line 122 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 
)
casa::QtViewer::~QtViewer (  ) 

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 ( const QtDisplayPanelGui  )  [virtual, slot]
virtual QtDisplayPanelGui* casa::QtViewer::createDPG (  )  [virtual, slot]

create a main display panel Gui

virtual QtCleanPanelGui* casa::QtViewer::createInteractiveCleanGui (  )  [virtual, slot]
virtual QtCleanPanelGui2* casa::QtViewer::createInteractiveCleanGui2 (  )  [virtual, slot]
void casa::QtViewer::dpgDeleted ( QtDisplayPanelGui  )  [private]
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.


Friends And Related Function Documentation

friend class QtDisplayPanelGui [friend]

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


Member Data Documentation

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

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

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

QString casa::QtViewer::dbus_name_ [private]

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

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

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

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

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


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1