2 * \file QGraphicsDialog.C
3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS.
15 #include "ControlGraphics.h"
17 #include "qt_helpers.h"
19 #include <qpushbutton.h>
20 #include <qlineedit.h>
22 #include "lengthcombo.h"
24 #include "QGraphicsDialog.h"
25 #include "QGraphics.h"
29 QGraphicsDialog::QGraphicsDialog(QGraphics * form)
30 : QGraphicsDialogBase(0, 0, false, 0),
33 connect(okPB, SIGNAL(clicked()),
34 form, SLOT(slotOK()));
35 connect(applyPB, SIGNAL(clicked()),
36 form, SLOT(slotApply()));
37 connect(closePB, SIGNAL(clicked()),
38 form, SLOT(slotClose()));
39 connect(restorePB, SIGNAL(clicked()),
40 form, SLOT(slotRestore()));
44 void QGraphicsDialog::show()
46 QGraphicsDialogBase::show();
51 void QGraphicsDialog::change_adaptor()
57 void QGraphicsDialog::change_bb()
59 form_->controller().bbChanged = true;
60 lyxerr[Debug::GRAPHICS]
61 << "[controller().bb_Changed set to true]\n";
66 void QGraphicsDialog::change_WUnit()
68 bool useHeight = (widthUnit->currentItem() > 0);
69 height->setEnabled(useHeight);
70 heightUnit->setEnabled(useHeight);
75 void QGraphicsDialog::closeEvent(QCloseEvent * e)
82 void QGraphicsDialog::browse_clicked()
85 form_->controller().Browse(fromqstr(filename->text()));
86 filename->setText(toqstr(str));
91 void QGraphicsDialog::getBB_clicked()