void OptionDlg::loadSettings() { if (!m_cfg) { m_cfg = g_cfg->copy(); m_loading = true; updateExFont(false); updateFontFace(); updateExColor(false); updateColorFace(); m_wRotation->setValue(m_cfg->getInt(ACFG_Rotation)); m_wLineMargin->setValue(m_cfg->getInt(ACFG_LineMargin)); m_wMargin->setValue(m_cfg->getInt(ACFG_Margin)); m_wShowBar->setChecked(m_cfg->getBool(ACFG_BarVisible)); m_wBarHeight->setValue(m_cfg->getInt(ACFG_BarHeight)); m_wScrollHeight->setValue(m_cfg->getInt(ACFG_ScrollHeight)); m_wScrollDelay->setValue(m_cfg->getInt(ACFG_ScrollDelay)); m_wScalingMethod->setCurrentItem(m_cfg->getInt(ACFG_ScalingMethod)); m_wScaleFactor->setValue(m_cfg->getInt(ACFG_ScaleFactor)); m_wScaleUp->setChecked(m_cfg->getBool(ACFG_ScaleUp)); updateScaleEx(); m_wSlicingMethod->setCurrentItem(m_cfg->getInt(ACFG_SlicingMethod)); m_wHSlices->setValue(m_cfg->getInt(ACFG_HSlicing)); m_wVSlices->setValue(m_cfg->getInt(ACFG_VSlicing)); updateSlicingEx(); m_wScrollMethod->setCurrentItem(m_cfg->getInt(ACFG_ScrollPolicy)); m_wPageMethod->setCurrentItem(m_cfg->getInt(ACFG_PagingPolicy)); m_loading = false; } }
void OptionDlg::changeFont() { m_loading = true; updateExFont(false); updateFontFace(); m_loading = false; }
/* TextStylePrefsPanel::onFontChanged * Called when the font chooser font is changed *******************************************************************/ void TextStylePrefsPanel::onFontChanged(wxFontPickerEvent& e) { // Update relevant style properties updateFontFace(); updateFontSize(); updateFontBold(); updateFontItalic(); updateFontUnderlined(); updatePreview(); }
/* TextStylePrefsPanel::onCBOverrideFontFace * Called when the 'Override' font face checkbox is changed *******************************************************************/ void TextStylePrefsPanel::onCBOverrideFontFace(wxCommandEvent& e) { updateFontFace(); updatePreview(); }