]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/QPrefsDialog.h
rename LFUN enum values according to their command (as used in th minibuffer/bind...
[lyx.git] / src / frontends / qt4 / QPrefsDialog.h
index 7806af27b07372b719266d532448c242cc329bc4..0d3fcc3c80551596855df70fbea86998fbc52b38 100644 (file)
@@ -14,6 +14,7 @@
 #define QPREFSDIALOG_H
 
 #include "LColor.h"
+#include "lyxrc.h"
 
 #include "ui/QPrefsUi.h"
 
@@ -46,27 +47,29 @@ template<class UI>
        class UiWidget: public QWidget, public UI
        {
        public:
-               UiWidget(QWidget * Parent): QWidget(Parent)
+               UiWidget(QWidget * Parent = 0): QWidget(Parent)
                {
                        UI::setupUi(this);
                }
        };
 
-
 namespace lyx {
 namespace frontend {
 
 class QPrefs;
 
+///
 class QPrefsDialog : public QDialog, public Ui::QPrefsUi {
        Q_OBJECT
 public:
-       friend class QPrefs;
-
        QPrefsDialog(QPrefs *);
 
        ~QPrefsDialog();
 
+       void apply(LyXRC & rc) const;
+       void update(LyXRC const & rc);
+
+protected:
        void updateConverters();
        void updateConverterButtons();
        void updateCopiers();
@@ -118,6 +121,9 @@ protected:
 
 private:
 
+       /// languages
+       std::vector<std::string> lang_;
+
        std::vector<LColor_color> colors_;
 
        UiWidget<Ui::QPrefAsciiUi> * asciiModule;