ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
ecvAskDoubleIntegerValuesDlg.cpp
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
9 
11  const char* vName1,
12  const char* vName2,
13  double minVal,
14  double maxVal,
15  int minInt,
16  int maxInt,
17  double defaultVal1,
18  int defaultVal2,
19  int precision /*=6*/,
20  const char* windowTitle /*=0*/,
21  QWidget* parent /*=0*/)
22  : QDialog(parent, Qt::Tool), Ui::AskDoubleIntegerValuesDialog() {
23  setupUi(this);
24 
25  label1->setText(vName1);
26  label2->setText(vName2);
27  doubleSpinBox->setDecimals(precision);
28  doubleSpinBox->setRange(minVal, maxVal);
29  integerSpinBox->setRange(minInt, maxInt);
30  doubleSpinBox->setValue(defaultVal1);
31  integerSpinBox->setValue(defaultVal2);
32 
33  if (windowTitle) setWindowTitle(windowTitle);
34 }
ecvAskDoubleIntegerValuesDlg(const char *vName1, const char *vName2, double minVal, double maxVal, int minInt, int maxInt, double defaultVal1, int defaultVal2, int precision=6, const char *windowTitle=0, QWidget *parent=0)
Default constructor.