Qucs-GUI  0.0.18
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
sweepdialog.h
Go to the documentation of this file.
1 /***************************************************************************
2  sweepdialog.h
3  ---------------
4  begin : Sat Aug 13 2005
5  copyright : (C) 2005 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 SWEEPDIALOG_H
19 #define SWEEPDIALOG_H
20 
21 #include <QDialog>
22 #include <QRegExp>
23 #include <Q3PtrList>
24 
25 #include <QSpinBox>
26 #include <QGridLayout>
27 
28 #include "node.h"
29 
30 class Graph;
31 class Schematic;
32 class QGridLayout;
33 
34 
35 class mySpinBox : public QSpinBox {
36  Q_OBJECT
37 public:
38  mySpinBox(int, int, int, double*, QWidget*);
39 
40 protected:
41  QString textFromValue(int);
42  QValidator::State validate ( QString & text, int & pos ) const;
43 
44 private:
45  double *Values;
46  int ValueSize;
47 };
48 
49 
50 
51 class SweepDialog : public QDialog {
52  Q_OBJECT
53 public:
55  ~SweepDialog();
56 
57 private slots:
58  void slotNewValue(int);
59 
60 private:
62 
63  QGridLayout *all; // the mother of all widgets
64  Q3PtrList<mySpinBox> BoxList;
65 
68  Q3PtrList<Node> NodeList;
69  Q3PtrList<double> ValueList;
70 };
71 
72 #endif
void slotNewValue(int)
mySpinBox(int, int, int, double *, QWidget *)
Definition: sweepdialog.cpp:32
Graph * setBiasPoints()
Q3PtrList< Node > NodeList
Definition: sweepdialog.h:68
Definition: graph.h:57
QGridLayout * all
Definition: sweepdialog.h:63
QString textFromValue(int)
Definition: sweepdialog.cpp:47
Graph * pGraph
Definition: sweepdialog.h:66
Schematic * Doc
Definition: sweepdialog.h:67
Q3PtrList< double > ValueList
Definition: sweepdialog.h:69
SweepDialog(Schematic *)
Definition: sweepdialog.cpp:62
int ValueSize
Definition: sweepdialog.h:46
Q3PtrList< mySpinBox > BoxList
Definition: sweepdialog.h:64
double * Values
Definition: sweepdialog.h:45
QValidator::State validate(QString &text, int &pos) const
Definition: sweepdialog.cpp:53