1 
2 ///////////////////////////////////////////////////////////
3 //                                                       //
4 //                         SAGA                          //
5 //                                                       //
6 //      System for Automated Geoscientific Analyses      //
7 //                                                       //
8 //                    User Interface                     //
9 //                                                       //
10 //                    Program: SAGA                      //
11 //                                                       //
12 //-------------------------------------------------------//
13 //                                                       //
14 //                   ACTIVE_History.h                    //
15 //                                                       //
16 //          Copyright (C) 2008 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__ACTIVE_History_H
52 #define _HEADER_INCLUDED__SAGA_GUI__ACTIVE_History_H
53 
54 
55 ///////////////////////////////////////////////////////////
56 //														 //
57 //														 //
58 //														 //
59 ///////////////////////////////////////////////////////////
60 
61 //---------------------------------------------------------
62 #include <wx/treectrl.h>
63 
64 
65 ///////////////////////////////////////////////////////////
66 //														 //
67 //														 //
68 //														 //
69 ///////////////////////////////////////////////////////////
70 
71 //---------------------------------------------------------
72 class CActive_History : public wxTreeCtrl
73 {
74 	DECLARE_CLASS(CActive_History)
75 
76 public:
77 	CActive_History(wxWindow *pParent);
78 
79 	bool					Set_Item				(class CWKSP_Data_Item *pItem);
80 
81 
82 private:
83 
84 	class CWKSP_Data_Item	*m_pItem;
85 
86 
87 	void					On_Mouse_RDown			(wxMouseEvent   &event);
88 	void					On_Clear				(wxCommandEvent &event);
89 	void					On_SaveAs_Model			(wxCommandEvent &event);
90 	void					On_Options_Expand		(wxCommandEvent &event);
91 
92 	void					_Expand					(wxTreeItemId Node, const wxString &Name, bool bExpand);
93 
94 	CSG_Data_Object *		_Get_Object				(void);
95 
96 	int						_Get_Image				(TSG_Parameter_Type Type);
97 	int						_Get_Image				(const CSG_String  &Type);
98 
99 	bool					_Set_History			(void);
100 	bool					_Add_History			(wxTreeItemId Parent, CSG_MetaData &History);
101 	bool					_Add_History_OLD		(wxTreeItemId Parent, CSG_MetaData &History);
102 
103 
104 	DECLARE_EVENT_TABLE()
105 
106 };
107 
108 
109 ///////////////////////////////////////////////////////////
110 //														 //
111 //														 //
112 //														 //
113 ///////////////////////////////////////////////////////////
114 
115 //---------------------------------------------------------
116 #endif // #ifndef _HEADER_INCLUDED__SAGA_GUI__ACTIVE_History_H
117