52 _layout =
new QGridLayout(
this);
54 int numberOfEntities = 0;
57 setWindowTitle(
"Import SHP File");
61 if ((shpType - 1) % 10 == 0)
65 if ((shpType - 3) % 10 == 0)
69 if ((shpType - 5) % 10 == 0)
73 if ((shpType - 8) % 10 == 0)
79 type =
"TIN elements";
83 new QLabel(
"The selected file contains " +
84 QString::number(numberOfEntities) +
" " + type,
88 QFileInfo fi(QString::fromStdString(
_filename));
91 if ((shpType - 1) % 10 == 0 && shpType != 31)
93 _choice1 =
new QRadioButton(
"Read as Geometry Points");
94 _choice2 =
new QRadioButton(
"Read as Station Points");
103 else if ((shpType - 3) % 10 == 0 ||
104 (shpType - 5) % 10 == 0)
106 _choice1 =
new QRadioButton(
"Read Polylines only");
107 _choice2 =
new QRadioButton(
"Read Polylines/Surfaces");
108 if ((shpType - 3) % 10 == 0)
124 "This element type is currently not supported.");
129 _buttonBox =
new QDialogButtonBox(QDialogButtonBox::Ok |
130 QDialogButtonBox::Cancel);