You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1004 B
52 lines
1004 B
/* |
|
SPDX-FileCopyrightText: 2015 Saheb Preet Singh <saheb.preet@gmail.com> |
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later |
|
*/ |
|
|
|
#ifndef _OKULAR_LAYERS_H_ |
|
#define _OKULAR_LAYERS_H_ |
|
|
|
#include "core/observer.h" |
|
#include <qwidget.h> |
|
|
|
#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<Okular::Page *> &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
|
|
|