@@ -2477,158 +2477,4 @@ GNEApplicationWindowHelper::stringEndsWith(const std::string& str, const std::st
24772477 }
24782478}
24792479
2480-
2481- GNEFileDialog
2482- GNEApplicationWindowHelper::openXMLFileDialog (GNEApplicationWindow* applicationWindow, GNEFileDialog::OpenMode openMode) {
2483- if (openMode == GNEFileDialog::OpenMode::SAVE) {
2484- return GNEFileDialog (applicationWindow, TL (" XML" ),
2485- SUMOXMLDefinitions::XMLFileExtensions.getStrings (), openMode,
2486- GNEFileDialog::ConfigType::NETEDIT);
2487- } else {
2488- return GNEFileDialog (applicationWindow, TL (" XML" ),
2489- SUMOXMLDefinitions::XMLFileExtensions.getStrings (), openMode,
2490- GNEFileDialog::ConfigType::NETEDIT);
2491- }
2492- }
2493-
2494-
2495- GNEFileDialog
2496- GNEApplicationWindowHelper::openNetworkFileDialog (GNEApplicationWindow* applicationWindow, GNEFileDialog::OpenMode openMode) {
2497- if (openMode == GNEFileDialog::OpenMode::SAVE) {
2498- return GNEFileDialog (applicationWindow, TL (" network" ),
2499- SUMOXMLDefinitions::NetFileExtensions.getStrings (), openMode,
2500- GNEFileDialog::ConfigType::NETEDIT);
2501- } else {
2502- return GNEFileDialog (applicationWindow, TL (" network" ),
2503- SUMOXMLDefinitions::NetFileExtensions.getStrings (), openMode,
2504- GNEFileDialog::ConfigType::NETEDIT);
2505- }
2506- }
2507-
2508-
2509- GNEFileDialog
2510- GNEApplicationWindowHelper::openNeteditConfigFileDialog (GNEApplicationWindow* applicationWindow, GNEFileDialog::OpenMode openMode) {
2511- if (openMode == GNEFileDialog::OpenMode::SAVE) {
2512- return GNEFileDialog (applicationWindow, TL (" netedit config" ),
2513- SUMOXMLDefinitions::NeteditConfigFileExtensions.getStrings (), openMode,
2514- GNEFileDialog::ConfigType::NETEDIT);
2515- } else {
2516- return GNEFileDialog (applicationWindow, TL (" netedit config" ),
2517- SUMOXMLDefinitions::NeteditConfigFileExtensions.getStrings (), openMode,
2518- GNEFileDialog::ConfigType::NETEDIT);
2519- }
2520- }
2521-
2522-
2523- GNEFileDialog
2524- GNEApplicationWindowHelper::openSumoConfigFileDialog (GNEApplicationWindow* applicationWindow, GNEFileDialog::OpenMode openMode) {
2525- if (openMode == GNEFileDialog::OpenMode::SAVE) {
2526- return GNEFileDialog (applicationWindow, TL (" sumo config" ),
2527- SUMOXMLDefinitions::SumoConfigFileExtensions.getStrings (), openMode,
2528- GNEFileDialog::ConfigType::NETEDIT);
2529- } else {
2530- return GNEFileDialog (applicationWindow, TL (" sumo config" ),
2531- SUMOXMLDefinitions::SumoConfigFileExtensions.getStrings (), openMode,
2532- GNEFileDialog::ConfigType::NETEDIT);
2533- }
2534- }
2535-
2536-
2537- GNEFileDialog
2538- GNEApplicationWindowHelper::openTLSFileDialog (GNEApplicationWindow* applicationWindow, GNEFileDialog::OpenMode openMode) {
2539- if (openMode == GNEFileDialog::OpenMode::SAVE) {
2540- return GNEFileDialog (applicationWindow, TL (" Traffic Light definitions" ),
2541- SUMOXMLDefinitions::TLSFileExtensions.getStrings (), openMode,
2542- GNEFileDialog::ConfigType::NETEDIT);
2543- } else {
2544- return GNEFileDialog (applicationWindow, TL (" Traffic Light definitions" ),
2545- SUMOXMLDefinitions::TLSFileExtensions.getStrings (), openMode,
2546- GNEFileDialog::ConfigType::NETEDIT);
2547- }
2548- }
2549-
2550-
2551- GNEFileDialog
2552- GNEApplicationWindowHelper::openEdgeTypeFileDialog (GNEApplicationWindow* applicationWindow, GNEFileDialog::OpenMode openMode) {
2553- if (openMode == GNEFileDialog::OpenMode::SAVE) {
2554- return GNEFileDialog (applicationWindow, TL (" EdgeTypes" ),
2555- SUMOXMLDefinitions::EdgeTypeFileExtensions.getStrings (), openMode,
2556- GNEFileDialog::ConfigType::NETEDIT);
2557- } else {
2558- return GNEFileDialog (applicationWindow, TL (" EdgeTypes" ),
2559- SUMOXMLDefinitions::EdgeTypeFileExtensions.getStrings (), openMode,
2560- GNEFileDialog::ConfigType::NETEDIT);
2561- }
2562- }
2563-
2564-
2565- GNEFileDialog
2566- GNEApplicationWindowHelper::openAdditionalFileDialog (GNEApplicationWindow* applicationWindow, GNEFileDialog::OpenMode openMode) {
2567- if (openMode == GNEFileDialog::OpenMode::SAVE) {
2568- return GNEFileDialog (applicationWindow, TL (" Additional elements" ),
2569- SUMOXMLDefinitions::AdditionalFileExtensions.getStrings (), openMode,
2570- GNEFileDialog::ConfigType::NETEDIT);
2571- } else {
2572- return GNEFileDialog (applicationWindow, TL (" Additional elements" ),
2573- SUMOXMLDefinitions::AdditionalFileExtensions.getStrings (), openMode,
2574- GNEFileDialog::ConfigType::NETEDIT);
2575- }
2576- }
2577-
2578-
2579- GNEFileDialog
2580- GNEApplicationWindowHelper::openRouteFileDialog (GNEApplicationWindow* applicationWindow, GNEFileDialog::OpenMode openMode) {
2581- if (openMode == GNEFileDialog::OpenMode::SAVE) {
2582- return GNEFileDialog (applicationWindow, TL (" Route elements" ),
2583- SUMOXMLDefinitions::RouteFileExtensions.getStrings (), openMode,
2584- GNEFileDialog::ConfigType::NETEDIT);
2585- } else {
2586- return GNEFileDialog (applicationWindow, TL (" Route elements" ),
2587- SUMOXMLDefinitions::RouteFileExtensions.getStrings (), openMode,
2588- GNEFileDialog::ConfigType::NETEDIT);
2589- }
2590- }
2591-
2592-
2593- GNEFileDialog
2594- GNEApplicationWindowHelper::openDataFileDialog (GNEApplicationWindow* applicationWindow, GNEFileDialog::OpenMode openMode) {
2595- if (openMode == GNEFileDialog::OpenMode::SAVE) {
2596- return GNEFileDialog (applicationWindow, TL (" Data elements" ),
2597- SUMOXMLDefinitions::EdgeDataFileExtensions.getStrings (), openMode,
2598- GNEFileDialog::ConfigType::NETEDIT);
2599- } else {
2600- return GNEFileDialog (applicationWindow, TL (" Data elements" ),
2601- SUMOXMLDefinitions::EdgeDataFileExtensions.getStrings (), openMode,
2602- GNEFileDialog::ConfigType::NETEDIT);
2603- }
2604- }
2605-
2606-
2607- GNEFileDialog
2608- GNEApplicationWindowHelper::openMeanDataDialog (GNEApplicationWindow* applicationWindow, GNEFileDialog::OpenMode openMode) {
2609- if (openMode == GNEFileDialog::OpenMode::SAVE) {
2610- return GNEFileDialog (applicationWindow, TL (" MeanData elements" ),
2611- SUMOXMLDefinitions::MeanDataFileExtensions.getStrings (), openMode,
2612- GNEFileDialog::ConfigType::NETEDIT);
2613- } else {
2614- return GNEFileDialog (applicationWindow, TL (" MeanData elements" ),
2615- SUMOXMLDefinitions::MeanDataFileExtensions.getStrings (), openMode,
2616- GNEFileDialog::ConfigType::NETEDIT);
2617- }
2618- }
2619-
2620-
2621- GNEFileDialog
2622- GNEApplicationWindowHelper::openOptionFileDialog (GNEApplicationWindow* applicationWindow, GNEFileDialog::OpenMode openMode) {
2623- if (openMode == GNEFileDialog::OpenMode::SAVE) {
2624- return GNEFileDialog (applicationWindow, TL (" options" ),
2625- SUMOXMLDefinitions::XMLFileExtensions.getStrings (), openMode,
2626- GNEFileDialog::ConfigType::NETEDIT);
2627- } else {
2628- return GNEFileDialog (applicationWindow, TL (" options" ),
2629- SUMOXMLDefinitions::XMLFileExtensions.getStrings (), openMode,
2630- GNEFileDialog::ConfigType::NETEDIT);
2631- }
2632- }
2633-
26342480/* ***************************************************************************/
0 commit comments