]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/QBranchDialog.C
enable Font cache only for MacOSX and inline width() for other platform.
[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>
17 #include <QCloseEvent>
18
19 namespace lyx {
20 namespace frontend {
21
22 QBranchDialog::QBranchDialog(QBranch * form)
23         : form_(form)
24 {
25         setupUi(this);
26         connect(okPB, SIGNAL(clicked()),
27                 form, SLOT(slotOK()));
28         connect(closePB, SIGNAL(clicked()),
29                 form, SLOT(slotClose()));
30         connect(branchCO, SIGNAL( activated(int) ), 
31                 this, SLOT( change_adaptor() ) );
32 }
33
34
35 void QBranchDialog::closeEvent(QCloseEvent * e)
36 {
37         form_->slotWMHide();
38         e->accept();
39 }
40
41
42 void QBranchDialog::change_adaptor()
43 {
44         form_->changed();
45 }
46
47 } // namespace frontend
48 } // namespace lyx
49
50 #include "QBranchDialog_moc.cpp"