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"
30 QGraphicsDialog::QGraphicsDialog(QGraphics * form)
31 : QGraphicsDialogBase(0, 0, false, 0),
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 connect(restorePB, SIGNAL(clicked()),
41 form, SLOT(slotRestore()));
45 void QGraphicsDialog::show()
47 QGraphicsDialogBase::show();
52 void QGraphicsDialog::change_adaptor()
58 void QGraphicsDialog::change_bb()
60 form_->controller().bbChanged = true;
61 lyxerr[Debug::GRAPHICS]
62 << "[controller().bb_Changed set to true]\n";
67 void QGraphicsDialog::change_WUnit()
69 bool useHeight = (widthUnit->currentItem() > 0);
70 height->setEnabled(useHeight);
71 heightUnit->setEnabled(useHeight);
76 void QGraphicsDialog::closeEvent(QCloseEvent * e)
83 void QGraphicsDialog::browse_clicked()
86 form_->controller().browse(fromqstr(filename->text()));
87 filename->setText(toqstr(str));
92 void QGraphicsDialog::getBB_clicked()