26 int Load(QSettings &set);
27 int Save(QSettings &set);
30 QWebEngineView *CreateWindow(QWebEnginePage::WebWindowType type,
bool offTheRecord =
false);
31 [[nodiscard]]
virtual QMenu* GetMenu(QWidget* parent =
nullptr);
34 void sigInformation(
const QString& szInfo);
37 void sigFullScreen(
bool bFull);
40 void slotTabCurrentChanged(
int index);
41 void slotTabCloseRequested(
int index);
42 void slotViewCloseRequested();
43 void slotReturnPressed();
44 void slotInspector(
bool checked);
47 void slotPrintFinished(
bool success);
48 void slotPrintToPdf();
49 void slotPdfPrintingFinished(
const QString& szFile,
bool success);
52 void slotFullScreen(
bool bFullScreen);
55 int InitMenu(QMenu* pMenu);
56 void EnableAction(
bool enable);
58 [[nodiscard]] QWebEngineProfile* GetProfile(
bool offTheRecord =
false);
59 [[nodiscard]]
CFrmWebView *CreateWebView(
bool offTheRecord =
false);
60 [[nodiscard]] QWidget* CreateTab(
CFrmWebView **view =
nullptr,
bool offTheRecord =
false);
65 [[nodiscard]]
CFrmWebView *CurrentView(ViewType type = ViewType::Web);
66 [[nodiscard]]
bool IsCurrentView(
CFrmWebView *pView);
68 [[nodiscard]]
CFrmWebView* GetView(
int index, ViewType type = ViewType::Web);
81 QAction* m_pFindPrevious;
82 QAction* m_pZoomOriginal;
85 QAction* m_pFavAction;
88 QAction* m_pAddPageIncognito;
89 QAction* m_pAddWindow;
90 QAction* m_pAddWindowIncognito;
92 QAction* m_pPrintToPdf;
94 QAction* m_pInspector;
96 QLineEdit* m_pUrlLineEdit;
97 QProgressBar* m_pProgressBar;
99 QScopedPointer<QWebEngineProfile> m_profile;
101 QString m_szFindText;
103 QString m_szStyleSheet;