blob: 04287a90287eced984758faa73bf0f0dbb8ddbc6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
/* ============================================================
* 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 <QMainWindow>
#include <rsettings.hpp>
// Forward Declarations
class RekonqView;
namespace Ui {
class RekonqWindow;
}
class RekonqWindow : public QMainWindow {
Q_OBJECT
public:
explicit RekonqWindow(QWidget *parent = nullptr);
~RekonqWindow() override;
void setupShortcuts(RekonqSettings *settings);
[[nodiscard]] REKONQ_TEST_VIRTUAL RekonqView *currentView() REKONQ_TEST_PURE;
public slots:
REKONQ_TEST_VIRTUAL int addView(RekonqView *view) REKONQ_TEST_PURE;
REKONQ_TEST_VIRTUAL void loadUrl(rekonq::DefaultUrl url, rekonq::OpenType type = rekonq::CurrentTab) REKONQ_TEST_PURE;
REKONQ_TEST_VIRTUAL void loadUrl(const QUrl &url, rekonq::OpenType type = rekonq::CurrentTab) REKONQ_TEST_PURE;
// void loadUrl(const KUrl &, Rekonq::OpenType type = Rekonq::CurrentTab, TabHistory *history = 0);
private slots:
void showBookmarksPanel(bool);
// void showHistoryPanel(bool);
private:
Ui::RekonqWindow *ui;
};
|