OGS
SHPImportDialog.h
Go to the documentation of this file.
1
15#pragma once
16
17#include <QDialog>
18
19namespace FileIO {
20 class SHPInterface;
21}
22
23namespace GeoLib {
24 class GEOObjects;
25}
26
27class QDialogButtonBox;
28class QFileInfo;
29class QGridLayout;
30class QLabel;
31class QLineEdit;
32class QRadioButton;
33class QVBoxLayout;
34
38class SHPImportDialog : public QDialog
39{
40 Q_OBJECT
41
42public:
44 SHPImportDialog(std::string filename, GeoLib::GEOObjects& geo_objects,
45 std::string const& gmsh_path,
46 QDialog* parent = nullptr);
47 ~SHPImportDialog() override;
48
49 QDialogButtonBox* _buttonBox;
50
51private:
53 void setupDialog();
54
55 QGridLayout* _layout;
57 QLabel* _nameLabel;
58 QLineEdit* _listName;
59 QRadioButton* _choice1, * _choice2;
60 std::string _filename;
61 short _fileType;
63 std::string const _gmsh_path;
64
65private slots:
67 void accept() override;
68
70 void reject() override;
71
72signals:
73 void shpLoaded(QString);
74};
Manages the import of ESRI shape files into GeoLib.
Container class for geometric objects.
Definition GEOObjects.h:57
Dialog for selecting which information should be loaded from a shape file.
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