/****************************************************************************/1// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo2// Copyright (C) 2006-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 MFXLinkLabel.h14/// @author Daniel Krajzewicz15/// @author Michael Behrisch16/// @date 2006-03-0817///18//19/****************************************************************************/20#pragma once21#include <config.h>2223#include "fxheader.h"2425/** A label which points to a link.26* This class behaves very much like the FXLabel class but it27* points to some link which is started when clicked.28*/29class MFXLinkLabel : public FXLabel {30protected:31// FOX stuff32FXDECLARE(MFXLinkLabel)33MFXLinkLabel() {}34public:35/// Constructor.36MFXLinkLabel(FXComposite* p, const FXString& text, FXIcon* ic = 0, FXuint opts = LABEL_NORMAL, FXint x = 0, FXint y = 0, FXint w = 0, FXint h = 0, FXint pl = DEFAULT_PAD, FXint pr = DEFAULT_PAD, FXint pt = DEFAULT_PAD, FXint pb = DEFAULT_PAD);3738/// Destructor.39virtual ~MFXLinkLabel();4041// FOX enum42enum {43ID_FIRST = FXLabel::ID_LAST,44ID_TIMER,4546ID_LAST47};4849// FOX messages50long onLeftBtnPress(FXObject*, FXSelector, void*);51long onTimer(FXObject*, FXSelector, void*);5253// open the given link in a browser or pdf viewer54static FXint fxexecute(FXString link);55};565758