/****************************************************************************/1// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo2// Copyright (C) 2006-2026 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 MFXTextFieldSearch.h14/// @author Pablo Alvarez Lopez15/// @date May 202316///17// TextField for search elements18/****************************************************************************/1920#pragma once21#include <config.h>2223#include "MFXTextFieldIcon.h"242526/// @brief FXTextFieldIcon (based on FXTextFieldIcon)27class MFXTextFieldSearch : public MFXTextFieldIcon {28/// @brief FOX declaration29FXDECLARE(MFXTextFieldSearch)3031public:32/// @brief constructor33MFXTextFieldSearch(FXComposite* p, MFXStaticToolTip* staticToolTip, FXObject* tgt,34FXSelector sel, FXuint opts, FXint x = 0, FXint y = 0, FXint w = 0,35FXint h = 0, FXint pl = DEFAULT_PAD, FXint pr = DEFAULT_PAD,36FXint pt = DEFAULT_PAD, FXint pb = DEFAULT_PAD);3738/// @brief key press39long onKeyPress(FXObject* obj, FXSelector sel, void* ptr);4041/// @brief paint42long onPaint(FXObject* obj, FXSelector sel, void* ptr);4344/// @brief focus in45long onFocusIn(FXObject* sender, FXSelector sel, void* ptr);4647/// @brief focus out48long onFocusOut(FXObject* sender, FXSelector sel, void* ptr);4950/// @brief focus self51long onFocusSelf(FXObject* sender, FXSelector sel, void* ptr);5253protected:54/// @brief FOX need this55MFXTextFieldSearch();5657private:58/// @brief target59FXObject* myTarget = nullptr;6061/// @brief draw search text range62void drawSearchTextRange(FXDCWindow& dc, FXint fm, const FXString& searchString);63};646566