mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 23:34:06 +00:00
329aa02f93
* The "Inspect" action will bring up web inspector from WebKit. * Restorable inspector window geometry.
32 lines
588 B
C++
32 lines
588 B
C++
#ifndef ARTICLEINSPECTOR_HH
|
|
#define ARTICLEINSPECTOR_HH
|
|
|
|
#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;
|
|
};
|
|
|
|
#endif // ARTICLEINSPECTOR_HH
|