-class GuiPreferences : public GuiDialog, public Ui::PrefsUi
-{
- Q_OBJECT
-public:
- GuiPreferences(LyXView & lv);
-
- void apply(LyXRC & rc) const;
- void updateRc(LyXRC const & rc);
-
-public Q_SLOTS:
- void change_adaptor();
-
-public:
- //
- void closeEvent(QCloseEvent * e);
- ///
- void add(PrefModule * module);
- /// Apply changes
- void applyView();
- /// update (do we need this?)
- void updateContents();
-
- std::vector<PrefModule *> modules_;
-
- ///
- bool initialiseParams(std::string const &);
- ///
- void clearParams() {}
- ///
- void dispatchParams();
- ///
- bool isBufferDependent() const { return false; }
-
- /// various file pickers
- docstring const browsebind(docstring const & file) const;
- docstring const browseUI(docstring const & file) const;
- docstring const browsekbmap(docstring const & file) const;
- docstring const browsedict(docstring const & file) const;
-
- /// general browse
- docstring const browse(docstring const & file,
- docstring const & title) const;
-
- /// browse directory
- docstring const browsedir(docstring const & path,
- docstring const & title) const;
-
- /// set a color
- void setColor(Color_color col, std::string const & hex);
-
- /// update the screen fonts after change
- void updateScreenFonts();
-
- /// adjust the prefs paper sizes
- PAPER_SIZE toPaperSize(int i) const;
- /// adjust the prefs paper sizes
- int fromPaperSize(PAPER_SIZE papersize) const;
-
- LyXRC & rc() { return rc_; }
- Converters & converters() { return converters_; }
- Formats & formats() { return formats_; }
- Movers & movers() { return movers_; }
-
-private:
- /// temporary lyxrc
- LyXRC rc_;
- /// temporary converters
- Converters converters_;
- /// temporary formats
- Formats formats_;
- /// temporary movers
- Movers movers_;
-
- /// A list of colors to be dispatched
- std::vector<std::string> colors_;
-
- bool redraw_gui_;
- bool update_screen_font_;
-};
-
-