SUMO - Simulation of Urban MObility
GNEAdditionalDialog.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 GNEAdditionalDialog_h
21 #define GNEAdditionalDialog_h
22 
23 // ===========================================================================
24 // included modules
25 // ===========================================================================
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 <vector>
35 
36 
37 // ===========================================================================
38 // class declarations
39 // ===========================================================================
40 
41 class GNEAdditional;
42 
43 // ===========================================================================
44 // class definitions
45 // ===========================================================================
46 
51 class GNEAdditionalDialog : public FXDialogBox {
53  FXDECLARE_ABSTRACT(GNEAdditionalDialog)
54 
55 public:
57  GNEAdditionalDialog(GNEAdditional* parent, int width, int height);
58 
61 
63  void changeAdditionalDialogHeader(const std::string& newHeader);
64 
68  virtual long onCmdAccept(FXObject* sender, FXSelector sel, void* ptr) = 0;
69 
71  virtual long onCmdCancel(FXObject* sender, FXSelector sel, void* ptr) = 0;
72 
74  virtual long onCmdReset(FXObject*, FXSelector, void*) = 0;
76 
77 protected:
80 
82  FXVerticalFrame* myContentFrame;
83 
85  FXButton* myAcceptButton;
86 
88  FXButton* myCancelButton;
89 
91  FXButton* myResetButton;
92 
93 private:
96 
99 };
100 
101 #endif
virtual long onCmdReset(FXObject *, FXSelector, void *)=0
event after press cancel button
~GNEAdditionalDialog()
destructor
FXButton * myResetButton
cancel button
Dialog to edit sequences, parameters, etc.. of Additionals.
FXButton * myCancelButton
cancel button
GNEAdditionalDialog & operator=(const GNEAdditionalDialog &)
Invalidated assignment operator.
virtual long onCmdCancel(FXObject *sender, FXSelector sel, void *ptr)=0
event after press cancel button
FXVerticalFrame * myContentFrame
frame for contents
virtual long onCmdAccept(FXObject *sender, FXSelector sel, void *ptr)=0
An Element which don&#39;t belongs to GNENet but has influency in the simulation.
Definition: GNEAdditional.h:62
GNEAdditionalDialog()
FOX needs this.
FXButton * myAcceptButton
accept button
void changeAdditionalDialogHeader(const std::string &newHeader)
change additional dialog header