casa
$Rev:20696$
|
#include <QtDBusViewerAdaptor.qo.h>
Classes | |
class | data_desc |
class | panel_desc |
Public Slots | |
QDBusVariant | start_interact (const QDBusVariant &input, int panel) |
QDBusVariant | datarange (const QList< double > &range, int data=0) |
QDBusVariant | contourlevels (const QList< double > &levels, double baselevel=2147483648.0, double unitlevel=2147483648.0, int panel_or_data=0) |
QDBusVariant | axes (const QString &x="", const QString &y="", const QString &z="", int panel=0) |
QDBusVariant | colormap (const QString &map, int panel_or_data=0) |
QDBusVariant | colorwedge (bool show=true, int panel_or_data=0) |
QDBusVariant | load (const QString &path, const QString &displaytype="raster", int panel=0, double scaling=0) |
QDBusVariant | reload (int panel_or_data) |
QDBusVariant | unload (int data) |
QDBusVariant | restore (const QString &path, int panel=0) |
QDBusVariant | panel (const QString &type="viewer", bool hidden=false) |
QDBusVariant | hide (int panel=0) |
QDBusVariant | show (int panel=0) |
QDBusVariant | close (int panel=0) |
QDBusVariant | popup (const QString &what, int panel=0) |
QDBusVariant | cwd (const QString &new_path="") |
QDBusVariant | freeze (int panel=0) |
QDBusVariant | unfreeze (int panel=0) |
QDBusVariant | channel (int num=-1, int panel=0) |
QDBusVariant | zoom (int level, int panel=0) |
QDBusVariant | zoom (const QList< double > &blc, const QList< double > &trc, const QString &coordinates="pixel", int panel=0) |
QDBusVariant | release (int panel) |
like "close()", but leaves the closing up to the user if the window is not hidden | |
QDBusVariant | setoptions (const QDBusVariant &input, int panel) |
To change certain things so the panel. | |
bool | output (const QString &device, const QString &devicetype="file", int panel=0, double scale=1.0, int dpi=300, const QString &format="jpg", const QString &orientation="portrait", const QString &media="letter") |
device: file name or printer name devicetype: "file", "printer", or "ghostscript" format: "jpg", "pdf", "eps", "ps", "png", "xbm", "xpm", "ppm" [only used with devicetype == "file"] [extension on device, e.g. | |
QDBusVariant | fileinfo (const QString &path) |
QStringList | keyinfo (int) |
bool | done () |
Signals | |
void | interact (QDBusVariant) |
void | exiting (QDBusVariant) |
Public Member Functions | |
QString | dbusName () const |
bool | connectToDBus (const QString &dbus_name="") |
Connects to the DBus server using the name provided (if non-null). | |
QtDBusViewerAdaptor (QtViewer *) | |
Constructor which takes the application. | |
~QtDBusViewerAdaptor () | |
Destructor. | |
Protected Slots | |
void | handle_interact (QVariant) |
void | handle_destroyed_panel (QObject *) |
Protected Member Functions | |
QtDisplayPanelGui * | create_panel () |
void | load_data (QtDisplayPanelGui *panel, int index) |
void | unload_data (QtDisplayPanelGui *panel, int index, bool erase=true) |
QtDisplayPanelGui * | erase_panel (int panel) |
void | erase_data (int) |
Private Types | |
typedef std::map< int, panel_desc * > | panelmap |
typedef std::map< int, data_desc * > | datamap |
Private Member Functions | |
QDBusVariant | error (const QString &message) |
bool | printps (QtDisplayPanel *panel, const QString &type, const QString &file, int dpi, const QString &orientation, const QString &media) |
bool | printraster (QtDisplayPanel *panel, const QString &type, const QString &file, double scale) |
void | adjusteps (const char *from, const char *to, const QSize &wcmax, const QRect &viewport) |
int | get_id (QtDisplayPanelGui *, QtDisplayData *, const QString &path, const QString &type) |
int | get_id (QtDisplayPanelGui *) |
QtDisplayPanelGui * | findpanel (int key, bool create=true) |
QtDisplayData * | finddata (int key) |
Private Attributes | |
QtViewer * | viewer_ |
datamap | managed_datas |
panelmap | managed_panels |
Definition at line 44 of file QtDBusViewerAdaptor.qo.h.
typedef std::map<int,data_desc*> casa::QtDBusViewerAdaptor::datamap [private] |
Definition at line 189 of file QtDBusViewerAdaptor.qo.h.
typedef std::map<int,panel_desc*> casa::QtDBusViewerAdaptor::panelmap [private] |
Definition at line 188 of file QtDBusViewerAdaptor.qo.h.
Constructor which takes the application.
Destructor.
void casa::QtDBusViewerAdaptor::adjusteps | ( | const char * | from, |
const char * | to, | ||
const QSize & | wcmax, | ||
const QRect & | viewport | ||
) | [private] |
QDBusVariant casa::QtDBusViewerAdaptor::axes | ( | const QString & | x = "" , |
const QString & | y = "" , |
||
const QString & | z = "" , |
||
int | panel = 0 |
||
) | [slot] |
QDBusVariant casa::QtDBusViewerAdaptor::channel | ( | int | num = -1 , |
int | panel = 0 |
||
) | [slot] |
QDBusVariant casa::QtDBusViewerAdaptor::close | ( | int | panel = 0 | ) | [slot] |
QDBusVariant casa::QtDBusViewerAdaptor::colormap | ( | const QString & | map, |
int | panel_or_data = 0 |
||
) | [slot] |
QDBusVariant casa::QtDBusViewerAdaptor::colorwedge | ( | bool | show = true , |
int | panel_or_data = 0 |
||
) | [slot] |
bool casa::QtDBusViewerAdaptor::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 51 of file QtDBusViewerAdaptor.qo.h.
QDBusVariant casa::QtDBusViewerAdaptor::contourlevels | ( | const QList< double > & | levels, |
double | baselevel = 2147483648.0 , |
||
double | unitlevel = 2147483648.0 , |
||
int | panel_or_data = 0 |
||
) | [slot] |
QtDisplayPanelGui* casa::QtDBusViewerAdaptor::create_panel | ( | ) | [protected] |
QDBusVariant casa::QtDBusViewerAdaptor::cwd | ( | const QString & | new_path = "" | ) | [slot] |
QDBusVariant casa::QtDBusViewerAdaptor::datarange | ( | const QList< double > & | range, |
int | data = 0 |
||
) | [slot] |
QString casa::QtDBusViewerAdaptor::dbusName | ( | ) | const [inline, virtual] |
Implements casa::QtDBusApp.
Definition at line 50 of file QtDBusViewerAdaptor.qo.h.
References casa::QtViewer::name().
bool casa::QtDBusViewerAdaptor::done | ( | ) | [slot] |
void casa::QtDBusViewerAdaptor::erase_data | ( | int | ) | [protected] |
QtDisplayPanelGui* casa::QtDBusViewerAdaptor::erase_panel | ( | int | panel | ) | [protected] |
QDBusVariant casa::QtDBusViewerAdaptor::error | ( | const QString & | message | ) | [inline, private] |
Definition at line 125 of file QtDBusViewerAdaptor.qo.h.
void casa::QtDBusViewerAdaptor::exiting | ( | QDBusVariant | ) | [signal] |
QDBusVariant casa::QtDBusViewerAdaptor::fileinfo | ( | const QString & | path | ) | [slot] |
QtDisplayData* casa::QtDBusViewerAdaptor::finddata | ( | int | key | ) | [private] |
QtDisplayPanelGui* casa::QtDBusViewerAdaptor::findpanel | ( | int | key, |
bool | create = true |
||
) | [private] |
QDBusVariant casa::QtDBusViewerAdaptor::freeze | ( | int | panel = 0 | ) | [slot] |
int casa::QtDBusViewerAdaptor::get_id | ( | QtDisplayPanelGui * | , |
QtDisplayData * | , | ||
const QString & | path, | ||
const QString & | type | ||
) | [private] |
int casa::QtDBusViewerAdaptor::get_id | ( | QtDisplayPanelGui * | ) | [private] |
void casa::QtDBusViewerAdaptor::handle_destroyed_panel | ( | QObject * | ) | [protected, slot] |
void casa::QtDBusViewerAdaptor::handle_interact | ( | QVariant | ) | [protected, slot] |
QDBusVariant casa::QtDBusViewerAdaptor::hide | ( | int | panel = 0 | ) | [slot] |
void casa::QtDBusViewerAdaptor::interact | ( | QDBusVariant | ) | [signal] |
QStringList casa::QtDBusViewerAdaptor::keyinfo | ( | int | ) | [slot] |
QDBusVariant casa::QtDBusViewerAdaptor::load | ( | const QString & | path, |
const QString & | displaytype = "raster" , |
||
int | panel = 0 , |
||
double | scaling = 0 |
||
) | [slot] |
void casa::QtDBusViewerAdaptor::load_data | ( | QtDisplayPanelGui * | panel, |
int | index | ||
) | [protected] |
bool casa::QtDBusViewerAdaptor::output | ( | const QString & | device, |
const QString & | devicetype = "file" , |
||
int | panel = 0 , |
||
double | scale = 1.0 , |
||
int | dpi = 300 , |
||
const QString & | format = "jpg" , |
||
const QString & | orientation = "portrait" , |
||
const QString & | media = "letter" |
||
) | [slot] |
device: file name or printer name devicetype: "file", "printer", or "ghostscript" format: "jpg", "pdf", "eps", "ps", "png", "xbm", "xpm", "ppm" [only used with devicetype == "file"] [extension on device, e.g.
"outfile.pdf" overrides "format"] scale: size scale factor for raster output (e.g. jpg etc.) dpi: resolution of PS or EPS images orientation: "portrait", "landscape" media: "letter" or "a4"
QDBusVariant casa::QtDBusViewerAdaptor::panel | ( | const QString & | type = "viewer" , |
bool | hidden = false |
||
) | [slot] |
QDBusVariant casa::QtDBusViewerAdaptor::popup | ( | const QString & | what, |
int | panel = 0 |
||
) | [slot] |
bool casa::QtDBusViewerAdaptor::printps | ( | QtDisplayPanel * | panel, |
const QString & | type, | ||
const QString & | file, | ||
int | dpi, | ||
const QString & | orientation, | ||
const QString & | media | ||
) | [private] |
bool casa::QtDBusViewerAdaptor::printraster | ( | QtDisplayPanel * | panel, |
const QString & | type, | ||
const QString & | file, | ||
double | scale | ||
) | [private] |
QDBusVariant casa::QtDBusViewerAdaptor::release | ( | int | panel | ) | [slot] |
like "close()", but leaves the closing up to the user if the window is not hidden
QDBusVariant casa::QtDBusViewerAdaptor::reload | ( | int | panel_or_data | ) | [slot] |
QDBusVariant casa::QtDBusViewerAdaptor::restore | ( | const QString & | path, |
int | panel = 0 |
||
) | [slot] |
QDBusVariant casa::QtDBusViewerAdaptor::setoptions | ( | const QDBusVariant & | input, |
int | panel | ||
) | [slot] |
To change certain things so the panel.
QDBusVariant casa::QtDBusViewerAdaptor::show | ( | int | panel = 0 | ) | [slot] |
QDBusVariant casa::QtDBusViewerAdaptor::start_interact | ( | const QDBusVariant & | input, |
int | panel | ||
) | [slot] |
QDBusVariant casa::QtDBusViewerAdaptor::unfreeze | ( | int | panel = 0 | ) | [slot] |
QDBusVariant casa::QtDBusViewerAdaptor::unload | ( | int | data | ) | [slot] |
void casa::QtDBusViewerAdaptor::unload_data | ( | QtDisplayPanelGui * | panel, |
int | index, | ||
bool | erase = true |
||
) | [protected] |
QDBusVariant casa::QtDBusViewerAdaptor::zoom | ( | int | level, |
int | panel = 0 |
||
) | [slot] |
QDBusVariant casa::QtDBusViewerAdaptor::zoom | ( | const QList< double > & | blc, |
const QList< double > & | trc, | ||
const QString & | coordinates = "pixel" , |
||
int | panel = 0 |
||
) | [slot] |
Definition at line 190 of file QtDBusViewerAdaptor.qo.h.
Definition at line 191 of file QtDBusViewerAdaptor.qo.h.
QtViewer* casa::QtDBusViewerAdaptor::viewer_ [private] |
Definition at line 181 of file QtDBusViewerAdaptor.qo.h.