Eclipse SUMO - Simulation of Urban MObility
GNEApplicationWindowHelper Struct Reference

#include <GNEApplicationWindowHelper.h>

Data Structures

struct  EditMenuCommands
 struct for edit menu commands More...
 
struct  FileMenuCommands
 struct for File menu commands More...
 
class  GNENeteditConfigHandler
 netedit config handler More...
 
class  GNESumoConfigHandler
 SUMO config handler. More...
 
struct  HelpMenuCommands
 struct for help menu commands More...
 
struct  LocateMenuCommands
 struct for locate menu commands More...
 
struct  LockMenuCommands
 struct for processing menu commands More...
 
struct  MenuBarFile
 struct for menu bar file More...
 
struct  ModesMenuCommands
 struct for modes menu commands More...
 
struct  ProcessingMenuCommands
 struct for processing menu commands More...
 
struct  SupermodeCommands
 struct for supermode commands More...
 
struct  ToolbarsGrip
 struct for griped toolbars More...
 
struct  ToolsMenuCommands
 struct for locate menu commands More...
 
struct  WindowsMenuCommands
 struct for windows menu commands More...
 

Static Public Member Functions

static std::string openAdditionalFileDialog (FXWindow *window, bool save, bool multi=false)
 open additional dialog More...
 
static std::string openDataFileDialog (FXWindow *window, bool save, bool multi=false)
 open data file dialog More...
 
static std::string openEdgeTypeFileDialog (FXWindow *window, bool save)
 open edgeType file dialog More...
 
static std::string openFileDialog (FXWindow *window, bool save, bool multi)
 open general file dialog More...
 
static std::string openMeanDataDialog (FXWindow *window, bool save, bool multi=false)
 open meandata filename dialog More...
 
static std::string openNetconvertFileDialog (FXWindow *window)
 open netconvert file dialog More...
 
static std::string openNeteditConfigFileDialog (FXWindow *window, bool save)
 open netedit config file dialog More...
 
static std::string openNetworkFileDialog (FXWindow *window, bool save, bool multi=false)
 open netconvert file dialog More...
 
static std::string openOptionFileDialog (FXWindow *window, bool save)
 open option dialog More...
 
static std::string openOSMFileDialog (FXWindow *window)
 open OSM file dialog More...
 
static std::string openRouteFileDialog (FXWindow *window, bool save, bool multi=false)
 open route file dialog More...
 
static std::string openSumoConfigFileDialog (FXWindow *window, bool save, bool multi=false)
 open SUMO config file dialog More...
 
static std::string openTLSFileDialog (FXWindow *window, bool save)
 open TLS file dialog More...
 
static std::string saveJoinedJunctionsFileDialog (FXWindow *window)
 open joined junctions file dialog More...
 
static std::string savePlainXMLFileDialog (FXWindow *window)
 open plain xml file dialog More...
 
static std::string saveToolLog (FXWindow *window)
 open tool file dialog More...
 
static bool stringEndsWith (const std::string &str, const std::string &suffix)
 check if a string ends with another string More...
 
static bool toggleEditOptionsData (GNEViewNet *viewNet, const MFXCheckableButton *menuCheck, const int numericalKeyPressed, FXObject *obj, FXSelector sel)
 toggle edit options Data menu commands (called in GNEApplicationWindow::onCmdToggleEditOptions) More...
 
static bool toggleEditOptionsDemand (GNEViewNet *viewNet, const MFXCheckableButton *menuCheck, const int numericalKeyPressed, FXObject *obj, FXSelector sel)
 toggle edit options Demand menu commands (called in GNEApplicationWindow::onCmdToggleEditOptions) More...
 
static bool toggleEditOptionsNetwork (GNEViewNet *viewNet, const MFXCheckableButton *menuCheck, const int numericalKeyPressed, FXObject *obj, FXSelector sel)
 toggle edit options Network menu commands (called in GNEApplicationWindow::onCmdToggleEditOptions) More...
 

Private Member Functions

 GNEApplicationWindowHelper (const GNEApplicationWindowHelper &)=delete
 Invalidated copy constructor. More...
 
GNEApplicationWindowHelperoperator= (const GNEApplicationWindowHelper &)=delete
 Invalidated assignment operator. More...
 

Static Private Member Functions

static std::string openFileDialog (FXWindow *window, const std::string title, GUIIcon icon, const std::string patternList, bool save, bool multi=false)
 open filename dialog More...
 

Detailed Description

Definition at line 59 of file GNEApplicationWindowHelper.h.

Constructor & Destructor Documentation

◆ GNEApplicationWindowHelper()

GNEApplicationWindowHelper::GNEApplicationWindowHelper ( const GNEApplicationWindowHelper )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ openAdditionalFileDialog()

std::string GNEApplicationWindowHelper::openAdditionalFileDialog ( FXWindow *  window,
bool  save,
bool  multi = false 
)
static

open additional dialog

Definition at line 2888 of file GNEApplicationWindowHelper.cpp.

References MODEADDITIONAL, openFileDialog(), SAVE_ADDITIONALELEMENTS, and TL.

Referenced by GNEApplicationWindow::onCmdOpenAdditionals(), GNEPythonToolDialogElements::AdditionalArgument::onCmdOpenFilename(), GNEApplicationWindow::onCmdSaveAdditionalsAs(), and GNEApplicationWindow::onCmdSaveJuPedSimElementsAs().

Here is the caller graph for this function:

◆ openDataFileDialog()

std::string GNEApplicationWindowHelper::openDataFileDialog ( FXWindow *  window,
bool  save,
bool  multi = false 
)
static

open data file dialog

Definition at line 2920 of file GNEApplicationWindowHelper.cpp.

References openFileDialog(), SAVE_DATAELEMENTS, SUPERMODEDATA, and TL.

Referenced by GNEApplicationWindow::onCmdOpenDataElements(), GNEPythonToolDialogElements::DataArgument::onCmdOpenFilename(), and GNEApplicationWindow::onCmdSaveDataElementsAs().

Here is the caller graph for this function:

◆ openEdgeTypeFileDialog()

std::string GNEApplicationWindowHelper::openEdgeTypeFileDialog ( FXWindow *  window,
bool  save 
)
static

open edgeType file dialog

Definition at line 2872 of file GNEApplicationWindowHelper.cpp.

References OPEN_NET, openFileDialog(), SAVE_NETWORKELEMENTS, and TL.

Referenced by GNEApplicationWindow::onCmdOpenEdgeTypes(), and GNEApplicationWindow::onCmdSaveEdgeTypesAs().

Here is the caller graph for this function:

◆ openFileDialog() [1/2]

std::string GNEApplicationWindowHelper::openFileDialog ( FXWindow *  window,
bool  save,
bool  multi 
)
static

◆ openFileDialog() [2/2]

std::string GNEApplicationWindowHelper::openFileDialog ( FXWindow *  window,
const std::string  title,
GUIIcon  icon,
const std::string  patternList,
bool  save,
bool  multi = false 
)
staticprivate

◆ openMeanDataDialog()

std::string GNEApplicationWindowHelper::openMeanDataDialog ( FXWindow *  window,
bool  save,
bool  multi = false 
)
static

open meandata filename dialog

Definition at line 2936 of file GNEApplicationWindowHelper.cpp.

References MODEMEANDATA, openFileDialog(), SAVE_MEANDATAELEMENTS, and TL.

Referenced by GNEApplicationWindow::onCmdOpenMeanDatas(), and GNEApplicationWindow::onCmdSaveMeanDatasAs().

Here is the caller graph for this function:

◆ openNetconvertFileDialog()

std::string GNEApplicationWindowHelper::openNetconvertFileDialog ( FXWindow *  window)
static

open netconvert file dialog

Definition at line 2786 of file GNEApplicationWindowHelper.cpp.

References OPEN_NET, openFileDialog(), and TL.

Referenced by GNEApplicationWindow::onCmdOpenNetconvertConfig().

Here is the caller graph for this function:

◆ openNeteditConfigFileDialog()

std::string GNEApplicationWindowHelper::openNeteditConfigFileDialog ( FXWindow *  window,
bool  save 
)
static

open netedit config file dialog

Definition at line 2827 of file GNEApplicationWindowHelper.cpp.

References OPEN_NETEDITCONFIG, openFileDialog(), SAVE_NETEDITCONFIG, and TL.

Referenced by GNEApplicationWindow::onCmdOpenNeteditConfig(), and GNEApplicationWindow::onCmdSaveNeteditConfigAs().

Here is the caller graph for this function:

◆ openNetworkFileDialog()

std::string GNEApplicationWindowHelper::openNetworkFileDialog ( FXWindow *  window,
bool  save,
bool  multi = false 
)
static

open netconvert file dialog

Definition at line 2770 of file GNEApplicationWindowHelper.cpp.

References OPEN_NET, openFileDialog(), SAVE_NETWORKELEMENTS, and TL.

Referenced by GNEPythonToolDialogElements::NetworkArgument::onCmdOpenFilename(), GNEApplicationWindow::onCmdOpenNetwork(), GNENetgenerateDialog::onCmdOpenOutputFile(), and GNEApplicationWindow::onCmdSaveNetworkAs().

Here is the caller graph for this function:

◆ openOptionFileDialog()

std::string GNEApplicationWindowHelper::openOptionFileDialog ( FXWindow *  window,
bool  save 
)
static

open option dialog

Definition at line 2952 of file GNEApplicationWindowHelper.cpp.

References OPEN, openFileDialog(), SAVE, and TL.

Referenced by GNEPythonToolDialog::onCmdLoad(), GNEOptionsDialog::onCmdLoadOptions(), GNEPythonToolDialog::onCmdSave(), and GNEOptionsDialog::onCmdSaveOptions().

Here is the caller graph for this function:

◆ openOSMFileDialog()

std::string GNEApplicationWindowHelper::openOSMFileDialog ( FXWindow *  window)
static

open OSM file dialog

Definition at line 2820 of file GNEApplicationWindowHelper.cpp.

References OPEN_NET, openFileDialog(), and TL.

Referenced by GNEApplicationWindow::onCmdOpenForeign().

Here is the caller graph for this function:

◆ openRouteFileDialog()

std::string GNEApplicationWindowHelper::openRouteFileDialog ( FXWindow *  window,
bool  save,
bool  multi = false 
)
static

open route file dialog

Definition at line 2904 of file GNEApplicationWindowHelper.cpp.

References openFileDialog(), SAVE_DEMANDELEMENTS, SUPERMODEDEMAND, and TL.

Referenced by GNEApplicationWindow::onCmdOpenDemandElements(), GNEPythonToolDialogElements::RouteArgument::onCmdOpenFilename(), and GNEApplicationWindow::onCmdSaveDemandElementsAs().

Here is the caller graph for this function:

◆ openSumoConfigFileDialog()

std::string GNEApplicationWindowHelper::openSumoConfigFileDialog ( FXWindow *  window,
bool  save,
bool  multi = false 
)
static

open SUMO config file dialog

Definition at line 2842 of file GNEApplicationWindowHelper.cpp.

References OPEN_SUMOCONFIG, openFileDialog(), SAVE_SUMOCONFIG, and TL.

Referenced by GNEPythonToolDialogElements::SumoConfigArgument::onCmdOpenFilename(), GNEApplicationWindow::onCmdOpenSumoConfig(), and GNEApplicationWindow::onCmdSaveSumoConfigAs().

Here is the caller graph for this function:

◆ openTLSFileDialog()

std::string GNEApplicationWindowHelper::openTLSFileDialog ( FXWindow *  window,
bool  save 
)
static

open TLS file dialog

Definition at line 2856 of file GNEApplicationWindowHelper.cpp.

References OPEN_TLSPROGRAMS, openFileDialog(), SAVE_NETWORKELEMENTS, and TL.

Referenced by GNEApplicationWindow::onCmdOpenTLSPrograms(), and GNEApplicationWindow::onCmdSaveTLSProgramsAs().

Here is the caller graph for this function:

◆ operator=()

GNEApplicationWindowHelper& GNEApplicationWindowHelper::operator= ( const GNEApplicationWindowHelper )
privatedelete

Invalidated assignment operator.

◆ saveJoinedJunctionsFileDialog()

std::string GNEApplicationWindowHelper::saveJoinedJunctionsFileDialog ( FXWindow *  window)
static

open joined junctions file dialog

Definition at line 2803 of file GNEApplicationWindowHelper.cpp.

References openFileDialog(), SAVE, and TL.

Referenced by GNEApplicationWindow::onCmdSaveJoinedJunctionsAs().

Here is the caller graph for this function:

◆ savePlainXMLFileDialog()

std::string GNEApplicationWindowHelper::savePlainXMLFileDialog ( FXWindow *  window)
static

open plain xml file dialog

Definition at line 2795 of file GNEApplicationWindowHelper.cpp.

References openFileDialog(), SAVE, and TL.

Referenced by GNEApplicationWindow::onCmdSavePlainXMLAs().

Here is the caller graph for this function:

◆ saveToolLog()

std::string GNEApplicationWindowHelper::saveToolLog ( FXWindow *  window)
static

open tool file dialog

Definition at line 2812 of file GNEApplicationWindowHelper.cpp.

References openFileDialog(), SAVE, and TL.

Referenced by GNERunNetgenerateDialog::onCmdSaveLog(), and GNERunPythonToolDialog::onCmdSaveLog().

Here is the caller graph for this function:

◆ stringEndsWith()

bool GNEApplicationWindowHelper::stringEndsWith ( const std::string &  str,
const std::string &  suffix 
)
static

check if a string ends with another string

Definition at line 2746 of file GNEApplicationWindowHelper.cpp.

◆ toggleEditOptionsData()

bool GNEApplicationWindowHelper::toggleEditOptionsData ( GNEViewNet viewNet,
const MFXCheckableButton menuCheck,
const int  numericalKeyPressed,
FXObject *  obj,
FXSelector  sel 
)
static

◆ toggleEditOptionsDemand()

bool GNEApplicationWindowHelper::toggleEditOptionsDemand ( GNEViewNet viewNet,
const MFXCheckableButton menuCheck,
const int  numericalKeyPressed,
FXObject *  obj,
FXSelector  sel 
)
static

toggle edit options Demand menu commands (called in GNEApplicationWindow::onCmdToggleEditOptions)

Definition at line 2518 of file GNEApplicationWindowHelper.cpp.

References MFXCheckableButton::amChecked(), GNEViewNet::getDemandViewOptions(), GNEViewNetHelper::DemandViewOptions::menuCheckDrawSpreadVehicles, GNEViewNetHelper::DemandViewOptions::menuCheckHideNonInspectedDemandElements, GNEViewNetHelper::DemandViewOptions::menuCheckHideShapes, GNEViewNetHelper::DemandViewOptions::menuCheckLockContainer, GNEViewNetHelper::DemandViewOptions::menuCheckLockPerson, GNEViewNetHelper::DemandViewOptions::menuCheckShowAllContainerPlans, GNEViewNetHelper::DemandViewOptions::menuCheckShowAllPersonPlans, GNEViewNetHelper::DemandViewOptions::menuCheckShowAllTrips, GNEViewNetHelper::DemandViewOptions::menuCheckShowOverlappedRoutes, GNEViewNetHelper::DemandViewOptions::menuCheckToggleDrawJunctionShape, GNEViewNetHelper::DemandViewOptions::menuCheckToggleGrid, GNEViewNet::onCmdToggleDrawJunctionShape(), GNEViewNet::onCmdToggleDrawSpreadVehicles(), GNEViewNet::onCmdToggleHideNonInspecteDemandElements(), GNEViewNet::onCmdToggleHideShapes(), GNEViewNet::onCmdToggleLockContainer(), GNEViewNet::onCmdToggleLockPerson(), GNEViewNet::onCmdToggleShowAllContainerPlans(), GNEViewNet::onCmdToggleShowAllPersonPlans(), GNEViewNet::onCmdToggleShowGrid(), GNEViewNet::onCmdToggleShowOverlappedRoutes(), GNEViewNet::onCmdToggleShowTrips(), toString(), and WRITE_DEBUG.

Referenced by GNEApplicationWindow::onCmdToggleEditOptions().

Here is the caller graph for this function:

◆ toggleEditOptionsNetwork()

bool GNEApplicationWindowHelper::toggleEditOptionsNetwork ( GNEViewNet viewNet,
const MFXCheckableButton menuCheck,
const int  numericalKeyPressed,
FXObject *  obj,
FXSelector  sel 
)
static

toggle edit options Network menu commands (called in GNEApplicationWindow::onCmdToggleEditOptions)

Definition at line 2331 of file GNEApplicationWindowHelper.cpp.

References MFXCheckableButton::amChecked(), GNEViewNet::getNetworkViewOptions(), GNEViewNetHelper::NetworkViewOptions::menuCheckAutoOppositeEdge, GNEViewNetHelper::NetworkViewOptions::menuCheckChainEdges, GNEViewNetHelper::NetworkViewOptions::menuCheckChangeAllPhases, GNEViewNetHelper::NetworkViewOptions::menuCheckDrawSpreadVehicles, GNEViewNetHelper::NetworkViewOptions::menuCheckExtendSelection, GNEViewNetHelper::NetworkViewOptions::menuCheckHideConnections, GNEViewNetHelper::NetworkViewOptions::menuCheckMoveElevation, GNEViewNetHelper::NetworkViewOptions::menuCheckSelectEdges, GNEViewNetHelper::NetworkViewOptions::menuCheckShowAdditionalSubElements, GNEViewNetHelper::NetworkViewOptions::menuCheckShowConnections, GNEViewNetHelper::NetworkViewOptions::menuCheckShowDemandElements, GNEViewNetHelper::NetworkViewOptions::menuCheckShowJunctionBubble, GNEViewNetHelper::NetworkViewOptions::menuCheckShowTAZElements, GNEViewNetHelper::NetworkViewOptions::menuCheckToggleDrawJunctionShape, GNEViewNetHelper::NetworkViewOptions::menuCheckToggleGrid, GNEViewNetHelper::NetworkViewOptions::menuCheckWarnAboutMerge, GNEViewNet::onCmdToggleAutoOppositeEdge(), GNEViewNet::onCmdToggleChainEdges(), GNEViewNet::onCmdToggleChangeAllPhases(), GNEViewNet::onCmdToggleDrawJunctionShape(), GNEViewNet::onCmdToggleDrawSpreadVehicles(), GNEViewNet::onCmdToggleExtendSelection(), GNEViewNet::onCmdToggleHideConnections(), GNEViewNet::onCmdToggleMoveElevation(), GNEViewNet::onCmdToggleSelectEdges(), GNEViewNet::onCmdToggleShowAdditionalSubElements(), GNEViewNet::onCmdToggleShowConnections(), GNEViewNet::onCmdToggleShowDemandElementsNetwork(), GNEViewNet::onCmdToggleShowGrid(), GNEViewNet::onCmdToggleShowJunctionBubbles(), GNEViewNet::onCmdToggleShowTAZElements(), GNEViewNet::onCmdToggleWarnAboutMerge(), toString(), and WRITE_DEBUG.

Referenced by GNEApplicationWindow::onCmdToggleEditOptions().

Here is the caller graph for this function:

The documentation for this struct was generated from the following files: