]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QMinipageDialog.C
Lots and lots of little trivial bits.
[lyx.git] / src / frontends / qt2 / QMinipageDialog.C
1 /**
2  * \file QMinipageDialog.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 #ifdef __GNUG__
14 #pragma implementation
15 #endif
16
17 #include <vector>
18
19 #include "ControlMinipage.h"
20
21 #include "QMinipage.h"
22 #include "QMinipageDialog.h"
23
24 #include <qpushbutton.h>
25 #include <qtextview.h>
26 #include "lengthcombo.h"
27
28 QMinipageDialog::QMinipageDialog(QMinipage * form)
29         : QMinipageDialogBase(0, 0, false, 0),
30         form_(form)
31 {
32         connect(restorePB, SIGNAL(clicked()),
33                 form, SLOT(slotRestore()));
34         connect(okPB, SIGNAL(clicked()),
35                 form, SLOT(slotOK()));
36         connect(applyPB, SIGNAL(clicked()),
37                 form, SLOT(slotApply()));
38         connect(closePB, SIGNAL(clicked()),
39                 form, SLOT(slotClose()));
40 }
41
42
43 void QMinipageDialog::closeEvent(QCloseEvent * e)
44 {
45         form_->slotWMHide();
46         e->accept();
47 }
48
49
50 void QMinipageDialog::change_adaptor()
51 {
52         form_->changed();
53 }