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

#include <QtDBusPlotSvrAdaptor.qo.h>

Inheritance diagram for casa::QtDBusPlotSvrAdaptor:
casa::QtDBusApp

List of all members.

Classes

class  data_desc
class  panel_desc

Public Slots

QDBusVariant panel (const QString &title, const QString &xlabel="", const QString &ylabel="", const QString &window_title="", const QList< int > &size=QList< int >(), const QString &legend="bottom", const QString &zoom="bottom", int with_panel=0, bool new_row=false, bool hidden=false)
QStringList colors ()
QStringList colormaps ()
QStringList symbols ()
QDBusVariant line (const QList< double > &x, const QList< double > &y, const QString &color="black", const QString &label="", int panel=0)
QDBusVariant scatter (const QList< double > &x, const QList< double > &y, const QString &color="black", const QString &label="", const QString &symbol="", int symbol_size=-1, int dot_size=-1, int panel=0)
QDBusVariant histogram (const QList< double > &values, int bins=0, const QString &color="blue", const QString &label="", int panel=0)
QDBusVariant raster (const QList< double > &matrix, int sizex, int sizey, const QString &colormap="Rainbow 2", int panel=0)
QDBusVariant setlabel (const QString &xlabel="", const QString &ylabel="", const QString &title="", int panel_id=0)
QDBusVariant erase (int data=0)
QDBusVariant close (int panel=0)
QDBusVariant release (int panel=0)
QDBusVariant hide (int panel)
QDBusVariant show (int panel)
QDBusVariant loaddock (const QString &file_or_xml, const QString &loc="top", const QStringList &dockable=QStringList(), int panel=0)
void done ()

Signals

void button (int panel, QString name)
void check (int panel, QString name, int value)
void radio (int panel, QString name, bool value)
void linetext (int panel, QString name, const QString &value)
void slidevalue (int panel, QString name, int value)
void closing (int panel, bool gone)
void exiting ()

Public Member Functions

QString dbusName () const
 name used to initialize connection to dbus
bool connectToDBus (const QString &dbus_name="")
 Connects to the DBus server using the name provided (if non-null).
 QtDBusPlotSvrAdaptor (QtPlotServer *)
 ~QtDBusPlotSvrAdaptor ()

Protected Slots

void emit_button (QtPlotSvrPanel *, QString name)
void emit_check (QtPlotSvrPanel *, QString name, int)
void emit_radio (QtPlotSvrPanel *, QString name, bool)
void emit_linetext (QtPlotSvrPanel *, QString name, const QString &value)
void emit_slidevalue (QtPlotSvrPanel *, QString name, int)
void emit_closing (QtPlotSvrPanel *, bool gone)

Private Types

typedef std::map< int,
panel_desc * > 
panelmap
typedef std::map< int,
data_desc * > 
datamap
typedef std::map< int,
QDockWidget * > 
dockmap

Private Member Functions

QDBusVariant error (const QString &message)
int get_id (QtPlotSvrPanel *panel)
int get_id (QtPlotSvrPanel *panel, QwtPlotItem *data)
void close_everything ()
void release_everything ()
void release (panelmap::iterator &)

Private Attributes

QtPlotServerserver
panelmap managed_panels
datamap managed_datas
dockmap managed_docks

Detailed Description

Definition at line 45 of file QtDBusPlotSvrAdaptor.qo.h.


Member Typedef Documentation

typedef std::map<int,data_desc*> casa::QtDBusPlotSvrAdaptor::datamap [private]

Definition at line 165 of file QtDBusPlotSvrAdaptor.qo.h.

typedef std::map<int,QDockWidget*> casa::QtDBusPlotSvrAdaptor::dockmap [private]

Definition at line 166 of file QtDBusPlotSvrAdaptor.qo.h.

typedef std::map<int,panel_desc*> casa::QtDBusPlotSvrAdaptor::panelmap [private]

Definition at line 164 of file QtDBusPlotSvrAdaptor.qo.h.


Constructor & Destructor Documentation


Member Function Documentation

void casa::QtDBusPlotSvrAdaptor::button ( int  panel,
QString  name 
) [signal]
void casa::QtDBusPlotSvrAdaptor::check ( int  panel,
QString  name,
int  value 
) [signal]
QDBusVariant casa::QtDBusPlotSvrAdaptor::close ( int  panel = 0) [slot]
void casa::QtDBusPlotSvrAdaptor::closing ( int  panel,
bool  gone 
) [signal]
QStringList casa::QtDBusPlotSvrAdaptor::colormaps ( ) [slot]
QStringList casa::QtDBusPlotSvrAdaptor::colors ( ) [slot]
bool casa::QtDBusPlotSvrAdaptor::connectToDBus ( const QString &  dbus_name = "") [inline, virtual]

Connects to the DBus server using the name provided (if non-null).

Otherwise, the dbusName() method with the current process ID is used. Returns a boolean which indicates whether the connection succeeded or not.

Implements casa::QtDBusApp.

Definition at line 52 of file QtDBusPlotSvrAdaptor.qo.h.

QString casa::QtDBusPlotSvrAdaptor::dbusName ( ) const [inline, virtual]

name used to initialize connection to dbus

Implements casa::QtDBusApp.

Definition at line 51 of file QtDBusPlotSvrAdaptor.qo.h.

References casa::name().

void casa::QtDBusPlotSvrAdaptor::emit_button ( QtPlotSvrPanel ,
QString  name 
) [protected, slot]
void casa::QtDBusPlotSvrAdaptor::emit_check ( QtPlotSvrPanel ,
QString  name,
int   
) [protected, slot]
void casa::QtDBusPlotSvrAdaptor::emit_closing ( QtPlotSvrPanel ,
bool  gone 
) [protected, slot]
void casa::QtDBusPlotSvrAdaptor::emit_linetext ( QtPlotSvrPanel ,
QString  name,
const QString &  value 
) [protected, slot]
void casa::QtDBusPlotSvrAdaptor::emit_radio ( QtPlotSvrPanel ,
QString  name,
bool   
) [protected, slot]
void casa::QtDBusPlotSvrAdaptor::emit_slidevalue ( QtPlotSvrPanel ,
QString  name,
int   
) [protected, slot]
QDBusVariant casa::QtDBusPlotSvrAdaptor::erase ( int  data = 0) [slot]
QDBusVariant casa::QtDBusPlotSvrAdaptor::error ( const QString &  message) [inline, private]

Definition at line 109 of file QtDBusPlotSvrAdaptor.qo.h.

int casa::QtDBusPlotSvrAdaptor::get_id ( QtPlotSvrPanel panel,
QwtPlotItem *  data 
) [private]
QDBusVariant casa::QtDBusPlotSvrAdaptor::hide ( int  panel) [slot]
QDBusVariant casa::QtDBusPlotSvrAdaptor::histogram ( const QList< double > &  values,
int  bins = 0,
const QString &  color = "blue",
const QString &  label = "",
int  panel = 0 
) [slot]
QDBusVariant casa::QtDBusPlotSvrAdaptor::line ( const QList< double > &  x,
const QList< double > &  y,
const QString &  color = "black",
const QString &  label = "",
int  panel = 0 
) [slot]
void casa::QtDBusPlotSvrAdaptor::linetext ( int  panel,
QString  name,
const QString &  value 
) [signal]
QDBusVariant casa::QtDBusPlotSvrAdaptor::loaddock ( const QString &  file_or_xml,
const QString &  loc = "top",
const QStringList &  dockable = QStringList(),
int  panel = 0 
) [slot]
QDBusVariant casa::QtDBusPlotSvrAdaptor::panel ( const QString &  title,
const QString &  xlabel = "",
const QString &  ylabel = "",
const QString &  window_title = "",
const QList< int > &  size = QList< int >(),
const QString &  legend = "bottom",
const QString &  zoom = "bottom",
int  with_panel = 0,
bool  new_row = false,
bool  hidden = false 
) [slot]
void casa::QtDBusPlotSvrAdaptor::radio ( int  panel,
QString  name,
bool  value 
) [signal]
QDBusVariant casa::QtDBusPlotSvrAdaptor::raster ( const QList< double > &  matrix,
int  sizex,
int  sizey,
const QString &  colormap = "Rainbow 2",
int  panel = 0 
) [slot]
QDBusVariant casa::QtDBusPlotSvrAdaptor::release ( int  panel = 0) [slot]
void casa::QtDBusPlotSvrAdaptor::release ( panelmap::iterator &  ) [private]
QDBusVariant casa::QtDBusPlotSvrAdaptor::scatter ( const QList< double > &  x,
const QList< double > &  y,
const QString &  color = "black",
const QString &  label = "",
const QString &  symbol = "",
int  symbol_size = -1,
int  dot_size = -1,
int  panel = 0 
) [slot]
QDBusVariant casa::QtDBusPlotSvrAdaptor::setlabel ( const QString &  xlabel = "",
const QString &  ylabel = "",
const QString &  title = "",
int  panel_id = 0 
) [slot]
QDBusVariant casa::QtDBusPlotSvrAdaptor::show ( int  panel) [slot]
void casa::QtDBusPlotSvrAdaptor::slidevalue ( int  panel,
QString  name,
int  value 
) [signal]
QStringList casa::QtDBusPlotSvrAdaptor::symbols ( ) [slot]

Member Data Documentation

Definition at line 169 of file QtDBusPlotSvrAdaptor.qo.h.

Definition at line 170 of file QtDBusPlotSvrAdaptor.qo.h.

Definition at line 168 of file QtDBusPlotSvrAdaptor.qo.h.

Definition at line 162 of file QtDBusPlotSvrAdaptor.qo.h.


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