]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/QSendtoDialog.C
enable Font cache only for MacOSX and inline width() for other platform.
[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>
17 #include <QCloseEvent>
18
19
20 namespace lyx {
21 namespace frontend {
22
23 QSendtoDialog::QSendtoDialog(QSendto * form)
24         : form_(form)
25 {
26         setupUi(this);
27
28         connect(okPB, SIGNAL(clicked()),
29                 form, SLOT(slotOK()));
30         connect(applyPB, SIGNAL(clicked()),
31                 form, SLOT(slotApply()));
32         connect(closePB, SIGNAL(clicked()),
33                 form, SLOT(slotClose()));
34
35         connect( formatLW, SIGNAL( itemClicked(QListWidgetItem *) ), 
36                 this, SLOT( slotFormatHighlighted(QListWidgetItem *) ) );
37         connect( formatLW, SIGNAL( itemActivated(QListWidgetItem *) ), 
38                 this, SLOT( slotFormatSelected(QListWidgetItem *) ) );
39         connect( formatLW, SIGNAL( itemClicked(QListWidgetItem *) ), 
40                 this, SLOT( changed_adaptor() ) );
41         connect( commandCO, SIGNAL( textChanged(const QString&) ), 
42                 this, SLOT( changed_adaptor() ) );
43 }
44
45
46 void QSendtoDialog::changed_adaptor()
47 {
48         form_->changed();
49 }
50
51
52 void QSendtoDialog::closeEvent(QCloseEvent * e)
53 {
54         form_->slotWMHide();
55         e->accept();
56 }
57
58 } // namespace frontend
59 } // namespace lyx
60
61 #include "QSendtoDialog_moc.cpp"