GUIDialog_GLObjChooser.h

Go to the documentation of this file.
00001 /****************************************************************************/
00007 // Class for the window that allows to choose a street, junction or vehicle
00008 /****************************************************************************/
00009 // SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
00010 // Copyright 2001-2010 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_GLObjChooser_h
00020 #define GUIDialog_GLObjChooser_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 #include <utils/gui/globjects/GUIGlObjectTypes.h>
00036 
00037 
00038 // ===========================================================================
00039 // class declarations
00040 // ===========================================================================
00041 class GUISUMOViewParent;
00042 class GUIGlObjectStorage;
00043 class GUIGlObject;
00044 
00045 
00046 // ===========================================================================
00047 // class definition
00048 // ===========================================================================
00055 class GUIDialog_GLObjChooser : public FXMainWindow {
00056     // FOX-declarations
00057     FXDECLARE(GUIDialog_GLObjChooser)
00058 
00059 public:
00067     GUIDialog_GLObjChooser(GUISUMOViewParent *parent, FXIcon *icon, const FXString &title,
00068                            GUIGlObjectType type, GUIGlObjectStorage &glStorage);
00069 
00070 
00072     ~GUIDialog_GLObjChooser();
00073 
00074 
00078     GUIGlObject *getObject() const throw() {
00079         return static_cast<GUIGlObject*>(mySelected);
00080     }
00081 
00082 
00084     long onCmdCenter(FXObject*,FXSelector,void*);
00085 
00087     long onCmdClose(FXObject*,FXSelector,void*);
00088 
00090     long onChgText(FXObject*,FXSelector,void*);
00091 
00093     long onCmdText(FXObject*,FXSelector,void*);
00094 
00096     long onListKeyPress(FXObject*,FXSelector,void*);
00097 
00098 
00099 private:
00101     FXList *myList;
00102 
00104     GUIGlObjectType myObjectType;
00105 
00107     GUISUMOViewParent *myParent;
00108 
00110     GUIGlObject *mySelected;
00111 
00113     FXTextField *myTextEntry;
00114 
00115 
00116 protected:
00118     GUIDialog_GLObjChooser() { }
00119 
00120 };
00121 
00122 
00123 #endif
00124 
00125 /****************************************************************************/
00126 

Generated on Wed May 5 00:06:29 2010 for Sumo - Simulation of Urban MObility by  doxygen 1.5.6