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