casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
QtDataOptionsPanel.qo.h
Go to the documentation of this file.
1 //# QtDataOptionsPanel.qo.h: Qt implementation of viewer data manager widget.
2 //# Copyright (C) 2005
3 //# Associated Universities, Inc. Washington DC, USA.
4 //#
5 //# This library is free software; you can redistribute it and/or modify it
6 //# under the terms of the GNU Library General Public License as published by
7 //# the Free Software Foundation; either version 2 of the License, or (at your
8 //# option) any later version.
9 //#
10 //# This library is distributed in the hope that it will be useful, but WITHOUT
11 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 //# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
13 //# License for more details.
14 //#
15 //# You should have received a copy of the GNU Library General Public License
16 //# along with this library; if not, write to the Free Software Foundation,
17 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
18 //#
19 //# Correspondence concerning AIPS++ should be addressed as follows:
20 //# Internet email: aips2-request@nrao.edu.
21 //# Postal address: AIPS++ Project Office
22 //# National Radio Astronomy Observatory
23 //# 520 Edgemont Road
24 //# Charlottesville, VA 22903-2475 USA
25 //#
26 //# $Id$
27 
28 #ifndef QTDATAOPTIONSPANEL_H_
29 #define QTDATAOPTIONSPANEL_H_
30 
31 #include <casa/aips.h>
32 
33 #include <graphics/X11/X_enter.h>
34 # include <QWidget>
35 # include <QResizeEvent>
36 //#dk Be careful to put *.ui.h within X_enter/exit bracket too,
37 //# because they'll have Qt includes.
38 //# E.g. <QApplication> needs the X11 definition of 'Display'
39 # include <display/QtViewer/QtDataOptionsPanel.ui.h>
40 #include <graphics/X11/X_exit.h>
41 
42 
43 namespace casa { //# NAMESPACE CASA - BEGIN
44 
45  class QtDisplayPanelGui;
46  class QtDisplayData;
47 
48  class QtDataOptionsPanel : public QWidget, protected Ui::QtDataOptionsPanel {
49 
50  Q_OBJECT //# Allows slot/signal definition. Must only occur in
51  //# implement/.../*.h files; also, makefile must include
52  //# name of this file in 'mocs' section.
53 
54 
55  public:
56 
57  QtDataOptionsPanel(QtDisplayPanelGui* panel=0, QWidget* parent=0 );
60  removeDDTab_( data );
61  }
62 
63  signals:
64  void setAutoApply(bool);
65  void globalColorSettingsChanged( bool );
66  void dataOptionsTabChanged( const QString& name );
67 
68  protected:
69 
70  //void paintEvent(QPaintEvent* event); //#dk (hye-type trick)
71 
72  void resizeEvent (QResizeEvent* ev); //#diag -- to show size
73 
74  QWidget *parent_;
76 
77  protected slots:
78 
79  // These respond to DD creation/removal signals from viewer_
80  // <group>
81  virtual void createDDTab_(QtDisplayData*, bool autoRegister, int insertPosition);
82  virtual void removeDDTab_(QtDisplayData*);
83  // </group>
84  virtual void auto_apply_state_change(bool);
85 
86  private slots:
87  void tabChanged( int index );
88 
89  private:
90 
91  QtDataOptionsPanel() { } // (not intended for use).
92 
93  };
94 
95 } //# NAMESPACE CASA - END
96 
97 #endif
void tabChanged(int index)
virtual void removeDDTab_(QtDisplayData *)
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
ABSTRACT CLASSES Deliberately vague to be general enough to allow for many different types of data
Definition: PlotData.h:48
void dataOptionsTabChanged(const QString &name)
The main display window for the Qt version of the viewer.
void removeDD(QtDisplayData *data)
virtual void createDDTab_(QtDisplayData *, bool autoRegister, int insertPosition)
These respond to DD creation/removal signals from viewer_.
virtual void auto_apply_state_change(bool)
void resizeEvent(QResizeEvent *ev)
void paintEvent(QPaintEvent* event); //#dk (hye-type trick)
void globalColorSettingsChanged(bool)