]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiIndices.h
* fix spelling in comments to please John.
[lyx.git] / src / frontends / qt4 / GuiIndices.h
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.
6  *
7  * \author Edwin Leuven
8  * \author Jürgen Spitzmüller
9  *
10  * Full author contact details are available in file CREDITS.
11  */
12
13 #ifndef GUIINDICES_H
14 #define GUIINDICES_H
15
16 #include "GuiDocument.h"
17 #include "ui_IndicesUi.h"
18 #include "IndicesList.h"
19
20 #include <QWidget>
21
22 class QTreeWidgetItem;
23
24 namespace lyx {
25
26 class BufferParams;
27
28 namespace frontend {
29
30 class GuiIndices : public QWidget, public Ui::IndicesUi
31 {
32         Q_OBJECT
33 public:
34         GuiIndices(QWidget * parent = 0);
35
36         void update(BufferParams const & params);
37         void apply(BufferParams & params) const;
38
39 Q_SIGNALS:
40         void changed();
41
42 protected:
43         void toggleColor(QTreeWidgetItem *);
44         void updateView();
45
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_indicesTW_itemSelectionChanged();
54         void on_colorPB_clicked();
55         void on_multipleIndicesCB_toggled(bool);
56
57 private:
58         /// Contains all legal indices for this doc
59         IndicesList indiceslist_;
60 };
61
62 } // namespace frontend
63 } // namespace lyx
64
65 #endif // GUIINDICES_H