casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AnimatorWidget.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 #ifndef ANIMATORWIDGETT_QO_H
26 #define ANIMATORWIDGETT_QO_H
27 
28 #include <QWidget>
29 #include <display/QtViewer/AnimatorWidget.ui.h>
30 
31 namespace casa {
32 
38  class AnimatorWidget : public QWidget, protected Ui::AnimatorWidget {
39  Q_OBJECT
40 
41  public:
42  AnimatorWidget(QWidget *parent = 0);
43 
44  void setFrameInformation( int frm, int len );
45  void setRateInformation( int minr, int maxr, int rate );
46  void setModeEnabled( bool enable );
47  void setPlaying( int play );
48  bool isPlaying() const;
49  int getRate() const;
50  int getFrame() const;
51  int getFrameCount() const;
52  int getFrameStart() const;
53  int getFrameEnd() const;
54  int getStepSize() const;
56 
57  static int heightOpen( ) { return 107; }
58  static int heightClosed( ) { return 25; }
59  static int heightHeader( ) { return 27; }
60 
61  signals:
62  void goTo(int frame);
63  void setRate(int);
64  void toStart();
65  void revStep();
66  void revPlay();
67  void stop();
68  void fwdStep();
69  void fwdPlay();
70  void toEnd();
71  void frameNumberEdited( int );
72  void lowerBoundChanged( int );
73  void upperBoundChanged( int );
74  void stepSizeChanged( int );
75 
76  public slots:
77  void stopping();
78 
79  private slots:
80  void frameNumberEdited();
81  void movieLimitLowerChanged( int value );
82  void movieLimitUpperChanged( int value );
83  void sliderControl( int action );
84  void endToEndMode( bool mode );
85  void starting();
86  void revStepping();
87 
88  void fwdStepping();
89  void ending();
90  void revPlaying();
91  void fwdPlaying();
92 
93  private:
94  int resetFrameBounded( int frameNumber ) const;
95  void disableAll();
96  void blockSignals( bool block );
98  int play;
99  bool rateNotSet;
100  };
101 }
102 #endif // ANIMATORWIDGET_QO_H
void movieLimitLowerChanged(int value)
Manages an individual panel of the viewer animator.
void movieLimitUpperChanged(int value)
void setFrameInformation(int frm, int len)
void upperBoundChanged(int)
void lowerBoundChanged(int)
void blockSignals(bool block)
void endToEndMode(bool mode)
int resetFrameBounded(int frameNumber) const
int getFrameCount() const
void setRateInformation(int minr, int maxr, int rate)
AnimatorWidget(QWidget *parent=0)
bool isPlaying() const
int getStepSize() const
void goTo(int frame)
void sliderControl(int action)
void setPlaying(int play)
void stepSizeChanged(int)
int getFrameStart() const
int getFrame() const
int getRate() const
void setModeEnabled(bool enable)
int getFrameEnd() const
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.