]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiIndices.h
Add missing initialization
[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 "IndicesList.h"
17
18 #include "ui_IndicesUi.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, bool const readonly);
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_newIndexLE_textChanged(QString);
49         void on_indexOptionsLE_textChanged(QString);
50         void on_addIndexPB_pressed();
51         void on_renamePB_clicked();
52         void on_removePB_pressed();
53         void on_indicesTW_itemDoubleClicked(QTreeWidgetItem *, int);
54         void on_indicesTW_itemSelectionChanged();
55         void on_colorPB_clicked();
56         void on_multipleIndicesCB_toggled(bool);
57
58 private:
59         ///
60         void updateWidgets();
61         /// Contains all legal indices for this doc
62         IndicesList indiceslist_;
63         ///
64         bool readonly_;
65         ///
66         bool use_indices_;
67 };
68
69 } // namespace frontend
70 } // namespace lyx
71
72 #endif // GUIINDICES_H