2 * \file QCharacterDialog.C
3 * Copyright 2001 the LyX Team
4 * See the file COPYING.
6 * \author Edwin Leuven, leuven@fee.uva.nl
9 #include "QCharacterDialog.h"
11 #include <qcombobox.h>
12 #include <qcheckbox.h>
13 #include <qpushbutton.h>
14 #include <qgroupbox.h>
16 QCharacterDialog::QCharacterDialog(QCharacter * form)
17 : QCharacterDialogBase(0, 0, false, 0),
20 connect(okPB, SIGNAL(clicked()),
21 form_, SLOT(slotOK()));
22 connect(applyPB, SIGNAL(clicked()),
23 form_, SLOT(slotApply()));
24 connect(closePB, SIGNAL(clicked()),
25 form_, SLOT(slotClose()));
29 void QCharacterDialog::change_adaptor()
33 if (!autoapplyCB->isChecked())
36 // to be really good here, we should set the combos to the values of
37 // the current text, and make it appear as "no change" if the values
38 // stay the same between applys. Might be difficult though wrt to a
41 familyCO->setCurrentItem(0);
42 seriesCO->setCurrentItem(0);
43 sizeCO->setCurrentItem(0);
44 shapeCO->setCurrentItem(0);
45 miscCO->setCurrentItem(0);
46 langCO->setCurrentItem(0);
47 colorCO->setCurrentItem(0);
51 void QCharacterDialog::closeEvent(QCloseEvent * e)