casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
QtDrawer.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 
27 #ifndef TQPLOTTER_H
28 #define TQPLOTTER_H
29 
30 #include <casa/aips.h>
31 #include <casa/BasicSL/String.h>
32 #include <casa/Containers/Record.h>
33 #include <casa/Arrays/Array.h>
34 #include <casa/Arrays/ArrayMath.h>
35 #include <casa/Arrays/Vector.h>
36 #include <casa/Arrays/Matrix.h>
37 #include <casa/Inputs/Input.h>
38 #include <casa/Arrays/IPosition.h>
40 
41 
42 #include <graphics/X11/X_enter.h>
43 #include <QDir>
44 #include <QColor>
45 #include <QHash>
46 #include <QWidget>
47 #include <QMouseEvent>
48 #include <QToolButton>
49 #include <QDialog>
50 #include <QPixmap>
51 #include <QLineEdit>
52 #include <QComboBox>
53 #include <QGroupBox>
54 #include <map>
55 #include <vector>
56 #include <graphics/X11/X_exit.h>
57 
58 inline void initQtDrawerResource() {
59  Q_INIT_RESOURCE(QtDrawer);
60 }
61 
62 namespace casa {
63 
64 
65  class QtDrawer : public QWidget {
66  Q_OBJECT
67  public:
68  QtDrawer(QWidget *parent = 0, const char *name = 0,
69  int nr = 1, int rc = 1);
70  ~QtDrawer();
71 
72  QtDrawCanvas* canvas(int i = 0, int j = 0);
73 
74  public slots:
75  void zoomIn();
76  void zoomOut();
77  void print();
78  void save();
79  void printExp();
80  void saveExp();
81  void writeText();
82  void openText();
83  void up();
84  void down();
85  void left();
86  void right();
87  void updateZoomer();
88  void focusChanged();
89  //virtual void closeEvent ( QCloseEvent * event );
90 
91  signals:
92 
93  private:
94 
95  void printIt(QPrinter*);
96  QToolButton *zoomInButton;
97  QToolButton *zoomOutButton;
98  QToolButton *leftButton;
99  QToolButton *rightButton;
100  QToolButton *upButton;
101  QToolButton *downButton;
102 
103  QToolButton *printButton;
104  QToolButton *saveButton;
105  QToolButton *printExpButton;
106  //QToolButton *saveExpButton;
107  //QToolButton *writeButton;
108  QToolButton *openButton;
109 
111 
112  QString fileName;
113 
114  QGridLayout *grid;
115  QGroupBox *gridGroup;
116  int numRow;
117  int numCol;
118  };
119 
120 
121 }
122 #endif
123 
void focusChanged()
QToolButton * zoomOutButton
Definition: QtDrawer.qo.h:97
QToolButton * zoomInButton
Definition: QtDrawer.qo.h:96
QGroupBox * gridGroup
Definition: QtDrawer.qo.h:115
QToolButton * downButton
Definition: QtDrawer.qo.h:101
QtDrawCanvas * pc
Definition: QtDrawer.qo.h:110
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
QGridLayout * grid
Definition: QtDrawer.qo.h:114
QToolButton * openButton
QToolButton *saveExpButton; QToolButton *writeButton;.
Definition: QtDrawer.qo.h:108
void updateZoomer()
QToolButton * printButton
Definition: QtDrawer.qo.h:103
QToolButton * upButton
Definition: QtDrawer.qo.h:100
QString fileName
Definition: QtDrawer.qo.h:112
QToolButton * rightButton
Definition: QtDrawer.qo.h:99
void printIt(QPrinter *)
virtual void closeEvent (QCloseEvent * event);
QtDrawer(QWidget *parent=0, const char *name=0, int nr=1, int rc=1)
void initQtDrawerResource()
Definition: QtDrawer.qo.h:58
QtDrawCanvas * canvas(int i=0, int j=0)
QToolButton * saveButton
Definition: QtDrawer.qo.h:104
QToolButton * leftButton
Definition: QtDrawer.qo.h:98
QToolButton * printExpButton
Definition: QtDrawer.qo.h:105