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 /****************************************************************************/
14 // A class to manage icons of SUMO
15 /****************************************************************************/
16 #ifndef GUIIconSubSys_h
17 #define GUIIconSubSys_h
18 
19 
20 // ===========================================================================
21 // included modules
22 // ===========================================================================
23 #include <config.h>
24 
25 #include <fx.h>
26 #include "GUIIcons.h"
27 
28 
29 // ===========================================================================
30 // class definitions
31 // ===========================================================================
33 public:
37  static void initIcons(FXApp* a);
38 
42  static FXIcon* getIcon(GUIIcon which);
43 
45  static void close();
46 
47 private:
49  GUIIconSubSys(FXApp* a);
50 
53 
56 
58  FXIcon* myIcons[ICON_MAX];
59 };
60 
61 
62 #endif
63 
64 /****************************************************************************/
65 
GUIIconSubSys::myInstance
static GUIIconSubSys * myInstance
instance of GUIIconSubSys
Definition: GUIIconSubSys.h:55
GUIIconSubSys::GUIIconSubSys
GUIIconSubSys(FXApp *a)
constructor is private because is called by the static function init(FXApp* a)
Definition: GUIIconSubSys.cpp:310
GUIIconSubSys::close
static void close()
close GUIIconSubSys
Definition: GUIIconSubSys.cpp:615
GUIIconSubSys::getIcon
static FXIcon * getIcon(GUIIcon which)
returns a icon previously defined in the enum GUIIcon
Definition: GUIIconSubSys.cpp:609
GUIIconSubSys::initIcons
static void initIcons(FXApp *a)
Initiate GUIIconSubSys.
Definition: GUIIconSubSys.cpp:602
GUIIcons.h
GUIIconSubSys::~GUIIconSubSys
~GUIIconSubSys()
destructor
Definition: GUIIconSubSys.cpp:594
GUIIconSubSys
Definition: GUIIconSubSys.h:32
GUIIcon
GUIIcon
An enumeration of icons used by the gui applications.
Definition: GUIIcons.h:35
ICON_MAX
@ ICON_MAX
max number of icons
Definition: GUIIcons.h:402
GUIIconSubSys::myIcons
FXIcon * myIcons[ICON_MAX]
vector with the icons
Definition: GUIIconSubSys.h:58
config.h