59 TL(
"Steps has to be sorted."));
98 if (biggestTime < time) {
118 std::vector<double> sortedSteps;
124 if (sortedSteps.size() > 1) {
126 for (
int i = 0; i < (int)sortedSteps.size() - 1; i++) {
127 if (sortedSteps.at(i) > sortedSteps.at(i + 1)) {
SUMOTime string2time(const std::string &r)
convert string to SUMOTime
@ SUMO_TAG_STEP
trigger: a step description
@ SUMO_TAG_VSS
A variable speed sign.
@ SUMO_ATTR_TIME
trigger: the time of the step
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
FXVerticalFrame * getContentFrame() const
void openDialog(FXWindow *focusableElement=nullptr)
GNEElementList(FXVerticalFrame *contentFrame, const GNETagProperties *tagProperty, GNEElementList::Options options)
constructor
GNEAdditional * myElement
GNETemplateElementDialog(GNEAdditional *element, DialogType type)
long acceptElementDialog()
const std::vector< GNEAdditional * > & getEditedElements() const
long insertElement(GNEAdditional *element)
GNETemplateElementDialog< GNEAdditional > * myElementDialogParent
GNETemplateElementList(GNETemplateElementDialog< GNEAdditional > *elementDialogParent, FXVerticalFrame *contentFrame, SumoXMLTag tag, GNEElementList::Options options)
variableSpeedSign step list
long addNewElement()
add new element
VariableSpeedSignStepsList(GNEVariableSpeedSignDialog *variableSpeedSignDialog)
constructor
long openElementDialog(const size_t rowIndex)
open element dialog
bool isSorted() const
@briec check if steps are sorted
~GNEVariableSpeedSignDialog()
destructor
void runInternalTest(const InternalTestStep::DialogArgument *dialogArgument)
run internal test
GNEVariableSpeedSignDialog(GNEAdditional *variableSpeedSign)
Constructor.
long onCmdAccept(FXObject *, FXSelector, void *)
event after press accept button
VariableSpeedSignStepsList * myVariableSpeedSignSteps
Element list for variableSpeedSign steps.
long onCmdReset(FXObject *, FXSelector, void *)
event after press reset button
dialog arguments, used for certain modal dialogs that can not be edited using tab
static OptionsCont & getOptions()
Retrieves the options.