📄 project.h
字号:
///////////////////////////////////////////////////////////
// //
// SAGA //
// //
// System for Automated Geoscientific Analyses //
// //
// User Interface //
// //
// Program: SAGA //
// //
//-------------------------------------------------------//
// //
// Project.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__Project_H
#define _HEADER_INCLUDED__SAGA_GUI__Project_H
///////////////////////////////////////////////////////////
// //
// //
// //
///////////////////////////////////////////////////////////
//---------------------------------------------------------
class CWKSP_Project
{
public:
CWKSP_Project(void);
virtual ~CWKSP_Project(void);
const wxChar * Get_File_Name (void) { return( m_File_Name ); }
bool Has_File_Name (void);
bool Clr_File_Name (void);
bool Load (bool bAdd);
bool Load (const wxChar *FileName, bool bAdd, bool bUpdateMenu);
bool Save (void);
bool Save (bool bSaveAsOnError);
bool Save (const wxChar *FileName, bool bSaveModified);
bool Save_Modified (class CWKSP_Base_Item *pItem);
private:
wxString m_File_Name;
bool _Set_Project_Name (void);
bool _Load (const wxChar *FileName, bool bAdd, bool bUpdateMenu);
bool _Save (const wxChar *FileName, bool bSaveModified, bool bUpdateMenu);
bool _Load_Data (CSG_File &Stream, const wxChar *ProjectDir);
bool _Save_Data (CSG_File &Stream, const wxChar *ProjectDir, class CSG_Data_Object *pDataObject, class CSG_Parameters *pParameters);
bool _Load_Map (CSG_File &Stream, const wxChar *ProjectDir);
bool _Save_Map (CSG_File &Stream, const wxChar *ProjectDir, class CWKSP_Map *pMap);
class CWKSP_Base_Item * _Get_byFileName (wxString FileName);
static int _Modified_Changed (class CSG_Parameter *pParameter);
bool _Modified_Get (class CSG_Parameters *pParameters, class CWKSP_Base_Item *pItem);
bool _Modified_Get (class CSG_Parameters *pParameters, class CWKSP_Base_Item *pItem, class CSG_Data_Object *pObject);
bool _Modified_Save (class CSG_Parameters *pParameters);
};
///////////////////////////////////////////////////////////
// //
// //
// //
///////////////////////////////////////////////////////////
//---------------------------------------------------------
#endif // #ifndef _HEADER_INCLUDED__SAGA_GUI__Project_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -