/* SPDX-FileCopyrightText: 2015 Saheb Preet Singh SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef _OKULAR_LAYERS_H_ #define _OKULAR_LAYERS_H_ #include "core/observer.h" #include #include "okularpart_export.h" class PageView; class QTreeView; class KTreeViewSearchLine; namespace Okular { class Document; class PartTest; } class OKULARPART_EXPORT Layers : public QWidget, public Okular::DocumentObserver { Q_OBJECT friend class Okular::PartTest; public: Layers(QWidget *parent, Okular::Document *document); ~Layers() override; // inherited from DocumentObserver void notifySetup(const QVector &pages, int setupFlags) override; void setPageView(PageView *pageView); Q_SIGNALS: void hasLayers(bool has); private Q_SLOTS: void saveSearchOptions(); private: Okular::Document *m_document; QTreeView *m_treeView; KTreeViewSearchLine *m_searchLine; PageView *m_pageView; }; #endif