📄 wksp_data_manager.h
字号:
///////////////////////////////////////////////////////////
// //
// SAGA //
// //
// System for Automated Geoscientific Analyses //
// //
// User Interface //
// //
// Program: SAGA //
// //
//-------------------------------------------------------//
// //
// WKSP_Data_Manager.h //
// //
// Copyright (C) 2005 by Olaf Conrad //
// //
//-------------------------------------------------------//
// //
// This file is part of 'SAGA - System for Automated //
// Geoscientific Analyses'. SAGA is free software; you //
// can redistribute it and/or modify it under the terms //
// of the GNU General Public License as published by the //
// Free Software Foundation; version 2 of the License. //
// //
// SAGA is distributed in the hope that it will be //
// useful, but WITHOUT ANY WARRANTY; without even the //
// implied warranty of MERCHANTABILITY or FITNESS FOR A //
// PARTICULAR PURPOSE. See the GNU General Public //
// License for more details. //
// //
// You should have received a copy of the GNU General //
// Public License along with this program; if not, //
// write to the Free Software Foundation, Inc., //
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, //
// USA. //
// //
//-------------------------------------------------------//
// //
// contact: Olaf Conrad //
// Institute of Geography //
// University of Goettingen //
// Goldschmidtstr. 5 //
// 37077 Goettingen //
// Germany //
// //
// e-mail: oconrad@saga-gis.org //
// //
///////////////////////////////////////////////////////////
//---------------------------------------------------------
///////////////////////////////////////////////////////////
// //
// //
// //
///////////////////////////////////////////////////////////
//---------------------------------------------------------
#ifndef _HEADER_INCLUDED__SAGA_GUI__WKSP_Data_Manager_H
#define _HEADER_INCLUDED__SAGA_GUI__WKSP_Data_Manager_H
///////////////////////////////////////////////////////////
// //
// //
// //
///////////////////////////////////////////////////////////
//---------------------------------------------------------
#include <saga_api/saga_api.h>
#include "wksp_base_manager.h"
///////////////////////////////////////////////////////////
// //
// //
// //
///////////////////////////////////////////////////////////
//---------------------------------------------------------
class CWKSP_Data_Manager : public CWKSP_Base_Manager
{
public:
CWKSP_Data_Manager(void);
virtual ~CWKSP_Data_Manager(void);
bool Initialise (void);
bool Finalise (void);
virtual TWKSP_Item Get_Type (void) { return( WKSP_ITEM_Data_Manager ); }
virtual wxString Get_Name (void);
virtual wxString Get_Description (void);
virtual wxMenu * Get_Menu (void);
virtual bool On_Command (int Cmd_ID);
virtual bool On_Command_UI (wxUpdateUIEvent &event);
virtual class CSG_Parameters * Get_Parameters (void) { return( &m_Parameters ); }
virtual void Parameters_Changed (void);
CWKSP_Base_Manager * Get_Manager (int i) { return( (CWKSP_Base_Manager *)Get_Item(i) ); }
void Del_Manager (class CWKSP_Base_Item *pItem);
class CWKSP_Table_Manager * Get_Tables (void) { return( m_pTables ); }
class CWKSP_Shapes_Manager * Get_Shapes (void) { return( m_pShapes ); }
class CWKSP_TIN_Manager * Get_TINs (void) { return( m_pTINs ); }
class CWKSP_Grid_Manager * Get_Grids (void) { return( m_pGrids ); }
bool Get_DataObject_List (CSG_Parameters *pParameters);
class CWKSP_Data_Menu_Files * Get_FileMenus (void) { return( m_pMenu_Files ); }
bool Check_Parameters (class CSG_Parameters *pParameters);
bool Check_Parameter (class CSG_Parameter *pParameter);
bool Open_CMD (int Cmd_ID);
bool Open (const wxChar *FileName);
bool Open (int DataType);
CWKSP_Base_Item * Open (int DataType, const wxChar *FileName);
bool Exists (class CSG_Grid_System *pSystem);
bool Exists (class CSG_Data_Object *pObject, int DataType = -1);
class CSG_Data_Object * Get_byFileName (const wxChar *File_Name, int DataType = -1);
bool Save_Modified (class CWKSP_Base_Item *pItem);
bool Close (bool bSilent);
CWKSP_Base_Item * Add (class CSG_Data_Object *pObject);
bool Update (class CSG_Data_Object *pObject, class CSG_Parameters *pParameters);
bool Update_Views (class CSG_Data_Object *pObject);
bool Show (class CSG_Data_Object *pObject);
bool asImage (class CSG_Data_Object *pObject, class CSG_Grid *pImage);
bool Get_Colors (class CSG_Data_Object *pObject, class CSG_Colors *pColors);
bool Set_Colors (class CSG_Data_Object *pObject, class CSG_Colors *pColors);
bool Get_Parameters (class CSG_Data_Object *pObject, class CSG_Parameters *pParameters);
bool Set_Parameters (class CSG_Data_Object *pObject, class CSG_Parameters *pParameters);
private:
CSG_Parameters m_Parameters;
class CWKSP_Project *m_pProject;
class CWKSP_Data_Menu_Files *m_pMenu_Files;
class CWKSP_Table_Manager *m_pTables;
class CWKSP_Shapes_Manager *m_pShapes;
class CWKSP_TIN_Manager *m_pTINs;
class CWKSP_Grid_Manager *m_pGrids;
bool _Get_Manager (int DataType);
};
//---------------------------------------------------------
extern CWKSP_Data_Manager *g_pData;
///////////////////////////////////////////////////////////
// //
// //
// //
///////////////////////////////////////////////////////////
//---------------------------------------------------------
#endif // #ifndef _HEADER_INCLUDED__SAGA_GUI__WKSP_Data_Manager_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -