void GPrefsMgr::SetTabCharWidth ( const JSize size ) { std::ostringstream data; data << size; SetData(kGTabCharWidthID, data); Broadcast(FontChanged()); }
void GPrefsMgr::SetDefaultMonoFont ( const JCharacter* fontName ) { std::ostringstream data; data << JString(fontName); SetData(kGDefaultMonoFontID, data); Broadcast(FontChanged()); }
void JXChooseMonoFont::Receive ( JBroadcaster* sender, const Message& message ) { if (sender == itsFontMenu && message.Is(JXXFontMenu::kNameChanged)) { StopListening(itsSizeMenu); UpdateMenus(kJTrue); ListenTo(itsSizeMenu); Broadcast(FontChanged()); } else if (sender == itsSizeMenu && message.Is(JXFontSizeMenu::kSizeChanged)) { UpdateMenus(kJFalse); Broadcast(FontChanged()); } else { JXWidgetSet::Receive(sender, message); } }
void nuiFontBrowser::OnStyleChanged(const nuiEvent& rEvent) { mFontSize = mpSizeSlider->GetRange().GetValue(); nglString str; str.SetCUInt(mFontSize); mpSizeLabel->SetText(str); nuiWidget* pFontLabel = mpFontList->GetSelected(); nuiWidget* pStyleLabel = mpStyleList->GetSelected(); if (pFontLabel && pStyleLabel) { const nglString& rFontName(pFontLabel->GetProperty(_T("FontName"))); const nglString& rFontStyle(pStyleLabel->GetProperty(_T("FontStyle"))); SetFont(rFontName, rFontStyle, mFontSize); FontChanged(); } }
void RelationalField::setFont(QFont arg) { if (m_Font != arg) { m_Font = arg; emit FontChanged(arg); } }