mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-06 00:10:59 +00:00
get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14740 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
cb05434d79
commit
766be8d03c
@ -50,32 +50,32 @@ void QCharacter::build_dialog()
|
|||||||
|
|
||||||
for (vector<FamilyPair>::const_iterator cit = family.begin();
|
for (vector<FamilyPair>::const_iterator cit = family.begin();
|
||||||
cit != family.end(); ++cit) {
|
cit != family.end(); ++cit) {
|
||||||
dialog_->familyCO->insertItem(toqstr(cit->first), -1);
|
dialog_->familyCO->addItem(toqstr(cit->first));
|
||||||
}
|
}
|
||||||
|
|
||||||
for (vector<SeriesPair>::const_iterator cit = series.begin();
|
for (vector<SeriesPair>::const_iterator cit = series.begin();
|
||||||
cit != series.end(); ++cit) {
|
cit != series.end(); ++cit) {
|
||||||
dialog_->seriesCO->insertItem(toqstr(cit->first), -1);
|
dialog_->seriesCO->addItem(toqstr(cit->first));
|
||||||
}
|
}
|
||||||
for (vector<ShapePair>::const_iterator cit = shape.begin();
|
for (vector<ShapePair>::const_iterator cit = shape.begin();
|
||||||
cit != shape.end(); ++cit) {
|
cit != shape.end(); ++cit) {
|
||||||
dialog_->shapeCO->insertItem(toqstr(cit->first), -1);
|
dialog_->shapeCO->addItem(toqstr(cit->first));
|
||||||
}
|
}
|
||||||
for (vector<SizePair>::const_iterator cit = size.begin();
|
for (vector<SizePair>::const_iterator cit = size.begin();
|
||||||
cit != size.end(); ++cit) {
|
cit != size.end(); ++cit) {
|
||||||
dialog_->sizeCO->insertItem(toqstr(cit->first), -1);
|
dialog_->sizeCO->addItem(toqstr(cit->first));
|
||||||
}
|
}
|
||||||
for (vector<BarPair>::const_iterator cit = bar.begin();
|
for (vector<BarPair>::const_iterator cit = bar.begin();
|
||||||
cit != bar.end(); ++cit) {
|
cit != bar.end(); ++cit) {
|
||||||
dialog_->miscCO->insertItem(toqstr(cit->first), -1);
|
dialog_->miscCO->addItem(toqstr(cit->first));
|
||||||
}
|
}
|
||||||
for (vector<ColorPair>::const_iterator cit = color.begin();
|
for (vector<ColorPair>::const_iterator cit = color.begin();
|
||||||
cit != color.end(); ++cit) {
|
cit != color.end(); ++cit) {
|
||||||
dialog_->colorCO->insertItem(toqstr(cit->first), -1);
|
dialog_->colorCO->addItem(toqstr(cit->first));
|
||||||
}
|
}
|
||||||
for (vector<LanguagePair>::const_iterator cit = language.begin();
|
for (vector<LanguagePair>::const_iterator cit = language.begin();
|
||||||
cit != language.end(); ++cit) {
|
cit != language.end(); ++cit) {
|
||||||
dialog_->langCO->insertItem(toqstr(cit->first), -1);
|
dialog_->langCO->addItem(toqstr(cit->first));
|
||||||
}
|
}
|
||||||
|
|
||||||
bcview().setOK(dialog_->okPB);
|
bcview().setOK(dialog_->okPB);
|
||||||
@ -116,15 +116,15 @@ void QCharacter::update_contents()
|
|||||||
{
|
{
|
||||||
ControlCharacter const & ctrl = controller();
|
ControlCharacter const & ctrl = controller();
|
||||||
|
|
||||||
dialog_->familyCO->setCurrentItem(findPos2nd(family,
|
dialog_->familyCO->setCurrentIndex(findPos2nd(family,
|
||||||
ctrl.getFamily()));
|
ctrl.getFamily()));
|
||||||
dialog_->seriesCO->setCurrentItem(findPos2nd(series,
|
dialog_->seriesCO->setCurrentIndex(findPos2nd(series,
|
||||||
ctrl.getSeries()));
|
ctrl.getSeries()));
|
||||||
dialog_->shapeCO->setCurrentItem(findPos2nd(shape, ctrl.getShape()));
|
dialog_->shapeCO->setCurrentIndex(findPos2nd(shape, ctrl.getShape()));
|
||||||
dialog_->sizeCO->setCurrentItem(findPos2nd(size, ctrl.getSize()));
|
dialog_->sizeCO->setCurrentIndex(findPos2nd(size, ctrl.getSize()));
|
||||||
dialog_->miscCO->setCurrentItem(findPos2nd(bar, ctrl.getBar()));
|
dialog_->miscCO->setCurrentIndex(findPos2nd(bar, ctrl.getBar()));
|
||||||
dialog_->colorCO->setCurrentItem(findPos2nd(color, ctrl.getColor()));
|
dialog_->colorCO->setCurrentIndex(findPos2nd(color, ctrl.getColor()));
|
||||||
dialog_->langCO->setCurrentItem(findPos2nd(language,
|
dialog_->langCO->setCurrentIndex(findPos2nd(language,
|
||||||
ctrl.getLanguage()));
|
ctrl.getLanguage()));
|
||||||
|
|
||||||
dialog_->toggleallCB->setChecked(ctrl.getToggleAll());
|
dialog_->toggleallCB->setChecked(ctrl.getToggleAll());
|
||||||
@ -135,13 +135,13 @@ void QCharacter::apply()
|
|||||||
{
|
{
|
||||||
ControlCharacter & ctrl = controller();
|
ControlCharacter & ctrl = controller();
|
||||||
|
|
||||||
ctrl.setFamily(family[dialog_->familyCO->currentItem()].second);
|
ctrl.setFamily(family[dialog_->familyCO->currentIndex()].second);
|
||||||
ctrl.setSeries(series[dialog_->seriesCO->currentItem()].second);
|
ctrl.setSeries(series[dialog_->seriesCO->currentIndex()].second);
|
||||||
ctrl.setShape(shape[dialog_->shapeCO->currentItem()].second);
|
ctrl.setShape(shape[dialog_->shapeCO->currentIndex()].second);
|
||||||
ctrl.setSize(size[dialog_->sizeCO->currentItem()].second);
|
ctrl.setSize(size[dialog_->sizeCO->currentIndex()].second);
|
||||||
ctrl.setBar(bar[dialog_->miscCO->currentItem()].second);
|
ctrl.setBar(bar[dialog_->miscCO->currentIndex()].second);
|
||||||
ctrl.setColor(color[dialog_->colorCO->currentItem()].second);
|
ctrl.setColor(color[dialog_->colorCO->currentIndex()].second);
|
||||||
ctrl.setLanguage(language[dialog_->langCO->currentItem()].second);
|
ctrl.setLanguage(language[dialog_->langCO->currentIndex()].second);
|
||||||
|
|
||||||
ctrl.setToggleAll(dialog_->toggleallCB->isChecked());
|
ctrl.setToggleAll(dialog_->toggleallCB->isChecked());
|
||||||
}
|
}
|
||||||
|
@ -54,13 +54,13 @@ void QCharacterDialog::change_adaptor()
|
|||||||
// stay the same between applys. Might be difficult though wrt to a
|
// stay the same between applys. Might be difficult though wrt to a
|
||||||
// moved cursor - jbl
|
// moved cursor - jbl
|
||||||
form_->slotApply();
|
form_->slotApply();
|
||||||
familyCO->setCurrentItem(0);
|
familyCO->setCurrentIndex(0);
|
||||||
seriesCO->setCurrentItem(0);
|
seriesCO->setCurrentIndex(0);
|
||||||
sizeCO->setCurrentItem(0);
|
sizeCO->setCurrentIndex(0);
|
||||||
shapeCO->setCurrentItem(0);
|
shapeCO->setCurrentIndex(0);
|
||||||
miscCO->setCurrentItem(0);
|
miscCO->setCurrentIndex(0);
|
||||||
langCO->setCurrentItem(0);
|
langCO->setCurrentIndex(0);
|
||||||
colorCO->setCurrentItem(0);
|
colorCO->setCurrentIndex(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user