]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiPrefs.h
Fix the tab ordering of GuiDocument components.
[lyx.git] / src / frontends / qt4 / GuiPrefs.h
index 1fb7d069d32858990b37447754542d714f028935..571cb9c76df19d9ad3aae3be7821e7eea2ec0f4f 100644 (file)
@@ -26,8 +26,7 @@
 
 #include "ui_PrefsUi.h"
 
-#include "ui_PrefPlaintextUi.h"
-#include "ui_PrefDateUi.h"
+#include "ui_PrefOutputUi.h"
 #include "ui_PrefInputUi.h"
 #include "ui_PrefLatexUi.h"
 #include "ui_PrefScreenFontsUi.h"
@@ -72,6 +71,9 @@ public:
 public Q_SLOTS:
        void change_adaptor();
 
+Q_SIGNALS:
+       void prefsApplied(LyXRC const & rc);
+
 public:
        /// Apply changes
        void applyView();
@@ -91,7 +93,6 @@ public:
        QString browsebind(QString const & file) const;
        QString browseUI(QString const & file) const;
        QString browsekbmap(QString const & file) const;
-       QString browsedict(QString const & file) const;
 
        /// general browse
        QString browse(QString const & file, QString const & title) const;
@@ -158,22 +159,11 @@ Q_SIGNALS:
 };
 
 
-class PrefPlaintext : public PrefModule, public Ui::PrefPlaintextUi
+class PrefOutput : public PrefModule, public Ui::PrefOutputUi
 {
        Q_OBJECT
 public:
-       PrefPlaintext(GuiPreferences * form);
-
-       virtual void apply(LyXRC & rc) const;
-       virtual void update(LyXRC const & rc);
-};
-
-
-class PrefDate : public PrefModule, public Ui::PrefDateUi
-{
-       Q_OBJECT
-public:
-       PrefDate(GuiPreferences * form);
+       PrefOutput(GuiPreferences * form);
 
        virtual void apply(LyXRC & rc) const;
        virtual void update(LyXRC const & rc);
@@ -196,6 +186,7 @@ private Q_SLOTS:
        void on_firstKeymapPB_clicked(bool);
        void on_secondKeymapPB_clicked(bool);
        void on_keymapCB_toggled(bool);
+       void on_scrollzoomEnableCB_toggled(bool);
 
 private:
        QString testKeymap(QString const & keymap);
@@ -227,14 +218,15 @@ public:
        virtual void update(LyXRC const & rc);
 
 private Q_SLOTS:
+       void on_latexEncodingCB_stateChanged(int state);
        void on_latexBibtexCO_activated(int n);
        void on_latexIndexCO_activated(int n);
 
 private:
        ///
-       std::vector<std::string> bibtex_alternatives;
+       std::set<std::string> bibtex_alternatives;
        ///
-       std::vector<std::string> index_alternatives;
+       std::set<std::string> index_alternatives;
 };
 
 
@@ -251,6 +243,9 @@ private Q_SLOTS:
        void selectRoman(const QString&);
        void selectSans(const QString&);
        void selectTypewriter(const QString&);
+
+public Q_SLOTS:
+       void updateScreenFontSizes(LyXRC const & rc);
 };
 
 
@@ -265,6 +260,7 @@ public:
 
 private Q_SLOTS:
        void changeColor();
+       void changeSysColor();
        void changeLyxObjectsSelection();
 
 private:
@@ -282,6 +278,10 @@ public:
 
        void apply(LyXRC & rc) const;
        void update(LyXRC const & rc);
+
+private Q_SLOTS:
+       void on_instantPreviewCO_currentIndexChanged(int);
+       void on_displayGraphicsCB_toggled(bool);
 };
 
 
@@ -301,6 +301,7 @@ private Q_SLOTS:
        void selectBackupdir();
        void selectWorkingdir();
        void selectThesaurusdir();
+       void selectHunspelldir();
        void selectLyxPipe();
 
 };
@@ -316,7 +317,7 @@ public:
        void update(LyXRC const & rc);
 
 private Q_SLOTS:
-       void selectDict();
+       void on_spellcheckerCB_currentIndexChanged(int);
 };
 
 
@@ -336,7 +337,7 @@ private Q_SLOTS:
        void updateConverter();
        void switchConverter();
        void removeConverter();
-       void converter_changed();
+       void changeConverter();
        void on_cacheCB_stateChanged(int state);
 
 private:
@@ -359,7 +360,7 @@ Q_SIGNALS:
 
 private Q_SLOTS:
        void on_copierED_textEdited(const QString & s);
-       void on_extensionED_textEdited(const QString &);
+       void on_extensionsED_textEdited(const QString &);
        void on_viewerED_textEdited(const QString &);
        void on_editorED_textEdited(const QString &);
        void on_shortcutED_textEdited(const QString &);
@@ -369,11 +370,21 @@ private Q_SLOTS:
        void on_formatsCB_editTextChanged(const QString &);
        void on_formatNewPB_clicked();
        void on_formatRemovePB_clicked();
+       void on_viewerCO_currentIndexChanged(int i);
+       void on_editorCO_currentIndexChanged(int i);
        void setFlags();
        void updatePrettyname();
 
 private:
        Format & currentFormat();
+       ///
+       void updateViewers();
+       ///
+       void updateEditors();
+       ///
+       LyXRC::Alternatives viewer_alternatives;
+       ///
+       LyXRC::Alternatives editor_alternatives;
 };
 
 
@@ -388,6 +399,7 @@ public:
 
 private Q_SLOTS:
        void on_uiLanguageCO_currentIndexChanged(int);
+       void on_languagePackageCO_currentIndexChanged(int);
 };