]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QPrefs.C
qtabular skeleton
[lyx.git] / src / frontends / qt2 / QPrefs.C
1 /**
2  * \file QPrefs.C
3  * This file is part of LyX, the document processor.
4  * Licence details can be found in the file COPYING.
5  *
6  * \author John Levon
7  *
8  * Full author contact details are available in file CREDITS
9  */
10
11 #include <config.h>
12
13 #ifdef __GNUG__
14 #pragma implementation
15 #endif
16
17 #include "ControlPrefs.h"
18 #include "QPrefsDialog.h"
19 #include "QPrefs.h"
20 #include "Qt2BC.h"
21 #include "lyxrc.h"
22
23 #include <qpushbutton.h>
24  
25 typedef Qt2CB<ControlPrefs, Qt2DB<QPrefsDialog> > base_class;
26
27
28 QPrefs::QPrefs()
29         : base_class(_("LyX: Preferences"))
30 {
31 }
32
33
34 void QPrefs::build_dialog()
35 {
36         dialog_.reset(new QPrefsDialog(this));
37
38         // FIXME: wrong
39         bc().setOK(dialog_->savePB);
40         bc().setApply(dialog_->applyPB);
41         bc().setCancel(dialog_->closePB);
42         bc().setRestore(dialog_->restorePB);
43 }
44
45
46 void QPrefs::apply()
47 {
48         LyXRC & rc(controller().rc());
49
50         // do something ... 
51 }
52
53
54 void QPrefs::update_contents()
55 {
56         LyXRC const & rc(controller().rc());
57
58         // do something ...
59 }