OGS
SHPImportDialog.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 <QDialog>
7
8namespace FileIO {
9 class SHPInterface;
10}
11
12namespace GeoLib {
13 class GEOObjects;
14}
15
16class QDialogButtonBox;
17class QFileInfo;
18class QGridLayout;
19class QLabel;
20class QLineEdit;
21class QRadioButton;
22class QVBoxLayout;
23
27class SHPImportDialog : public QDialog
28{
29 Q_OBJECT
30
31public:
33 SHPImportDialog(std::string filename, GeoLib::GEOObjects& geo_objects,
34 std::string const& gmsh_path,
35 QDialog* parent = nullptr);
36 ~SHPImportDialog() override;
37
38 QDialogButtonBox* _buttonBox;
39
40private:
42 void setupDialog();
43
44 QGridLayout* _layout;
46 QLabel* _nameLabel;
47 QLineEdit* _listName;
48 QRadioButton* _choice1, * _choice2;
49 std::string _filename;
50 short _fileType;
52 std::string const _gmsh_path;
53
54private slots:
56 void accept() override;
57
59 void reject() override;
60
61signals:
62 void shpLoaded(QString);
63};
Manages the import of ESRI shape files into GeoLib.
Container class for geometric objects.
Definition GEOObjects.h:46
void accept() override
Instructions if the OK-Button has been pressed.
QGridLayout * _layout
QRadioButton * _choice2
void reject() override
Instructions if the Cancel-Button has been pressed.
void shpLoaded(QString)
void setupDialog()
The buttons used in this dialog.
QLineEdit * _listName
QRadioButton * _choice1
QLabel * _shpContentLabel
std::string _filename
~SHPImportDialog() override
SHPImportDialog(std::string filename, GeoLib::GEOObjects &geo_objects, std::string const &gmsh_path, QDialog *parent=nullptr)
Constructor.
QDialogButtonBox * _buttonBox
FileIO::SHPInterface * _shpInterface
std::string const _gmsh_path