]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QChangesDialog.C
some tabular fixes for the problems reported by Helge
[lyx.git] / src / frontends / qt2 / QChangesDialog.C
1 /**
2  * \file QChangesDialog.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 #include "QChangesDialog.h"
14 #include "QChanges.h"
15
16 #include <qpushbutton.h>
17
18
19 namespace lyx {
20 namespace frontend {
21
22 QChangesDialog::QChangesDialog(QChanges * form)
23         : QChangesDialogBase(0, 0, false, 0),
24         form_(form)
25 {
26         connect(closePB, SIGNAL(clicked()),
27                 form, SLOT(slotClose()));
28 }
29
30
31 void QChangesDialog::nextPressed()
32 {
33         form_->next();
34 }
35
36
37 void QChangesDialog::acceptPressed()
38 {
39         form_->accept();
40 }
41
42
43 void QChangesDialog::rejectPressed()
44 {
45         form_->reject();
46 }
47
48
49 void QChangesDialog::closeEvent(QCloseEvent *e)
50 {
51         form_->slotWMHide();
52         e->accept();
53 }
54
55 } // namespace frontend
56 } // namespace lyx