ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
qCanupoDisclaimerDialog.h
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 
8 #pragma once
9 
10 #include <ui_classifyDisclaimerDlg.h>
11 #include <ui_trainDisclaimerDlg.h>
12 
13 // ECV_PLUGINS
14 #include <ecvMainAppInterface.h>
15 
16 // Qt
17 #include <QMainWindow>
18 
20 class TrainDisclaimerDialog : public QDialog, public Ui::TrainDisclaimerDialog {
21 public:
23  TrainDisclaimerDialog(QWidget* parent = 0)
24  : QDialog(parent), Ui::TrainDisclaimerDialog() {
25  setupUi(this);
26  }
27 };
28 
29 // whether disclaimer has already been displayed (and accepted) or not
30 static bool s_trainDisclaimerAccepted = false;
31 
34  // if the user "cancels" it, then he refuses the diclaimer!
36  TrainDisclaimerDialog(app ? app->getMainWindow() : 0).exec();
37  }
38 
40 }
41 
43 class ClassifyDisclaimerDialog : public QDialog,
44  public Ui::ClassifyDisclaimerDialog {
45 public:
47  ClassifyDisclaimerDialog(QWidget* parent = 0)
48  : QDialog(parent), Ui::ClassifyDisclaimerDialog() {
49  setupUi(this);
50  }
51 };
52 
53 // whether disclaimer has already been displayed (and accepted) or not
54 static bool s_classifyDisclaimerAccepted = false;
55 
58  // if the user "cancels" it, then he refuses the diclaimer!
60  ClassifyDisclaimerDialog(app ? app->getMainWindow() : 0).exec();
61  }
62 
64 }
Dialog for displaying the M3C2/UEB disclaimer.
ClassifyDisclaimerDialog(QWidget *parent=0)
Default constructor.
Dialog for displaying the 3DSMAC/UEB disclaimer.
TrainDisclaimerDialog(QWidget *parent=0)
Default constructor.
Main application interface (for plugins)
virtual QMainWindow * getMainWindow()=0
Returns main window.
static bool ShowClassifyDisclaimer(ecvMainAppInterface *app)
static bool ShowTrainDisclaimer(ecvMainAppInterface *app)
static bool s_classifyDisclaimerAccepted
static bool s_trainDisclaimerAccepted