77FXIMPLEMENT(
GNEInspectorFrame, FXVerticalFrame, GNEInspectorFrameMap, ARRAYNUMBER(GNEInspectorFrameMap))
94 myInspectorFrameParent(inspectorFrameParent) {
99 myLabelParentAdditional =
new FXLabel(getCollapsableFrame(),
"Parent",
nullptr,
GUIDesignLabelThick(JUSTIFY_NORMAL));
102 inspectorFrameParent->getViewNet()->getViewParent()->getGNEAppWindows()->getStaticTooltipMenu(),
118 const auto& inspectedElements = myInspectorFrameParent->getViewNet()->getInspectedElements();
120 if (inspectedElements.isInspectingElements()) {
122 myTextFieldParentAdditional->enable();
123 myCheckBoxCloseShape->enable();
125 const auto& tagValue = inspectedElements.getFirstAC()->getTagProperty();
127 if (inspectedElements.isInspectingSingleElement()) {
131 myMarkFrontElementButton->show();
133 if (myInspectorFrameParent->getViewNet()->getFrontAttributeCarrier() == inspectedElements.getFirstAC()) {
134 myMarkFrontElementButton->disable();
136 myMarkFrontElementButton->enable();
140 if (tagValue.canCloseShape()) {
145 for (
const auto& inspectedAC : inspectedElements.getACs()) {
149 myHorizontalFrameCloseShape->show();
151 myHelpButton->show();
154 myCheckBoxCloseShape->setCheck(
true);
155 myCheckBoxCloseShape->setText(
"true");
157 myCheckBoxCloseShape->setCheck(
false);
158 myCheckBoxCloseShape->setText(
"false");
162 if (tagValue.isChild() && tagValue.canBeReparent()) {
166 std::set<std::string> parents;
167 for (
const auto& inspectedAC : inspectedElements.getACs()) {
171 myLabelParentAdditional->show();
172 myTextFieldParentAdditional->show();
173 mySetNewParentButton->show();
175 mySetNewParentButton->setChecked(
false);
176 mySetNewParentButton->setText(
TL(
"Set new parent"));
181 myHelpButton->show();
183 myLabelParentAdditional->setText((parentTagProperty.getTagStr() +
" parent").c_str());
184 myTextFieldParentAdditional->setText(
toString(parents).c_str());
188 myTextFieldParentAdditional->disable();
189 myCheckBoxCloseShape->disable();
198 myLabelParentAdditional->hide();
199 myTextFieldParentAdditional->hide();
200 mySetNewParentButton->hide();
201 myHorizontalFrameCloseShape->hide();
202 myMarkFrontElementButton->hide();
203 myHelpButton->hide();
211 const auto& inspectedElements = myInspectorFrameParent->getViewNet()->getInspectedElements();
212 if (inspectedElements.isInspectingElements()) {
214 if (myInspectorFrameParent->getViewNet()->getFrontAttributeCarrier() == inspectedElements.getFirstAC()) {
215 myMarkFrontElementButton->disable();
217 myMarkFrontElementButton->enable();
220 if (myHorizontalFrameCloseShape->shown()) {
223 for (
const auto& AC : inspectedElements.getACs()) {
228 myCheckBoxCloseShape->setCheck(
true);
229 myCheckBoxCloseShape->setText(
"true");
231 myCheckBoxCloseShape->setCheck(
false);
232 myCheckBoxCloseShape->setText(
"false");
236 if (myTextFieldParentAdditional->shown() && ((myTextFieldParentAdditional->getTextColor() == FXRGB(0, 0, 0)) || forceRefresh)) {
238 myLabelParentAdditional->setText((
toString(inspectedElements.getFirstAC()->getTagProperty().getParentTags().front()) +
" parent").c_str());
239 myTextFieldParentAdditional->setText(inspectedElements.getFirstAC()->getAttribute(
GNE_ATTR_PARENT).c_str());
250 return (mySetNewParentButton->shown() && mySetNewParentButton->amChecked());
257 const auto& inspectedElements = myInspectorFrameParent->getViewNet()->getInspectedElements();
259 if ((inspectedElements.isInspectingElements()) && clickedAC) {
261 for (
const auto& parentTag : inspectedElements.getFirstAC()->getTagProperty().getParentTags()) {
264 if (inspectedElements.isInspectingMultipleElements()) {
265 myInspectorFrameParent->myViewNet->getUndoList()->begin(inspectedElements.getFirstAC(),
"Change multiple attributes");
268 for (
const auto& AC : inspectedElements.getACs()) {
269 AC->setAttribute(
GNE_ATTR_PARENT, clickedAC->
getID(), myInspectorFrameParent->myViewNet->getUndoList());
272 if (inspectedElements.isInspectingMultipleElements()) {
273 myInspectorFrameParent->myViewNet->getUndoList()->end();
278 refreshNeteditAttributesEditor(
true);
287 if (mySetNewParentButton->amChecked()) {
288 onCmdSetNeteditAttribute(mySetNewParentButton, 0,
nullptr);
295 const auto& inspectedElements = myInspectorFrameParent->getViewNet()->getInspectedElements();
297 if (inspectedElements.isInspectingElements()) {
299 if (inspectedElements.isInspectingMultipleElements()) {
300 myInspectorFrameParent->myViewNet->getUndoList()->begin(inspectedElements.getFirstAC(),
"Change multiple attributes");
302 if (obj == mySetNewParentButton) {
303 if (mySetNewParentButton->amChecked()) {
304 mySetNewParentButton->setText(
TL(
"Set new parent"));
305 mySetNewParentButton->setChecked(
false);
307 mySetNewParentButton->setText((
"Click over " +
toString(inspectedElements.getFirstAC()->getTagProperty().getParentTags().front())).c_str());
308 mySetNewParentButton->setChecked(
true);
310 }
else if (obj == myCheckBoxCloseShape) {
312 for (
const auto& AC : inspectedElements.getACs()) {
313 if (myCheckBoxCloseShape->getCheck() == 1) {
314 AC->setAttribute(
GNE_ATTR_CLOSE_SHAPE,
"true", myInspectorFrameParent->myViewNet->getUndoList());
315 myCheckBoxCloseShape->setText(
"true");
317 AC->setAttribute(
GNE_ATTR_CLOSE_SHAPE,
"false", myInspectorFrameParent->myViewNet->getUndoList());
318 myCheckBoxCloseShape->setText(
"false");
321 }
else if (obj == myTextFieldParentAdditional) {
322 if (inspectedElements.getFirstAC()->isValid(
GNE_ATTR_PARENT, myTextFieldParentAdditional->getText().text())) {
324 for (
const auto& AC : inspectedElements.getACs()) {
325 AC->setAttribute(
GNE_ATTR_PARENT, myTextFieldParentAdditional->getText().text(), myInspectorFrameParent->myViewNet->getUndoList());
327 myTextFieldParentAdditional->setTextColor(FXRGB(0, 0, 0));
328 myTextFieldParentAdditional->killFocus();
330 myTextFieldParentAdditional->setTextColor(FXRGB(255, 0, 0));
334 if (inspectedElements.isInspectingMultipleElements()) {
335 myInspectorFrameParent->myViewNet->getUndoList()->end();
338 myInspectorFrameParent->myAttributesEditor->refreshAttributeEditor(
true,
true);
339 myInspectorFrameParent->myGEOAttributesEditor->refreshGEOAttributesEditor(
true);
347 const auto& inspectedElements = myInspectorFrameParent->getViewNet()->getInspectedElements();
349 if (inspectedElements.isInspectingSingleElement()) {
351 myInspectorFrameParent->getViewNet()->setFrontAttributeCarrier(inspectedElements.getFirstAC());
353 myMarkFrontElementButton->disable();
362 FXDialogBox* additionalNeteditAttributesHelpDialog =
new FXDialogBox(getCollapsableFrame(),
"Netedit Attributes Help",
GUIDesignDialogBox);
365 std::ostringstream help;
367 <<
TL(
"- Mark as front element: Mark element as front element (Will be drawn over all other elements)\n")
368 <<
TL(
"- Block movement: disable movement in move mode\n")
369 <<
TL(
"- Block shape: Disable moving of shape's vertices and edges. Entire shape can be moved'.\n")
370 <<
TL(
"- Close shape: Add or remove the last vertex with the same position of first edge'.");
382 WRITE_DEBUG(
"Opening NeteditAttributesEditor help dialog");
384 additionalNeteditAttributesHelpDialog->create();
386 additionalNeteditAttributesHelpDialog->show(PLACEMENT_CURSOR);
390 getApp()->runModalFor(additionalNeteditAttributesHelpDialog);
392 WRITE_DEBUG(
"Closing NeteditAttributesEditor help dialog");
402 myInspectorFrameParent(inspectorFrameParent) {
424 const auto& inspectedElements = myInspectorFrameParent->getViewNet()->getInspectedElements();
426 if (inspectedElements.isInspectingElements()) {
428 myGEOAttributeTextField->enable();
429 myUseGEOCheckButton->enable();
431 const auto& tagProperty = inspectedElements.getFirstAC()->getTagProperty();
433 if (tagProperty.hasGEOShape()) {
438 for (
const auto& AC : inspectedElements.getACs()) {
439 value &= GNEAttributeCarrier::parse<bool>(AC->getAttribute(
SUMO_ATTR_GEO));
442 myUseGEOFrame->show();
445 myUseGEOCheckButton->enable();
447 myUseGEOCheckButton->setCheck(
true);
448 myUseGEOCheckButton->setText(
"true");
450 myUseGEOCheckButton->setCheck(
false);
451 myUseGEOCheckButton->setText(
"false");
454 myUseGEOCheckButton->disable();
456 if (tagProperty.hasGEOShape() && inspectedElements.isInspectingSingleElement()) {
457 myGEOAttributeFrame->show();
459 myGEOAttributeTextField->setTextColor(FXRGB(0, 0, 0));
462 myGEOAttributeTextField->enable();
463 myGEOAttributeTextField->setText(inspectedElements.getFirstAC()->getAttribute(
SUMO_ATTR_GEOSHAPE).c_str());
465 myGEOAttributeTextField->disable();
466 myGEOAttributeTextField->setText(
TL(
"No geo-conversion defined"));
472 myGEOAttributeTextField->disable();
473 myUseGEOCheckButton->disable();
482 myGEOAttributeFrame->hide();
483 myUseGEOFrame->hide();
491 const auto& inspectedElements = myInspectorFrameParent->getViewNet()->getInspectedElements();
493 if (inspectedElements.getFirstAC() && (
GeoConvHelper::getFinal().
getProjString() !=
"!") && myGEOAttributeFrame->shown() && ((myGEOAttributeTextField->getTextColor() == FXRGB(0, 0, 0)) || forceRefresh)) {
494 if (inspectedElements.getFirstAC()->getTagProperty().hasGEOShape()) {
495 myGEOAttributeTextField->setText(inspectedElements.getFirstAC()->getAttribute(
SUMO_ATTR_GEOSHAPE).c_str());
497 myGEOAttributeTextField->setTextColor(FXRGB(0, 0, 0));
504 const auto& inspectedElements = myInspectorFrameParent->getViewNet()->getInspectedElements();
507 if (obj == myGEOAttributeTextField) {
509 const auto& tagProperty = inspectedElements.getFirstAC()->getTagProperty();
511 if (tagProperty.hasGEOShape()) {
512 if (inspectedElements.getFirstAC()->isValid(
SUMO_ATTR_GEOSHAPE, myGEOAttributeTextField->getText().text())) {
513 inspectedElements.getFirstAC()->setAttribute(
SUMO_ATTR_GEOSHAPE, myGEOAttributeTextField->getText().text(), myInspectorFrameParent->myViewNet->getUndoList());
514 myGEOAttributeTextField->setTextColor(FXRGB(0, 0, 0));
515 myGEOAttributeTextField->killFocus();
517 myGEOAttributeTextField->setTextColor(FXRGB(255, 0, 0));
520 throw ProcessError(
"myGEOAttributeTextField must be hidden because there isn't GEO Attribute to edit");
522 }
else if (obj == myUseGEOCheckButton) {
524 for (
const auto& AC : inspectedElements.getACs()) {
525 if (myUseGEOCheckButton->getCheck() == 1) {
526 AC->setAttribute(
SUMO_ATTR_GEO,
"true", myInspectorFrameParent->myViewNet->getUndoList());
527 myUseGEOCheckButton->setText(
"true");
529 AC->setAttribute(
SUMO_ATTR_GEO,
"false", myInspectorFrameParent->myViewNet->getUndoList());
530 myUseGEOCheckButton->setText(
"false");
535 myInspectorFrameParent->myAttributesEditor->refreshAttributeEditor(
true,
true);
536 myInspectorFrameParent->myNeteditAttributesEditor->refreshNeteditAttributesEditor(
true);
544 FXDialogBox* helpDialog =
new FXDialogBox(getCollapsableFrame(),
"GEO attributes Help",
GUIDesignDialogBox);
545 std::ostringstream help;
547 <<
TL(
" SUMO uses the World Geodetic System 84 (WGS84/UTM).\n")
548 <<
TL(
" For a GEO-referenced network, geo coordinates are represented as pairs of Longitude and Latitude\n")
549 <<
TL(
" in decimal degrees without extra symbols. (N,W..)\n")
550 <<
TL(
" - Longitude: East-west position of a point on the Earth's surface.\n")
551 <<
TL(
" - Latitude: North-south position of a point on the Earth's surface.\n")
552 <<
TL(
" - CheckBox 'geo' enables or disables saving position in GEO coordinates\n");
556 helpDialog->create();
567 myInspectorFrameParent(inspectorFrameParent),
568 myEdgeTemplate(nullptr) {
585 if (myInspectorFrameParent->myViewNet->getEditModes().isCurrentSupermodeNetwork()) {
586 for (
const auto& AC : myInspectorFrameParent->getViewNet()->getInspectedElements().getACs()) {
608 return myEdgeTemplate;
615 if (myEdgeTemplate) {
616 delete myEdgeTemplate;
617 myEdgeTemplate =
nullptr;
623 myInspectorFrameParent->myViewNet->getViewParent()->getCreateEdgeFrame()->setUseEdgeTemplate();
630 if (myEdgeTemplate) {
631 myEdgeTemplate->updateLaneTemplates();
633 myInspectorFrameParent->myViewNet->getViewParent()->getCreateEdgeFrame()->setUseEdgeTemplate();
640 if (shown() && mySetTemplateButton->isEnabled()) {
641 onCmdSetTemplate(
nullptr, 0,
nullptr);
649 if (shown() && myCopyTemplateButton->isEnabled()) {
650 onCmdCopyTemplate(
nullptr, 0,
nullptr);
658 if (shown() && myClearTemplateButton->isEnabled()) {
659 onCmdClearTemplate(
nullptr, 0,
nullptr);
667 for (
const auto& AC : myInspectorFrameParent->myViewNet->getInspectedElements().getACs()) {
670 setEdgeTemplate(myInspectorFrameParent->myViewNet->getNet()->getAttributeCarriers()->retrieveEdge(AC->getID()));
682 if (myEdgeTemplate) {
684 myInspectorFrameParent->myViewNet->getUndoList()->begin(myEdgeTemplate,
"copy edge template");
686 for (
const auto& AC : myInspectorFrameParent->myViewNet->getInspectedElements().getACs()) {
688 if (AC->getID() != myEdgeTemplate->getID()) {
690 myInspectorFrameParent->myViewNet->getNet()->getAttributeCarriers()->retrieveEdge(AC->getID())->copyTemplate(myEdgeTemplate, myInspectorFrameParent->myViewNet->getUndoList());
694 myInspectorFrameParent->myViewNet->getUndoList()->end();
696 myInspectorFrameParent->myAttributesEditor->refreshAttributeEditor(
true,
true);
705 setEdgeTemplate(
nullptr);
714 const auto& inspectedElements = myInspectorFrameParent->getViewNet()->getInspectedElements();
716 if (inspectedElements.isInspectingSingleElement() && (inspectedElements.getFirstAC()->getTagProperty().getTag() ==
SUMO_TAG_EDGE)) {
717 mySetTemplateButton->setText((
TLF(
"Set edge '%' as Template", inspectedElements.getFirstAC()->getID())).c_str());
718 mySetTemplateButton->show();
720 mySetTemplateButton->hide();
723 if (myEdgeTemplate) {
725 if (inspectedElements.isInspectingSingleElement()) {
726 myCopyTemplateButton->setText((
"Copy '" + myEdgeTemplate->getID() +
"' into edge '" + inspectedElements.getFirstAC()->getID() +
"'").c_str());
728 myCopyTemplateButton->setText((
"Copy '" + myEdgeTemplate->getID() +
"' into " +
toString(inspectedElements.getACs().size()) +
" selected edges").c_str());
731 myCopyTemplateButton->enable();
732 myClearTemplateButton->enable();
735 myCopyTemplateButton->setText(
TL(
"No edge Template Set"));
737 myCopyTemplateButton->disable();
738 myClearTemplateButton->disable();
748 myInspectorFrameParent(inspectorFrameParent) {
759 const auto& inspectedElements = myInspectorFrameParent->getViewNet()->getInspectedElements();
761 if (inspectedElements.isInspectingSingleElement()) {
763 auto firstInspectedACTag = inspectedElements.getFirstAC()->getTagProperty().getTag();
767 myOpenAdditionalDialog->setText(
TL(
"Open rerouter dialog"));
773 myOpenAdditionalDialog->setText(
TL(
"Open calibrator dialog"));
779 myOpenAdditionalDialog->setText(
TL(
"Open calibrator lane dialog"));
785 myOpenAdditionalDialog->setText(
TL(
"Open VSS dialog"));
806 const auto& inspectedElements = myInspectorFrameParent->getViewNet()->getInspectedElements();
808 if (inspectedElements.isInspectingSingleElement()) {
810 if (inspectedElements.getFirstAC()->getTagProperty().getTag() ==
SUMO_TAG_REROUTER) {
813 }
else if ((inspectedElements.getFirstAC()->getTagProperty().getTag() ==
SUMO_TAG_CALIBRATOR) ||
817 }
else if (inspectedElements.getFirstAC()->getTagProperty().getTag() ==
SUMO_TAG_VSS) {
830 GNEFrame(viewParent, viewNet,
"Inspector"),
896 if (AC->isAttributeCarrierSelected()) {
899 AC->selectAttributeCarrier();
931 if (AC->isAttributeCarrierSelected()) {
934 AC->selectAttributeCarrier();
966 if (AC->isAttributeCarrierSelected()) {
969 AC->selectAttributeCarrier();
995 std::vector<GNEAttributeCarrier*> itemsToInspect;
1002 itemsToInspect.reserve(selectedACs.size());
1004 for (
const auto& selectedAC : selectedACs) {
1007 itemsToInspect.push_back(selectedAC);
1011 itemsToInspect.push_back(AC);
1014 inspectedElements.inspectACs(itemsToInspect);
1040 if (inspectedElements.isInspectingElements()) {
1042 std::string headerString;
1043 if (inspectedElements.getFirstAC()->getTagProperty().isNetworkElement()) {
1044 headerString =
"Net: ";
1045 }
else if (inspectedElements.getFirstAC()->getTagProperty().isAdditionalElement()) {
1046 headerString =
"Additional: ";
1047 }
else if (inspectedElements.getFirstAC()->getTagProperty().isShapeElement()) {
1048 headerString =
"Shape: ";
1049 }
else if (inspectedElements.getFirstAC()->getTagProperty().isTAZElement()) {
1050 headerString =
"TAZ: ";
1051 }
else if (inspectedElements.getFirstAC()->getTagProperty().isWireElement()) {
1052 headerString =
"WIRE: ";
1053 }
else if (inspectedElements.getFirstAC()->getTagProperty().isVehicle()) {
1054 headerString =
"Vehicle: ";
1055 }
else if (inspectedElements.getFirstAC()->getTagProperty().isRoute()) {
1056 headerString =
"Route: ";
1057 }
else if (inspectedElements.getFirstAC()->getTagProperty().isPerson()) {
1058 headerString =
"Person: ";
1059 }
else if (inspectedElements.getFirstAC()->getTagProperty().isPlanPerson()) {
1060 headerString =
"PersonPlan: ";
1061 }
else if (inspectedElements.getFirstAC()->getTagProperty().isContainer()) {
1062 headerString =
"Container: ";
1063 }
else if (inspectedElements.getFirstAC()->getTagProperty().isPlanContainer()) {
1064 headerString =
"ContainerPlan: ";
1065 }
else if (inspectedElements.getFirstAC()->getTagProperty().isVehicleStop()) {
1066 headerString =
"Stop: ";
1067 }
else if (inspectedElements.getFirstAC()->getTagProperty().isDataElement()) {
1068 headerString =
"Data: ";
1071 headerString +=
toString(inspectedElements.getACs().size()) +
" ";
1073 headerString += inspectedElements.getFirstAC()->getTagStr();
1075 headerString +=
"s";
1099 if (inspectedElements.isInspectingSingleElement()) {
FXDEFMAP(GNEInspectorFrame) GNEInspectorFrameMap[]
@ MID_GNE_SET_ATTRIBUTE
attribute edited
@ MID_GNE_INSPECTORFRAME_GOBACK
go back to the previous element
@ MID_OPEN_ADDITIONAL_DIALOG
open additional dialog (used in netedit)
@ MID_HOTKEY_SHIFT_F2_TEMPLATE_COPY
copy template
@ MID_GNE_MARKFRONTELEMENT
mark item as front element
@ MID_HOTKEY_SHIFT_F1_TEMPLATE_SET
set template
@ MID_HOTKEY_SHIFT_F3_TEMPLATE_CLEAR
clear template
#define GUIDesignMFXCheckableButton
checkable button extended over frame
#define GUIDesignTextField
#define GUIDesignAuxiliarHorizontalFrame
design for auxiliar (Without borders) horizontal frame used to pack another frames
#define GUIDesignDialogBox
#define GUIDesignButtonRectangular
little rectangular button used in frames (For example, in "help" buttons)
#define GUIDesignTextFieldNCol
Num of column of text field.
#define GUIDesignButtonOK
#define GUIDesignLabelThick(justify)
label extended over frame with thick and with text justify to left
#define GUIDesignCheckButton
checkButton placed in left position
#define GUIDesignHorizontalSeparator
#define GUIDesignLabelThickedFixed(width)
label thicked, icon before text, text centered and custom width
#define GUIDesignLabelFrameInformation
label extended over frame without thick and with text justify to left, used to show information in fr...
@ SUMO_TAG_REROUTER
A rerouter.
@ GNE_TAG_CALIBRATOR_LANE
A calibrator placed over lane.
@ SUMO_TAG_CALIBRATOR
A calibrator placed over edge.
@ SUMO_TAG_VSS
A variable speed sign.
@ SUMO_TAG_EDGE
begin/end of the description of an edge
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
@ GNE_ATTR_PARENT
parent of an additional element
@ GNE_ATTR_CLOSE_SHAPE
Close shape of a polygon (Used by GNEPolys)
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
const std::string getID() const
get ID (all Attribute Carriers have one)
bool isAttributeCarrierSelected() const
check if attribute carrier is selected
const GNETagProperties & getTagProperty() const
get tagProperty associated with this Attribute Carrier
void unselectAttributeCarrier(const bool changeFlag=true)
unselect attribute carrier using GUIGlobalSelection
Dialog for edit calibrators.
void show()
show delete frame
A road/street connecting two junctions (netedit-version)
void hideHierarchicalElementTree()
hide GNEElementTree
void refreshHierarchicalElementTree()
refresh GNEElementTree
void showHierarchicalElementTree(GNEAttributeCarrier *AC)
show GNEElementTree
void refreshAttributeEditor(bool forceRefreshShape, bool forceRefreshPosition)
refresh attribute editor (only the valid values will be refresh)
void showAttributeEditorModule(bool includeExtended)
show attributes of multiple ACs
void hideAttributesEditorModule()
hide attribute editor
void refreshParametersEditor()
refresh netedit attributes
void hideParametersEditor()
hide netedit attributes EditorInspector
void showParametersEditor()
show netedit attributes EditorInspector
static bool isSupermodeValid(const GNEViewNet *viewNet, const GNEAttributeCarrier *AC)
return true if AC can be edited in the current supermode
void setFrameWidth(const int newWidth)
set width of GNEFrame
void focusUpperElement()
focus upper element of frame
FXLabel * getFrameHeaderLabel() const
get the label for the frame's header
GNEViewNet * myViewNet
FOX need this.
virtual void show()
show Frame
virtual void hide()
hide Frame
FXHorizontalFrame * myHeaderLeftFrame
fame for left header elements
FXButton * myOpenAdditionalDialog
button for open additional dialog
long onCmdOpenAdditionalDialog(FXObject *, FXSelector, void *)
void hideAdditionalDialog()
hide netedit attributes editor
AdditionalDialog(GNEInspectorFrame *inspectorFrameParent)
FOX-declaration.
~AdditionalDialog()
destructor
void showAdditionalDialog()
show netedit attributes editor
FXCheckButton * myUseGEOCheckButton
checkBox for use GEO
long onCmdGEOAttributeHelp(FXObject *, FXSelector, void *)
Called when user press the help button.
FXButton * myHelpButton
button for help
void showGEOAttributesEditor()
show GEO attributes editor
FXTextField * myGEOAttributeTextField
textField for GEOAttribute
FXLabel * myUseGEOLabel
Label for use GEO.
FXHorizontalFrame * myUseGEOFrame
horizontal frame for use GEO
GEOAttributesEditor(GNEInspectorFrame *inspectorFrameParent)
FOX-declaration.
long onCmdSetGEOAttribute(FXObject *, FXSelector, void *)
Called when user change the current GEO Attribute.
FXLabel * myGEOAttributeLabel
Label for GEOAttribute.
~GEOAttributesEditor()
destructor
void refreshGEOAttributesEditor(bool forceRefresh)
refresh GEO attributes editor
void hideGEOAttributesEditor()
hide GEO attributes editor
FXHorizontalFrame * myGEOAttributeFrame
horizontal frame for GEOAttribute
bool isSelectingParent() const
check if we're selecting a new parent
long onCmdNeteditAttributeHelp(FXObject *, FXSelector, void *)
Called when user press the help button.
long onCmdSetNeteditAttribute(FXObject *, FXSelector, void *)
long onCmdMarkFrontElement(FXObject *, FXSelector, void *)
Called when user press button "Mark front element".
void refreshNeteditAttributesEditor(bool forceRefresh)
refresh netedit attributes
void setNewParent(GNEAttributeCarrier *clickedAC)
set new parent
void hideNeteditAttributesEditor()
hide netedit attributes editor
void stopSelectParent()
stop select new parent
void showNeteditAttributesEditor()
show netedit attributes editor
~NeteditAttributesEditor()
destructor
void updateButtons()
FOX need this.
void hideTemplateEditor()
hide template editor
void clearTemplate()
clear template (used by shortcut)
void setEdgeTemplate(const GNEEdge *edge)
set edge template
~TemplateEditor()
destructor
FXButton * myClearTemplateButton
clear template button
FXButton * mySetTemplateButton
set template button
long onCmdCopyTemplate(FXObject *, FXSelector, void *)
copy edge attributes from edge template
void setTemplate()
set template (used by shortcut)
TemplateEditor(GNEInspectorFrame *inspectorFrameParent)
FOX-declaration.
FXButton * myCopyTemplateButton
copy template button
long onCmdSetTemplate(FXObject *, FXSelector, void *)
GNEEdgeTemplate * getEdgeTemplate() const
get edge template (to copy attributes from)
void copyTemplate()
copy template (used by shortcut)
void updateEdgeTemplate()
update edge template
bool showTemplateEditor()
show template editor
long onCmdClearTemplate(FXObject *, FXSelector, void *)
clear current edge template
NeteditAttributesEditor * myNeteditAttributesEditor
Netedit Attributes editor.
GNEAttributeCarrier * myPreviousElementDelete
pointer to previous element called by Delete Frame
GNEFrameAttributeModules::AttributesEditor * getAttributesEditor() const
get AttributesEditor
void inspectChild(GNEAttributeCarrier *AC, GNEAttributeCarrier *previousElement)
inspect child of already inspected element
void inspectSingleElement(GNEAttributeCarrier *AC)
Inspect a single element.
GNEFrameAttributeModules::AttributesEditor * myAttributesEditor
Attribute editor.
void selectedOverlappedElement(GNEAttributeCarrier *AC)
open GNEAttributesCreator extended dialog (can be reimplemented in frame children)
TemplateEditor * getTemplateEditor() const
get template editor
GNEInspectorFrame(GNEViewParent *viewParent, GNEViewNet *viewNet)
Constructor.
bool processDemandSupermodeClick(const Position &clickedPosition, GNEViewNetHelper::ViewObjectsSelector &viewObjects)
process click over Viewnet in Supermode Demand
GNEElementTree * getHierarchicalElementTree() const
get GNEElementTree modul
void clearInspectedAC()
Clear all current inspected ACs.
long onCmdGoBack(FXObject *, FXSelector, void *)
called when user toggle the go back button
void attributeUpdated(SumoXMLAttr attribute)
function called after set a valid attribute in AttributeEditor
void show()
show inspector frame
GNEFrameAttributeModules::ParametersEditor * myParametersEditor
Parameters editor inspector.
GEOAttributesEditor * myGEOAttributesEditor
GEO Attributes editor.
GNEAttributeCarrier * myPreviousElementInspect
Pointer to previous element called by Inspector Frame.
bool myPreviousElementDeleteWasMarked
flag to ckec if myPreviousElementDelete was marked in Delete Frame
GNEOverlappedInspection * myOverlappedInspection
Overlapped Inspection.
GNEOverlappedInspection * getOverlappedInspection() const
get GNEOverlappedInspection modul
AdditionalDialog * myAdditionalDialog
Additional dialog.
void hide()
hide inspector frame
void inspectFromDeleteFrame(GNEAttributeCarrier *AC, GNEAttributeCarrier *previousElement, bool previousElementWasMarked)
inspect called from DeleteFrame
GNEInspectorFrame::NeteditAttributesEditor * getNeteditAttributesEditor() const
get Netedit Attributes editor
bool processNetworkSupermodeClick(const Position &clickedPosition, GNEViewNetHelper::ViewObjectsSelector &viewObjects)
process click over Viewnet in Supermode Network
FXButton * myBackButton
Back Button.
GNEElementTree * myHierarchicalElementTree
Attribute Carrier Hierarchy.
void refreshInspection()
refresh current inspection
void inspectClickedElement(const GNEViewNetHelper::ViewObjectsSelector &viewObjects, const Position &clickedPosition)
FOX need this.
void inspectMultisection(const std::vector< GNEAttributeCarrier * > &ACs)
Inspect the given multi-selection.
~GNEInspectorFrame()
Destructor.
TemplateEditor * myTemplateEditor
Template editor.
void updateFrameAfterUndoRedo()
function called after undo/redo in the current frame (can be reimplemented in frame children)
bool processDataSupermodeClick(const Position &clickedPosition, GNEViewNetHelper::ViewObjectsSelector &viewObjects)
process click over Viewnet in Supermode Data
std::vector< GNEAttributeCarrier * > getSelectedAttributeCarriers(const bool ignoreCurrentSupermode)
get all selected attribute carriers (or only relative to current supermode
GNENetHelper::AttributeCarriers * getAttributeCarriers() const
get all attribute carriers used in this net
void hideOverlappedInspection()
hide template editor
void showOverlappedInspection(const GNEViewNetHelper::ViewObjectsSelector &viewObjects, const Position &clickedPosition)
show template editor
bool nextElement(const Position &clickedPosition)
try to go to next element if clicked position is near to saved position
bool previousElement(const Position &clickedPosition)
try to go to previous element if clicked position is near to saved position
Dialog for edit rerouters.
SumoXMLTag getTag() const
get Tag vinculated with this attribute Property
void inspectACs(const std::vector< GNEAttributeCarrier * > &ACs)
inspect multiple ACs
bool isInspectingMultipleElements() const
check if we're inspecting more than one elements
class used to group all variables related with objects under cursor after a click over view
GNEAttributeCarrier * getAttributeCarrierFront() const
get front attribute carrier or a pointer to nullptr
GNENet * getNet() const
get the net object
const GNEViewNetHelper::MouseButtonKeyPressed & getMouseButtonKeyPressed() const
get Key Pressed module
GNEViewNetHelper::InspectedElements & getInspectedElements()
get inspected elements
GNEViewParent * getViewParent() const
get the net object
void updateViewNet(const bool ignoreViewUpdater=true) const
Mark the entire GNEViewNet to be repainted later.
A single child window which contains a view of the simulation area.
GNEDeleteFrame * getDeleteFrame() const
get frame for delete elements
int getFrameAreaWidth() const
get frame area width
static FXButton * buildFXButton(FXComposite *p, const std::string &text, const std::string &tip, const std::string &help, FXIcon *ic, FXObject *tgt, FXSelector sel, FXuint opts=BUTTON_NORMAL, FXint x=0, FXint y=0, FXint w=0, FXint h=0, FXint pl=DEFAULT_PAD, FXint pr=DEFAULT_PAD, FXint pt=DEFAULT_PAD, FXint pb=DEFAULT_PAD)
build button
static FXIcon * getIcon(const GUIIcon which)
returns a icon previously defined in the enum GUIIcon
static const GeoConvHelper & getFinal()
the coordinate transformation for writing the location element and for tracking the original coordina...
const std::string & getProjString() const
Returns the original projection definition.
MFXGroupBoxModule (based on FXGroupBox)
FXVerticalFrame * getCollapsableFrame()
get collapsable frame (used by all elements that will be collapsed if button is toggled)
A point in 2D or 3D with translation and scaling methods.