Qucs-GUI  0.0.18
 All Data Structures 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>
22 
23 #include <QList>
24 #include <QStringList>
25 #include <QTextStream>
26 #include <QDialog>
27 #include <QFile>
28 #include <QDir>
29 #include <QCheckBox>
30 #include <QVBoxLayout>
31 #include <QLabel>
32 #include <QStackedWidget>
33 
34 class QLabel;
35 class QucsApp;
36 class QLineEdit;
37 class QTextEdit;
38 class QPushButton;
39 class QVBoxLayout;
40 class QTreeWidgetItem;
41 class QGroupBox;
42 class QRegExpValidator;
43 class QStackedWidget;
44 
45 
46 class LibraryDialog : public QDialog {
47  Q_OBJECT
48 public:
49  LibraryDialog(QucsApp*, QTreeWidgetItem*);
51 
52 private slots:
53  void slotCreateNext();
54  void slotSave();
55  void slotSelectNone();
56  void slotSelectAll();
57  void slotCheckDescrChanged(int);
58  void slotPrevDescr();
59  void slotNextDescr();
60  void slotUpdateDescription();
61 
62 private:
63  void intoStream(QTextStream&, QString&, const char*);
64  int intoFile(QString&, QString&, QStringList&);
65 
66 private:
67  int curDescr;
68  QVBoxLayout *all; // the mother of all widgets
69  QStackedWidget *stackedWidgets;
70  QLabel *theLabel;
71  QLabel *checkedCktName;
72  QLabel *libSaveName;
73  QLineEdit *NameEdit;
74  QTextEdit *ErrText;
75  QTextEdit *textDescr;
76  QGroupBox *Group;
78  QPushButton *prevButt, *nextButt;
79  QPushButton *createButt;
80  QList<QCheckBox *> BoxList;
81  QStringList SelectedNames;
82  QStringList Descriptions;
83  QCheckBox *checkDescr;
84 
86  QFile LibFile;
87  QDir LibDir;
88  QRegExp Expr;
89  QRegExpValidator *Validator;
90 };
91 
92 #endif
QTextEdit * textDescr
Definition: librarydialog.h:75
QGroupBox * Group
Definition: librarydialog.h:76
QStringList SelectedNames
Definition: librarydialog.h:81
QucsApp * App
Definition: librarydialog.h:85
QPushButton * ButtSelectNone
Definition: librarydialog.h:77
QPushButton * prevButt
Definition: librarydialog.h:78
int intoFile(QString &, QString &, QStringList &)
QTextEdit * ErrText
Definition: librarydialog.h:74
QLabel * theLabel
Definition: librarydialog.h:70
QStackedWidget * stackedWidgets
Definition: librarydialog.h:69
QLineEdit * NameEdit
Definition: librarydialog.h:73
QPushButton * ButtCancel
Definition: librarydialog.h:77
QPushButton * nextButt
Definition: librarydialog.h:78
QPushButton * ButtSelectAll
Definition: librarydialog.h:77
QCheckBox * checkDescr
Definition: librarydialog.h:83
QPushButton * ButtCreateNext
Definition: librarydialog.h:77
QRegExpValidator * Validator
Definition: librarydialog.h:89
QPushButton * createButt
Definition: librarydialog.h:79
void slotCheckDescrChanged(int)
LibraryDialog(QucsApp *, QTreeWidgetItem *)
QLabel * checkedCktName
Definition: librarydialog.h:71
QList< QCheckBox * > BoxList
Definition: librarydialog.h:80
Definition: qucs.h:61
void intoStream(QTextStream &, QString &, const char *)
QLabel * libSaveName
Definition: librarydialog.h:72
QStringList Descriptions
Definition: librarydialog.h:82
QVBoxLayout * all
Definition: librarydialog.h:68
void slotUpdateDescription()