ParagraphDecorations::ParagraphDecorations(QWidget *parent) : QWidget(parent) { widget.setupUi(this); connect(widget.backgroundColor, SIGNAL(changed(QColor)), this, SLOT(slotBackgroundColorChanged())); connect(widget.resetBackgroundColor, SIGNAL(clicked()), this, SLOT(clearBackgroundColor())); }
void kpTool::slotBackgroundColorChangedInternal (const kpColor &color) { if (m_ignoreColorSignals > 0) { #if DEBUG_KP_TOOL && 1 kdDebug () << "kpTool::slotBackgroundColorChangedInternal() ignoreColorSignals=" << m_ignoreColorSignals << endl; #endif m_ignoreColorSignals--; return; } slotBackgroundColorChanged (color); }
CharacterGeneral::CharacterGeneral(QWidget *parent, bool uniqueFormat) : QWidget(parent), m_blockSignals(false), m_nameVisible(true), m_style(0) { widget.setupUi(this); m_layoutTab = new FontLayoutTab(true, uniqueFormat, this); m_characterDecorations = new FontDecorations(uniqueFormat, this); connect(m_characterDecorations, SIGNAL(backgroundColorChanged(QColor)), this, SLOT(slotBackgroundColorChanged(QColor))); connect(m_characterDecorations, SIGNAL(textColorChanged(QColor)), this, SLOT(slotTextColorChanged(QColor))); m_characterHighlighting = new CharacterHighlighting(uniqueFormat, this); connect(m_characterHighlighting, SIGNAL(underlineChanged(KCharacterStyle::LineType, KCharacterStyle::LineStyle, QColor)), this, SLOT(slotUnderlineChanged(KCharacterStyle::LineType, KCharacterStyle::LineStyle, QColor))); connect(m_characterHighlighting, SIGNAL(strikethroughChanged(KCharacterStyle::LineType, KCharacterStyle::LineStyle, QColor)), this, SLOT(slotStrikethroughChanged(KCharacterStyle::LineType, KCharacterStyle::LineStyle, QColor))); connect(m_characterHighlighting, SIGNAL(capitalizationChanged(QFont::Capitalization)), this, SLOT(slotCapitalizationChanged(QFont::Capitalization))); m_fontTab = new FontTab(uniqueFormat, this); connect(m_fontTab, SIGNAL(fontChanged(const QFont &)), this, SLOT(slotFontSelected(const QFont &))); m_languageTab = new LanguageTab(uniqueFormat, this); widget.tabs->addTab(m_fontTab, i18n("Font")); widget.tabs->addTab(m_characterDecorations, i18n("Decorations")); widget.tabs->addTab(m_characterHighlighting, i18n("Highlighting")); widget.tabs->addTab(m_layoutTab, i18n("Layout")); //widget.tabs->addTab(m_languageTab, i18n("Language")); m_languageTab->setVisible(false); connect(widget.name, SIGNAL(textChanged(const QString &)), this, SIGNAL(nameChanged(const QString&))); connect(widget.name, SIGNAL(textChanged(const QString &)), this, SLOT(setName(const QString&))); }