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.

123456789101112131415161718192021222324252627282930313233343536
  1. /*499:*/
  2. #line 12 "./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. #ifndef TypicaWebViewHeader
  12. #define TypicaWebViewHeader
  13. class TypicaWebView:public QWebView
  14. {
  15. Q_OBJECT
  16. public:
  17. TypicaWebView();
  18. Q_INVOKABLE void load(const QString&url);
  19. Q_INVOKABLE void print();
  20. Q_INVOKABLE void setHtml(const QString&html,const QUrl&baseUrl= QUrl());
  21. Q_INVOKABLE void setContent(QIODevice*device);
  22. Q_INVOKABLE QString saveXml();
  23. Q_INVOKABLE QWebElement documentElement();
  24. Q_INVOKABLE QWebElement findFirstElement(const QString&selector);
  25. signals:
  26. void scriptLinkClicked(const QString&link);
  27. private slots:
  28. void linkDelegate(const QUrl&url);
  29. };
  30. #endif
  31. /*:499*/