SUMO - Simulation of Urban MObility

GUIDialog_GLChosenEditor.h

Go to the documentation of this file.
00001 /****************************************************************************/
00007 // Editor for the list of chosen objects
00008 /****************************************************************************/
00009 // SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
00010 // Copyright (C) 2001-2011 DLR (http://www.dlr.de/) and contributors
00011 /****************************************************************************/
00012 //
00013 //   This program is free software; you can redistribute it and/or modify
00014 //   it under the terms of the GNU General Public License as published by
00015 //   the Free Software Foundation; either version 2 of the License, or
00016 //   (at your option) any later version.
00017 //
00018 /****************************************************************************/
00019 #ifndef GUIDialog_GLChosenEditor_h
00020 #define GUIDialog_GLChosenEditor_h
00021 
00022 
00023 // ===========================================================================
00024 // included modules
00025 // ===========================================================================
00026 #ifdef _MSC_VER
00027 #include <windows_config.h>
00028 #else
00029 #include <config.h>
00030 #endif
00031 
00032 #include <string>
00033 #include <vector>
00034 #include <fx.h>
00035 
00036 #include <utils/gui/div/GUISelectedStorage.h>
00037 #include <utils/gui/windows/GUIMainWindow.h>
00038 
00039 // ===========================================================================
00040 // class declarations
00041 // ===========================================================================
00042 class GUIMainWindow;
00043 
00044 
00045 // ===========================================================================
00046 // class definition
00047 // ===========================================================================
00055 class GUIDialog_GLChosenEditor : public FXMainWindow, public GUISelectedStorage::UpdateTarget {
00056     // FOX-declarations
00057     FXDECLARE(GUIDialog_GLChosenEditor)
00058 
00059 public:
00067     GUIDialog_GLChosenEditor(GUIMainWindow* parent,
00068                              GUISelectedStorage* str) throw();
00069 
00070 
00075     ~GUIDialog_GLChosenEditor() throw();
00076 
00077 
00080     void rebuildList() throw();
00081 
00082 
00085 
00094     long onCmdLoad(FXObject*,FXSelector,void*);
00095 
00096 
00106     long onCmdSave(FXObject*,FXSelector,void*);
00107 
00113     long onCmdDeselect(FXObject*,FXSelector,void*);
00114 
00120     long onCmdClear(FXObject*,FXSelector,void*);
00121 
00122 
00127     long onCmdClose(FXObject*,FXSelector,void*);
00129 
00130 
00131     // called if the global selection changes
00132     void selectionUpdated();
00133 
00134 private:
00136     FXList* myList;
00137 
00139     GUIMainWindow* myParent;
00140 
00142     GUISelectedStorage* myStorage;
00143 
00144 protected:
00146     GUIDialog_GLChosenEditor() { }
00147 
00148 };
00149 
00150 
00151 #endif
00152 
00153 /****************************************************************************/
00154 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines