]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlPrefs.h
Small clean-up.
[lyx.git] / src / frontends / controllers / ControlPrefs.h
1 // -*- C++ -*-
2 /**
3  * \file ControlPrefs.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author John Levon
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef CONTROLPREFS_H
13 #define CONTROLPREFS_H
14
15
16 #include "ControlDialog_impl.h"
17 #include "support/std_string.h"
18 #include "lyxrc.h"
19
20
21 class Converters;
22 class LColor_color;
23 class Formats;
24
25 class ControlPrefs : public ControlDialogBI {
26 public:
27         ControlPrefs(LyXView &, Dialogs &);
28
29         // FIXME: we should probably devolve the individual
30         // settings to methods here. But for now, this will
31         // do
32
33         LyXRC & rc() { return rc_; }
34
35         LyXRC const & rc() const { return rc_; }
36
37         /// various file pickers
38         string const browsebind(string const & file);
39         string const browseUI(string const & file);
40         string const browsekbmap(string const & file);
41         string const browsedict(string const & file);
42
43         /// general browse
44         string const browse(string const & file, string const & title);
45
46         /// browse directory
47         string const browsedir(string const & path, string const & title);
48
49         /// redraw widgets (for xforms color change)
50         void redrawGUI();
51
52         /// set a color
53         void setColor(LColor_color col, string const & hex);
54
55         /// update the screen fonts after change
56         void updateScreenFonts();
57
58         /// set global converters
59         void setConverters(Converters const & conv);
60
61         /// set global formats
62         void setFormats(Formats const & form);
63
64 private:
65         /// get current lyxrc
66         virtual void setParams();
67
68         /// apply current lyxrc
69         virtual void apply();
70
71         /// temporary lyxrc
72         LyXRC rc_;
73 };
74
75 #endif // CONTROLPREFS_H