SUMO - Simulation of Urban MObility
GNEFrame.h
Go to the documentation of this file.
1 /****************************************************************************/
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 GNEFrame_h
21 #define GNEFrame_h
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 <netbuild/NBEdge.h>
39 
40 // ===========================================================================
41 // class declarations
42 // ===========================================================================
43 class GNEViewNet;
44 class GNEUndoList;
45 
46 // ===========================================================================
47 // class definitions
48 // ===========================================================================
53 class GNEFrame : public FXVerticalFrame {
54 public:
60  GNEFrame(FXHorizontalFrame* horizontalFrameParent, GNEViewNet* viewNet, const std::string& frameLabel);
61 
63  ~GNEFrame();
64 
68  virtual void show();
69 
73  virtual void hide();
74 
76  void setFrameWidth(int width);
77 
79  GNEViewNet* getViewNet() const;
80 
82  FXLabel* getFrameHeaderLabel() const;
83 
85  FXFont* getFrameHeaderFont() const;
86 
87 protected:
89  GNEFrame() {}
90 
93 
96 
99 
101  FXVerticalFrame* myContentFrame;
102 
104  FXHorizontalFrame* myHeaderFrame;
105 
107  FXHorizontalFrame* myHeaderLeftFrame;
108 
110  FXHorizontalFrame* myHeaderRightFrame;
111 
112 private:
114  FXScrollWindow* myScrollWindowsContents;
115 
117  GNEFrame(const GNEFrame&);
118 
120  GNEFrame& operator=(const GNEFrame&);
121 };
122 
123 
124 #endif
125 
126 /****************************************************************************/
GNEFrame()
FOX needs this.
Definition: GNEFrame.h:89
void setFrameWidth(int width)
set width of GNEFrame
Definition: GNEFrame.cpp:118
FXFont * myFrameHeaderFont
Font for the Header.
Definition: GNEFrame.h:95
FXHorizontalFrame * myHeaderRightFrame
fame for right header elements
Definition: GNEFrame.h:110
FXScrollWindow * myScrollWindowsContents
scroll windows that holds the content frame
Definition: GNEFrame.h:114
FXHorizontalFrame * myHeaderFrame
fame for header elements
Definition: GNEFrame.h:104
GNEViewNet * myViewNet
the window to inform when the tls is modfied
Definition: GNEFrame.h:92
FXVerticalFrame * myContentFrame
Vertical frame that holds all widgets of frame.
Definition: GNEFrame.h:101
FXLabel * myFrameHeaderLabel
the label for the frame&#39;s header
Definition: GNEFrame.h:98
GNEViewNet * getViewNet() const
get view net
Definition: GNEFrame.cpp:125
~GNEFrame()
destructor
Definition: GNEFrame.cpp:94
GNEFrame & operator=(const GNEFrame &)
Invalidated assignment operator.
virtual void show()
show Frame
Definition: GNEFrame.cpp:100
FXLabel * getFrameHeaderLabel() const
get the label for the frame&#39;s header
Definition: GNEFrame.cpp:131
virtual void hide()
hide Frame
Definition: GNEFrame.cpp:109
FXFont * getFrameHeaderFont() const
get font of the header&#39;s frame
Definition: GNEFrame.cpp:137
FXHorizontalFrame * myHeaderLeftFrame
fame for left header elements
Definition: GNEFrame.h:107