OGS
SHPImportDialog.h
Go to the documentation of this file.
1 
15 #pragma once
16 
17 #include <QDialog>
18 
19 namespace FileIO {
20  class SHPInterface;
21 }
22 
23 namespace GeoLib {
24  class GEOObjects;
25 }
26 
27 class QDialogButtonBox;
28 class QFileInfo;
29 class QGridLayout;
30 class QLabel;
31 class QLineEdit;
32 class QRadioButton;
33 class QVBoxLayout;
34 
38 class SHPImportDialog : public QDialog
39 {
40  Q_OBJECT
41 
42 public:
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 
51 private:
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 
65 private slots:
67  void accept() override;
68 
70  void reject() override;
71 
72 signals:
73  void shpLoaded(QString);
74 };
Manages the import of ESRI shape files into GeoLib.
Definition: SHPInterface.h:45
Container class for geometric objects.
Definition: GEOObjects.h:61
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