19 QPalette Pal(palette());
20 Pal.setColor(QPalette::Background,
plot->palette().color(QPalette::Background));
21 setAutoFillBackground(
true);
34 plot->setGeometry (10,10,width()-20,height()-70);
35 lbGain->setGeometry(10,height()-70,50,20);
36 slGain->setGeometry(70,height()-70,150,20);
37 edGain->setGeometry(230,height()-70,50,20);
38 lbRange->setGeometry(10,height()-40,50,20);
39 slRange->setGeometry(70,height()-40,150,20);
40 edRange->setGeometry(230,height()-40,50,20);
41 lbPalette->setGeometry(width()-160,height()-40,50,20);
42 comboPalette->setGeometry(width()-100,height()-40,80,20);
43 lbGrid->setGeometry(width()-160,height()-70,50,20);
44 boxGrid->setGeometry(width()-100,height()-70,80,20);
45 QWidget::resizeEvent (event);
57 base::samples::Sonar sonar(scan);
105 edGain->setText(str +
" %");
128 lbGain =
new QLabel(
this);
129 lbGain->setGeometry(10, height() - 70, 50, 20);
130 QPalette Pal =
lbGain->palette();
131 Pal.setColor(QPalette::Foreground, Qt::white);
134 slGain =
new QSlider(Qt::Horizontal,
this);
135 slGain->setGeometry(70, height() - 70, 150, 20);
139 edGain =
new QLineEdit(
this);
140 edGain->setGeometry(230, height() - 70, 50, 20);
141 edGain->setAlignment(Qt::AlignRight);
143 Pal.setColor(QPalette::Base,
plot->palette().color(QPalette::Background));
145 setAutoFillBackground(
true);
147 edGain->setReadOnly(
true);
154 lbRange->setGeometry(10,height()-40,50,20);
155 QPalette Pal=
lbRange->palette();
156 Pal.setColor(QPalette::Foreground,Qt::white);
159 slRange =
new QSlider(Qt::Horizontal,
this);
160 slRange->setGeometry(70,height()-40,150,20);
165 edRange->setGeometry(230,height()-40,50,20);
166 edRange->setAlignment(Qt::AlignRight);
168 Pal.setColor(QPalette::Base,
plot->palette().color(QPalette::Background));
170 setAutoFillBackground(
true);
179 lbPalette->setGeometry(width()-160, height() - 40, 50, 20);
180 lbPalette->setGeometry(width()-160, height() - 40, 50, 20);
182 lbPalette->setStyleSheet(
"background-color: blue; color: white;");
186 comboPalette->setGeometry(width()-100,height()-40,80,20);
188 Pal.setColor(
comboPalette->backgroundRole(),
plot->palette().color(QPalette::Background));
190 setAutoFillBackground(
true);
200 lbGrid =
new QLabel(
this);
201 lbGrid->setGeometry(width() - 160, height() - 70, 50, 20);
203 lbGrid->setAlignment(Qt::AlignRight);
204 lbGrid->setStyleSheet(
"background-color: blue; color: white;");
207 boxGrid->setGeometry(width() - 100, height() - 70, 20, 20);
208 boxGrid->setStyleSheet(
"background-color: blue;");
void setData(const base::samples::Sonar &sonar)
void setSectorScan(bool continuous, base::Angle leftLimit, base::Angle rightLimit)