]> git.lyx.org Git - lyx.git/blob - src/frontends/gtk/GPreferences.h
enable Font cache only for MacOSX and inline width() for other platform.
[lyx.git] / src / frontends / gtk / GPreferences.h
1 // -*- C++ -*-
2 /**
3  * \file GPreferences.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 Spray
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef GPREFERENCES_H
13 #define GPREFERENCES_H
14
15 #include "GViewBase.h"
16
17 #include <vector>
18
19 namespace lyx {
20 namespace frontend {
21
22 class ControlPrefs;
23
24 /** This class provides a GTK+ implementation of the Preferences Dialog.
25  */
26 class GPreferences : public GViewCB<ControlPrefs, GViewGladeB> {
27 public:
28         GPreferences(Dialog & parent);
29 private:
30         virtual void apply();
31         virtual void doBuild();
32         virtual void update();
33
34         // >>> Font tab
35         Gtk::FontButton *romanfontbutton_;
36         Gtk::FontButton *sansseriffontbutton_;
37         Gtk::FontButton *typewriterfontbutton_;
38         Gtk::Adjustment *dpiadj_;
39         Gtk::Adjustment *zoomadj_;
40         // <<< Font tab
41         
42         // >>> Graphics tab
43         Gtk::RadioButton *graphicscolorradio_;
44         Gtk::RadioButton *graphicsgrayscaleradio_;
45         Gtk::RadioButton *graphicsmonoradio_;
46         Gtk::RadioButton *graphicsnoneradio_;
47         
48         Gtk::RadioButton *instprevonradio_;
49         Gtk::RadioButton *instprevoffradio_;
50         Gtk::RadioButton *instprevnomathradio_;
51         // <<< Graphics tab
52         
53         // >>> Keyboard tab
54         void keyboard_sensitivity ();
55         Gtk::CheckButton *keyboardmapcheck_;
56         Gtk::FileChooserButton *keyboardmap1fcbutton_;
57         Gtk::FileChooserButton *keyboardmap2fcbutton_;
58         // <<< Keyboard tab
59         
60         // >>> Language tab
61         std::vector<std::string> lang_;
62         Gtk::ComboBoxText defaultlanguagecombo_;
63         Gtk::Entry *languagepackageentry_;
64         Gtk::Entry *commandstartentry_;
65         Gtk::Entry *commandendentry_;
66         Gtk::CheckButton *usebabelcheck_;
67         Gtk::CheckButton *markforeigncheck_;
68         Gtk::CheckButton *globalcheck_;
69         Gtk::CheckButton *RTLsupportcheck_;
70         Gtk::CheckButton *autobegincheck_;
71         Gtk::CheckButton *autoendcheck_;
72         // <<< Language tab
73         
74         // >>> Spellchecker tab
75         Gtk::ComboBoxText spellcheckercombo_;
76         Gtk::Entry *alternativelanguageentry_;
77         Gtk::Entry *escapecharactersentry_;
78         Gtk::FileChooserButton *personaldictionaryfcbutton_;
79         Gtk::CheckButton *acceptcompoundcheck_;
80         Gtk::CheckButton *useinputenccheck_;
81         // <<< Spellchecker tab
82 };
83
84 } // namespace frontend
85 } // namespace lyx
86
87 #endif // GPREFERENCES_H