~ubuntu-branches/ubuntu/vivid/qpdfview/vivid

« back to all changes in this revision

Viewing changes to sources/bookmarkdialog.h

  • Committer: Package Import Robot
  • Author(s): Benjamin Eltzner
  • Date: 2014-10-22 21:49:15 UTC
  • mfrom: (1.2.15)
  • Revision ID: package-import@ubuntu.com-20141022214915-agqeoe318lzs2s4d
Tags: 0.4.12-1
* New upstream release.
* Fixed option to zoom to selection and implemented tiled rendering
  (Closes: #739554)
* Enable support for qt5 and poppler-qt5.
* Explicit dependence on hicolor-icon-theme.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 
 
3
Copyright 2014 Adam Reichold
 
4
 
 
5
This file is part of qpdfview.
 
6
 
 
7
qpdfview is free software: you can redistribute it and/or modify
 
8
it under the terms of the GNU General Public License as published by
 
9
the Free Software Foundation, either version 2 of the License, or
 
10
(at your option) any later version.
 
11
 
 
12
qpdfview is distributed in the hope that it will be useful,
 
13
but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15
GNU General Public License for more details.
 
16
 
 
17
You should have received a copy of the GNU General Public License
 
18
along with qpdfview.  If not, see <http://www.gnu.org/licenses/>.
 
19
 
 
20
*/
 
21
 
 
22
#ifndef BOOKMARKDIALOG_H
 
23
#define BOOKMARKDIALOG_H
 
24
 
 
25
#include <QDialog>
 
26
 
 
27
class QDialogButtonBox;
 
28
class QLineEdit;
 
29
class QTextEdit;
 
30
 
 
31
namespace qpdfview
 
32
{
 
33
 
 
34
struct BookmarkItem;
 
35
 
 
36
class BookmarkDialog : public QDialog
 
37
{
 
38
    Q_OBJECT
 
39
 
 
40
public:
 
41
    BookmarkDialog(BookmarkItem& bookmark, QWidget* parent = 0);
 
42
 
 
43
public slots:
 
44
    void accept();
 
45
 
 
46
protected:
 
47
    void showEvent(QShowEvent*);
 
48
 
 
49
private:
 
50
    Q_DISABLE_COPY(BookmarkDialog)
 
51
 
 
52
    BookmarkItem& m_bookmark;
 
53
 
 
54
    QLineEdit* m_pageEdit;
 
55
    QLineEdit* m_labelEdit;
 
56
    QTextEdit* m_commentEdit;
 
57
    QLineEdit* m_modifiedEdit;
 
58
 
 
59
    QDialogButtonBox* m_dialogButtonBox;
 
60
 
 
61
};
 
62
 
 
63
} // qpdfview
 
64
 
 
65
#endif // BOOKMARKDIALOG_H