]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QGraphicsDialog.C
fix typo that put too many include paths for most people
[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 <qwidget.h>
13 #include <qpushbutton.h>
14 #include <qcheckbox.h>
15
16 #include "LString.h"
17
18 #include "QGraphicsDialog.h"
19 #include "ControlGraphics.h"
20 #include "Dialogs.h"
21 #include "QGraphics.h"
22 #include "debug.h"
23
24 QGraphicsDialog::QGraphicsDialog(QGraphics * form)
25         : QGraphicsDialogBase(0, 0, false, 0),
26         form_(form)
27 {
28         connect(okPB, SIGNAL(clicked()),
29                 form, SLOT(slotOK()));
30         connect(applyPB, SIGNAL(clicked()),
31                 form, SLOT(slotApply()));
32         connect(closePB, SIGNAL(clicked()),
33                 form, SLOT(slotClose()));
34         connect(restorePB, SIGNAL(clicked()),
35                 form, SLOT(slotRestore()));
36 }
37
38
39 void QGraphicsDialog::change_adaptor()
40 {
41         form_->changed();
42 }
43
44
45 void QGraphicsDialog::closeEvent(QCloseEvent * e)
46 {
47         form_->slotWMHide();
48         e->accept();
49 }
50
51
52 void QGraphicsDialog::browse_clicked()
53 {
54         form_->browse();
55 }
56
57 void QGraphicsDialog::get_clicked()
58 {
59         form_->get();
60 }