3 * Copyright 2001 the LyX Team
4 * Read the file COPYING
6 * \author John Levon <moz@compsoc.man.ac.uk>
11 #include "QIndexDialog.h"
12 #include "ControlIndex.h"
13 #include "QtLyXView.h"
14 #include "BufferView.h"
23 #include <qlineedit.h>
24 #include <qpushbutton.h>
26 typedef Qt2CB<ControlIndex, Qt2DB<QIndexDialog> > base_class;
28 QIndex::QIndex(ControlIndex & c)
29 : base_class(c, _("Index"))
36 dialog_.reset(new QIndexDialog(this));
38 bc().setOK(dialog_->okPB);
39 bc().setCancel(dialog_->closePB);
40 bc().addReadOnly(dialog_->keywordED);
46 dialog_->keywordED->setText(controller().params().getContents().c_str());
53 controller().params().setContents(dialog_->keywordED->text().latin1());