42 p->
Painter->setPen(QPen(Qt::black,1));
46 p->
Painter->drawText(x, y, 0, 0, Qt::TextDontClip,
Prefix, -1, &r);
50 p->
Painter->drawText(x, y+
y2, 0, 0, Qt::TextDontClip,
"File=name", -1, &r);
51 if(
x2 < r.width())
x2 = r.width();
57 p->
Painter->drawText(x, y+
y2, 0, 0, Qt::TextDontClip, pp->
Name, -1, &r);
58 if(
x2 < r.width())
x2 = r.width();
63 p->
Painter->setPen(QPen(Qt::darkGray,3));
88 if(relative) {
cx += x;
cy += y; }
89 else {
cx = x-(
x2>>1);
cy = y-(
y2>>1); }
98 n = s.section(
' ',1,1);
100 if(!ok)
return false;
102 n = s.section(
' ',2,2);
104 if(!ok)
return false;
106 Prefix = s.section(
' ',3,3);
107 if(
Prefix.isEmpty())
return false;
111 n = s.section(
'"', i,i);
112 if(n.isEmpty())
break;
115 (n.at(0) ==
'0') ?
false :
true,
118 n.section(
'=', 4,4)));
129 QString s =
Name+QString::number(
cx)+
" "+QString::number(
cy)+
" ";
146 QString (
"tx = %1; ty = %2;").
153 QString s = QString (
"\"tx\" : %1,\n \"ty\" : %2,").arg(
cx).arg(
cy);
161 if(
int(fX) <
cx)
return false;
162 if(
int(fY) <
cy)
return false;
163 if(
int(fX) >
cx+
x2)
return false;
164 if(
int(fY) >
cy+
y2)
return false;
193 if(d->exec() == QDialog::Rejected) {
void PostPaintEvent(PE pe, int x1=0, int y1=0, int x2=0, int y2=0, int a=0, int b=0, bool PaintOnViewport=false)
void map(int, int, int &, int &)
void paint(ViewPainter *)
bool load(const QString &)
void setCenter(int, int, bool relative=false)
bool getSelected(float, float, float)
void paintScheme(Schematic *)
ID_Text(int cx_=0, int cy_=0)
Q3PtrList< SubParameter > Parameter
void getCenter(int &, int &)