OGS
|
Dialog for selecting which information should be loaded from a shape file.
Definition at line 38 of file SHPImportDialog.h.
#include <SHPImportDialog.h>
Signals | |
void | shpLoaded (QString) |
Public Member Functions | |
SHPImportDialog (std::string filename, GeoLib::GEOObjects &geo_objects, std::string const &gmsh_path, QDialog *parent=nullptr) | |
Constructor. | |
~SHPImportDialog () override | |
Public Attributes | |
QDialogButtonBox * | _buttonBox |
Private Slots | |
void | accept () override |
Instructions if the OK-Button has been pressed. | |
void | reject () override |
Instructions if the Cancel-Button has been pressed. | |
Private Member Functions | |
void | setupDialog () |
The buttons used in this dialog. | |
Private Attributes | |
QGridLayout * | _layout |
QLabel * | _shpContentLabel |
QLabel * | _nameLabel |
QLineEdit * | _listName |
QRadioButton * | _choice1 |
QRadioButton * | _choice2 |
std::string | _filename |
short | _fileType |
FileIO::SHPInterface * | _shpInterface |
std::string const | _gmsh_path |
SHPImportDialog::SHPImportDialog | ( | std::string | filename, |
GeoLib::GEOObjects & | geo_objects, | ||
std::string const & | gmsh_path, | ||
QDialog * | parent = nullptr ) |
Constructor.
Definition at line 28 of file SHPImportDialog.cpp.
References setupDialog().
|
override |
Definition at line 49 of file SHPImportDialog.cpp.
References _buttonBox, _choice1, _choice2, _layout, _listName, _nameLabel, _shpContentLabel, and _shpInterface.
|
overrideprivateslot |
Instructions if the OK-Button has been pressed.
Definition at line 154 of file SHPImportDialog.cpp.
References _choice1, _choice2, _filename, _fileType, _gmsh_path, _listName, _shpInterface, OGSError::box(), FileIO::SHPInterface::POINT, FileIO::SHPInterface::POLYGON, FileIO::SHPInterface::POLYLINE, FileIO::SHPInterface::readSHPFile(), shpLoaded(), and FileIO::SHPInterface::STATION.
Referenced by setupDialog().
|
overrideprivateslot |
Instructions if the Cancel-Button has been pressed.
Definition at line 192 of file SHPImportDialog.cpp.
Referenced by setupDialog().
|
private |
The buttons used in this dialog.
Constructs a dialog window based on the information found in the selected shape file
Definition at line 61 of file SHPImportDialog.cpp.
References _buttonBox, _choice1, _choice2, _filename, _fileType, _layout, _listName, _nameLabel, _shpContentLabel, _shpInterface, accept(), OGSError::box(), FileIO::SHPInterface::readSHPInfo(), and reject().
Referenced by SHPImportDialog().
|
signal |
Referenced by accept().
QDialogButtonBox* SHPImportDialog::_buttonBox |
Definition at line 49 of file SHPImportDialog.h.
Referenced by ~SHPImportDialog(), and setupDialog().
|
private |
Definition at line 59 of file SHPImportDialog.h.
Referenced by ~SHPImportDialog(), accept(), and setupDialog().
|
private |
Definition at line 59 of file SHPImportDialog.h.
Referenced by ~SHPImportDialog(), accept(), and setupDialog().
|
private |
Definition at line 60 of file SHPImportDialog.h.
Referenced by accept(), and setupDialog().
|
private |
Definition at line 61 of file SHPImportDialog.h.
Referenced by accept(), and setupDialog().
|
private |
Definition at line 63 of file SHPImportDialog.h.
Referenced by accept().
|
private |
Definition at line 55 of file SHPImportDialog.h.
Referenced by ~SHPImportDialog(), and setupDialog().
|
private |
Definition at line 58 of file SHPImportDialog.h.
Referenced by ~SHPImportDialog(), accept(), and setupDialog().
|
private |
Definition at line 57 of file SHPImportDialog.h.
Referenced by ~SHPImportDialog(), and setupDialog().
|
private |
Definition at line 56 of file SHPImportDialog.h.
Referenced by ~SHPImportDialog(), and setupDialog().
|
private |
Definition at line 62 of file SHPImportDialog.h.
Referenced by ~SHPImportDialog(), accept(), and setupDialog().