Eclipse SUMO - Simulation of Urban MObility
|
lock manager More...
#include <GNEViewNetHelper.h>
Data Structures | |
class | OperationLocked |
operation locked More... | |
Public Member Functions | |
bool | isObjectLocked (GUIGlObjectType objectType, const bool selected) const |
check if given GLObject is locked for inspect, select, delete and move | |
LockManager (GNEViewNet *viewNet) | |
constructor | |
void | updateFlags () |
update flags | |
void | updateLockMenuBar () |
update lock inspect menuBar | |
~LockManager () | |
destructor | |
Private Attributes | |
std::map< GUIGlObjectType, OperationLocked > | myLockedElements |
map with locked elements | |
GNEViewNet * | myViewNet |
pointer to viewNet | |
lock manager
Definition at line 172 of file GNEViewNetHelper.h.
GNEViewNetHelper::LockManager::LockManager | ( | GNEViewNet * | viewNet | ) |
constructor
Definition at line 58 of file GNEViewNetHelper.cpp.
References DATA, DEMAND, GLO_ADDITIONALELEMENT, GLO_CONNECTION, GLO_CONTAINER, GLO_CROSSING, GLO_EDGE, GLO_EDGEDATA, GLO_EDGERELDATA, GLO_JPS_OBSTACLE, GLO_JPS_WALKABLEAREA, GLO_JUNCTION, GLO_LANE, GLO_PERSON, GLO_PERSONTRIP, GLO_POI, GLO_POLYGON, GLO_RIDE, GLO_ROUTE, GLO_STOP, GLO_TAZ, GLO_TAZRELDATA, GLO_TRANSHIP, GLO_TRANSPORT, GLO_VEHICLE, GLO_WALK, GLO_WALKINGAREA, GLO_WIRE, myLockedElements, and NETWORK.
GNEViewNetHelper::LockManager::~LockManager | ( | ) |
destructor
Definition at line 93 of file GNEViewNetHelper.cpp.
bool GNEViewNetHelper::LockManager::isObjectLocked | ( | GUIGlObjectType | objectType, |
const bool | selected | ||
) | const |
check if given GLObject is locked for inspect, select, delete and move
Definition at line 97 of file GNEViewNetHelper.cpp.
References GLO_ACCESS, GLO_ADDITIONALELEMENT, GLO_CONTAINER, GLO_CONTAINERFLOW, GLO_PERSON, GLO_PERSONFLOW, GLO_ROUTE, GLO_ROUTE_EMBEDDED, GLO_ROUTEFLOW, GLO_STOP, GLO_STOP_PLAN, GLO_TRACTIONSUBSTATION, GLO_VEHICLE, and GLO_WIRE.
Referenced by GNEViewNet::autoSelectNodes(), GNEViewNet::checkOverLockedElement(), GNEAdditional::isGLObjectLocked(), GNEDemandElement::isGLObjectLocked(), GNENetworkElement::isGLObjectLocked(), and GNESelectorFrame::selectAttributeCarrier().
void GNEViewNetHelper::LockManager::updateFlags | ( | ) |
update flags
Definition at line 128 of file GNEViewNetHelper.cpp.
References MFXMenuCheckIcon::getCheck(), GLO_ADDITIONALELEMENT, GLO_CONNECTION, GLO_CONTAINER, GLO_CROSSING, GLO_EDGE, GLO_EDGEDATA, GLO_EDGERELDATA, GLO_JPS_OBSTACLE, GLO_JPS_WALKABLEAREA, GLO_JUNCTION, GLO_LANE, GLO_PERSON, GLO_PERSONTRIP, GLO_POI, GLO_POLYGON, GLO_RIDE, GLO_ROUTE, GLO_STOP, GLO_TAZ, GLO_TAZRELDATA, GLO_TRANSHIP, GLO_TRANSPORT, GLO_VEHICLE, GLO_WALK, GLO_WALKINGAREA, GLO_WIRE, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockAdditionals, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockConnections, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockContainers, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockCrossings, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockEdgeDatas, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockEdgeRelDatas, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockEdges, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockEdgeTAZRels, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockJpsObstacles, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockJpsWalkableAreas, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockJunction, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockLanes, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockPersons, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockPersonTrip, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockPOIs, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockPolygons, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockRides, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockRoutes, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockStops, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockTAZs, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockTranships, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockTransports, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockVehicles, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockWalk, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockWalkingAreas, and GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockWires.
Referenced by GNEApplicationWindow::onCmdLockAllElements(), GNEApplicationWindow::onCmdLockElements(), and GNEApplicationWindow::onCmdUnlockAllElements().
void GNEViewNetHelper::LockManager::updateLockMenuBar | ( | ) |
update lock inspect menuBar
Definition at line 164 of file GNEViewNetHelper.cpp.
References GLO_ADDITIONALELEMENT, GLO_CONNECTION, GLO_CONTAINER, GLO_CROSSING, GLO_EDGE, GLO_EDGEDATA, GLO_EDGERELDATA, GLO_JPS_OBSTACLE, GLO_JPS_WALKABLEAREA, GLO_JUNCTION, GLO_LANE, GLO_PERSON, GLO_PERSONTRIP, GLO_POI, GLO_POLYGON, GLO_RIDE, GLO_ROUTE, GLO_STOP, GLO_TAZ, GLO_TAZRELDATA, GLO_TRANSHIP, GLO_TRANSPORT, GLO_VEHICLE, GLO_WALK, GLO_WALKINGAREA, GLO_WIRE, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockAdditionals, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockConnections, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockContainers, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockCrossings, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockEdgeDatas, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockEdgeRelDatas, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockEdges, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockEdgeTAZRels, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockJpsObstacles, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockJpsWalkableAreas, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockJunction, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockLanes, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockPersons, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockPersonTrip, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockPOIs, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockPolygons, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockRides, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockRoutes, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockStops, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockTAZs, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockTranships, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockTransports, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockVehicles, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockWalk, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockWalkingAreas, GNEApplicationWindowHelper::LockMenuCommands::menuCheckLockWires, and MFXMenuCheckIcon::setCheck().
Referenced by GNEViewNet::updateNetworkModeSpecificControls().
|
private |
map with locked elements
Definition at line 219 of file GNEViewNetHelper.h.
Referenced by LockManager().
|
private |
pointer to viewNet
Definition at line 216 of file GNEViewNetHelper.h.