]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QIndexDialog.C
The big renaming. Yowser.
[lyx.git] / src / frontends / qt2 / QIndexDialog.C
1 /**
2  * \file QIndexDialog.C
3  * Copyright 2001 the LyX Team
4  * Read the file COPYING
5  *
6  * \author John Levon <moz@compsoc.man.ac.uk>
7  */
8
9 #include "QIndexDialog.h"
10 #include "Dialogs.h"
11 #include "QIndex.h"
12
13 QIndexDialog::QIndexDialog(QIndex * form, QWidget * parent, const char * name, bool modal, WFlags fl)
14         : QIndexDialogBase(parent, name, modal, fl),
15         form_(form)
16 {
17 }
18
19  
20 QIndexDialog::~QIndexDialog()
21 {
22 }
23
24
25 void QIndexDialog::apply_adaptor()
26 {
27         form_->apply();
28         form_->close();
29         hide();
30 }
31
32
33 void QIndexDialog::close_adaptor()
34 {
35         form_->close();
36         hide();
37 }
38
39
40 void QIndexDialog::closeEvent(QCloseEvent *e)
41 {
42         form_->close();
43         e->accept();
44 }