44FXIMPLEMENT_ABSTRACT(
GNEElementList, FXVerticalFrame, GNEElementListMap, ARRAYNUMBER(GNEElementListMap))
52 myTagProperty(tagProperty) {
59 myLabel =
new FXLabel(buttonFrame,
TLF(
"%s", myTagProperty->getTagStr()).c_str(),
nullptr,
GUIDesignLabelThick(JUSTIFY_NORMAL));
86 myLabel->setText(reason.c_str());
115 for (
const auto& additionalChild : additionalChildren) {
119 for (
const auto& demandChild : demandChildren) {
131 for (
const auto& additionalChild : additionalChildren) {
135 for (
const auto& demandChild : demandChildren) {
FXDEFMAP(GNEElementList) GNEElementListMap[]
std::vector< ChildType > GNEHierarchicalContainerChildren
@ MID_GNE_ELEMENTLIST_SORT
sort elements in ElementList
@ MID_GNE_ELEMENTLIST_ADD
add element in ElementList
#define GUIDesignButtonIcon
button only with icon
#define GUIDesignAuxiliarHorizontalFrame
design for auxiliar (Without borders) horizontal frame used to pack another frames
#define GUIDesignAuxiliarVerticalFrame
design for auxiliar (Without borders) horizontal frame used to pack another frames
#define GUIDesignLabelThick(justify)
label extended over frame with thick and with text justify to left
GNENet * getNet() const
get pointer to net
~GNEElementList()
destructor
long onCmdAddRow(FXObject *sender, FXSelector, void *)
called when user press add button
virtual long sortRows()=0
open dialog
void disableList(const std::string &reason)
disable list
void enableList()
enable list
const GNETagProperties * myTagProperty
FOX needs this.
virtual long addNewElement()=0
add element
GNEElementTable * myElementTable
element table
long onCmdSort(FXObject *sender, FXSelector, void *)
called when user press sort button
FXButton * mySortButton
sort button
bool isListValid() const
check if the current list is valid
FXButton * myAddButton
add button
void removeElementRecursively(GNEAdditional *additionalElement) const
delete additional element recursively
bool isValid() const
check if the current values of the table are valid
const GNEHierarchicalContainerChildren< GNEAdditional * > & getChildAdditionals() const
return child additionals
const GNEHierarchicalContainerChildren< GNEDemandElement * > & getChildDemandElements() const
return child demand elements
GNEViewNet * getViewNet() const
get view net
const std::string & getTagStr() const
get Tag vinculated with this attribute Property in String Format (used to avoid multiple calls to toS...
void add(GNEChange *command, bool doit=false, bool merge=true)
Add new command, executing it if desired. The new command will be merged with the previous command if...
GNEUndoList * getUndoList() const
get the undoList object
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