644
644
ColorList::Iterator itc, endOfColorList;
645
645
ColorList* colorList = (docu != 0) ? (&docu->PageColors) : prefsManager->colorSetPtr();
646
colorComboText->clear();
647
colorComboText->addItem(CommonStrings::tr_NoneColor);
646
colorComboText->updateBox(*colorList, ColorCombo::fancyPixmaps);
648
647
if (prefsData->dPenText == CommonStrings::None)
649
colorComboText->setCurrentIndex(colorComboText->count()-1);
650
endOfColorList=colorList->end();
651
for (itc = colorList->begin(); itc != endOfColorList; ++itc)
653
colorComboText->insertFancyItem( itc.value(), docu, itc.key() );
654
if (itc.key() == prefsData->dPenText)
655
colorComboText->setCurrentIndex(colorComboText->count()-1);
648
colorComboText->setCurrentIndex(0);
649
else if((index = colorComboText->findText(prefsData->dPenText)) >= 0)
650
colorComboText->setCurrentIndex(index);
658
651
shadingText->setValue(prefsData->dTextPenShade);
660
colorComboStrokeText->clear();
661
colorComboStrokeText->addItem(CommonStrings::tr_NoneColor);
653
colorComboStrokeText->updateBox(*colorList, ColorCombo::fancyPixmaps);
662
654
if (prefsData->dStrokeText == CommonStrings::None)
663
colorComboStrokeText->setCurrentIndex(colorComboStrokeText->count()-1);
664
endOfColorList=colorList->end();
665
for (itc = colorList->begin(); itc != endOfColorList; ++itc)
667
colorComboStrokeText->insertFancyItem( itc.value(), docu, itc.key() );
668
if (itc.key() == prefsData->dStrokeText)
669
colorComboStrokeText->setCurrentIndex(colorComboStrokeText->count()-1);
655
colorComboStrokeText->setCurrentIndex(0);
656
else if((index = colorComboStrokeText->findText(prefsData->dStrokeText)) >= 0)
657
colorComboStrokeText->setCurrentIndex(index);
671
658
shadingTextStroke->setValue(prefsData->dTextStrokeShade);
673
colorComboTextBackground->clear();
674
colorComboTextBackground->addItem(CommonStrings::tr_NoneColor);
660
colorComboTextBackground->updateBox(*colorList, ColorCombo::fancyPixmaps);
675
661
if (prefsData->dTextBackGround == CommonStrings::None)
676
colorComboTextBackground->setCurrentIndex(colorComboTextBackground->count()-1);
677
endOfColorList=colorList->end();
678
for (itc = colorList->begin(); itc != endOfColorList; ++itc)
680
colorComboTextBackground->insertFancyItem( itc.value(), docu, itc.key() );
681
if (itc.key() == prefsData->dTextBackGround)
682
colorComboTextBackground->setCurrentIndex(colorComboTextBackground->count()-1);
662
colorComboTextBackground->setCurrentIndex(0);
663
else if((index = colorComboTextBackground->findText(prefsData->dTextBackGround)) >= 0)
664
colorComboTextBackground->setCurrentIndex(index);
684
665
shadingTextBack->setValue(prefsData->dTextBackGroundShade);
686
colorComboTextLine->clear();
687
colorComboTextLine->addItem(CommonStrings::tr_NoneColor);
667
colorComboTextLine->updateBox(*colorList, ColorCombo::fancyPixmaps);
688
668
if (prefsData->dTextLineColor == CommonStrings::None)
689
colorComboTextLine->setCurrentIndex(colorComboTextLine->count()-1);
690
endOfColorList=colorList->end();
691
for (itc = colorList->begin(); itc != endOfColorList; ++itc)
693
colorComboTextLine->insertFancyItem( itc.value(), docu, itc.key() );
694
if (itc.key() == prefsData->dTextLineColor)
695
colorComboTextLine->setCurrentIndex(colorComboTextLine->count()-1);
669
colorComboTextLine->setCurrentIndex(0);
670
else if((index = colorComboTextLine->findText(prefsData->dTextLineColor)) >= 0)
671
colorComboTextLine->setCurrentIndex(index);
697
672
shadingTextLine->setValue(prefsData->dTextLineShade);
699
674
tabFillCombo->clear();
730
705
columnsText->setValue(prefsData->dCols);
731
706
gapText->setValue(prefsData->dGap * unitRatio);
733
colorComboLineShape->clear();
734
colorComboLineShape->addItem(CommonStrings::tr_NoneColor);
708
colorComboLineShape->updateBox(*colorList, ColorCombo::fancyPixmaps);
735
709
if (prefsData->dPen == CommonStrings::None)
736
colorComboLineShape->setCurrentIndex(colorComboLineShape->count()-1);
737
endOfColorList=colorList->end();
738
for (itc = colorList->begin(); itc != endOfColorList; ++itc)
740
colorComboLineShape->insertFancyItem( itc.value(), docu, itc.key() );
741
if (itc.key() == prefsData->dPen)
742
colorComboLineShape->setCurrentIndex(colorComboLineShape->count()-1);
710
colorComboLineShape->setCurrentIndex(0);
711
else if((index = colorComboLineShape->findText(prefsData->dPen)) >= 0)
712
colorComboLineShape->setCurrentIndex(index);
744
713
shadingLineShape->setValue(prefsData->dShade2);
746
comboFillShape->clear();
747
comboFillShape->addItem(CommonStrings::tr_NoneColor);
715
comboFillShape->updateBox(*colorList, ColorCombo::fancyPixmaps);
748
716
if (prefsData->dBrush == CommonStrings::None)
749
comboFillShape->setCurrentIndex(comboFillShape->count()-1);
750
endOfColorList=colorList->end();
751
for (itc = colorList->begin(); itc != endOfColorList; ++itc)
753
comboFillShape->insertFancyItem( itc.value(), docu, itc.key() );
754
if (itc.key() == prefsData->dBrush)
755
comboFillShape->setCurrentIndex(comboFillShape->count()-1);
717
comboFillShape->setCurrentIndex(0);
718
else if((index = comboFillShape->findText(prefsData->dBrush)) >= 0)
719
comboFillShape->setCurrentIndex(index);
758
720
shadingFillShape->setValue(prefsData->dShade);
759
722
comboStyleShape->setCurrentIndex(static_cast<int>(prefsData->dLineArt) - 1);
760
723
lineWidthShape->setValue(prefsData->dWidth);
762
colorComboLine->clear();
763
colorComboLine->addItem(CommonStrings::tr_NoneColor);
725
colorComboLine->updateBox(*colorList, ColorCombo::fancyPixmaps);
764
726
if (prefsData->dPenLine == CommonStrings::None)
765
colorComboLine->setCurrentIndex(colorComboLine->count()-1);
766
endOfColorList=colorList->end();
767
for (itc = colorList->begin(); itc != endOfColorList; ++itc)
769
colorComboLine->insertFancyItem( itc.value(), docu, itc.key() );
770
if (itc.key() == prefsData->dPenLine)
771
colorComboLine->setCurrentIndex(colorComboLine->count()-1);
727
colorComboLine->setCurrentIndex(0);
728
else if((index = colorComboLine->findText(prefsData->dPenLine)) >= 0)
729
colorComboLine->setCurrentIndex(index);
774
730
shadingLine->setValue(prefsData->dShadeLine);
776
732
comboStyleLine->setCurrentIndex(static_cast<int>(prefsData->dLstyleLine) - 1);
794
750
buttonGroup5->setChecked( !prefsData->scaleType );
795
751
checkRatioImage->setChecked(prefsData->aspectRatio);
797
comboFillImage->clear();
798
comboFillImage->addItem(CommonStrings::tr_NoneColor);
753
comboFillImage->updateBox(*colorList, ColorCombo::fancyPixmaps);
799
754
if (prefsData->dBrushPict == CommonStrings::None)
800
comboFillImage->setCurrentIndex(comboFillImage->count()-1);
801
endOfColorList=colorList->end();
802
for (itc = colorList->begin(); itc != endOfColorList; ++itc)
804
comboFillImage->insertFancyItem( itc.value(), docu, itc.key() );
805
if (itc.key() == prefsData->dBrushPict)
806
comboFillImage->setCurrentIndex(comboFillImage->count()-1);
755
comboFillImage->setCurrentIndex(0);
756
else if((index = comboFillImage->findText(prefsData->dBrushPict)) >= 0)
757
comboFillImage->setCurrentIndex(index);
809
759
shadingFillImage->setValue( prefsData->shadePict );
810
760
embeddedPath->setChecked(prefsData->useEmbeddedPath);