/****************************************************************************/1// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo2// Copyright (C) 2004-2025 German Aerospace Center (DLR) and others.3// This program and the accompanying materials are made available under the4// terms of the Eclipse Public License 2.0 which is available at5// https://www.eclipse.org/legal/epl-2.0/6// This Source Code may also be made available under the following Secondary7// Licenses when the conditions for such availability set forth in the Eclipse8// Public License 2.0 are satisfied: GNU General Public License, version 29// or later which is available at10// https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html11// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later12/****************************************************************************/13/// @file MFXRealSpinner.cpp14/// @author Daniel Krajzewicz15/// @date 2004-03-1916///17// missing_desc18/****************************************************************************/19#include <config.h>20#include <iostream>2122#include <fxkeys.h>23#include "MFXRealSpinner.h"242526FXDEFMAP(MFXRealSpinner) MFXRealSpinnerMap[] = {27FXMAPFUNC(SEL_KEYPRESS, 0, MFXRealSpinner::onKeyPress),28};293031// Object implementation32FXIMPLEMENT(MFXRealSpinner, FXRealSpinner, MFXRealSpinnerMap, ARRAYNUMBER(MFXRealSpinnerMap))3334MFXRealSpinner::MFXRealSpinner(FXComposite* p, FXint cols, FXObject* tgt, FXSelector sel, FXuint opts, FXint x, FXint y, FXint w, FXint h, FXint pl, FXint pr, FXint pt, FXint pb):35FXRealSpinner(p, cols, tgt, sel, opts, x, y, w, h, pl, pr, pt, pb) {36}373839MFXRealSpinner::~MFXRealSpinner() {}404142long43MFXRealSpinner::onKeyPress(FXObject* o, FXSelector sel, void* ptr) {44FXEvent* e = (FXEvent*) ptr;45if ((e->code >= FX::KEY_a && e->code <= FX::KEY_z) || e->code == FX::KEY_space) {46return 0;47}48return FXRealSpinner::onKeyPress(o, sel, ptr);49}5051/****************************************************************************/525354