My Project  0.0.16
QUCS Mapping
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
packagedialog.h
Go to the documentation of this file.
1 /***************************************************************************
2  packagedialog.h
3  -----------------
4  begin : Sun Jun 25 2006
5  copyright : (C) 2006 by Michael Margraf
6  email : michael.margraf@alumni.tu-berlin.de
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef PACKAGEDIALOG_H
19 #define PACKAGEDIALOG_H
20 
21 #include <qfile.h>
22 #include <qdialog.h>
23 #include <qptrlist.h>
24 #include <qstringlist.h>
25 #include <qcheckbox.h>
26 
27 class QucsApp;
28 class QString;
29 class QLineEdit;
30 class QTextEdit;
31 class QCheckBox;
32 class QVBoxLayout;
33 class QDataStream;
34 class QPushButton;
35 class QListViewItem;
36 class QVButtonGroup;
37 
38 
39 class PackageDialog : public QDialog {
40  Q_OBJECT
41 public:
42  PackageDialog(QWidget*, bool);
44 
45  void extractPackage();
46 
47 private slots:
48  void slotCreate();
49  void slotBrowse();
50 
51 private:
52  int insertFile(const QString&, QFile&, QDataStream&);
53  int insertDirectory(const QString&, QDataStream&);
54  int insertLibraries(QDataStream&);
55 
56  int extractFile(QFile&, Q_UINT32, QDir&);
57  int extractDirectory(QFile&, Q_UINT32, QDir&);
58  int extractLibrary(QFile&, Q_UINT32);
59 
60  QVBoxLayout *all; // the mother of all widgets
61  QLineEdit *NameEdit;
62  QTextEdit *MsgText;
63  QCheckBox *LibraryCheck;
64  QVButtonGroup *Group;
65  QPtrList<QCheckBox> BoxList;
66 
67  QPushButton *ButtClose;
68 };
69 
70 #endif