14 #include <QtGui/QDoubleValidator>
15 #include <QtGui/QIntValidator>
16 #include <QtGui/QtGui>
21 #if QT_VERSION >= 0x050000
22 #include <QtWidgets/QtWidgets>
28 #include <qwt_symbol.h>
36 : QMenu(
"Line Color", parent), d_which(which)
38 d_grp =
new QActionGroup(
this);
40 d_act.push_back(
new QAction(
"Blue",
this));
41 d_act.push_back(
new QAction(
"Red",
this));
42 d_act.push_back(
new QAction(
"Green",
this));
43 d_act.push_back(
new QAction(
"Black",
this));
44 d_act.push_back(
new QAction(
"Cyan",
this));
45 d_act.push_back(
new QAction(
"Magenta",
this));
46 d_act.push_back(
new QAction(
"Yellow",
this));
47 d_act.push_back(
new QAction(
"Gray",
this));
48 d_act.push_back(
new QAction(
"Dark Red",
this));
49 d_act.push_back(
new QAction(
"Dark Green",
this));
50 d_act.push_back(
new QAction(
"Dark Blue",
this));
51 d_act.push_back(
new QAction(
"Dark Gray",
this));
53 connect(d_act[0], SIGNAL(triggered()),
this, SLOT(
getBlue()));
54 connect(d_act[1], SIGNAL(triggered()),
this, SLOT(
getRed()));
55 connect(d_act[2], SIGNAL(triggered()),
this, SLOT(
getGreen()));
56 connect(d_act[3], SIGNAL(triggered()),
this, SLOT(
getBlack()));
57 connect(d_act[4], SIGNAL(triggered()),
this, SLOT(
getCyan()));
58 connect(d_act[5], SIGNAL(triggered()),
this, SLOT(
getMagenta()));
59 connect(d_act[6], SIGNAL(triggered()),
this, SLOT(
getYellow()));
60 connect(d_act[7], SIGNAL(triggered()),
this, SLOT(
getGray()));
61 connect(d_act[8], SIGNAL(triggered()),
this, SLOT(
getDarkRed()));
62 connect(d_act[9], SIGNAL(triggered()),
this, SLOT(
getDarkGreen()));
63 connect(d_act[10], SIGNAL(triggered()),
this, SLOT(
getDarkBlue()));
64 connect(d_act[11], SIGNAL(triggered()),
this, SLOT(
getDarkGray()));
66 QListIterator<QAction*> i(d_act);
68 QAction* a = i.next();
69 a->setCheckable(
true);
70 a->setActionGroup(d_grp);
81 if (which <
static_cast<unsigned int>(d_act.size()))
84 throw std::runtime_error(
"LineColorMenu::getAction: which out of range.");
106 QList<QAction*> d_act;
120 : QMenu(
"Line Width", parent), d_which(which)
122 d_grp =
new QActionGroup(
this);
124 d_act.push_back(
new QAction(
"1",
this));
125 d_act.push_back(
new QAction(
"2",
this));
126 d_act.push_back(
new QAction(
"3",
this));
127 d_act.push_back(
new QAction(
"4",
this));
128 d_act.push_back(
new QAction(
"5",
this));
129 d_act.push_back(
new QAction(
"6",
this));
130 d_act.push_back(
new QAction(
"7",
this));
131 d_act.push_back(
new QAction(
"8",
this));
132 d_act.push_back(
new QAction(
"9",
this));
133 d_act.push_back(
new QAction(
"10",
this));
135 connect(d_act[0], SIGNAL(triggered()),
this, SLOT(
getOne()));
136 connect(d_act[1], SIGNAL(triggered()),
this, SLOT(
getTwo()));
137 connect(d_act[2], SIGNAL(triggered()),
this, SLOT(
getThree()));
138 connect(d_act[3], SIGNAL(triggered()),
this, SLOT(
getFour()));
139 connect(d_act[4], SIGNAL(triggered()),
this, SLOT(
getFive()));
140 connect(d_act[5], SIGNAL(triggered()),
this, SLOT(
getSix()));
141 connect(d_act[6], SIGNAL(triggered()),
this, SLOT(
getSeven()));
142 connect(d_act[7], SIGNAL(triggered()),
this, SLOT(
getEight()));
143 connect(d_act[8], SIGNAL(triggered()),
this, SLOT(
getNine()));
144 connect(d_act[9], SIGNAL(triggered()),
this, SLOT(
getTen()));
146 QListIterator<QAction*> i(d_act);
147 while (i.hasNext()) {
148 QAction* a = i.next();
149 a->setCheckable(
true);
150 a->setActionGroup(d_grp);
161 if (which <
static_cast<unsigned int>(d_act.size()))
164 throw std::runtime_error(
"LineWidthMenu::getAction: which out of range.");
184 QList<QAction*> d_act;
198 : QMenu(
"Line Style", parent), d_which(which)
200 d_grp =
new QActionGroup(
this);
202 d_act.push_back(
new QAction(
"None",
this));
203 d_act.push_back(
new QAction(
"Solid",
this));
204 d_act.push_back(
new QAction(
"Dash",
this));
205 d_act.push_back(
new QAction(
"Dots",
this));
206 d_act.push_back(
new QAction(
"Dash-Dot",
this));
207 d_act.push_back(
new QAction(
"Dash-Dot-Dot",
this));
209 connect(d_act[0], SIGNAL(triggered()),
this, SLOT(
getNone()));
210 connect(d_act[1], SIGNAL(triggered()),
this, SLOT(
getSolid()));
211 connect(d_act[2], SIGNAL(triggered()),
this, SLOT(
getDash()));
212 connect(d_act[3], SIGNAL(triggered()),
this, SLOT(
getDots()));
213 connect(d_act[4], SIGNAL(triggered()),
this, SLOT(
getDashDot()));
214 connect(d_act[5], SIGNAL(triggered()),
this, SLOT(
getDashDotDot()));
216 QListIterator<QAction*> i(d_act);
217 while (i.hasNext()) {
218 QAction* a = i.next();
219 a->setCheckable(
true);
220 a->setActionGroup(d_grp);
231 if (which <
static_cast<unsigned int>(d_act.size()))
234 throw std::runtime_error(
"LineStyleMenu::getAction: which out of range.");
250 QList<QAction*> d_act;
264 : QMenu(
"Line Marker", parent), d_which(which)
266 d_grp =
new QActionGroup(
this);
268 d_act.push_back(
new QAction(
"None",
this));
269 d_act.push_back(
new QAction(
"Circle",
this));
270 d_act.push_back(
new QAction(
"Rectangle",
this));
271 d_act.push_back(
new QAction(
"Diamond",
this));
272 d_act.push_back(
new QAction(
"Triangle",
this));
273 d_act.push_back(
new QAction(
"Down Triangle",
this));
274 d_act.push_back(
new QAction(
"Left Triangle",
this));
275 d_act.push_back(
new QAction(
"Right Triangle",
this));
276 d_act.push_back(
new QAction(
"Cross",
this));
277 d_act.push_back(
new QAction(
"X-Cross",
this));
278 d_act.push_back(
new QAction(
"Horiz. Line",
this));
279 d_act.push_back(
new QAction(
"Vert. Line",
this));
280 d_act.push_back(
new QAction(
"Star 1",
this));
281 d_act.push_back(
new QAction(
"Star 2",
this));
282 d_act.push_back(
new QAction(
"Hexagon",
this));
284 connect(d_act[0], SIGNAL(triggered()),
this, SLOT(
getNone()));
285 connect(d_act[1], SIGNAL(triggered()),
this, SLOT(
getCircle()));
286 connect(d_act[2], SIGNAL(triggered()),
this, SLOT(
getRect()));
287 connect(d_act[3], SIGNAL(triggered()),
this, SLOT(
getDiamond()));
288 connect(d_act[4], SIGNAL(triggered()),
this, SLOT(
getTriangle()));
289 connect(d_act[5], SIGNAL(triggered()),
this, SLOT(
getDTriangle()));
290 connect(d_act[6], SIGNAL(triggered()),
this, SLOT(
getLTriangle()));
291 connect(d_act[7], SIGNAL(triggered()),
this, SLOT(
getRTriangle()));
292 connect(d_act[8], SIGNAL(triggered()),
this, SLOT(
getCross()));
293 connect(d_act[9], SIGNAL(triggered()),
this, SLOT(
getXCross()));
294 connect(d_act[10], SIGNAL(triggered()),
this, SLOT(
getHLine()));
295 connect(d_act[11], SIGNAL(triggered()),
this, SLOT(
getVLine()));
296 connect(d_act[12], SIGNAL(triggered()),
this, SLOT(
getStar1()));
297 connect(d_act[13], SIGNAL(triggered()),
this, SLOT(
getStar2()));
298 connect(d_act[14], SIGNAL(triggered()),
this, SLOT(
getHexagon()));
300 QListIterator<QAction*> i(d_act);
301 while (i.hasNext()) {
302 QAction* a = i.next();
303 a->setCheckable(
true);
304 a->setActionGroup(d_grp);
315 if (which <
static_cast<unsigned int>(d_act.size()))
318 throw std::runtime_error(
"LineMarkerMenu::getAction: which out of range.");
343 QList<QAction*> d_act;
357 : QMenu(
"Line Transparency", parent), d_which(which)
359 d_grp =
new QActionGroup(
this);
361 d_act.push_back(
new QAction(
"None",
this));
362 d_act.push_back(
new QAction(
"Low",
this));
363 d_act.push_back(
new QAction(
"Medium",
this));
364 d_act.push_back(
new QAction(
"High",
this));
365 d_act.push_back(
new QAction(
"Off",
this));
367 connect(d_act[0], SIGNAL(triggered()),
this, SLOT(
getNone()));
368 connect(d_act[1], SIGNAL(triggered()),
this, SLOT(
getLow()));
369 connect(d_act[2], SIGNAL(triggered()),
this, SLOT(
getMedium()));
370 connect(d_act[3], SIGNAL(triggered()),
this, SLOT(
getHigh()));
371 connect(d_act[4], SIGNAL(triggered()),
this, SLOT(
getOff()));
373 QListIterator<QAction*> i(d_act);
374 while (i.hasNext()) {
375 QAction* a = i.next();
376 a->setCheckable(
true);
377 a->setActionGroup(d_grp);
388 if (which <
static_cast<unsigned int>(d_act.size()))
391 throw std::runtime_error(
"MarkerAlphaMenu::getAction: which out of range.");
406 QList<QAction*> d_act;
420 : QAction(
"Line Title", parent), d_which(which)
422 d_diag =
new QDialog(parent);
423 d_diag->setModal(
true);
425 d_text =
new QLineEdit();
427 QGridLayout* layout =
new QGridLayout(d_diag);
428 QPushButton* btn_ok =
new QPushButton(tr(
"OK"));
429 QPushButton* btn_cancel =
new QPushButton(tr(
"Cancel"));
431 layout->addWidget(d_text, 0, 0, 1, 2);
432 layout->addWidget(btn_ok, 1, 0);
433 layout->addWidget(btn_cancel, 1, 1);
435 connect(btn_ok, SIGNAL(clicked()),
this, SLOT(getText()));
436 connect(btn_cancel, SIGNAL(clicked()), d_diag, SLOT(close()));
438 connect(
this, SIGNAL(triggered()),
this, SLOT(
getTextDiag()));
473 : QMenu(menuTitle.c_str(), parent)
475 d_grp =
new QActionGroup(
this);
482 d_act.push_back(
new QAction(
"Off",
this));
483 d_act.push_back(
new QAction(
"High",
this));
484 d_act.push_back(
new QAction(
"Medium",
this));
485 d_act.push_back(
new QAction(
"Low",
this));
487 d_grp =
new QActionGroup(
this);
488 for (
int t = 0; t < d_act.size(); t++) {
489 d_act[t]->setCheckable(
true);
490 d_act[t]->setActionGroup(d_grp);
492 d_act[0]->setChecked(
true);
494 connect(d_act[0], SIGNAL(triggered()),
this, SLOT(
getOff()));
495 connect(d_act[1], SIGNAL(triggered()),
this, SLOT(
getHigh()));
496 connect(d_act[2], SIGNAL(triggered()),
this, SLOT(
getMedium()));
497 connect(d_act[3], SIGNAL(triggered()),
this, SLOT(
getLow()));
499 QListIterator<QAction*> i(d_act);
500 while (i.hasNext()) {
501 QAction* a = i.next();
502 a->setCheckable(
true);
503 a->setActionGroup(d_grp);
514 if (which <
static_cast<unsigned int>(d_act.size()))
517 throw std::runtime_error(
"AverageMenu::getAction: which out of range.");
525 else if (avg == d_high)
527 else if (avg == d_medium)
529 else if (avg == d_low)
531 return d_act[
static_cast<int>(which)];
550 float value = str.toFloat();
555 QList<QAction*> d_act;
557 float d_off, d_high, d_medium, d_low;
583 d_act.push_back(
new QAction(
"None",
this));
584 d_act.push_back(
new QAction(
"Hamming",
this));
585 d_act.push_back(
new QAction(
"Hann",
this));
586 d_act.push_back(
new QAction(
"Blackman",
this));
587 d_act.push_back(
new QAction(
"Blackman-harris",
this));
588 d_act.push_back(
new QAction(
"Rectangular",
this));
589 d_act.push_back(
new QAction(
"Kaiser",
this));
590 d_act.push_back(
new QAction(
"Flat-top",
this));
592 d_grp =
new QActionGroup(
this);
593 for (
int t = 0; t < d_act.size(); t++) {
594 d_act[t]->setCheckable(
true);
595 d_act[t]->setActionGroup(d_grp);
598 connect(d_act[0], SIGNAL(triggered()),
this, SLOT(
getNone()));
599 connect(d_act[1], SIGNAL(triggered()),
this, SLOT(
getHamming()));
600 connect(d_act[2], SIGNAL(triggered()),
this, SLOT(
getHann()));
601 connect(d_act[3], SIGNAL(triggered()),
this, SLOT(
getBlackman()));
603 connect(d_act[5], SIGNAL(triggered()),
this, SLOT(
getRectangular()));
604 connect(d_act[6], SIGNAL(triggered()),
this, SLOT(
getKaiser()));
605 connect(d_act[7], SIGNAL(triggered()),
this, SLOT(
getFlattop()));
607 QListIterator<QAction*> i(d_act);
608 while (i.hasNext()) {
609 QAction* a = i.next();
620 if (which <
static_cast<unsigned int>(d_act.size()))
623 throw std::runtime_error(
"FFTWindowMenu::getAction: which out of range.");
629 switch (
static_cast<int>(type)) {
672 QList<QAction*> d_act;
685 NPointsMenu(QWidget* parent) : QAction(
"Number of Points", parent)
687 d_diag =
new QDialog(parent);
688 d_diag->setWindowTitle(
"Number of Points");
689 d_diag->setModal(
true);
691 d_text =
new QLineEdit();
693 QGridLayout* layout =
new QGridLayout(d_diag);
694 QPushButton* btn_ok =
new QPushButton(tr(
"OK"));
695 QPushButton* btn_cancel =
new QPushButton(tr(
"Cancel"));
697 layout->addWidget(d_text, 0, 0, 1, 2);
698 layout->addWidget(btn_ok, 1, 0);
699 layout->addWidget(btn_cancel, 1, 1);
701 connect(btn_ok, SIGNAL(clicked()),
this, SLOT(getText()));
702 connect(btn_cancel, SIGNAL(clicked()), d_diag, SLOT(close()));
704 connect(
this, SIGNAL(triggered()),
this, SLOT(
getTextDiag()));
713 void setDiagText(
const int npts) { d_text->setText(QString().setNum(npts)); }
739 : QMenu(
"Color Map", parent), d_which(which)
741 d_grp =
new QActionGroup(
this);
743 d_act.push_back(
new QAction(
"Multi-Color",
this));
744 d_act.push_back(
new QAction(
"White Hot",
this));
745 d_act.push_back(
new QAction(
"Black Hot",
this));
746 d_act.push_back(
new QAction(
"Incandescent",
this));
747 d_act.push_back(
new QAction(
"Sunset",
this));
748 d_act.push_back(
new QAction(
"Cool",
this));
749 d_act.push_back(
new QAction(
"Other",
this));
753 connect(d_act[0], SIGNAL(triggered()),
this, SLOT(
getMultiColor()));
754 connect(d_act[1], SIGNAL(triggered()),
this, SLOT(
getWhiteHot()));
755 connect(d_act[2], SIGNAL(triggered()),
this, SLOT(
getBlackHot()));
757 connect(d_act[4], SIGNAL(triggered()),
this, SLOT(
getSunset()));
758 connect(d_act[5], SIGNAL(triggered()),
this, SLOT(
getCool()));
759 connect(d_act[6], SIGNAL(triggered()),
this, SLOT(
getOther()));
761 QListIterator<QAction*> i(d_act);
762 while (i.hasNext()) {
763 QAction* a = i.next();
764 a->setCheckable(
true);
765 a->setActionGroup(d_grp);
769 d_max_value = QColor(
"white");
770 d_min_value = QColor(
"white");
779 if (which <
static_cast<unsigned int>(d_act.size()))
782 throw std::runtime_error(
"ColorMapMenu::getAction: which out of range.");
788 const QColor& min_color = QColor(),
789 const QColor& max_color = QColor());
819 QMessageBox::information(
821 "Set low and high intensities",
822 "In the next windows, select the low and then the high intensity colors.",
824 d_min_value = QColorDialog::getColor(d_min_value,
this);
825 d_max_value = QColorDialog::getColor(d_max_value,
this);
835 QList<QAction*> d_act;
836 QColor d_max_value, d_min_value;
851 d_grp =
new QActionGroup(
this);
852 d_act.push_back(
new QAction(
"Free",
this));
853 d_act.push_back(
new QAction(
"Auto",
this));
854 d_act.push_back(
new QAction(
"Normal",
this));
855 d_act.push_back(
new QAction(
"Tag",
this));
857 connect(d_act[0], SIGNAL(triggered()),
this, SLOT(
getFree()));
858 connect(d_act[1], SIGNAL(triggered()),
this, SLOT(
getAuto()));
859 connect(d_act[2], SIGNAL(triggered()),
this, SLOT(
getNorm()));
860 connect(d_act[3], SIGNAL(triggered()),
this, SLOT(
getTag()));
862 QListIterator<QAction*> i(d_act);
863 while (i.hasNext()) {
864 QAction* a = i.next();
865 a->setCheckable(
true);
866 a->setActionGroup(d_grp);
877 if (which <
static_cast<unsigned int>(d_act.size()))
880 throw std::runtime_error(
"TriggerModeMenu::getAction: which out of range.");
899 throw std::runtime_error(
"TriggerModeMenu::getAction: unknown trigger mode.");
913 QList<QAction*> d_act;
928 d_grp =
new QActionGroup(
this);
929 d_act.push_back(
new QAction(
"Positive",
this));
930 d_act.push_back(
new QAction(
"Negative",
this));
932 connect(d_act[0], SIGNAL(triggered()),
this, SLOT(
getPos()));
933 connect(d_act[1], SIGNAL(triggered()),
this, SLOT(
getNeg()));
935 QListIterator<QAction*> i(d_act);
936 while (i.hasNext()) {
937 QAction* a = i.next();
938 a->setCheckable(
true);
939 a->setActionGroup(d_grp);
950 if (which <
static_cast<unsigned int>(d_act.size()))
953 throw std::runtime_error(
"TriggerSlopeMenu::getAction: which out of range.");
966 throw std::runtime_error(
967 "TriggerSlopeMenu::getAction: unknown trigger slope.");
979 QList<QAction*> d_act;
994 d_grp =
new QActionGroup(
this);
995 for (
int i = 0; i < nchans; i++) {
996 d_act.push_back(
new QAction(QString().setNum(i),
this));
997 d_act[i]->setCheckable(
true);
998 d_act[i]->setActionGroup(d_grp);
1000 addAction(d_act[i]);
1001 connect(d_act[i], SIGNAL(triggered()),
this, SLOT(
getChannel()));
1011 if (which <
static_cast<unsigned int>(d_act.size()))
1012 return d_act[which];
1014 throw std::runtime_error(
1015 "TriggerChannelMenu::getAction: which out of range.");
1025 QAction* a = d_grp->checkedAction();
1026 int which = a->text().toInt();
1031 QList<QAction*> d_act;
1032 QActionGroup* d_grp;
1046 d_grp =
new QActionGroup(
this);
1047 d_act.push_back(
new QAction(
"Horizontal",
this));
1048 d_act.push_back(
new QAction(
"Vertical",
this));
1049 d_act.push_back(
new QAction(
"None",
this));
1051 connect(d_act[0], SIGNAL(triggered()),
this, SLOT(
getHoriz()));
1052 connect(d_act[1], SIGNAL(triggered()),
this, SLOT(
getVert()));
1053 connect(d_act[2], SIGNAL(triggered()),
this, SLOT(
getNone()));
1055 QListIterator<QAction*> i(d_act);
1056 while (i.hasNext()) {
1057 QAction* a = i.next();
1058 a->setCheckable(
true);
1059 a->setActionGroup(d_grp);
1070 if (which <
static_cast<unsigned int>(d_act.size()))
1071 return d_act[which];
1073 throw std::runtime_error(
"NumberLayoutMenu::getAction: which out of range.");
1089 throw std::runtime_error(
"NumberLayoutMenu::getAction: unknown layout type.");
1102 QList<QAction*> d_act;
1103 QActionGroup* d_grp;
1116 : QMenu(
"Color Map", parent), d_which(which)
1118 d_grp =
new QActionGroup(
this);
1120 d_act.push_back(
new QAction(
"Black",
this));
1121 d_act.push_back(
new QAction(
"Blue-Red",
this));
1122 d_act.push_back(
new QAction(
"White Hot",
this));
1123 d_act.push_back(
new QAction(
"Black Hot",
this));
1124 d_act.push_back(
new QAction(
"Black-Red",
this));
1125 d_act.push_back(
new QAction(
"Other",
this));
1127 connect(d_act[0], SIGNAL(triggered()),
this, SLOT(
getBlack()));
1128 connect(d_act[1], SIGNAL(triggered()),
this, SLOT(
getBlueRed()));
1129 connect(d_act[2], SIGNAL(triggered()),
this, SLOT(
getWhiteHot()));
1130 connect(d_act[3], SIGNAL(triggered()),
this, SLOT(
getBlackHot()));
1131 connect(d_act[4], SIGNAL(triggered()),
this, SLOT(
getBlackRed()));
1132 connect(d_act[5], SIGNAL(triggered()),
this, SLOT(
getOther()));
1134 QListIterator<QAction*> i(d_act);
1135 while (i.hasNext()) {
1136 QAction* a = i.next();
1137 a->setCheckable(
true);
1138 a->setActionGroup(d_grp);
1142 d_max_value = QColor(
"black");
1143 d_min_value = QColor(
"black");
1152 if (which <
static_cast<unsigned int>(d_act.size()))
1153 return d_act[which];
1155 throw std::runtime_error(
"ColorMapMenu::getAction: which out of range.");
1160 whichTrigger(
unsigned int which,
const QColor& min_color,
const QColor& max_color);
1170 QMessageBox::information(
1172 "Set low and high intensities",
1173 "In the next windows, select the low and then the high intensity colors.",
1175 d_min_value = QColorDialog::getColor(d_min_value,
this);
1176 d_max_value = QColorDialog::getColor(d_max_value,
this);
1182 QActionGroup* d_grp;
1183 QList<QAction*> d_act;
1184 QColor d_max_value, d_min_value;
1197 PopupMenu(QString desc, QWidget* parent) : QAction(desc, parent)
1199 d_diag =
new QDialog(parent);
1200 d_diag->setWindowTitle(desc);
1201 d_diag->setModal(
true);
1203 d_text =
new QLineEdit();
1205 QGridLayout* layout =
new QGridLayout(d_diag);
1206 QPushButton* btn_ok =
new QPushButton(tr(
"OK"));
1207 QPushButton* btn_cancel =
new QPushButton(tr(
"Cancel"));
1209 layout->addWidget(d_text, 0, 0, 1, 2);
1210 layout->addWidget(btn_ok, 1, 0);
1211 layout->addWidget(btn_cancel, 1, 1);
1213 connect(btn_ok, SIGNAL(clicked()),
this, SLOT(getText()));
1214 connect(btn_cancel, SIGNAL(clicked()), d_diag, SLOT(close()));
1216 connect(
this, SIGNAL(triggered()),
this, SLOT(
getTextDiag()));
1251 : QAction(title, parent), d_which(which)
1253 d_diag =
new QDialog(parent);
1254 d_diag->setWindowTitle(title);
1255 d_diag->setModal(
true);
1257 d_text =
new QLineEdit();
1259 QGridLayout* layout =
new QGridLayout(d_diag);
1260 QPushButton* btn_ok =
new QPushButton(tr(
"OK"));
1261 QPushButton* btn_cancel =
new QPushButton(tr(
"Cancel"));
1263 layout->addWidget(d_text, 0, 0, 1, 2);
1264 layout->addWidget(btn_ok, 1, 0);
1265 layout->addWidget(btn_cancel, 1, 1);
1267 connect(btn_ok, SIGNAL(clicked()),
this, SLOT(getText()));
1268 connect(btn_cancel, SIGNAL(clicked()), d_diag, SLOT(close()));
1270 connect(
this, SIGNAL(triggered()),
this, SLOT(
getTextDiag()));
1275 void setText(
float f) { d_text->setText(QString(
"%1").arg(f)); }
Definition: form_menus.h:1246
void whichTrigger(unsigned int which, float data)
~ItemFloatAct() override
Definition: form_menus.h:1273
void getTextDiag()
Definition: form_menus.h:1282
ItemFloatAct(unsigned int which, QString title, QWidget *parent)
Definition: form_menus.h:1250
void setText(float f)
Definition: form_menus.h:1275
Definition: form_menus.h:415
void getTextDiag()
Definition: form_menus.h:447
LineTitleAction(unsigned int which, QWidget *parent)
Definition: form_menus.h:419
void whichTrigger(unsigned int which, const QString &text)
~LineTitleAction() override
Definition: form_menus.h:441
win_type
Definition: window.h:28
@ WIN_HANN
Hann window; max attenuation 44 dB.
Definition: window.h:31
@ WIN_RECTANGULAR
Basic rectangular window; max attenuation 21 dB.
Definition: window.h:34
@ WIN_BLACKMAN_hARRIS
Blackman-harris window; max attenuation 92 dB.
Definition: window.h:36
@ WIN_KAISER
Kaiser window; max attenuation see window::max_attenuation.
Definition: window.h:35
@ WIN_NONE
don't use a window
Definition: window.h:29
@ WIN_BLACKMAN
Blackman window; max attenuation 74 dB.
Definition: window.h:33
@ WIN_FLATTOP
flat top window; useful in FFTs; max attenuation 93 dB
Definition: window.h:40
@ WIN_HAMMING
Hamming window; max attenuation 53 dB.
Definition: window.h:30
@ INTENSITY_COLOR_MAP_TYPE_MULTI_COLOR
Definition: qtgui_types.h:126
@ INTENSITY_COLOR_MAP_TYPE_USER_DEFINED
Definition: qtgui_types.h:130
@ INTENSITY_COLOR_MAP_TYPE_WHITE_HOT
Definition: qtgui_types.h:127
@ INTENSITY_COLOR_MAP_TYPE_SUNSET
Definition: qtgui_types.h:131
@ INTENSITY_COLOR_MAP_TYPE_COOL
Definition: qtgui_types.h:132
@ INTENSITY_COLOR_MAP_TYPE_BLACK_HOT
Definition: qtgui_types.h:128
@ INTENSITY_COLOR_MAP_TYPE_INCANDESCENT
Definition: qtgui_types.h:129
trigger_mode
Definition: trigger_mode.h:17
@ TRIG_MODE_FREE
Definition: trigger_mode.h:18
@ TRIG_MODE_NORM
Definition: trigger_mode.h:20
@ TRIG_MODE_AUTO
Definition: trigger_mode.h:19
@ TRIG_MODE_TAG
Definition: trigger_mode.h:21
trigger_slope
Definition: trigger_mode.h:24
@ TRIG_SLOPE_NEG
Definition: trigger_mode.h:26
@ TRIG_SLOPE_POS
Definition: trigger_mode.h:25
graph_t
Definition: qtgui_types.h:119
@ NUM_GRAPH_VERT
Definition: qtgui_types.h:122
@ NUM_GRAPH_NONE
Definition: qtgui_types.h:120
@ NUM_GRAPH_HORIZ
Definition: qtgui_types.h:121