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-2017 German Aerospace Center (DLR) and others.
4 /****************************************************************************/
5 //
6 // This program and the accompanying materials
7 // are made available under the terms of the Eclipse Public License v2.0
8 // which accompanies this distribution, and is available at
9 // http://www.eclipse.org/legal/epl-v20.html
10 //
11 /****************************************************************************/
18 //
19 /****************************************************************************/
20 
21 #ifndef FXLinkLabel_h
22 #define FXLinkLabel_h
23 
24 
25 // ===========================================================================
26 // included modules
27 // ===========================================================================
28 #ifdef _MSC_VER
29 #include <windows_config.h>
30 #else
31 #include <config.h>
32 #endif
33 
34 #include <fx.h>
35 
40 class FXLinkLabel : public FXLabel {
41 protected:
42  // FOX stuff
43  FXDECLARE(FXLinkLabel)
45 public:
47  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);
48 
50  virtual ~FXLinkLabel();
51 
52  // FOX enum
53  enum {
54  ID_FIRST = FXLabel::ID_LAST,
56 
58  };
59 
60  // FOX messages
61  long onLeftBtnPress(FXObject*, FXSelector, void*);
62  long onTimer(FXObject*, FXSelector, void*);
63 
64  // open the given link in a browser or pdf viewer
65  static FXint fxexecute(FXString link);
66 };
67 
68 
69 
70 
71 #endif