]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/FormUrlDialog.C
Fixed connections. There is still a bug somewhere.
[lyx.git] / src / frontends / qt2 / FormUrlDialog.C
1 #include "FormUrlDialog.h"
2 #include "Dialogs.h"
3 #include "FormUrl.h"
4
5 /* 
6  *  Constructs a FormUrlDialog which is a child of 'parent', with the 
7  *  name 'name' and widget flags set to 'f' 
8  *
9  *  The dialog will by default be modeless, unless you set 'modal' to
10  *  TRUE to construct a modal dialog.
11  */
12 FormUrlDialog::FormUrlDialog( FormUrl* _form, QWidget* parent,  const char* name, bool modal, WFlags fl )
13   : FormUrlDialogBase( parent, name, modal, fl ),
14     form( _form )
15 {
16 }
17
18 /*  
19  *  Destroys the object and frees any allocated resources
20  */
21 FormUrlDialog::~FormUrlDialog()
22 {
23     // no need to delete child widgets, Qt does it all for us
24 }
25
26 /* 
27  * public slot
28  */
29 void FormUrlDialog::apply_adaptor()
30 {
31   form->apply();
32   form->close();
33   hide();
34 }
35 /* 
36  * public slot
37  */
38 void FormUrlDialog::close_adaptor()
39 {
40   form->close();
41   hide();
42 }
43
44 void FormUrlDialog::closeEvent(QCloseEvent *e)
45 {
46   form->close();
47   e->accept();
48 }