2013-05-30 02:18:28 +00:00
|
|
|
#ifndef ARTICLEINSPECTOR_HH
|
|
|
|
#define ARTICLEINSPECTOR_HH
|
|
|
|
|
2013-07-18 13:02:39 +00:00
|
|
|
#include <QtGlobal>
|
|
|
|
|
|
|
|
#if QT_VERSION >= 0x040600
|
|
|
|
|
2013-05-30 02:18:28 +00:00
|
|
|
#include <QWebInspector>
|
|
|
|
#include <list>
|
|
|
|
#include "config.hh"
|
|
|
|
#include "ex.hh"
|
|
|
|
|
|
|
|
class ArticleInspector : public QWebInspector
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
DEF_EX( exInit, "Article inspector failed to init", std::exception )
|
|
|
|
|
|
|
|
explicit ArticleInspector( Config::Class * cfg, QWidget* parent = 0 );
|
|
|
|
~ArticleInspector();
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
void beforeClosed();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
void showEvent( QShowEvent *event );
|
|
|
|
|
|
|
|
private:
|
|
|
|
Config::Class * cfg;
|
|
|
|
|
|
|
|
static std::list< ArticleInspector * > openedInspectors;
|
|
|
|
};
|
|
|
|
|
2013-07-18 13:02:39 +00:00
|
|
|
#endif // QT_VERSION
|
|
|
|
|
2013-05-30 02:18:28 +00:00
|
|
|
#endif // ARTICLEINSPECTOR_HH
|