ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
ecvSelectChildrenDlg.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 // Qt
11 #include <QDialog>
12 
13 // CV_DB_LIB
14 #include <ecvObject.h>
15 
16 namespace Ui {
17 class SelectChildrenDialog;
18 }
19 
21 class ccSelectChildrenDlg : public QDialog {
22  Q_OBJECT
23 
24 public:
26  explicit ccSelectChildrenDlg(QWidget* parent = nullptr);
27  ~ccSelectChildrenDlg() override;
28 
30  void addType(QString typeName, CV_CLASS_ENUM type);
31 
35  QString getSelectedName();
37  bool getStrictMatchState() const;
38 
41  bool getTypeIsUsed() const;
42 
44  bool getNameIsRegex() const;
45 
47  bool getNameMatchIsUsed() const;
48 
49 protected slots:
51  void onAccept();
52 
53 private:
54  Ui::SelectChildrenDialog* mUI;
55 };
int64_t CV_CLASS_ENUM
Type of object type flags (64 bits)
Definition: CVTypes.h:97
char type
#define slots
Minimal dialog to pick one element in a list (combo box)
bool getNameMatchIsUsed() const
if performing name-match (regex or not)
bool getNameIsRegex() const
if the name must be considered as regex
bool getStrictMatchState() const
Returns the state of the strict type checkbox.
void onAccept()
Called when the dialog is accepted.
ccSelectChildrenDlg(QWidget *parent=nullptr)
Default constructor.
CV_CLASS_ENUM getSelectedType()
Returns the selected type.
void addType(QString typeName, CV_CLASS_ENUM type)
Add an element to the 'type' combo box.
QString getSelectedName()
Returns the selected name (if any)