1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 24#ifndef ADABASUI_ADABASNEWDB_HRC 25#include "AdabasNewDb.hrc" 26#endif 27#include "dbaccess_helpid.hrc" 28#include "adabasui_resource.hrc" 29//================================================================== 30// NEWDB Admin 31//================================================================== 32#define WIN_X 268 33#define WIN_Y 210 34#define MOVE_Y 21 35#define ADJUST_X 45 36ModalDialog DLG_ADABAS_NEWDB 37{ 38 Moveable = TRUE ; 39 Closeable = TRUE ; 40 OutputSize = TRUE ; 41 SVLook = TRUE; 42 HelpID = HID_DLG_ADABAS_NEWDB ; 43 Size = MAP_APPFONT ( WIN_X , WIN_Y + MOVE_Y) ; 44 45 FixedText FT_DATABASENAME 46 { 47 Pos = MAP_APPFONT ( 12 , 6) ; 48 Size = MAP_APPFONT ( 64 + ADJUST_X, 10 ) ; 49 Text[ en-US ] = "Database ~name"; 50}; 51 Edit ET_DATABASENAME 52 { 53 Border = TRUE ; 54 Pos = MAP_APPFONT ( 77 + ADJUST_X, 5) ; 55 Size = MAP_APPFONT ( 161 - ADJUST_X, 12 ) ; 56 TabStop = TRUE ; 57 HelpID = HID_DLG_ADABAS_DBNAME ; 58 }; 59 60 FixedLine FL_USER 61 { 62 Pos = MAP_APPFONT ( 6 , 3 + MOVE_Y) ; 63 Size = MAP_APPFONT ( WIN_X - 12 , 8 ) ; 64 Text[ en-US ] = "User settings"; 65}; 66 67 FixedText FT_CONUSR 68 { 69 Pos = MAP_APPFONT ( 12 , 31 + MOVE_Y) ; 70 Size = MAP_APPFONT ( 64 + ADJUST_X, 10 ) ; 71 Text[ en-US ] = "~Control user"; 72}; 73 FixedText FT_SYSUSR 74 { 75 Pos = MAP_APPFONT ( 12 , 14 + MOVE_Y) ; 76 Size = MAP_APPFONT ( 64 + ADJUST_X, 10 ) ; 77 Text[ en-US ] = "~Administrator"; 78}; 79 FixedText FT_DOMAIN_USR 80 { 81 Pos = MAP_APPFONT ( 12 , 48 + MOVE_Y) ; 82 Size = MAP_APPFONT ( 64 + ADJUST_X, 10 ) ; 83 Text[ en-US ] = "~Domain user"; 84}; 85 86 Edit ET_SYSUSR 87 { 88 Border = TRUE ; 89 Pos = MAP_APPFONT ( 77 + ADJUST_X, 13 + MOVE_Y) ; 90 Size = MAP_APPFONT ( 105 - ADJUST_X, 12 ) ; 91 TabStop = TRUE ; 92 HelpID = HID_DLG_ADABAS_SYSUSR ; 93 }; 94 95 PushButton PB_SYSPWD 96 { 97 Pos = MAP_APPFONT ( 188 , 13 + MOVE_Y) ; 98 Size = MAP_APPFONT ( 50 , 14 ) ; 99 TabStop = TRUE ; 100 HelpID = HID_DLG_ADABAS_SYSPWD ; 101 Text[ en-US ] = "P~assword..."; 102}; 103 104 Edit ET_CONUSR 105 { 106 Border = TRUE ; 107 Pos = MAP_APPFONT ( 77 + ADJUST_X, 30 + MOVE_Y) ; 108 Size = MAP_APPFONT ( 105 - ADJUST_X, 12 ) ; 109 TabStop = TRUE ; 110 HelpID = HID_DLG_ADABAS_CONUSR ; 111 }; 112 113 PushButton PB_CONPWD 114 { 115 Pos = MAP_APPFONT ( 188 , 30 + MOVE_Y) ; 116 Size = MAP_APPFONT ( 50 , 14 ) ; 117 TabStop = TRUE ; 118 HelpID = HID_DLG_ADABAS_CONPWD ; 119 Text[ en-US ] = "~Password..."; 120}; 121 Edit ET_DOMAIN_USR 122 { 123 Pos = MAP_APPFONT ( 77 + ADJUST_X, 47 + MOVE_Y) ; 124 Size = MAP_APPFONT ( 105 - ADJUST_X, 12 ) ; 125 Border = TRUE ; 126 TabStop = TRUE ; 127 ReadOnly= TRUE; 128 HelpID = HID_DLG_ADABAS_USR ; 129 Text = "adabas"; 130 }; 131 132 PushButton PB_DOMAINPWD 133 { 134 Pos = MAP_APPFONT ( 188 , 47 + MOVE_Y) ; 135 Size = MAP_APPFONT ( 50 , 14 ) ; 136 TabStop = TRUE ; 137 HelpID = HID_DLG_ADABAS_DOMAINPWD ; 138 Text[ en-US ] = "Passwo~rd..."; 139}; 140 141 FixedImage BMP_CON 142 { 143 Pos = MAP_APPFONT ( 240 , 27 + MOVE_Y) ; 144 Size = MAP_APPFONT ( 20 , 20 ) ; 145 HelpID = HID_DLG_ADABAS_CON_PWD ; 146 }; 147 FixedImage BMP_SYS 148 { 149 Pos = MAP_APPFONT ( 240 , 11 + MOVE_Y) ; 150 Size = MAP_APPFONT ( 20 , 20 ) ; 151 HelpID = HID_DLG_ADABAS_SYS_PWD ; 152 }; 153 FixedImage BMP_DOMAIN 154 { 155 Pos = MAP_APPFONT ( 240 , 44 + MOVE_Y) ; 156 Size = MAP_APPFONT ( 20 , 20 ) ; 157 HelpID = HID_DLG_ADABAS_DOMAIN_PWD ; 158 }; 159 160 FixedText FT_RESTORE 161 { 162 Pos = MAP_APPFONT ( 12 , 13 + MOVE_Y) ; 163 Size = MAP_APPFONT ( 64 + ADJUST_X, 10 ) ; 164 Text[ en-US ] = "~Backup file"; 165}; 166 167 Edit ET_RESTORE 168 { 169 Border = TRUE ; 170 Pos = MAP_APPFONT ( 77 + ADJUST_X, 13 + MOVE_Y) ; 171 Size = MAP_APPFONT ( 105 - ADJUST_X, 12 ) ; 172 TabStop = TRUE ; 173 HelpID = HID_DLG_ADABAS_RESTORE ; 174 }; 175 176 PushButton PB_RESTORE 177 { 178 Pos = MAP_APPFONT ( 188 , 13 + MOVE_Y) ; 179 Size = MAP_APPFONT ( 50 , 14 ) ; 180 TabStop = TRUE ; 181 HelpID = HID_DLG_ADABAS_PBRESTORE ; 182 Text[ en-US ] = "..."; 183}; 184 185 /* DEVSPACE positions */ 186 FixedLine FL_DBSETTINGS 187 { 188 Pos = MAP_APPFONT ( 6 , 70 + MOVE_Y) ; 189 Size = MAP_APPFONT ( WIN_X - 12 , 8 ) ; 190 Text[ en-US ] = "Database settings"; 191}; 192 193 FixedText FT_SYSDEVSPACE 194 { 195 Pos = MAP_APPFONT ( 12 , 83 + MOVE_Y) ; 196 Size = MAP_APPFONT ( 64 + ADJUST_X, 8 ) ; 197 Text[ en-US ] = "S~YSDEVSPACE"; 198}; 199 200 FixedText FT_TRANSACTIONLOG 201 { 202 Pos = MAP_APPFONT ( 12 , 99 + MOVE_Y) ; 203 Size = MAP_APPFONT ( 64 + ADJUST_X, 8 ) ; 204 Text[ en-US ] = "TRANSACTI~ONLOG"; 205}; 206 207 FixedText FT_DATADEVSPACE 208 { 209 Pos = MAP_APPFONT ( 12 , 116 + MOVE_Y) ; 210 Size = MAP_APPFONT ( 64 + ADJUST_X, 8 ) ; 211 Text[ en-US ] = "DATAD~EVSPACE"; 212}; 213 214 Edit ET_SYSDEVSPACE 215 { 216 Border = TRUE ; 217 Pos = MAP_APPFONT ( 77 + ADJUST_X, 81 + MOVE_Y) ; 218 Size = MAP_APPFONT ( 161 - ADJUST_X, 12 ) ; 219 TabStop = TRUE ; 220 HelpID = HID_DLG_ADABAS_SYSDEVSPACE ; 221 }; 222 223 PushButton PB_SYSDEVSPACE 224 { 225 Pos = MAP_APPFONT ( WIN_X - 24, 81 + MOVE_Y) ; 226 Size = MAP_APPFONT ( 12 , 12 ) ; 227 TabStop = TRUE ; 228 HelpID = HID_DLG_ADABAS_PBSYSDEVSPACE ; 229 Text[ en-US ] = "..."; 230}; 231 232 Edit ET_TRANSACTIONLOG 233 { 234 Border = TRUE ; 235 Pos = MAP_APPFONT ( 77 + ADJUST_X, 97 + MOVE_Y) ; 236 Size = MAP_APPFONT ( 161 - ADJUST_X, 12 ) ; 237 TabStop = TRUE ; 238 HelpID = HID_DLG_ADABAS_TRANSACTIONLOG ; 239 }; 240 241 PushButton PB_TRANSACTIONLOG 242 { 243 Pos = MAP_APPFONT ( WIN_X - 24, 97+ MOVE_Y) ; 244 Size = MAP_APPFONT ( 12 , 12 ) ; 245 TabStop = TRUE ; 246 HelpID = HID_DLG_ADABAS_PBTRANSACTIONLOG ; 247 Text[ en-US ] = "..."; 248}; 249 250 Edit ET_DATADEVSPACE 251 { 252 Pos = MAP_APPFONT ( 77 + ADJUST_X, 114 + MOVE_Y) ; 253 Size = MAP_APPFONT ( 161 - ADJUST_X, 12) ; 254 Border = TRUE ; 255 TabStop = TRUE ; 256 HelpID = HID_DLG_ADABAS_DATADEVSPACE ; 257 }; 258 259 260 PushButton PB_DATADEVSPACE 261 { 262 Pos = MAP_APPFONT ( WIN_X - 24, 114 + MOVE_Y) ; 263 Size = MAP_APPFONT ( 12 , 12 ) ; 264 TabStop = TRUE ; 265 HelpID = HID_DLG_ADABAS_PBDATADEVSPACE ; 266 Text[ en-US ] = "..."; 267}; 268 /* DEVSPACE sizes */ 269 FixedText FT_TRANSACTIONLOG_SIZE 270 { 271 Pos = MAP_APPFONT ( 12 , 133 + MOVE_Y) ; 272 Size = MAP_APPFONT ( 64 + ADJUST_X, 8 ) ; 273 Text[ en-US ] = "Transaction ~file (MB)"; 274}; 275 NumericField NF_TRANSACTIONLOG_SIZE 276 { 277 Pos = MAP_APPFONT ( 77 + ADJUST_X, 131 + MOVE_Y) ; 278 Size = MAP_APPFONT ( 40 , 12 ) ; 279 Border = TRUE ; 280 TabStop = TRUE ; 281 Spin = TRUE ; 282StrictFormat = TRUE; 283 HelpID = HID_DLG_ADABAS_TRANSACTIONLOG_SIZE ; 284 }; 285 FixedText FT_DATADEVSPACE_SIZE 286 { 287 Pos = MAP_APPFONT ( 12 , 150 + MOVE_Y) ; 288 Size = MAP_APPFONT ( 64 + ADJUST_X, 8 ) ; 289 Text[ en-US ] = "Data~base size (MB)"; 290}; 291 NumericField NF_DATADEVSPACE_SIZE 292 { 293 Pos = MAP_APPFONT ( 77 + ADJUST_X, 148 + MOVE_Y) ; 294 Size = MAP_APPFONT ( 40 , 12 ) ; 295 Border = TRUE ; 296 TabStop = TRUE ; 297 Spin = TRUE ; 298StrictFormat = TRUE; 299 HelpID = HID_DLG_ADABAS_DATADEVSPACE_SIZE ; 300 }; 301 FixedText FT_CACHE_SIZE 302 { 303 Pos = MAP_APPFONT ( 12 , 167 + MOVE_Y) ; 304 Size = MAP_APPFONT ( 64 + ADJUST_X, 8 ) ; 305 Text[ en-US ] = "Data ~buffer size (MB)"; 306}; 307 NumericField NF_CACHE_SIZE 308 { 309 Pos = MAP_APPFONT ( 77 + ADJUST_X, 165 + MOVE_Y) ; 310 Size = MAP_APPFONT ( 40 , 12 ) ; 311 Border = TRUE ; 312 TabStop = TRUE ; 313 Spin = TRUE ; 314StrictFormat = TRUE; 315 HelpID = HID_DLG_ADABAS_CACHE_SIZE ; 316 }; 317 FixedLine FL_END 318 { 319 Pos = MAP_APPFONT ( 0 , WIN_Y - 24 + MOVE_Y) ; 320 Size = MAP_APPFONT ( WIN_X , 1 ) ; 321 }; 322 OKButton PB_OK 323 { 324 Pos = MAP_APPFONT ( WIN_X - 112, WIN_Y - 20 + MOVE_Y) ; 325 Size = MAP_APPFONT ( 50 , 14 ) ; 326 TabStop = TRUE ; 327 DefButton = TRUE ; 328 }; 329 CancelButton PB_CANCEL 330 { 331 Pos = MAP_APPFONT ( WIN_X - 56 , WIN_Y - 20+ MOVE_Y) ; 332 Size = MAP_APPFONT ( 50 , 14 ) ; 333 TabStop = TRUE ; 334 }; 335 336 String STR_BACKUPFILE_LOAD 337 { 338 Text[ en-US ] = "Backup file information"; 339}; 340 341 Text[ en-US ] = "Create New Adabas D Database"; 342}; 343 344Image CHECK_GREEN 345{ 346 ImageBitmap = Bitmap { File = "nu07.bmp"; }; 347 MaskColor = Color { Red = 0xFFFF; Green = 0x0; Blue = 0xFFFF; }; 348}; 349Image UNCHECK_RED 350{ 351 ImageBitmap = Bitmap { File = "nu08.bmp"; }; 352 MaskColor = Color { Red = 0xFFFF; Green = 0x0; Blue = 0xFFFF; }; 353}; 354Image DEFAULT_BLUE 355{ 356 ImageBitmap = Bitmap { File = "nu09.bmp"; }; 357 MaskColor = Color { Red = 0xFFFF; Green = 0x0; Blue = 0xFFFF; }; 358}; 359/* Fehlermeldungen beim Erstellen einer Adabas DB */ 360 361String STR_ADABAS_NO_PARAM_SET 362{ 363 Text[ en-US ] = "No entry could be written in the configuration file."; 364}; 365 366String STR_ADABAS_NO_DB_CREATED 367{ 368 Text[ en-US ] = "An error occurred as the DB files were being created."; 369}; 370 371String STR_ADABAS_NO_SYSTEM_TABLES 372{ 373 Text[ en-US ] = "An error occurred as the system tables were being created."; 374}; 375String STR_ADABAS_NO_BACKUP_FILE 376{ 377 Text[ en-US ] = "The backup file entered does not exist."; 378}; 379 380InfoBox INFO_STR_MAX_FILE_LENGTH 381{ 382 Message[ en-US ] = "The fully qualified file cannot be longer than \'#\' characters."; 383}; 384 385String STR_NO_SAME_USER 386{ 387 Text[ en-US ] = "The administrator and the control user cannot have the same name!"; 388}; 389String STR_DEVSPACE_NO_FILE 390{ 391 Text[ en-US ] = "No name has been entered for the $name$ file!"; 392}; 393String STR_NO_PERMISSION 394{ 395 Text[ en-US ] = "You have to have administrator rights to create a new database!"; 396}; 397 398String STR_FILE_OR_DIR_UNKNOWN 399{ 400 Text[ en-US ] = "The specified file name or directory does not exist."; 401}; 402 403String STR_ERROR_IN_ADABAS_INSTALLATION 404{ 405 Text [ en-US ] = "No new database can be created.\nPlease check your Adabas D installation, especially the variables \"DBROOT\" and \"DBWORK\"."; 406}; 407 408String STR_STAT_WARNING 409{ 410 Text [ en-US ] = "Warning!" ; 411}; 412 413String STR_ADABAS_CREATEFILES 414{ 415 Text [ en-US ] = "Creating database files." ; 416}; 417 418String STR_ADABAS_CREATEPARAM_FILE 419{ 420 Text [ en-US ] = "Creating database configuration file." ; 421}; 422String STR_ADABAS_START_DATABASE 423{ 424 Text [ en-US ] = "Starting database for the first time." ; 425 426}; 427String STR_ADABAS_DB_EXISTS 428{ 429 Text[ en-US ] = "The name entered already exists."; 430}; 431 432String STR_ADABAS_NO_DEFAULTNAME 433{ 434 Text[ en-US ] = "No default names could be set for the database files. The total length is more than 40 characters."; 435}; 436 437String STR_ADABAS_NO_ACCESSRIGHTS 438{ 439 Text[ en-US ] = "No default names could be set for the database files. There is no write access."; 440}; 441 442String STR_ADABAS_CANNOT_CONVERT 443{ 444 Text[ en-US ] = "The current database need to be converted. Please insert control user and password."; 445}; 446 447String STR_ADABAS_PASSWORD_ILLEGAL 448{ 449 Text[ en-US ] = "Spaces are not permitted in the password. Please enter a new password."; 450}; 451 452