]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormPreferences.h
5657707cb98094fb3a517d350aed9de54fd53931
[lyx.git] / src / frontends / xforms / FormPreferences.h
1 // -*- C++ -*-
2 /* This file is part of
3  * ======================================================
4  * 
5  *           LyX, The Document Processor
6  *       
7  *          Copyright 1995 Matthias Ettrich
8  *          Copyright 1995-2000 The LyX Team.
9  *
10  *          This file copyright 1999-2000
11  *          Allan Rae
12  *======================================================*/
13 /* FormPreferences.h
14  * FormPreferences Interface Class
15  */
16
17 #ifndef FORMPREFERENCES_H
18 #define FORMPREFERENCES_H
19
20 #include "FormBase.h"
21
22 #ifdef __GNUG_
23 #pragma interface
24 #endif
25
26 class LyXView;
27 class Dialogs;
28
29 struct FD_form_preferences;
30 struct FD_form_lnf_general;
31 struct FD_form_screen_fonts;
32 struct FD_form_interface;
33 struct FD_form_printer;
34 struct FD_form_paths;
35 struct FD_form_outer_tab;
36 struct FD_form_outputs_general;
37
38 /** This class provides an XForms implementation of the FormPreferences Dialog.
39     The preferences dialog allows users to set/save their preferences.
40  */
41 class FormPreferences : public FormBaseBI {
42 public:
43         /// #FormPreferences x(LyXFunc ..., Dialogs ...);#
44         FormPreferences(LyXView *, Dialogs *);
45         ///
46         ~FormPreferences();
47 private:
48         /// Update the dialog.
49         virtual void update(bool = false);
50         ///
51         virtual void hide();
52         /// OK from dialog
53         virtual void ok();
54         /// Apply from dialog
55         virtual void apply();
56         /// Restore from dialog
57         virtual void restore();
58         /// Filter the inputs -- return true if entries are valid
59         virtual bool input(FL_OBJECT *, long);
60         /// Build the dialog
61         virtual void build();
62         ///
63         virtual FL_FORM * form() const;
64         ///
65         FD_form_preferences * build_preferences();
66         ///
67         FD_form_outer_tab * build_outer_tab();
68         ///
69         FD_form_lnf_general * build_lnf_general();
70         ///
71         FD_form_screen_fonts * build_screen_fonts();
72         ///
73         FD_form_interface * build_interface();
74         ///
75         FD_form_printer * build_printer();
76         ///
77         FD_form_paths * build_paths();
78         ///
79         FD_form_outputs_general * build_outputs_general();
80
81         /// Real GUI implementation.
82         FD_form_preferences * dialog_;
83         /// Outputs tabfolder
84         FD_form_outer_tab * outputs_tab_;
85         /// HCI configuration
86         FD_form_outer_tab * look_n_feel_tab_;
87         /// reLyX and other import/input stuff
88         FD_form_outer_tab * inputs_tab_;
89         ///
90         FD_form_lnf_general * lnf_general_;
91         ///
92         FD_form_screen_fonts * screen_fonts_;
93         ///
94         FD_form_interface * interface_;
95         ///
96         FD_form_printer * printer_;
97         ///
98         FD_form_paths * paths_;
99         ///
100         FD_form_outputs_general * outputs_general_;
101 };
102
103 #endif