ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
qVoxFallDisclaimerDialog.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 
10 #include "ui_disclaimerDlg.h"
11 
12 // qCC_plugins
13 #include <ecvMainAppInterface.h>
14 
15 // Qt
16 #include <QMainWindow>
17 
18 bool DisclaimerDialog::s_disclaimerAccepted = false;
19 
21  : QDialog(parent), m_ui(new Ui::DisclaimerDialog) {
22  m_ui->setupUi(this);
23 }
24 
25 DisclaimerDialog::~DisclaimerDialog() { delete m_ui; }
26 
28  if (!s_disclaimerAccepted) {
29  // if the user "cancels" it, then he refuses the disclaimer
30  s_disclaimerAccepted =
31  DisclaimerDialog(app ? app->getMainWindow() : 0).exec();
32  }
33 
34  return s_disclaimerAccepted;
35 }
Dialog for displaying the BRGM disclaimer.
DisclaimerDialog(QWidget *parent=0)
Default constructor.
static bool show(ecvMainAppInterface *app)
Main application interface (for plugins)
virtual QMainWindow * getMainWindow()=0
Returns main window.