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