@@ -942,7 +942,7 @@ GNEViewNet::askMergeJunctions(const GNEJunction* movedJunction, const GNEJunctio
942942 targetJunction->getMicrosimID (),
943943 movedJunction->getMicrosimID (),
944944 targetJunction->getMicrosimID ());
945- const GNEQuestionBasicDialog questionDialog = GNEQuestionBasicDialog (myViewParent->getGNEAppWindows (), myViewParent-> getGNEAppWindows (),
945+ const GNEQuestionBasicDialog questionDialog = GNEQuestionBasicDialog (myViewParent->getGNEAppWindows (),
946946 GNEDialog::Buttons::YES_NO, header, body);
947947 // continue depending of result
948948 if (questionDialog.getResult () == GNEDialog::Result::ACCEPT) {
@@ -971,8 +971,8 @@ GNEViewNet::aksChangeSupermode(const std::string& operation, Supermode expectedS
971971 throw ProcessError (" invalid expected supermode" );
972972 }
973973 // open question dialog
974- const GNEQuestionBasicDialog questionDialog = GNEQuestionBasicDialog (myViewParent->getGNEAppWindows (), myViewParent-> getGNEAppWindows (), GNEDialog::Buttons::YES_NO,
975- TL (" Confirm switch mode" ), body);
974+ const GNEQuestionBasicDialog questionDialog = GNEQuestionBasicDialog (myViewParent->getGNEAppWindows (),
975+ GNEDialog::Buttons::YES_NO, TL (" Confirm switch mode" ), body);
976976 // continue depending of result
977977 if (questionDialog.getResult () == GNEDialog::Result::ACCEPT) {
978978 myEditModes.setSupermode (expectedSupermode, true );
@@ -1030,7 +1030,7 @@ GNEViewNet::restrictLane(GNELane* lane, SUMOVehicleClass vclass) {
10301030 const std::string bodyA = TL (" There are selected lanes that belong to the same edge." );
10311031 const std::string bodyB = TLF (" Only one lane per edge will be restricted to %." , toString (vclass));
10321032 // Show warning dialog
1033- GNEWarningBasicDialog (GNEApp, GNEApp, header, bodyA, bodyB);
1033+ GNEWarningBasicDialog (GNEApp, header, bodyA, bodyB);
10341034 }
10351035 // If we handeln a set of lanes
10361036 if (mapOfEdgesAndLanes.size () > 0 ) {
@@ -1047,14 +1047,14 @@ GNEViewNet::restrictLane(GNELane* lane, SUMOVehicleClass vclass) {
10471047 const std::string header = TLF (" Set vclass to % for selected lanes" , toString (vclass));
10481048 const std::string body = TLF (" All lanes own already another lane in the same edge with a restriction for %" , toString (vclass));
10491049 // show information dialog
1050- GNEInformationBasicDialog (GNEApp, GNEApp, header, body);
1050+ GNEInformationBasicDialog (GNEApp, header, body);
10511051 return 0 ;
10521052 } else {
10531053 // Ask confirmation to user
10541054 const std::string header = TLF (" Set vclass to % for selected lanes" , toString (vclass));
10551055 const std::string body = TLF (" % lanes will be restricted to %. Continue?" , toString (mapOfEdgesAndLanes.size () - counter), toString (vclass));
10561056 // show question dialog
1057- const GNEQuestionBasicDialog questionDialog = GNEQuestionBasicDialog (GNEApp, GNEApp, GNEDialog::Buttons::YES_NO, header, body);
1057+ const GNEQuestionBasicDialog questionDialog = GNEQuestionBasicDialog (GNEApp, GNEDialog::Buttons::YES_NO, header, body);
10581058 // continue depending of result
10591059 if (questionDialog.getResult () != GNEDialog::Result::ACCEPT) { // 1:yes, 2:no, 4:esc
10601060 return 0 ;
@@ -1115,14 +1115,14 @@ GNEViewNet::addRestrictedLane(GNELane* lane, SUMOVehicleClass vclass, const bool
11151115 const std::string header = TLF (" Add vclass % to selected lanes" , toString (vclass));
11161116 const std::string body = TLF (" All lanes own already another lane in the same edge with a restriction to %." , toString (vclass));
11171117 // show information dialog
1118- GNEInformationBasicDialog (GNEApp, GNEApp, header, body);
1118+ GNEInformationBasicDialog (GNEApp, header, body);
11191119 return 0 ;
11201120 } else {
11211121 // Ask confirmation to user
11221122 const std::string header = TLF (" Add vclass % to selected lanes" , toString (vclass));
11231123 const std::string body = TLF (" % restrictions to % will be added. Continue?" , toString (setOfEdges.size () - counter), toString (vclass));
11241124 // show question dialog
1125- const GNEQuestionBasicDialog questionDialog = GNEQuestionBasicDialog (GNEApp, GNEApp, GNEDialog::Buttons::YES_NO, header, body);
1125+ const GNEQuestionBasicDialog questionDialog = GNEQuestionBasicDialog (GNEApp, GNEDialog::Buttons::YES_NO, header, body);
11261126 // continue depending of result
11271127 if (questionDialog.getResult () != GNEDialog::Result::ACCEPT) { // 1:yes, 2:no, 4:esc
11281128 return 0 ;
@@ -1197,14 +1197,14 @@ GNEViewNet::removeRestrictedLane(GNELane* lane, SUMOVehicleClass vclass) {
11971197 const std::string header = TLF (" Remove vclass % from selected lanes" , toString (vclass));
11981198 const std::string body = TLF (" The selected lanes and edges don't have a restriction to %." , toString (vclass));
11991199 // show information dialog
1200- GNEInformationBasicDialog (GNEApp, GNEApp, header, body);
1200+ GNEInformationBasicDialog (GNEApp, header, body);
12011201 return 0 ;
12021202 } else {
12031203 // Ask confirmation to user
12041204 const std::string header = TLF (" Remove vclass % from selected lanes" , toString (vclass));
12051205 const std::string body = TLF (" % restrictions to % will be removed. Continue?" , toString (setOfEdges.size () - counter), toString (vclass));
12061206 // show question dialog
1207- const GNEQuestionBasicDialog questionDialog = GNEQuestionBasicDialog (GNEApp, GNEApp, GNEDialog::Buttons::YES_NO, header, body);
1207+ const GNEQuestionBasicDialog questionDialog = GNEQuestionBasicDialog (GNEApp, GNEDialog::Buttons::YES_NO, header, body);
12081208 // continue depending of result
12091209 if (questionDialog.getResult () != GNEDialog::Result::ACCEPT) { // 1:yes, 2:no, 4:esc
12101210 return 0 ;
0 commit comments