2001-08-29 02:08:04 +00:00
|
|
|
/**
|
|
|
|
* \file QMinipageDialog.C
|
|
|
|
* Copyright 2001 the LyX Team
|
|
|
|
* Read the file COPYING
|
|
|
|
*
|
|
|
|
* \author John Levon <moz@compsoc.man.ac.uk>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <config.h>
|
|
|
|
#include <vector>
|
|
|
|
|
2002-06-19 03:38:44 +00:00
|
|
|
#include "ControlMinipage.h"
|
2002-03-21 21:21:28 +00:00
|
|
|
|
2001-08-29 02:08:04 +00:00
|
|
|
#include "QMinipage.h"
|
2002-06-19 03:38:44 +00:00
|
|
|
#include "QMinipageDialog.h"
|
2001-08-29 02:08:04 +00:00
|
|
|
|
2002-06-19 03:38:44 +00:00
|
|
|
#include <qpushbutton.h>
|
|
|
|
#include <qtextview.h>
|
|
|
|
#include "lengthcombo.h"
|
2001-08-29 02:08:04 +00:00
|
|
|
|
|
|
|
QMinipageDialog::QMinipageDialog(QMinipage * form)
|
|
|
|
: QMinipageDialogBase(0, 0, false, 0),
|
|
|
|
form_(form)
|
|
|
|
{
|
|
|
|
connect(restorePB, SIGNAL(clicked()),
|
|
|
|
form, SLOT(slotRestore()));
|
|
|
|
connect(okPB, SIGNAL(clicked()),
|
|
|
|
form, SLOT(slotOK()));
|
|
|
|
connect(applyPB, SIGNAL(clicked()),
|
|
|
|
form, SLOT(slotApply()));
|
|
|
|
connect(closePB, SIGNAL(clicked()),
|
|
|
|
form, SLOT(slotClose()));
|
|
|
|
}
|
|
|
|
|
2002-03-21 21:21:28 +00:00
|
|
|
|
2001-08-29 02:08:04 +00:00
|
|
|
void QMinipageDialog::closeEvent(QCloseEvent * e)
|
|
|
|
{
|
|
|
|
form_->slotWMHide();
|
|
|
|
e->accept();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void QMinipageDialog::change_adaptor()
|
|
|
|
{
|
|
|
|
form_->changed();
|
|
|
|
}
|