From c520bdbd8912d6bfc5ecaa12b821479253a65cb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Thu, 27 Jun 2002 17:48:09 +0000 Subject: [PATCH] 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 --- src/frontends/xforms/ChangeLog | 5 ++++ src/frontends/xforms/FormPreferences.C | 6 +++++ .../xforms/forms/form_preferences.fd | 25 ++++++++++++++++--- 3 files changed, 33 insertions(+), 3 deletions(-) diff --git a/src/frontends/xforms/ChangeLog b/src/frontends/xforms/ChangeLog index 90e89e0133..51045b9ce0 100644 --- a/src/frontends/xforms/ChangeLog +++ b/src/frontends/xforms/ChangeLog @@ -1,3 +1,8 @@ +2002-06-27 Juergen Spitzmueller + + * FormPreferences.C + * forms/formPreferences.fd: Add a checkbox for Andrés new toy (preview) + 2002-06-26 Angus Leeming * xformsGImage.C (load, setPixmap): changes aassociated with moving diff --git a/src/frontends/xforms/FormPreferences.C b/src/frontends/xforms/FormPreferences.C index 855bfe5b85..b5336ffb05 100644 --- a/src/frontends/xforms/FormPreferences.C +++ b/src/frontends/xforms/FormPreferences.C @@ -1827,6 +1827,7 @@ void FormPreferences::LnFmisc::apply() const fl_get_button(dialog_->check_cursor_follows_scrollbar); lyxrc.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 (fl_get_counter_value(dialog_->counter_autosave)); lyxrc.wheel_jump = static_cast @@ -1872,6 +1873,7 @@ void FormPreferences::LnFmisc::build() setPrehandler(dialog_->check_ask_new_file); setPrehandler(dialog_->check_cursor_follows_scrollbar); setPrehandler(dialog_->check_dialogs_iconify_with_main); + setPrehandler(dialog_->check_preview_latex); setPrehandler(dialog_->counter_wm_jump); setPrehandler(dialog_->radio_display_monochrome); 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); else if (ob == dialog_->check_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) str = lyxrc.getDescription(LyXRC::RC_AUTOSAVE); else if (ob == dialog_->counter_wm_jump) @@ -1919,6 +1923,8 @@ void FormPreferences::LnFmisc::update() lyxrc.cursor_follows_scrollbar); fl_set_button(dialog_->check_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_wm_jump, lyxrc.wheel_jump); diff --git a/src/frontends/xforms/forms/form_preferences.fd b/src/frontends/xforms/forms/form_preferences.fd index e33e4b98a3..770bc70d5d 100644 --- a/src/frontends/xforms/forms/form_preferences.fd +++ b/src/frontends/xforms/forms/form_preferences.fd @@ -973,7 +973,7 @@ argument: 0 -------------------- class: FL_BEGIN_GROUP type: 0 -box: 0 10 10 0 +box: 0 0 0 0 boxtype: FL_NO_BOX colors: FL_COL1 FL_MCOL alignment: FL_ALIGN_CENTER @@ -1101,7 +1101,7 @@ argument: 0 Name: form_preferences_lnf_misc Width: 450 Height: 350 -Number of Objects: 17 +Number of Objects: 18 -------------------- class: FL_BOX @@ -1281,7 +1281,7 @@ argument: 0 -------------------- class: FL_BEGIN_GROUP type: 0 -box: 0 10 10 0 +box: 0 0 0 0 boxtype: FL_NO_BOX colors: FL_COL1 FL_MCOL alignment: FL_ALIGN_CENTER @@ -1423,6 +1423,25 @@ name: callback: 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 =============== Name: form_preferences_spelloptions Width: 450