]> git.lyx.org Git - features.git/blobdiff - src/frontends/controllers/ControlPrefs.h
Replace LString.h with support/std_string.h,
[features.git] / src / frontends / controllers / ControlPrefs.h
index 329f674529996859a3d4a2eea4c8ab482f63fa46..581a81bdb292236023f1edf7f349c636b57c9916 100644 (file)
@@ -6,22 +6,24 @@
  *
  * \author John Levon
  *
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
  */
 
 #ifndef CONTROLPREFS_H
 #define CONTROLPREFS_H
 
-#ifdef __GNUG__
-#pragma interface
-#endif
 
 #include "ControlDialog_impl.h"
-#include "LString.h"
+#include "support/std_string.h"
 #include "funcrequest.h"
 #include "lyxrc.h"
+#include "LColor.h"
+
+#include <utility>
+
+class Converters;
+class Formats;
 
 class ControlPrefs : public ControlDialogBI {
 public:
        ControlPrefs(LyXView &, Dialogs &);
@@ -29,18 +31,45 @@ public:
        // FIXME: we should probably devolve the individual
        // settings to methods here. But for now, this will
        // do
-       LyXRC & rc() { return rc_; } 
+
+       LyXRC & rc() { return rc_; }
 
        LyXRC const & rc() const { return rc_; }
-       /// save the rc
-       void save();
+
+       /// various file pickers
+       string const browsebind(string const & file);
+       string const browseUI(string const & file);
+       string const browsekbmap(string const & file);
+       string const browsedict(string const & file);
+
+       /// general browse
+       string const browse(string const & file, string const & title);
+
+       /// browse directory
+       string const browsedir(string const & path, string const & title);
+
+       /// redraw widgets (for xforms color change)
+       void redrawGUI();
+
+       /// set a color
+       void setColor(LColor::color col, string const & hex);
+
+       /// update the screen fonts after change
+       void updateScreenFonts();
+
+       /// set global converters
+       void setConverters(Converters const & conv);
+
+       /// set global formats
+       void setFormats(Formats const & form);
+
 private:
+       /// get current lyxrc
+       virtual void setParams();
+
        /// apply current lyxrc
        virtual void apply();
+
        /// temporary lyxrc
        LyXRC rc_;
 };