Qucs-GUI
0.0.19
|
00001 /*************************************************************************** 00002 packagedialog.h 00003 ----------------- 00004 begin : Sun Jun 25 2006 00005 copyright : (C) 2006 by Michael Margraf 00006 email : michael.margraf@alumni.tu-berlin.de 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 00018 #ifndef PACKAGEDIALOG_H 00019 #define PACKAGEDIALOG_H 00020 00021 #include <QFile> 00022 #include <QDialog> 00023 #include <QList> 00024 #include <QStringList> 00025 #include <QCheckBox> 00026 #include <QVBoxLayout> 00027 #include <QDir> 00028 00029 class QucsApp; 00030 class QString; 00031 class QLineEdit; 00032 class QTextEdit; 00033 class QCheckBox; 00034 class QVBoxLayout; 00035 class QDataStream; 00036 class QPushButton; 00037 class QGroupBox; 00038 00039 00040 class PackageDialog : public QDialog { 00041 Q_OBJECT 00042 public: 00043 PackageDialog(QWidget*, bool); 00044 ~PackageDialog(); 00045 00046 void extractPackage(); 00047 00048 private slots: 00049 void slotCreate(); 00050 void slotBrowse(); 00051 00052 private: 00053 int insertFile(const QString&, QFile&, QDataStream&); 00054 int insertDirectory(const QString&, QDataStream&); 00055 int insertLibraries(QDataStream&); 00056 00057 int extractFile(QFile&, Q_UINT32, QDir&); 00058 int extractDirectory(QFile&, Q_UINT32, QDir&); 00059 int extractLibrary(QFile&, Q_UINT32); 00060 00061 QVBoxLayout *all; // the mother of all widgets 00062 QLineEdit *NameEdit; 00063 QTextEdit *MsgText; 00064 QCheckBox *LibraryCheck; 00065 QGroupBox *Group; 00066 QList<QCheckBox *> BoxList; 00067 QPushButton *ButtClose; 00068 }; 00069 00070 #endif