]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QSendtoDialog.C
namespace grfx -> lyx::graphics
[lyx.git] / src / frontends / qt2 / 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 Juergen Spitzmueller
7  *
8  * Full author contact details are available in file CREDITS
9  */
10
11 #include <config.h>
12
13
14 #include <vector>
15 #include "ControlSendto.h"
16 #include "qt_helpers.h"
17 #include "debug.h"
18
19 #include "LString.h"
20
21 #include <qcombobox.h>
22 #include <qlabel.h>
23 #include <qlistbox.h>
24 #include <qpushbutton.h>
25
26 #include "QSendtoDialog.h"
27 #include "QSendto.h"
28
29
30 QSendtoDialog::QSendtoDialog(QSendto * form)
31         : QSendtoDialogBase(0, 0, false, 0),
32         form_(form)
33 {
34         connect(okPB, SIGNAL(clicked()),
35                 form, SLOT(slotOK()));
36         connect(applyPB, SIGNAL(clicked()),
37                 form, SLOT(slotApply()));
38         connect(closePB, SIGNAL(clicked()),
39                 form, SLOT(slotClose()));
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 }