]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QURLDialog.C
Lots and lots of little trivial bits.
[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 #ifdef __GNUG__
14 #pragma implementation
15 #endif
16
17 #include "QURL.h"
18 #include "QURLDialog.h"
19
20 #include <qpushbutton.h>
21 #include <qlineedit.h>
22  
23 QURLDialog::QURLDialog(QURL * form)
24         : QURLDialogBase(0, 0, false, 0),
25         form_(form)
26 {
27         connect(okPB, SIGNAL(clicked()),
28                 form_, SLOT(slotOK()));
29         connect(closePB, SIGNAL(clicked()),
30                 form_, SLOT(slotClose()));
31 }
32
33
34 QURLDialog::~QURLDialog()
35 {
36 }
37
38
39 void QURLDialog::show()
40 {
41         QURLDialogBase::show();
42         urlED->setFocus();
43 }
44
45  
46 void QURLDialog::changed_adaptor()
47 {
48         form_->changed();
49 }
50
51
52 void QURLDialog::closeEvent(QCloseEvent * e)
53 {
54         form_->slotWMHide();
55         e->accept();
56 }