casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
QtPlotServer.qo.h
Go to the documentation of this file.
00001 //# QtPlotServer.qo.h: main class for plotting; panels are created from here
00002 //# with surrounding Gui functionality
00003 //# Copyright (C) 2005
00004 //# Associated Universities, Inc. Washington DC, USA.
00005 //#
00006 //# This library is free software; you can redistribute it and/or modify it
00007 //# under the terms of the GNU Library General Public License as published by
00008 //# the Free Software Foundation; either version 2 of the License, or (at your
00009 //# option) any later version.
00010 //#
00011 //# This library is distributed in the hope that it will be useful, but WITHOUT
00012 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00013 //# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
00014 //# License for more details.
00015 //#
00016 //# You should have received a copy of the GNU Library General Public License
00017 //# along with this library; if not, write to the Free Software Foundation,
00018 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
00019 //#
00020 //# Correspondence concerning AIPS++ should be addressed as follows:
00021 //#        Internet email: aips2-request@nrao.edu.
00022 //#        Postal address: AIPS++ Project Office
00023 //#                        National Radio Astronomy Observatory
00024 //#                        520 Edgemont Road
00025 //#                        Charlottesville, VA 22903-2475 USA
00026 //#
00027 //# $Id: QtPlotServer.qo.h,v 1.7 2006/10/10 21:42:05 dking Exp $
00028 
00029 #ifndef QTDBUSPLOTSERVER_QO_H_
00030 #define QTDBUSPLOTSERVER_QO_H_
00031 
00032 #include <QObject>
00033 
00034 
00035 namespace casa {
00036 
00037     class QtDBusPlotSvrAdaptor;
00038     class QtPlotSvrPanel;
00039 
00040     class QtPlotServer : public QObject {
00041     Q_OBJECT
00042         public:
00043 
00044             QtPlotServer( const char *dbus_name=0 );
00045             ~QtPlotServer( );
00046 
00047             // name used to initialize connection to dbus
00048             static const QString &name( );
00049 
00050             QtPlotSvrPanel *panel( const QString &title, const QString &xlabel="", const QString &ylabel="", const QString &window_title="",
00051                                    const QList<int> &size=QList<int>( ), const QString &legend="bottom", const QString &zoom="bottom",
00052                                    QtPlotSvrPanel *with_panel=0, bool new_row=false  );
00053 
00054         private:
00055             static QString name_;
00056             QString dbus_name_;
00057             QtDBusPlotSvrAdaptor* dbus_;
00058 
00059   };
00060 
00061 }
00062 
00063 #endif