]> git.lyx.org Git - features.git/blob - src/frontends/kde/FormIndex.C
Update to MVC. Ref,Toc and citation don't work at all currently.
[features.git] / src / frontends / kde / FormIndex.C
1 /**
2  * \file FormIndex.C
3  * Copyright 2001 the LyX Team
4  * Read the file COPYING
5  *
6  * \author John Levon
7  */
8
9 #include <config.h>
10
11 #include "QtLyXView.h"
12 #include "FormIndex.h"
13 #include "indexdlg.h" 
14 #include "ControlIndex.h" 
15 #include "gettext.h"
16
17 FormIndex::FormIndex(ControlIndex & c)
18         : KFormBase<ControlIndex, IndexDialog>(c) 
19 {
20 }
21
22
23 void FormIndex::build()
24 {
25         dialog_.reset(new IndexDialog(this, 0, _("LyX: Index")));
26
27         // FIXME
28  
29         //bc().setUndoAll(dialog_->buttonRestore);
30         bc().setOK(dialog_->button_ok);
31         //bc().setApply(dialog_->buttonApply); 
32         bc().setCancel(dialog_->button_cancel);
33         bc().addReadOnly(dialog_->line_index);
34 }
35  
36
37 void FormIndex::update()
38 {
39         dialog_->setIndexText(controller().params().getContents().c_str());
40 }
41
42  
43 void FormIndex::apply()
44 {
45         controller().params().setContents(dialog_->getIndexText());
46 }