3 * Copyright 2001 the LyX Team
4 * Read the file COPYING
11 #include "QtLyXView.h"
12 #include "FormIndex.h"
14 #include "ControlIndex.h"
17 FormIndex::FormIndex(ControlIndex & c)
18 : KFormBase<ControlIndex, IndexDialog>(c)
23 void FormIndex::build()
25 dialog_.reset(new IndexDialog(this, 0, _("LyX: Index")));
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);
37 void FormIndex::update()
39 dialog_->setIndexText(controller().params().getContents().c_str());
43 void FormIndex::apply()
45 controller().params().setContents(dialog_->getIndexText());