2006-03-05 17:24:44 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
2007-08-31 05:53:55 +00:00
|
|
|
* \file GuiErrorList.h
|
2006-03-05 17:24:44 +00:00
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
2007-08-31 22:16:11 +00:00
|
|
|
#ifndef GUIERRORLIST_H
|
|
|
|
#define GUIERRORLIST_H
|
2006-03-05 17:24:44 +00:00
|
|
|
|
2007-08-31 05:53:55 +00:00
|
|
|
#include "GuiDialogView.h"
|
2007-08-31 22:16:11 +00:00
|
|
|
#include "ControlErrorList.h"
|
2007-08-11 15:48:15 +00:00
|
|
|
#include "ui_ErrorListUi.h"
|
2007-04-25 10:25:37 +00:00
|
|
|
|
|
|
|
#include <QDialog>
|
2006-03-05 17:24:44 +00:00
|
|
|
|
2006-05-03 19:51:15 +00:00
|
|
|
class QListWidgetItem;
|
|
|
|
|
2006-03-05 17:24:44 +00:00
|
|
|
namespace lyx {
|
|
|
|
namespace frontend {
|
|
|
|
|
2007-08-31 05:53:55 +00:00
|
|
|
class GuiErrorList;
|
2007-04-25 10:25:37 +00:00
|
|
|
|
2007-08-31 05:53:55 +00:00
|
|
|
class GuiErrorListDialog : public QDialog, public Ui::ErrorListUi {
|
2007-04-25 10:25:37 +00:00
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2007-08-31 05:53:55 +00:00
|
|
|
GuiErrorListDialog(GuiErrorList * form);
|
2007-04-25 10:25:37 +00:00
|
|
|
|
|
|
|
public Q_SLOTS:
|
|
|
|
void select_adaptor(QListWidgetItem *);
|
|
|
|
protected:
|
|
|
|
void closeEvent(QCloseEvent *);
|
|
|
|
void showEvent(QShowEvent *);
|
|
|
|
private:
|
2007-08-31 05:53:55 +00:00
|
|
|
GuiErrorList * form_;
|
2007-04-25 10:25:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2007-08-31 22:16:11 +00:00
|
|
|
class GuiErrorList : public GuiView<GuiErrorListDialog>
|
2006-03-05 17:24:44 +00:00
|
|
|
{
|
|
|
|
public:
|
2007-08-31 05:53:55 +00:00
|
|
|
friend class GuiErrorListDialog;
|
2006-03-05 17:24:44 +00:00
|
|
|
|
2007-08-31 05:53:55 +00:00
|
|
|
GuiErrorList(Dialog &);
|
2007-08-31 22:16:11 +00:00
|
|
|
/// parent controller
|
|
|
|
ControlErrorList & controller()
|
|
|
|
{ return static_cast<ControlErrorList &>(this->getController()); }
|
|
|
|
/// parent controller
|
|
|
|
ControlErrorList const & controller() const
|
|
|
|
{ return static_cast<ControlErrorList const &>(this->getController()); }
|
2006-03-05 17:24:44 +00:00
|
|
|
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
|
|
|
|
|
2007-08-31 22:16:11 +00:00
|
|
|
#endif // GUIERRORLIST_H
|