]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QURLDialog.C
some tabular fixes for the problems reported by Helge
[lyx.git] / src / frontends / qt2 / QURLDialog.C
1 /**
2  * \file QURLDialog.C
3  * This file is part of LyX, the document processor.
4  * Licence details can be found in the file COPYING.
5  *
6  * \author John Levon
7  *
8  * Full author contact details are available in file CREDITS.
9  */
10
11 #include <config.h>
12
13 #include "QURLDialog.h"
14 #include "QURL.h"
15
16 #include <qlineedit.h>
17 #include <qpushbutton.h>
18
19 namespace lyx {
20 namespace frontend {
21
22 QURLDialog::QURLDialog(QURL * form)
23         : QURLDialogBase(0, 0, false, 0),
24         form_(form)
25 {
26         connect(okPB, SIGNAL(clicked()),
27                 form_, SLOT(slotOK()));
28         connect(closePB, SIGNAL(clicked()),
29                 form_, SLOT(slotClose()));
30 }
31
32
33 QURLDialog::~QURLDialog()
34 {
35 }
36
37
38 void QURLDialog::show()
39 {
40         QURLDialogBase::show();
41         urlED->setFocus();
42 }
43
44
45 void QURLDialog::changed_adaptor()
46 {
47         form_->changed();
48 }
49
50
51 void QURLDialog::closeEvent(QCloseEvent * e)
52 {
53         form_->slotWMHide();
54         e->accept();
55 }
56
57 } // namespace frontend
58 } // namespace lyx