Debian Codegraph @

src/qdjviewdialogs.h

raw
1 //C- -*- C++ -*-
2 //C- -------------------------------------------------------------------
3 //C- DjView4
4 //C- Copyright (c) 2006- Leon Bottou
5 //C-
6 //C- This software is subject to, and may be distributed under, the
7 //C- GNU General Public License, either version 2 of the license,
8 //C- or (at your option) any later version. The license should have
9 //C- accompanied the software or you may obtain a copy of the license
10 //C- from the Free Software Foundation at http://www.fsf.org .
11 //C-
12 //C- This program is distributed in the hope that it will be useful,
13 //C- but WITHOUT ANY WARRANTY; without even the implied warranty of
14 //C- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 //C- GNU General Public License for more details.
16 //C- ------------------------------------------------------------------
17
18 #ifndef QDJVIEWDIALOGS_H
19 #define QDJVIEWDIALOGS_H
20
21 #if AUTOCONF
22 # include "config.h"
23 #endif
24
25 #include <QObject>
26 #include <QDialog>
27 #include <QLabel>
28 #include <QMessageBox>
29 #include <QString>
30 #include <QWidget>
31
32 #include <libdjvu/miniexp.h>
33 #include <libdjvu/ddjvuapi.h>
34
35 class QCloseEvent;
36 class QComboBox;
37 class QDjView;
38 class QDjViewExporter;
39 class QDjVuDocument;
40 class QDjVuJob;
41 class QProgressBar;
42 class QPushButton;
43 class QRadioButton;
44
45
46
47
48
49 // ----------- QDJVIEWERRORDIALOG
50
51
52 class QDjViewErrorDialog : public QDialog
53 {
54 Q_OBJECT
55 public:
56 ~QDjViewErrorDialog();
57 QDjViewErrorDialog(QWidget *parent);
58 void prepare(QMessageBox::Icon icon, QString caption);
59 public slots:
60 void error(QString message, QString filename, int lineno);
61 virtual void done(int);
62 signals:
63 void closing();
64 private:
65 void compose(void);
66 struct Private;
67 Private *d;
68 };
69
70
71 // ----------- QDJVIEWAUTHDIALOG
72
73 class QDjViewAuthDialog : public QDialog
74 {
75 Q_OBJECT
76 public:
77 ~QDjViewAuthDialog();
78 QDjViewAuthDialog(QWidget *parent);
79 QString user() const;
80 QString pass() const;
81 public slots:
82 void setInfo(QString why);
83 void setUser(QString user);
84 void setPass(QString pass);
85 private:
86 struct Private;
87 Private *d;
88 };
89
90
91 // ----------- QDJVIEWINFODIALOG
92
93
94 class QDjViewInfoDialog : public QDialog
95 {
96 Q_OBJECT
97 public:
98 ~QDjViewInfoDialog();
99 QDjViewInfoDialog(QDjView *parent);
100 public slots:
101 void clear();
102 void refresh();
103 void setPage(int pageno);
104 void setFile(int fileno);
105 protected slots:
106 void prevFile();
107 void nextFile();
108 void jumpToSelectedPage();
109 private:
110 void fillFileCombo();
111 void fillDocLabel();
112 void fillDocTable();
113 void fillDocRow(int);
114 struct Private;
115 Private *d;
116 };
117
118
119
120
121
122 // ----------- QDJVIEWMETADIALOG
123
124
125 class QDjViewMetaDialog : public QDialog
126 {
127 Q_OBJECT
128 public:
129 ~QDjViewMetaDialog();
130 QDjViewMetaDialog(QDjView *parent);
131 public slots:
132 void clear();
133 void refresh();
134 void prevPage();
135 void nextPage();
136 void setPage(int pageno);
137 protected slots:
138 void jumpToSelectedPage();
139 void copy();
140 private:
141 struct Private;
142 Private *d;
143 };
144
145
146
147
148 // ----------- QDJVIEWSAVEDIALOG
149
150
151 class QDjViewSaveDialog : public QDialog
152 {
153 Q_OBJECT
154 public:
155 QDjViewSaveDialog(QDjView *djview);
156 ~QDjViewSaveDialog();
157 protected slots:
158 void refresh();
159 void clear();
160 void start();
161 void progress(int);
162 void stop();
163 void browse();
164 virtual void done(int);
165 protected:
166 virtual void closeEvent(QCloseEvent *event);
167 struct Private;
168 Private *d;
169 };
170
171
172
173
174
175 // ----------- QDJVIEWEXPORTDIALOG
176
177
178 class QDjViewExportDialog : public QDialog
179 {
180 Q_OBJECT
181 public:
182 QDjViewExportDialog(QDjView *djview);
183 ~QDjViewExportDialog();
184 protected slots:
185 void refresh();
186 void clear();
187 void start();
188 void progress(int);
189 void stop();
190 void browse();
191 void reset();
192 virtual void done(int);
193 protected:
194 virtual void closeEvent(QCloseEvent *event);
195 struct Private;
196 Private *d;
197 };
198
199
200
201 // ----------- QDJVIEWPRINTDIALOG
202
203
204 class QDjViewPrintDialog : public QDialog
205 {
206 Q_OBJECT
207 public:
208 QDjViewPrintDialog(QDjView *djview);
209 ~QDjViewPrintDialog();
210 protected slots:
211 void refresh();
212 void clear();
213 void choose();
214 void browse();
215 void start();
216 void progress(int);
217 void stop();
218 void reset();
219 virtual void done(int);
220 protected:
221 virtual void closeEvent(QCloseEvent *event);
222 struct Private;
223 Private *d;
224 };
225
226
227 #endif
228
229 /* -------------------------------------------------------------
230 Local Variables:
231 c++-font-lock-extra-types: ( "\\sw+_t" "[A-Z]\\sw*[a-z]\\sw*" )
232 End:
233 ------------------------------------------------------------- */