NIREP
|
00001 00002 // Name: windowdeletespatialdata.h 00003 // Purpose: Allows a user to release a specific spatial data from the 00004 // DataManager. The specific spatial data is specified by 00005 // the location in the grid that is displayed within the Interface. 00006 // Author: 00007 // Modified by: 00008 // Created: 18/11/2009 15:44:46 00009 // RCS-ID: 00010 // Copyright: 00011 // Licence: 00013 00014 #pragma once 00015 #ifndef _WINDOWDELETESPATIALDATA_H_ 00016 #define _WINDOWDELETESPATIALDATA_H_ 00017 00018 00023 00024 #include "wx/frame.h" 00026 00031 00032 class Interface; 00034 00039 00040 #define ID_WINDOWDELETESPATIALDATA 10012 00041 #define ID_PANEL 10013 00042 #define ID_BUTTON 10014 00043 #define ID_BUTTON1 10016 00044 #define SYMBOL_WINDOWDELETESPATIALDATA_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxSTAY_ON_TOP 00045 #define SYMBOL_WINDOWDELETESPATIALDATA_TITLE _("WindowDeleteSpatialData") 00046 #define SYMBOL_WINDOWDELETESPATIALDATA_IDNAME ID_WINDOWDELETESPATIALDATA 00047 #define SYMBOL_WINDOWDELETESPATIALDATA_SIZE wxSize(400, 100) 00048 #define SYMBOL_WINDOWDELETESPATIALDATA_POSITION wxDefaultPosition 00049 00050 00051 00056 class WindowDeleteSpatialData: public wxFrame 00057 { 00058 DECLARE_CLASS( WindowDeleteSpatialData ) 00059 DECLARE_EVENT_TABLE() 00060 00061 public: 00063 WindowDeleteSpatialData(); 00064 WindowDeleteSpatialData( wxWindow* parent, wxWindowID id = SYMBOL_WINDOWDELETESPATIALDATA_IDNAME, const wxString& caption = SYMBOL_WINDOWDELETESPATIALDATA_TITLE, const wxPoint& pos = SYMBOL_WINDOWDELETESPATIALDATA_POSITION, const wxSize& size = SYMBOL_WINDOWDELETESPATIALDATA_SIZE, long style = SYMBOL_WINDOWDELETESPATIALDATA_STYLE ); 00065 00066 bool Create( wxWindow* parent, wxWindowID id = SYMBOL_WINDOWDELETESPATIALDATA_IDNAME, const wxString& caption = SYMBOL_WINDOWDELETESPATIALDATA_TITLE, const wxPoint& pos = SYMBOL_WINDOWDELETESPATIALDATA_POSITION, const wxSize& size = SYMBOL_WINDOWDELETESPATIALDATA_SIZE, long style = SYMBOL_WINDOWDELETESPATIALDATA_STYLE ); 00067 00069 ~WindowDeleteSpatialData(); 00070 00072 void Init(); 00073 00075 void CreateControls(); 00076 00078 00080 00082 00084 wxBitmap GetBitmapResource( const wxString& name ); 00085 00087 wxIcon GetIconResource( const wxString& name ); 00089 00091 static bool ShowToolTips(); 00092 00093 void OkButton(wxCommandEvent &event); 00094 00095 void CancelButton(wxCommandEvent &event); 00096 00097 void SetRowCol(int r, int c); 00098 00099 private: 00102 00103 Interface *interfaceParent; 00104 int row; 00105 int col; 00106 }; 00107 00108 #endif 00109 // _WINDOWDELETESPATIALDATA_H_