Eclipse SUMO - Simulation of Urban MObility
GUIIconSubSys.h
Go to the documentation of this file.
1
/****************************************************************************/
2
// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3
// Copyright (C) 2001-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
// A class to manage icons of SUMO
16
/****************************************************************************/
17
#ifndef GUIIconSubSys_h
18
#define GUIIconSubSys_h
19
20
21
// ===========================================================================
22
// included modules
23
// ===========================================================================
24
#include <
config.h
>
25
26
#include <fx.h>
27
#include "
GUIIcons.h
"
28
29
30
// ===========================================================================
31
// class definitions
32
// ===========================================================================
33
class
GUIIconSubSys
{
34
public
:
38
static
void
initIcons
(FXApp* a);
39
43
static
FXIcon*
getIcon
(
GUIIcon
which);
44
46
static
void
close
();
47
48
private
:
50
GUIIconSubSys
(FXApp* a);
51
53
~GUIIconSubSys
();
54
56
static
GUIIconSubSys
*
myInstance
;
57
59
FXIcon*
myIcons
[
ICON_MAX
];
60
};
61
62
63
#endif
64
65
/****************************************************************************/
66
GUIIconSubSys::myInstance
static GUIIconSubSys * myInstance
instance of GUIIconSubSys
Definition:
GUIIconSubSys.h:56
GUIIconSubSys::GUIIconSubSys
GUIIconSubSys(FXApp *a)
constructor is private because is called by the static function init(FXApp* a)
Definition:
GUIIconSubSys.cpp:307
GUIIconSubSys::close
static void close()
close GUIIconSubSys
Definition:
GUIIconSubSys.cpp:608
GUIIconSubSys::getIcon
static FXIcon * getIcon(GUIIcon which)
returns a icon previously defined in the enum GUIIcon
Definition:
GUIIconSubSys.cpp:602
GUIIconSubSys::initIcons
static void initIcons(FXApp *a)
Initiate GUIIconSubSys.
Definition:
GUIIconSubSys.cpp:595
GUIIcons.h
GUIIconSubSys::~GUIIconSubSys
~GUIIconSubSys()
destructor
Definition:
GUIIconSubSys.cpp:587
GUIIconSubSys
Definition:
GUIIconSubSys.h:33
GUIIcon
GUIIcon
An enumeration of icons used by the gui applications.
Definition:
GUIIcons.h:36
ICON_MAX
max number of icons
Definition:
GUIIcons.h:396
GUIIconSubSys::myIcons
FXIcon * myIcons[ICON_MAX]
vector with the icons
Definition:
GUIIconSubSys.h:59
config.h
src
utils
gui
images
GUIIconSubSys.h
Generated on Wed Jan 15 2020 15:04:13 for Eclipse SUMO - Simulation of Urban MObility by
1.8.16