+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:
}
}
- if (!unsaved.empty() && lyxrc.exit_confirmation) {
- return Alert::askQuestion(_("Some documents were not saved:"),
- unsaved, _("Exit anyway?"));
- }
-
return true;
}
+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:
{
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 =
// 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);
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)
{
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,
#include "MenuBackend.h"
#include "ToolbarDefaults.h"
#include "lyxfunc.h"
+#include "bufferview_funcs.h"
#include "BufferView.h"
#include <boost/bind.hpp>
Name: form_preferences_lnf_misc
Width: 450
Height: 350
-Number of Objects: 17
+Number of Objects: 16
--------------------
class: FL_BOX
--------------------
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
--------------------
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
{ "\\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 },
check_lastfiles = true;
make_backup = true;
backupdir_path.erase();
- exit_confirmation = true;
display_graphics = "color";
// Spellchecker settings:
#ifdef USE_PSPELL
}
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();
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"
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;
RC_CHKTEX_COMMAND,
RC_CURSOR_FOLLOWS_SCROLLBAR,
RC_DIALOGS_ICONIFY_WITH_MAIN,
- RC_EXIT_CONFIRMATION,
RC_MAKE_BACKUP,
RC_BACKUPDIR_PATH,
RC_RTL_SUPPORT,
string isp_esc_chars;
///
bool use_kbmap;
- /// Ask for confirmation of exit when there are unsaved documents?
- bool exit_confirmation;
///
string primary_kbmap;
///