OGS
GeoOnMeshMappingDialog.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) OpenGeoSys Community (opengeosys.org)
2// SPDX-License-Identifier: BSD-3-Clause
3
4#pragma once
5
6#include "ui_GeoOnMeshMapping.h"
7#include <QDialog>
8
10
11namespace MeshLib {
12 class Mesh;
13}
14
18class GeoOnMeshMappingDialog : public QDialog, private Ui_GeoOnMeshMapping
19{
20 Q_OBJECT
21
22public:
24 std::vector<std::unique_ptr<MeshLib::Mesh>> const& mesh_vec,
25 QDialog* parent = nullptr);
27
28 std::string const& getNewGeoName() const { return _new_geo_name; };
29 int getDataSetChoice() const;
30
31private:
32 std::string _new_geo_name;
33
34private slots:
35 void on_advancedMappingButton_toggled(bool isSelected) { this->geoNameEdit->setEnabled(isSelected); };
36
38
40 void accept() override;
41
43 void reject() override { this->done(QDialog::Rejected); };
44};
void reject() override
Instructions if the Cancel-Button has been pressed.
void on_meshNameComboBox_currentIndexChanged(int idx)
GeoOnMeshMappingDialog(std::vector< std::unique_ptr< MeshLib::Mesh > > const &mesh_vec, QDialog *parent=nullptr)
~GeoOnMeshMappingDialog() override
void accept() override
Instructions if the OK-Button has been pressed.
void on_advancedMappingButton_toggled(bool isSelected)
std::string const & getNewGeoName() const