SUMO - Simulation of Urban MObility
FXLinkLabel.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2006-2018 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials
5 // are made available under the terms of the Eclipse Public License v2.0
6 // which accompanies this distribution, and is available at
7 // http://www.eclipse.org/legal/epl-v20.html
8 // SPDX-License-Identifier: EPL-2.0
9 /****************************************************************************/
16 //
17 /****************************************************************************/
18 
19 #ifndef FXLinkLabel_h
20 #define FXLinkLabel_h
21 
22 
23 // ===========================================================================
24 // included modules
25 // ===========================================================================
26 #include <config.h>
27 
28 #include <fx.h>
29 
34 class FXLinkLabel : public FXLabel {
35 protected:
36  // FOX stuff
37  FXDECLARE(FXLinkLabel)
39 public:
41  FXLinkLabel(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);
42 
44  virtual ~FXLinkLabel();
45 
46  // FOX enum
47  enum {
48  ID_FIRST = FXLabel::ID_LAST,
50 
52  };
53 
54  // FOX messages
55  long onLeftBtnPress(FXObject*, FXSelector, void*);
56  long onTimer(FXObject*, FXSelector, void*);
57 
58  // open the given link in a browser or pdf viewer
59  static FXint fxexecute(FXString link);
60 };
61 
62 
63 
64 
65 #endif