1 /********************************************************** 2 * Version $Id$ 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 // ACTIVE_Parameters.h // 18 // // 19 // Copyright (C) 2005 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 Goettingen // 45 // Goldschmidtstr. 5 // 46 // 37077 Goettingen // 47 // Germany // 48 // // 49 // e-mail: oconrad@saga-gis.org // 50 // // 51 /////////////////////////////////////////////////////////// 52 53 //--------------------------------------------------------- 54 55 56 /////////////////////////////////////////////////////////// 57 // // 58 // // 59 // // 60 /////////////////////////////////////////////////////////// 61 62 //--------------------------------------------------------- 63 #ifndef _HEADER_INCLUDED__SAGA_GUI__ACTIVE_Parameters_H 64 #define _HEADER_INCLUDED__SAGA_GUI__ACTIVE_Parameters_H 65 66 67 /////////////////////////////////////////////////////////// 68 // // 69 // // 70 // // 71 /////////////////////////////////////////////////////////// 72 73 //--------------------------------------------------------- 74 #include <wx/panel.h> 75 76 77 /////////////////////////////////////////////////////////// 78 // // 79 // // 80 // // 81 /////////////////////////////////////////////////////////// 82 83 //--------------------------------------------------------- 84 class CActive_Parameters : public wxPanel 85 { 86 DECLARE_CLASS(CActive_Parameters) 87 88 public: 89 CActive_Parameters(wxWindow *pParent); 90 virtual ~CActive_Parameters(void); 91 92 void On_Size (wxSizeEvent &event); 93 void On_Key (wxKeyEvent &event); 94 95 void On_Apply (wxCommandEvent &event); 96 void On_Apply_UI (wxUpdateUIEvent &event); 97 void On_Restore (wxCommandEvent &event); 98 void On_Restore_UI (wxUpdateUIEvent &event); 99 void On_Execute (wxCommandEvent &event); 100 void On_Load (wxCommandEvent &event); 101 void On_Save (wxCommandEvent &event); 102 103 bool Set_Parameters (class CWKSP_Base_Item *pItem); 104 bool Update_Parameters (class CSG_Parameters *pParameters, bool bSave); 105 bool Update_DataObjects (void); 106 bool Restore_Parameters (void); 107 108 109 private: 110 111 int m_btn_height; 112 113 class wxButton *m_Btn_Restore, *m_Btn_Apply, *m_Btn_Execute, *m_Btn_Load, *m_Btn_Save; 114 115 class CWKSP_Base_Item *m_pItem; 116 117 class CParameters_Control *m_pControl; 118 119 120 void _Set_Positions (void); 121 122 123 //--------------------------------------------------------- 124 DECLARE_EVENT_TABLE() 125 }; 126 127 128 /////////////////////////////////////////////////////////// 129 // // 130 // // 131 // // 132 /////////////////////////////////////////////////////////// 133 134 //--------------------------------------------------------- 135 #endif // #ifndef _HEADER_INCLUDED__SAGA_GUI__ACTIVE_Parameters_H 136