SUMO - Simulation of Urban MObility
GUIIconSubSys.h
Go to the documentation of this file.
1 /****************************************************************************/
7 // A class to manage icons of SUMO
8 /****************************************************************************/
9 // SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
10 // Copyright (C) 2001-2017 DLR (http://www.dlr.de/) and contributors
11 /****************************************************************************/
12 //
13 // This file is part of SUMO.
14 // SUMO is free software: you can redistribute it and/or modify
15 // it under the terms of the GNU General Public License as published by
16 // the Free Software Foundation, either version 3 of the License, or
17 // (at your option) any later version.
18 //
19 /****************************************************************************/
20 #ifndef GUIIconSubSys_h
21 #define GUIIconSubSys_h
22 
23 
24 // ===========================================================================
25 // included modules
26 // ===========================================================================
27 #ifdef _MSC_VER
28 #include <windows_config.h>
29 #else
30 #include <config.h>
31 #endif
32 
33 #include <fx.h>
34 #include "GUIIcons.h"
35 
36 
37 // ===========================================================================
38 // class definitions
39 // ===========================================================================
41 public:
45  static void initIcons(FXApp* a);
46 
50  static FXIcon* getIcon(GUIIcon which);
51 
53  static void close();
54 
55 private:
57  GUIIconSubSys(FXApp* a);
58 
61 
64 
66  FXIcon* myIcons[ICON_MAX];
67 };
68 
69 
70 #endif
71 
72 /****************************************************************************/
73 
GUIIcon
An enumeration of icons used by the gui applications.
Definition: GUIIcons.h:43
static void initIcons(FXApp *a)
Initiate GUIIconSubSys.
max number of icons
Definition: GUIIcons.h:295
static GUIIconSubSys * myInstance
instance of GUIIconSubSys
Definition: GUIIconSubSys.h:63
FXIcon * myIcons[ICON_MAX]
vector with the icons
Definition: GUIIconSubSys.h:66
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