]> git.lyx.org Git - lyx.git/commitdiff
remove 2nd exit confirmation. I think this mutated over time, because
authorJohn Levon <levon@movementarian.org>
Wed, 17 Jul 2002 04:53:05 +0000 (04:53 +0000)
committerJohn Levon <levon@movementarian.org>
Wed, 17 Jul 2002 04:53:05 +0000 (04:53 +0000)
the descriptions of what the option did disagree

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4672 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/bufferlist.C
src/frontends/xforms/ChangeLog
src/frontends/xforms/FormPreferences.C
src/frontends/xforms/XFormsView.C
src/frontends/xforms/forms/form_preferences.fd
src/lyxrc.C
src/lyxrc.h

index 19391d755c69dc644ee9c6a787aed0d869303896..452dfa8cf5f33a6b2900dcd1bc98a386d311046c 100644 (file)
@@ -1,3 +1,9 @@
+2002-07-17  John Levon  <moz@compsoc.man.ac.uk>
+
+       * bufferlist.C:
+       * lyxrc.h:
+       * lyxrc.C: remove second exit confirmation
 2002-07-17  John Levon  <moz@compsoc.man.ac.uk>
 
        * BufferView.h:
index f185e713465307758ce320010ae103ea9a7283d3..d3e14cb2a291188566286a01ff90b762a90c4c78 100644 (file)
@@ -152,11 +152,6 @@ bool BufferList::qwriteAll()
                }
        }
 
-       if (!unsaved.empty() && lyxrc.exit_confirmation) {
-               return Alert::askQuestion(_("Some documents were not saved:"),
-                                         unsaved, _("Exit anyway?"));
-       }
-
        return true;
 }
 
index d5fe41eace8964122ce74fd624d333f173c9e587..d1e11dceadcfba30ac3f2e49d54a7603f5a4b9e5 100644 (file)
@@ -1,3 +1,8 @@
+2002-07-17  John Levon  <moz@compsoc.man.ac.uk>
+
+       * FormPreferences.C:
+       * forms/form_preferences.fd: remove 2nd exit confirmation
 2002-07-17  John Levon  <moz@compsoc.man.ac.uk>
 
        * XFormsView.h:
index e0d6bb1838b4fb7d65998322b32f362fa5904ae1..df38ede03cf0ddd7a2351679ff99011b8cae163f 100644 (file)
@@ -1821,7 +1821,6 @@ void FormPreferences::LnFmisc::apply() const
 {
        lyxrc.auto_region_delete =
                fl_get_button(dialog_->check_auto_region_delete);
-       lyxrc.exit_confirmation = fl_get_button(dialog_->check_exit_confirm);
        lyxrc.cursor_follows_scrollbar =
                fl_get_button(dialog_->check_cursor_follows_scrollbar);
        lyxrc.dialogs_iconify_with_main =
@@ -1867,7 +1866,6 @@ void FormPreferences::LnFmisc::build()
 
        // set up the feedback mechanism
        setPrehandler(dialog_->check_auto_region_delete);
-       setPrehandler(dialog_->check_exit_confirm);
        setPrehandler(dialog_->counter_autosave);
        setPrehandler(dialog_->check_cursor_follows_scrollbar);
        setPrehandler(dialog_->check_dialogs_iconify_with_main);
@@ -1887,8 +1885,6 @@ FormPreferences::LnFmisc::feedback(FL_OBJECT const * const ob) const
 
        if (ob == dialog_->check_auto_region_delete)
                str = lyxrc.getDescription(LyXRC::RC_AUTOREGIONDELETE);
-       else if (ob == dialog_->check_exit_confirm)
-               str = lyxrc.getDescription(LyXRC::RC_EXIT_CONFIRMATION);
        else if (ob == dialog_->check_cursor_follows_scrollbar)
                str = lyxrc.getDescription(LyXRC::RC_CURSOR_FOLLOWS_SCROLLBAR);
        else if (ob == dialog_->check_dialogs_iconify_with_main)
@@ -1913,7 +1909,6 @@ void FormPreferences::LnFmisc::update()
 {
        fl_set_button(dialog_->check_auto_region_delete,
                      lyxrc.auto_region_delete);
-       fl_set_button(dialog_->check_exit_confirm, lyxrc.exit_confirmation);
        fl_set_button(dialog_->check_cursor_follows_scrollbar,
                      lyxrc.cursor_follows_scrollbar);
        fl_set_button(dialog_->check_dialogs_iconify_with_main,
index 5e90fe3a2a55edcba2b88d439b968c32fed96e20..ba903d2f70d4f5cc4109cbd95fdb5cc87ff9c95d 100644 (file)
@@ -32,6 +32,7 @@
 #include "MenuBackend.h"
 #include "ToolbarDefaults.h"
 #include "lyxfunc.h"
+#include "bufferview_funcs.h"
 #include "BufferView.h"
 
 #include <boost/bind.hpp>
index 0bfbe193bad5b50f911ea029ec200e2a77445b93..1a5b8c323365b4e9af43c5fd80c16c1031bace6e 100644 (file)
@@ -1101,7 +1101,7 @@ argument: 0
 Name: form_preferences_lnf_misc
 Width: 450
 Height: 350
-Number of Objects: 17
+Number of Objects: 16
 
 --------------------
 class: FL_BOX
@@ -1161,26 +1161,7 @@ argument: 0
 --------------------
 class: FL_CHECKBUTTON
 type: PUSH_BUTTON
-box: 15 65 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: Exit confirmation|#E
-shortcut: 
-resize: FL_RESIZE_ALL
-gravity: FL_NoGravity FL_NoGravity
-name: check_exit_confirm
-callback: C_FormBaseDeprecatedInputCB
-argument: 0
-       value: 1
-
---------------------
-class: FL_CHECKBUTTON
-type: PUSH_BUTTON
-box: 15 105 30 30
+box: 15 75 30 30
 boxtype: FL_NO_BOX
 colors: FL_COL1 FL_YELLOW
 alignment: FL_ALIGN_CENTER
@@ -1199,7 +1180,7 @@ argument: 0
 --------------------
 class: FL_CHECKBUTTON
 type: PUSH_BUTTON
-box: 15 145 30 30
+box: 15 130 30 30
 boxtype: FL_NO_BOX
 colors: FL_COL1 FL_YELLOW
 alignment: FL_ALIGN_CENTER
index f782571ee196bee2b18fce6e9feec11f61c38cf6..aa4c6cc3580f8d68cfe1d41a70d71c16a7ff9800 100644 (file)
@@ -69,7 +69,6 @@ keyword_item lyxrcTags[] = {
        { "\\display_graphics", LyXRC::RC_DISPLAY_GRAPHICS },
        { "\\document_path", LyXRC::RC_DOCUMENTPATH },
        { "\\escape_chars", LyXRC::RC_ESC_CHARS },
-       { "\\exit_confirmation", LyXRC::RC_EXIT_CONFIRMATION },
        { "\\font_encoding", LyXRC::RC_FONT_ENCODING },
        { "\\format", LyXRC::RC_FORMAT },
        { "\\input", LyXRC::RC_INPUT },
@@ -225,7 +224,6 @@ void LyXRC::setDefaults() {
        check_lastfiles = true;
        make_backup = true;
        backupdir_path.erase();
-       exit_confirmation = true;
        display_graphics = "color";
        // Spellchecker settings:
 #ifdef USE_PSPELL
@@ -347,11 +345,6 @@ int LyXRC::read(string const & filename)
                        }
                        break;
 
-               case RC_EXIT_CONFIRMATION:
-                       if (lexrc.next())
-                               exit_confirmation = lexrc.getBool();
-                       break;
-
                case RC_AUTORESET_OPTIONS:
                        if (lexrc.next())
                                auto_reset_options = lexrc.getBool();
@@ -1047,13 +1040,6 @@ void LyXRC::output(ostream & os) const
                        os << "# The time interval between auto-saves in seconds.\n"
                           << "\\autosave " << autosave << "\n";
                }
-       case RC_EXIT_CONFIRMATION:
-               if (exit_confirmation != system_lyxrc.exit_confirmation) {
-                       os << "# Ask for confirmation before exit if there are\n"
-                          << "# unsaved changed documents.\n"
-                          << "\\exit_confirmation " << tostr(exit_confirmation)
-                          << "\n";
-               }
        case RC_DISPLAY_GRAPHICS:
                if (display_graphics != system_lyxrc.display_graphics) {
                        os << "# Display graphics within LyX\n"
@@ -1925,10 +1911,6 @@ string const LyXRC::getDescription(LyXRCTags tag)
                str = _("Iconify the dialogs when the main window is iconified. (Affects only dialogs shown after the change has been made.)");
                break;
 
-       case RC_EXIT_CONFIRMATION:
-               str = _("Sets whether LyX asks for a second confirmation to exit when you have changed documents. (LyX will still ask to save changed documents.)");
-               break;
-
        case RC_DISPLAY_GRAPHICS:
                str = _("Select how LyX will display any graphics.");
                break;
index 2c206d2ff67b7251f77667051901534ad58ec4bd..33312a8f1bd42e3ff899861bacb9efb26ad548e3 100644 (file)
@@ -96,7 +96,6 @@ enum LyXRCTags {
        RC_CHKTEX_COMMAND,
        RC_CURSOR_FOLLOWS_SCROLLBAR,
        RC_DIALOGS_ICONIFY_WITH_MAIN,
-       RC_EXIT_CONFIRMATION,
        RC_MAKE_BACKUP,
        RC_BACKUPDIR_PATH,
        RC_RTL_SUPPORT,
@@ -301,8 +300,6 @@ enum LyXRCTags {
        string isp_esc_chars;
        ///
        bool use_kbmap;
-       /// Ask for confirmation of exit when there are unsaved documents?
-       bool exit_confirmation;
        ///
        string primary_kbmap;
        ///