2 * \file QCharacterDialog.C
3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
8 * Full author contact details are available in file CREDITS.
14 #include "QCharacterDialog.h"
16 #include <qcheckbox.h>
17 #include <qcombobox.h>
18 #include <qpushbutton.h>
21 QCharacterDialog::QCharacterDialog(QCharacter * form)
22 : QCharacterDialogBase(0, 0, false, 0),
25 connect(okPB, SIGNAL(clicked()),
26 form_, SLOT(slotOK()));
27 connect(applyPB, SIGNAL(clicked()),
28 form_, SLOT(slotApply()));
29 connect(closePB, SIGNAL(clicked()),
30 form_, SLOT(slotClose()));
34 void QCharacterDialog::change_adaptor()
38 if (!autoapplyCB->isChecked())
41 // to be really good here, we should set the combos to the values of
42 // the current text, and make it appear as "no change" if the values
43 // stay the same between applys. Might be difficult though wrt to a
46 familyCO->setCurrentItem(0);
47 seriesCO->setCurrentItem(0);
48 sizeCO->setCurrentItem(0);
49 shapeCO->setCurrentItem(0);
50 miscCO->setCurrentItem(0);
51 langCO->setCurrentItem(0);
52 colorCO->setCurrentItem(0);
56 void QCharacterDialog::closeEvent(QCloseEvent * e)