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
)
38
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,
49
ID_TIMER
,
50
51
ID_LAST
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
FXLinkLabel::ID_TIMER
Definition:
FXLinkLabel.h:49
FXLinkLabel::~FXLinkLabel
virtual ~FXLinkLabel()
Destructor.
Definition:
FXLinkLabel.cpp:85
FXLinkLabel::onTimer
long onTimer(FXObject *, FXSelector, void *)
Definition:
FXLinkLabel.cpp:103
config.h
FXLinkLabel::ID_LAST
Definition:
FXLinkLabel.h:51
FXLinkLabel::fxexecute
static FXint fxexecute(FXString link)
Definition:
FXLinkLabel.cpp:35
FXLinkLabel::onLeftBtnPress
long onLeftBtnPress(FXObject *, FXSelector, void *)
Definition:
FXLinkLabel.cpp:89
FXLinkLabel::ID_FIRST
Definition:
FXLinkLabel.h:48
FXLinkLabel
Definition:
FXLinkLabel.h:34
FXLinkLabel::FXLinkLabel
FXLinkLabel()
Definition:
FXLinkLabel.h:38
src
utils
foxtools
FXLinkLabel.h
Generated on Sat Nov 23 2019 06:08:23 for SUMO - Simulation of Urban MObility by
1.8.13