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 // RES_Dialogs.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__RES_Dialogs_H 64 #define _HEADER_INCLUDED__SAGA_GUI__RES_Dialogs_H 65 66 67 /////////////////////////////////////////////////////////// 68 // // 69 // // 70 // // 71 /////////////////////////////////////////////////////////// 72 73 //--------------------------------------------------------- 74 #include <wx/string.h> 75 #include <wx/arrstr.h> 76 77 78 /////////////////////////////////////////////////////////// 79 // // 80 // // 81 // // 82 /////////////////////////////////////////////////////////// 83 84 //--------------------------------------------------------- 85 enum ID_DIALOGS 86 { 87 ID_DLG_CLOSE, 88 ID_DLG_ABOUT, 89 90 ID_DLG_DELETE, 91 92 ID_DLG_FILE_OPEN, 93 ID_DLG_TOOL_OPEN, 94 ID_DLG_PROJECT_OPEN, 95 ID_DLG_PROJECT_SAVE, 96 ID_DLG_TABLE_OPEN, 97 ID_DLG_TABLE_SAVE, 98 ID_DLG_SHAPES_OPEN, 99 ID_DLG_SHAPES_SAVE, 100 ID_DLG_TIN_OPEN, 101 ID_DLG_TIN_SAVE, 102 ID_DLG_POINTCLOUD_OPEN, 103 ID_DLG_POINTCLOUD_SAVE, 104 ID_DLG_GRID_OPEN, 105 ID_DLG_GRID_SAVE, 106 ID_DLG_GRIDS_OPEN, 107 ID_DLG_GRIDS_SAVE, 108 109 ID_DLG_TEXT_OPEN, 110 ID_DLG_TEXT_SAVE, 111 112 ID_DLG_PARAMETERS_OPEN, 113 ID_DLG_PARAMETERS_SAVE, 114 115 ID_DLG_COLORS_OPEN, 116 ID_DLG_COLORS_SAVE 117 }; 118 119 120 /////////////////////////////////////////////////////////// 121 // // 122 // // 123 // // 124 /////////////////////////////////////////////////////////// 125 126 //--------------------------------------------------------- 127 wxString DLG_Get_Text (int ID_DLG); 128 wxString DLG_Get_Caption (int ID_DLG); 129 130 wxString DLG_Get_FILE_Caption (int ID_DLG); 131 wxString DLG_Get_FILE_Filter (int ID_DLG); 132 wxString DLG_Get_FILE_Config (int ID_DLG); 133 134 //--------------------------------------------------------- 135 class wxRect DLG_Get_Def_Rect (void); 136 class wxPoint DLG_Get_Def_Position (void); 137 class wxSize DLG_Get_Def_Size (void); 138 139 //--------------------------------------------------------- 140 bool DLG_Parameters (class CSG_Parameters *pParameters, const wxString &Caption = "", const wxString &Description = ""); 141 142 bool DLG_Text (const wxString &Caption, wxString &Text); 143 bool DLG_Table (const wxString &Caption, class CSG_Table *pTable); 144 bool DLG_Table_Fields (const wxString &Caption, class CSG_Parameter_Table_Fields *pFields); 145 bool DLG_Choices (const wxString &Caption, class CSG_Parameter_Choices *pChoices); 146 147 bool DLG_Login (wxString &Username, wxString &Password, const wxString &Caption = ""); 148 149 bool DLG_List (const wxString &Caption, class CSG_Parameter_List *pList); 150 151 bool DLG_Colors (class CSG_Colors *pColors); 152 bool DLG_Colors (int &Palette); 153 bool DLG_Color (long &Colour); 154 bool DLG_Color_From_Text (long &Colour); 155 156 bool DLG_Font (class CSG_Parameter *pFont); 157 158 bool DLG_Get_Text (wxString &Value, const wxString &Caption, const wxString &Text); 159 bool DLG_Get_Text (wxString &Value); 160 bool DLG_Get_Number (double &Value, const wxString &Caption, const wxString &Text); 161 bool DLG_Get_Number (double &Value); 162 bool DLG_Get_Number (int &Value, const wxString &Caption, const wxString &Text); 163 bool DLG_Get_Number (int &Value); 164 165 bool DLG_Directory (wxString &Directory, const wxString &Caption); 166 bool DLG_Save (wxString &File_Path, int ID_DLG); 167 bool DLG_Save (wxString &File_Path, const wxString &Caption, const wxString &Filter); 168 bool DLG_Open (wxString &File_Path, int ID_DLG); 169 bool DLG_Open (wxString &File_Path, const wxString &Caption, const wxString &Filter); 170 bool DLG_Open (wxArrayString &File_Paths, int ID_DLG); 171 bool DLG_Open (wxArrayString &File_Paths, const wxString &Caption, const wxString &Filter); 172 173 bool DLG_Image_Save (wxString &File_Path, int &Type, const wxString &def_Dir = "", const wxString &def_File = ""); 174 175 void DLG_Message_Show (int ID_DLG); 176 void DLG_Message_Show (const wxString &Message); 177 void DLG_Message_Show (const wxString &Message, const wxString &Caption); 178 int DLG_Message_Show_Error (int ID_DLG); 179 int DLG_Message_Show_Error (const wxString &Message, const wxString &Caption); 180 bool DLG_Message_Confirm (int ID_DLG); 181 bool DLG_Message_Confirm (const wxString &Message, const wxString &Caption); 182 int DLG_Message_YesNoCancel (int ID_DLG); 183 int DLG_Message_YesNoCancel (const wxString &Message, const wxString &Caption); 184 185 //--------------------------------------------------------- 186 int DLG_Maps_Add (void); 187 188 189 /////////////////////////////////////////////////////////// 190 // // 191 // // 192 // // 193 /////////////////////////////////////////////////////////// 194 195 //--------------------------------------------------------- 196 #endif // #ifndef _HEADER_INCLUDED__SAGA_GUI__RES_Dialogs_H 197