56 TL(
"Remove invalid edges"),
"",
57 TL(
"Remove invalid edges"),
61 TL(
"Save invalid edges"),
"",
62 TL(
"Save invalid edges"),
66 TL(
"Select invalid edges"),
"",
67 TL(
"Select invalid edges and abort saving"),
95 net->deleteEdge(net->getAttributeCarriers()->retrieveEdge(conflictedElement.getID()), undoList,
false);
104 conflictedElement.getElement()->setAttribute(
GNE_ATTR_SELECTED,
"true", undoList);
142 TL(
"Remove invalid crossings"),
"",
143 TL(
"Remove invalid crossings"),
147 TL(
"Save invalid crossings"),
"",
148 TL(
"Save invalid crossings"),
152 TL(
"Select invalid crossing"),
"",
153 TL(
"Select invalid crossing and abort saving"),
167 if (solution ==
"removeInvalidCrossings") {
169 }
else if (solution ==
"saveInvalidCrossings") {
171 }
else if (solution ==
"selectInvalidCrossings") {
188 net->deleteCrossing(net->getAttributeCarriers()->retrieveCrossing(conflictedElement.getElement()), undoList);
197 conflictedElement.getElement()->setAttribute(
GNE_ATTR_SELECTED,
"true", undoList);
232 const std::vector<GNENetworkElement*>& elements) :
240 std::vector<ConflictElement> invalidEdges, invalidCrossings;
242 for (
const auto& invalidNetworkElement : elements) {
244 auto fixElement = ConflictElement(invalidNetworkElement,
245 invalidNetworkElement->getID(),
246 invalidNetworkElement->getACIcon(),
247 invalidNetworkElement->getNetworkElementProblem());
249 if (invalidNetworkElement->getTagProperty()->getTag() ==
SUMO_TAG_EDGE) {
250 invalidEdges.push_back(fixElement);
251 }
else if (invalidNetworkElement->getTagProperty()->getTag() ==
SUMO_TAG_CROSSING) {
252 invalidCrossings.push_back(fixElement);
FXDEFMAP(GNEFixNetworkElements::FixEdgeOptions) FixEdgeOptionsMap[]
@ MID_CHOOSEN_OPERATION
set type of selection
#define GUIDesignRadioButtonFix
design for radio button with fixed height (used in fix elements dialogs)
GUIIcon
An enumeration of icons used by the gui applications.
@ SUMO_TAG_CROSSING
crossing between edges for pedestrians
@ SUMO_TAG_EDGE
begin/end of the description of an edge
@ GNE_ATTR_SELECTED
element is selected
The main window of Netedit.
void openDialog(FXWindow *focusableElement=nullptr)
void registerOption(FXWindow *option)
add option to options container (used for adjust width and enable/disable)
std::vector< ConflictElement > myConflictedElements
list of elements to fix
FXVerticalFrame * myRightFrameOptions
vertical right frame for options
GNEFixElementsDialog * myFixElementDialogParent
pointer to the parent dialog
FixOptions(GNEFixElementsDialog< T > *fixElementDialog, FXVerticalFrame *frameParent, const std::string &title)
constructor
FXVerticalFrame * myLeftFrameOptions
vertical left frame for options
GNEFixElementsDialog(GNEApplicationWindow *mainWindow, const std::string title, GUIIcon icon, DialogType type)
FXVerticalFrame * myLeftFrame
groupbox for all radio buttons related with fix crossing options
FixCrossingOptions(GNEFixNetworkElements *fixNetworkElementsParent)
FOX-declaration.
FXRadioButton * mySelectInvalidCrossings
Option "Select invalid crossings and cancel".
long onCmdSelectOption(FXObject *obj, FXSelector, void *)
called when user select a option
void selectInternalTestSolution(const std::string &solution)
select internal test solution
FXRadioButton * myRemoveInvalidCrossings
FOX needs this.
FXRadioButton * mySaveInvalidCrossings
Option "save invalid crossings".
bool applyFixOption()
apply selected fix option
groupbox for all radio buttons related with fix edges options
FXRadioButton * mySelectInvalidEdges
Option "Select invalid edges and cancel".
void selectInternalTestSolution(const std::string &solution)
select internal test solution
FXRadioButton * myRemoveInvalidEdges
FOX needs this.
bool applyFixOption()
apply selected fix option
long onCmdSelectOption(FXObject *obj, FXSelector, void *)
called when user select a option
FXRadioButton * mySaveInvalidEdges
Option "Save invalid edges".
FixEdgeOptions(GNEFixNetworkElements *fixNetworkElementsParent)
FOX-declaration.
FixEdgeOptions * myFixEdgeOptions
fix edge options
FixCrossingOptions * myFixCrossingOptions
fix crossing options
~GNEFixNetworkElements()
destructor
GNEFixNetworkElements(GNEApplicationWindow *mainWindow, const std::vector< GNENetworkElement * > &elements)
Constructor.
static FXRadioButton * buildFXRadioButton(FXComposite *p, const std::string &text, const std::string &tip, const std::string &help, FXObject *tgt, FXSelector sel, FXuint opts=RADIOBUTTON_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 radio button
MFXGroupBoxModule (based on FXGroupBox).