From 72190e0977c0e352e5055e6f65bf2095efa77805 Mon Sep 17 00:00:00 2001 From: aqua Date: Sun, 28 Aug 2022 17:36:28 +0300 Subject: Add actions to RekonqView - back, forward, refresh, reload --- src/rekonqwindow.hpp | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 src/rekonqwindow.hpp (limited to 'src/rekonqwindow.hpp') diff --git a/src/rekonqwindow.hpp b/src/rekonqwindow.hpp new file mode 100644 index 00000000..ba1fd70f --- /dev/null +++ b/src/rekonqwindow.hpp @@ -0,0 +1,60 @@ +/* ============================================================ + * The rekonq project + * ============================================================ + * SPDX-License-Identifier: GPL-2.0-or-later + * Copyright (C) 2013 by Andrea Diamantini + * SPDX-License-Identifier: GPL-3.0-only + * Copyright (C) 2022 aqua + * ============================================================ + * Description: Main Window class + * ============================================================ */ + +#pragma once + +#include "rekonq.hpp" +//#include "rwindow.h" +//#include "tabwidget.h" +//#include "bookmarkspanel.h" +//#include "historypanel.h" +#include +#include + +// Forward Declarations +class RekonqView; +// class TabBar; +// class WebPage; +// class WebWindow; + +namespace Ui { +class RekonqWindow; +} + +class RekonqWindow : public QMainWindow { + Q_OBJECT + +public: + explicit RekonqWindow(QWidget *parent = nullptr); + ~RekonqWindow() override; + + [[nodiscard]] RekonqView *currentView(); + + // bool isPrivateBrowsingMode(); + +public slots: + int addView(RekonqView *view); + void loadUrl(const QUrl &url, rekonq::OpenType type = rekonq::CurrentTab); + // void loadUrl(const KUrl &, Rekonq::OpenType type = Rekonq::CurrentTab, TabHistory *history = 0); + +private slots: + // void showBookmarksPanel(bool); + // void showHistoryPanel(bool); + +private: + Ui::RekonqWindow *ui; + // TabWidget *_tabWidget; + + QSplitter *_splitter = nullptr; + + // QWeakPointer _historyPanel; + // QWeakPointer _bookmarksPanel; +}; -- cgit v1.2.1