ccAskThreeDoubleValuesDlg.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #pragma once
  2. //##########################################################################
  3. //# #
  4. //# CLOUDCOMPARE #
  5. //# #
  6. //# This program is free software; you can redistribute it and/or modify #
  7. //# it under the terms of the GNU General Public License as published by #
  8. //# the Free Software Foundation; version 2 or later of the License. #
  9. //# #
  10. //# This program is distributed in the hope that it will be useful, #
  11. //# but WITHOUT ANY WARRANTY; without even the implied warranty of #
  12. //# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
  13. //# GNU General Public License for more details. #
  14. //# #
  15. //# COPYRIGHT: EDF R&D / TELECOM ParisTech (ENST-TSI) #
  16. //# #
  17. //##########################################################################
  18. #include <ui_askThreeDoubleValuesDlg.h>
  19. //Qt
  20. #include <QString>
  21. //! Generic dialog to query 3 (double) values
  22. class ccAskThreeDoubleValuesDlg : public QDialog, public Ui::AskThreeDoubleValuesDialog
  23. {
  24. Q_OBJECT
  25. public:
  26. //! Default constructor
  27. ccAskThreeDoubleValuesDlg( const QString& vName1,
  28. const QString& vName2,
  29. const QString& vName3,
  30. double minVal,
  31. double maxVal,
  32. double defaultVal1,
  33. double defaultVal2,
  34. double defaultVal3,
  35. int precision = 6,
  36. const QString windowTitle = QString(),
  37. QWidget* parent = nullptr);
  38. //! Enable the checkbox (bottom-left)
  39. void showCheckbox(const QString& label, bool state, QString tooltip = QString());
  40. //! Returns the checkbox state
  41. bool getCheckboxState() const;
  42. };