casa
$Rev:20696$
|
Qt implementation of main viewer supervisory object -- Gui level. More...
#include <QtViewer.qo.h>
Public Slots | |
virtual QtDisplayPanelGui * | createDPG () |
create a main display panel Gui | |
virtual QtCleanPanelGui * | createInteractiveCleanGui () |
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 | |
QtDBusViewerAdaptor * | dbus_ |
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_ |
Qt implementation of main viewer supervisory object -- Gui level.
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
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.
typedef vector<QtDisplayPanelGui*> casa::QtViewer::panel_list_t [private] |
Definition at line 118 of file QtViewer.qo.h.
casa::QtViewer::QtViewer | ( | const std::list< std::string > & | args, |
bool | is_server = false , |
||
const char * | dbus_name = 0 |
||
) |
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
virtual QtCleanPanelGui* casa::QtViewer::createInteractiveCleanGui | ( | ) | [virtual, slot] |
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.
std::list<std::string> casa::QtViewer::args_ [protected] |
Definition at line 112 of file QtViewer.qo.h.
QtDBusViewerAdaptor* casa::QtViewer::dbus_ [protected] |
Definition at line 111 of file QtViewer.qo.h.
QString casa::QtViewer::dbus_name_ [private] |
Definition at line 116 of file QtViewer.qo.h.
bool casa::QtViewer::is_server_ [private] |
Definition at line 117 of file QtViewer.qo.h.
QString casa::QtViewer::name_ [static, private] |
Definition at line 115 of file QtViewer.qo.h.
panel_list_t casa::QtViewer::panels [private] |
Definition at line 119 of file QtViewer.qo.h.