36 myFrameParent(frameParent) {
79 if (parentTags.size() > 0) {
101 std::set<std::string> selectedItems;
104 selectedItems.insert(
myParentsList->getItem(i)->getText().text());
110 std::set<std::string> IDs;
116 if (tagProperty->isAdditionalElement()) {
118 IDs.insert(additional.second->getID().c_str());
123 for (
const auto& ID : IDs) {
125 if (selectedItems.find(ID) != selectedItems.end()) {
@ MID_GNE_SET_TYPE
used to select a type of element in a combo box
#define GUIDesignListFixedHeight
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)
GNEViewNet * getViewNet() const
get view net
const std::unordered_map< SumoXMLTag, std::unordered_map< const GUIGlObject *, GNEAdditional * >, std::hash< int > > & getAdditionals() const
get additionals
GNENetHelper::AttributeCarriers * getAttributeCarriers() const
get all attribute carriers used in this net
const GNETagPropertiesDatabase * getTagPropertiesDatabase() const
get tag properties database
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.
const GNETagProperties * getTagProperty(const SumoXMLTag tag, const bool hardFail) const
get tagProperty associated to the given tag
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)