SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
GNEAdditionalDialog.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 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 
35 
36 // ===========================================================================
37 // class declarations
38 // ===========================================================================
39 
40 class GNEAdditional;
41 
42 // ===========================================================================
43 // class definitions
44 // ===========================================================================
45 
50 class GNEAdditionalDialog : public FXDialogBox {
52  FXDECLARE_ABSTRACT(GNEAdditionalDialog)
53 
54 public:
55  // Constructor
56  GNEAdditionalDialog(GNEAdditional* parent, int width, int height);
57 
58  // destructor
60 
64  virtual long onCmdAccept(FXObject* sender, FXSelector sel, void* ptr) = 0;
65 
67  virtual long onCmdCancel(FXObject* sender, FXSelector sel, void* ptr) = 0;
68 
70  virtual long onCmdReset(FXObject*, FXSelector, void*) = 0;
72 
73 protected:
76 
78  FXVerticalFrame* myContentFrame;
79 
81  FXButton* myAcceptButton;
82 
84  FXButton* myCancelButton;
85 
87  FXButton* myResetButton;
88 
89 private:
92  virtual void updateTable() = 0;
93 
95  FXHorizontalFrame* myButtonFrame;
96 
99 
102 };
103 
104 #endif
virtual long onCmdReset(FXObject *, FXSelector, void *)=0
event after press cancel button
FXButton * myResetButton
cancel button
Dialog to edit sequences, parameters, etc.. of Additionals.
FXButton * myCancelButton
cancel button
FXHorizontalFrame * myButtonFrame
frame for buttons (Not accesible for childs)
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
virtual void updateTable()=0
update data table
An Element which don't belongs to GNENet but has influency in the simulation.
Definition: GNEAdditional.h:63
GNEAdditionalDialog()
FOX needs this.
FXButton * myAcceptButton
accept button