]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/QBranchDialog.C
Added initial qt4 work by Abdelrazak Younes
[lyx.git] / src / frontends / qt4 / QBranchDialog.C
1 /**
2  * \file QBranchDialog.C
3  * This file is part of LyX, the document processor.
4  * Licence details can be found in the file COPYING.
5  *
6  * \author Jürgen Spitzmüller
7  *
8  * Full author contact details are available in file CREDITS.
9  */
10
11 #include <config.h>
12
13 #include "QBranchDialog.h"
14 #include "QBranch.h"
15
16 #include <qpushbutton.h>
17 //Added by qt3to4:
18 #include <QCloseEvent>
19
20 namespace lyx {
21 namespace frontend {
22
23 QBranchDialog::QBranchDialog(QBranch * form)
24         : form_(form)
25 {
26         setupUi(this);
27         connect(okPB, SIGNAL(clicked()),
28                 form, SLOT(slotOK()));
29         connect(closePB, SIGNAL(clicked()),
30                 form, SLOT(slotClose()));
31
32     connect( branchCO, SIGNAL( activated(int) ), this, SLOT( change_adaptor() ) );
33 }
34
35
36 void QBranchDialog::closeEvent(QCloseEvent * e)
37 {
38         form_->slotWMHide();
39         e->accept();
40 }
41
42
43 void QBranchDialog::change_adaptor()
44 {
45         form_->changed();
46 }
47
48 } // namespace frontend
49 } // namespace lyx