40 myOriginalAttributes(originalAttributes),
41 myNewAttributes(newAttributes) {
42 myAC->incRef(
"GNEChange_EnableAttribute " + myAC->getTagProperty().getTagStr());
104 return (
"Undo change " +
myAC->
getTagStr() +
" attribute").c_str();
110 return (
"Redo change " +
myAC->
getTagStr() +
" attribute").c_str();
the function-object for an editing operation (abstract base)
FXString redoName() const
get Redo name
bool isDemandElement() const
return true if tag correspond to a demand element
the function-object for an editing operation (abstract base)
const std::string & getTagStr() const
get Tag vinculated with this attribute Property in String Format (used to avoid multiple calls to toS...
const int myOriginalAttributes
original attributes
A NBNetBuilder extended by visualisation and editing capabilities.
begin/end of the description of a Point of interest
bool isNetElement() const
return true if tag correspond to a netElement
FXString undoName() const
return undoName
virtual bool removePolygon(const std::string &id, bool useLock=true)
Removes a polygon from the container.
SumoXMLTag getTag() const
get Tag vinculated with this attribute Property
GNEAttributeCarrier * myAC
the net to which all operations shall be applied
virtual bool removePOI(const std::string &id)
Removes a PoI from the container.
~GNEChange_EnableAttribute()
Destructor.
void requiereSaveDemandElements(bool value)
inform that demand elements has to be saved
void requiereSaveAdditionals(bool value)
inform that additionals has to be saved
bool isShape() const
return true if tag correspond to a shape
bool isAdditional() const
return true if tag correspond to an additional
const std::string getID() const
function to support debugging
void decRef(const std::string &debugMsg="")
Decrease reference.
virtual void setEnabledAttribute(const int enabledAttributes)=0
method for enabling the attribute and nothing else (used in GNEChange_EnableAttribute) ...
GNENet * myNet
the net to which operations shall be applied or which shall be informed about gui updates (we are not...
const std::string & getTagStr() const
get tag assigned to this object in string format
void requiereSaveNet(bool value)
inform that net has to be saved
const int myNewAttributes
original attributes
const TagProperties & getTagProperty() const
get Tag Property assigned to this object
begin/end of the description of a Point of interest over Lane (used by Netedit)
bool unreferenced()
check if object ins't referenced
begin/end of the description of a polygon