Libksieve

sieveeditortabwidget.h
1/*
2 SPDX-FileCopyrightText: 2013-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6#pragma once
7
8#include "ksieveui_export.h"
9#include <QTabWidget>
10
11namespace KSieveUi
12{
13class SieveEditorHelpHtmlWidget;
14/**
15 * @brief The SieveEditorTabWidget class
16 * @author Laurent Montel <montel@kde.org>
17 */
18class KSIEVEUI_EXPORT SieveEditorTabWidget : public QTabWidget
19{
20 Q_OBJECT
21public:
22 explicit SieveEditorTabWidget(QWidget *parent = nullptr);
23 ~SieveEditorTabWidget() override;
24
25 [[nodiscard]] QUrl currentHelpUrl() const;
26 [[nodiscard]] QString currentHelpTitle() const;
27 bool currentPageIsHtmlPage() const;
28
29public Q_SLOTS:
30 void slotAddHelpPage(const QUrl &url);
31
32protected:
33 void tabRemoved(int index) override;
34 void tabInserted(int index) override;
35
36Q_SIGNALS:
37 void copyAvailable(bool);
38
39private:
40 KSIEVEUI_NO_EXPORT void slotTitleChanged(KSieveUi::SieveEditorHelpHtmlWidget *widget, const QString &title);
41 KSIEVEUI_NO_EXPORT void slotTabCloseRequested(int index);
42 KSIEVEUI_NO_EXPORT void slotProgressIndicatorPixmapChanged(KSieveUi::SieveEditorHelpHtmlWidget *widget, const QPixmap &pixmap);
43 KSIEVEUI_NO_EXPORT void slotLoadFinished(KSieveUi::SieveEditorHelpHtmlWidget *widget, bool success);
44 KSIEVEUI_NO_EXPORT void slotTabContextMenuRequest(const QPoint &pos);
45
46 KSIEVEUI_NO_EXPORT void slotCloseAllTabExcept(int index);
47 KSIEVEUI_NO_EXPORT void slotCloseAllTab();
48 KSIEVEUI_NO_EXPORT void slotCloseRequest(int index);
49 KSIEVEUI_NO_EXPORT void closeAllTabExcept(int index = -1);
50};
51}
The SieveEditorTabWidget class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:57:10 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.