My Project  0.0.16
QUCS Mapping
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
librarydialog.h
Go to the documentation of this file.
1 /***************************************************************************
2  librarydialog.h
3  -----------------
4  begin : Sun Jun 04 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 LIBRARYDIALOG_H
19 #define LIBRARYDIALOG_H
20 
21 #include <qregexp.h>
22 #include <qptrlist.h>
23 #include <qstringlist.h>
24 #include <qtextstream.h>
25 #include <qdialog.h>
26 #include <qfile.h>
27 #include <qdir.h>
28 #include <qcheckbox.h>
29 
30 class QLabel;
31 class QucsApp;
32 class QLineEdit;
33 class QTextEdit;
34 class QPushButton;
35 class QVBoxLayout;
36 class QListViewItem;
37 class QVButtonGroup;
38 class QRegExpValidator;
39 
40 
41 class LibraryDialog : public QDialog {
42  Q_OBJECT
43 public:
44  LibraryDialog(QucsApp*, QListViewItem*);
46 
47 private slots:
48  void slotCreate();
49  void slotNext();
50  void slotSelectNone();
51  void slotSelectAll();
52 
53 private:
54  void intoStream(QTextStream&, QString&, const char*);
55  int intoFile(QString&, QString&, QStringList&);
56 
57 private:
58  QVBoxLayout *all; // the mother of all widgets
59  QLabel *theLabel;
60  QLineEdit *NameEdit;
61  QTextEdit *ErrText;
62  QVButtonGroup *Group;
63  QPushButton *ButtCreate, *ButtCancel, *ButtSelectAll, *ButtSelectNone;
64  QPtrList<QCheckBox> BoxList;
65  QStringList Descriptions;
66 
67  QucsApp *App;
68  QFile LibFile;
69  QDir LibDir;
70  QRegExp Expr;
71  QRegExpValidator *Validator;
72 };
73 
74 #endif