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
)
44
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,
55
ID_TIMER
,
56
57
ID_LAST
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
FXLinkLabel::ID_LAST
Definition:
FXLinkLabel.h:57
windows_config.h
FXLinkLabel::~FXLinkLabel
virtual ~FXLinkLabel()
Destructor.
Definition:
FXLinkLabel.cpp:91
FXLinkLabel::onTimer
long onTimer(FXObject *, FXSelector, void *)
Definition:
FXLinkLabel.cpp:109
config.h
FXLinkLabel::ID_TIMER
Definition:
FXLinkLabel.h:55
FXLinkLabel::fxexecute
static FXint fxexecute(FXString link)
Definition:
FXLinkLabel.cpp:41
FXLinkLabel::ID_FIRST
Definition:
FXLinkLabel.h:54
FXLinkLabel::onLeftBtnPress
long onLeftBtnPress(FXObject *, FXSelector, void *)
Definition:
FXLinkLabel.cpp:95
FXLinkLabel
Definition:
FXLinkLabel.h:40
FXLinkLabel::FXLinkLabel
FXLinkLabel()
Definition:
FXLinkLabel.h:44
src
utils
foxtools
FXLinkLabel.h
Generated on Fri May 25 2018 08:54:34 for SUMO - Simulation of Urban MObility by
1.8.13