2006-03-05 17:24:44 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
|
|
|
* \file QIndex.h
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
*
|
|
|
|
* \author John Levon
|
|
|
|
* \author Kalle Dalheimer
|
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef QINDEX_H
|
|
|
|
#define QINDEX_H
|
|
|
|
|
|
|
|
#include "QDialogView.h"
|
|
|
|
|
|
|
|
namespace lyx {
|
|
|
|
namespace frontend {
|
|
|
|
|
|
|
|
class ControlCommand;
|
|
|
|
class QIndexDialog;
|
|
|
|
|
|
|
|
|
|
|
|
class QIndex :
|
|
|
|
public QController<ControlCommand, QView<QIndexDialog> >
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
friend class QIndexDialog;
|
|
|
|
|
2006-10-09 10:35:14 +00:00
|
|
|
QIndex(Dialog &, lyx::docstring const & title, QString const & label);
|
2006-03-05 17:24:44 +00:00
|
|
|
protected:
|
|
|
|
virtual bool isValid();
|
|
|
|
private:
|
|
|
|
/// Apply changes
|
|
|
|
virtual void apply();
|
|
|
|
/// update
|
|
|
|
virtual void update_contents();
|
|
|
|
/// build the dialog
|
|
|
|
virtual void build_dialog();
|
|
|
|
|
|
|
|
///
|
|
|
|
QString const label_;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace frontend
|
|
|
|
} // namespace lyx
|
|
|
|
|
|
|
|
#endif // QINDEX_H
|