Untrack Makefiles
[qcomicbook-oblomov] / src / archiverdialog.h
1 /*
2  * This file is a part of QComicBook.
3  *
4  * Copyright (C) 2005-2006 Pawel Stolowski <yogin@linux.bydg.org>
5  *
6  * QComicBook is free software; you can redestribute it and/or modify it
7  * under terms of GNU General Public License by Free Software Foundation.
8  *
9  * This program is distributed in the hope that it will be useful, but
10  * WITHOUT ANY WARRANTY. See GPL for more details.
11  */
12
13 #ifndef __ARCHIVERWIN_H
14 #define __ARCHIVERWIN_H
15
16 #include <qdialog.h>
17
18 /*! \file archiverwin.h */
19
20 class QLineEdit;
21 class QComboBox;
22 class QProgressBar;
23 class QPushButton;
24
25 namespace QComicBook
26 {
27         class ImgDirSink;
28         class ImgArchiver;
29         class PagesDirector;
30
31         class ArchiverDialog: public QDialog
32         {
33                 Q_OBJECT
34
35                 private:
36                         QLineEdit *le_destname;
37                         QComboBox *cm_archtype;
38                         QProgressBar *pbar;
39                         QPushButton *b_cancel;
40                         QPushButton *b_create;
41                         PagesDirector *pagesdir;
42                         ImgDirSink *imgsink; //original sink (directory or archive)
43                         ImgArchiver *archive; //new archive
44
45                 protected slots:
46                         void browse();
47                         void create();
48                         void createReady();
49                         void createError(int code);
50
51                 public:
52                         ArchiverDialog(QWidget *parent, ImgDirSink *sink);
53                         virtual ~ArchiverDialog();
54         };
55 }
56
57 #endif
58