4 * John Levon, moz@compsoc.man.ac.uk
7 /***************************************************************************
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
14 ***************************************************************************/
16 #ifndef FORMTOCDIALOG_H
17 #define FORMTOCDIALOG_H
26 #include <qpushbutton.h>
27 #include <qcombobox.h>
28 #include <qlistview.h>
33 class FormTocDialog : public QDialog {
36 FormTocDialog(FormToc *form, QWidget *parent=0, const char *name=0,
37 bool modal=false, WFlags f=0);
44 QPushButton *buttonUpdate;
45 QPushButton *buttonClose;
50 void closeEvent(QCloseEvent *e);
57 QHBoxLayout *topLayout;
59 QHBoxLayout *buttonLayout;
62 /// adaptor to FormToc::select
63 void select_adaptor(QListViewItem *item) {
64 form_->select(item->text(0));
67 /// adaptor to FormToc::set_depth
68 void depth_adaptor(int depth) {
69 form_->set_depth(depth);
72 /// adaptor to FormToc::update
73 void update_adaptor(void) {
77 // adaptors to FormToc::set_type
78 void activate_adaptor(int index) {
81 form_->set_type(Buffer::TOC_TOC);
84 form_->set_type(Buffer::TOC_LOF);
87 form_->set_type(Buffer::TOC_LOT);
90 form_->set_type(Buffer::TOC_LOA);
93 lyxerr[Debug::GUI] << "Unknown TOC combo selection." << endl;
98 /// adaptor to FormToc::close
99 void close_adaptor(void) {