2001-08-28 03:35:17 +00:00
|
|
|
/**
|
|
|
|
* \file QGraphicsDialog.C
|
|
|
|
* Copyright 2001 the LyX Team
|
|
|
|
* Read the file COPYING
|
|
|
|
*
|
|
|
|
* \author John Levon <moz@compsoc.man.ac.uk>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <config.h>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
#include <qwidget.h>
|
|
|
|
#include <qpushbutton.h>
|
|
|
|
#include <qcheckbox.h>
|
|
|
|
|
2002-03-21 21:21:28 +00:00
|
|
|
#include "LString.h"
|
|
|
|
|
2001-08-28 03:35:17 +00:00
|
|
|
#include "QGraphicsDialog.h"
|
2002-03-21 21:21:28 +00:00
|
|
|
#include "ControlGraphics.h"
|
2001-08-28 03:35:17 +00:00
|
|
|
#include "Dialogs.h"
|
|
|
|
#include "QGraphics.h"
|
2002-03-21 21:21:28 +00:00
|
|
|
#include "debug.h"
|
2001-08-28 03:35:17 +00:00
|
|
|
|
|
|
|
QGraphicsDialog::QGraphicsDialog(QGraphics * form)
|
|
|
|
: QGraphicsDialogBase(0, 0, false, 0),
|
|
|
|
form_(form)
|
|
|
|
{
|
|
|
|
connect(okPB, SIGNAL(clicked()),
|
|
|
|
form, SLOT(slotOK()));
|
|
|
|
connect(applyPB, SIGNAL(clicked()),
|
2002-01-31 13:15:33 +00:00
|
|
|
form, SLOT(slotApply()));
|
2001-08-28 03:35:17 +00:00
|
|
|
connect(closePB, SIGNAL(clicked()),
|
|
|
|
form, SLOT(slotClose()));
|
2002-01-31 13:15:33 +00:00
|
|
|
connect(restorePB, SIGNAL(clicked()),
|
|
|
|
form, SLOT(slotRestore()));
|
2001-08-28 03:35:17 +00:00
|
|
|
}
|
|
|
|
|
2002-03-21 21:21:28 +00:00
|
|
|
|
2001-08-28 03:35:17 +00:00
|
|
|
void QGraphicsDialog::change_adaptor()
|
|
|
|
{
|
|
|
|
form_->changed();
|
|
|
|
}
|
|
|
|
|
2002-03-21 21:21:28 +00:00
|
|
|
|
2001-08-28 03:35:17 +00:00
|
|
|
void QGraphicsDialog::closeEvent(QCloseEvent * e)
|
|
|
|
{
|
|
|
|
form_->slotWMHide();
|
|
|
|
e->accept();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2002-01-31 13:15:33 +00:00
|
|
|
void QGraphicsDialog::browse_clicked()
|
2001-08-28 03:35:17 +00:00
|
|
|
{
|
|
|
|
form_->browse();
|
|
|
|
}
|
2002-01-31 13:15:33 +00:00
|
|
|
|
|
|
|
void QGraphicsDialog::get_clicked()
|
|
|
|
{
|
|
|
|
form_->get();
|
|
|
|
}
|