2001-08-19 13:25:15 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
|
|
|
* \file QIndex.h
|
2002-09-24 13:57:09 +00:00
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
2001-08-19 13:25:15 +00:00
|
|
|
*
|
2002-09-24 13:57:09 +00:00
|
|
|
* \author John Levon
|
|
|
|
* \author Kalle Dalheimer
|
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS
|
2001-08-19 13:25:15 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef QINDEX_H
|
|
|
|
#define QINDEX_H
|
|
|
|
|
2002-09-24 13:57:09 +00:00
|
|
|
|
2003-02-25 14:51:38 +00:00
|
|
|
#include "QDialogView.h"
|
2001-08-19 13:25:15 +00:00
|
|
|
|
2003-03-05 10:47:11 +00:00
|
|
|
class ControlCommand;
|
2001-08-19 13:25:15 +00:00
|
|
|
class QIndexDialog;
|
2002-08-12 14:28:43 +00:00
|
|
|
|
2001-08-19 13:25:15 +00:00
|
|
|
|
2001-08-21 01:14:54 +00:00
|
|
|
class QIndex :
|
2003-03-05 10:47:11 +00:00
|
|
|
public QController<ControlCommand, QView<QIndexDialog> >
|
2001-08-25 03:00:19 +00:00
|
|
|
{
|
2002-10-20 01:48:28 +00:00
|
|
|
public:
|
2001-08-21 01:14:54 +00:00
|
|
|
friend class QIndexDialog;
|
2002-03-21 21:21:28 +00:00
|
|
|
|
2003-03-05 10:47:11 +00:00
|
|
|
QIndex(Dialog &, QString const & title, QString const & label);
|
2001-08-25 20:04:15 +00:00
|
|
|
protected:
|
|
|
|
virtual bool isValid();
|
2002-03-21 21:21:28 +00:00
|
|
|
private:
|
2001-08-21 01:14:54 +00:00
|
|
|
/// Apply changes
|
|
|
|
virtual void apply();
|
|
|
|
/// update
|
2001-08-25 20:04:15 +00:00
|
|
|
virtual void update_contents();
|
2001-08-21 01:14:54 +00:00
|
|
|
/// build the dialog
|
2001-08-26 00:29:39 +00:00
|
|
|
virtual void build_dialog();
|
2003-03-05 10:47:11 +00:00
|
|
|
|
|
|
|
///
|
|
|
|
QString const label_;
|
2001-08-19 13:25:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // QINDEX_H
|