GuiPrintNomencl.{cpp,h}:
[lyx.git] / src / frontends / qt4 / GuiIndices.h
blob66cea923ef15b1b812d906806719ae3a3b4465b0
1 // -*- C++ -*-
2 /**
3 * \file GuiIndices.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Edwin Leuven
8 * \author Jürgen Spitzmüller
10 * Full author contact details are available in file CREDITS.
13 #ifndef GUIINDICES_H
14 #define GUIINDICES_H
16 #include "GuiDocument.h"
17 #include "ui_IndicesUi.h"
18 #include "IndicesList.h"
20 #include <QWidget>
22 class QTreeWidgetItem;
24 namespace lyx {
26 class BufferParams;
28 namespace frontend {
30 class GuiIndices : public QWidget, public Ui::IndicesUi
32 Q_OBJECT
33 public:
34 GuiIndices(QWidget * parent = 0);
36 void update(BufferParams const & params);
37 void apply(BufferParams & params) const;
39 Q_SIGNALS:
40 void changed();
42 protected:
43 void toggleColor(QTreeWidgetItem *);
44 void updateView();
46 protected Q_SLOTS:
47 void on_indexCO_activated(int n);
48 void on_indexOptionsED_textChanged(QString);
49 void on_addIndexPB_pressed();
50 void on_renamePB_clicked();
51 void on_removePB_pressed();
52 void on_indicesTW_itemDoubleClicked(QTreeWidgetItem *, int);
53 void on_colorPB_clicked();
54 void on_multipleIndicesCB_toggled(bool);
56 private:
57 /// Contains all legal indices for this doc
58 IndicesList indiceslist_;
61 } // namespace frontend
62 } // namespace lyx
64 #endif // GUIINDICES_H