SUMO - Simulation of Urban MObility
GNERerouterDialog.cpp
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 
21 // ===========================================================================
22 // included modules
23 // ===========================================================================
24 #ifdef _MSC_VER
25 #include <windows_config.h>
26 #else
27 #include <config.h>
28 #endif
29 
30 #include <iostream>
32 #include "GNERerouterDialog.h"
33 #include "GNERerouter.h"
34 
35 #ifdef CHECK_MEMORY_LEAKS
36 #include <foreign/nvwa/debug_new.h>
37 #endif
38 
39 // ===========================================================================
40 // FOX callback mapping
41 // ===========================================================================
42 
43 FXDEFMAP(GNERerouterDialog) GNERerouterDialogMap[] = {
47 };
48 
49 // Object implementation
50 FXIMPLEMENT(GNERerouterDialog, FXDialogBox, GNERerouterDialogMap, ARRAYNUMBER(GNERerouterDialogMap))
51 
52 // ===========================================================================
53 // member method definitions
54 // ===========================================================================
55 
57  GNEAdditionalDialog(rerouterParent, 320, 240),
58  myRerouterParent(rerouterParent) {
59  // Execute additional dialog (To make it modal)
60  execute();
61 }
62 
63 
65 }
66 
67 
68 long
69 GNERerouterDialog::onCmdAccept(FXObject*, FXSelector, void*) {
70  // Stop Modal
71  getApp()->stopModal(this, TRUE);
72  return 1;
73 }
74 
75 
76 long
77 GNERerouterDialog::onCmdCancel(FXObject*, FXSelector, void*) {
78  // Stop Modal
79  getApp()->stopModal(this, TRUE);
80  return 1;
81 }
82 
83 
84 long
85 GNERerouterDialog::onCmdReset(FXObject*, FXSelector, void*) {
86  return 1;
87 }
88 
89 
90 void
92 
93 }
94 
95 /****************************************************************************/
void updateTable()
update data table
Dialog to edit sequences, parameters, etc.. of Additionals.
FXDEFMAP(GNERerouterDialog) GNERerouterDialogMap[]
Dialog for edit rerouters.
long onCmdReset(FXObject *, FXSelector, void *)
event after press reset button
long onCmdCancel(FXObject *, FXSelector, void *)
event after press cancel button
long onCmdAccept(FXObject *, FXSelector, void *)