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 909B

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