]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QGraphicsDialog.C
The initial merge of the Qt frontend, and the necessary compile fixes.
[lyx.git] / src / frontends / qt2 / QGraphicsDialog.C
1 /**
2  * \file QGraphicsDialog.C
3  * Copyright 2001 the LyX Team
4  * Read the file COPYING
5  *
6  * \author John Levon <moz@compsoc.man.ac.uk>
7  */
8
9 #include <config.h>
10 #include <vector>
11
12 #include "ControlGraphics.h"
13 #include "debug.h"
14 #include "LString.h"
15
16 #include <qwidget.h>
17 #include <qpushbutton.h>
18 #include <qcheckbox.h>
19
20 #include "QGraphicsDialog.h"
21 #include "QGraphics.h"
22
23 QGraphicsDialog::QGraphicsDialog(QGraphics * form)
24         : QGraphicsDialogBase(0, 0, false, 0),
25         form_(form)
26 {
27         connect(okPB, SIGNAL(clicked()),
28                 form, SLOT(slotOK()));
29         connect(applyPB, SIGNAL(clicked()),
30                 form, SLOT(slotApply()));
31         connect(closePB, SIGNAL(clicked()),
32                 form, SLOT(slotClose()));
33         connect(restorePB, SIGNAL(clicked()),
34                 form, SLOT(slotRestore()));
35 }
36
37
38 void QGraphicsDialog::change_adaptor()
39 {
40         form_->changed();
41 }
42
43
44 void QGraphicsDialog::closeEvent(QCloseEvent * e)
45 {
46         form_->slotWMHide();
47         e->accept();
48 }
49
50
51 void QGraphicsDialog::browse_clicked()
52 {
53         form_->browse();
54 }
55
56 void QGraphicsDialog::get_clicked()
57 {
58         form_->get();
59 }