mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-24 10:40:48 +00:00
bb581048a8
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3464 a592a061-630c-0410-9148-cb99ea01b6c8
62 lines
1.0 KiB
C
62 lines
1.0 KiB
C
/**
|
|
* \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>
|
|
|
|
#include "LString.h"
|
|
|
|
#include "QGraphicsDialog.h"
|
|
#include "ControlGraphics.h"
|
|
#include "Dialogs.h"
|
|
#include "QGraphics.h"
|
|
#include "debug.h"
|
|
|
|
QGraphicsDialog::QGraphicsDialog(QGraphics * form)
|
|
: QGraphicsDialogBase(0, 0, false, 0),
|
|
form_(form)
|
|
{
|
|
connect(okPB, SIGNAL(clicked()),
|
|
form, SLOT(slotOK()));
|
|
connect(applyPB, SIGNAL(clicked()),
|
|
form, SLOT(slotApply()));
|
|
connect(closePB, SIGNAL(clicked()),
|
|
form, SLOT(slotClose()));
|
|
connect(restorePB, SIGNAL(clicked()),
|
|
form, SLOT(slotRestore()));
|
|
}
|
|
|
|
|
|
void QGraphicsDialog::change_adaptor()
|
|
{
|
|
form_->changed();
|
|
}
|
|
|
|
|
|
void QGraphicsDialog::closeEvent(QCloseEvent * e)
|
|
{
|
|
form_->slotWMHide();
|
|
e->accept();
|
|
}
|
|
|
|
|
|
void QGraphicsDialog::browse_clicked()
|
|
{
|
|
form_->browse();
|
|
}
|
|
|
|
void QGraphicsDialog::get_clicked()
|
|
{
|
|
form_->get();
|
|
}
|
|
|