Eclipse 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-2019 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 /****************************************************************************/
15 //
16 /****************************************************************************/
17 
18 #ifndef FXLinkLabel_h
19 #define FXLinkLabel_h
20 
21 
22 // ===========================================================================
23 // included modules
24 // ===========================================================================
25 #include <config.h>
26 
27 #include <fx.h>
28 
33 class FXLinkLabel : public FXLabel {
34 protected:
35  // FOX stuff
36  FXDECLARE(FXLinkLabel)
38 public:
40  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);
41 
43  virtual ~FXLinkLabel();
44 
45  // FOX enum
46  enum {
47  ID_FIRST = FXLabel::ID_LAST,
49 
51  };
52 
53  // FOX messages
54  long onLeftBtnPress(FXObject*, FXSelector, void*);
55  long onTimer(FXObject*, FXSelector, void*);
56 
57  // open the given link in a browser or pdf viewer
58  static FXint fxexecute(FXString link);
59 };
60 
61 
62 
63 
64 #endif
config.h