3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
8 * Full author contact details are available in file CREDITS
14 #pragma implementation
18 #include "QTocDialog.h"
19 #include "qt_helpers.h"
21 #include <qlistview.h>
22 #include <qpushbutton.h>
25 QTocDialog::QTocDialog(QToc * form)
26 : QTocDialogBase(0, 0, false, 0),
30 tocLV->setSorting(-1);
32 connect(closePB, SIGNAL(clicked()),
33 form, SLOT(slotClose()));
37 QTocDialog::~QTocDialog()
42 void QTocDialog::activate_adaptor(int)
44 form_->updateToc(form_->depth_);
48 void QTocDialog::depth_adaptor(int depth)
50 form_->set_depth(depth);
54 void QTocDialog::select_adaptor(QListViewItem * item)
56 form_->select(fromqstr(item->text(0)));
60 void QTocDialog::update_adaptor()
66 void QTocDialog::closeEvent(QCloseEvent * e)