]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QGraphicsDialog.C
Some stuff.
[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         lyxerr << "changed" << endl; 
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 }