routeId.setText("Route" + new Random().nextInt());
errorLabel = new QLabel("The edge you selected is not connected with the previous edge!");
errorLabel.setVisible(false);
errorLabel.setStyleSheet("background-color: red;");
QButtonGroup bGroup = new QButtonGroup();
QLabel lSelectionTyp = new QLabel("Please choose what to select on the map:");
QRadioButton waySelection = new QRadioButton("Way");
waySelection.setChecked(true);
waySelection.toggled.connect(this,"waySelectionToggled(boolean)");
QRadioButton edgeSelection = new QRadioButton("Edge");
edgeSelection.toggled.connect(this,"edgeSelectionToggled(boolean)");
bGroup.addButton(waySelection);
bGroup.addButton(edgeSelection);
QBoxLayout selBox = new QBoxLayout(Direction.LeftToRight);
selBox.addWidget(waySelection);
selBox.addWidget(edgeSelection);
edgesWidget = new QListWidget();