2006-03-05 17:24:44 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
|
|
|
* \file QErrorList.h
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
*
|
|
|
|
* \author Alfredo Braunstein
|
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef QERRORLIST_H
|
|
|
|
#define QERRORLIST_H
|
|
|
|
|
|
|
|
#include "QDialogView.h"
|
2007-04-25 10:25:37 +00:00
|
|
|
#include "ui/ErrorListUi.h"
|
|
|
|
|
|
|
|
#include <QDialog>
|
2006-03-05 17:24:44 +00:00
|
|
|
|
2006-05-03 19:51:15 +00:00
|
|
|
class QListWidgetItem;
|
2007-04-25 10:25:37 +00:00
|
|
|
class QCloseEvent;
|
|
|
|
class QShowEvent;
|
2006-05-03 19:51:15 +00:00
|
|
|
|
2006-03-05 17:24:44 +00:00
|
|
|
namespace lyx {
|
|
|
|
namespace frontend {
|
|
|
|
|
2007-04-25 10:25:37 +00:00
|
|
|
class QErrorList;
|
|
|
|
|
|
|
|
class QErrorListDialog : public QDialog, public Ui::QErrorListUi {
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
QErrorListDialog(QErrorList * form);
|
|
|
|
|
|
|
|
public Q_SLOTS:
|
|
|
|
void select_adaptor(QListWidgetItem *);
|
|
|
|
protected:
|
|
|
|
void closeEvent(QCloseEvent *);
|
|
|
|
void showEvent(QShowEvent *);
|
|
|
|
private:
|
|
|
|
QErrorList * form_;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2006-03-05 17:24:44 +00:00
|
|
|
class ControlErrorList;
|
|
|
|
|
|
|
|
class QErrorList :
|
|
|
|
public QController<ControlErrorList, QView<QErrorListDialog> >
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
friend class QErrorListDialog;
|
|
|
|
|
|
|
|
QErrorList(Dialog &);
|
|
|
|
private:
|
|
|
|
/// select an entry
|
2006-05-03 19:51:15 +00:00
|
|
|
void select(QListWidgetItem *);
|
2006-03-05 17:24:44 +00:00
|
|
|
/// required apply
|
|
|
|
virtual void apply() {}
|
|
|
|
/// build dialog
|
|
|
|
virtual void build_dialog();
|
|
|
|
/// update contents
|
|
|
|
virtual void update_contents();
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace frontend
|
|
|
|
} // namespace lyx
|
|
|
|
|
|
|
|
#endif // QERRORLIST_H
|