mirror of
https://invent.kde.org/graphics/okular
synced 2024-11-05 18:34:53 +00:00
52 lines
1,004 B
C++
52 lines
1,004 B
C++
/*
|
|
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
|