]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QChangesDialog.C
Martin's changes to the Note inset.
[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 "ControlChanges.h"
14
15 #include <qpushbutton.h>
16
17 #include "QChangesDialog.h"
18 #include "QChanges.h"
19
20
21 QChangesDialog::QChangesDialog(QChanges * form)
22         : QChangesDialogBase(0, 0, false, 0),
23         form_(form)
24 {
25         connect(closePB, SIGNAL(clicked()),
26                 form, SLOT(slotClose()));
27 }
28
29
30 void QChangesDialog::nextPressed()
31 {
32         form_->next();
33 }
34
35
36 void QChangesDialog::acceptPressed()
37 {
38         form_->accept();
39 }
40
41
42 void QChangesDialog::rejectPressed()
43 {
44         form_->reject();
45 }
46
47
48 void QChangesDialog::closeEvent(QCloseEvent *e)
49 {
50         form_->slotWMHide();
51         e->accept();
52 }