OpendTect-6_4  6.4
i_qbutton.h
Go to the documentation of this file.
1 #ifndef i_qbutton_h
2 #define i_qbutton_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: 26/04/2000
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "uibutton.h"
16 
17 #include <QAbstractButton>
18 #include <QObject>
19 
24 QT_BEGIN_NAMESPACE
25 
26 class i_ButMessenger : public QObject
27 {
28 
29  Q_OBJECT
30  friend class uiButton;
31 
32 public:
33 
34 i_ButMessenger( QAbstractButton& sndr, uiButtonMessenger& receiver )
35  : receiver_(receiver)
36  , sender_(sndr)
37 {
38 #define mConnectButMsngr(nm,args) \
39  connect( &sender_, SIGNAL(nm(args)), this, SLOT(nm(args)) )
40 
41  mConnectButMsngr( toggled, bool );
45 }
46 
47 private:
48 
50  QAbstractButton& sender_;
51 
52 public slots:
53 
58 
59 };
60 
61 QT_END_NAMESPACE
62 
63 #endif
friend class uiButton
Definition: i_qbutton.h:30
#define mConnectButMsngr(nm, args)
Definition: i_qbutton.h:26
QAbstractButton & sender_
Definition: i_qbutton.h:50
void pressed()
Definition: i_qbutton.h:56
Definition: uibutton.h:170
i_ButMessenger(QAbstractButton &sndr, uiButtonMessenger &receiver)
Definition: i_qbutton.h:34
Button Abstract Base class.
Definition: uibutton.h:160
virtual void notifyHandler(notifyTp)=0
Handler called from Qt.
void toggled(bool)
Definition: i_qbutton.h:54
Definition: uibutton.h:170
Definition: uibutton.h:170
void clicked()
Definition: i_qbutton.h:55
uiButtonMessenger & receiver_
Definition: i_qbutton.h:49
void released()
Definition: i_qbutton.h:57
Definition: uibutton.h:170

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