1 /********************************************************** 2 * Version $Id: wksp_map_basemap.h 1921 2014-01-09 10:24:11Z oconrad $ 3 *********************************************************/ 4 5 /////////////////////////////////////////////////////////// 6 // // 7 // SAGA // 8 // // 9 // System for Automated Geoscientific Analyses // 10 // // 11 // User Interface // 12 // // 13 // Program: SAGA // 14 // // 15 //-------------------------------------------------------// 16 // // 17 // wksp_map_basemap.h // 18 // // 19 // Copyright (C) 2014 by Olaf Conrad // 20 // // 21 //-------------------------------------------------------// 22 // // 23 // This file is part of 'SAGA - System for Automated // 24 // Geoscientific Analyses'. SAGA is free software; you // 25 // can redistribute it and/or modify it under the terms // 26 // of the GNU General Public License as published by the // 27 // Free Software Foundation, either version 2 of the // 28 // License, or (at your option) any later version. // 29 // // 30 // SAGA is distributed in the hope that it will be // 31 // useful, but WITHOUT ANY WARRANTY; without even the // 32 // implied warranty of MERCHANTABILITY or FITNESS FOR A // 33 // PARTICULAR PURPOSE. See the GNU General Public // 34 // License for more details. // 35 // // 36 // You should have received a copy of the GNU General // 37 // Public License along with this program; if not, see // 38 // <http://www.gnu.org/licenses/>. // 39 // // 40 //-------------------------------------------------------// 41 // // 42 // contact: Olaf Conrad // 43 // Institute of Geography // 44 // University of Hamburg // 45 // Germany // 46 // // 47 // e-mail: oconrad@saga-gis.org // 48 // // 49 /////////////////////////////////////////////////////////// 50 51 //--------------------------------------------------------- 52 53 54 /////////////////////////////////////////////////////////// 55 // // 56 // // 57 // // 58 /////////////////////////////////////////////////////////// 59 60 //--------------------------------------------------------- 61 #ifndef _HEADER_INCLUDED__SAGA_GUI__wksp_map_basemap_H 62 #define _HEADER_INCLUDED__SAGA_GUI__wksp_map_basemap_H 63 64 65 /////////////////////////////////////////////////////////// 66 // // 67 // // 68 // // 69 /////////////////////////////////////////////////////////// 70 71 //--------------------------------------------------------- 72 #include "wksp_base_item.h" 73 74 75 /////////////////////////////////////////////////////////// 76 // // 77 // // 78 // // 79 /////////////////////////////////////////////////////////// 80 81 //--------------------------------------------------------- 82 class CWKSP_Map_BaseMap : public CWKSP_Base_Item 83 { 84 public: 85 CWKSP_Map_BaseMap(CSG_MetaData *pEntry = NULL); 86 virtual ~CWKSP_Map_BaseMap(void); 87 Get_Type(void)88 virtual TWKSP_Item Get_Type (void) { return( WKSP_ITEM_Map_BaseMap ); } 89 90 virtual wxString Get_Name (void); 91 virtual wxString Get_Description (void); 92 93 virtual wxMenu * Get_Menu (void); 94 95 virtual bool On_Command (int Cmd_ID); 96 virtual bool On_Command_UI (wxUpdateUIEvent &event); 97 98 virtual int On_Parameter_Changed (CSG_Parameters *pParameters, CSG_Parameter *pParameter, int Flags); 99 virtual void Parameters_Changed (void); 100 101 bool Dlg_Parameters (void); 102 do_Show(void)103 bool do_Show (void) { return( m_bShow ); } 104 Get_Map(void)105 class CWKSP_Map * Get_Map (void) { return( (class CWKSP_Map *)Get_Manager() ); } 106 107 bool Draw (class CWKSP_Map_DC &dc); 108 109 bool Load (CSG_MetaData &Entry); 110 bool Save (CSG_MetaData &Entry); 111 112 113 private: 114 115 bool m_bShow; 116 117 CSG_Grid m_BaseMap; 118 119 CSG_Tool *m_pTool; 120 121 122 bool Set_BaseMap (const CSG_Grid_System &System); 123 124 }; 125 126 127 /////////////////////////////////////////////////////////// 128 // // 129 // // 130 // // 131 /////////////////////////////////////////////////////////// 132 133 //--------------------------------------------------------- 134 #endif // #ifndef _HEADER_INCLUDED__SAGA_GUI__wksp_map_basemap_H 135