]> git.lyx.org Git - features.git/commitdiff
Strip out the override_x_deadkeys stuff.
authorAngus Leeming <leeming@lyx.org>
Mon, 16 Dec 2002 12:47:31 +0000 (12:47 +0000)
committerAngus Leeming <leeming@lyx.org>
Mon, 16 Dec 2002 12:47:31 +0000 (12:47 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5819 a592a061-630c-0410-9148-cb99ea01b6c8

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

index e1bbdc43b8c435e97e77013df2af49d37d051f21..e5511685ecef0be9d4dfcfebb805a3b061547998 100644 (file)
@@ -1,3 +1,8 @@
+2002-12-16  Angus Leeming  <leeming@lyx.org>
+
+       * lyxrc.[Ch]:
+       * lyx_main.C (init): remove override_x_deadkeys stuff.
+
 2002-12-12  John Levon  <levon@movementarian.org>
 
        * lyxfunc.C: use LyXKeySym->isText() as last-ditch
index d5ad2c6b144bf9b36c84c79cb3e4594b50500012..9d0208e01ee272fa6268cfbd024062580322823f 100644 (file)
@@ -1,3 +1,8 @@
+2002-12-16  Angus Leeming  <leeming@lyx.org>
+
+       * FormPreferences.C: 
+       * forms/form_preferences.fd: remove override_x_deadkeys stuff.
+
 2002-12-13  Angus Leeming  <leeming@lyx.org>
 
        * FormBase.C:
index 72edd9127288071df548c2f22d544b983e1bb27a..4e50c2d4c4255cf2bc784f5969f2021eb02b9500 100644 (file)
@@ -1489,8 +1489,6 @@ void FormPreferences::Interface::apply(LyXRC & rc) const
                fl_get_input(dialog_->input_popup_font_encoding);
        rc.bind_file = fl_get_input(dialog_->input_bind_file);
        rc.ui_file = fl_get_input(dialog_->input_ui_file);
-       rc.override_x_deadkeys =
-               fl_get_button(dialog_->check_override_x_dead_keys);
 }
 
 
@@ -1512,7 +1510,6 @@ void FormPreferences::Interface::build()
        setPrehandler(dialog_->button_bind_file_browse);
        setPrehandler(dialog_->input_ui_file);
        setPrehandler(dialog_->button_ui_file_browse);
-       setPrehandler(dialog_->check_override_x_dead_keys);
 }
 
 
@@ -1529,8 +1526,6 @@ FormPreferences::Interface::feedback(FL_OBJECT const * const ob) const
                return LyXRC::getDescription(LyXRC::RC_BINDFILE);
        if (ob == dialog_->input_ui_file)
                return LyXRC::getDescription(LyXRC::RC_UIFILE);
-       if (ob == dialog_->check_override_x_dead_keys)
-               return LyXRC::getDescription(LyXRC::RC_OVERRIDE_X_DEADKEYS);
        return string();
 }
 
@@ -1565,8 +1560,6 @@ void FormPreferences::Interface::update(LyXRC const & rc)
                     rc.bind_file.c_str());
        fl_set_input(dialog_->input_ui_file,
                     rc.ui_file.c_str());
-       fl_set_button(dialog_->check_override_x_dead_keys,
-                     rc.override_x_deadkeys);
 }
 
 
index 0abc80553ce2ee0623f000dc6c4bc86d64d86c9a..eb2c170bdadd2c28788dc2f62031acfd31229026 100644 (file)
@@ -596,7 +596,7 @@ argument:
 Name: form_preferences_interface
 Width: 450
 Height: 350
-Number of Objects: 12
+Number of Objects: 10
 
 --------------------
 class: FL_BOX
@@ -691,7 +691,7 @@ argument: 0
 --------------------
 class: FL_LABELFRAME
 type: ENGRAVED_FRAME
-box: 15 150 425 85
+box: 15 165 425 85
 boxtype: FL_NO_BOX
 colors: FL_BLACK FL_COL1
 alignment: FL_ALIGN_TOP_LEFT
@@ -709,7 +709,7 @@ argument:
 --------------------
 class: FL_INPUT
 type: NORMAL_INPUT
-box: 160 160 170 30
+box: 160 175 170 30
 boxtype: FL_DOWN_BOX
 colors: FL_COL1 FL_MCOL
 alignment: FL_ALIGN_LEFT
@@ -727,7 +727,7 @@ argument: 0
 --------------------
 class: FL_BUTTON
 type: NORMAL_BUTTON
-box: 335 160 100 30
+box: 335 175 100 30
 boxtype: FL_UP_BOX
 colors: FL_COL1 FL_COL1
 alignment: FL_ALIGN_CENTER
@@ -745,7 +745,7 @@ argument: 0
 --------------------
 class: FL_INPUT
 type: NORMAL_INPUT
-box: 160 195 170 30
+box: 160 210 170 30
 boxtype: FL_DOWN_BOX
 colors: FL_COL1 FL_MCOL
 alignment: FL_ALIGN_LEFT
@@ -763,7 +763,7 @@ argument: 0
 --------------------
 class: FL_BUTTON
 type: NORMAL_BUTTON
-box: 335 195 100 30
+box: 335 210 100 30
 boxtype: FL_UP_BOX
 colors: FL_COL1 FL_COL1
 alignment: FL_ALIGN_CENTER
@@ -778,43 +778,6 @@ name: button_bind_file_browse
 callback: C_FormBaseInputCB
 argument: 0
 
---------------------
-class: FL_LABELFRAME
-type: ENGRAVED_FRAME
-box: 15 255 425 45
-boxtype: FL_NO_BOX
-colors: FL_BLACK FL_COL1
-alignment: FL_ALIGN_TOP_LEFT
-style: FL_NORMAL_STYLE
-size: FL_DEFAULT_SIZE
-lcol: FL_BLACK
-label: Dead Keys
-shortcut: 
-resize: FL_RESIZE_ALL
-gravity: FL_NoGravity FL_NoGravity
-name: 
-callback: 
-argument: 
-
---------------------
-class: FL_CHECKBUTTON
-type: PUSH_BUTTON
-box: 95 265 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: Override X Window dead-keys|#O
-shortcut: 
-resize: FL_RESIZE_ALL
-gravity: FL_NoGravity FL_NoGravity
-name: check_override_x_dead_keys
-callback: C_FormBaseInputCB
-argument: 0
-       value: 1
-
 =============== FORM ===============
 Name: form_preferences_colors
 Width: 450
index b20b2aee64ed81370cb84eec46ded5d46ed57611..5cdbdc8d5f7328d968d582fda927fb9404464833 100644 (file)
@@ -463,11 +463,6 @@ void LyX::init(bool gui)
        // Read menus
        readUIFile(lyxrc.ui_file);
 
-       // Bind the X dead keys to the corresponding LyX functions if
-       // necessary.
-       if (lyxrc.override_x_deadkeys)
-               deadKeyBindings(toplevel_keymap.get());
-
        if (lyxerr.debugging(Debug::LYXRC)) {
                lyxrc.print();
        }
index 19ebfb0c531f258beb316d53c30859d95b288b27..1053cdbcf760435fe8b111f998dcb3577477859d 100644 (file)
@@ -89,7 +89,6 @@ keyword_item lyxrcTags[] = {
        { "\\make_backup", LyXRC::RC_MAKE_BACKUP },
        { "\\mark_foreign_language", LyXRC::RC_MARK_FOREIGN_LANGUAGE },
        { "\\num_lastfiles", LyXRC::RC_NUMLASTFILES },
-       { "\\override_x_deadkeys", LyXRC::RC_OVERRIDE_X_DEADKEYS },
        { "\\personal_dictionary", LyXRC::RC_PERS_DICT },
        { "\\popup_bold_font", LyXRC::RC_POPUP_BOLD_FONT },
        { "\\popup_font_encoding", LyXRC::RC_POPUP_FONT_ENCODING },
@@ -219,7 +218,6 @@ void LyXRC::setDefaults() {
        font_norm = "iso8859-1";
        font_norm_type = ISO_8859_1;
        popup_font_encoding.erase();
-       override_x_deadkeys = true;
        autosave = 300;
        auto_region_delete = true;
        auto_reset_options = false;
@@ -846,12 +844,6 @@ int LyXRC::read(string const & filename)
                        }
                        break;
                }
-               case RC_OVERRIDE_X_DEADKEYS:
-                       if (lexrc.next()) {
-                               override_x_deadkeys = lexrc.getBool();
-                       }
-                       break;
-
                case RC_SERVERPIPE:
                        if (lexrc.next()) {
                                lyxpipes = ExpandPath(lexrc.getString());
@@ -1734,11 +1726,6 @@ void LyXRC::output(ostream & os) const
                   << "# 2nd MISC SUPPORT SECTION ##########################\n"
                   << "#\n\n";
 
-       case RC_OVERRIDE_X_DEADKEYS:
-               if (override_x_deadkeys != system_lyxrc.override_x_deadkeys) {
-                       os << "\\override_x_deadkeys "
-                          << tostr(override_x_deadkeys) << '\n';
-               }
        case RC_AUTO_NUMBER:
                if (auto_number != system_lyxrc.auto_number) {
                        os << "\\auto_number " << tostr(auto_number) << '\n';
@@ -1987,11 +1974,6 @@ string const LyXRC::getDescription(LyXRCTags tag)
                str = _("De-select if you don't want the class options to be reset to defaults after class change.");
                break;
 
-       case RC_OVERRIDE_X_DEADKEYS:
-               str = _("Select if LyX is to take over the handling of the dead keys (a.k.a. accent keys) that may be defined for your keyboard.");
-               break;
-
-
        case RC_SERVERPIPE:
                str = _("This starts the lyxserver. The pipes get an additional extension \".in\" and \".out\". Only for advanced users.");
                break;
index f7bb3ff6e1606a370807c1eb69ad9a87b51b285f..cf497b8af24e093d2dad02761134e82f8f00a032 100644 (file)
@@ -72,7 +72,6 @@ enum LyXRCTags {
        RC_AUTOREGIONDELETE,
        RC_AUTORESET_OPTIONS,
        RC_BIND,
-       RC_OVERRIDE_X_DEADKEYS,
        RC_SERVERPIPE,
        RC_INPUT,
        RC_BINDFILE,
@@ -234,8 +233,6 @@ enum LyXRCTags {
        bool use_scalable_fonts;
        /// DPI of monitor
        float dpi;
-       /// Whether lyx should handle deadkeys by itself
-       bool override_x_deadkeys;
        ///
        string fontenc;
        ///