SUMO - Simulation of Urban MObility
|
00001 /****************************************************************************/ 00008 // Editor for the list of chosen objects 00009 /****************************************************************************/ 00010 // SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/ 00011 // Copyright (C) 2001-2012 DLR (http://www.dlr.de/) and contributors 00012 /****************************************************************************/ 00013 // 00014 // This file is part of SUMO. 00015 // SUMO is free software: you can redistribute it and/or modify 00016 // it under the terms of the GNU General Public License as published by 00017 // the Free Software Foundation, either version 3 of the License, or 00018 // (at your option) any later version. 00019 // 00020 /****************************************************************************/ 00021 #ifndef GUIDialog_GLChosenEditor_h 00022 #define GUIDialog_GLChosenEditor_h 00023 00024 00025 // =========================================================================== 00026 // included modules 00027 // =========================================================================== 00028 #ifdef _MSC_VER 00029 #include <windows_config.h> 00030 #else 00031 #include <config.h> 00032 #endif 00033 00034 #include <string> 00035 #include <vector> 00036 #include <fx.h> 00037 00038 #include <utils/gui/div/GUISelectedStorage.h> 00039 #include <utils/gui/windows/GUIMainWindow.h> 00040 00041 // =========================================================================== 00042 // class declarations 00043 // =========================================================================== 00044 class GUIMainWindow; 00045 00046 00047 // =========================================================================== 00048 // class definition 00049 // =========================================================================== 00057 class GUIDialog_GLChosenEditor : public FXMainWindow, public GUISelectedStorage::UpdateTarget { 00058 // FOX-declarations 00059 FXDECLARE(GUIDialog_GLChosenEditor) 00060 00061 public: 00069 GUIDialog_GLChosenEditor(GUIMainWindow* parent, 00070 GUISelectedStorage* str) ; 00071 00072 00077 ~GUIDialog_GLChosenEditor() ; 00078 00079 00082 void rebuildList() ; 00083 00084 00087 00096 long onCmdLoad(FXObject*, FXSelector, void*); 00097 00098 00108 long onCmdSave(FXObject*, FXSelector, void*); 00109 00115 long onCmdDeselect(FXObject*, FXSelector, void*); 00116 00122 long onCmdClear(FXObject*, FXSelector, void*); 00123 00124 00129 long onCmdClose(FXObject*, FXSelector, void*); 00131 00132 00133 // called if the global selection changes 00134 void selectionUpdated(); 00135 00136 private: 00138 FXList* myList; 00139 00141 GUIMainWindow* myParent; 00142 00144 GUISelectedStorage* myStorage; 00145 00146 protected: 00148 GUIDialog_GLChosenEditor() { } 00149 00150 }; 00151 00152 00153 #endif 00154 00155 /****************************************************************************/ 00156