File indexing completed on 2024-04-28 08:50:40
0001 /* This file is part of the KDE project 0002 SPDX-FileCopyrightText: 2009 Pino Toscano <pino@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef KONQ_HISTORYDIALOG_H 0008 #define KONQ_HISTORYDIALOG_H 0009 0010 #include <QDialog> 0011 0012 #include "konqhistorysettings.h" 0013 0014 class KonqMainWindow; 0015 class KonqHistoryView; 0016 class QModelIndex; 0017 class QUrl; 0018 0019 class KonqHistoryDialog : public QDialog 0020 { 0021 Q_OBJECT 0022 0023 public: 0024 KonqHistoryDialog(KonqMainWindow *parent = nullptr); 0025 ~KonqHistoryDialog() override; 0026 0027 QSize sizeHint() const override; 0028 0029 private Q_SLOTS: 0030 void slotOpenWindow(const QUrl &url); 0031 void slotOpenTab(const QUrl &url); 0032 void slotOpenCurrentTab(const QUrl &url); 0033 void slotOpenCurrentOrNewTab(const QUrl &url); 0034 void slotOpenIndex(const QModelIndex &index); 0035 void reparseConfiguration(); 0036 0037 private: 0038 0039 KonqHistoryView *m_historyView; 0040 KonqMainWindow *m_mainWindow; 0041 0042 KonqHistorySettings *m_settings; 0043 KonqHistorySettings::Action m_defaultAction; 0044 }; 0045 0046 #endif // KONQ_HISTORYDIALOG_H