diff options
author | aqua <aqua@iserlohn-fortress.net> | 2022-08-27 15:27:37 +0300 |
---|---|---|
committer | aqua <aqua@iserlohn-fortress.net> | 2022-08-27 15:35:38 +0300 |
commit | a7465aa35b4efd3bfc4bbd9be4d1572d25a05bb2 (patch) | |
tree | 9dfa5112b52705ae4f0e04f1e43b0307a7806f5a /src/rekonqwindow.h | |
parent | Add CMakePresets.json (diff) | |
download | rekonq-a7465aa35b4efd3bfc4bbd9be4d1572d25a05bb2.tar.xz |
Rename rView to RekonqView
- move rview.hpp to include/
- move src/mainwindow/* to src/
Diffstat (limited to 'src/rekonqwindow.h')
-rw-r--r-- | src/rekonqwindow.h | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/src/rekonqwindow.h b/src/rekonqwindow.h new file mode 100644 index 00000000..e6316819 --- /dev/null +++ b/src/rekonqwindow.h @@ -0,0 +1,65 @@ +/* ============================================================ + * The rekonq project + * ============================================================ + * SPDX-License-Identifier: GPL-2.0-or-later + * Copyright (C) 2013 by Andrea Diamantini <adjam7 at gmail dot com> + * SPDX-License-Identifier: GPL-3.0-only + * Copyright (C) 2022 aqua <aqua@iserlohn-fortress.net> + * ============================================================ + * Description: Main Window class + * ============================================================ */ + +#pragma once + +#include "rekonq.hpp" +//#include "rwindow.h" +//#include "tabwidget.h" +//#include "bookmarkspanel.h" +//#include "historypanel.h" +#include <QMainWindow> +#include <QSplitter> + +// 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); + // explicit RekonqWindow(WebPage *pg, QWidget *parent = 0); + ~RekonqWindow() override; + + // TabWidget *tabWidget(); + // TabBar *tabBar(); + // WebWindow *currentWebWindow() const; + + // bool isPrivateBrowsingMode(); + +private: + // void init(); + +public slots: + void addView(RekonqView *view); + // 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> _historyPanel; + // QWeakPointer<BookmarksPanel> _bookmarksPanel; +}; |