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-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 /****************************************************************************/
17 // A class to manage icons of SUMO
18 /****************************************************************************/
19 #ifndef GUIIconSubSys_h
20 #define GUIIconSubSys_h
21 
22 
23 // ===========================================================================
24 // included modules
25 // ===========================================================================
26 #ifdef _MSC_VER
27 #include <windows_config.h>
28 #else
29 #include <config.h>
30 #endif
31 
32 #include <fx.h>
33 #include "GUIIcons.h"
34 
35 
36 // ===========================================================================
37 // class definitions
38 // ===========================================================================
40 public:
44  static void initIcons(FXApp* a);
45 
49  static FXIcon* getIcon(GUIIcon which);
50 
52  static void close();
53 
54 private:
56  GUIIconSubSys(FXApp* a);
57 
60 
63 
65  FXIcon* myIcons[ICON_MAX];
66 };
67 
68 
69 #endif
70 
71 /****************************************************************************/
72 
GUIIcon
An enumeration of icons used by the gui applications.
Definition: GUIIcons.h:42
static void initIcons(FXApp *a)
Initiate GUIIconSubSys.
max number of icons
Definition: GUIIcons.h:295
static GUIIconSubSys * myInstance
instance of GUIIconSubSys
Definition: GUIIconSubSys.h:62
FXIcon * myIcons[ICON_MAX]
vector with the icons
Definition: GUIIconSubSys.h:65
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