]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiPrefs.h
GuiBibtex: Use appropriate title when using Biblatex
[lyx.git] / src / frontends / qt4 / GuiPrefs.h
index c2c4576b115556e5d33adcc3bd831c18c8844a6d..8f43a37e534871df58fbe482cff5e7376b1df5c4 100644 (file)
@@ -216,12 +216,15 @@ public:
 private Q_SLOTS:
        void on_latexEncodingCB_stateChanged(int state);
        void on_latexBibtexCO_activated(int n);
+       void on_latexJBibtexCO_activated(int n);
        void on_latexIndexCO_activated(int n);
 
 private:
        ///
        std::set<std::string> bibtex_alternatives;
        ///
+       std::set<std::string> jbibtex_alternatives;
+       ///
        std::set<std::string> index_alternatives;
 };
 
@@ -334,6 +337,8 @@ private Q_SLOTS:
        void removeConverter();
        void changeConverter();
        void on_cacheCB_stateChanged(int state);
+       void on_needauthForbiddenCB_toggled(bool);
+       void on_needauthCB_toggled(bool);
 
 private:
        void updateButtons();
@@ -456,6 +461,23 @@ public:
        void applyRC(LyXRC & rc) const;
        void updateRC(LyXRC const & rc);
        void updateShortcutsTW();
+
+public Q_SLOTS:
+       void selectBind();
+       void on_modifyPB_pressed();
+       void on_newPB_pressed();
+       void on_removePB_pressed();
+       void on_searchLE_textEdited();
+       ///
+       void on_shortcutsTW_itemSelectionChanged();
+       void on_shortcutsTW_itemDoubleClicked();
+       ///
+       void shortcutOkPressed();
+       void shortcutCancelPressed();
+       void shortcutClearPressed();
+       void shortcutRemovePressed();
+
+private:
        void modifyShortcut();
        /// remove selected binding, restore default value
        void removeShortcut();
@@ -472,25 +494,17 @@ public:
        FuncRequest currentBinding(KeySequence const & k);
        ///
        void setItemType(QTreeWidgetItem * item, KeyMap::ItemType tag);
-       QTreeWidgetItem * insertShortcutItem(FuncRequest const & lfun, 
-               KeySequence const & shortcut, KeyMap::ItemType tag);
-
-public Q_SLOTS:
-       void selectBind();
-       void on_modifyPB_pressed();
-       void on_newPB_pressed();
-       void on_removePB_pressed();
-       void on_searchLE_textEdited();
        ///
-       void on_shortcutsTW_itemSelectionChanged();
-       void on_shortcutsTW_itemDoubleClicked();
+       static KeyMap::ItemType itemType(QTreeWidgetItem & item);
+       /// some items need to be always hidden, for instance empty rebound
+       /// system keys
+       static bool isAlwaysHidden(QTreeWidgetItem & item);
+       /// unhide an empty system binding that may have been hidden
+       /// returns either null or the unhidden shortcut
+       void unhideEmpty(QString const & lfun, bool select);
        ///
-       void shortcutOkPressed();
-       void shortcutCancelPressed();
-       void shortcutClearPressed();
-       void shortcutRemovePressed();
-
-private:
+       QTreeWidgetItem * insertShortcutItem(FuncRequest const & lfun,
+               KeySequence const & shortcut, KeyMap::ItemType tag);
        ///
        GuiShortcutDialog * shortcut_;
        ///
@@ -506,7 +520,7 @@ private:
        // user_unbind_ holds \unbind bindings from user.bind
        // When an item is inserted, it is added to user_bind_
        // When an item from system_bind_ is deleted, it is added to user_unbind_
-       // When an item in user_bind_ or user_unbind_ is deleted, it is 
+       // When an item in user_bind_ or user_unbind_ is deleted, it is
        //      deleted (unbind)
        KeyMap system_bind_;
        KeyMap user_bind_;