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 
66  void focusUpperElement();
67 
71  virtual void show();
72 
76  virtual void hide();
77 
79  void setFrameWidth(int width);
80 
82  GNEViewNet* getViewNet() const;
83 
85  FXLabel* getFrameHeaderLabel() const;
86 
88  FXFont* getFrameHeaderFont() const;
89 
90 protected:
92  GNEFrame() {}
93 
96 
99 
102 
104  FXVerticalFrame* myContentFrame;
105 
107  FXHorizontalFrame* myHeaderFrame;
108 
110  FXHorizontalFrame* myHeaderLeftFrame;
111 
113  FXHorizontalFrame* myHeaderRightFrame;
114 
115 private:
117  FXScrollWindow* myScrollWindowsContents;
118 
120  GNEFrame(const GNEFrame&);
121 
123  GNEFrame& operator=(const GNEFrame&);
124 };
125 
126 
127 #endif
128 
129 /****************************************************************************/
GNEFrame()
FOX needs this.
Definition: GNEFrame.h:92
FXLabel * getFrameHeaderLabel() const
get the label for the frame&#39;s header
Definition: GNEFrame.cpp:129
void setFrameWidth(int width)
set width of GNEFrame
Definition: GNEFrame.cpp:116
FXFont * myFrameHeaderFont
Font for the Header.
Definition: GNEFrame.h:98
FXHorizontalFrame * myHeaderRightFrame
fame for right header elements
Definition: GNEFrame.h:113
FXScrollWindow * myScrollWindowsContents
scroll windows that holds the content frame
Definition: GNEFrame.h:117
FXFont * getFrameHeaderFont() const
get font of the header&#39;s frame
Definition: GNEFrame.cpp:135
FXHorizontalFrame * myHeaderFrame
fame for header elements
Definition: GNEFrame.h:107
GNEViewNet * getViewNet() const
get view net
Definition: GNEFrame.cpp:123
GNEViewNet * myViewNet
the window to inform when the tls is modfied
Definition: GNEFrame.h:95
FXVerticalFrame * myContentFrame
Vertical frame that holds all widgets of frame.
Definition: GNEFrame.h:104
FXLabel * myFrameHeaderLabel
the label for the frame&#39;s header
Definition: GNEFrame.h:101
void focusUpperElement()
focus upper element of frame
Definition: GNEFrame.cpp:92
~GNEFrame()
destructor
Definition: GNEFrame.cpp:86
GNEFrame & operator=(const GNEFrame &)
Invalidated assignment operator.
virtual void show()
show Frame
Definition: GNEFrame.cpp:98
virtual void hide()
hide Frame
Definition: GNEFrame.cpp:107
FXHorizontalFrame * myHeaderLeftFrame
fame for left header elements
Definition: GNEFrame.h:110