OpendTect-6_4  6.4
i_qdialog.h
Go to the documentation of this file.
1 #ifndef i_qdialog_h
2 #define i_qdialog_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: 25/05/2000
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "uidialog.h"
16 
17 #include <QObject>
18 #include <QDialog>
19 
20 QT_BEGIN_NAMESPACE
21 
22 class QDialogMessenger : public QObject
23 {
24  Q_OBJECT
25  friend class uiDialog;
26 
27 protected:
28 
29 QDialogMessenger( QDialog* qdlg, uiDialog* uidlg )
30  : qdialog_(qdlg)
31  , uidialog_(uidlg)
32 {
33  connect( qdialog_, SIGNAL(accepted()), this, SLOT(accepted()) );
34  connect( qdialog_, SIGNAL(rejected()), this, SLOT(rejected()) );
35  connect( qdialog_, SIGNAL(finished(int)), this, SLOT(finished(int)) );
36 }
37 
38 
39 private slots:
40 
41 void accepted()
42 { // Implement when uiDialog uses QDialog again
43 }
44 
45 void rejected()
46 { // Implement when uiDialog uses QDialog again
47 }
48 
49 void finished( int result )
50 { // Implement when uiDialog uses QDialog again
51 }
52 
53 private:
54 
55  QDialog* qdialog_;
57 };
58 
59 QT_END_NAMESPACE
60 
61 #endif
QDialogMessenger(QDialog *qdlg, uiDialog *uidlg)
Definition: i_qdialog.h:29
uiDialog * uidialog_
Definition: i_qdialog.h:56
QDialog * qdialog_
Definition: i_qdialog.h:55
void rejected()
Definition: i_qdialog.h:45
void accepted()
Definition: i_qdialog.h:41
Definition: uidialog.h:42
void finished(int result)
Definition: i_qdialog.h:49
Definition: i_qdialog.h:22

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