OGS
MergeGeometriesDialog.h
Go to the documentation of this file.
1
15#pragma once
16
17#include "ui_MergeGeometries.h"
18#include <QDialog>
19
20class QStringListModel;
21
22namespace GeoLib
23{
24class GEOObjects;
25}
26
30class MergeGeometriesDialog : public QDialog, private Ui_MergeGeometries
31{
32 Q_OBJECT
33
34public:
35 explicit MergeGeometriesDialog(GeoLib::GEOObjects& geoObjects,
36 QDialog* parent = nullptr);
37 ~MergeGeometriesDialog() override;
38
40 std::vector<std::string> getSelectedGeometries() const;
41
43 std::string getGeometryName() const;
44
45private:
47 QStringListModel* _allGeo;
48 QStringListModel* _selGeo;
49
50private slots:
53
55 void accept() override;
56
58 void reject() override;
59};
Container class for geometric objects.
Definition: GEOObjects.h:61
A dialog window for setting preferences for GMSH.
std::string getGeometryName() const
Returns the name of the new merged geometry.
std::vector< std::string > getSelectedGeometries() const
Returns a vector of selected geometries.
void accept() override
Instructions if the OK-Button has been pressed.
GeoLib::GEOObjects & _geo_objects
void reject() override
Instructions if the Cancel-Button has been pressed.
QStringListModel * _allGeo
QStringListModel * _selGeo