qM3C2DisclaimerDialog.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //##########################################################################
  2. //# #
  3. //# CLOUDCOMPARE PLUGIN: qM3C2 #
  4. //# #
  5. //# This program is free software; you can redistribute it and/or modify #
  6. //# it under the terms of the GNU General Public License as published by #
  7. //# the Free Software Foundation; version 2 or later of the License. #
  8. //# #
  9. //# This program is distributed in the hope that it will be useful, #
  10. //# but WITHOUT ANY WARRANTY; without even the implied warranty of #
  11. //# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
  12. //# GNU General Public License for more details. #
  13. //# #
  14. //# COPYRIGHT: UNIVERSITE EUROPEENNE DE BRETAGNE #
  15. //# #
  16. //##########################################################################
  17. #ifndef M3C2_DISCLAIMER_DIALOG_HEADER
  18. #define M3C2_DISCLAIMER_DIALOG_HEADER
  19. #include <QDialog>
  20. class ccMainAppInterface;
  21. namespace Ui {
  22. class DisclaimerDialog;
  23. }
  24. //! Dialog for displaying the M3C2/UEB disclaimer
  25. class DisclaimerDialog : public QDialog
  26. {
  27. public:
  28. DisclaimerDialog(QWidget* parent = nullptr);
  29. ~DisclaimerDialog();
  30. static bool show(ccMainAppInterface* app);
  31. private:
  32. //whether disclaimer has already been displayed (and accepted) or not
  33. static bool s_disclaimerAccepted;
  34. Ui::DisclaimerDialog* m_ui;
  35. };
  36. #endif //M3C2_DISCLAIMER_DIALOG_HEADER