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.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 Goettingen // 42 // Goldschmidtstr. 5 // 43 // 37077 Goettingen // 44 // Germany // 45 // // 46 // e-mail: oconrad@saga-gis.org // 47 // // 48 /////////////////////////////////////////////////////////// 49 50 //--------------------------------------------------------- 51 #ifndef _HEADER_INCLUDED__SAGA_GUI__WKSP_H 52 #define _HEADER_INCLUDED__SAGA_GUI__WKSP_H 53 54 55 /////////////////////////////////////////////////////////// 56 // // 57 // // 58 // // 59 /////////////////////////////////////////////////////////// 60 61 //--------------------------------------------------------- 62 #include <wx/notebook.h> 63 64 //--------------------------------------------------------- 65 #include <saga_api/saga_api.h> 66 67 68 /////////////////////////////////////////////////////////// 69 // // 70 // // 71 // // 72 /////////////////////////////////////////////////////////// 73 74 //--------------------------------------------------------- 75 class CWKSP : public wxNotebook 76 { 77 public: 78 CWKSP(wxWindow *pParent); 79 virtual ~CWKSP(void); 80 81 void Add_Pages (void); 82 83 void On_Page_Changing (wxNotebookEvent &event); 84 void On_Page_Changed (wxNotebookEvent &event); 85 86 void On_Command (wxCommandEvent &event); 87 void On_Command_UI (wxUpdateUIEvent &event); 88 void On_Command_Tool (wxCommandEvent &event); 89 void On_Command_UI_Tool (wxUpdateUIEvent &event); 90 Get_Tools(void)91 class CWKSP_Tool_Control * Get_Tools (void) { return( m_pTools ); } Get_Data(void)92 class CWKSP_Data_Control * Get_Data (void) { return( m_pData ); } Get_Data_Buttons(void)93 class CWKSP_Data_Buttons * Get_Data_Buttons (void) { return( m_pData_Buttons ); } Get_Maps(void)94 class CWKSP_Map_Control * Get_Maps (void) { return( m_pMaps ); } Get_Maps_Buttons(void)95 class CWKSP_Map_Buttons * Get_Maps_Buttons (void) { return( m_pMaps_Buttons ); } 96 97 bool Open (void); 98 bool Open (const wxString &File_Name); 99 100 101 private: 102 103 class CWKSP_Tool_Control *m_pTools; 104 105 class CWKSP_Data_Control *m_pData; 106 107 class CWKSP_Data_Buttons *m_pData_Buttons; 108 109 class CWKSP_Map_Control *m_pMaps; 110 111 class CWKSP_Map_Buttons *m_pMaps_Buttons; 112 113 114 DECLARE_EVENT_TABLE() 115 }; 116 117 118 /////////////////////////////////////////////////////////// 119 // // 120 /////////////////////////////////////////////////////////// 121 122 //--------------------------------------------------------- 123 extern CWKSP *g_pWKSP; 124 125 126 /////////////////////////////////////////////////////////// 127 // // 128 // // 129 // // 130 /////////////////////////////////////////////////////////// 131 132 //--------------------------------------------------------- 133 #endif // #ifndef _HEADER_INCLUDED__SAGA_GUI__WKSP_H 134