casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SlideEditor.qo.h
Go to the documentation of this file.
1 
2 #ifndef SLIDE_EDITOR_H
3 #define SLIDE_EDITOR_H
4 
5 #include <graphics/X11/X_enter.h>
6 #include <QtCore>
7 #include <QLineEdit>
8 #include <QSlider>
9 #include <QVBoxLayout>
10 #include <graphics/X11/X_exit.h>
11 
12 namespace casa {
13 
14 class SlideEditor : public QWidget
15 {
16  Q_OBJECT
17 
18 public:
19  SlideEditor(QString name,
20  double min = 0.,
21  double max = 1.,
22  double pos = 0.,
23  int stepSize = 16,
24  int pageStep = 10,
25  QWidget *parent = 0);
27 
28 public slots:
29  void display2(int);
30  void display2();
31 
32  void setMinimum(double);
33  void setMaximum(double);
34  void setPosition(double);
35 
36  void reset(double, double, double);
37 
38 signals:
39 
40  //objName can be obtained from sender(), but
41  //that violates object oriented programming
42  void itemValueChanged(QString& value);
43 
44  //explicitly send name
45  void itemValueChanged(QString& name, QString& value);
46 
47  void itemValueChanged(int);
48 
49 private:
50  QLineEdit *lineEdit;
51  QSlider *slider;
52  QVBoxLayout *vboxLayout;
53 
54  int stepSize;
55  QString itemName;
56  QString itemValue;
57 };
58 
59 }
60 #endif
#define max(a, b)
Definition: hio.h:44
#define min(a, b)
Definition: hio.h:45
QVBoxLayout * vboxLayout
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 reset(double, double, double)
void setMaximum(double)
SlideEditor(QString name, double min=0., double max=1., double pos=0., int stepSize=16, int pageStep=10, QWidget *parent=0)
void setPosition(double)
QLineEdit * lineEdit
void itemValueChanged(QString &value)
objName can be obtained from sender(), but that violates object oriented programming ...
void setMinimum(double)
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.