Libksieve

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

KDE's Doxygen guidelines are available online.