Changeset View
Changeset View
Standalone View
Standalone View
ui/signaturepanel.h
- This file was added.
1 | /*************************************************************************** | ||||
---|---|---|---|---|---|
2 | * Copyright (C) 2018 by Chinmoy Ranjan Pradhan <chinmoyrp65@gmail.com> * | ||||
3 | * * | ||||
4 | * This program is free software; you can redistribute it and/or modify * | ||||
5 | * it under the terms of the GNU General Public License as published by * | ||||
6 | * the Free Software Foundation; either version 2 of the License, or * | ||||
7 | * (at your option) any later version. * | ||||
8 | ***************************************************************************/ | ||||
9 | | ||||
10 | #ifndef OKULAR_SIGNATUREPANEL_H | ||||
11 | #define OKULAR_SIGNATUREPANEL_H | ||||
12 | | ||||
13 | #include <QHash> | ||||
14 | #include <QWidget> | ||||
15 | | ||||
16 | #include "core/observer.h" | ||||
17 | | ||||
18 | namespace Okular { | ||||
19 | class Document; | ||||
20 | class FormFieldSignature; | ||||
21 | } | ||||
22 | | ||||
23 | class QTreeView; | ||||
24 | class SignatureModel; | ||||
25 | class PageView; | ||||
26 | | ||||
27 | class SignaturePanelPrivate; | ||||
28 | | ||||
29 | class SignaturePanel : public QWidget, public Okular::DocumentObserver | ||||
30 | { | ||||
31 | Q_OBJECT | ||||
32 | public: | ||||
33 | SignaturePanel( QWidget *parent, Okular::Document *document ); | ||||
34 | ~SignaturePanel(); | ||||
35 | | ||||
36 | // inherited from DocumentObserver | ||||
37 | void notifySetup( const QVector<Okular::Page *> &pages, int setupFlags ) override; | ||||
38 | | ||||
39 | void setPageView( PageView *pv ); | ||||
40 | | ||||
41 | private Q_SLOTS: | ||||
42 | void activated( const QModelIndex& ); | ||||
43 | void slotShowContextMenu(); | ||||
44 | void slotViewRevision(); | ||||
45 | void slotViewProperties(); | ||||
46 | | ||||
47 | private: | ||||
48 | Q_DECLARE_PRIVATE( SignaturePanel ) | ||||
49 | QScopedPointer<SignaturePanelPrivate> d_ptr; | ||||
50 | }; | ||||
51 | | ||||
52 | #endif |