casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
QtPlotter.qo.h
Go to the documentation of this file.
1 //# Copyright (C) 2005
2 //# Associated Universities, Inc. Washington DC, USA.
3 //#
4 //# This library is free software; you can redistribute it and/or modify it
5 //# under the terms of the GNU Library General Public License as published by
6 //# the Free Software Foundation; either version 2 of the License, or (at your
7 //# option) any later version.
8 //#
9 //# This library is distributed in the hope that it will be useful, but WITHOUT
10 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 //# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
12 //# License for more details.
13 //#
14 //# You should have received a copy of the GNU Library General Public License
15 //# along with this library; if not, write to the Free Software Foundation,
16 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
17 //#
18 //# Correspondence concerning AIPS++ should be addressed as follows:
19 //# Internet email: aips2-request@nrao.edu.
20 //# Postal address: AIPS++ Project Office
21 //# National Radio Astronomy Observatory
22 //# 520 Edgemont Road
23 //# Charlottesville, VA 22903-2475 USA
24 //#
25 
26 #ifndef QTPLOTTER_H
27 #define QTPLOTTER_H
28 
29 #include <casa/aips.h>
30 #include <casa/BasicSL/String.h>
31 #include <casa/Containers/Record.h>
32 #include <casa/Arrays/Array.h>
33 #include <casa/Arrays/ArrayMath.h>
34 #include <casa/Arrays/Vector.h>
35 #include <casa/Arrays/Matrix.h>
36 #include <casa/Inputs/Input.h>
37 #include <casa/Arrays/IPosition.h>
39 
40 
41 #include <graphics/X11/X_enter.h>
42 #include <QDir>
43 #include <QColor>
44 #include <QHash>
45 #include <QWidget>
46 #include <QMouseEvent>
47 #include <QToolButton>
48 #include <QDialog>
49 #include <QPixmap>
50 #include <QLineEdit>
51 #include <QComboBox>
52 #include <map>
53 #include <vector>
54 #include <graphics/X11/X_exit.h>
55 
56 inline void initPlotterResource() {
57  Q_INIT_RESOURCE(QtPlotter);
58 }
59 
60 namespace casa {
61 
62 
63  class QtPlotter : public QWidget {
64  Q_OBJECT
65  public:
66  QtPlotter(QWidget *parent = 0, const char *name = 0);
67  ~QtPlotter();
68 
70  return pc;
71  }
72 
73  public slots:
74  void zoomIn();
75  void zoomOut();
76  void print();
77  void save();
78  void printExp();
79  void saveExp();
80  void writeText();
81  void openText();
82  void up();
83  void down();
84  void left();
85  void right();
86  void updateZoomer();
87 
88 
89  signals:
90 
91  private:
92 
93  void printIt(QPrinter*);
94  QToolButton *zoomInButton;
95  QToolButton *zoomOutButton;
96  QToolButton *leftButton;
97  QToolButton *rightButton;
98  QToolButton *upButton;
99  QToolButton *downButton;
100 
101  QToolButton *printButton;
102  QToolButton *saveButton;
103  QToolButton *printExpButton;
104  //QToolButton *saveExpButton;
105  //QToolButton *writeButton;
106  QToolButton *openButton;
107 
109 
110  QString fileName;
111  };
112 
113 
114 }
115 #endif
116 
QtCanvas * canvas()
Definition: QtPlotter.qo.h:69
QToolButton * openButton
QToolButton *saveExpButton; QToolButton *writeButton;.
Definition: QtPlotter.qo.h:106
QToolButton * saveButton
Definition: QtPlotter.qo.h:102
QToolButton * leftButton
Definition: QtPlotter.qo.h:96
QToolButton * printExpButton
Definition: QtPlotter.qo.h:103
ABSTRACT CLASSES Abstract class for colors Any implementation of color should be able to provide a hexadecimal form of the if a human readable name(i.e."black").In many places throughout the plotter
void printIt(QPrinter *)
QToolButton * zoomInButton
Definition: QtPlotter.qo.h:94
QtPlotter(QWidget *parent=0, const char *name=0)
QToolButton * rightButton
Definition: QtPlotter.qo.h:97
QToolButton * downButton
Definition: QtPlotter.qo.h:99
QtCanvas * pc
Definition: QtPlotter.qo.h:108
void initPlotterResource()
Definition: QtPlotter.qo.h:56
QToolButton * zoomOutButton
Definition: QtPlotter.qo.h:95
QToolButton * upButton
Definition: QtPlotter.qo.h:98
QToolButton * printButton
Definition: QtPlotter.qo.h:101