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-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 /****************************************************************************/
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 // ===========================================================================
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 
54 
57 
59  FXIcon* myIcons[ICON_MAX];
60 };
61 
62 
63 #endif
64 
65 /****************************************************************************/
66 
GUIIcon
An enumeration of icons used by the gui applications.
Definition: GUIIcons.h:36
static void initIcons(FXApp *a)
Initiate GUIIconSubSys.
max number of icons
Definition: GUIIcons.h:316
static GUIIconSubSys * myInstance
instance of GUIIconSubSys
Definition: GUIIconSubSys.h:56
FXIcon * myIcons[ICON_MAX]
vector with the icons
Definition: GUIIconSubSys.h:59
static void close()
close GUIIconSubSys
~GUIIconSubSys()
destructor
GUIIconSubSys(FXApp *a)
constructor is private because is called by the static function init(FXApp* a)
static FXIcon * getIcon(GUIIcon which)
returns a icon previously defined in the enum GUIIcon