mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +00:00
Juergen S.'s slightly modified patch to access the preview setting from the gui
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4498 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
2c1591e410
commit
c520bdbd89
@ -1,3 +1,8 @@
|
|||||||
|
2002-06-27 Juergen Spitzmueller <j.spitzmueller@gmx.de>
|
||||||
|
|
||||||
|
* FormPreferences.C
|
||||||
|
* forms/formPreferences.fd: Add a checkbox for Andrés new toy (preview)
|
||||||
|
|
||||||
2002-06-26 Angus Leeming <leeming@lyx.org>
|
2002-06-26 Angus Leeming <leeming@lyx.org>
|
||||||
|
|
||||||
* xformsGImage.C (load, setPixmap): changes aassociated with moving
|
* xformsGImage.C (load, setPixmap): changes aassociated with moving
|
||||||
|
@ -1827,6 +1827,7 @@ void FormPreferences::LnFmisc::apply() const
|
|||||||
fl_get_button(dialog_->check_cursor_follows_scrollbar);
|
fl_get_button(dialog_->check_cursor_follows_scrollbar);
|
||||||
lyxrc.dialogs_iconify_with_main =
|
lyxrc.dialogs_iconify_with_main =
|
||||||
fl_get_button(dialog_->check_dialogs_iconify_with_main);
|
fl_get_button(dialog_->check_dialogs_iconify_with_main);
|
||||||
|
lyxrc.preview = fl_get_button(dialog_->check_preview_latex);
|
||||||
lyxrc.autosave = static_cast<unsigned int>
|
lyxrc.autosave = static_cast<unsigned int>
|
||||||
(fl_get_counter_value(dialog_->counter_autosave));
|
(fl_get_counter_value(dialog_->counter_autosave));
|
||||||
lyxrc.wheel_jump = static_cast<unsigned int>
|
lyxrc.wheel_jump = static_cast<unsigned int>
|
||||||
@ -1872,6 +1873,7 @@ void FormPreferences::LnFmisc::build()
|
|||||||
setPrehandler(dialog_->check_ask_new_file);
|
setPrehandler(dialog_->check_ask_new_file);
|
||||||
setPrehandler(dialog_->check_cursor_follows_scrollbar);
|
setPrehandler(dialog_->check_cursor_follows_scrollbar);
|
||||||
setPrehandler(dialog_->check_dialogs_iconify_with_main);
|
setPrehandler(dialog_->check_dialogs_iconify_with_main);
|
||||||
|
setPrehandler(dialog_->check_preview_latex);
|
||||||
setPrehandler(dialog_->counter_wm_jump);
|
setPrehandler(dialog_->counter_wm_jump);
|
||||||
setPrehandler(dialog_->radio_display_monochrome);
|
setPrehandler(dialog_->radio_display_monochrome);
|
||||||
setPrehandler(dialog_->radio_display_grayscale);
|
setPrehandler(dialog_->radio_display_grayscale);
|
||||||
@ -1895,6 +1897,8 @@ FormPreferences::LnFmisc::feedback(FL_OBJECT const * const ob) const
|
|||||||
str = lyxrc.getDescription(LyXRC::RC_CURSOR_FOLLOWS_SCROLLBAR);
|
str = lyxrc.getDescription(LyXRC::RC_CURSOR_FOLLOWS_SCROLLBAR);
|
||||||
else if (ob == dialog_->check_dialogs_iconify_with_main)
|
else if (ob == dialog_->check_dialogs_iconify_with_main)
|
||||||
str = lyxrc.getDescription(LyXRC::RC_DIALOGS_ICONIFY_WITH_MAIN);
|
str = lyxrc.getDescription(LyXRC::RC_DIALOGS_ICONIFY_WITH_MAIN);
|
||||||
|
else if (ob == dialog_->check_preview_latex)
|
||||||
|
str = lyxrc.getDescription(LyXRC::RC_PREVIEW);
|
||||||
else if (ob == dialog_->counter_autosave)
|
else if (ob == dialog_->counter_autosave)
|
||||||
str = lyxrc.getDescription(LyXRC::RC_AUTOSAVE);
|
str = lyxrc.getDescription(LyXRC::RC_AUTOSAVE);
|
||||||
else if (ob == dialog_->counter_wm_jump)
|
else if (ob == dialog_->counter_wm_jump)
|
||||||
@ -1919,6 +1923,8 @@ void FormPreferences::LnFmisc::update()
|
|||||||
lyxrc.cursor_follows_scrollbar);
|
lyxrc.cursor_follows_scrollbar);
|
||||||
fl_set_button(dialog_->check_dialogs_iconify_with_main,
|
fl_set_button(dialog_->check_dialogs_iconify_with_main,
|
||||||
lyxrc.dialogs_iconify_with_main);
|
lyxrc.dialogs_iconify_with_main);
|
||||||
|
fl_set_button(dialog_->check_preview_latex,
|
||||||
|
lyxrc.preview);
|
||||||
fl_set_counter_value(dialog_->counter_autosave, lyxrc.autosave);
|
fl_set_counter_value(dialog_->counter_autosave, lyxrc.autosave);
|
||||||
fl_set_counter_value(dialog_->counter_wm_jump, lyxrc.wheel_jump);
|
fl_set_counter_value(dialog_->counter_wm_jump, lyxrc.wheel_jump);
|
||||||
|
|
||||||
|
@ -973,7 +973,7 @@ argument: 0
|
|||||||
--------------------
|
--------------------
|
||||||
class: FL_BEGIN_GROUP
|
class: FL_BEGIN_GROUP
|
||||||
type: 0
|
type: 0
|
||||||
box: 0 10 10 0
|
box: 0 0 0 0
|
||||||
boxtype: FL_NO_BOX
|
boxtype: FL_NO_BOX
|
||||||
colors: FL_COL1 FL_MCOL
|
colors: FL_COL1 FL_MCOL
|
||||||
alignment: FL_ALIGN_CENTER
|
alignment: FL_ALIGN_CENTER
|
||||||
@ -1101,7 +1101,7 @@ argument: 0
|
|||||||
Name: form_preferences_lnf_misc
|
Name: form_preferences_lnf_misc
|
||||||
Width: 450
|
Width: 450
|
||||||
Height: 350
|
Height: 350
|
||||||
Number of Objects: 17
|
Number of Objects: 18
|
||||||
|
|
||||||
--------------------
|
--------------------
|
||||||
class: FL_BOX
|
class: FL_BOX
|
||||||
@ -1281,7 +1281,7 @@ argument: 0
|
|||||||
--------------------
|
--------------------
|
||||||
class: FL_BEGIN_GROUP
|
class: FL_BEGIN_GROUP
|
||||||
type: 0
|
type: 0
|
||||||
box: 0 10 10 0
|
box: 0 0 0 0
|
||||||
boxtype: FL_NO_BOX
|
boxtype: FL_NO_BOX
|
||||||
colors: FL_COL1 FL_MCOL
|
colors: FL_COL1 FL_MCOL
|
||||||
alignment: FL_ALIGN_CENTER
|
alignment: FL_ALIGN_CENTER
|
||||||
@ -1423,6 +1423,25 @@ name:
|
|||||||
callback:
|
callback:
|
||||||
argument:
|
argument:
|
||||||
|
|
||||||
|
--------------------
|
||||||
|
class: FL_CHECKBUTTON
|
||||||
|
type: PUSH_BUTTON
|
||||||
|
box: 15 170 30 30
|
||||||
|
boxtype: FL_NO_BOX
|
||||||
|
colors: FL_COL1 FL_YELLOW
|
||||||
|
alignment: FL_ALIGN_CENTER
|
||||||
|
style: FL_NORMAL_STYLE
|
||||||
|
size: FL_NORMAL_SIZE
|
||||||
|
lcol: FL_BLACK
|
||||||
|
label: Instant Preview|#P
|
||||||
|
shortcut:
|
||||||
|
resize: FL_RESIZE_ALL
|
||||||
|
gravity: FL_NoGravity FL_NoGravity
|
||||||
|
name: check_preview_latex
|
||||||
|
callback: C_FormBaseDeprecatedInputCB
|
||||||
|
argument: 0
|
||||||
|
value: 1
|
||||||
|
|
||||||
=============== FORM ===============
|
=============== FORM ===============
|
||||||
Name: form_preferences_spelloptions
|
Name: form_preferences_spelloptions
|
||||||
Width: 450
|
Width: 450
|
||||||
|
Loading…
Reference in New Issue
Block a user