![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNENeteditAttributes.h>
Public Types | |
| enum | Options { NOTHING = 1 << 0 , COLLAPSIBLE = 1 << 1 , EXTENSIBLE = 1 << 2 , SAVE = 1 << 3 , LOAD = 1 << 4 } |
| GroupBoxModule options. More... | |
Public Member Functions | |
| void | drawLaneReference (const GNELane *lane) const |
| draw lane reference | |
| FXVerticalFrame * | getCollapsableFrame () |
| get collapsable frame (used by all elements that will be collapsed if button is toggled) | |
| bool | getNeteditAttributesAndValues (CommonXMLStructure::SumoBaseObject *baseObject, const GNELane *lane) const |
| fill valuesMap with netedit attributes | |
| GNENeteditAttributes (GNEFrame *frameParent) | |
| FOX-declaration. | |
| void | hideNeteditAttributesModule () |
| hide Netedit attributes modul | |
| long | onCmdCollapseButton (FXObject *, FXSelector, void *) |
| collapse GroupBoxModule | |
| long | onCmdExtendButton (FXObject *, FXSelector, void *) |
| extends GroupBoxModule | |
| long | onCmdLoadButton (FXObject *, FXSelector, void *) |
| load contents | |
| long | onCmdResetButton (FXObject *, FXSelector, void *) |
| reset GroupBoxModule | |
| long | onCmdSaveButton (FXObject *, FXSelector, void *) |
| save contents | |
| long | onPaint (FXObject *, FXSelector, void *) |
| draw MFXGroupBoxModule | |
| long | onUpdResetButton (FXObject *, FXSelector, void *) |
| update reset GroupBoxModule | |
| void | setText (const std::string &text) |
| set text | |
| void | showNeteditAttributesModule (GNEAttributeCarrier *templateAC) |
| show Netedit attributes modul | |
| ~GNENeteditAttributes () | |
| destructor | |
FOX-callbacks | |
| long | onCmdSetNeteditAttribute (FXObject *, FXSelector, void *) |
| Called when user changes some element of GNENeteditAttributes. | |
| long | onCmdHelp (FXObject *, FXSelector, void *) |
| Called when user press the help button. | |
Protected Types | |
| enum class | ReferencePoint { LEFT , RIGHT , CENTER , EXTENDEDLEFT , EXTENDEDRIGHT , EXTENDED , INVALID } |
| FOX needs this. More... | |
Protected Member Functions | |
| double | getElementLength () const |
| get element length | |
| virtual bool | loadContents () const |
| load contents (can be reimplemented in children) | |
| virtual bool | saveContents () const |
| save contents (can be reimplemented in children) | |
| double | setEndPosition (const double mouseOverLanePos, double elementLength, const double laneLength) const |
| return the end position | |
| double | setStartPosition (const double mouseOverLanePos, double elementLength) const |
| return the start position | |
| void | toggleSaveButton (const bool value) |
| enable or disable save buttons | |
Protected Attributes | |
| FXCheckButton * | myCenterViewAfterCreationButton |
| checkbox to enable/disable center element after creation | |
| FXHorizontalFrame * | myCenterViewAfterCreationFrame |
| horizontal frame for center view after creation frame | |
| FXCheckButton * | myCloseShapeCheckButton |
| checkbox to enable/disable close polygon | |
| FXHorizontalFrame * | myCloseShapeFrame |
| horizontal frame for close polygon | |
| FXCheckButton * | myForceLengthCheckButton |
| checkbox to enable/disable force length | |
| FXHorizontalFrame * | myForceLengthFrame |
| horizontal frame for force length | |
| GNEFrame * | myFrameParent |
| pointer to frame parent | |
| FXHorizontalFrame * | myLengthFrame |
| horizontal frame for length | |
| FXTextField * | myLengthTextField |
| textField for length | |
| ReferencePoint | myReferencePoint |
| current reference point | |
| MFXComboBoxIcon * | myReferencePointComboBox |
| match box with the list of reference points | |
| std::vector< std::pair< std::string, ReferencePoint > > | myReferencePoints |
| map with all references | |
Private Member Functions | |
| GNENeteditAttributes (GNENeteditAttributes *)=delete | |
| Invalidated copy constructor. | |
| GNENeteditAttributes & | operator= (GNENeteditAttributes *)=delete |
| Invalidated assignment operator. | |
Private Attributes | |
| FXVerticalFrame * | myCollapsableFrame = nullptr |
| vertical collapsable frame | |
| FXButton * | myCollapseButton = nullptr |
| button for collapse elements | |
| bool | myCollapsed |
| flag to check if this groupbox is collapsed | |
| MFXButtonTooltip * | myExtendButton = nullptr |
| button for extend elements | |
| FXLabel * | myLabel = nullptr |
| label used in non collapsable MFXGroupBoxModule | |
| FXButton * | myLoadButton = nullptr |
| button for load elements | |
| const int | myOptions |
| GroupBoxModule options. | |
| FXButton * | myResetWidthButton = nullptr |
| button for reset frame width | |
| FXButton * | mySaveButton = nullptr |
| button for save elements | |
Definition at line 38 of file GNENeteditAttributes.h.
|
inherited |
GroupBoxModule options.
| Enumerator | |
|---|---|
| NOTHING | |
| COLLAPSIBLE | |
| EXTENSIBLE | |
| SAVE | |
| LOAD | |
Definition at line 38 of file MFXGroupBoxModule.h.
|
strongprotected |
FOX needs this.
list of the reference points
| Enumerator | |
|---|---|
| LEFT | |
| RIGHT | |
| CENTER | |
| EXTENDEDLEFT | |
| EXTENDEDRIGHT | |
| EXTENDED | |
| INVALID | |
Definition at line 77 of file GNENeteditAttributes.h.
| GNENeteditAttributes::GNENeteditAttributes | ( | GNEFrame * | frameParent | ) |
FOX-declaration.
constructor
Definition at line 49 of file GNENeteditAttributes.cpp.
References GUIDesigns::buildFXButton(), GUIDesignAuxiliarHorizontalFrame, GUIDesignButtonRectangular, GUIDesignCheckButton, GUIDesignComboBox, GUIDesignComboBoxNCol, GUIDesignComboBoxVisibleItems, GUIDesignLabelThickedFixed, GUIDesignTextFieldNCol, GUIDesignTextFieldRestricted, MID_GNE_SET_ATTRIBUTE, MID_HELP, SUMO_ATTR_LENGTH, TL, and toString().
| GNENeteditAttributes::~GNENeteditAttributes | ( | ) |
destructor
Definition at line 90 of file GNENeteditAttributes.cpp.
|
privatedelete |
Invalidated copy constructor.
| void GNENeteditAttributes::drawLaneReference | ( | const GNELane * | lane | ) | const |
draw lane reference
Definition at line 195 of file GNENeteditAttributes.cpp.
References RGBColor::changedBrightness(), GLHelper::drawFilledCircle(), GUIGeometry::drawGeometry(), GLHelper::drawTriangleAtEnd(), GNELane::DrawingConstants::getDetail(), GNELane::getDrawingConstants(), getElementLength(), GNELane::getLaneGeometry(), GNELane::getLaneShape(), GNELane::getLengthGeometryFactor(), GUISUMOAbstractView::getPositionInformation(), GUIGeometry::getShape(), GNEFrame::getViewNet(), GLO_TEMPORALSHAPE, INVALID, Position::INVALID, INVALID_DOUBLE, Position::length(), PositionVector::length2D(), myForceLengthCheckButton, myForceLengthFrame, myFrameParent, myReferencePoint, myReferencePointComboBox, PositionVector::nearest_offset_to_point2D(), RGBColor::ORANGE, GLHelper::popMatrix(), GLHelper::pushMatrix(), RGBColor::RED, GLHelper::setColor(), setEndPosition(), setStartPosition(), GUISUMOAbstractView::snapToActiveGrid(), and GUIGeometry::updateGeometry().
Referenced by GNEViewNet::drawNeteditAttributesReferences().
|
inherited |
get collapsable frame (used by all elements that will be collapsed if button is toggled)
Definition at line 123 of file MFXGroupBoxModule.cpp.
References MFXGroupBoxModule::myCollapsableFrame.
Referenced by GNEGenericDataFrame::AttributeSelector::AttributeSelector(), GNEMoveFrame::ChangeZInSelection::ChangeZInSelection(), GNEConnectorFrame::ConnectionModifications::ConnectionModifications(), GNEConnectorFrame::ConnectionOperations::ConnectionOperations(), GNEConnectorFrame::ConnectionSelection::ConnectionSelection(), GNECrossingFrame::CreateCrossing::CreateCrossing(), GNECrossingFrame::CrossingParameters::CrossingParameters(), GNETAZFrame::CurrentTAZ::CurrentTAZ(), GNEMoveFrame::DemandModeOptions::DemandModeOptions(), GNEDistributionFrame::DistributionSelector::DistributionSelector(), GNEDistributionFrame::DistributionValuesEditor::DistributionValuesEditor(), GNEAdditionalFrame::E2MultilaneLegendModule::E2MultilaneLegendModule(), GNECrossingFrame::EdgesSelector::EdgesSelector(), GNEDemandElementSelector::GNEDemandElementSelector(), GNEOptionsDialog::GNEOptionsDialog(), GNEPathCreator::GNEPathCreator(), GNEPathLegendModule::GNEPathLegendModule(), GNEPlanCreator::GNEPlanCreator(), GNEPlanCreatorLegend::GNEPlanCreatorLegend(), GNESelectorParent::GNESelectorParent(), GNEStopFrame::HelpCreation::HelpCreation(), GNEVehicleFrame::HelpCreation::HelpCreation(), GNEAdditionalFrame::HelpCreationModule::HelpCreationModule(), GNECrossingFrame::Information::Information(), GNEMoveFrame::Information::Information(), GNESelectorFrame::Information::Information(), GNEGenericDataFrame::IntervalSelector::IntervalSelector(), GNECreateEdgeFrame::LaneTypeSelector::LaneTypeSelector(), GNEConnectorFrame::Legend::Legend(), GNECreateEdgeFrame::Legend::Legend(), GNEProhibitionFrame::Legend::Legend(), GNETAZRelDataFrame::Legend::Legend(), GNEMeanDataFrame::MeanDataEditor::MeanDataEditor(), GNEMeanDataFrame::MeanDataSelector::MeanDataSelector(), GNESelectorFrame::ModificationMode::ModificationMode(), GNEMoveFrame::NetworkModeOptions::NetworkModeOptions(), GNEMatchAttribute::onCmdHelp(), GNEMatchGenericDataAttribute::onCmdHelp(), onCmdHelp(), GNEOverlappedInspection::onCmdOverlappingHelp(), GNEDeleteFrame::ProtectElements::ProtectElements(), GNEAttributesCreator::refreshRows(), GNEProhibitionFrame::Selection::Selection(), GNESelectorFrame::SelectionHierarchy::SelectionHierarchy(), GNESelectorFrame::SelectionOperation::SelectionOperation(), GNEMoveFrame::ShiftEdgeSelectedGeometry::ShiftEdgeSelectedGeometry(), GNEMoveFrame::ShiftShapeGeometry::ShiftShapeGeometry(), GNETAZFrame::TAZChildDefaultParameters::TAZChildDefaultParameters(), GNETAZFrame::TAZCommonStatistics::TAZCommonStatistics(), GNETAZFrame::TAZEdgesGraphic::TAZEdgesGraphic(), GNETAZFrame::TAZParameters::TAZParameters(), GNETAZFrame::TAZSaveChanges::TAZSaveChanges(), GNETAZFrame::TAZSelectionStatistics::TAZSelectionStatistics(), GNETLSEditorFrame::TLSAttributes::TLSAttributes(), GNETLSEditorFrame::TLSDefinition::TLSDefinition(), GNETLSEditorFrame::TLSFile::TLSFile(), GNETLSEditorFrame::TLSJunction::TLSJunction(), GNETLSEditorFrame::TLSPhases::TLSPhases(), GNETypeFrame::TypeEditor::TypeEditor(), and GNESelectorFrame::VisualScaling::VisualScaling().
|
protected |
get element length
Definition at line 416 of file GNENeteditAttributes.cpp.
References INVALID_DOUBLE, and myLengthTextField.
Referenced by drawLaneReference(), getNeteditAttributesAndValues(), and onCmdSetNeteditAttribute().
| bool GNENeteditAttributes::getNeteditAttributesAndValues | ( | CommonXMLStructure::SumoBaseObject * | baseObject, |
| const GNELane * | lane | ||
| ) | const |
fill valuesMap with netedit attributes
Definition at line 139 of file GNENeteditAttributes.cpp.
References CommonXMLStructure::SumoBaseObject::addBoolAttribute(), CommonXMLStructure::SumoBaseObject::addDoubleAttribute(), getElementLength(), GNELane::getLaneShape(), GNELane::getLengthGeometryFactor(), GUISUMOAbstractView::getPositionInformation(), GNEFrame::getViewNet(), GNE_ATTR_CENTER_AFTER_CREATION, GNE_ATTR_CLOSE_SHAPE, INVALID, INVALID_DOUBLE, PositionVector::length2D(), myCenterViewAfterCreationButton, myCenterViewAfterCreationFrame, myCloseShapeCheckButton, myCloseShapeFrame, myForceLengthCheckButton, myForceLengthFrame, myFrameParent, myReferencePoint, myReferencePointComboBox, PositionVector::nearest_offset_to_point2D(), setEndPosition(), setStartPosition(), GNEViewNet::setStatusBarText(), GUISUMOAbstractView::snapToActiveGrid(), SUMO_ATTR_ENDPOS, SUMO_ATTR_STARTPOS, TL, and WRITE_WARNING.
Referenced by GNEAdditionalFrame::addAdditional(), GNEWireFrame::addWire(), GNEAdditionalFrame::createPath(), GNEWireFrame::createPath(), GNEStopFrame::getStopParameter(), GNEShapeFrame::processClickPOI(), GNEShapeFrame::processClickPOIGeo(), GNEShapeFrame::processClickPOILanes(), and GNEShapeFrame::shapeDrawed().
| void GNENeteditAttributes::hideNeteditAttributesModule | ( | ) |
hide Netedit attributes modul
Definition at line 133 of file GNENeteditAttributes.cpp.
Referenced by GNEContainerFrame::demandElementSelected(), GNEPersonFrame::demandElementSelected(), GNEStopFrame::demandElementSelected(), GNEStopFrame::show(), GNEContainerFrame::tagSelected(), GNEPersonFrame::tagSelected(), GNEStopFrame::tagSelected(), GNEAdditionalFrame::tagSelected(), GNEShapeFrame::tagSelected(), and GNEWireFrame::tagSelected().
|
protectedvirtualinherited |
load contents (can be reimplemented in children)
Definition at line 231 of file MFXGroupBoxModule.cpp.
Referenced by MFXGroupBoxModule::onCmdLoadButton().
|
inherited |
collapse GroupBoxModule
Definition at line 142 of file MFXGroupBoxModule.cpp.
References COLLAPSE, GUIIconSubSys::getIcon(), MFXGroupBoxModule::myCollapsableFrame, MFXGroupBoxModule::myCollapseButton, MFXGroupBoxModule::myCollapsed, and UNCOLLAPSE.
Referenced by FXDEFMAP().
|
inherited |
extends GroupBoxModule
Definition at line 158 of file MFXGroupBoxModule.cpp.
References GNEFrame::getScrollBarWidth(), GNETLSEditorFrame::TLSPhases::getTLSEditorParent(), GNETLSTable::getTLSPhasesParent(), GNEFrame::getViewNet(), GNEViewNet::getViewParent(), MFXGroupBoxModule::myCollapsableFrame, MFXGroupBoxModule::myFrameParent, and GNEViewParent::setFrameAreaWidth().
Referenced by FXDEFMAP().
| long GNENeteditAttributes::onCmdHelp | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Called when user press the help button.
Definition at line 372 of file GNENeteditAttributes.cpp.
References ACCEPT, GUIDesigns::buildFXButton(), MFXGroupBoxModule::getCollapsableFrame(), GUIIconSubSys::getIcon(), GUIDesignAuxiliarHorizontalFrame, GUIDesignButtonOK, GUIDesignDialogBox, GUIDesignHorizontalSeparator, GUIDesignLabelFrameInformation, MODEADDITIONAL, and TL.
Referenced by FXDEFMAP().
|
inherited |
load contents
Definition at line 212 of file MFXGroupBoxModule.cpp.
References MFXGroupBoxModule::loadContents().
Referenced by FXDEFMAP().
|
inherited |
reset GroupBoxModule
Definition at line 184 of file MFXGroupBoxModule.cpp.
References GNEFrame::getViewNet(), GNEViewNet::getViewParent(), MFXGroupBoxModule::myFrameParent, and GNEViewParent::setFrameAreaWidth().
Referenced by FXDEFMAP().
|
inherited |
save contents
Definition at line 206 of file MFXGroupBoxModule.cpp.
References MFXGroupBoxModule::saveContents().
Referenced by FXDEFMAP().
| long GNENeteditAttributes::onCmdSetNeteditAttribute | ( | FXObject * | obj, |
| FXSelector | , | ||
| void * | |||
| ) |
Called when user changes some element of GNENeteditAttributes.
Definition at line 290 of file GNENeteditAttributes.cpp.
References CENTER, getElementLength(), MFXComboBoxIcon::getText(), INVALID, INVALID_DOUBLE, LEFT, myCenterViewAfterCreationButton, myCloseShapeCheckButton, myForceLengthCheckButton, myForceLengthFrame, myLengthTextField, myReferencePoint, myReferencePointComboBox, myReferencePoints, RIGHT, MFXComboBoxIcon::setBackColor(), MFXComboBoxIcon::setTextColor(), and TL.
Referenced by FXDEFMAP().
|
inherited |
draw MFXGroupBoxModule
Definition at line 129 of file MFXGroupBoxModule.cpp.
Referenced by FXDEFMAP().
|
inherited |
update reset GroupBoxModule
Definition at line 193 of file MFXGroupBoxModule.cpp.
References GNEViewParent::getFrameAreaWidth(), GNEFrame::getViewNet(), GNEViewNet::getViewParent(), and MFXGroupBoxModule::myFrameParent.
Referenced by FXDEFMAP().
|
privatedelete |
Invalidated assignment operator.
|
protectedvirtualinherited |
save contents (can be reimplemented in children)
Reimplemented in GNEFixDemandElements::FixOptions, and GNEFixNetworkElements::FixOptions.
Definition at line 224 of file MFXGroupBoxModule.cpp.
Referenced by MFXGroupBoxModule::onCmdSaveButton().
|
protected |
return the end position
Definition at line 460 of file GNENeteditAttributes.cpp.
References CENTER, EXTENDED, EXTENDEDLEFT, EXTENDEDRIGHT, INVALID_DOUBLE, LEFT, myReferencePoint, and RIGHT.
Referenced by drawLaneReference(), and getNeteditAttributesAndValues().
|
protected |
return the start position
Definition at line 431 of file GNENeteditAttributes.cpp.
References CENTER, EXTENDED, EXTENDEDLEFT, EXTENDEDRIGHT, INVALID_DOUBLE, LEFT, myReferencePoint, and RIGHT.
Referenced by drawLaneReference(), and getNeteditAttributesAndValues().
|
inherited |
set text
Definition at line 117 of file MFXGroupBoxModule.cpp.
References MFXGroupBoxModule::myLabel.
Referenced by GNETLSEditorFrame::TLSDefinition::onCmdDefSwitchTLSProgram(), GNETagSelector::setCurrentTagType(), and GNESelectorFrame::SelectionInformation::updateInformationLabel().
| void GNENeteditAttributes::showNeteditAttributesModule | ( | GNEAttributeCarrier * | templateAC | ) |
show Netedit attributes modul
Definition at line 94 of file GNENeteditAttributes.cpp.
References GNETagProperties::canCenterCameraAfterCreation(), GNETagProperties::canCloseShape(), GNETagProperties::canMaskStartEndPos(), GNEAttributeCarrier::getTagProperty(), myCenterViewAfterCreationFrame, myCloseShapeFrame, myForceLengthFrame, myLengthFrame, and myReferencePointComboBox.
Referenced by GNEContainerFrame::demandElementSelected(), GNEPersonFrame::demandElementSelected(), GNEStopFrame::demandElementSelected(), GNEContainerFrame::tagSelected(), GNEPersonFrame::tagSelected(), GNEStopFrame::tagSelected(), GNEAdditionalFrame::tagSelected(), GNEShapeFrame::tagSelected(), and GNEWireFrame::tagSelected().
|
protectedinherited |
enable or disable save buttons
Definition at line 238 of file MFXGroupBoxModule.cpp.
References MFXGroupBoxModule::mySaveButton.
|
protected |
checkbox to enable/disable center element after creation
Definition at line 115 of file GNENeteditAttributes.h.
Referenced by getNeteditAttributesAndValues(), and onCmdSetNeteditAttribute().
|
protected |
horizontal frame for center view after creation frame
Definition at line 112 of file GNENeteditAttributes.h.
Referenced by getNeteditAttributesAndValues(), and showNeteditAttributesModule().
|
protected |
checkbox to enable/disable close polygon
Definition at line 109 of file GNENeteditAttributes.h.
Referenced by getNeteditAttributesAndValues(), and onCmdSetNeteditAttribute().
|
protected |
horizontal frame for close polygon
Definition at line 106 of file GNENeteditAttributes.h.
Referenced by getNeteditAttributesAndValues(), and showNeteditAttributesModule().
|
privateinherited |
vertical collapsable frame
Definition at line 103 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule::getCollapsableFrame(), MFXGroupBoxModule::MFXGroupBoxModule(), MFXGroupBoxModule::onCmdCollapseButton(), and MFXGroupBoxModule::onCmdExtendButton().
|
privateinherited |
button for collapse elements
Definition at line 109 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule::MFXGroupBoxModule(), and MFXGroupBoxModule::onCmdCollapseButton().
|
privateinherited |
flag to check if this groupbox is collapsed
Definition at line 124 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule::onCmdCollapseButton().
|
privateinherited |
button for extend elements
Definition at line 112 of file MFXGroupBoxModule.h.
|
protected |
checkbox to enable/disable force length
Definition at line 103 of file GNENeteditAttributes.h.
Referenced by drawLaneReference(), getNeteditAttributesAndValues(), and onCmdSetNeteditAttribute().
|
protected |
horizontal frame for force length
Definition at line 100 of file GNENeteditAttributes.h.
Referenced by drawLaneReference(), getNeteditAttributesAndValues(), onCmdSetNeteditAttribute(), and showNeteditAttributesModule().
|
protected |
pointer to frame parent
Definition at line 88 of file GNENeteditAttributes.h.
Referenced by drawLaneReference(), and getNeteditAttributesAndValues().
|
privateinherited |
label used in non collapsable MFXGroupBoxModule
Definition at line 106 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule::MFXGroupBoxModule(), and MFXGroupBoxModule::setText().
|
protected |
horizontal frame for length
Definition at line 94 of file GNENeteditAttributes.h.
Referenced by showNeteditAttributesModule().
|
protected |
textField for length
Definition at line 97 of file GNENeteditAttributes.h.
Referenced by getElementLength(), and onCmdSetNeteditAttribute().
|
privateinherited |
button for load elements
Definition at line 121 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule::MFXGroupBoxModule().
|
privateinherited |
GroupBoxModule options.
Definition at line 97 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule::MFXGroupBoxModule().
|
protected |
current reference point
Definition at line 118 of file GNENeteditAttributes.h.
Referenced by drawLaneReference(), getNeteditAttributesAndValues(), onCmdSetNeteditAttribute(), setEndPosition(), and setStartPosition().
|
protected |
match box with the list of reference points
Definition at line 91 of file GNENeteditAttributes.h.
Referenced by drawLaneReference(), getNeteditAttributesAndValues(), onCmdSetNeteditAttribute(), and showNeteditAttributesModule().
|
protected |
map with all references
Definition at line 121 of file GNENeteditAttributes.h.
Referenced by onCmdSetNeteditAttribute().
|
privateinherited |
button for reset frame width
Definition at line 115 of file MFXGroupBoxModule.h.
|
privateinherited |
button for save elements
Definition at line 118 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule::MFXGroupBoxModule(), and MFXGroupBoxModule::toggleSaveButton().