]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/QSendtoDialog.C
This new citation dialog follows a new design similar to lyx-1.3:
[lyx.git] / src / frontends / qt4 / QSendtoDialog.C
1 /**
2  * \file QSendtoDialog.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 "QSendtoDialog.h"
14 #include "QSendto.h"
15
16 #include <qpushbutton.h>
17 //Added by qt3to4:
18 #include <QCloseEvent>
19
20
21 namespace lyx {
22 namespace frontend {
23
24 QSendtoDialog::QSendtoDialog(QSendto * form)
25         : form_(form)
26 {
27         setupUi(this);
28
29         connect(okPB, SIGNAL(clicked()),
30                 form, SLOT(slotOK()));
31         connect(applyPB, SIGNAL(clicked()),
32                 form, SLOT(slotApply()));
33         connect(closePB, SIGNAL(clicked()),
34                 form, SLOT(slotClose()));
35
36     connect( formatLB, SIGNAL( highlighted(const QString&) ), this, SLOT( slotFormatHighlighted(const QString&) ) );
37     connect( formatLB, SIGNAL( selected(const QString&) ), this, SLOT( slotFormatSelected(const QString&) ) );
38     connect( formatLB, SIGNAL( highlighted(const QString&) ), this, SLOT( changed_adaptor() ) );
39     connect( commandCO, SIGNAL( textChanged(const QString&) ), this, SLOT( changed_adaptor() ) );
40 }
41
42
43 void QSendtoDialog::changed_adaptor()
44 {
45         form_->changed();
46 }
47
48
49 void QSendtoDialog::closeEvent(QCloseEvent * e)
50 {
51         form_->slotWMHide();
52         e->accept();
53 }
54
55 } // namespace frontend
56 } // namespace lyx