SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
GNEFrame.h
Go to the documentation of this file.
1 /****************************************************************************/
8 /****************************************************************************/
9 // SUMO, Simulation of Urban MObility; see http://sumo-sim.org/
10 // Copyright (C) 2001-2013 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 FXScrollWindow {
54 public:
60  GNEFrame(FXComposite* parent, GNEViewNet* viewNet, const std::string& frameLabel);
61 
63  ~GNEFrame();
64 
66  virtual void show() = 0;
67 
69  virtual void hide() = 0;
70 
72  GNEViewNet* getViewNet() const;
73 
75  FXLabel* getFrameHeaderLabel() const;
76 
78  FXFont* getFrameHeaderFont() const;
79 
80 protected:
82  GNEFrame() {}
83 
86 
89 
92 
94  FXVerticalFrame* myContentFrame;
95 
97  FXHorizontalFrame* myHeaderFrame;
98 
100  FXHorizontalFrame* myHeaderLeftFrame;
101 
103  FXHorizontalFrame* myHeaderRightFrame;
104 
105 private:
107  GNEFrame(const GNEFrame&);
108 
110  GNEFrame& operator=(const GNEFrame&);
111 };
112 
113 
114 #endif
115 
116 /****************************************************************************/
GNEFrame()
FOX needs this.
Definition: GNEFrame.h:82
FXFont * myFrameHeaderFont
Font for the Header.
Definition: GNEFrame.h:88
FXHorizontalFrame * myHeaderRightFrame
fame for right header elements
Definition: GNEFrame.h:103
FXHorizontalFrame * myHeaderFrame
fame for header elements
Definition: GNEFrame.h:97
virtual void hide()=0
hide Frame
GNEViewNet * myViewNet
the window to inform when the tls is modfied
Definition: GNEFrame.h:85
FXVerticalFrame * myContentFrame
the panel to hold all member widgets
Definition: GNEFrame.h:94
FXLabel * myFrameHeaderLabel
the label for the frame's header
Definition: GNEFrame.h:91
virtual void show()=0
show Frame
GNEViewNet * getViewNet() const
get view net
Definition: GNEFrame.cpp:93
~GNEFrame()
destructor
Definition: GNEFrame.cpp:87
GNEFrame & operator=(const GNEFrame &)
Invalidated assignment operator.
FXLabel * getFrameHeaderLabel() const
get the label for the frame's header
Definition: GNEFrame.cpp:99
FXFont * getFrameHeaderFont() const
get font of the header's frame
Definition: GNEFrame.cpp:105
FXHorizontalFrame * myHeaderLeftFrame
fame for left header elements
Definition: GNEFrame.h:100