37 myFrameParent(frameParent) {
80 if (parentTags.size() > 0) {
102 std::set<std::string> selectedItems;
105 selectedItems.insert(
myParentsList->getItem(i)->getText().text());
111 std::set<std::string> IDs;
117 if (tagProperty.isAdditionalElement()) {
119 IDs.insert(additional.second->getID().c_str());
124 for (
const auto& ID : IDs) {
126 if (selectedItems.find(ID) != selectedItems.end()) {
@ MID_GNE_SET_TYPE
used to select a type of element in a combo box
#define GUIDesignListSingleElementFixedHeight
design for FXLists that only allow a single selected elements selected and height fixed
#define GUIDesignLabelThick(justify)
label extended over frame with thick and with text justify to left
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
const GNETagProperties & getTagProperty() const
get tagProperty associated with this Attribute Carrier
GNEViewNet * getViewNet() const
get view net
const std::unordered_map< SumoXMLTag, std::unordered_map< const GUIGlObject *, GNEAdditional * > > & getAdditionals() const
get additionals
GNENetHelper::AttributeCarriers * getAttributeCarriers() const
get all attribute carriers used in this net
FXList * myParentsList
List of parents.
GNESelectorParent(GNEFrame *frameParent)
constructor
std::vector< SumoXMLTag > myParentTags
current parent additional tag
void setIDSelected(const std::string &id)
select manually a element of the list
GNEFrame * myFrameParent
pointer to Frame Parent
void showSelectorParentModule(const std::vector< SumoXMLTag > &parentTags)
Show list of GNESelectorParent Module.
~GNESelectorParent()
destructor
void refreshSelectorParentModule()
Refresh list of Additional Parents Module.
std::string getIdSelected() const
get currently parent additional selected
void hideSelectorParentModule()
hide GNESelectorParent Module
FXLabel * myParentsLabel
Label with parent name.
GNENet * getNet() const
get the net object
MFXGroupBoxModule (based on FXGroupBox)
FXVerticalFrame * getCollapsableFrame()
get collapsable frame (used by all elements that will be collapsed if button is toggled)