32 FailCaptureFullPage = -3,
37 int Load(QSettings &set);
38 int Save(QSettings &set);
41 QWebEngineView *CreateWindow(QWebEnginePage::WebWindowType type,
bool offTheRecord =
false);
42 [[nodiscard]]
virtual QMenu* GetMenu(QWidget* parent =
nullptr);
44 [[nodiscard]] QWebEngineProfile* GetProfile(
bool offTheRecord =
false);
47 void sigInformation(
const QString& szInfo);
48 void sigError(
const int nError,
const QString &szError);
51 void sigFullScreen(
bool bFull);
54 void slotTabCurrentChanged(
int index);
55 void slotTabCloseRequested(
int index);
56 void slotViewCloseRequested();
57 void slotReturnPressed();
58 void slotUrlSelected(
const QString& szUrl);
59 void slotInspector(
bool checked);
62 void slotPrintFinished(
bool success);
63 void slotPrintToPdf();
64 void slotPdfPrintingFinished(
const QString& szFile,
bool success);
66 void slotCapturePage();
67 void slotCaptureFullPage();
69 void slotRecordTimeout();
71 void slotAddBookmark();
76 void slotFullScreen(
bool bFullScreen);
79 int InitMenu(QMenu* pMenu);
80 void EnableAction(
bool enable);
82 [[nodiscard]]
CFrmWebView *CreateWebView(
bool offTheRecord =
false);
83 [[nodiscard]] QWidget* CreateTab(
CFrmWebView **view =
nullptr,
bool offTheRecord =
false);
88 [[nodiscard]]
CFrmWebView *CurrentView(ViewType type = ViewType::Web);
89 [[nodiscard]]
bool IsCurrentView(
CFrmWebView *pView);
91 [[nodiscard]]
CFrmWebView* GetView(
int index, ViewType type = ViewType::Web);
102 QAction* m_pAddBookmark;
104 QAction* m_pFindNext;
105 QAction* m_pFindPrevious;
106 QAction* m_pZoomOriginal;
109 QAction* m_pFavAction;
112 QAction* m_pAddPageIncognito;
113 QAction* m_pAddWindow;
114 QAction* m_pAddWindowIncognito;
116 QAction* m_pPrintToPdf;
117 QAction* m_pDownload;
118 QAction* m_pInspector;
119 QAction* m_pCapturePage;
120 QAction* m_pCaptureFulPage;
123 QLineEdit* m_pUrlLineEdit;
124 QProgressBar* m_pProgressBar;
126 QScopedPointer<QWebEngineProfile> m_profile;
128 QString m_szFindText;
130 QString m_szStyleSheet;