]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/QChangesDialog.C
* redo some frame decoration icons and also make them consistent in size
[lyx.git] / src / frontends / qt4 / 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
15 #include "QChanges.h"
16
17 #include <QPushButton>
18 #include <QCloseEvent>
19
20
21 namespace lyx {
22 namespace frontend {
23
24 QChangesDialog::QChangesDialog(QChanges * form)
25         : form_(form)
26 {
27         setupUi(this);
28         connect(closePB, SIGNAL(clicked()),
29                 form, SLOT(slotClose()));
30         connect(nextPB, SIGNAL( clicked() ), 
31                 this, SLOT( nextPressed() ) );
32         connect(rejectPB, SIGNAL( clicked() ), 
33                 this, SLOT( rejectPressed() ) );
34         connect(acceptPB, SIGNAL( clicked() ), 
35                 this, SLOT( acceptPressed() ) );
36 }
37
38
39 void QChangesDialog::nextPressed()
40 {
41         form_->next();
42 }
43
44
45 void QChangesDialog::acceptPressed()
46 {
47         form_->accept();
48 }
49
50
51 void QChangesDialog::rejectPressed()
52 {
53         form_->reject();
54 }
55
56
57 void QChangesDialog::closeEvent(QCloseEvent *e)
58 {
59         form_->slotWMHide();
60         e->accept();
61 }
62
63 } // namespace frontend
64 } // namespace lyx
65
66 #include "QChangesDialog_moc.cpp"