casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Public Slots | Signals | Public Member Functions | Protected Slots | Private Types | Private Member Functions | Private Attributes | List of all members
casa::QtDBusPlotSvrAdaptor Class Reference

#include <QtDBusPlotSvrAdaptor.qo.h>

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

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 More...
 
bool connectToDBus (const QString &dbus_name="")
 Connects to the DBus server using the name provided (if non-null). More...
 
 QtDBusPlotSvrAdaptor (QtPlotServer *)
 
 ~QtDBusPlotSvrAdaptor ()
 
- Public Member Functions inherited from casa::QtDBusApp
QString dbusServiceName (const QString &name, const pid_t pid)
 
QString dbusObjectName (const QString &name, const pid_t pid)
 
const QString & dbusServiceName (const QString &name="")
 
const QString & dbusObjectName (const QString &name="")
 
 QtDBusApp ()
 
virtual ~QtDBusApp ()
 

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
 

Additional Inherited Members

- Static Public Member Functions inherited from casa::QtDBusApp
static QDBusConnection connection ()
 
static QString serviceOwner (const QString &service)
 
static QString serviceOwner (const std::string &service)
 
static bool serviceIsAvailable (const QString &service)
 
static bool serviceIsAvailable (const std::string &service)
 
static QString generateServiceName (const QString &name, const pid_t pid)
 
- Protected Member Functions inherited from casa::QtDBusApp
bool connectToDBus (QObject *object, const QString &dbus_name="")
 

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

casa::QtDBusPlotSvrAdaptor::QtDBusPlotSvrAdaptor ( QtPlotServer )
casa::QtDBusPlotSvrAdaptor::~QtDBusPlotSvrAdaptor ( )

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::close_everything ( )
private
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 = "")
inlinevirtual

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.

References casa::QtDBusApp::connectToDBus().

QString casa::QtDBusPlotSvrAdaptor::dbusName ( ) const
inlinevirtual

name used to initialize connection to dbus

Implements casa::QtDBusApp.

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

References casa::QtPlotServer::name().

void casa::QtDBusPlotSvrAdaptor::done ( )
slot
void casa::QtDBusPlotSvrAdaptor::emit_button ( QtPlotSvrPanel ,
QString  name 
)
protectedslot
void casa::QtDBusPlotSvrAdaptor::emit_check ( QtPlotSvrPanel ,
QString  name,
int   
)
protectedslot
void casa::QtDBusPlotSvrAdaptor::emit_closing ( QtPlotSvrPanel ,
bool  gone 
)
protectedslot
void casa::QtDBusPlotSvrAdaptor::emit_linetext ( QtPlotSvrPanel ,
QString  name,
const QString &  value 
)
protectedslot
void casa::QtDBusPlotSvrAdaptor::emit_radio ( QtPlotSvrPanel ,
QString  name,
bool   
)
protectedslot
void casa::QtDBusPlotSvrAdaptor::emit_slidevalue ( QtPlotSvrPanel ,
QString  name,
int   
)
protectedslot
QDBusVariant casa::QtDBusPlotSvrAdaptor::erase ( int  data = 0)
slot
QDBusVariant casa::QtDBusPlotSvrAdaptor::error ( const QString &  message)
inlineprivate

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

void casa::QtDBusPlotSvrAdaptor::exiting ( )
signal
int casa::QtDBusPlotSvrAdaptor::get_id ( QtPlotSvrPanel panel)
private
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
void casa::QtDBusPlotSvrAdaptor::release_everything ( )
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

datamap casa::QtDBusPlotSvrAdaptor::managed_datas
private

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

dockmap casa::QtDBusPlotSvrAdaptor::managed_docks
private

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

panelmap casa::QtDBusPlotSvrAdaptor::managed_panels
private

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

QtPlotServer* casa::QtDBusPlotSvrAdaptor::server
private

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


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