]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QIndexDialog.C
some small updates
[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)
14         : QIndexDialogBase(0, 0, false, 0),
15         form_(form)
16 {
17 }
18
19  
20 QIndexDialog::~QIndexDialog()
21 {
22 }
23
24
25 void QIndexDialog::ok_adaptor()
26 {
27         form_->slotOK();
28         hide();
29 }
30
31
32 void QIndexDialog::close_adaptor()
33 {
34         form_->slotCancel();
35         hide();
36 }
37
38
39 void QIndexDialog::change_adaptor()
40 {
41         form_->changed();
42 }
43
44  
45 void QIndexDialog::closeEvent(QCloseEvent *e)
46 {
47         form_->slotWMHide();
48         e->accept();
49 }