2009-04-16 07:29:01 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
|
|
|
* \file GuiIndices.h
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
*
|
|
|
|
* \author Edwin Leuven
|
|
|
|
* \author Jürgen Spitzmüller
|
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef GUIINDICES_H
|
|
|
|
#define GUIINDICES_H
|
|
|
|
|
|
|
|
#include "IndicesList.h"
|
|
|
|
|
2010-07-12 21:42:25 +00:00
|
|
|
#include "ui_IndicesUi.h"
|
|
|
|
|
2009-04-16 07:29:01 +00:00
|
|
|
#include <QWidget>
|
|
|
|
|
|
|
|
class QTreeWidgetItem;
|
|
|
|
|
|
|
|
namespace lyx {
|
|
|
|
|
|
|
|
class BufferParams;
|
|
|
|
|
|
|
|
namespace frontend {
|
|
|
|
|
|
|
|
class GuiIndices : public QWidget, public Ui::IndicesUi
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
GuiIndices(QWidget * parent = 0);
|
|
|
|
|
|
|
|
void update(BufferParams const & params);
|
|
|
|
void apply(BufferParams & params) const;
|
|
|
|
|
|
|
|
Q_SIGNALS:
|
|
|
|
void changed();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
void toggleColor(QTreeWidgetItem *);
|
|
|
|
void updateView();
|
|
|
|
|
|
|
|
protected Q_SLOTS:
|
2009-05-22 07:20:00 +00:00
|
|
|
void on_indexCO_activated(int n);
|
2011-09-24 16:39:20 +00:00
|
|
|
void on_indexOptionsLE_textChanged(QString);
|
2009-04-16 07:29:01 +00:00
|
|
|
void on_addIndexPB_pressed();
|
|
|
|
void on_renamePB_clicked();
|
|
|
|
void on_removePB_pressed();
|
|
|
|
void on_indicesTW_itemDoubleClicked(QTreeWidgetItem *, int);
|
2009-07-11 06:29:57 +00:00
|
|
|
void on_indicesTW_itemSelectionChanged();
|
2009-04-16 07:29:01 +00:00
|
|
|
void on_colorPB_clicked();
|
|
|
|
void on_multipleIndicesCB_toggled(bool);
|
|
|
|
|
|
|
|
private:
|
|
|
|
/// Contains all legal indices for this doc
|
|
|
|
IndicesList indiceslist_;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace frontend
|
|
|
|
} // namespace lyx
|
|
|
|
|
|
|
|
#endif // GUIINDICES_H
|