]> git.lyx.org Git - lyx.git/commitdiff
Juergen S.'s slightly modified patch to access the preview setting from the gui
authorAndré Pönitz <poenitz@gmx.net>
Thu, 27 Jun 2002 17:48:09 +0000 (17:48 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Thu, 27 Jun 2002 17:48:09 +0000 (17:48 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4498 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/xforms/ChangeLog
src/frontends/xforms/FormPreferences.C
src/frontends/xforms/forms/form_preferences.fd

index 90e89e0133130659ef813b68e79f1a8fa2c4fb78..51045b9ce0a7d3fde7019cfe606d14715fd9aaeb 100644 (file)
@@ -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>
 
        * xformsGImage.C (load, setPixmap): changes aassociated with moving
index 855bfe5b85be5e164db0993fe71d9528d5176910..b5336ffb055d5090d27d48c16c4cfecfb7d1edf9 100644 (file)
@@ -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<unsigned int>
                (fl_get_counter_value(dialog_->counter_autosave));
        lyxrc.wheel_jump = static_cast<unsigned int>
@@ -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);
 
index e33e4b98a384e7b9ed6be494f0fc0e8fa232f2e0..770bc70d5d38f5eb8a31c6be59e528a566b5d728 100644 (file)
@@ -973,7 +973,7 @@ argument: 0
 --------------------
 class: FL_BEGIN_GROUP
 type: 0
-box: 0 10 10 0
+box: 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
 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