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 #pragma implementation
17 #include "QCharacterDialog.h"
19 #include <qcombobox.h>
20 #include <qcheckbox.h>
21 #include <qpushbutton.h>
22 #include <qgroupbox.h>
24 QCharacterDialog::QCharacterDialog(QCharacter * form)
25 : QCharacterDialogBase(0, 0, false, 0),
28 connect(okPB, SIGNAL(clicked()),
29 form_, SLOT(slotOK()));
30 connect(applyPB, SIGNAL(clicked()),
31 form_, SLOT(slotApply()));
32 connect(closePB, SIGNAL(clicked()),
33 form_, SLOT(slotClose()));
37 void QCharacterDialog::change_adaptor()
41 if (!autoapplyCB->isChecked())
44 // to be really good here, we should set the combos to the values of
45 // the current text, and make it appear as "no change" if the values
46 // stay the same between applys. Might be difficult though wrt to a
49 familyCO->setCurrentItem(0);
50 seriesCO->setCurrentItem(0);
51 sizeCO->setCurrentItem(0);
52 shapeCO->setCurrentItem(0);
53 miscCO->setCurrentItem(0);
54 langCO->setCurrentItem(0);
55 colorCO->setCurrentItem(0);
59 void QCharacterDialog::closeEvent(QCloseEvent * e)