OpendTect-6_4  6.4
i_qspinbox.h
Go to the documentation of this file.
1 #ifndef i_qspinbox_h
2 #define i_qspinbox_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: A.H. Lammertink
9  Date: 01/02/2001
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "uispinbox.h"
16 #include <QDoubleSpinBox>
17 
19 
23 QT_BEGIN_NAMESPACE
24 
25 class QString;
26 
27 class i_SpinBoxMessenger : public QObject
28 {
29  Q_OBJECT
30  friend class uiSpinBoxBody;
31 
32 protected:
33  i_SpinBoxMessenger(QDoubleSpinBox* sndr,
34  uiSpinBox* receiver)
35  : sender_(sndr)
36  , receiver_(receiver)
37  {
38  connect( sndr, SIGNAL(editingFinished()),
39  this, SLOT(editingFinished()) );
40  connect(sndr, SIGNAL(valueChanged(double)),
41  this, SLOT(valueChanged(double)) );
42  }
43 
44  virtual ~i_SpinBoxMessenger() {}
45 
46 private:
47 
49  QDoubleSpinBox* sender_;
50 
51 private slots:
52 
54  { receiver_->notifyHandler( true ); }
55  void valueChanged(double)
56  { receiver_->notifyHandler( false ); }
57 };
58 
59 QT_END_NAMESPACE
60 
61 #endif
void valueChanged(double)
Definition: i_qspinbox.h:55
virtual ~i_SpinBoxMessenger()
Definition: i_qspinbox.h:44
void editingFinished()
Definition: i_qspinbox.h:53
uiSpinBox * receiver_
Definition: i_qspinbox.h:48
QDoubleSpinBox * sender_
Definition: i_qspinbox.h:49
friend class uiSpinBoxBody
Definition: i_qspinbox.h:30
Definition: uispinbox.h:24
void notifyHandler(bool editingfinished)
i_SpinBoxMessenger(QDoubleSpinBox *sndr, uiSpinBox *receiver)
Definition: i_qspinbox.h:33
Definition: i_qspinbox.h:27

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019