|
|
|
@ -77,7 +77,7 @@ void kpMainWindow::setupTextToolBarActions ()
|
|
|
|
|
// private
|
|
|
|
|
void kpMainWindow::readAndApplyTextSettings ()
|
|
|
|
|
{
|
|
|
|
|
TDEConfigGroupSaver cfgGroupSaver (kapp->config (), kpSettingsGroupText);
|
|
|
|
|
TDEConfigGroupSaver cfgGroupSaver (tdeApp->config (), kpSettingsGroupText);
|
|
|
|
|
TDEConfigBase *cfg = cfgGroupSaver.config ();
|
|
|
|
|
|
|
|
|
|
m_actionTextFontFamily->setFont (cfg->readEntry (kpSettingFontFamily, TQString::fromLatin1 ("Times")));
|
|
|
|
@ -141,7 +141,7 @@ void kpMainWindow::slotTextFontFamilyChanged ()
|
|
|
|
|
if (m_mainView)
|
|
|
|
|
m_mainView->setFocus ();
|
|
|
|
|
|
|
|
|
|
TDEConfigGroupSaver cfgGroupSaver (kapp->config (), kpSettingsGroupText);
|
|
|
|
|
TDEConfigGroupSaver cfgGroupSaver (tdeApp->config (), kpSettingsGroupText);
|
|
|
|
|
TDEConfigBase *cfg = cfgGroupSaver.config ();
|
|
|
|
|
cfg->writeEntry (kpSettingFontFamily, m_actionTextFontFamily->font ());
|
|
|
|
|
cfg->sync ();
|
|
|
|
@ -174,7 +174,7 @@ void kpMainWindow::slotTextFontSizeChanged ()
|
|
|
|
|
if (m_mainView)
|
|
|
|
|
m_mainView->setFocus ();
|
|
|
|
|
|
|
|
|
|
TDEConfigGroupSaver cfgGroupSaver (kapp->config (), kpSettingsGroupText);
|
|
|
|
|
TDEConfigGroupSaver cfgGroupSaver (tdeApp->config (), kpSettingsGroupText);
|
|
|
|
|
TDEConfigBase *cfg = cfgGroupSaver.config ();
|
|
|
|
|
cfg->writeEntry (kpSettingFontSize, m_actionTextFontSize->fontSize ());
|
|
|
|
|
cfg->sync ();
|
|
|
|
@ -199,7 +199,7 @@ void kpMainWindow::slotTextBoldChanged ()
|
|
|
|
|
if (m_toolText && m_toolText->hasBegun ())
|
|
|
|
|
m_toolText->slotBoldChanged (m_actionTextBold->isChecked ());
|
|
|
|
|
|
|
|
|
|
TDEConfigGroupSaver cfgGroupSaver (kapp->config (), kpSettingsGroupText);
|
|
|
|
|
TDEConfigGroupSaver cfgGroupSaver (tdeApp->config (), kpSettingsGroupText);
|
|
|
|
|
TDEConfigBase *cfg = cfgGroupSaver.config ();
|
|
|
|
|
cfg->writeEntry (kpSettingBold, m_actionTextBold->isChecked ());
|
|
|
|
|
cfg->sync ();
|
|
|
|
@ -222,7 +222,7 @@ void kpMainWindow::slotTextItalicChanged ()
|
|
|
|
|
if (m_toolText && m_toolText->hasBegun ())
|
|
|
|
|
m_toolText->slotItalicChanged (m_actionTextItalic->isChecked ());
|
|
|
|
|
|
|
|
|
|
TDEConfigGroupSaver cfgGroupSaver (kapp->config (), kpSettingsGroupText);
|
|
|
|
|
TDEConfigGroupSaver cfgGroupSaver (tdeApp->config (), kpSettingsGroupText);
|
|
|
|
|
TDEConfigBase *cfg = cfgGroupSaver.config ();
|
|
|
|
|
cfg->writeEntry (kpSettingItalic, m_actionTextItalic->isChecked ());
|
|
|
|
|
cfg->sync ();
|
|
|
|
@ -245,7 +245,7 @@ void kpMainWindow::slotTextUnderlineChanged ()
|
|
|
|
|
if (m_toolText && m_toolText->hasBegun ())
|
|
|
|
|
m_toolText->slotUnderlineChanged (m_actionTextUnderline->isChecked ());
|
|
|
|
|
|
|
|
|
|
TDEConfigGroupSaver cfgGroupSaver (kapp->config (), kpSettingsGroupText);
|
|
|
|
|
TDEConfigGroupSaver cfgGroupSaver (tdeApp->config (), kpSettingsGroupText);
|
|
|
|
|
TDEConfigBase *cfg = cfgGroupSaver.config ();
|
|
|
|
|
cfg->writeEntry (kpSettingUnderline, m_actionTextUnderline->isChecked ());
|
|
|
|
|
cfg->sync ();
|
|
|
|
@ -268,7 +268,7 @@ void kpMainWindow::slotTextStrikeThruChanged ()
|
|
|
|
|
if (m_toolText && m_toolText->hasBegun ())
|
|
|
|
|
m_toolText->slotStrikeThruChanged (m_actionTextStrikeThru->isChecked ());
|
|
|
|
|
|
|
|
|
|
TDEConfigGroupSaver cfgGroupSaver (kapp->config (), kpSettingsGroupText);
|
|
|
|
|
TDEConfigGroupSaver cfgGroupSaver (tdeApp->config (), kpSettingsGroupText);
|
|
|
|
|
TDEConfigBase *cfg = cfgGroupSaver.config ();
|
|
|
|
|
cfg->writeEntry (kpSettingStrikeThru, m_actionTextStrikeThru->isChecked ());
|
|
|
|
|
cfg->sync ();
|
|
|
|
|