diff options
author | aqua <aqua@iserlohn-fortress.net> | 2022-08-17 22:48:01 +0300 |
---|---|---|
committer | aqua <aqua@iserlohn-fortress.net> | 2022-08-18 10:47:39 +0300 |
commit | ce06956d314dc8d7080ba96b76f4ee8ad851912a (patch) | |
tree | c01cd1d1e61acb7ef11cbc439f120d7540f3add5 /src/mainwindow/rekonqwindow.h | |
parent | Pass command line from secondary to primary instance (diff) | |
download | rekonq-ce06956d314dc8d7080ba96b76f4ee8ad851912a.tar.xz |
Show main window
- added Task Manager, showing all plugins, windows and view
Diffstat (limited to 'src/mainwindow/rekonqwindow.h')
-rw-r--r-- | src/mainwindow/rekonqwindow.h | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/src/mainwindow/rekonqwindow.h b/src/mainwindow/rekonqwindow.h new file mode 100644 index 00000000..73d58c04 --- /dev/null +++ b/src/mainwindow/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 rView; +// 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(rView *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; +}; |