1 2 /////////////////////////////////////////////////////////// 3 // // 4 // SAGA // 5 // // 6 // System for Automated Geoscientific Analyses // 7 // // 8 // User Interface // 9 // // 10 // Program: SAGA // 11 // // 12 //-------------------------------------------------------// 13 // // 14 // WKSP_Data_Menu_Files.h // 15 // // 16 // Copyright (C) 2005 by Olaf Conrad // 17 // // 18 //-------------------------------------------------------// 19 // // 20 // This file is part of 'SAGA - System for Automated // 21 // Geoscientific Analyses'. SAGA is free software; you // 22 // can redistribute it and/or modify it under the terms // 23 // of the GNU General Public License as published by the // 24 // Free Software Foundation, either version 2 of the // 25 // License, or (at your option) any later version. // 26 // // 27 // SAGA is distributed in the hope that it will be // 28 // useful, but WITHOUT ANY WARRANTY; without even the // 29 // implied warranty of MERCHANTABILITY or FITNESS FOR A // 30 // PARTICULAR PURPOSE. See the GNU General Public // 31 // License for more details. // 32 // // 33 // You should have received a copy of the GNU General // 34 // Public License along with this program; if not, see // 35 // <http://www.gnu.org/licenses/>. // 36 // // 37 //-------------------------------------------------------// 38 // // 39 // contact: Olaf Conrad // 40 // Institute of Geography // 41 // University of Hamburg // 42 // Germany // 43 // // 44 // e-mail: oconrad@saga-gis.org // 45 // // 46 /////////////////////////////////////////////////////////// 47 48 //--------------------------------------------------------- 49 #ifndef _HEADER_INCLUDED__SAGA_GUI__WKSP_Data_Menu_Files_H 50 #define _HEADER_INCLUDED__SAGA_GUI__WKSP_Data_Menu_Files_H 51 52 53 /////////////////////////////////////////////////////////// 54 // // 55 // // 56 // // 57 /////////////////////////////////////////////////////////// 58 59 //--------------------------------------------------------- 60 #include "wksp_data_menu_file.h" 61 62 63 /////////////////////////////////////////////////////////// 64 // // 65 // // 66 // // 67 /////////////////////////////////////////////////////////// 68 69 //--------------------------------------------------------- 70 class CWKSP_Data_Menu_Files 71 { 72 public: 73 CWKSP_Data_Menu_Files(void); 74 virtual ~CWKSP_Data_Menu_Files(void); 75 Get_Menu(void)76 wxMenu * Get_Menu (void) { return( m_pMenu ); } 77 Set_Update(bool bUpdate)78 void Set_Update (bool bUpdate) { m_bUpdate = bUpdate; } 79 80 bool Recent_Open (int Cmd_ID); 81 void Recent_Add (int DataType, const wxString &FileName); 82 void Recent_Del (int DataType, const wxString &FileName); 83 bool Recent_Get (int DataType, wxArrayString &FileNames, bool bAppend); 84 85 86 private: 87 88 bool m_bUpdate; 89 90 wxMenu *m_pMenu; 91 92 CWKSP_Data_Menu_File m_Project, m_Table, m_Shapes, m_TIN, m_PointCloud, m_Grid, m_Grids; 93 94 95 CWKSP_Data_Menu_File * _Get_Menu (int DataType); 96 97 }; 98 99 100 /////////////////////////////////////////////////////////// 101 // // 102 // // 103 // // 104 /////////////////////////////////////////////////////////// 105 106 //--------------------------------------------------------- 107 #endif // #ifndef _HEADER_INCLUDED__SAGA_GUI__WKSP_Data_Menu_Files_H 108