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 QtDisplayPanelGui * | createDPG (const QtDisplayPanelGui *) |
virtual QtCleanPanelGui * | createInteractiveCleanGui () |
virtual QtCleanPanelGui2 * | createInteractiveCleanGui2 () |
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 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 |
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 ------------------ ------------------- 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.
typedef vector<QtDisplayPanelGui*> casa::QtViewer::panel_list_t [private] |
Definition at line 122 of file QtViewer.qo.h.
casa::QtViewer::QtViewer | ( | const std::list< std::string > & | args, | |
bool | is_server = false , |
|||
const char * | dbus_name = 0 | |||
) |
casa::QtViewer::~QtViewer | ( | ) |
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.
friend class QtDisplayPanelGui [friend] |
Definition at line 110 of file QtViewer.qo.h.
std::list<std::string> casa::QtViewer::args_ [protected] |
Definition at line 116 of file QtViewer.qo.h.
QtDBusViewerAdaptor* casa::QtViewer::dbus_ [protected] |
Definition at line 115 of file QtViewer.qo.h.
QString casa::QtViewer::dbus_name_ [private] |
Definition at line 120 of file QtViewer.qo.h.
bool casa::QtViewer::is_server_ [private] |
Definition at line 121 of file QtViewer.qo.h.
QString casa::QtViewer::name_ [static, private] |
Definition at line 119 of file QtViewer.qo.h.
panel_list_t casa::QtViewer::panels [private] |
Definition at line 123 of file QtViewer.qo.h.