54 FXIMPLEMENT(
GNEDialog_AllowDisallow, FXDialogBox, GNEDialog_AllowDisallowMap, ARRAYNUMBER(GNEDialog_AllowDisallowMap))
63 myCopyOfAllow(*allow) {
80 FXHorizontalFrame* myVehiclesFrame =
new FXHorizontalFrame(myGroupBoxVehiclesFrame,
GUIDesignContentsFrame);
108 buildVClass(myContentRightFrame,
SVC_VIP,
ICON_VCLASS_VIP,
"A civilian security armored car used by VIPs");
109 buildVClass(myContentRightFrame,
SVC_HOV,
ICON_VCLASS_HOV,
"High-Occupancy Vehicle (two or more passengers)");
130 FXButton* buttonPressed =
dynamic_cast<FXButton*
>(obj);
133 if (i->second.first == buttonPressed) {
183 std::vector<std::string> allowedVehicles;
191 if (allowedVehicles.size() == 25) {
197 getApp()->stopModal(
this, TRUE);
205 getApp()->stopModal(
this, FALSE);
213 std::vector<std::string> allowStringVector;
217 if (std::find(allowStringVector.begin(), allowStringVector.end(),
getVehicleClassNames(i->first)) != allowStringVector.end()) {
234 labelVehicleIcon->setBackColor(FXRGBA(255, 255, 255, 255));
long onCmdSelectOnlyNonRoad(FXObject *, FXSelector, void *)
event when user press select only non road button
std::string getVehicleClassNames(SVCPermissions permissions, bool expand)
Returns the ids of the given classes, divided using a ' '.
#define GUIDesignHorizontalFrame
SUMOVehicleClass
Definition of vehicle classes to differ between different lane usage and authority types...
GUIIcon
An enumeration of icons used by the gui applications.
long onCmdAccept(FXObject *, FXSelector, void *)
event after press accept button
vehicle is a not electrified rail
vehicle is a small delivery vehicle
#define GUIDesignContentsFrame
design for the main content frame of every frame/dialog
#define GUIDesignButtonCancel
Cancel Button.
long onCmdSelectAll(FXObject *, FXSelector, void *)
event when user press select all VClasses button
vehicle is a (possibly fast moving) electric rail
vehicle is a large transport vehicle
long onCmdCancel(FXObject *, FXSelector, void *)
event after press cancel button
static void parseStringVector(const std::string &def, std::vector< std::string > &into)
Splits the given string.
#define GUIDesignAuxiliarFrame
design for auxiliar (Without borders) frames used to pack another frames extended in all directions ...
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
#define GUIDesignLabelIcon64x32Thicked
label ticked filled used for VClasses. It uses icons of 64x32 pixels
#define GUIDesignAuxiliarHorizontalFrame
design for auxiliar (Without borders) horizontal frame used to pack another frames ...
void buildVClass(FXVerticalFrame *contentsFrame, SUMOVehicleClass vclass, GUIIcon icon, const std::string &description)
build VClass
#define GUIDesignButtonReset
Reset Button.
~GNEDialog_AllowDisallow()
destructor
long onCmdUnselectAll(FXObject *, FXSelector, void *)
event when user press unselect all VClasses button
Dialog for edit rerouters.
vehicle is a passenger car (a "normal" car)
#define GUIDesignButtonAccept
Accept Button.
#define GUIDesignButtonIcon
button only with icon (23x23)
std::string myCopyOfAllow
copy of current allowed vehicles
#define GUIDesignDialogBox
#define GUIDesignGroupBoxFrame
Group box design extended over frame.
long onCmdReset(FXObject *, FXSelector, void *)
event after press reset button
vehicle is a large transport vehicle
FXDEFMAP(GNEDialog_AllowDisallow) GNEDialog_AllowDisallowMap[]
public emergency vehicles
std::map< SUMOVehicleClass, std::pair< FXButton *, FXLabel * > > myVClassMap
map with the buttons for every VClass
static FXIcon * getIcon(GUIIcon which)
returns a icon previously defined in the enum GUIIcon
#define GUIDesignLabelLeftThick
label extended over frame with thick and with text justify to left
std::string joinToString(const std::vector< T > &v, const T_BETWEEN &between, std::streamsize accuracy=gPrecision)
long onCmdValueChanged(FXObject *, FXSelector, void *)