]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/FormIndexDialog.C
implement getLabelList
[lyx.git] / src / frontends / qt2 / FormIndexDialog.C
1 #include "FormIndexDialog.h"
2 #include "Dialogs.h"
3 #include "FormIndex.h"
4
5 /* 
6  *  Constructs a FormIndexDialog 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 FormIndexDialog::FormIndexDialog( FormIndex* form_, QWidget* parent,  const char* name, bool modal, WFlags fl )
13   : FormIndexDialogBase( parent, name, modal, fl ),
14     form( form_ )
15 {
16 }
17
18 /*  
19  *  Destroys the object and frees any allocated resources
20  */
21 FormIndexDialog::~FormIndexDialog()
22 {
23     // no need to delete child widgets, Qt does it all for us
24 }
25
26
27 void FormIndexDialog::apply_adaptor()
28 {
29   form->apply();
30   form->close();
31   hide();
32 }
33
34
35 void FormIndexDialog::close_adaptor()
36 {
37   form->close();
38   hide();
39 }
40
41
42 void FormIndexDialog::closeEvent(QCloseEvent *e)
43 {
44   form->close();
45   e->accept();
46 }