22 #include <QGridLayout>
24 #include "../diagrams/graph.h"
29 #include <QPushButton>
49 cout<<
"Values + Val"<<*(Values+Val)<<endl;
50 return QString::number(*(Values+Val));
55 if(pos>ValueSize)
return QValidator::Invalid;
56 if(QString::number(*(Values+pos))==text)
57 return QValidator::Acceptable;
58 else return QValidator::Invalid;
80 setWindowTitle(tr(
"Bias Points"));
84 QGridLayout *
all =
new QGridLayout(
this);
87 all->setColStretch(1,5);
93 all->addWidget(
new QLabel(pD->
Var,
this), i,0);
103 all->addWidget(Box, i++,1);
104 connect(Box, SIGNAL(valueChanged(
int)), SLOT(
slotNewValue(
int)));
109 all->setRowStretch(i,5);
110 QPushButton *ButtClose =
new QPushButton(tr(
"Close"),
this);
111 all->addMultiCellWidget(ButtClose, i+1,i+1, 0,1);
112 connect(ButtClose, SIGNAL(clicked()), SLOT(accept()));
128 int Factor = 1, Index = 0;
130 Index += pb->value() * Factor;
137 pn->Name =
num2str(*(p+Index));
145 Doc->viewport()->update();
158 QString DataSet = Info.dirPath() + QDir::separator() +
Doc->
DataSet;
164 if(pn->
Name.isEmpty())
continue;
175 if( ((
Wire*)pe)->isHorizontal() ) pn->
x1 |= 2;
183 if(pn->
cx < pe->
cx) pn->
x1 |= 1;
205 if( ((
Wire*)pe)->Port1 != pn )
206 ((
Wire*)pe)->Port1->Name =
"";
207 else ((
Wire*)pe)->Port2->Name =
"";
215 if(pc->
Model ==
"IProbe") {
216 pn = pc->
Ports.first()->Connection;
217 if(!pn->
Name.isEmpty())
218 pn = pc->
Ports.next()->Connection;
233 if( ((
Wire*)pe)->isHorizontal() ) pn->
x1 |= 2;
236 if(pn->
cx < pe->
cx) pn->
x1 |= 1;
mySpinBox(int, int, int, double *, QWidget *)
Q3PtrList< Node > NodeList
QString textFromValue(int)
Definitions and declarations for the main application.
Q3PtrList< Component > * Components
QString num2str(double Num)
Q3PtrList< Element > Connections
Q3PtrList< Node > * Nodes
int loadVarData(const QString &, Graph *)
Q3PtrList< double > ValueList
Superclass of all schematic drawing elements.
Q3PtrList< mySpinBox > BoxList
Q3PtrList< DataX > cPointsX
QValidator::State validate(QString &text, int &pos) const