|
|
|
@ -64,7 +64,7 @@ Picture::~Picture ()
|
|
|
|
|
void
|
|
|
|
|
Picture::paintEvent (TQPaintEvent *)
|
|
|
|
|
{
|
|
|
|
|
TQPainter *pictutqrepainter = new TQPainter (this);
|
|
|
|
|
TQPainter *picturepainter = new TQPainter (this);
|
|
|
|
|
double freq;
|
|
|
|
|
int mode;
|
|
|
|
|
device->get_mode (mode);
|
|
|
|
@ -72,21 +72,21 @@ Picture::paintEvent (TQPaintEvent *)
|
|
|
|
|
device->get_current_quality (sig, noise, qual);
|
|
|
|
|
if (!device->get_device_freq (freq) || device->get_txpower_disabled())
|
|
|
|
|
{
|
|
|
|
|
pictutqrepainter->drawPixmap (X_OFFSET, Y_OFFSET, *NO_CARD);
|
|
|
|
|
picturepainter->drawPixmap (X_OFFSET, Y_OFFSET, *NO_CARD);
|
|
|
|
|
}
|
|
|
|
|
else if (mode == 1)
|
|
|
|
|
{
|
|
|
|
|
pictutqrepainter->drawPixmap (X_OFFSET, Y_OFFSET, *AD_HOC);
|
|
|
|
|
picturepainter->drawPixmap (X_OFFSET, Y_OFFSET, *AD_HOC);
|
|
|
|
|
}
|
|
|
|
|
else if (qual == 0)
|
|
|
|
|
{
|
|
|
|
|
pictutqrepainter->drawPixmap (X_OFFSET, Y_OFFSET, *ALL_ALONE);
|
|
|
|
|
picturepainter->drawPixmap (X_OFFSET, Y_OFFSET, *ALL_ALONE);
|
|
|
|
|
}
|
|
|
|
|
else if (qual > 0)
|
|
|
|
|
{
|
|
|
|
|
pictutqrepainter->drawPixmap (X_OFFSET, Y_OFFSET, *AP_CONNECT);
|
|
|
|
|
picturepainter->drawPixmap (X_OFFSET, Y_OFFSET, *AP_CONNECT);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
pictutqrepainter->drawPixmap (X_OFFSET, Y_OFFSET, *NO_CARD);
|
|
|
|
|
delete pictutqrepainter;
|
|
|
|
|
picturepainter->drawPixmap (X_OFFSET, Y_OFFSET, *NO_CARD);
|
|
|
|
|
delete picturepainter;
|
|
|
|
|
}
|
|
|
|
|