]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiIndices.h
Make the InsetInfo dialog a bit less esoteric.
[lyx.git] / src / frontends / qt4 / GuiIndices.h
index 87d946fa5171f9aa412555b652fac4464ae9252e..efaec8354f7884a9a3f12da939467aa05c2e7519 100644 (file)
 #ifndef GUIINDICES_H
 #define GUIINDICES_H
 
-#include "GuiDocument.h"
-#include "ui_IndicesUi.h"
 #include "IndicesList.h"
 
+#include "ui_IndicesUi.h"
+
 #include <QWidget>
 
 class QTreeWidgetItem;
@@ -33,7 +33,7 @@ class GuiIndices : public QWidget, public Ui::IndicesUi
 public:
        GuiIndices(QWidget * parent = 0);
 
-       void update(BufferParams const & params);
+       void update(BufferParams const & params, bool const readonly);
        void apply(BufferParams & params) const;
 
 Q_SIGNALS:
@@ -44,16 +44,26 @@ protected:
        void updateView();
 
 protected Q_SLOTS:
+       void on_indexCO_activated(int n);
+       void on_newIndexLE_textChanged(QString);
+       void on_indexOptionsLE_textChanged(QString);
        void on_addIndexPB_pressed();
        void on_renamePB_clicked();
        void on_removePB_pressed();
        void on_indicesTW_itemDoubleClicked(QTreeWidgetItem *, int);
+       void on_indicesTW_itemSelectionChanged();
        void on_colorPB_clicked();
        void on_multipleIndicesCB_toggled(bool);
 
 private:
+       ///
+       void updateWidgets();
        /// Contains all legal indices for this doc
        IndicesList indiceslist_;
+       ///
+       bool readonly_;
+       ///
+       bool use_indices_;
 };
 
 } // namespace frontend