Typica is a free program for professional coffee roasters. https://typica.us
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

webview.h 857B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*572:*/
  2. #line 14 "./webview.w"
  3. #include <QWebView>
  4. #include <QFile>
  5. #include <QMessageBox>
  6. #include <QDesktopServices>
  7. #include <QPrinter>
  8. #include <QPrintDialog>
  9. #include <QWebFrame>
  10. #include <QWebElement>
  11. #include <QSettings>
  12. #ifndef TypicaWebViewHeader
  13. #define TypicaWebViewHeader
  14. class TypicaWebView:public QWebView
  15. {
  16. Q_OBJECT
  17. public:
  18. TypicaWebView();
  19. Q_INVOKABLE void load(const QString&url);
  20. Q_INVOKABLE void print(const QString&printerName= QString());
  21. Q_INVOKABLE void setHtml(const QString&html,const QUrl&baseUrl= QUrl());
  22. Q_INVOKABLE void setContent(QIODevice*device);
  23. Q_INVOKABLE QString saveXml();
  24. Q_INVOKABLE QWebElement documentElement();
  25. Q_INVOKABLE QWebElement findFirstElement(const QString&selector);
  26. signals:
  27. void scriptLinkClicked(const QString&link);
  28. private slots:
  29. void linkDelegate(const QUrl&url);
  30. };
  31. #endif
  32. /*:572*/