mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 12:32:26 +00:00
* move the Pixmap Cache check box where it belongs: screen fonts
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22677 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
ce56adcf1e
commit
2d830ab23b
@ -437,6 +437,8 @@ PrefScreenFonts::PrefScreenFonts(GuiPreferences * form, QWidget * parent)
|
|||||||
this, SIGNAL(changed()));
|
this, SIGNAL(changed()));
|
||||||
connect(screenHugerED, SIGNAL(textChanged(QString)),
|
connect(screenHugerED, SIGNAL(textChanged(QString)),
|
||||||
this, SIGNAL(changed()));
|
this, SIGNAL(changed()));
|
||||||
|
connect(pixmapCacheCB, SIGNAL(toggled(bool)),
|
||||||
|
this, SIGNAL(changed()));
|
||||||
|
|
||||||
screenTinyED->setValidator(new QDoubleValidator(screenTinyED));
|
screenTinyED->setValidator(new QDoubleValidator(screenTinyED));
|
||||||
screenSmallestED->setValidator(new QDoubleValidator(screenSmallestED));
|
screenSmallestED->setValidator(new QDoubleValidator(screenSmallestED));
|
||||||
@ -474,6 +476,7 @@ void PrefScreenFonts::apply(LyXRC & rc) const
|
|||||||
rc.font_sizes[FONT_SIZE_LARGEST] = fromqstr(screenLargestED->text());
|
rc.font_sizes[FONT_SIZE_LARGEST] = fromqstr(screenLargestED->text());
|
||||||
rc.font_sizes[FONT_SIZE_HUGE] = fromqstr(screenHugeED->text());
|
rc.font_sizes[FONT_SIZE_HUGE] = fromqstr(screenHugeED->text());
|
||||||
rc.font_sizes[FONT_SIZE_HUGER] = fromqstr(screenHugerED->text());
|
rc.font_sizes[FONT_SIZE_HUGER] = fromqstr(screenHugerED->text());
|
||||||
|
rc.use_pixmap_cache = pixmapCacheCB->isChecked();
|
||||||
|
|
||||||
if (rc.font_sizes != oldrc.font_sizes
|
if (rc.font_sizes != oldrc.font_sizes
|
||||||
|| rc.roman_font_name != oldrc.roman_font_name
|
|| rc.roman_font_name != oldrc.roman_font_name
|
||||||
@ -515,6 +518,12 @@ void PrefScreenFonts::update(LyXRC const & rc)
|
|||||||
screenLargestED->setText(toqstr(rc.font_sizes[FONT_SIZE_LARGEST]));
|
screenLargestED->setText(toqstr(rc.font_sizes[FONT_SIZE_LARGEST]));
|
||||||
screenHugeED->setText(toqstr(rc.font_sizes[FONT_SIZE_HUGE]));
|
screenHugeED->setText(toqstr(rc.font_sizes[FONT_SIZE_HUGE]));
|
||||||
screenHugerED->setText(toqstr(rc.font_sizes[FONT_SIZE_HUGER]));
|
screenHugerED->setText(toqstr(rc.font_sizes[FONT_SIZE_HUGER]));
|
||||||
|
|
||||||
|
pixmapCacheCB->setChecked(rc.use_pixmap_cache);
|
||||||
|
#if defined(Q_WS_X11)
|
||||||
|
pixmapCacheGB->setEnabled(false);
|
||||||
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1631,8 +1640,6 @@ PrefUserInterface::PrefUserInterface(GuiPreferences * form, QWidget * parent)
|
|||||||
this, SIGNAL(changed()));
|
this, SIGNAL(changed()));
|
||||||
connect(tooltipCB, SIGNAL(toggled(bool)),
|
connect(tooltipCB, SIGNAL(toggled(bool)),
|
||||||
this, SIGNAL(changed()));
|
this, SIGNAL(changed()));
|
||||||
connect(pixmapCacheCB, SIGNAL(toggled(bool)),
|
|
||||||
this, SIGNAL(changed()));
|
|
||||||
lastfilesSB->setMaximum(maxlastfiles);
|
lastfilesSB->setMaximum(maxlastfiles);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1654,7 +1661,6 @@ void PrefUserInterface::apply(LyXRC & rc) const
|
|||||||
rc.make_backup = autoSaveCB->isChecked();
|
rc.make_backup = autoSaveCB->isChecked();
|
||||||
rc.num_lastfiles = lastfilesSB->value();
|
rc.num_lastfiles = lastfilesSB->value();
|
||||||
rc.use_tooltip = tooltipCB->isChecked();
|
rc.use_tooltip = tooltipCB->isChecked();
|
||||||
rc.use_pixmap_cache = pixmapCacheCB->isChecked();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1675,10 +1681,6 @@ void PrefUserInterface::update(LyXRC const & rc)
|
|||||||
autoSaveCB->setChecked(rc.make_backup);
|
autoSaveCB->setChecked(rc.make_backup);
|
||||||
lastfilesSB->setValue(rc.num_lastfiles);
|
lastfilesSB->setValue(rc.num_lastfiles);
|
||||||
tooltipCB->setChecked(rc.use_tooltip);
|
tooltipCB->setChecked(rc.use_tooltip);
|
||||||
pixmapCacheCB->setChecked(rc.use_pixmap_cache);
|
|
||||||
#if defined(Q_WS_X11)
|
|
||||||
pixmapCacheGB->setEnabled(false);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>342</width>
|
<width>371</width>
|
||||||
<height>365</height>
|
<height>482</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle" >
|
<property name="windowTitle" >
|
||||||
@ -353,6 +353,13 @@
|
|||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QCheckBox" name="pixmapCacheCB" >
|
||||||
|
<property name="text" >
|
||||||
|
<string>Use Pixmap Cache to speed up font rendering</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<spacer>
|
<spacer>
|
||||||
<property name="orientation" >
|
<property name="orientation" >
|
||||||
|
@ -128,40 +128,6 @@ p, li { white-space: pre-wrap; }
|
|||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="5" column="0" colspan="3" >
|
|
||||||
<widget class="QGroupBox" name="pixmapCacheGB" >
|
|
||||||
<property name="title" >
|
|
||||||
<string>Pixmap Cache</string>
|
|
||||||
</property>
|
|
||||||
<property name="alignment" >
|
|
||||||
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
|
|
||||||
</property>
|
|
||||||
<property name="flat" >
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
<layout class="QGridLayout" >
|
|
||||||
<property name="margin" >
|
|
||||||
<number>9</number>
|
|
||||||
</property>
|
|
||||||
<property name="spacing" >
|
|
||||||
<number>6</number>
|
|
||||||
</property>
|
|
||||||
<item row="0" column="0" >
|
|
||||||
<widget class="QCheckBox" name="pixmapCacheCB" >
|
|
||||||
<property name="toolTip" >
|
|
||||||
<string><html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
|
||||||
p, li { white-space: pre-wrap; }
|
|
||||||
</style></head><body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;">
|
|
||||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Checking this improves performance, but might decrease the on-screen quality of fonts.</p></body></html></string>
|
|
||||||
</property>
|
|
||||||
<property name="text" >
|
|
||||||
<string>Enable Pi&xmap Cache</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="0" column="0" >
|
<item row="0" column="0" >
|
||||||
<widget class="QLabel" name="uiFileLA" >
|
<widget class="QLabel" name="uiFileLA" >
|
||||||
<property name="text" >
|
<property name="text" >
|
||||||
@ -346,7 +312,6 @@ p, li { white-space: pre-wrap; }
|
|||||||
<tabstop>cursorFollowsCB</tabstop>
|
<tabstop>cursorFollowsCB</tabstop>
|
||||||
<tabstop>sortEnvironmentsCB</tabstop>
|
<tabstop>sortEnvironmentsCB</tabstop>
|
||||||
<tabstop>macroEditStyleCO</tabstop>
|
<tabstop>macroEditStyleCO</tabstop>
|
||||||
<tabstop>pixmapCacheCB</tabstop>
|
|
||||||
</tabstops>
|
</tabstops>
|
||||||
<includes>
|
<includes>
|
||||||
<include location="local" >qt_helpers.h</include>
|
<include location="local" >qt_helpers.h</include>
|
||||||
|
Loading…
Reference in New Issue
Block a user