Qucs-GUI  0.0.18
 All Data Structures 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>
22 #include <QDialog>
23 #include <QList>
24 #include <QStringList>
25 #include <QCheckBox>
26 #include <QVBoxLayout>
27 #include <QDir>
28 
29 class QucsApp;
30 class QString;
31 class QLineEdit;
32 class QTextEdit;
33 class QCheckBox;
34 class QVBoxLayout;
35 class QDataStream;
36 class QPushButton;
37 class QGroupBox;
38 
39 
40 class PackageDialog : public QDialog {
41  Q_OBJECT
42 public:
43  PackageDialog(QWidget*, bool);
45 
46  void extractPackage();
47 
48 private slots:
49  void slotCreate();
50  void slotBrowse();
51 
52 private:
53  int insertFile(const QString&, QFile&, QDataStream&);
54  int insertDirectory(const QString&, QDataStream&);
55  int insertLibraries(QDataStream&);
56 
57  int extractFile(QFile&, Q_UINT32, QDir&);
58  int extractDirectory(QFile&, Q_UINT32, QDir&);
59  int extractLibrary(QFile&, Q_UINT32);
60 
61  QVBoxLayout *all; // the mother of all widgets
62  QLineEdit *NameEdit;
63  QTextEdit *MsgText;
64  QCheckBox *LibraryCheck;
65  QGroupBox *Group;
66  QList<QCheckBox *> BoxList;
67  QPushButton *ButtClose;
68 };
69 
70 #endif
QTextEdit * MsgText
Definition: packagedialog.h:63
QLineEdit * NameEdit
Definition: packagedialog.h:62
int extractDirectory(QFile &, Q_UINT32, QDir &)
QVBoxLayout * all
Definition: packagedialog.h:61
QList< QCheckBox * > BoxList
Definition: packagedialog.h:66
QPushButton * ButtClose
Definition: packagedialog.h:67
QGroupBox * Group
Definition: packagedialog.h:65
int extractFile(QFile &, Q_UINT32, QDir &)
QCheckBox * LibraryCheck
Definition: packagedialog.h:64
int extractLibrary(QFile &, Q_UINT32)
int insertLibraries(QDataStream &)
Definition: qucs.h:61
int insertFile(const QString &, QFile &, QDataStream &)
int insertDirectory(const QString &, QDataStream &)
PackageDialog(QWidget *, bool)