59 TL(
"Steps has to be sorted."));
90 if (getEditedElements().empty()) {
96 for (
const auto& step : getEditedElements()) {
98 if (biggestTime < time) {
118 std::vector<double> sortedSteps;
120 for (
const auto& step : getEditedElements()) {
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)
const std::string getID() const
get ID (all Attribute Carriers have one)
GNENet * getNet() const
get pointer to net
void openDialog(FXWindow *focusableElement=nullptr)
open dialog
GNEViewNet * getViewNet() const
get view net
GNEAdditional * myElement
pointer to edited element
void resetChanges()
reset changes did in this dialog.
long acceptElementDialog()
close dialog commiting changes
long updateList()
update element list
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
GNEViewParent * getViewParent() const
get the net object
GNEApplicationWindow * getGNEAppWindows() const
get GNE Application Windows
dialog arguments, used for certain modal dialogs that can not be edited using tab
double getFloat(const std::string &name) const
Returns the double-value of the named option (only for Option_Float)
static OptionsCont & getOptions()
Retrieves the options.