Qucs-GUI
0.0.19
|
00001 /*************************************************************************** 00002 sweepdialog.h 00003 --------------- 00004 begin : Sat Aug 13 2005 00005 copyright : (C) 2005 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 SWEEPDIALOG_H 00019 #define SWEEPDIALOG_H 00020 00021 #include <QDialog> 00022 #include <QRegExp> 00023 #include <QList> 00024 00025 #include <QSpinBox> 00026 #include <QGridLayout> 00027 00028 #include "node.h" 00029 00030 class Graph; 00031 class Schematic; 00032 class QGridLayout; 00033 00034 class mySpinBox : public QSpinBox { 00035 Q_OBJECT 00036 public: 00037 mySpinBox(int, int, int, double*, QWidget*); 00038 00039 protected: 00040 QString textFromValue(int) const; 00041 QValidator::State validate ( QString & text, int & pos ) const; 00042 00043 private: 00044 double *Values = NULL; 00045 int ValueSize; 00046 }; 00047 00048 class SweepDialog : public QDialog { 00049 Q_OBJECT 00050 public: 00051 SweepDialog(Schematic*); 00052 ~SweepDialog(); 00053 00054 private slots: 00055 void slotNewValue(int); 00056 00057 private: 00058 Graph* setBiasPoints(); 00059 00060 QGridLayout *all; // the mother of all widgets 00061 QList<mySpinBox *> BoxList; 00062 00063 Graph *pGraph; 00064 Schematic *Doc; 00065 QList<Node *> NodeList; 00066 QList<double *> ValueList; 00067 }; 00068 00069 #endif