mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
UI for #4581.
Patch from Ale. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36582 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
3753804463
commit
182100d376
@ -2480,6 +2480,8 @@ PrefEdit::PrefEdit(GuiPreferences * form)
|
||||
this, SIGNAL(changed()));
|
||||
connect(scrollBelowCB, SIGNAL(clicked()),
|
||||
this, SIGNAL(changed()));
|
||||
connect(macLikeWordMovementCB, SIGNAL(clicked()),
|
||||
this, SIGNAL(changed()));
|
||||
connect(sortEnvironmentsCB, SIGNAL(clicked()),
|
||||
this, SIGNAL(changed()));
|
||||
connect(groupEnvironmentsCB, SIGNAL(clicked()),
|
||||
@ -2505,6 +2507,7 @@ void PrefEdit::apply(LyXRC & rc) const
|
||||
{
|
||||
rc.cursor_follows_scrollbar = cursorFollowsCB->isChecked();
|
||||
rc.scroll_below_document = scrollBelowCB->isChecked();
|
||||
rc.mac_like_word_movement = macLikeWordMovementCB->isChecked();
|
||||
rc.sort_layouts = sortEnvironmentsCB->isChecked();
|
||||
rc.group_layouts = groupEnvironmentsCB->isChecked();
|
||||
switch (macroEditStyleCO->currentIndex()) {
|
||||
@ -2525,6 +2528,7 @@ void PrefEdit::update(LyXRC const & rc)
|
||||
{
|
||||
cursorFollowsCB->setChecked(rc.cursor_follows_scrollbar);
|
||||
scrollBelowCB->setChecked(rc.scroll_below_document);
|
||||
macLikeWordMovementCB->setChecked(rc.mac_like_word_movement);
|
||||
sortEnvironmentsCB->setChecked(rc.sort_layouts);
|
||||
groupEnvironmentsCB->setChecked(rc.group_layouts);
|
||||
macroEditStyleCO->setCurrentIndex(rc.macro_edit_style);
|
||||
|
@ -1,3 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>PrefEditUi</class>
|
||||
<widget class="QWidget" name="PrefEditUi">
|
||||
@ -5,7 +6,7 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>382</width>
|
||||
<width>384</width>
|
||||
<height>361</height>
|
||||
</rect>
|
||||
</property>
|
||||
@ -38,28 +39,28 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<item row="2" column="0">
|
||||
<widget class="QCheckBox" name="scrollBelowCB">
|
||||
<property name="text">
|
||||
<string>Scroll &below end of document</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<item row="4" column="0">
|
||||
<widget class="QCheckBox" name="sortEnvironmentsCB">
|
||||
<property name="text">
|
||||
<string>Sort &environments alphabetically</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="0">
|
||||
<item row="5" column="0">
|
||||
<widget class="QCheckBox" name="groupEnvironmentsCB">
|
||||
<property name="text">
|
||||
<string>&Group environments by their category</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="0">
|
||||
<item row="6" column="0">
|
||||
<widget class="QComboBox" name="macroEditStyleCO">
|
||||
<item>
|
||||
<property name="text">
|
||||
@ -78,7 +79,7 @@
|
||||
</item>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="1">
|
||||
<item row="6" column="1">
|
||||
<spacer name="horizontalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
@ -91,6 +92,13 @@
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item row="3" column="0">
|
||||
<widget class="QCheckBox" name="macLikeWordMovementCB">
|
||||
<property name="text">
|
||||
<string>Use Mac-style for moving between &words</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
|
Loading…
Reference in New Issue
Block a user